text:
Q: How to symbolicate crash report for a Ad-Hoc publish I have published my app by ad-hoc for my testers. I do not archive this, but I have the .ipa file and the .provisioning file that sent to tester.
Tester said that app crash after he go to on of the screens. I have a log system in my app that save's exceptions for me in a text file. I asked him to send me this log file.
He send the log file and the file include this block:
    Incident Identifier: 6AA332CD-4719-4CEF-A53F-D82489F12023
CrashReporter Key: 299fdc42c5a3a6a02c44cf60cd96a3d784c55e80
Hardware Model: iPhone3,1
Process: Realtyna_iPhone_Project [112]
Path: /var/mobile/Applications/3FD224E1-D55E-452D-A24C-343205589451/Realtyna_iPhone_Project.app/Realtyna_iPhone_Project
Identifier: Realtyna_iPhone_Project
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]

Date/Time: 2013-07-01 18:02:39.249 +0200
OS Version: iOS 6.1.3 (10B329)
Report Version: 104

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 0

Last Exception Backtrace:
(0x3129f29e 0x38f4497a 0x3129ef94 0x320cc3c4 0x1737d0 0x233a64 0x24335c 0x3f4de4 0x4c605e 0x5217a2 0x4b536a 0x3310e30c 0x33148d10 0x3312682a 0x331264b2 0x330bcaae 0x331318ea 0x32e66bfc 0x3935b4b2 0x3935cdc6 0x31272f36 0x311e5eb8 0x311e5d44 0x34da92e6 0x330fb2fc 0x174a80 0x1fbc8c 0x3f4de4 0x4c605e 0x5217a2 0x524286 0x52750a 0x4d8772 0x56537c 0x3937bb1c)

Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x39442350 0x39431000 + 70480
1 libsystem_c.dylib 0x393b911e 0x3938a000 + 192798
2 libsystem_c.dylib 0x393f596e 0x3938a000 + 440686
3 Realtyna_iPhone_Project 0x004fe348 0x1000 + 5231432
4 Realtyna_iPhone_Project 0x0052ac54 0x1000 + 5413972
5 libsystem_c.dylib 0x393c2e90 0x3938a000 + 233104
6 libsystem_c.dylib 0x393b911e 0x3938a000 + 192798
7 libsystem_c.dylib 0x393f596e 0x3938a000 + 440686
8 Realtyna_iPhone_Project 0x00572384 0x1000 + 5706628
9 Realtyna_iPhone_Project 0x004fbede 0x1000 + 5222110
10 Realtyna_iPhone_Project 0x004c41ea 0x1000 + 4993514
11 Realtyna_iPhone_Project 0x004fdf80 0x1000 + 5230464
12 Realtyna_iPhone_Project 0x004fe04c 0x1000 + 5230668
13 Realtyna_iPhone_Project 0x00529f10 0x1000 + 5410576
14 Realtyna_iPhone_Project 0x004486fc 0x1000 + 4486908
15 Realtyna_iPhone_Project 0x005723d0 0x1000 + 5706704
16 Realtyna_iPhone_Project 0x00572480 0x1000 + 5706880
17 CoreFoundation 0x3129f57c 0x311dd000 + 796028
18 libobjc.A.dylib 0x38f44a62 0x38f3c000 + 35426
19 libc++abi.dylib 0x38991078 0x38990000 + 4216
20 libc++abi.dylib 0x38991110 0x38990000 + 4368
21 libc++abi.dylib 0x3899250e 0x38990000 + 9486
22 libobjc.A.dylib 0x38f449ba 0x38f3c000 + 35258
23 CoreFoundation 0x3129ef94 0x311dd000 + 794516
24 MapKit 0x320cc3c4 0x320a6000 + 156612
25 Realtyna_iPhone_Project 0x001737d0 0x1000 + 1517520
26 Realtyna_iPhone_Project 0x00233a64 0x1000 + 2304612
27 Realtyna_iPhone_Project 0x0024335c 0x1000 + 2368348
28 Realtyna_iPhone_Project 0x003f4de4 0x1000 + 4144612
29 Realtyna_iPhone_Project 0x004c6060 0x1000 + 5001312
30 Realtyna_iPhone_Project 0x005217a4 0x1000 + 5375908
31 Realtyna_iPhone_Project 0x004b536a 0x1000 + 4932458
32 UIKit 0x3310e30c 0x330a4000 + 434956
33 UIKit 0x33148d10 0x330a4000 + 675088
34 UIKit 0x3312682a 0x330a4000 + 534570
35 UIKit 0x331264b2 0x330a4000 + 533682
36 UIKit 0x330bcaae 0x330a4000 + 101038
37 UIKit 0x331318ea 0x330a4000 + 579818
38 QuartzCore 0x32e66bfc 0x32e51000 + 89084
39 libdispatch.dylib 0x3935b4b4 0x3935a000 + 5300
40 libdispatch.dylib 0x3935cdc6 0x3935a000 + 11718
41 CoreFoundation 0x31272f36 0x311dd000 + 614198
42 CoreFoundation 0x311e5eb8 0x311dd000 + 36536
43 CoreFoundation 0x311e5d44 0x311dd000 + 36164
44 GraphicsServices 0x34da92e6 0x34da4000 + 21222
45 UIKit 0x330fb2fc 0x330a4000 + 357116
46 Realtyna_iPhone_Project 0x00174a80 0x1000 + 1522304
47 Realtyna_iPhone_Project 0x001fbc8c 0x1000 + 2075788
48 Realtyna_iPhone_Project 0x003f4de4 0x1000 + 4144612
49 Realtyna_iPhone_Project 0x004c6060 0x1000 + 5001312
50 Realtyna_iPhone_Project 0x005217a4 0x1000 + 5375908
51 Realtyna_iPhone_Project 0x00524286 0x1000 + 5386886
52 Realtyna_iPhone_Project 0x0052750a 0x1000 + 5399818
53 Realtyna_iPhone_Project 0x004d8772 0x1000 + 5076850
54 Realtyna_iPhone_Project 0x0056537c 0x1000 + 5653372
55 libdyld.dylib 0x3937bb1c 0x3937a000 + 6940

Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x39432648 0x39431000 + 5704
1 libdispatch.dylib 0x3936b4ec 0x3935a000 + 70892
2 libdispatch.dylib 0x3935ddf4 0x3935a000 + 15860

Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x00000000 r1: 0x00000000 r2: 0x00000000 r3: 0x3aefb534
r4: 0x00000006 r5: 0x3aefbb88 r6: 0x0058206a r7: 0x2fdfd29c
r8: 0x00000000 r9: 0x00000000 r10: 0x00582088 r11: 0x00beeed4
ip: 0x00000148 sp: 0x2fdfd290 lr: 0x393b9123 pc: 0x39442350
cpsr: 0x00000010

