저가 지금 디자이너로 윈도우 창 디자인을 대충 짜놨는데 공공데이터포털에서 XML 데이터를 파싱 한 후에, 예를들어 버튼을 누르면 파싱한 데이터의 텍스트나 이미지가 PlainText창에 뜬다든지와 같이 파싱을 한 후에 어떤식으로 이벤트를 줘서 프로그램을 만드는지 모르겠습니다ㅠ.ㅠ 그리고 xml 데이터를 파싱하는 강좌도 딱 하나 있어서 들어보았는데 데이터 마다, 내가 어떻게 할 지에 따라 달라져서 파싱을 정확히 어떻게 하는지도 잘 모르겠습니다... 도움이 될만한 자료나 사이트가 있을까요...??
예외 발생(0x00000000610561C5(f_sps.dll), nadocording.exe): 0xC0000005: 0xFFFFFFFFFFFFFFFF 위치를 읽는 동안 액세스 위반이 발생했습니다.. 이런 메세지가 뜨는 경우는 코드에 잘못된 부분이 있어서 그런건가요? 실행은 잘 됩니다.
AppDelegate.swift func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response : UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Void) { print("userNotificationCenter 2") if response.notification.request.identifier == "testIdentifier" { print("handling notification with the identifier 'testIdentifer'") } if let notification = response.notification.request.content.userInfo as? [String:AnyObject]{ print (notification as Any) let message = parseRemoteNotification(notification: notification) print(message!) let seq = parseOrderSeq(notification: notification) print(seq!) var loginVC : UIViewController? loginVC = UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "LoginViewController") as! LoginViewController let appDelegate = UIApplication.shared.delegate as! AppDelegate appDelegate.window?.rootViewController = loginVC } completionHandler() } console log 2019-05-23 15:14:41.282374+0900 bossapp[38816:10485392] Warning: Attempt to present <UIAlertController: 0x105007200> on <bossapp.LoginViewController: 0x103526eb0> whose view is not in the window hierarchy! 하면서 구현이 안되고 그냥 바로 원래 되던 메인으로 가네요. 어떻게 구현 하면 좋을까요?!
이하와 같이 에러가 나는데 도와주세요! root@23a894f1ee94:/home# truffle deploy --network klaytn Using network 'klaytn'. Running migration: 1_initial_migration.js Deploying Migrations... ... undefined Error encountered, bailing. Network state unknown. Review successful transactions manually. Error: Invalid JSON RPC response: {"id":5,"jsonrpc":"2.0"} at Object.InvalidResponse (/usr/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/errors.js:38:1) at /usr/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/requestmanager.js:86:1 at /usr/lib/node_modules/truffle/build/webpack:/packages/truffle-migrate/index.js:225:1 at /usr/lib/node_modules/truffle/build/webpack:/packages/truffle-provider/wrapper.js:134:1 at /home/node_modules/web3-provider-engine/index.js:149:9 at /home/node_modules/async/internal/once.js:12:16 at replenish (/home/node_modules/async/internal/eachOfLimit.js:61:25) at /home/node_modules/async/internal/eachOfLimit.js:71:9 at eachLimit (/home/node_modules/async/eachLimit.js:43:36) at /home/node_modules/async/internal/doLimit.js:9:16 at end (/home/node_modules/web3-provider-engine/index.js:124:5) at /home/node_modules/async/internal/once.js:12:16 at next (/home/node_modules/async/waterfall.js:21:29) at /home/node_modules/async/internal/onlyOnce.js:12:16 at /home/node_modules/async/internal/once.js:12:16 at next (/home/node_modules/async/waterfall.js:21:29) at /home/node_modules/async/internal/onlyOnce.js:12:16 at /home/node_modules/web3-provider-engine/subproviders/hooked-wallet.js:374:7 at /home/node_modules/async/internal/once.js:12:16 at next (/home/node_modules/async/waterfall.js:21:29) at /home/node_modules/async/internal/onlyOnce.js:12:16 at /home/node_modules/web3-provider-engine/subproviders/hooked-wallet.js:402:5
실행했을 때 저 같은 경우는 parent process pid : ~~ 프린트 되고나서 child process pid ~~~가 프린트 됩니다. 그리고 this is the function(pid)가 parent, child 순으로 총 두번 연속해서 출력되는데요. 강의에서는 parent pid 출력된 후 this is the function 출력되고 child pid 출력 후 다시 this is the function이 출력됐습니다. 이부분이 저랑 조금 다른데 왜 그런건가요??
line 255, in test_post_list_no_category self.assertEqual(response.status_code, 200) AssertionError: 301 != 200 test하는데 in test_post_list_no_category 안에서 code.200 막히네요,...부탁드립니다.