Binary Images:
0x1000 - 0x5d4fff +Realtyna_iPhone_Project armv7 /var/mobile/Applications/3FD224E1-D55E-452D-A24C-343205589451/Realtyna_iPhone_Project.app/Realtyna_iPhone_Project
0x2fe62000 - 0x2fe82fff dyld armv7 <280610df5ed43ec7aa00629a27009302> /usr/lib/dyld
0x3020c000 - 0x302ddfff RawCamera armv7 <8752cce31e8e3ceab5d88c84e3481db2> /System/Library/CoreServices/RawCamera.bundle/RawCamera
0x302e6000 - 0x303b6fff IMGSGX535GLDriver armv7 /System/Library/Extensions/IMGSGX535GLDriver.bundle/IMGSGX535GLDriver
0x303c0000 - 0x304a6fff AVFoundation armv7 <320761e836883aeabf3cb5c53edb636d> /System/Library/Frameworks/AVFoundation.framework/AVFoundation
0x304a7000 - 0x304a7fff Accelerate armv7 /System/Library/Frameworks/Accelerate.framework/Accelerate
0x304a8000 - 0x305e6fff vImage armv7 <30522b92940d3dd184c8e46780594048> /System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/vImage
0x305e7000 - 0x306cafff libBLAS.dylib armv7 /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libBLAS.dylib
0x306cb000 - 0x30980fff libLAPACK.dylib armv7 <9e08aead79d13043bab622402a270fba> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libLAPACK.dylib
0x30981000 - 0x309dafff libvDSP.dylib armv7 <09e2a5e3e9203950890ba57592523132> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libvDSP.dylib
0x309db000 - 0x309ecfff libvMisc.dylib armv7 <7b7d4ccc9f2b364cb0da4251e745545d> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libvMisc.dylib
0x309ed000 - 0x309edfff vecLib armv7 /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/vecLib
0x309ee000 - 0x309fffff Accounts armv7 /System/Library/Frameworks/Accounts.framework/Accounts
0x30a01000 - 0x30a65fff AddressBook armv7 <8cfae84dc66d3c1f9d17335c53c3d7b7> /System/Library/Frameworks/AddressBook.framework/AddressBook
0x30a66000 - 0x30b20fff AddressBookUI armv7 <0017d0a0c2593522acaaa0eee41775e4> /System/Library/Frameworks/AddressBookUI.framework/AddressBookUI
0x30c6b000 - 0x30ef3fff AudioToolbox armv7 <394ee11cf826367db9ff4968dbc71d6d> /System/Library/Frameworks/AudioToolbox.framework/AudioToolbox
0x30ef4000 - 0x30fb9fff CFNetwork armv7 <4771a5e4f9b83bceb252f0f3d166aaca> /System/Library/Frameworks/CFNetwork.framework/CFNetwork
0x30fba000 - 0x31010fff CoreAudio armv7 <5d534dbf76ff30f4a628f25f56c5f26a> /System/Library/Frameworks/CoreAudio.framework/CoreAudio
0x31024000 - 0x311dcfff CoreData armv7 <3930f672c76535a2abb768ee59958fa7> /System/Library/Frameworks/CoreData.framework/CoreData
0x311dd000 - 0x3130ffff CoreFoundation armv7 /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
0x31310000 - 0x31448fff CoreGraphics armv7 <81e213f810a034d4ba411f9b505da2a6> /System/Library/Frameworks/CoreGraphics.framework/CoreGraphics
0x3144a000 - 0x31485fff libCGFreetype.A.dylib armv7 /System/Library/Frameworks/CoreGraphics.framework/Resources/libCGFreetype.A.dylib
0x31669000 - 0x31684fff libRIP.A.dylib armv7 /System/Library/Frameworks/CoreGraphics.framework/Resources/libRIP.A.dylib
0x31685000 - 0x3173afff CoreImage armv7 <6ae4ae2461313e3f84c6a8102d5b1b0e> /System/Library/Frameworks/CoreImage.framework/CoreImage
0x3173b000 - 0x31793fff CoreLocation armv7 <4edb4b0f05e13af8b84699fe3ea4c538> /System/Library/Frameworks/CoreLocation.framework/CoreLocation
0x317c8000 - 0x3182dfff CoreMedia armv7 <8592bdc268b83b8886acfc1fdab649ed> /System/Library/Frameworks/CoreMedia.framework/CoreMedia
0x3182e000 - 0x318b6fff CoreMotion armv7 <4512d901170d32e7842e7fc1c519386b> /System/Library/Frameworks/CoreMotion.framework/CoreMotion
0x318b7000 - 0x3190dfff CoreTelephony armv7 /System/Library/Frameworks/CoreTelephony.framework/CoreTelephony
0x3190e000 - 0x31970fff CoreText armv7 /System/Library/Frameworks/CoreText.framework/CoreText
0x31971000 - 0x31980fff CoreVideo armv7 <00f18bb26e663da9ae251a6ec36a19ec> /System/Library/Frameworks/CoreVideo.framework/CoreVideo
0x31981000 - 0x31a35fff EventKit armv7 <99a7a1603323319f9e24f97e9f89bfd3> /System/Library/Frameworks/EventKit.framework/EventKit
0x31b05000 - 0x31cc8fff Foundation armv7 <0179934581d13346aa7583165108b95c> /System/Library/Frameworks/Foundation.framework/Foundation
0x31e83000 - 0x31eccfff IOKit armv7 /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x31ecd000 - 0x320a5fff ImageIO armv7 /System/Library/Frameworks/ImageIO.framework/ImageIO
0x320a6000 - 0x3211efff MapKit armv7 <027e730f45cc3868b98833546bb55449> /System/Library/Frameworks/MapKit.framework/MapKit
0x3211f000 - 0x322b9fff MediaPlayer armv7 /System/Library/Frameworks/MediaPlayer.framework/MediaPlayer
0x322ba000 - 0x32534fff MediaToolbox armv7 /System/Library/Frameworks/MediaToolbox.framework/MediaToolbox
0x32535000 - 0x325bbfff MessageUI armv7 <8dbc0a8e6a253c8c8d6301064f23dfea> /System/Library/Frameworks/MessageUI.framework/MessageUI
0x325bc000 - 0x32615fff MobileCoreServices armv7 <77da8a9e7f813f5baf37eaa4a87fae84> /System/Library/Frameworks/MobileCoreServices.framework/MobileCoreServices
0x32642000 - 0x32703fff GLEngine armv7 /System/Library/Frameworks/OpenGLES.framework/GLEngine.bundle/GLEngine
0x32704000 - 0x3270bfff OpenGLES armv7 /System/Library/Frameworks/OpenGLES.framework/OpenGLES
0x3270d000 - 0x3270dfff libCVMSPluginSupport.dylib armv7 <2506af1c983f3f09ac69aca44f67e863> /System/Library/Frameworks/OpenGLES.framework/libCVMSPluginSupport.dylib
0x3270e000 - 0x32710fff libCoreFSCache.dylib armv7 <761c0f0e263c3d39adbb5bf789cedde1> /System/Library/Frameworks/OpenGLES.framework/libCoreFSCache.dylib
0x32711000 - 0x32713fff libCoreVMClient.dylib armv7 /System/Library/Frameworks/OpenGLES.framework/libCoreVMClient.dylib
0x32714000 - 0x32718fff libGFXShared.dylib armv7 /System/Library/Frameworks/OpenGLES.framework/libGFXShared.dylib
0x32719000 - 0x32756fff libGLImage.dylib armv7 /System/Library/Frameworks/OpenGLES.framework/libGLImage.dylib
0x32757000 - 0x3287cfff libGLProgrammability.dylib armv7 <0b3cb1b9a5003c4a975ec268cabca3fc> /System/Library/Frameworks/OpenGLES.framework/libGLProgrammability.dylib
0x32e51000 - 0x32f66fff QuartzCore armv7 /System/Library/Frameworks/QuartzCore.framework/QuartzCore
0x32f67000 - 0x32fb4fff QuickLook armv7 <954e3a8bdaf337b085b30fd514ea5f3a> /System/Library/Frameworks/QuickLook.framework/QuickLook
0x32fb5000 - 0x32fe3fff Security armv7 /System/Library/Frameworks/Security.framework/Security
0x33062000 - 0x330a1fff SystemConfiguration armv7 <410d69b356e533d6a1d538cf33059634> /System/Library/Frameworks/SystemConfiguration.framework/SystemConfiguration
0x330a4000 - 0x335f8fff UIKit armv7 /System/Library/Frameworks/UIKit.framework/UIKit
0x335f9000 - 0x33637fff VideoToolbox armv7 /System/Library/Frameworks/VideoToolbox.framework/VideoToolbox
0x338cd000 - 0x338d9fff AccountSettings armv7 <8db45acc4d3d3017af10fa5ee82c2306> /System/Library/PrivateFrameworks/AccountSettings.framework/AccountSettings
0x33920000 - 0x33923fff ActorKit armv7 <5dfc59258ea63006be9c542e5fafbc45> /System/Library/PrivateFrameworks/ActorKit.framework/ActorKit
0x33925000 - 0x33928fff AggregateDictionary armv7 /System/Library/PrivateFrameworks/AggregateDictionary.framework/AggregateDictionary
0x33a11000 - 0x33a24fff AirTraffic armv7 <752b64045f4d3ea88a946b53b731ce1a> /System/Library/PrivateFrameworks/AirTraffic.framework/AirTraffic
0x33a25000 - 0x33d31fff Altitude armv7 /System/Library/PrivateFrameworks/Altitude.framework/Altitude
0x33d54000 - 0x33d8ffff AppSupport armv7 <921794b7d82a3558a0eb860979be199c> /System/Library/PrivateFrameworks/AppSupport.framework/AppSupport
0x33d90000 - 0x33db4fff AppleAccount armv7 /System/Library/PrivateFrameworks/AppleAccount.framework/AppleAccount
0x33dc1000 - 0x33dcefff ApplePushService armv7 <8bad4a9300db3d4d8555535f25c32da4> /System/Library/PrivateFrameworks/ApplePushService.framework/ApplePushService
0x33e02000 - 0x33e0bfff AssetsLibraryServices armv7 /System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices
0x33e26000 - 0x33e3dfff BackBoardServices armv7 <772912697ec23e5199a452e97f075dd9> /System/Library/PrivateFrameworks/BackBoardServices.framework/BackBoardServices
0x33e47000 - 0x33e6bfff Bom armv7 /System/Library/PrivateFrameworks/Bom.framework/Bom
0x33eeb000 - 0x33ef2fff CaptiveNetwork armv7 /System/Library/PrivateFrameworks/CaptiveNetwork.framework/CaptiveNetwork
0x33ef3000 - 0x33fbdfff Celestial armv7 /System/Library/PrivateFrameworks/Celestial.framework/Celestial
0x33fca000 - 0x33fcefff CertUI armv7 /System/Library/PrivateFrameworks/CertUI.framework/CertUI
0x340a1000 - 0x340a6fff CommonUtilities armv7 /System/Library/PrivateFrameworks/CommonUtilities.framework/CommonUtilities
0x3412b000 - 0x3415bfff ContentIndex armv7 <00ed488e47ee34ca9f01f2cc911f453c> /System/Library/PrivateFrameworks/ContentIndex.framework/ContentIndex
0x3436c000 - 0x3436dfff CoreSurface armv7 <6065f7e040e93d6ea2837e929592cc30> /System/Library/PrivateFrameworks/CoreSurface.framework/CoreSurface
0x343da000 - 0x343dffff CrashReporterSupport armv7 <03ee46e3ca3f3920a7174e62096723fb> /System/Library/PrivateFrameworks/CrashReporterSupport.framework/CrashReporterSupport
0x343e0000 - 0x3441cfff DataAccess armv7 /System/Library/PrivateFrameworks/DataAccess.framework/DataAccess
0x345b1000 - 0x345c3fff DataAccessExpress armv7 /System/Library/PrivateFrameworks/DataAccessExpress.framework/DataAccessExpress
0x34602000 - 0x34603fff DataMigration armv7 <5903e08348b83f119022cbbf83ad100a> /System/Library/PrivateFrameworks/DataMigration.framework/DataMigration
0x34606000 - 0x3461ffff DictionaryServices armv7 <84669055e3e63d6ab56b8fe7b0476aaa> /System/Library/PrivateFrameworks/DictionaryServices.framework/DictionaryServices
0x34627000 - 0x3463ffff EAP8021X armv7 <6d5ab53850e23fe389e64e2705bd7810> /System/Library/PrivateFrameworks/EAP8021X.framework/EAP8021X
0x3464f000 - 0x34653fff FTClientServices armv7 <6354e5b30919340db3b976312b284fce> /System/Library/PrivateFrameworks/FTClientServices.framework/FTClientServices
0x34654000 - 0x34691fff FTServices armv7 <89c066d12a6031038a9b8c61221abc0a> /System/Library/PrivateFrameworks/FTServices.framework/FTServices
0x34692000 - 0x34aa5fff FaceCoreLight armv7 <43de0b31da3b39e4acf85ec2c8d5c65c> /System/Library/PrivateFrameworks/FaceCoreLight.framework/FaceCoreLight
0x34af2000 - 0x34af7fff libGPUSupportMercury.dylib armv7 <4366fa0d1a0938a794bd8346e286d6f8> /System/Library/PrivateFrameworks/GPUSupport.framework/libGPUSupportMercury.dylib
0x34c9d000 - 0x34ca9fff GenerationalStorage armv7 /System/Library/PrivateFrameworks/GenerationalStorage.framework/GenerationalStorage
0x34caa000 - 0x34da3fff GeoServices armv7 /System/Library/PrivateFrameworks/GeoServices.framework/GeoServices
0x34da4000 - 0x34daffff GraphicsServices armv7 /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
0x34e1e000 - 0x34e99fff HomeSharing armv7 <280b77b71df23f1cb5c9a2b76fc53212> /System/Library/PrivateFrameworks/HomeSharing.framework/HomeSharing
0x34e9a000 - 0x34ea4fff IAP armv7 /System/Library/PrivateFrameworks/IAP.framework/IAP
0x34f5c000 - 0x34fd4fff IMCore armv7 /System/Library/PrivateFrameworks/IMCore.framework/IMCore
0x3509b000 - 0x350e7fff IMFoundation armv7 <797535fc363c3f818bcd1424251393bf> /System/Library/PrivateFrameworks/IMFoundation.framework/IMFoundation
0x350ee000 - 0x350effff IOAccelerator armv7 <9655464326203d258d3d0fc7e94651e2> /System/Library/PrivateFrameworks/IOAccelerator.framework/IOAccelerator
0x350f0000 - 0x350f5fff IOMobileFramebuffer armv7 /System/Library/PrivateFrameworks/IOMobileFramebuffer.framework/IOMobileFramebuffer
0x350f6000 - 0x350fafff IOSurface armv7 /System/Library/PrivateFrameworks/IOSurface.framework/IOSurface
0x35144000 - 0x352eafff JavaScriptCore armv7 /System/Library/PrivateFrameworks/JavaScriptCore.framework/JavaScriptCore
0x3531b000 - 0x35351fff MIME armv7 <57a1db0d5d3237708f54b3bd83553bae> /System/Library/PrivateFrameworks/MIME.framework/MIME
0x35390000 - 0x3539afff MailServices armv7 /System/Library/PrivateFrameworks/MailServices.framework/MailServices
0x353b6000 - 0x3540efff ManagedConfiguration armv7 <44bbb2ba85c8320bb9e73c654b90f8c0> /System/Library/PrivateFrameworks/ManagedConfiguration.framework/ManagedConfiguration
0x3540f000 - 0x35414fff Marco armv7 /System/Library/PrivateFrameworks/Marco.framework/Marco
0x35425000 - 0x3549bfff MediaControlSender armv7 <9fb205b64b5333a495ac61c149e0304b> /System/Library/PrivateFrameworks/MediaControlSender.framework/MediaControlSender
0x3549c000 - 0x354a5fff MediaRemote armv7 <73da55e989e73cb9ad6e9fdd4604ecc3> /System/Library/PrivateFrameworks/MediaRemote.framework/MediaRemote
0x35518000 - 0x355d1fff Message armv7 /System/Library/PrivateFrameworks/Message.framework/Message
0x355da000 - 0x355dcfff MessageSupport armv7 <81eb34b663513745b0ed65e244c7ab0f> /System/Library/PrivateFrameworks/MessageSupport.framework/MessageSupport
0x355e5000 - 0x35612fff MobileAsset armv7 <3a9e6258ae1230f5b12f1638b09cb974> /System/Library/PrivateFrameworks/MobileAsset.framework/MobileAsset
0x3563f000 - 0x3564efff MobileDeviceLink armv7 <817380030c613284a12074d960087522> /System/Library/PrivateFrameworks/MobileDeviceLink.framework/MobileDeviceLink
0x35657000 - 0x3565afff MobileInstallation armv7 /System/Library/PrivateFrameworks/MobileInstallation.framework/MobileInstallation
0x3565b000 - 0x35661fff MobileKeyBag armv7 <35882c57076334aeb0641969a9b69ff3> /System/Library/PrivateFrameworks/MobileKeyBag.framework/MobileKeyBag
0x3569a000 - 0x356bdfff MobileSync armv7 <1edd78024ae13e9997972ee905bc944e> /System/Library/PrivateFrameworks/MobileSync.framework/MobileSync
0x356be000 - 0x356c1fff MobileSystemServices armv7 <10b4eee2739c353183ac2cfe4e39a443> /System/Library/PrivateFrameworks/MobileSystemServices.framework/MobileSystemServices
0x356d9000 - 0x356e2fff MobileWiFi armv7 /System/Library/PrivateFrameworks/MobileWiFi.framework/MobileWiFi
0x356fc000 - 0x35840fff MusicLibrary armv7 <3870f4cb0c8b36778ad1a3f7556547f7> /System/Library/PrivateFrameworks/MusicLibrary.framework/MusicLibrary
0x35858000 - 0x35871fff Notes armv7 <3d4a8d4b012a3743b0ffc8dc33fb79e9> /System/Library/PrivateFrameworks/Notes.framework/Notes
0x35872000 - 0x35874fff OAuth armv7 <575df12a2f2436af92e31494c3b74465> /System/Library/PrivateFrameworks/OAuth.framework/OAuth
0x35fae000 - 0x35fd3fff OpenCL armv7 <9baf655cae4e3f9f99a5c6a99207099d> /System/Library/PrivateFrameworks/OpenCL.framework/OpenCL
0x36334000 - 0x36351fff PersistentConnection armv7 /System/Library/PrivateFrameworks/PersistentConnection.framework/PersistentConnection
0x365e7000 - 0x3660ffff PrintKit armv7 <3f0b9c58a458358eb506858e8ff9e1fe> /System/Library/PrivateFrameworks/PrintKit.framework/PrintKit
0x36610000 - 0x36684fff ProofReader armv7 <9cb25467554637bcb268ba30527d3c0f> /System/Library/PrivateFrameworks/ProofReader.framework/ProofReader
0x36685000 - 0x3668dfff ProtocolBuffer armv7 /System/Library/PrivateFrameworks/ProtocolBuffer.framework/ProtocolBuffer
0x367c9000 - 0x367dafff SpringBoardServices armv7 <0e48e91ad40f34aab3323c7c4157ce52> /System/Library/PrivateFrameworks/SpringBoardServices.framework/SpringBoardServices
0x3683c000 - 0x36917fff StoreServices armv7 <6d45f42eff2736d18cdd81af0473dd5a> /System/Library/PrivateFrameworks/StoreServices.framework/StoreServices
0x36965000 - 0x36967fff TCC armv7 /System/Library/PrivateFrameworks/TCC.framework/TCC
0x36986000 - 0x36993fff TelephonyUtilities armv7 <803d7a92439238ee942086999c481eb6> /System/Library/PrivateFrameworks/TelephonyUtilities.framework/TelephonyUtilities
0x36e16000 - 0x36eb6fff UIFoundation armv7 <9a464526e26634bc834537e5ac3abf1f> /System/Library/PrivateFrameworks/UIFoundation.framework/UIFoundation
0x36ed5000 - 0x37053fff VectorKit armv7 /System/Library/PrivateFrameworks/VectorKit.framework/VectorKit
0x371ba000 - 0x371d9fff WebBookmarks armv7 <77b65bc9c87b367ebea9a5b7984b13a5> /System/Library/PrivateFrameworks/WebBookmarks.framework/WebBookmarks
0x371da000 - 0x37b09fff WebCore armv7 <06c849df1ad435aeb8b6130d85cee5df> /System/Library/PrivateFrameworks/WebCore.framework/WebCore
0x37b0a000 - 0x37be7fff WebKit armv7 /System/Library/PrivateFrameworks/WebKit.framework/WebKit
0x37c92000 - 0x37c99fff XPCObjects armv7 <723fe314ab95381cbfa69a0000005692> /System/Library/PrivateFrameworks/XPCObjects.framework/XPCObjects
0x37dec000 - 0x37e27fff iCalendar armv7 <1c4486846efd3c9480174d9e7df8cec6> /System/Library/PrivateFrameworks/iCalendar.framework/iCalendar
0x37f3e000 - 0x37f76fff iTunesStore armv7 /System/Library/PrivateFrameworks/iTunesStore.framework/iTunesStore
0x387b9000 - 0x387bffff libAccessibility.dylib armv7 /usr/lib/libAccessibility.dylib
0x387c0000 - 0x387d6fff libCRFSuite.dylib armv7 <5a8a3d18a1ff3c97bd773705fef2d81c> /usr/lib/libCRFSuite.dylib
0x387ee000 - 0x387fafff libMobileGestalt.dylib armv7 /usr/lib/libMobileGestalt.dylib
0x3880c000 - 0x3880cfff libSystem.B.dylib armv7 <7aeeab280f7e361e9986d962d0fa5281> /usr/lib/libSystem.B.dylib
0x3892e000 - 0x3893afff libbsm.0.dylib armv7 <3870b1c8b1783b788bd51da1a04eae6e> /usr/lib/libbsm.0.dylib
0x3893b000 - 0x38944fff libbz2.1.0.dylib armv7 /usr/lib/libbz2.1.0.dylib
0x38945000 - 0x3898ffff libc++.1.dylib armv7 /usr/lib/libc++.1.dylib
0x38990000 - 0x389a3fff libc++abi.dylib armv7 <4b8520bc534231ae97ce146e076bc7bf> /usr/lib/libc++abi.dylib
0x389d4000 - 0x38ac1fff libiconv.2.dylib armv7 /usr/lib/libiconv.2.dylib
0x38ac2000 - 0x38c0bfff libicucore.A.dylib armv7 /usr/lib/libicucore.A.dylib
0x38c13000 - 0x38c13fff liblangid.dylib armv7 /usr/lib/liblangid.dylib
0x38c16000 - 0x38c1dfff liblockdown.dylib armv7 <224c65d491603e21a78a00af9e10f012> /usr/lib/liblockdown.dylib
0x38c1e000 - 0x38c33fff liblzma.5.dylib armv7 <4a1f38cbee783a9ea6de94af25d45cc1> /usr/lib/liblzma.5.dylib
0x38efe000 - 0x38f13fff libmis.dylib armv7 <7502589f14733beb963c542fa40438c8> /usr/lib/libmis.dylib
0x38f3c000 - 0x3903afff libobjc.A.dylib armv7 <79e5d714945834e4b2587abfc6c7269c> /usr/lib/libobjc.A.dylib
0x390fe000 - 0x39113fff libresolv.9.dylib armv7 <3ee61a04a99b322e97e179bc03c46cf1> /usr/lib/libresolv.9.dylib
0x39138000 - 0x391bdfff libsqlite3.dylib armv7 /usr/lib/libsqlite3.dylib
0x391be000 - 0x39209fff libstdc++.6.dylib armv7 /usr/lib/libstdc++.6.dylib
0x3920a000 - 0x39230fff libtidy.A.dylib armv7 /usr/lib/libtidy.A.dylib
0x39234000 - 0x392e1fff libxml2.2.dylib armv7 <28dcf6ee713b387ebb763d11d4b3cd37> /usr/lib/libxml2.2.dylib
0x392e2000 - 0x39302fff libxslt.1.dylib armv7 /usr/lib/libxslt.1.dylib
0x39303000 - 0x3930ffff libz.1.dylib armv7 <3ea49513bc023326be68e35324c11d0e> /usr/lib/libz.1.dylib
0x39310000 - 0x39313fff libcache.dylib armv7 <91862e82d5063531b4fb4da9a19e5365> /usr/lib/system/libcache.dylib
0x39314000 - 0x3931afff libcommonCrypto.dylib armv7 /usr/lib/system/libcommonCrypto.dylib
0x3931b000 - 0x3931dfff libcompiler_rt.dylib armv7 <6ac449c92d743640a23d9d1ebe0b48a9> /usr/lib/system/libcompiler_rt.dylib
0x3931e000 - 0x39323fff libcopyfile.dylib armv7 <87bcae8743ab35c8a070ac95b7d57acb> /usr/lib/system/libcopyfile.dylib
0x39324000 - 0x39359fff libcorecrypto.dylib armv7 <04b464137fc2304b84eeed1a5418f4a8> /usr/lib/system/libcorecrypto.dylib
0x3935a000 - 0x39377fff libdispatch.dylib armv7 <9323bb560d4e3a3fb41efdc78bd0cf94> /usr/lib/system/libdispatch.dylib
0x39378000 - 0x39379fff libdnsinfo.dylib armv7 /usr/lib/system/libdnsinfo.dylib
0x3937a000 - 0x3937bfff libdyld.dylib armv7 /usr/lib/system/libdyld.dylib
0x3937c000 - 0x3937cfff libkeymgr.dylib armv7 /usr/lib/system/libkeymgr.dylib
0x3937d000 - 0x39382fff liblaunch.dylib armv7 /usr/lib/system/liblaunch.dylib
0x39383000 - 0x39386fff libmacho.dylib armv7 <965ab939e24935e7a3a65981574a7745> /usr/lib/system/libmacho.dylib
0x39387000 - 0x39388fff libremovefile.dylib armv7 <295706037a5238b4aa145df7b9354a0e> /usr/lib/system/libremovefile.dylib
0x39389000 - 0x39389fff libsystem_blocks.dylib armv7 <50a01a02f573317fbd21e1070b0afc7d> /usr/lib/system/libsystem_blocks.dylib
0x3938a000 - 0x39410fff libsystem_c.dylib armv7 /usr/lib/system/libsystem_c.dylib
0x39411000 - 0x39417fff libsystem_dnssd.dylib armv7 <6c5ac17133a1366aaeea5dc38dceaf1f> /usr/lib/system/libsystem_dnssd.dylib
0x39418000 - 0x39430fff libsystem_info.dylib armv7 <5a4a4c9da868317db7f17cb616eb32d1> /usr/lib/system/libsystem_info.dylib
0x39431000 - 0x39447fff libsystem_kernel.dylib armv7 <7d409890411a396a9c812f488f8ea99a> /usr/lib/system/libsystem_kernel.dylib
0x39448000 - 0x39464fff libsystem_m.dylib armv7 <036ea0321da038e8b69a0c4413da00fe> /usr/lib/system/libsystem_m.dylib
0x39465000 - 0x39473fff libsystem_network.dylib armv7 /usr/lib/system/libsystem_network.dylib
0x39474000 - 0x3947bfff libsystem_notify.dylib armv7 /usr/lib/system/libsystem_notify.dylib
0x3947c000 - 0x3947dfff libsystem_sandbox.dylib armv7 <45bb99d46408351a9c61b5326032adea> /usr/lib/system/libsystem_sandbox.dylib
0x3947e000 - 0x3947efff libunwind.dylib armv7 /usr/lib/system/libunwind.dylib
0x3947f000 - 0x39494fff libxpc.dylib armv7 <7f983066ea4c3c119f3e2344a04fef6e> /usr/lib/system/libxpc.dylib

I searched web about this error and find that it is a crash log that accord when app faced with a no handled exception. As I found normally this file send to developer as .crash file but I have not .crash file for symbolizing this exception. so how can symbolicate this error?

A: Save the given content into a file with the extension "crash", drag it into the organizers Device Logs menu under Library and let it do the symbolication.
Once it symbolicated it, and all the required data (correct dSYM files for that build) is available, you should see the methods and line numbers in your app that lead to this exception.


text:
Q: Impact of changing existing constraint name in Oracle DB I have few constraint_name which start with SYS_Cn (e.g.: SYS_C00323441). I need to alter it and rename with a proper naming convention.
But I am concerned whether altering of constraint name will have any impact on the DB?
Will it make make any objects invalid?
Or what are the possible scenarios it could generate?
Kindly provide me with the info.
Thanks in advance!

redpajama_set_name: RedPajamaStackExchange


text:
Q: How can I cross-compile GLEW on ubuntu to windows for a program I am cross-compiling? I am working on a little project with OpenGL, GLU, freeGLUT, GLEW, and SOIL (an image loader for opengl textures). I would like to cross-compile my project to windows, as it is eventually going to be a game I plan to sell, and more people use Windows than Linux. Unfortunately, the cross-compiler I am using, MinGW, does not support the pre-built libraries of GLEW on the GLEW website.
I have the GLEW source code bundle downloaded, how can I compile that into the libglew32.a (and two other files I forget the name of, one is a static version I think) files I need? There is a makefile already included, should I use that? (I'm just not sure if that will make a library usable for MinGW)
TL;DR How do I compile GLEW for MinGW on ubuntu?

A: When creating software that's intended to run on several platforms and you're planning to cross compile, it's always a good idea to include the sources of 3rd party libraries (or the libraries themself if you don't have the source code) into your projects source and build tree.
Ideally everything can be built out-of-source-tree, but sometimes (often) that's not the case, so you've to do several builds manually, copying the resulting binaries at some place your main project's build system can access them.
For cross compiling it usually boils down to exactly specify which toolchain binaries to use. For example on Linux the MinGW cross compilers usually are named something like i686-w64-mingw32-… (or similar). When configuring the 3rd party libraries build you've to specify which ones to use. Depending on the build system this either happens through the CC, CXX, LD and some other environment variables, or through the BUILD, HOST and TARGET variables (see here https://stackoverflow.com/a/5139451/524368).
The best situation is, if you can integrate everything that's 3rd party into your projects build system, because that relieves you from manually managing that. Personally I've come to like the CMake build system a lot, because it supports out-of-tree builds and if you've got libraries that use CMake themself you can simply copy their source trees into a subdirectory of your project and include their CMake configuration.
Note that's it's often a valid option to replace a projects build system if the build itself is not too complicated (replacing the build system of something like the Linux kernel or ffmpeg is madness, replacing the build system of something like GLFW may be a viable option).


text:
Q: How can I make a circle bounce in a window? I just made this program as a practice I want to make the circle bounce from end to end which I came up in this source codes can you make if happen.
import PyQt5,sys
from PyQt5 import QtCore,QtGui,QtWidgets
from PyQt5.QtCore import Qt,QTimer,QPoint
from PyQt5.QtWidgets import QWidget,QApplication,QMainWindow
from PyQt5.QtGui import QPainter

class Circle(QWidget):
    def __init__(self):
        QMainWindow.__init__(self)
        self.resize(250,500)
        self.setWindowTitle("Bounce-Man")
        self.color = Qt.red
        self.fixedplace = 125
        self.mover = 450

    def paintEvent(self,event):
        bouncer.setPen(Qt.black)
        bouncer.setBrush(self.color)
        bouncer.drawEllipse(QPoint(self.fixedplace,self.mover),50,50)
    @QtCore.pyqtSlot()
    def timer(self):
        timer = QTimer()
        while self.mover >=50:
            timer.start(1000)
            if self.mover == 50:
                self.mover = 450
            self.mover -= 1
            self.update()

if __name__ == "__main__":
    window = QApplication(sys.argv)
    app = Circle()
    app.show()
sys.exit( window.exec_() )

A: You must use a QTimer to call a function that updates the position, do not use a while loop:
from PyQt5 import QtCore, QtGui, QtWidgets

class Circle(QtWidgets.QWidget):
    def __init__(self, parent=None):
        super(Circle, self).__init__(parent)
        self.resize(250,500)
        self.setWindowTitle("Bounce-Man")
        self.color = QtGui.QColor(QtCore.Qt.red)
        self.rect_circle = QtCore.QRect(0, 0, 50, 50)
        self.rect_circle.moveCenter(QtCore.QPoint(self.width()/2, self.rect_circle.height()/2))
        self.step = QtCore.QPoint(0, 5)
        self.y_direction = 1

        timer = QtCore.QTimer(self, interval=30)
        timer.timeout.connect(self.update_position)
        timer.start()

    def paintEvent(self,event):
        bouncer = QtGui.QPainter(self)
        bouncer.setPen(QtCore.Qt.black)
        bouncer.setBrush(self.color)
        bouncer.drawEllipse(self.rect_circle)

    @QtCore.pyqtSlot()
    def update_position(self):
        if self.rect_circle.bottom() > self.height() and self.y_direction == 1:
            self.y_direction = -1
        if self.rect_circle.top() < 0 and self.y_direction == -1:
            self.y_direction = 1
        self.rect_circle.translate(self.step * self.y_direction)
        self.update()

if __name__ == "__main__":
    import sys
    window = QtWidgets.QApplication(sys.argv)
    app = Circle()
    app.show()
    sys.exit( window.exec_() )


text:
Q: Images uploads with old url and wont show up i have migrated from host to my new host
everything is working good but when i upload a image to my media it goes with old URL and wont even show up
the thing is the image actually uploads , i know that from filezilla cause it goes into the uploads folder
what is the problem? and how can i fix it?

A: Edit functions.php
If you have access to the site via FTP, then this method will help you quickly get a site back up and running, if you changed those values incorrectly.

*

*FTP to the site, and get a copy of the active theme's functions.php file. You're going to edit it in a simple text editor (like notepad) and upload it back to the site.

*Add these two lines to the file, immediately after the initial "

update_option('siteurl','http://example.com');
update_option('home','http://example.com');
Use your own URL instead of example.com, obviously.

*Upload the file back to your site, in the same location. FileZilla offers a handy "edit file" function to do all of the above rapidly; if you can use that, do so.

*Load the login or admin page a couple of times. The site should come back up.

*Repeat the above steps, but remove those lines. IMPORTANT: Do NOT leave those lines in there. Remove them immediately after the site is up and running again.


text:
Q: pd.read_csv ("file name.csv) fails to run My PD.read_csv in Pandas is not importing my .csv file for visual representation.It keeps returning an error message. What could be the problem?
I have tried
data=pd.read_csv('Sample-Spreadsheet-10-rows.csv' encoding = "utf-8")
print data.head

This code has refused to compile.

A: Missing comma before encoding
data=pd.read_csv('Sample-Spreadsheet-10-rows.csv', encoding = "utf-8")

A: You can check this answer : https://stackoverflow.com/a/37136793/15809896 and follow the question and also the answer !


text:
Q: Is there any valid way to show dummy scroll bar in firefox? Is there any valid way to show dummy scroll bar in firefox?

A: If you just want scrollbars to test the look of having a bar, try setting the overflow property:
body { overflow:scroll; }

This will force Firefox to display a scrollbar for your window. For a vertical bar only, use overflow-y instead:
body { overflow-y:scroll; }

This is the best way to force scroll bars.


text:
Q: Convergence of improper integral $\int_{0}^{\infty} \frac{\sin(x)}{x^{1/3}} dx$ I first tried to separate the integral from 0 to 1 and 1 to $\infty$ but it didn't work because the upper bound is divergent. Any ideas? Thanks in advance.

A: \begin{align*}
\int_{0}^{\infty}\dfrac{\sin x}{x^{1/3}}dx&=\int_{0}^{1}\dfrac{\sin x}{x^{1/3}}dx+\int_{1}^{\infty}\dfrac{\sin x}{x^{1/3}}dx,
\end{align*}
where $\left|\dfrac{\sin x}{x^{1/3}}\right|\leq\dfrac{1}{x^{1/3}}$ on $[0,1]$ and hence the first improper integral converges absolutely.
For the second improper integral, note that
\begin{align*}
\int_{1}^{\infty}\dfrac{\sin x}{x^{1/3}}dx&=-\dfrac{\cos x}{x^{1/3}}\bigg|_{x=1}^{x=\infty}-\dfrac{1}{3}\int_{1}^{\infty}\dfrac{\cos x}{x^{4/3}}dx\\
&=\cos 1-\dfrac{1}{3}\int_{1}^{\infty}\dfrac{\cos x}{x^{4/3}}dx,
\end{align*}
and $\left|\dfrac{\cos x}{x^{4/3}}\right|\leq\dfrac{1}{x^{4/3}}$ on $[1,\infty)$ and hence $\displaystyle\int_{1}^{\infty}\dfrac{\cos x}{x^{4/3}}dx$ converges absolutely.


text:
Q: UIScreenEdgePanGestureRecognizer to activate SWRevealViewController pan gesture I am using SWRevealViewController for sidebars and I have to use swipe for my previous and next stories and edge pan for sidebars.
The reason I use UIScreenEdgePanGestureRecognizer instead of PanGestureRecogniser is because swipe will end up call pan gesture which causes the whole page a mess. I hoping there is a way to call pan gesture when edge pan recogniser activated instead of using this:
[self.view addGestureRecognizer:[MainViewController sharedInstance].revealViewController.panGestureRecognizer];

[[BTHomeViewController sharedInstance].revealViewController.panGestureRecognizer requireGestureRecognizerToFail: left];
[[BTHomeViewController sharedInstance].revealViewController.panGestureRecognizer requireGestureRecognizerToFail: right];

I want to use delegate of SWRevealVC. If there is any other way, please suggest it to me.
UIScreenEdgePanGestureRecognizer *panLeft = [[UIScreenEdgePanGestureRecognizer alloc] initWithTarget:self action:@selector(_handleRevealGesture:)];
[panLeft setEdges:UIRectEdgeLeft];
panLeft.minimumNumberOfTouches = 1;
panLeft.maximumNumberOfTouches = 1;
[self.view addGestureRecognizer:panLeft];

Delegate Methods of SWRevealVC
// The following methods provide a means to track the evolution of the gesture recognizer.
// The 'location' parameter is the X origin coordinate of the front view as the user drags it
// The 'progress' parameter is a positive value from 0 to 1 indicating the front view location relative to the
// rearRevealWidth or rightRevealWidth. 1 is fully revealed, dragging ocurring in the overDraw region will result in values above 1.
- (void)revealController:(SWRevealViewController *)revealController panGestureBeganFromLocation:(CGFloat)location progress:(CGFloat)progress;
- (void)revealController:(SWRevealViewController *)revealController panGestureMovedToLocation:(CGFloat)location progress:(CGFloat)progress;
- (void)revealController:(SWRevealViewController *)revealController panGestureEndedToLocation:(CGFloat)location progress:(CGFloat)progress;

A: To replace UIPanGestureRecognizer with UIScreenEdgePanGestureRecognizer just do this:

*

*Go to SWRevealViewController

*Find and replace UIPanGestureRecognizer with
UIScreenEdgePanGestureRecognizer

*Most IMPORTANT set edges
_panGestureRecognizer.edges = UIRectEdgeLeft;


text:
Q: Routing Rules with VPN Im newbie with this network things and need some help. I have setup like this
 ------------         ------------         ------------
|     A      |       |     B      |       |     C      |
| 10.148.x.x |-------| 10.184.x.x |-------| 192.168.x.x|
|    APP     |       |    VPN     |       |   VPN      |
 ------------         ------------         ------------

I have a topology like this. Where B and C are connected as tunnel VPN site-to-site. I want to send traffic (e.g ICMP/API REQ/etc) from A to C through B and vice versa. Both A and C will received incoming traffic from B, not from real source (So, for example when C PING-ing B, B will direct that PING to A and tell A that the source of ping is from B). After surfing on many problems I found this rules works on me with IPTABLES and applied to B.
This is routing for A to C:
-A PREROUTING -s 10.148.x.x -d 10.184.x.x -p tcp/icmp -j DNAT --to-destination 192.168.x.x
-A FORWARD -s 10.148.x.x -d 192.168.x.x -p tcp/icmp -j ACCEPT
-A POSTROUTING -o eth0 -j MASQUERADE

This is routing for C to A:
-A PREROUTING -s 192.168.x.x -d 10.184.x.x -p tcp/icmp -j DNAT --to-destination 10.148.x.x
-A FORWARD -s 192.168.x.x -d 10.148.x.x -p tcp/icmp -j ACCEPT
-A POSTROUTING -o eth0 -j MASQUERADE

Its work great at common server but at this case:
I used TCPDUMP for dump the traffic at B. When C PING-ing B the traffic looks like
10:18:04.706713 IP 192.168.x.x > 10.184.x.x: ICMP echo request, id 49458, seq 12987, length 40
10:18:04.706806 IP 10.184.x.x > 10.148.x.x: ICMP echo request, id 49458, seq 12987, length 40
10:18:04.719587 IP 10.148.x.x > 10.184.x.x: ICMP echo reply, id 49458, seq 12987, length 40
this traffic direct to A but its seems like B cannot reply to 192.168.x.x

When A PING-ing B the traffic looks like the traffic return DUP!
64 bytes from 10.184.x.x: icmp_seq=1 ttl=187 time=48.1 ms
64 bytes from 10.184.x.x: icmp_seq=1 ttl=187 time=48.1 ms (DUP!)
64 bytes from 10.184.x.x: icmp_seq=1 ttl=187 time=48.2 ms (DUP!)
64 bytes from 10.184.x.x: icmp_seq=1 ttl=187 time=48.2 ms (DUP!)

from man ping:

Duplicate and Damaged Packets
ping will report duplicate and damaged packets. Duplicate packets
should never occur, and seem to be caused by inappropriate link-level
retransmissions. Duplicates may occur in many situations and are
rarely (if ever) a good sign, although the presence of low levels of
duplicates may not always be cause for alarm.
Damaged packets are obviously serious cause for alarm and often
indicate broken hardware somewhere in the ping packet's path (in the
network or in the hosts).

What did i missed?
EDITED: I'm so sorry if I'm not clear deliver the problem. Now I edited the IP, so the IP shown above all are Private IP instead of Public IP. There is no tunnel in A-B and tunnel VPN just between B-C. For this case, my user just want both A and C just hit and know IP B. Therefore, Either A and C just hit B.

A: You are making things way to complicated. In your setup, you are mapping the complete IP range 11.0.0.0/8 to 192.0.0.0/8 in one direction and in the other direction to 10.0.0.0/8. This implies that at site B, none of the 11.0.0.0/8 IPs will be reachable and directly useable.
First, 11.0.0.0/8 and 192.0.0.0/8 are public IP ranges which exists inside the internet, this is not meant for private use. How should your pc know if the public or the private ip is meant?
you should stick in your setup to the dedicated private ip ranges, which are 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. These should be more than enough private ips, I doubt that you have 24 million devices at each site.
If I were you, I would setup the topology that the site-to-site VPN tunnel A-C is direct, so you have A-C and A-B as seperate tunnels. But there may be cases where this is not possible / wanted, I will assume that this is one of them. If I were you, I would setup the VPN tunnels with "visible" IPs:
The tunnel A-B is routing 192.0.0.0/8, with the tunnel endpoint inside B as gateway. B-C is routing 10.0.0.0/8 directly with tunnel endpoint inside B as gateway.
That way, you do not have to mess with DNAT rules, all three IP ranges are fully useable and visible from all three sites. But please remember to change those subnets (for example to 10.1.0.0/16. 10.2.0.0/16 and 10.3.0.0/16)
[edit]
And, if you really want to make your setup working, and set aside all warnings from my side: you need to remove the masquerade rule, and replace it with two SNAT rules.
a MASQUERADE target replaces ALL source IPs with the IP of the gateway, making it impossible for the destination to know from which ip the request came from. This is obviously not what you wanted...
[edit2] Concerning the updated question:
a) "hide" the vpn behind B (the typical home office scenario) - this implies that the app cannot open an connection to C, C has to open the connection to A.

*

*remove DNAT rule

*modify MASQUERADE rule (you want to masquerade traffic only in one direction): -t nat -A POSTROUTING -s 192.168.0.0/16 -o eth0 -j MASQUERADE
b) "publish" the routing connection to the whole app network: in this scenario, you will completely remove DNAT and MASQUERADE rules, and do it via routing: on site A) : route add -net 192.168.0.0/16 gw <place IP of B here>10.148.0.0
c) the virtual IP mapping scenario: The idea behind this scenario is to create a virtual IP, which is being used to access a server which stands in an private subnet not reachable otherwise. In this scenario, you need a full NAT (DNAT and SNAT) and an IP, which is not used anywhere. And plus, the correct routing needs to be in place, too... This is the most complicated scenario, since you are new to network things (as you say) I clearly discourage the usage of this solution.


text:
Q: Suggestions for attempting to rotate an image in the header I want an image to rotate about 45 degrees. I'm working in Atom with Bootstrap. I have tried looking on the documentation however, I have not found anything that addresses that challenge.

A: You could use a CSS transform property to rotate your image 45 degrees.
.your-image-class {
  transform: rotate(45deg);
}


text:
Q: Avoid c++ program from breaking with large inputs (cin) #include <iostream>

int main() {
char test;
std::cin >> test;
std::cout << test << std::endl;
}

Hi, I want to make my program as userproof as possible, and this was just a test i was doing. When I input about 17,000 1's the program starts printing ¿ and keeps on printing ¿ whenever I press return.
I want to know if there is a way of stopping this inputs from breaking the program. Is it a problem with ctrl+V or with the size of the input? any help is greatly appreciated.


text:
Q: global controller variable not working I'm running CakePHP 2.4.1 and PHP 5.5.3.
I read here about how to create/write to/access a global variable, but it's not working for me. I'm doing something like this:
class SploopsController extends AppController {
    public $crung;

    public function process() {
        $this->crung = 'zax';
    }

    public function download() {
        $this->response->body($this->crung);
        $this->response->type('text/plain');
        $this->response->download('results.txt');
        return $this->response;
    }
}

But the downloaded file results.txt is blank, i.e. $this->crung is empty. (If I replace $this->crung with a simple string like 'Granjo' it works as intended.) Does anyone have an idea of what's going wrong?
Additionally, Configure::write and Configure::read aren't working for me either (if I call each within a function of the Controller).
Here's the context: I create an array with results to a query in process(), and display them in process.ctp, and I want to have a button that can download these results to a text file in a more text friendly format. So I want to make a global array, that I can modify in process() and then access in download().
Thanks!

A: Just call procees before setting
public function download() {
    $this->process();
    $this->response->body($this->crung);
    $this->response->type('text/plain');
    $this->response->download('results.txt');
    return $this->response;
}

Edit
public function process() {
    if (!empty($this->request->data)) { // assuming you're processing the user entered data by means of post
        $this->Session->write('crung', 'zax');
        $this->Session->write('data', $this->request->data);
    }
}

public function download() {
    $this->crung = $this->Session->read('crung');
    $data = $this->Session->read('data'); // you can process the data in the way you want.

    $this->response->body($this->crung);
    $this->response->type('text/plain');
    $this->response->download('results.txt');
    return $this->response;
}

A: you need to call process() function before use $this->crung like as below
public function process() {
    $this->crung = 'zax';
}

public function download() {
    $this->process();
    $this->response->body($this->crung);
    $this->response->type('text/plain');
    $this->response->download('results.txt');
    return $this->response;
}

else you can use beforeFilter() function that will be called before your download() function. This is useful when you need to assign values
public function beforeFilter()
{
     $this->crung = 'zax';
}


text:
Q: How to get the data from list without using iterator in c# i have a list contains set of strings, i want to fetch the data present in the list based on index, with out using iterator.. is there any functions like get() or getat() some sort of method using which we can fetch?

A: myList[index] is the way to go
List<string> myList = new List<string>();
myList.Add("string 1");
myList.Add("String 2");

Console.WriteLine(myList[0]); // string 1
Console.WriteLine(myList[1]); // String 2

A: List<string> myList = new List<string();
//add some elements to the list
//then get the third element
string thirdElement = myList[2];

A: You can just do:
item = list[i];

A: Use the overloaded index operator.
List<String> list; // ... initialize, populate list
String element = list[1]; // get the element at index 1

A: If your collection implements IList<T>, just use indexer. Otherwise, if your collection only allows forward-only access (that is, only implements IEnumerable<T>) you can use ElementAt() method, but it still uses iterator under the hood.

A: I don't know what kind of list you're talking about exactly, but most collections in .net have a CopyTo function, and you can access individual items with the [] operator.

A: List<string> list = new List<string>();
list.Add("lots of strings");

//If you want to print all the strings you can do:
foreach(string str in list)
   Console.WriteLine(str);

//If you want to modify each string in the list, make each lower case for example,
// you can do. this is working by using the index of the elements in the list:
for(int i = 0; i < list.Count; i++)
   list[i] = list[i].ToLower();

A: If you use the generic type List (or another implementation of IList) you can use the index operator to directly access items at certain positions: item = myList[3]
If you use a type that only implements IEnumerable you should use the ElementAt() function.
What's your reason to avoid the use of iterators?


text:
Q: AngularUI - Google Maps - map is undefined I am trying to use GoogleMaps directive this way:
Controller Methods
$scope.myMarkers = [];

$scope.mapOptions = {
    center : new google.maps.LatLng(35.784, -78.670),
    zoom : 15,
    mapTypeId : google.maps.MapTypeId.ROADMAP
};

$scope.addMarker = function($event) {
    $scope.myMarkers.push(new google.maps.Marker({
        map : $scope.myMap,
        position : $event.latLng
    }));
};

UpdateLocation.html

The map is shown perfectly but in method addMarker I am getting an undefined when $scope.myMap is executed.

A: I believe you have a new scope being created somewhere between your controller definition and the ui-map div and what's happening is that the 'myMap' property is being created on that scope and not on your controller's scope.
To avoid this kind of problems, provide the ui-map directive a proper model. For example:
Controller:
$scope.model = { myMap: undefined };

HTML:

This will force the ui-map directive to store the map content inside $scope.model.myMap and due to the prototypically inheritance of the scopes, the $scope.model object will be available on child scopes but will always belong to the parent scope - your controller's scope.


text:
Q: Getting only last notification on iOS via firebase if not connected to internet The issue is that I want to send push notifications to iOS and I am able to do it via the token to the specific device and everything is working fine but the issue I am facing is that I only get one one notification if my phone is not connected to internet, when I connect it back to the internet.
Like If I send 5 different notifications to a token via POST Request using Postman and I had turned off my Mobile phone Data and my Wifi and after sometime I turn on any one of them then I only receive the last notification which I request out of the 5.

A: You should read about 'non-collapsible' messages in the Firebase documentation if you expect to get all messages.
https://firebase.google.com/docs/cloud-messaging/concept-options?authuser=1 clearly states

Except for notification messages, all messages are non-collapsible by default.

A: Maybe you're sending collapsible messages. And the FCM documentation states that:

If the device is connected but in Doze, a low priority message is
  stored by FCM until the device is out of Doze. And that's where the
  collapse_key flag plays a role: if there is already a message with the
  same collapse key (and registration token) stored and waiting for
  delivery, the old message is discarded and the new message takes its
  place (that is, the old message is collapsed by the new one). However,
  if the collapse key is not set, both the new and old messages are
  stored for future delivery.

You can try sending non-collapsible messages.


text:
Q: Errors while creation of Image for Tizen RD-PQ Reference Device I've compiled the Tizen 2.2 source code, out of 706 packages I got around 704 Packages successfully build. The two packages which are getting failed are systemd and privacy-popup.
When I'm trying to create a image from this build for RD-PQ device I get the following errors for some packages.
INFO: Installing: dosfstools-2.11-1.ar +++++++++++++++++++++++++++++++++  [716/725]
INFO: Installing: bluetooth-firmware-b +++++++++++++++++++++++++++++++++  [717/725]
INFO: Installing: unzip                +++++++++++++++++++++++++++++++++  [718/725]
INFO: Installing: gettext-runtime      +++++++++++++++++++++++++++++++++  [719/725]
/sbin/ldconfig: /usr/lib/libSEC_OMX_Vdec.so.0 is not a symbolic link

/sbin/ldconfig: /usr/lib/libSEC_Resourcemanager.so.0 is not a symbolic link

/sbin/ldconfig: /usr/lib/libsrpapi.so.0 is not a symbolic link

/sbin/ldconfig: /usr/lib/libcscexynos4.so.0 is not a symbolic link

/sbin/ldconfig: /usr/lib/libsecosal.so.0 is not a symbolic link

/sbin/ldconfig: /usr/lib/libSEC_OMX_Core.so.0 is not a symbolic link

/sbin/ldconfig: /usr/lib/libsecmfcencapi.so.0 is not a symbolic link

/sbin/ldconfig: /usr/lib/libsecbasecomponent.so.0 is not a symbolic link

/sbin/ldconfig: /usr/lib/libSEC_OMX_Venc.so.0 is not a symbolic link

/sbin/ldconfig: /usr/lib/libSEC_OMX_Adec.so.0 is not a symbolic link

/sbin/ldconfig: /usr/lib/libsecmfcdecapi.so.0 is not a symbolic link

INFO: Installing: libgomp              +++++++++++++++++++++++++++++++++  [720/725]
INFO: Installing: fsync-1.1-1.armv7l.r +++++++++++++++++++++++++++++++++  [721/725]
INFO: Installing: strace-4.5.20-3.armv +++++++++++++++++++++++++++++++++  [722/725]
INFO: Installing: vim-common-7.3.382-2 +++++++++++++++++++++++++++++++++  [723/725]
INFO: Installing: net-tools            +++++++++++++++++++++++++++++++++  [724/725]
INFO: Installing: eglibc-debugframe    ++++++++++++++++++++++++++++++++++ [725/725]

[PKG_SMACK][E][__pkg_smack_register_package,99] [smack] app_install(ui-gadget::client)
[PKG_SMACK][E][__pkg_smack_register_package,101] [smack] app_install(ui-gadget::client), result = [0]
[PKG_SMACK][E][__pkg_smack_setup_path,230] [smack] app_setup_path(ui-gadget::client, /opt/usr/apps/ui-gadget::client/shared/data, 2)
[PKG_SMACK][E][__pkg_smack_setup_path,232] [smack] app_setup_path(), result = [-1]
[PKG_SMACK][E][__pkg_smack_enable_permissions,196] [smack] app_enable_permissions(ui-gadget::client, 1)
[PKG_SMACK][E][__pkg_smack_enable_permissions,198] [smack] app_enable_permissions(ui-gadget::client, 1), result = [0]
INFO: Applying configurations ...
qemu: Unsupported syscall: 369
qemu: Unsupported syscall: 369
qemu: Unsupported syscall: 369
qemu: Unsupported syscall: 369
qemu: Unsupported syscall: 369
qemu: Unsupported syscall: 369
qemu: Unsupported syscall: 369
qemu: Unsupported syscall: 369
passwd: password expiry information changed.

This is part of a log. At the end of the build I'm getting qemu: Unsupported syscall: 369 error. But after all this errors the image creation is successful and I'm getting the final tar.gz file in mic-output.
I've tried flashing the image on to the device and noticed that some of the functionality on the device are not working properly(e.g, the back button does not work in some of the applications)
Can anyone help me in solving the above error or if the above error is not to be considered since I'm getting the final image, is it a valid full image which I can use for RD-PQ device??

A: The packages systemd and privacy-popup were failing due to a rpm issue. The errors in the package can be removed by adding following line to the spec file as very first line
%define __debug_package %{nil}

This will solve the build issues of the packages which show make errors during compilation.


text:
Q: Defining 0^0 to be 1 In a script, I need to define $0^0=1$ to simplify the writing of my functions.
I read this question : Could I define 0^0 to be 1?
I don't understand the codes (I could copy/paste but I won't learn).
In the second answer he does this :
Unprotect[Power];
Power[0|0., 0|0.] = 1
Protect[Power]

I understand than Unprotect allows us to modify the definition of the function.
But what I don't understand is the vertical bar | : what does it mean ?
In fact I need to understand precisely the meaning of Power[0|0., 0|0.] = 1.
I know it defines $0^0=1$ but I don't understand the line.
Also, in the other answer, they use the symbol /;. What does it mean ??


text:
Q: Pausing a Thread I am using following code to create and execute thread i need to stop it but cant see thread .Sleep
any ideas how can i stop for a while the execution there?
var t = new Thread(() =>
{
try
   {
           //Line 1
             Pause here
           //Line 2
             Pause here
           //Line 3
   }
   catch (Exception ca)
   {
          MessageBox.Show(ca.Message);
   }
   });
   t.SetApartmentState(ApartmentState.STA);
   t.Start();

A: If you mean that you want to instruct the Thread to wait at a particular checkpoint until some other Thread tells it to continue, one good option is to use AutoResetEvent.

A:   t.SetApartmentState(ApartmentState.STA);

I'll work from the assumption that this was intentional.  Couple of things you have to do to meet the STA contract.  You have to pump a message loop, call Application.Run().  And you cannot pause, that blocks any marshaled call and makes deadlock very likely.
Not a problem, when you pump a message loop you're always in an idle 'pause' state.  Make code run just as you'd normally do in a GUI main thread.  Application.ExitThread ends the thread.

A: Use the static method Thread.Sleep(int) inside your delegate
http://msdn.microsoft.com/en-us/library/d00bd51t.aspx
Suspends the current thread for a specified time.

A: Are you looking for the System.Threading.Thread.Sleep() method?

A: add this line at the top of your code:
using System.Threading;

then you can see Thread.Sleep()


text:
Q: Proper way to interpret this dereference operation? I've seen this example in a text book and am a little confused how to interpret the operator precedence rules. Given this struct:
   typedef struct {
   char *data;
   size_t start, end;
   } str_wends;

Let B be declared as a pointer to this struct,that is.
   str_wends *B = malloc(sizeof(str_wends));

and assume B->start != 0,
then this should be a legal construct:
   &B->data[B->start]

which will return a reference to the string offset by B->start. The question is how to interpret the precedence rules. Since we know that -> and [] have the same precedence and bind left to right, why is B->Start evaluated before B->data[].

A: Actually, it doesn't matter whether B->start or B->data is "evaluated" first.  The result of interest is address of the referenced element, which is the sum of the base address and the product of the index and the size of the element.  The two addends are independent, meaning that the order of their evaluation is irrelevant.
The result of the addition is an lvalue.  Evaluated on the right-hand side of an assignment expression, it generates a FETCH.  Evaluated on the left-hand side, it generates a STORE.

A:
Since we know that -> and [] have the same precedence and bind left to right, why is B->Start evaluated before B->data[].

This is a common misconception that just won't die.
Precedence and evaluation order are unrelated.
Precedence rules tell us what your statement means; which tokens form operands to which operators. It tells us that your code is equivalent to &(B->data[B->start]), not (&B->data)[B->start].
The order in which those operands are evaluated with respect to one another is guided by completely separate rules; in this case, it's obvious that B->Start must be evaluated before the surrounding B->data[].
University professors really need to stop saying that a higher precedence leads to something being "executed" "before" some other thing; it absolutely does not.

A: Concerning this:
&B->data[B->start]

you assert in comments that:

If I read the tokens from left to right, the operators are ->, [], ->

But those are not the operators reading left to right: you're including the closing ] with the opening [, even though the -> comes between them. That doesn't make any sense. When you see [expression], the inner expression doesn't have a precedence with respect to [] at all - it's an argument to it.
The code tokenizes as:
& B -> data [ B -> start ]

and the grammar rule for [] is approximately:
lvalue [ rvalue ]

This must reduce to lvalue:(B->data) [ rvalue:(B->start) ].
It cannot reduce to something like B -> (data [ B) -> (start ]), it simply isn't well-formed. This is an issue of grammar, not precedence.


text:
Q: Why is there a π phase shift in Fig.4 compare to R01 shown in Fig.3? About  Kim 's delayed choice quantum eraser experiment.

Is it possible to adjust the phase of interference fringes from  $D_1$ and $D_2$ by adjusting the distance of $D_0$ screen?... Shouldn't they be in the same phase? Why is there a $π$ phase shift?
Is it possible to adjust the phase of them and  make them form into a same interference fringe?

A:
I  just find out the Kim 's  paper have already explained this question as a key point ,sort  of .  I don't know the physics and math expression in  the  paper , but I guess because The internal law of physics and mathematics universe make sure that we can't see the wave or particle at the same time ,namely ,make sure the Complementation principle works .


text:
Q: Reading large formatted text file with NumPy I've volunteered to help someone convert a finite element mesh from one format to another (i-deas *.unv to Alberta). I've used NumPy to do some additional shaping of the mesh, but I'm having problems reading the raw text file data into NumPy arrays. I've tried genfromtxt and loadtxt with no success so far.
Some details:
1) All groups are delimited by the header and footer flag "    -1" on its own line.
2) The NODE group has a header "  2411" on its own line. I only want to read alternate lines from this group, skipping each line with 4 integers, but reading the line with 3 Fortran double precision numbers.
3) The ELEMENT connectivity group has a header "  2412" on its own line. All data are integers and only the first 4 columns are required to be read. There will be some empty slots in the NumPy array due to missing values for 2 and 3 node elements.
4) The " 2477" node groups I think I can deal with myself using regular expressions that find which lines to read.
5) The real data file will have about 1 million lines of text, so I'm very keen for it to be vectorized if possible (or whatever NumPy does to read stuff quickly).
Sorry if I've given too much information, and thanks.
The lines below are a sample of parts of the *.unv text file format.
    -1
  2411
  146303         1         1        11
  6.9849462399269246D-001  8.0008842847097805D-002  6.6360238055630028D-001
  146304         1         1        11
  4.1854795755893875D-001  9.1256034628308313D-001  3.5725496189239300D-002
  146305         1         1        11
  7.5541258490349616D-001  3.7870257739063029D-001  2.0504544370783115D-001
  146306         1         1        11
  2.7637569971086767D-001  9.2829777518336010D-001  1.3757239038663285D-001
   -1
   -1
 2412
     9        21         1         0         7         2
     0         0         0
     1         9
    10        21         1         0         7         2
     0         0         0
     9        10
  1550        91         6         0         7         3
   761      3685      2027
  1551        91         6         0         7         3
   761      2380      2067
 39720       111         1         0         7         4
 71854     59536     40323     73014
 39721       111         1         0         7         4
 45520     48908    133818    145014
   -1
   -1
   2477
     1         0         0         0         0         0         0      3022
PERMANENT GROUP1
     7         2         0         0         7         3         0         0
     7         8         0         0         7         7         0         0
     7       147         0         0         7       148         0         0
     2         0         0         0         0         0         0      2915
PERMANENT GROUP2
     7         1         0         0         7         5         0         0
     7         4         0         0         7         6         0         0
     7         9         0         0         7        11         0         0
   -1

A: The numpy methods genfromtxt and loadtxt would be rather difficult to apply on the whole file, as your data has a quite special structure (which changes depending in which node you are). Therefore, I'd suggest the following strategy:

*

*Read the file line by lines, try to determine in which node you are by analysing the line.

*If you are in a node, which has only a few data (and where, for example, you have to read alternating lines, so you can't read continously), read it line by line and process the lines.

*When you reach a section with a lot of data (like the one with the "real data"), use numpys fromfile method to read in the data, like this:
mydata = np.fromfile(fp, sep=" ", dtype=int, count=number_of_elements)
mydata.shape = (100000, 3)    # Reshape it to the desired shape as fromfile
                              # returns a 1D array.

This way, you combine the flexibility of line-by-line processing with the ability to quickly read and convert large chunks of data.
UPDATE: The point is, that you open the file, read it line by line, and when you arrive at a place with a big chunk of data, you pass the file descriptor to fromfile.
Below a simplified example:
import numpy as np

fp = open("test.dat", "r")
line = fp.readline()
ndata = int(line.strip())
data = np.fromfile(fp, count=ndata, sep=" ", dtype=int)
fp.close()

That would read the data from a file test.dat with a content like:
10
1 2 3 4 5
6 7 8 9 10

The first line is read explicitely with fp.read(), processed (the number of integers to be read is determined) and then np.fromfile() reads the appropriate chunk of data and stores it in the 1D-array data.
UPDATE2: Alternatively, you could read the entire text into a buffer, then determine the starting and end positions for the large chunk of data and convert it via np.fromstring directly:
fp = open("test.dat", "r")
txt = fp.read()
fp.close()
# Now determine starting and end positions (startpos, endpos)
# ..
# pass text that portion of the text to the fromstring function.
data = np.fromstring(txt[startpos:endpos], dtype=int, sep=" ")

Or, if it is easy to formulate as one regular expression, you could use the fromregex() directly on the file.


text:
Q: block  delegate methods of class in iphone I am having a problem I am working on a class which is subclass of UITextField.
Which will be used in many classes further.
But I don't want to let user to use it's delegate methods in any way.
Is there any way to do this ?

A: Override setDelegate: so that it throws an exception or logs an instruction on what to do. That way your API users will know what's actually going on.
-(void) setDelegate: (id <UITextFieldDelegate>) delegate
{
    NSLog(@"*** Use the blocks API instead of calling %s", __PRETTY_FUNCTION__);
    [self doesNotRecognizeSelector: _cmd];
}

A: Override the -setDelegate: method such that it never actually sets a delegate. You can just provide an empty method that fails to call super:
-(void) setDelegate:(id<UITextFieldDelegate>) delegate
{
    // this method intentionally empty to prevent a delegate from ever being set
}


text:
Q: Making the content inside grid items equal height in CSS Grid I am trying to figure out how to get two columns of my grid the same height. Here is what I am after:

xxxxxxxxxxxxxxxxx   xxxxxxxxxxxxxxxxxxx
x qqqqqqqqqqqqq x    x qqqqqqqqqqqqqqq x
x qqqqqqqqqqqqq x    x qqqqqqqqqqqqqqq x
x               x    x qqqqqqqqqqqqqqq x
x               x    x qqqqqqqqqqqqqqq x
xxxxxxxxxxxxxxxxx   xxxxxxxxxxxxxxxxxxx

This is where the x's represent a border of a grid (display: grid) and the q's are labels and input fields.
Here is all the code and a link to the same on codepen.
.container {
    font-family: Arial, Helvetica, Sans-Serif;
    color: #666;
    font-size: 12px;
    position: absolute;
    width: 100%;
    margin: 0 auto;
    border: 1px solid #666;
    background-color: #fff;
    height: 100%;
}

.outerGrid {
  display: grid;
  grid-template-columns: 1fr 2fr 3fr 1fr;
  grid-template-rows: 80px 1fr 1fr 30px;
  grid-gap: 20px;
  grid-template-areas:
    "title title title title"
    ". companyInfo contactInfo . "
    ". demoInfo demoInfo . "
    "footer footer footer footer";
}

.companyInfoContainer {
  grid-area: companyInfo;
}

.companyInfoBox {
    padding: 20px;
    border: 1px solid #666;
}

.contactInfoContainer {
    grid-area: contactInfo;
}

.contactInfoBox {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-gap: 20px;
    grid-template-areas: 'contactLeft contactRight';
    border: 1px solid #666;
    padding: 20px;
}

.titleRow {
  display: flex;
  -webkit-box-pack: justify;
  justify-content: space-between;
  align-content: flex-start;
  margin-bottom: 10px;
  color: #333;
  font-size: 16px;
}

.formControl {
    -webkit-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
    display: block;
    height: 37px;
    padding: 5px;
    line-height: 1.25;
    background-color: #fff;
    width: 100%;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: .25rem;
    transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
    margin-bottom: 5px;
    background-image: none;
}

.formTitleTop {
    margin-bottom: 10px;
}

.formTitle {
    margin: 10px 0;
}

...and the html:

Company Information

* Required

Company Name*
<input type="text" class="formControl" value="">

Website (leave blank if not website)

        <input type="text" class="formControl" value="">

Contact Information

* Required

First Name*
<input type="text" class="formControl" value="">

Last Name*
<input type="text" class="formControl" value="">

Role*
<input type="text" class="formControl" value=""><input type="button" value="Add Additional Contacts">

Phone Number*
<input type="text" class="formControl" value="">

Mobile Phone Number
<input type="text" class="formControl" value="">

Email Address*
<input type="text" class="formControl" value="">

codepen: https://codepen.io/GuitarJ/pen/QqZRYR
I can't seem to get the left column to stretch to the height of the right col's height (which I think is the row height too. I was hoping that css grids would have a way to do this, but its hard to search for this exact issue.
I also tried setting the height to 100%, but then it didn't respect the grid-gap and went down too far.
How can I make the left side be the row height?

A: Those grid items are already the same height. They are both the height of the second row, which is 1fr, as defined by grid-template-rows on the grid container.
If you put a border around those two items (.companyInfoContainer & .contactInfoContainer), you'll see what I mean.
revised demo
It seems that you want the bordered children of the grid items (.companyInfoBox and .contactInfoBox) to consume all available height.
Since the grid items are not also grid containers, you can't use grid properties on the children.
An easy and efficient solution would be to make the grid items flex containers. Then you can apply flex properties to the children, which can make them consume free space.
.companyInfoContainer {
   display: flex;
   flex-direction: column;
}

.companyInfoBox {
   flex: 1;
 }

.contactInfoContainer {
  display: flex;
  flex-direction: column;
}

.contactInfoBox {
   flex: 1
}

revised demo
More details: Descendant element not responding to grid properties

A: use display property flex  with item height auto
for example
.flex-container {
display: flex;
width: 400px;
height: auto;

}
.flex-item {
background: red;
width: 100px;
height: auto;
margin: 10px;

}

A: You can manually set the same size if grid doesn't change (you don't insert new elements dynamically or change existing ones vertical size)
.companyInfoBox {
    padding: 20px;
    border: 1px solid #666;
    height: 265px;
}

It's simple and works (taking into accounts restrictions listed above):
pen


text:
Q: how to take string from this type of data? a:2:{i:3;s:16:"GLS PARTICULIERS";i:1;s:16:"GLS PARTICULIERS";}

I have this type of data in multiples rows. What I want is just to take out the name in " " that's it I don't want the whole data. Does anyone know about this? I am using PHP.

A: Try php function unserialize. Assign this data to a variable and then put that variable inside the unserialize function.
$php_array = unserialize($data);

A: Try something like this as said by @Majid and @ADyson
$txt = 'a:2:{i:3;s:16:"GLS PARTICULIERS";i:1;s:16:"GLS PARTICULIERS";}';
$php_array = unserialize($txt);
var_dump($php_array);

php_array will dump all the array and you can see how to fetch that data.

A: $data = 'a:2:{i:3;s:4:"Name";i:1;s:4:"Name";}';
print_r(unserialize($data));
solved this by doing something like this


text:
Q: Find the standard deviation with index and dataframe I have a Dataframe df containing information about people. I need to compute the standard deviation of the weight of people whose name starts with N. This is my code to create the Dataframe:
# 1. Here we import pandas
import pandas as pd
# 2. Here we import numpy
import numpy as np
np.random.seed(0)
df = pd.DataFrame({'Age':[18, 21, 28, 19, 23, 22, 18, 24, 25, 20],
                   'Hair colour':['Blonde', 'Brown', 'Black', 'Blonde', 'Blonde', 'Black','Brown', 'Brown', 'Black', 'Black'],
                   'Length (in cm)':np.random.normal(175, 10, 10).round(1),
                   'Weight (in kg)':np.random.normal(70, 5, 10).round(1)},
                index = ['Leon', 'Mirta', 'Nathan', 'Linda', 'Bandar', 'Violeta', 'Noah', 'Niji', 'Lucy', 'Mark'],)

I should get a single number as a result.
Firstly, I attempted to use the function df.loc, like so:
# 1. Here we import numpy
import numpy as np
# 2. Here we import pandas
import pandas as pd
ans_4 = df.loc[pd.Series(df.index).str.startswith('N'), 'Weight (in kg)'].std()

However, I always get this IndexingError:
---------------------------------------------------------------------------
    IndexingError                             Traceback (most recent call last)
    ~\AppData\Local\Temp/ipykernel_21692/106038441.py in <module>
          3 # 2. Here we import pandas
          4 import pandas as pd
    ----> 5 ans_4 = df.loc[pd.Series(df.index).str.startswith('N'), 'Weight (in kg)'].std()

    ~\anaconda3\lib\site-packages\pandas\core\indexing.py in __getitem__(self, key)
        923                 with suppress(KeyError, IndexError):
        924                     return self.obj._get_value(*key, takeable=self._takeable)
    --> 925             return self._getitem_tuple(key)
        926         else:
        927             # we by definition only have the 0th axis

    ~\anaconda3\lib\site-packages\pandas\core\indexing.py in _getitem_tuple(self, tup)
       1107             return self._multi_take(tup)
       1108
    -> 1109         return self._getitem_tuple_same_dim(tup)
       1110
       1111     def _get_label(self, label, axis: int):

    ~\anaconda3\lib\site-packages\pandas\core\indexing.py in _getitem_tuple_same_dim(self, tup)
        804                 continue
        805
    --> 806             retval = getattr(retval, self.name)._getitem_axis(key, axis=i)
        807             # We should never have retval.ndim < self.ndim, as that should
        808             #  be handled by the _getitem_lowerdim call above.

    ~\anaconda3\lib\site-packages\pandas\core\indexing.py in _getitem_axis(self, key, axis)
       1142             return self._get_slice_axis(key, axis=axis)
       1143         elif com.is_bool_indexer(key):
    -> 1144             return self._getbool_axis(key, axis=axis)
       1145         elif is_list_like_indexer(key):
       1146

    ~\anaconda3\lib\site-packages\pandas\core\indexing.py in _getbool_axis(self, key, axis)
        946         # caller is responsible for ensuring non-None axis
        947         labels = self.obj._get_axis(axis)
    --> 948         key = check_bool_indexer(labels, key)
        949         inds = key.nonzero()[0]
        950         return self.obj._take_with_is_copy(inds, axis=axis)

    ~\anaconda3\lib\site-packages\pandas\core\indexing.py in check_bool_indexer(index, key)
       2386         mask = isna(result._values)
       2387         if mask.any():
    -> 2388             raise IndexingError(
       2389                 "Unalignable boolean Series provided as "
       2390                 "indexer (index of the boolean Series and of "

    IndexingError: Unalignable boolean Series provided as indexer (index of the boolean Series and of the indexed object do not match).
```

What do I need to do to fix the code?

A: You are almost there. Casting df.index to pd.Series is unnecessary and leads to an error as indices get misaligned form the original df. Try:
df.loc[df.index.str.startswith('N'),'Weight (in kg)'].std()

output: 4.261846235299126


text:
Q: Count number of instrution's in an X86 assembly language code I need to count the number of instructions that will be generated for an simple assembly language code . So that even if there is any loop I can count the number of instructions in that loop also.I just need it so that i can determine how many times i can use -p option for each instruction's in he code. I am using masm on widows xp computer .

A: This is actually much more difficult than you would think. (Some would say impossible--see http://en.wikipedia.org/wiki/Halting_problem)
If the code relies on any sort of data (e.g. loading values from RAM), its behavior could change drastically based on what the data contains, and this will affect the number of instructions executed. e.g. if it's a loop, it will probably load its iteration count from memory somewhere. So it could be 100 instructions executed, or 100000000 instructions.


text:
Q: Run directly python script in windows console Is there any way to run directly  python script in windows console such as Unix system?
#! /usr/bin/env python3.3

A: Or create a .BAT file that doubles as a python script:
@echo off
rem = '''
echo This is "%~f0" before Python

python -x "%~f0" %*

echo This is "%~f0" after Python

goto :end
'''

print "------------- Python code starts here --------------"
import sys
print sys.path
print sys.argv
print "------------- Python code ends here ----------------"

rem = '''
:end
rem '''

A: Just double clicking a file with .py extension on Windows executes the script.

A: If you use the Python GUI + command line, you can run any .py file.
http://www.python.org/download/releases/3.3.2/#download


text:
Q: Cannot update Stock Module in Odoo When I use the shell to update the modules, I'm getting these errors:

2015-05-11 21:06:26,987 9822 ERROR db openerp.modules.graph: module purchase: Unmet dependencies: stock_account
  2015-05-11 21:06:26,987 9822 ERROR db openerp.modules.graph: module portal_stock: Unmet dependencies: sale_stock
  2015-05-11 21:06:26,988 9822 ERROR db openerp.modules.graph: module warning: Unmet dependencies: sale_stock, purchase
  2015-05-11 21:06:26,988 9822 ERROR db openerp.modules.graph: module sale_stock: Unmet dependencies: stock_account
  2015-05-11 21:06:26,988 9822 ERROR db openerp.modules.graph: module stock_account: Unmet dependencies: stock

The problem was changing privileges. How can I restore them?

A: This message comes only when  you modify the _depends from  __openerp__.py file  of base module in odoo.
You should set the depended module which are currently require for stock module and update all the module via terminal with your database name.
then this message will be disappeared automatically.


text:
Q: Inout variable set in in UIAlertAction closure not changing value I have a function with an inout paramter: enabled: Bool
The object I'm referencing (I know inout isn't technically a reference...) and setting using this method is a stored property on a UIViewController
var enabled = false
I have multiple booleans triggering different things, and I want to use one method to set them.
So I call the method:
self.determineEnabled(&self.enabled)
Below is the code, and I've used comments to explain whats happening
Code:
func determineEnabled(inout enabled: Bool) {

    if enabled == false {
        enabled = true
   //self.enabled equals true now. This works. Its not in a closure...
    } else {

        let delete = UIAlertAction(title: "Disable", style: .Destructive, handler: { (action) -> Void in

            enabled = false
            print(self.enabled)
            //This doesn't work. the inout variable equals FALSE
            //self.enabled equals true
            //If I set self.enabled = false.. Then it works, but I'm using a method because my app could have dozens of these enabled bools on this view controller.

        let alertController = UIAlertController(title: "Change Bool", message: "", preferredStyle: UIAlertControllerStyle.Alert)

        alertController.addAction(delete)
        self.presentViewController(alertController, animated: true, completion: nil)
    }
}

My app is obviously a more complex than this chunk of code, but I can verify this problem exists within this chuck of code.
I'll be honest that I don't thoroughly understand closures as much as I'd like..
But if I can use self.enabled to correctly change the value of enabled, what is stopping swift from changing setting the inout enabled variable?
UPDATE:
Here is a link from the docs that specifically mention my problem:
https://developer.apple.com/library/ios/documentation/Swift/Conceptual/Swift_Programming_Language/Declarations.html#//apple_ref/doc/uid/TP40014097-CH34-ID545
"There is no copy-out at the end of closures or nested functions. This means if a closure is called after the function returns, any changes that closure makes to the in-out parameters do not get copied back to the original."
Swift evolution on the topic:
https://github.com/apple/swift-evolution/blob/master/proposals/0035-limit-inout-capture.md

A: In Swift, functions are closures. Closures capture state. At the time we encounter the anonymous function containing the code print(self.enabled), self.enabled is true. We know that, because if it were not, we wouldn't be here at all (we'd be in the first wing of the condition, if enabled == false). Therefore when print(self.enabled) is later actually executed, it will print true, because that was the state of things when it captured its value.

A: You said it yourself in your question;

I know inout isn't technically a reference

From the Apple Swift book

An in-out parameter has a value that is passed in to the function,
  is modified by the function and is passed back out of the function
  to replace the original value.

You are modifying the value in a closure that executes some time later when the user interacts with the alert.  At this point determineEnabled has already returned and stored the value of the inout parameter.
If an inout parameter was a reference, like a C-style pointer, then enabled would be pointing to a chunk of memory that stores self.enabled and when the value was modified in the closure, self.enabled would be modified.
You can see how this works if you create a simple class with a boolean property and then pass an instance of this class to your determineEnabled function (without using inout).  Since objects are passed by reference, a subsequent update to the object's property in the closure will be visible anywhere that same object reference is used;


text:
Q: Set input text inside iframe and submit I'm trying to glue together two web services by passing a value from one to the other, unfortunately there's no API or clear way of hacking up the search query so I need to set the value of a input inside an iframe.
Here's the markup for the horrible iframe.
<form id="searchForm" method="post" action="/search/initialSearch">
  <fieldset class="searchFields">
    <input type="text" name="searchTerm" value=""/>
    <input type="submit" value="Find stops"/>
  </fieldset>
</form>

I need to set the searchTerm text and then submit the form.
Note: This is going over mobile, so I would prefer a really lightweight solution

A: just be aware that if your iframe's source is not coming from your server, it is impossible to access its contents with javascript from the page that contains the iframe. If you have access to the contents of the iframe that is coming from another server, then you can access all of the data from the parent page with:
window.top

If you do not have access to the iframe's page, then there is nothing you can do.

A: Are you able to access the web service from your server code?
If so, I'd sack off the iframe and create a proxy on your server. This would keep your HTML clean and lightweight for your intended audience.

A: Isn't it as simple as:
myframe.document.getElementById("searchForm").searchTerm.value = 'hello';
myframe.document.getElementById("searchForm").submit();

Make sure your script runs AFTER the iframe is loaded. Your iframe tag has an onload event that you can use to determine when the page within the frame is loaded.
<iframe src="formPage.html" onload="loaded()" name="myframe" />

A: Here is how to set the value of input in an extern loaded iFrame (No proxy):
const iFrameEl = document.getElementById('form-iframe');
  const innerDoc = iFrameEl.contentDocument ||
    iFrameEl.contentWindow.document;

    const inputEl = innerDoc.getElementById('email-input');

    inputEl.value = 'test@email.com';

Found here
Don't know how to emit submit. But I guess the use of contentDocument might work here as well.


text:
Q: Need help converting apache redirect to nginx I need to migrate from Apache to Nginx and need some help in converting this rule
RewriteRule ^resizer/(.*)x(.*)/r/(.*) resizer/thumb.php?src=http://$3&h=$2&w=$1&zc=1&a=t&s=1

I have following which doesn't seem to work
location /resizer {
    rewrite ^resizer/(.*)x(.*)/r/(.*) resizer/thumb.php?src=http://$3&h=$2&w=$1&zc=1&a=t&s=1 last;
}

Any help on this front is appreciated.

A: this worked for me
rewrite ^/resizer/(.*)x(.*)/r/(.*)$ /resizer/thumb.php?src=http://$3&h=$2&w=$1&zc=1&a=t&s=1 last;


text:
Q: Parsing text with coffeescript apologies for the repeat, but I messed up my question last time
I have some data that looks something like this
[Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object]

where each object looks something like {count: 90, bla: blah, label: "USA", bla2: blah2}
I want to convert each object into the form
{text: "USA", weight: 90}

so total I will have
[{text: "USA", weight: 90},{text: "France", weight: 80}... etc..]

(so change label to text, change count to weight, put them in that order, and ignore any other fields other than count or label)
I need to do this with coffeescript

A: A quick comprehension should do:
arr = [Object, Object, Object...]
result = ({text: o.label, weight: o.count} for o in arr)


text:
Q: Solving extended positive definite system with Cholesky factorization Suppose we have a system of equations:
$$
\begin{bmatrix}
\boldsymbol{A} & \boldsymbol{1} \\
\boldsymbol{1}^\top & 0
\end{bmatrix}
\begin{bmatrix}
\boldsymbol{x} \\
x_0
\end{bmatrix}
=
\begin{bmatrix}
\boldsymbol{b} \\
1
\end{bmatrix}
$$
where $\boldsymbol{A} \succ 0$ is symmetric positive definitive. How would you exploit the Cholesky factorization of $\boldsymbol{A} = \boldsymbol{L}\boldsymbol{L}^\top$ to efficiently solve this system for various right-hand-side $\boldsymbol{b}$?
If there is no efficient trick with the Cholesky factorization, what would you recommend to guarantee decent numerical stability and speed?

A: We have
$$
\mathbf{A}\mathbf{x}+x_0\mathbf{1}=\mathbf{b}, \quad
\mathbf{1}^T\mathbf{x}=1.
$$
Eliminate $\mathbf{x}$ from the first equation and substitute to the second:
$$
\mathbf{x}=\mathbf{A}^{-1}(\mathbf{b}-x_0\mathbf{1})
\quad\implies\quad
\mathbf{1}^T\mathbf{A}^{-1}(\mathbf{b}-x_0\mathbf{1})=1.
$$
This gives
$$
x_0=\frac{\mathbf{1}^T\mathbf{A}^{-1}\mathbf{b}-1}{\mathbf{1}^T\mathbf{A}^{-1}\mathbf{1}}.
$$
So you can first solve using Cholesky the systems
$$
\mathbf{y}=\mathbf{A}^{-1}\mathbf{b}, \quad \mathbf{f}=\mathbf{A}^{-1}\mathbf{1},
$$
and then form $x_0$ and $\mathbf{x}$ as
$$
x_0=\frac{\mathbf{1}^T\mathbf{y}-1}{\mathbf{1}^T\mathbf{f}}, \quad
\mathbf{x}=\mathbf{y}-x_0\mathbf{f}.
$$


text:
Q: Receiving "SSH tunnel creation failed: open failed" from datagrip when testing connection When attempting to connect to a remote mysql server through an ssh tunnel using datagrip on windows 10 as the client, I receive "SSH Tunnel Creation failed: open failed".
I am able to establish and connect to the tunnel successfully with: ssh username@mysqlServer -L 22:remoteHost:3306.
I am using datagrip as the main demonstration of the problem, because it provides some debug information when testing the connection, but I have tried on dbeaver and tableplus, both failed to connect.
Other users in my organization are able to connect to the remote mysql server just fine on macos machines.
Logs from datagrip:
2022-04-18 14:58:14,313 [  57564]   INFO - n.s.s.t.r.JCERandom - Creating new SecureRandom.
2022-04-18 14:58:14,411 [  57662]   INFO - #c.i.s.i.s.sshj - Client identity string: SSH-2.0-IntelliJ__DataGrip_DB-221.5080.224__SSHJ_0.32.0_idea2
2022-04-18 14:58:14,508 [  57759]   INFO - #c.i.s.i.s.sshj - Server identity string: SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.8
2022-04-18 14:58:15,258 [  58509]   INFO - #c.i.s.i.s.sshj - Authentication log: SSH connection to username@mysqlServer:22
 * With altered connection settings:
  - authMethods: PublicKey(privateKeys=[C:\Users\spenc\.ssh\id_rsa, C:\Users\spenc\.ssh\id_dsa, C:\Users\spenc\.ssh\id_ecdsa, C:\Users\spenc\.ssh\id_ed25519, C:\Users\spenc\.ssh\id_xmss], agent=NO), Password, KeyboardInteractive
  - user: username
 * Connected: Socket[addr=mysqlServer/mysqlServer,port=22,localport=63766]
 * Starting authentication
  => none (failure, new auth methods allowed by the server: publickey)
  => publickey C:\Users\spenc\.ssh\id_rsa (success)
2022-04-18 14:58:15,270 [  58521]   INFO - #c.i.d.d.DatabaseSshTunnelEstablisher - SSH tunnel created: 63768:remoteHost:3306
2022-04-18 14:58:15,317 [  58568]   INFO - #c.i.e.r.RemoteProcessSupport - "C:\Program Files\JetBrains\DataGrip 2022.1.1\jbr\bin\java" -Djava.rmi.server.hostname=127.0.0.1 -Duser.timezone=UTC -Xmx750m -Xms128m -Dfile.encoding=UTF-8 -classpath "C:\Program Files\JetBrains\DataGrip 2022.1.1\lib\util_rt.jar;C:\Program Files\JetBrains\DataGrip 2022.1.1\lib\util.jar;C:\Program Files\JetBrains\DataGrip 2022.1.1\lib\groovy.jar;C:\Program Files\JetBrains\DataGrip 2022.1.1\plugins\DatabaseTools\lib\jdbc-console.jar;C:\Users\spenc\AppData\Roaming\JetBrains\DataGrip2022.1\jdbc-drivers\MySQL ConnectorJ\8.0.25\mysql-connector-java-8.0.25.jar" com.intellij.database.remote.RemoteJdbcServer com.mysql.cj.jdbc.Driver
2022-04-18 14:58:15,705 [  58956]   INFO - #c.i.e.r.RemoteProcessSupport - Port/ServicesPort/ID: 58696/63770/RemoteDriverImpld6de775c
2022-04-18 14:58:15,713 [  58964]   INFO - #c.i.e.r.RemoteProcessSupport -
2022-04-18 14:58:15,772 [  59023]   INFO - #c.i.d.d.DatabaseConnectionEstablisher - Connecting to: jdbc:mysql://remoteHost:3306/dbName
2022-04-18 14:58:15,774 [  59025]   INFO - #c.i.d.d.DatabaseConnectionEstablisher - Auth provider: user-pass
2022-04-18 14:58:15,776 [  59027]   INFO - #c.i.d.d.DatabaseCredentialsAuthProvider - Connecting as: username
2022-04-18 14:58:15,778 [  59029]   INFO - #c.i.d.d.DatabaseConnectionEstablisher - Connecting to (rewritten): jdbc:mysql://localhost:63768/dbName
2022-04-18 14:58:15,987 [  59238]   WARN - #c.i.s.i.s.sshj - <<chan#0 / open>> woke to: Opening `direct-tcpip` channel failed: open failed
2022-04-18 14:58:15,989 [  59240]   INFO - #c.i.s.i.s.sshj - Error in `SSHJ local tunnel for SshjSshConnection(username@mysqlServer)@82260ee: Local client /127.0.0.1:63774 ==> Local server localhost:63768 ==> Remote server remoteHost:3306`: net.schmizz.sshj.connection.channel.OpenFailException: open failed
2022-04-18 14:58:16,016 [  59267]   WARN - #c.i.d.d.BaseDatabaseErrorHandler$IOErrorInfo - Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
java.io.EOFException: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
    at com.mysql.cj.protocol.FullReadInputStream.readFully(FullReadInputStream.java:67)
    at com.mysql.cj.protocol.a.SimplePacketReader.readHeader(SimplePacketReader.java:63)
    at com.mysql.cj.protocol.a.SimplePacketReader.readHeader(SimplePacketReader.java:45)
    at com.mysql.cj.protocol.a.NativeProtocol.readMessage(NativeProtocol.java:540)
    at com.mysql.cj.protocol.a.NativeProtocol.readServerCapabilities(NativeProtocol.java:498)
    at com.mysql.cj.protocol.a.NativeProtocol.beforeHandshake(NativeProtocol.java:385)
    at com.mysql.cj.protocol.a.NativeProtocol.connect(NativeProtocol.java:1351)
    at com.mysql.cj.NativeSession.connect(NativeSession.java:157)
    at com.mysql.cj.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:953)
    at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:823)
    at com.mysql.cj.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:453)
    at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:246)
    at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:198)
    at com.intellij.database.remote.jdbc.helpers.JdbcHelperImpl.connect(JdbcHelperImpl.java:639)
    at com.intellij.database.remote.jdbc.helpers.MysqlBaseJdbcHelper.connect(MysqlBaseJdbcHelper.java:244)
    at com.intellij.database.remote.jdbc.impl.RemoteDriverImpl.connect(RemoteDriverImpl.java:55)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at java.rmi/sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:359)
    at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:200)
    at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:197)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.rmi/sun.rmi.transport.Transport.serviceCall(Transport.java:196)
    at java.rmi/sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:562)
    at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:796)
    at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:677)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:676)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:829)
    Suppressed: com.intellij.database.util.AsyncTask$Frame$FrameData: Async frame data: Test Connection -> Prepare connection -> Establish database connection -> Get database credentials -> Perform database connection
2022-04-18 14:58:16,019 [  59270]   INFO - #c.i.e.r.RemoteProcessSupport - Terminating: 127.0.0.1:58696/RemoteDriverImpld6de775c
2022-04-18 14:58:16,054 [  59305]   INFO - #c.i.e.r.RemoteProcessSupport - Process finished with exit code -1

Update: I tried "MySQL Workbench" for Windows and that mysteriously worked immediately. I tried the other clients once more and none of them successfully connected. I'm not adding this as an answer since it's just a workaround and doesn't solve nor illuminate the original problem.


text:
Q: Can't use document.write more than one time in PHP Here is my HTML and I call external PHP
<!DOCTYPE html>

My First Heading

My first paragraph.

and my PHP Script
<?
$strFileName = "poom.bis";
$objFopen = fopen($strFileName, 'r');
if ($objFopen) {
    while (!feof($objFopen)) {
        $file = fgets($objFopen, 4096);
//        echo $file;
        echo "document.writeln('$file'+);";
    }
    fclose($objFopen);
}

$test = "hello world";

echo "document.writeln(
    '
'+
        '
.$test.
'+
        '
test2
'+
        '
test3
'+
    '
'
    );";

?>

It error when using document.write more than one time
What should I do to solve this problem
Please Advice
PS. use echo "document.writeln('$file'+);"; for one time there is no error and show a result

A: First error: your line
echo "document.writeln('$file'+);";

should be
echo "document.writeln('$file');";

(without the plus sign). Also make sure that the file poom.bis doesn't contain a newline, not even at the end. If it does, you have to strip them away (trim()).
Second error was (until you edited it) the use of document.writeIn (which doesn't exist) instead of document.writeln (which does).
Tested and it works.
Also, while I'm at it, since you asked for advice how to solve this problem: look at your browser's error console and try to debug it.

A: echo '';
;