PostId int64 13 11.8M | PostCreationDate stringlengths 19 19 | OwnerUserId int64 3 1.57M | OwnerCreationDate stringlengths 10 19 | ReputationAtPostCreation int64 -33 210k | OwnerUndeletedAnswerCountAtPostTime int64 0 5.77k | Title stringlengths 10 250 | BodyMarkdown stringlengths 12 30k | Tag1 stringlengths 1 25 ⌀ | Tag2 stringlengths 1 25 ⌀ | Tag3 stringlengths 1 25 ⌀ | Tag4 stringlengths 1 25 ⌀ | Tag5 stringlengths 1 25 ⌀ | PostClosedDate stringlengths 19 19 ⌀ | OpenStatus stringclasses 5 values | unified_texts stringlengths 47 30.1k | OpenStatus_id int64 0 4 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
11,417,190 | 07/10/2012 15:53:49 | 1,515,301 | 07/10/2012 15:37:40 | 1 | 0 | dynamic latex display | Sorry in advance if this is an old topic, but I am new to this so I wasn't sure what to search for:
I am trying to create a dynamic equation displayed in latex on my website, and im not sure what method of rendering will be best for this.
for example, I want to show
$f(x)=2x+5$ and then have the user click a button to change the numbers and have the display show $f(x)=3x+8$ and another click to give $f(x)=5x+1$.
Of course this isnt all I want to display, but I am having trouble figuring out which renderer will be the right one for what im trying to do here (have dynamic constants in my latex display).
Thanks | latex | null | null | null | null | 07/11/2012 15:49:09 | off topic | dynamic latex display
===
Sorry in advance if this is an old topic, but I am new to this so I wasn't sure what to search for:
I am trying to create a dynamic equation displayed in latex on my website, and im not sure what method of rendering will be best for this.
for example, I want to show
$f(x)=2x+5$ and then have the user click a button to change the numbers and have the display show $f(x)=3x+8$ and another click to give $f(x)=5x+1$.
Of course this isnt all I want to display, but I am having trouble figuring out which renderer will be the right one for what im trying to do here (have dynamic constants in my latex display).
Thanks | 2 |
9,442,737 | 02/25/2012 09:07:57 | 1,232,294 | 02/25/2012 08:57:20 | 1 | 0 | how to install Linux Mint from .iso file | I want to know that how to make DVD (burn it to DVD) from the file (linuxmint-12-gnome-dvd-32bit.iso) that i downloaded from internet. and how to install Linux Mint after burning it to the DVD. I want to make the DVD bootable too. Please guide proper step by step procedure.
Thanks | linux | gnome | mint | null | null | 02/25/2012 18:16:34 | off topic | how to install Linux Mint from .iso file
===
I want to know that how to make DVD (burn it to DVD) from the file (linuxmint-12-gnome-dvd-32bit.iso) that i downloaded from internet. and how to install Linux Mint after burning it to the DVD. I want to make the DVD bootable too. Please guide proper step by step procedure.
Thanks | 2 |
7,124,047 | 08/19/2011 15:40:16 | 649,497 | 03/08/2011 08:38:23 | 256 | 11 | MonoTouch application crashing on device on startup in debug mode (not in release) | I have a problem which is making debugging my MonoTouch application very difficult. If I do a *release* compile then the application runs correctly, but if I do a *debug* compile then the application crashes at startup and the exception does not get even get captured by MonoTouch.
I have no idea how to go about determining what is going wrong here. In Xcode organizer I see a crash log entry, but I can't make any sense of it at all. I will copy the crash log here (truncated, because it is VERY long!); hopefully someone here can shed some light on it or can give me some other way to capture the exception in MonoTouch so I can see what is going wrong.
Here is the crash log:
Incident Identifier: 0E0CFEF7-A2ED-4BD5-B2C0-B5E562FB063B
CrashReporter Key: f74aea3dbbd0dccb4bd9f7b7badfcdabe33c0ed5
Hardware Model: iPhone2,1
Process: Mobileforms [3728]
Path: /var/mobile/Applications/40A88352-7F78-4085-856B-9621541774ED/Mobileforms.app/Mobileforms
Identifier: Mobileforms
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2011-08-19 16:11:51.973 +0200
OS Version: iPhone OS 4.3.3 (8J2)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_PROTECTION_FAILURE at 0x2fd00ff4
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 Mobileforms 0x004c7e04 monotouch_static_trampoline (monotouch-glue.m:695)
1 Mobileforms 0x00130c4c wrapper_managed_to_native_MonoTouch_ObjCRuntime_Messaging_IntPtr_objc_msgSend_intptr_intptr + 60
2 Mobileforms 0x00288c34 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 192
3 Mobileforms 0x00315cfc mono_jit_runtime_invoke (mini.c:5754)
4 Mobileforms 0x0041d6ec mono_runtime_invoke (object.c:2756)
5 Mobileforms 0x004c8924 monotouch_static_trampoline (monotouch-glue.m:704)
6 Mobileforms 0x00130c4c wrapper_managed_to_native_MonoTouch_ObjCRuntime_Messaging_IntPtr_objc_msgSend_intptr_intptr + 60
7 Mobileforms 0x00288c34 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 192
8 Mobileforms 0x00315cfc mono_jit_runtime_invoke (mini.c:5754)
9 Mobileforms 0x0041d6ec mono_runtime_invoke (object.c:2756)
10 Mobileforms 0x004c8924 monotouch_static_trampoline (monotouch-glue.m:704)
11 Mobileforms 0x00130c4c wrapper_managed_to_native_MonoTouch_ObjCRuntime_Messaging_IntPtr_objc_msgSend_intptr_intptr + 60
12 Mobileforms 0x00288c34 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 192
13 Mobileforms 0x00315cfc mono_jit_runtime_invoke (mini.c:5754)
14 Mobileforms 0x0041d6ec mono_runtime_invoke (object.c:2756)
15 Mobileforms 0x004c8924 monotouch_static_trampoline (monotouch-glue.m:704)
16 Mobileforms 0x00130c4c wrapper_managed_to_native_MonoTouch_ObjCRuntime_Messaging_IntPtr_objc_msgSend_intptr_intptr + 60
17 Mobileforms 0x00288c34 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 192
18 Mobileforms 0x00315cfc mono_jit_runtime_invoke (mini.c:5754)
19 Mobileforms 0x0041d6ec mono_runtime_invoke (object.c:2756)
20 Mobileforms 0x004c8924 monotouch_static_trampoline (monotouch-glue.m:704)
21 Mobileforms 0x00130c4c wrapper_managed_to_native_MonoTouch_ObjCRuntime_Messaging_IntPtr_objc_msgSend_intptr_intptr + 60
22 Mobileforms 0x00288c34 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 192
23 Mobileforms 0x00315cfc mono_jit_runtime_invoke (mini.c:5754)
24 Mobileforms 0x0041d6ec mono_runtime_invoke (object.c:2756)
25 Mobileforms 0x004c8924 monotouch_static_trampoline (monotouch-glue.m:704)
26 Mobileforms 0x00130c4c wrapper_managed_to_native_MonoTouch_ObjCRuntime_Messaging_IntPtr_objc_msgSend_intptr_intptr + 60
27 Mobileforms 0x00288c34 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 192
28 Mobileforms 0x00315cfc mono_jit_runtime_invoke (mini.c:5754)
29 Mobileforms 0x0041d6ec mono_runtime_invoke (object.c:2756)
30 Mobileforms 0x004c8924 monotouch_static_trampoline (monotouch-glue.m:704)
31 Mobileforms 0x00130c4c wrapper_managed_to_native_MonoTouch_ObjCRuntime_Messaging_IntPtr_objc_msgSend_intptr_intptr + 60
32 Mobileforms 0x00288c34 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 192
33 Mobileforms 0x00315cfc mono_jit_runtime_invoke (mini.c:5754)
34 Mobileforms 0x0041d6ec mono_runtime_invoke (object.c:2756)
35 Mobileforms 0x004c8924 monotouch_static_trampoline (monotouch-glue.m:704)
36 Mobileforms 0x00130c4c wrapper_managed_to_native_MonoTouch_ObjCRuntime_Messaging_IntPtr_objc_msgSend_intptr_intptr + 60
37 Mobileforms 0x00288c34 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 192
38 Mobileforms 0x00315cfc mono_jit_runtime_invoke (mini.c:5754)
39 Mobileforms 0x0041d6ec mono_runtime_invoke (object.c:2756)
40 Mobileforms 0x004c8924 monotouch_static_trampoline (monotouch-glue.m:704)
41 Mobileforms 0x00130c4c wrapper_managed_to_native_MonoTouch_ObjCRuntime_Messaging_IntPtr_objc_msgSend_intptr_intptr + 60
42 Mobileforms 0x00288c34 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 192
43 Mobileforms 0x00315cfc mono_jit_runtime_invoke (mini.c:5754)
44 Mobileforms 0x0041d6ec mono_runtime_invoke (object.c:2756)
45 Mobileforms 0x004c8924 monotouch_static_trampoline (monotouch-glue.m:704)
46 Mobileforms 0x00130c4c wrapper_managed_to_native_MonoTouch_ObjCRuntime_Messaging_IntPtr_objc_msgSend_intptr_intptr + 60
47 Mobileforms 0x00288c34 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 192
48 Mobileforms 0x00315cfc mono_jit_runtime_invoke (mini.c:5754)
49 Mobileforms 0x0041d6ec mono_runtime_invoke (object.c:2756)
50 Mobileforms 0x004c8924 monotouch_static_trampoline (monotouch-glue.m:704)
51 Mobileforms 0x00130c4c wrapper_managed_to_native_MonoTouch_ObjCRuntime_Messaging_IntPtr_objc_msgSend_intptr_intptr + 60
52 Mobileforms 0x00288c34 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 192
53 Mobileforms 0x00315cfc mono_jit_runtime_invoke (mini.c:5754)
54 Mobileforms 0x0041d6ec mono_runtime_invoke (object.c:2756)
55 Mobileforms 0x004c8924 monotouch_static_trampoline (monotouch-glue.m:704)
56 Mobileforms 0x00130c4c wrapper_managed_to_native_MonoTouch_ObjCRuntime_Messaging_IntPtr_objc_msgSend_intptr_intptr + 60
57 Mobileforms 0x00288c34 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 192
58 Mobileforms 0x00315cfc mono_jit_runtime_invoke (mini.c:5754)
59 Mobileforms 0x0041d6ec mono_runtime_invoke (object.c:2756)
60 Mobileforms 0x004c8924 monotouch_static_trampoline (monotouch-glue.m:704)
501 Mobileforms 0x00130c4c wrapper_managed_to_native_MonoTouch_ObjCRuntime_Messaging_IntPtr_objc_msgSend_intptr_intptr + 60
502 Mobileforms 0x00288c34 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 192
503 Mobileforms 0x00315cfc mono_jit_runtime_invoke (mini.c:5754)
504 Mobileforms 0x0041d6ec mono_runtime_invoke (object.c:2756)
505 Mobileforms 0x004c8924 monotouch_static_trampoline (monotouch-glue.m:704)
506 Mobileforms 0x00130c4c wrapper_managed_to_native_MonoTouch_ObjCRuntime_Messaging_IntPtr_objc_msgSend_intptr_intptr + 60
507 Mobileforms 0x00288c34 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 192
508 Mobileforms 0x00315cfc mono_jit_runtime_invoke (mini.c:5754)
509 Mobileforms 0x0041d6ec mono_runtime_invoke (object.c:2756)
510 Mobileforms 0x004c8924 monotouch_static_trampoline (monotouch-glue.m:704)
Thread 1:
0 libsystem_kernel.dylib 0x332a83ec __workq_kernreturn + 8
1 libsystem_c.dylib 0x32c966d8 _pthread_wqthread + 592
2 libsystem_c.dylib 0x32c96bbc start_wqthread + 0
Thread 2 name: Dispatch queue: com.apple.libdispatch-manager
Thread 2:
0 libsystem_kernel.dylib 0x332a8fbc kevent + 24
1 libdispatch.dylib 0x30205032 _dispatch_mgr_invoke + 706
2 libdispatch.dylib 0x3020603a _dispatch_queue_invoke + 86
3 libdispatch.dylib 0x302055ea _dispatch_worker_thread2 + 186
4 libsystem_c.dylib 0x32c9658a _pthread_wqthread + 258
5 libsystem_c.dylib 0x32c96bbc start_wqthread + 0
Thread 3:
0 libsystem_kernel.dylib 0x332a83ec __workq_kernreturn + 8
1 libsystem_c.dylib 0x32c966d8 _pthread_wqthread + 592
2 libsystem_c.dylib 0x32c96bbc start_wqthread + 0
Thread 4:
0 libsystem_kernel.dylib 0x332a7b60 __recvfrom + 20
1 libsystem_c.dylib 0x32c6428c recv + 16
2 Mobileforms 0x0034adb0 recv_length (debugger-agent.c:975)
3 Mobileforms 0x0035d170 debugger_thread (debugger-agent.c:7045)
4 Mobileforms 0x00481c70 thread_start_routine (wthreads.c:285)
5 Mobileforms 0x004bfae4 GC_start_routine (pthread_support.c:1468)
6 libsystem_c.dylib 0x32c9530a _pthread_start + 242
7 libsystem_c.dylib 0x32c96bb4 thread_start + 0
Thread 5:
0 libsystem_kernel.dylib 0x332a5c50 semaphore_wait_trap + 8
1 libsystem_kernel.dylib 0x332a5f6e semaphore_wait + 2
2 Mobileforms 0x004930a8 mono_sem_wait (mono-semaphore.c:115)
3 Mobileforms 0x003ad460 finalizer_thread (gc.c:1070)
4 Mobileforms 0x004561d4 start_wrapper_internal (threads.c:774)
5 Mobileforms 0x004562c8 start_wrapper (threads.c:822)
6 Mobileforms 0x00481c70 thread_start_routine (wthreads.c:285)
7 Mobileforms 0x004bfae4 GC_start_routine (pthread_support.c:1468)
8 libsystem_c.dylib 0x32c9530a _pthread_start + 242
9 libsystem_c.dylib 0x32c96bb4 thread_start + 0
Thread 6 name: WebThread
Thread 6:
0 libsystem_kernel.dylib 0x332a5c00 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x332a5758 mach_msg + 44
2 CoreFoundation 0x329382b8 __CFRunLoopServiceMachPort + 88
3 CoreFoundation 0x3293a562 __CFRunLoopRun + 350
4 CoreFoundation 0x328caebc CFRunLoopRunSpecific + 224
5 CoreFoundation 0x328cadc4 CFRunLoopRunInMode + 52
6 WebCore 0x3114b27e RunWebThread(void*) + 382
7 libsystem_c.dylib 0x32c9530a _pthread_start + 242
8 libsystem_c.dylib 0x32c96bb4 thread_start + 0
Thread 7:
0 libsystem_kernel.dylib 0x332a5c00 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x332a5758 mach_msg + 44
2 CoreFoundation 0x329382b8 __CFRunLoopServiceMachPort + 88
3 CoreFoundation 0x3293a562 __CFRunLoopRun + 350
4 CoreFoundation 0x328caebc CFRunLoopRunSpecific + 224
5 CoreFoundation 0x328cadc4 CFRunLoopRunInMode + 52
6 Foundation 0x338467f6 +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:] + 206
7 Foundation 0x33839382 -[NSThread main] + 38
8 Foundation 0x338ab5c6 __NSThread__main__ + 966
9 libsystem_c.dylib 0x32c9530a _pthread_start + 242
10 libsystem_c.dylib 0x32c96bb4 thread_start + 0
Thread 8:
0 libsystem_kernel.dylib 0x332a5c00 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x332a5758 mach_msg + 44
2 SpringBoardServices 0x300f5442 SBAcquireApplicationAssertion + 134
3 SpringBoardServices 0x300f404c SBSProcessAssertionCreateForPID + 268
4 AddressBook 0x30656a74 ABCDBContextCreateWithPathAndAddressBook + 40
5 AddressBook 0x3064ca86 ABCCreateAddressBookWithDatabaseDirectoryAndForceInProcessMigrationInProcessLinkingAndResetSortKeys + 182
6 AddressBook 0x3064cd94 ABCCreateAddressBookWithDatabaseDirectoryAndForceInProcessMigration + 8
7 AddressBook 0x3064cda0 ABCCreateAddressBookWithDatabaseDirectory + 4
8 AddressBook 0x30659248 ABAddressBookCreate + 8
9 TextInput 0x3397a4ec KB::matchable_strings_from_address_book() + 16
10 TextInput 0x3397ea0e KB::DynamicDictionaryImpl::background_load_address_book(KB::StaticDictionary const&) + 86
11 TextInput 0x33980240 KB::BackgroundLoad(void*) + 224
12 libsystem_c.dylib 0x32c9530a _pthread_start + 242
13 libsystem_c.dylib 0x32c96bb4 thread_start + 0
Thread 0 crashed with ARM Thread State:
r0: 0x0095c2c0 r1: 0x0095c460 r2: 0x00130c48 r3: 0x013af408
r4: 0x00136640 r5: 0x3f5b19dc r6: 0x03f2e6a0 r7: 0x2fd01094
r8: 0x00966350 r9: 0x00000001 r10: 0x0095c460 r11: 0x2fd01100
ip: 0x004c7df4 sp: 0x2fd00fe4 lr: 0x00130c54 pc: 0x004c7e04
cpsr: 0x600f0010
Binary Images:
0x1000 - 0x57cfff +Mobileforms armv6 <0b0a5ab5e99f3350abdba8ddb4864453> /var/mobile/Applications/40A88352-7F78-4085-856B-9621541774ED/Mobileforms.app/Mobileforms
0x2fe00000 - 0x2fe25fff dyld armv7 <bb9bfc7d242331d29a79adf7ef7aaa18> /usr/lib/dyld
0x30df4000 - 0x30e03fff Notes armv7 <d9c976ca976e3d029f69febd48f17601> /System/Library/PrivateFrameworks/Notes.framework/Notes
0x30e0c000 - 0x30e43fff Security armv7 <6599f42a910b3b31a0e1d98c883d61cb> /System/Library/Frameworks/Security.framework/Security
0x30e72000 - 0x30e92fff AppleAccount armv7 <4e0ac5cf93b338ab8c5f34ba3c5e2ee4> /System/Library/PrivateFrameworks/AppleAccount.framework/AppleAccount
0x30e93000 - 0x30e9cfff CoreVideo armv7 <ea847e6dba2d36b1826b255c73b39539> /System/Library/Frameworks/CoreVideo.framework/CoreVideo
0x30e9d000 - 0x30ea3fff IAP armv7 <c0f4c99a1b493e489948f231ad9238e2> /System/Library/PrivateFrameworks/IAP.framework/IAP
0x30ecd000 - 0x30ed6fff ITSync armv7 <ba8b48d061903e4096774344448776d0> /System/Library/PrivateFrameworks/ITSync.framework/ITSync
0x30ed7000 - 0x30ee3fff SpringBoardServices armv7 <c68262667ac8397a949ce4e92dfec7db> /System/Library/PrivateFrameworks/SpringBoardServices.framework/SpringBoardServices
0x30ee4000 - 0x30ee9fff libnotify.dylib armv7 <9d7198e91de9386a9e5ea43608a66a57> /usr/lib/system/libnotify.dylib
0x30f30000 - 0x30f31fff libsystem_network.dylib armv7 <39bf0f48bd8539169a77f8f61cdcd4c9> /usr/lib/system/libsystem_network.dylib
0x30fec000 - 0x30ff9fff libdispatch.dylib armv7 <9a0511ad5ebc3db898f1f49ed1a73d34> /usr/lib/system/libdispatch.dylib
0x310c0000 - 0x310d9fff libRIP.A.dylib armv7 <4825c3e392983aba947eca06555e4480> /System/Library/Frameworks/CoreGraphics.framework/Resources/libRIP.A.dylib
0x31130000 - 0x3113bfff libz.1.dylib armv7 <ac706bee36593dc683fd5a96a389d72e> /usr/lib/libz.1.dylib
0x31247000 - 0x31295fff CoreMotion armv7 <58c353bb7e33361f881da07c72f4cdfb> /System/Library/Frameworks/CoreMotion.framework/CoreMotion
0x31296000 - 0x3129cfff ProtocolBuffer armv7 <f9277ee9b85b3722975ad319a323aca0> /System/Library/PrivateFrameworks/ProtocolBuffer.framework/ProtocolBuffer
0x312c5000 - 0x312c5fff libsystem_sandbox.dylib armv7 <f47c01d627853b328e088b3fdd08e87d> /usr/lib/system/libsystem_sandbox.dylib
0x312c6000 - 0x31325fff libBLAS.dylib armv7 <0b36b2272aa33a8c9aa22d99c89d7189> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libBLAS.dylib
0x31326000 - 0x31326fff libdnsinfo.dylib armv7 <21415179ffa03f949fa8cc851c6c31c7> /usr/lib/system/libdnsinfo.dylib
0x31434000 - 0x31435fff libdyld.dylib armv7 <41a7b5e5d9983449ab33affed0f635ad> /usr/lib/system/libdyld.dylib
0x31436000 - 0x3146bfff AddressBook armv7 <3f2071a77bc134cd82065eef90d4082f> /System/Library/Frameworks/AddressBook.framework/AddressBook
0x314be000 - 0x314f6fff IOKit armv7 <80ae313ad69d3363935c88e51a11862d> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x314fa000 - 0x314fcfff libAccessibility.dylib armv7 <d55f1553d14831a2a5435ae27ef75ef4> /usr/lib/libAccessibility.dylib
0x31508000 - 0x3150bfff CertUI armv7 <9060fe03a4943ef295531feced9a17dd> /System/Library/PrivateFrameworks/CertUI.framework/CertUI
0x3151d000 - 0x3151ffff IOMobileFramebuffer armv7 <683f321680763e519d61541170ba2133> /System/Library/PrivateFrameworks/IOMobileFramebuffer.framework/IOMobileFramebuffer
0x31664000 - 0x31768fff JavaScriptCore armv7 <61a94142e2d23dafa2964190dd46e9e3> /System/Library/PrivateFrameworks/JavaScriptCore.framework/JavaScriptCore
0x31769000 - 0x3178dfff MediaControl armv7 <1cfc7d79f554357ab59eb69f9efebf07> /System/Library/PrivateFrameworks/MediaControl.framework/MediaControl
0x3178e000 - 0x31794fff liblockdown.dylib armv7 <14c89b7346433c1f8675f454531f6ca3> /usr/lib/liblockdown.dylib
0x31795000 - 0x3179afff libsystem_dnssd.dylib armv7 <c7cfe523e2d73521abc01587313ef730> /usr/lib/system/libsystem_dnssd.dylib
0x3179b000 - 0x3179bfff Accelerate armv7 <7d5ad465049136afaa1f0d89aac600bc> /System/Library/Frameworks/Accelerate.framework/Accelerate
0x317e9000 - 0x31892fff libxml2.2.dylib armv7 <5538d3f2c7d83b88b06168488fe6326b> /usr/lib/libxml2.2.dylib
0x31baf000 - 0x31bc5fff EAP8021X armv7 <9fefc0ada30435fbb3b51818c74f6cb8> /System/Library/PrivateFrameworks/EAP8021X.framework/EAP8021X
0x31bd2000 - 0x31bd5fff CaptiveNetwork armv7 <fc834fd33a18341ea7506587ad895703> /System/Library/PrivateFrameworks/CaptiveNetwork.framework/CaptiveNetwork
0x31bd6000 - 0x31c5afff AVFoundation armv7 <eeaf5f4f822436a5bd1655f536e69879> /System/Library/Frameworks/AVFoundation.framework/AVFoundation
0x31c6b000 - 0x31c6ffff libcache.dylib armv7 <d2f7fd2a352b3cd59c564be34b53cf80> /usr/lib/system/libcache.dylib
0x31c70000 - 0x31c77fff libbz2.1.0.dylib armv7 <0a082e1d475432959ba93aa3dbf7fb31> /usr/lib/libbz2.1.0.dylib
0x31ca6000 - 0x31ca9fff ArtworkCache armv7 <4863e321afee3ac5a3749e50cd926597> /System/Library/PrivateFrameworks/ArtworkCache.framework/ArtworkCache
0x31cde000 - 0x31d25fff MessageUI armv7 <35a81f5d4eb03467a1447db80337e570> /System/Library/Frameworks/MessageUI.framework/MessageUI
0x31d26000 - 0x31d4ffff MobileCoreServices armv7 <57fef84bdc17301d8bf53ba0fb967fe6> /System/Library/Frameworks/MobileCoreServices.framework/MobileCoreServices
0x31d53000 - 0x31d82fff SystemConfiguration armv7 <1d73b8a159363f96bb9c039655c5eae6> /System/Library/Frameworks/SystemConfiguration.framework/SystemConfiguration
0x31d83000 - 0x31db6fff AppSupport armv7 <0217468bd9f839229a47910b7816b3d5> /System/Library/PrivateFrameworks/AppSupport.framework/AppSupport
0x31f32000 - 0x3253dfff WebCore armv7 <07941e59d0a33f94802c16c76238fddf> /System/Library/PrivateFrameworks/WebCore.framework/WebCore
0x32595000 - 0x326e9fff AudioToolbox armv7 <6619c8c13f8d328e923e797fa8d0df23> /System/Library/Frameworks/AudioToolbox.framework/AudioToolbox
0x326ec000 - 0x3280dfff CoreGraphics armv7 <65f6c8701b563542820a26b0dfc4f6a4> /System/Library/Frameworks/CoreGraphics.framework/CoreGraphics
0x3280e000 - 0x32810fff MailServices armv7 <74ae0145ef713c6d91fd8f68885b0a61> /System/Library/PrivateFrameworks/MailServices.framework/MailServices
0x32811000 - 0x32811fff libCVMSPluginSupport.dylib armv7 <42d8aa2a31843a6e8bfff745644a7ba5> /System/Library/Frameworks/OpenGLES.framework/libCVMSPluginSupport.dylib
0x32812000 - 0x3289cfff Message armv7 <2cce1aa95a493906bb0227197f9e4b96> /System/Library/PrivateFrameworks/Message.framework/Message
0x328f1000 - 0x328fdfff HomeSharing armv7 <2df6957cdfea31aea12eebf27ca1691c> /System/Library/PrivateFrameworks/HomeSharing.framework/HomeSharing
0x328fe000 - 0x32905fff libMobileGestalt.dylib armv7 <55f29184efcc3046bb833dd72a4487e1> /usr/lib/libMobileGestalt.dylib
0x329a0000 - 0x32aecfff MediaToolbox armv7 <482b13059e8a329fa5d832baede25103> /System/Library/PrivateFrameworks/MediaToolbox.framework/MediaToolbox
0x32b03000 - 0x32b05fff CrashReporterSupport armv7 <9e7efa009730322f84bbc5d8bf1ded94> /System/Library/PrivateFrameworks/CrashReporterSupport.framework/CrashReporterSupport
0x32b06000 - 0x32b10fff AccountSettings armv7 <d083fb384dc7311eb6766b9b2d2dd9c8> /System/Library/PrivateFrameworks/AccountSettings.framework/AccountSettings
0x32b19000 - 0x32b26fff DataDetectorsUI armv7 <d454cde062983860a41694922eb5c042> /System/Library/PrivateFrameworks/DataDetectorsUI.framework/DataDetectorsUI
0x32cd9000 - 0x32de1fff CoreData armv7 <9843a401dd1d322383e3e40021cc8b95> /System/Library/Frameworks/CoreData.framework/CoreData
0x33123000 - 0x33125fff libgcc_s.1.dylib armv7 <a2631ac302f4310dae8367939e16b7c2> /usr/lib/libgcc_s.1.dylib
0x33126000 - 0x331c3fff AddressBookUI armv7 <e354aeb3d96e30338e90cc3638ffe81b> /System/Library/Frameworks/AddressBookUI.framework/AddressBookUI
0x331c4000 - 0x331c8fff libGFXShared.dylib armv7 <a0772a32cd8b3b9194bb0c29807c1c5b> /System/Library/Frameworks/OpenGLES.framework/libGFXShared.dylib
0x331d6000 - 0x33563fff UIKit armv7 <c271b78464d93cb7bf28c6e49df293ba> /System/Library/Frameworks/UIKit.framework/UIKit
0x33566000 - 0x335acfff CoreTelephony armv7 <af7d1e770e5a3ffd8834a57fb5d40557> /System/Library/Frameworks/CoreTelephony.framework/CoreTelephony
0x335ad000 - 0x335e0fff QuickLook armv7 <29d2d981d1d6358381f5716ee37314b4> /System/Library/Frameworks/QuickLook.framework/QuickLook
0x335fd000 - 0x33604fff AggregateDictionary armv7 <ab9777b39e8e3026ad64dc90323cad7e> /System/Library/PrivateFrameworks/AggregateDictionary.framework/AggregateDictionary
0x33650000 - 0x33684fff VideoToolbox armv7 <570c63dc3a273a5a8c9072fd5567f5c1> /System/Library/PrivateFrameworks/VideoToolbox.framework/VideoToolbox
0x33685000 - 0x336aefff ContentIndex armv7 <ecd71782cd833360872b943ecc65d203> /System/Library/PrivateFrameworks/ContentIndex.framework/ContentIndex
0x336af000 - 0x33794fff CoreFoundation armv7 <a8444f997111304c9571b3ff974b769c> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
0x33795000 - 0x337dffff libstdc++.6.dylib armv7 <b2cac408951c3f3c9ba3cf563e54ce81> /usr/lib/libstdc++.6.dylib
0x337e0000 - 0x3390cfff libmecabra.dylib armv7 <113de5f9858c32b8b158bfdc68042a97> /usr/lib/libmecabra.dylib
0x3393d000 - 0x3397cfff libSystem.B.dylib armv7 <33dcf9a403ae3fd5971d6030ada2fcab> /usr/lib/libSystem.B.dylib
0x339f0000 - 0x33a32fff CoreAudio armv7 <c972fd5f8e89333ca680b9a33587f896> /System/Library/Frameworks/CoreAudio.framework/CoreAudio
0x33a4f000 - 0x33ad0fff libsystem_c.dylib armv7 <a7077267b6743ed3bbdd86d4380c75d9> /usr/lib/system/libsystem_c.dylib
0x33ad1000 - 0x33af1fff MobileSync armv7 <4df400c4559435889eccd88db77a110c> /System/Library/PrivateFrameworks/MobileSync.framework/MobileSync
0x33af2000 - 0x33af7fff liblaunch.dylib armv7 <f5ccc8234aea3ebd9a88bd37f0fa23ae> /usr/lib/system/liblaunch.dylib
0x33b32000 - 0x33b42fff DataAccessExpress armv7 <66d9047da79a31daa887e6d84c42ecb2> /System/Library/PrivateFrameworks/DataAccessExpress.framework/DataAccessExpress
0x33b8c000 - 0x33c50fff libobjc.A.dylib armv7 <6b51e76fde9f381bb7b3bc5badbfee3a> /usr/lib/libobjc.A.dylib
0x33c61000 - 0x33cd0fff ProofReader armv7 <6d843c6aecdd37ae84baa40af8ad7e65> /System/Library/PrivateFrameworks/ProofReader.framework/ProofReader
0x33cd1000 - 0x33ce4fff libmis.dylib armv7 <529ea6e3a87230ce9f6cf3285c22429c> /usr/lib/libmis.dylib
0x33ced000 - 0x33cf0fff ApplePushService armv7 <015c68c15621348db9f6a012499170e1> /System/Library/PrivateFrameworks/ApplePushService.framework/ApplePushService
0x33d34000 - 0x33e21fff libiconv.2.dylib armv7 <f4146ce07e3031ea8a81fa5516fd77d0> /usr/lib/libiconv.2.dylib
0x37321000 - 0x3743bfff libicucore.A.dylib armv7 <bada0c2725bb31a483d5adf9aaf1f8df> /usr/lib/libicucore.A.dylib
0x3743c000 - 0x3743cfff vecLib armv7 <0c60cd0a60f43d2791d36cb357d30e3c> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/vecLib
0x37472000 - 0x37507fff ImageIO armv7 <d520e3241d1130e8ac1375ee0f2c1095> /System/Library/Frameworks/ImageIO.framework/ImageIO
0x37536000 - 0x37584fff GMM armv7 <049361f664eb3f30b0d25cd56ffc1f0f> /System/Library/PrivateFrameworks/GMM.framework/GMM
0x37585000 - 0x375a4fff Bom armv7 <b178e3efb4d733c694bd5a55e57a314f> /System/Library/PrivateFrameworks/Bom.framework/Bom
| monotouch | monodevelop | null | null | null | null | open | MonoTouch application crashing on device on startup in debug mode (not in release)
===
I have a problem which is making debugging my MonoTouch application very difficult. If I do a *release* compile then the application runs correctly, but if I do a *debug* compile then the application crashes at startup and the exception does not get even get captured by MonoTouch.
I have no idea how to go about determining what is going wrong here. In Xcode organizer I see a crash log entry, but I can't make any sense of it at all. I will copy the crash log here (truncated, because it is VERY long!); hopefully someone here can shed some light on it or can give me some other way to capture the exception in MonoTouch so I can see what is going wrong.
Here is the crash log:
Incident Identifier: 0E0CFEF7-A2ED-4BD5-B2C0-B5E562FB063B
CrashReporter Key: f74aea3dbbd0dccb4bd9f7b7badfcdabe33c0ed5
Hardware Model: iPhone2,1
Process: Mobileforms [3728]
Path: /var/mobile/Applications/40A88352-7F78-4085-856B-9621541774ED/Mobileforms.app/Mobileforms
Identifier: Mobileforms
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2011-08-19 16:11:51.973 +0200
OS Version: iPhone OS 4.3.3 (8J2)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_PROTECTION_FAILURE at 0x2fd00ff4
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 Mobileforms 0x004c7e04 monotouch_static_trampoline (monotouch-glue.m:695)
1 Mobileforms 0x00130c4c wrapper_managed_to_native_MonoTouch_ObjCRuntime_Messaging_IntPtr_objc_msgSend_intptr_intptr + 60
2 Mobileforms 0x00288c34 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 192
3 Mobileforms 0x00315cfc mono_jit_runtime_invoke (mini.c:5754)
4 Mobileforms 0x0041d6ec mono_runtime_invoke (object.c:2756)
5 Mobileforms 0x004c8924 monotouch_static_trampoline (monotouch-glue.m:704)
6 Mobileforms 0x00130c4c wrapper_managed_to_native_MonoTouch_ObjCRuntime_Messaging_IntPtr_objc_msgSend_intptr_intptr + 60
7 Mobileforms 0x00288c34 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 192
8 Mobileforms 0x00315cfc mono_jit_runtime_invoke (mini.c:5754)
9 Mobileforms 0x0041d6ec mono_runtime_invoke (object.c:2756)
10 Mobileforms 0x004c8924 monotouch_static_trampoline (monotouch-glue.m:704)
11 Mobileforms 0x00130c4c wrapper_managed_to_native_MonoTouch_ObjCRuntime_Messaging_IntPtr_objc_msgSend_intptr_intptr + 60
12 Mobileforms 0x00288c34 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 192
13 Mobileforms 0x00315cfc mono_jit_runtime_invoke (mini.c:5754)
14 Mobileforms 0x0041d6ec mono_runtime_invoke (object.c:2756)
15 Mobileforms 0x004c8924 monotouch_static_trampoline (monotouch-glue.m:704)
16 Mobileforms 0x00130c4c wrapper_managed_to_native_MonoTouch_ObjCRuntime_Messaging_IntPtr_objc_msgSend_intptr_intptr + 60
17 Mobileforms 0x00288c34 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 192
18 Mobileforms 0x00315cfc mono_jit_runtime_invoke (mini.c:5754)
19 Mobileforms 0x0041d6ec mono_runtime_invoke (object.c:2756)
20 Mobileforms 0x004c8924 monotouch_static_trampoline (monotouch-glue.m:704)
21 Mobileforms 0x00130c4c wrapper_managed_to_native_MonoTouch_ObjCRuntime_Messaging_IntPtr_objc_msgSend_intptr_intptr + 60
22 Mobileforms 0x00288c34 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 192
23 Mobileforms 0x00315cfc mono_jit_runtime_invoke (mini.c:5754)
24 Mobileforms 0x0041d6ec mono_runtime_invoke (object.c:2756)
25 Mobileforms 0x004c8924 monotouch_static_trampoline (monotouch-glue.m:704)
26 Mobileforms 0x00130c4c wrapper_managed_to_native_MonoTouch_ObjCRuntime_Messaging_IntPtr_objc_msgSend_intptr_intptr + 60
27 Mobileforms 0x00288c34 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 192
28 Mobileforms 0x00315cfc mono_jit_runtime_invoke (mini.c:5754)
29 Mobileforms 0x0041d6ec mono_runtime_invoke (object.c:2756)
30 Mobileforms 0x004c8924 monotouch_static_trampoline (monotouch-glue.m:704)
31 Mobileforms 0x00130c4c wrapper_managed_to_native_MonoTouch_ObjCRuntime_Messaging_IntPtr_objc_msgSend_intptr_intptr + 60
32 Mobileforms 0x00288c34 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 192
33 Mobileforms 0x00315cfc mono_jit_runtime_invoke (mini.c:5754)
34 Mobileforms 0x0041d6ec mono_runtime_invoke (object.c:2756)
35 Mobileforms 0x004c8924 monotouch_static_trampoline (monotouch-glue.m:704)
36 Mobileforms 0x00130c4c wrapper_managed_to_native_MonoTouch_ObjCRuntime_Messaging_IntPtr_objc_msgSend_intptr_intptr + 60
37 Mobileforms 0x00288c34 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 192
38 Mobileforms 0x00315cfc mono_jit_runtime_invoke (mini.c:5754)
39 Mobileforms 0x0041d6ec mono_runtime_invoke (object.c:2756)
40 Mobileforms 0x004c8924 monotouch_static_trampoline (monotouch-glue.m:704)
41 Mobileforms 0x00130c4c wrapper_managed_to_native_MonoTouch_ObjCRuntime_Messaging_IntPtr_objc_msgSend_intptr_intptr + 60
42 Mobileforms 0x00288c34 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 192
43 Mobileforms 0x00315cfc mono_jit_runtime_invoke (mini.c:5754)
44 Mobileforms 0x0041d6ec mono_runtime_invoke (object.c:2756)
45 Mobileforms 0x004c8924 monotouch_static_trampoline (monotouch-glue.m:704)
46 Mobileforms 0x00130c4c wrapper_managed_to_native_MonoTouch_ObjCRuntime_Messaging_IntPtr_objc_msgSend_intptr_intptr + 60
47 Mobileforms 0x00288c34 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 192
48 Mobileforms 0x00315cfc mono_jit_runtime_invoke (mini.c:5754)
49 Mobileforms 0x0041d6ec mono_runtime_invoke (object.c:2756)
50 Mobileforms 0x004c8924 monotouch_static_trampoline (monotouch-glue.m:704)
51 Mobileforms 0x00130c4c wrapper_managed_to_native_MonoTouch_ObjCRuntime_Messaging_IntPtr_objc_msgSend_intptr_intptr + 60
52 Mobileforms 0x00288c34 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 192
53 Mobileforms 0x00315cfc mono_jit_runtime_invoke (mini.c:5754)
54 Mobileforms 0x0041d6ec mono_runtime_invoke (object.c:2756)
55 Mobileforms 0x004c8924 monotouch_static_trampoline (monotouch-glue.m:704)
56 Mobileforms 0x00130c4c wrapper_managed_to_native_MonoTouch_ObjCRuntime_Messaging_IntPtr_objc_msgSend_intptr_intptr + 60
57 Mobileforms 0x00288c34 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 192
58 Mobileforms 0x00315cfc mono_jit_runtime_invoke (mini.c:5754)
59 Mobileforms 0x0041d6ec mono_runtime_invoke (object.c:2756)
60 Mobileforms 0x004c8924 monotouch_static_trampoline (monotouch-glue.m:704)
501 Mobileforms 0x00130c4c wrapper_managed_to_native_MonoTouch_ObjCRuntime_Messaging_IntPtr_objc_msgSend_intptr_intptr + 60
502 Mobileforms 0x00288c34 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 192
503 Mobileforms 0x00315cfc mono_jit_runtime_invoke (mini.c:5754)
504 Mobileforms 0x0041d6ec mono_runtime_invoke (object.c:2756)
505 Mobileforms 0x004c8924 monotouch_static_trampoline (monotouch-glue.m:704)
506 Mobileforms 0x00130c4c wrapper_managed_to_native_MonoTouch_ObjCRuntime_Messaging_IntPtr_objc_msgSend_intptr_intptr + 60
507 Mobileforms 0x00288c34 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 192
508 Mobileforms 0x00315cfc mono_jit_runtime_invoke (mini.c:5754)
509 Mobileforms 0x0041d6ec mono_runtime_invoke (object.c:2756)
510 Mobileforms 0x004c8924 monotouch_static_trampoline (monotouch-glue.m:704)
Thread 1:
0 libsystem_kernel.dylib 0x332a83ec __workq_kernreturn + 8
1 libsystem_c.dylib 0x32c966d8 _pthread_wqthread + 592
2 libsystem_c.dylib 0x32c96bbc start_wqthread + 0
Thread 2 name: Dispatch queue: com.apple.libdispatch-manager
Thread 2:
0 libsystem_kernel.dylib 0x332a8fbc kevent + 24
1 libdispatch.dylib 0x30205032 _dispatch_mgr_invoke + 706
2 libdispatch.dylib 0x3020603a _dispatch_queue_invoke + 86
3 libdispatch.dylib 0x302055ea _dispatch_worker_thread2 + 186
4 libsystem_c.dylib 0x32c9658a _pthread_wqthread + 258
5 libsystem_c.dylib 0x32c96bbc start_wqthread + 0
Thread 3:
0 libsystem_kernel.dylib 0x332a83ec __workq_kernreturn + 8
1 libsystem_c.dylib 0x32c966d8 _pthread_wqthread + 592
2 libsystem_c.dylib 0x32c96bbc start_wqthread + 0
Thread 4:
0 libsystem_kernel.dylib 0x332a7b60 __recvfrom + 20
1 libsystem_c.dylib 0x32c6428c recv + 16
2 Mobileforms 0x0034adb0 recv_length (debugger-agent.c:975)
3 Mobileforms 0x0035d170 debugger_thread (debugger-agent.c:7045)
4 Mobileforms 0x00481c70 thread_start_routine (wthreads.c:285)
5 Mobileforms 0x004bfae4 GC_start_routine (pthread_support.c:1468)
6 libsystem_c.dylib 0x32c9530a _pthread_start + 242
7 libsystem_c.dylib 0x32c96bb4 thread_start + 0
Thread 5:
0 libsystem_kernel.dylib 0x332a5c50 semaphore_wait_trap + 8
1 libsystem_kernel.dylib 0x332a5f6e semaphore_wait + 2
2 Mobileforms 0x004930a8 mono_sem_wait (mono-semaphore.c:115)
3 Mobileforms 0x003ad460 finalizer_thread (gc.c:1070)
4 Mobileforms 0x004561d4 start_wrapper_internal (threads.c:774)
5 Mobileforms 0x004562c8 start_wrapper (threads.c:822)
6 Mobileforms 0x00481c70 thread_start_routine (wthreads.c:285)
7 Mobileforms 0x004bfae4 GC_start_routine (pthread_support.c:1468)
8 libsystem_c.dylib 0x32c9530a _pthread_start + 242
9 libsystem_c.dylib 0x32c96bb4 thread_start + 0
Thread 6 name: WebThread
Thread 6:
0 libsystem_kernel.dylib 0x332a5c00 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x332a5758 mach_msg + 44
2 CoreFoundation 0x329382b8 __CFRunLoopServiceMachPort + 88
3 CoreFoundation 0x3293a562 __CFRunLoopRun + 350
4 CoreFoundation 0x328caebc CFRunLoopRunSpecific + 224
5 CoreFoundation 0x328cadc4 CFRunLoopRunInMode + 52
6 WebCore 0x3114b27e RunWebThread(void*) + 382
7 libsystem_c.dylib 0x32c9530a _pthread_start + 242
8 libsystem_c.dylib 0x32c96bb4 thread_start + 0
Thread 7:
0 libsystem_kernel.dylib 0x332a5c00 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x332a5758 mach_msg + 44
2 CoreFoundation 0x329382b8 __CFRunLoopServiceMachPort + 88
3 CoreFoundation 0x3293a562 __CFRunLoopRun + 350
4 CoreFoundation 0x328caebc CFRunLoopRunSpecific + 224
5 CoreFoundation 0x328cadc4 CFRunLoopRunInMode + 52
6 Foundation 0x338467f6 +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:] + 206
7 Foundation 0x33839382 -[NSThread main] + 38
8 Foundation 0x338ab5c6 __NSThread__main__ + 966
9 libsystem_c.dylib 0x32c9530a _pthread_start + 242
10 libsystem_c.dylib 0x32c96bb4 thread_start + 0
Thread 8:
0 libsystem_kernel.dylib 0x332a5c00 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x332a5758 mach_msg + 44
2 SpringBoardServices 0x300f5442 SBAcquireApplicationAssertion + 134
3 SpringBoardServices 0x300f404c SBSProcessAssertionCreateForPID + 268
4 AddressBook 0x30656a74 ABCDBContextCreateWithPathAndAddressBook + 40
5 AddressBook 0x3064ca86 ABCCreateAddressBookWithDatabaseDirectoryAndForceInProcessMigrationInProcessLinkingAndResetSortKeys + 182
6 AddressBook 0x3064cd94 ABCCreateAddressBookWithDatabaseDirectoryAndForceInProcessMigration + 8
7 AddressBook 0x3064cda0 ABCCreateAddressBookWithDatabaseDirectory + 4
8 AddressBook 0x30659248 ABAddressBookCreate + 8
9 TextInput 0x3397a4ec KB::matchable_strings_from_address_book() + 16
10 TextInput 0x3397ea0e KB::DynamicDictionaryImpl::background_load_address_book(KB::StaticDictionary const&) + 86
11 TextInput 0x33980240 KB::BackgroundLoad(void*) + 224
12 libsystem_c.dylib 0x32c9530a _pthread_start + 242
13 libsystem_c.dylib 0x32c96bb4 thread_start + 0
Thread 0 crashed with ARM Thread State:
r0: 0x0095c2c0 r1: 0x0095c460 r2: 0x00130c48 r3: 0x013af408
r4: 0x00136640 r5: 0x3f5b19dc r6: 0x03f2e6a0 r7: 0x2fd01094
r8: 0x00966350 r9: 0x00000001 r10: 0x0095c460 r11: 0x2fd01100
ip: 0x004c7df4 sp: 0x2fd00fe4 lr: 0x00130c54 pc: 0x004c7e04
cpsr: 0x600f0010
Binary Images:
0x1000 - 0x57cfff +Mobileforms armv6 <0b0a5ab5e99f3350abdba8ddb4864453> /var/mobile/Applications/40A88352-7F78-4085-856B-9621541774ED/Mobileforms.app/Mobileforms
0x2fe00000 - 0x2fe25fff dyld armv7 <bb9bfc7d242331d29a79adf7ef7aaa18> /usr/lib/dyld
0x30df4000 - 0x30e03fff Notes armv7 <d9c976ca976e3d029f69febd48f17601> /System/Library/PrivateFrameworks/Notes.framework/Notes
0x30e0c000 - 0x30e43fff Security armv7 <6599f42a910b3b31a0e1d98c883d61cb> /System/Library/Frameworks/Security.framework/Security
0x30e72000 - 0x30e92fff AppleAccount armv7 <4e0ac5cf93b338ab8c5f34ba3c5e2ee4> /System/Library/PrivateFrameworks/AppleAccount.framework/AppleAccount
0x30e93000 - 0x30e9cfff CoreVideo armv7 <ea847e6dba2d36b1826b255c73b39539> /System/Library/Frameworks/CoreVideo.framework/CoreVideo
0x30e9d000 - 0x30ea3fff IAP armv7 <c0f4c99a1b493e489948f231ad9238e2> /System/Library/PrivateFrameworks/IAP.framework/IAP
0x30ecd000 - 0x30ed6fff ITSync armv7 <ba8b48d061903e4096774344448776d0> /System/Library/PrivateFrameworks/ITSync.framework/ITSync
0x30ed7000 - 0x30ee3fff SpringBoardServices armv7 <c68262667ac8397a949ce4e92dfec7db> /System/Library/PrivateFrameworks/SpringBoardServices.framework/SpringBoardServices
0x30ee4000 - 0x30ee9fff libnotify.dylib armv7 <9d7198e91de9386a9e5ea43608a66a57> /usr/lib/system/libnotify.dylib
0x30f30000 - 0x30f31fff libsystem_network.dylib armv7 <39bf0f48bd8539169a77f8f61cdcd4c9> /usr/lib/system/libsystem_network.dylib
0x30fec000 - 0x30ff9fff libdispatch.dylib armv7 <9a0511ad5ebc3db898f1f49ed1a73d34> /usr/lib/system/libdispatch.dylib
0x310c0000 - 0x310d9fff libRIP.A.dylib armv7 <4825c3e392983aba947eca06555e4480> /System/Library/Frameworks/CoreGraphics.framework/Resources/libRIP.A.dylib
0x31130000 - 0x3113bfff libz.1.dylib armv7 <ac706bee36593dc683fd5a96a389d72e> /usr/lib/libz.1.dylib
0x31247000 - 0x31295fff CoreMotion armv7 <58c353bb7e33361f881da07c72f4cdfb> /System/Library/Frameworks/CoreMotion.framework/CoreMotion
0x31296000 - 0x3129cfff ProtocolBuffer armv7 <f9277ee9b85b3722975ad319a323aca0> /System/Library/PrivateFrameworks/ProtocolBuffer.framework/ProtocolBuffer
0x312c5000 - 0x312c5fff libsystem_sandbox.dylib armv7 <f47c01d627853b328e088b3fdd08e87d> /usr/lib/system/libsystem_sandbox.dylib
0x312c6000 - 0x31325fff libBLAS.dylib armv7 <0b36b2272aa33a8c9aa22d99c89d7189> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libBLAS.dylib
0x31326000 - 0x31326fff libdnsinfo.dylib armv7 <21415179ffa03f949fa8cc851c6c31c7> /usr/lib/system/libdnsinfo.dylib
0x31434000 - 0x31435fff libdyld.dylib armv7 <41a7b5e5d9983449ab33affed0f635ad> /usr/lib/system/libdyld.dylib
0x31436000 - 0x3146bfff AddressBook armv7 <3f2071a77bc134cd82065eef90d4082f> /System/Library/Frameworks/AddressBook.framework/AddressBook
0x314be000 - 0x314f6fff IOKit armv7 <80ae313ad69d3363935c88e51a11862d> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x314fa000 - 0x314fcfff libAccessibility.dylib armv7 <d55f1553d14831a2a5435ae27ef75ef4> /usr/lib/libAccessibility.dylib
0x31508000 - 0x3150bfff CertUI armv7 <9060fe03a4943ef295531feced9a17dd> /System/Library/PrivateFrameworks/CertUI.framework/CertUI
0x3151d000 - 0x3151ffff IOMobileFramebuffer armv7 <683f321680763e519d61541170ba2133> /System/Library/PrivateFrameworks/IOMobileFramebuffer.framework/IOMobileFramebuffer
0x31664000 - 0x31768fff JavaScriptCore armv7 <61a94142e2d23dafa2964190dd46e9e3> /System/Library/PrivateFrameworks/JavaScriptCore.framework/JavaScriptCore
0x31769000 - 0x3178dfff MediaControl armv7 <1cfc7d79f554357ab59eb69f9efebf07> /System/Library/PrivateFrameworks/MediaControl.framework/MediaControl
0x3178e000 - 0x31794fff liblockdown.dylib armv7 <14c89b7346433c1f8675f454531f6ca3> /usr/lib/liblockdown.dylib
0x31795000 - 0x3179afff libsystem_dnssd.dylib armv7 <c7cfe523e2d73521abc01587313ef730> /usr/lib/system/libsystem_dnssd.dylib
0x3179b000 - 0x3179bfff Accelerate armv7 <7d5ad465049136afaa1f0d89aac600bc> /System/Library/Frameworks/Accelerate.framework/Accelerate
0x317e9000 - 0x31892fff libxml2.2.dylib armv7 <5538d3f2c7d83b88b06168488fe6326b> /usr/lib/libxml2.2.dylib
0x31baf000 - 0x31bc5fff EAP8021X armv7 <9fefc0ada30435fbb3b51818c74f6cb8> /System/Library/PrivateFrameworks/EAP8021X.framework/EAP8021X
0x31bd2000 - 0x31bd5fff CaptiveNetwork armv7 <fc834fd33a18341ea7506587ad895703> /System/Library/PrivateFrameworks/CaptiveNetwork.framework/CaptiveNetwork
0x31bd6000 - 0x31c5afff AVFoundation armv7 <eeaf5f4f822436a5bd1655f536e69879> /System/Library/Frameworks/AVFoundation.framework/AVFoundation
0x31c6b000 - 0x31c6ffff libcache.dylib armv7 <d2f7fd2a352b3cd59c564be34b53cf80> /usr/lib/system/libcache.dylib
0x31c70000 - 0x31c77fff libbz2.1.0.dylib armv7 <0a082e1d475432959ba93aa3dbf7fb31> /usr/lib/libbz2.1.0.dylib
0x31ca6000 - 0x31ca9fff ArtworkCache armv7 <4863e321afee3ac5a3749e50cd926597> /System/Library/PrivateFrameworks/ArtworkCache.framework/ArtworkCache
0x31cde000 - 0x31d25fff MessageUI armv7 <35a81f5d4eb03467a1447db80337e570> /System/Library/Frameworks/MessageUI.framework/MessageUI
0x31d26000 - 0x31d4ffff MobileCoreServices armv7 <57fef84bdc17301d8bf53ba0fb967fe6> /System/Library/Frameworks/MobileCoreServices.framework/MobileCoreServices
0x31d53000 - 0x31d82fff SystemConfiguration armv7 <1d73b8a159363f96bb9c039655c5eae6> /System/Library/Frameworks/SystemConfiguration.framework/SystemConfiguration
0x31d83000 - 0x31db6fff AppSupport armv7 <0217468bd9f839229a47910b7816b3d5> /System/Library/PrivateFrameworks/AppSupport.framework/AppSupport
0x31f32000 - 0x3253dfff WebCore armv7 <07941e59d0a33f94802c16c76238fddf> /System/Library/PrivateFrameworks/WebCore.framework/WebCore
0x32595000 - 0x326e9fff AudioToolbox armv7 <6619c8c13f8d328e923e797fa8d0df23> /System/Library/Frameworks/AudioToolbox.framework/AudioToolbox
0x326ec000 - 0x3280dfff CoreGraphics armv7 <65f6c8701b563542820a26b0dfc4f6a4> /System/Library/Frameworks/CoreGraphics.framework/CoreGraphics
0x3280e000 - 0x32810fff MailServices armv7 <74ae0145ef713c6d91fd8f68885b0a61> /System/Library/PrivateFrameworks/MailServices.framework/MailServices
0x32811000 - 0x32811fff libCVMSPluginSupport.dylib armv7 <42d8aa2a31843a6e8bfff745644a7ba5> /System/Library/Frameworks/OpenGLES.framework/libCVMSPluginSupport.dylib
0x32812000 - 0x3289cfff Message armv7 <2cce1aa95a493906bb0227197f9e4b96> /System/Library/PrivateFrameworks/Message.framework/Message
0x328f1000 - 0x328fdfff HomeSharing armv7 <2df6957cdfea31aea12eebf27ca1691c> /System/Library/PrivateFrameworks/HomeSharing.framework/HomeSharing
0x328fe000 - 0x32905fff libMobileGestalt.dylib armv7 <55f29184efcc3046bb833dd72a4487e1> /usr/lib/libMobileGestalt.dylib
0x329a0000 - 0x32aecfff MediaToolbox armv7 <482b13059e8a329fa5d832baede25103> /System/Library/PrivateFrameworks/MediaToolbox.framework/MediaToolbox
0x32b03000 - 0x32b05fff CrashReporterSupport armv7 <9e7efa009730322f84bbc5d8bf1ded94> /System/Library/PrivateFrameworks/CrashReporterSupport.framework/CrashReporterSupport
0x32b06000 - 0x32b10fff AccountSettings armv7 <d083fb384dc7311eb6766b9b2d2dd9c8> /System/Library/PrivateFrameworks/AccountSettings.framework/AccountSettings
0x32b19000 - 0x32b26fff DataDetectorsUI armv7 <d454cde062983860a41694922eb5c042> /System/Library/PrivateFrameworks/DataDetectorsUI.framework/DataDetectorsUI
0x32cd9000 - 0x32de1fff CoreData armv7 <9843a401dd1d322383e3e40021cc8b95> /System/Library/Frameworks/CoreData.framework/CoreData
0x33123000 - 0x33125fff libgcc_s.1.dylib armv7 <a2631ac302f4310dae8367939e16b7c2> /usr/lib/libgcc_s.1.dylib
0x33126000 - 0x331c3fff AddressBookUI armv7 <e354aeb3d96e30338e90cc3638ffe81b> /System/Library/Frameworks/AddressBookUI.framework/AddressBookUI
0x331c4000 - 0x331c8fff libGFXShared.dylib armv7 <a0772a32cd8b3b9194bb0c29807c1c5b> /System/Library/Frameworks/OpenGLES.framework/libGFXShared.dylib
0x331d6000 - 0x33563fff UIKit armv7 <c271b78464d93cb7bf28c6e49df293ba> /System/Library/Frameworks/UIKit.framework/UIKit
0x33566000 - 0x335acfff CoreTelephony armv7 <af7d1e770e5a3ffd8834a57fb5d40557> /System/Library/Frameworks/CoreTelephony.framework/CoreTelephony
0x335ad000 - 0x335e0fff QuickLook armv7 <29d2d981d1d6358381f5716ee37314b4> /System/Library/Frameworks/QuickLook.framework/QuickLook
0x335fd000 - 0x33604fff AggregateDictionary armv7 <ab9777b39e8e3026ad64dc90323cad7e> /System/Library/PrivateFrameworks/AggregateDictionary.framework/AggregateDictionary
0x33650000 - 0x33684fff VideoToolbox armv7 <570c63dc3a273a5a8c9072fd5567f5c1> /System/Library/PrivateFrameworks/VideoToolbox.framework/VideoToolbox
0x33685000 - 0x336aefff ContentIndex armv7 <ecd71782cd833360872b943ecc65d203> /System/Library/PrivateFrameworks/ContentIndex.framework/ContentIndex
0x336af000 - 0x33794fff CoreFoundation armv7 <a8444f997111304c9571b3ff974b769c> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
0x33795000 - 0x337dffff libstdc++.6.dylib armv7 <b2cac408951c3f3c9ba3cf563e54ce81> /usr/lib/libstdc++.6.dylib
0x337e0000 - 0x3390cfff libmecabra.dylib armv7 <113de5f9858c32b8b158bfdc68042a97> /usr/lib/libmecabra.dylib
0x3393d000 - 0x3397cfff libSystem.B.dylib armv7 <33dcf9a403ae3fd5971d6030ada2fcab> /usr/lib/libSystem.B.dylib
0x339f0000 - 0x33a32fff CoreAudio armv7 <c972fd5f8e89333ca680b9a33587f896> /System/Library/Frameworks/CoreAudio.framework/CoreAudio
0x33a4f000 - 0x33ad0fff libsystem_c.dylib armv7 <a7077267b6743ed3bbdd86d4380c75d9> /usr/lib/system/libsystem_c.dylib
0x33ad1000 - 0x33af1fff MobileSync armv7 <4df400c4559435889eccd88db77a110c> /System/Library/PrivateFrameworks/MobileSync.framework/MobileSync
0x33af2000 - 0x33af7fff liblaunch.dylib armv7 <f5ccc8234aea3ebd9a88bd37f0fa23ae> /usr/lib/system/liblaunch.dylib
0x33b32000 - 0x33b42fff DataAccessExpress armv7 <66d9047da79a31daa887e6d84c42ecb2> /System/Library/PrivateFrameworks/DataAccessExpress.framework/DataAccessExpress
0x33b8c000 - 0x33c50fff libobjc.A.dylib armv7 <6b51e76fde9f381bb7b3bc5badbfee3a> /usr/lib/libobjc.A.dylib
0x33c61000 - 0x33cd0fff ProofReader armv7 <6d843c6aecdd37ae84baa40af8ad7e65> /System/Library/PrivateFrameworks/ProofReader.framework/ProofReader
0x33cd1000 - 0x33ce4fff libmis.dylib armv7 <529ea6e3a87230ce9f6cf3285c22429c> /usr/lib/libmis.dylib
0x33ced000 - 0x33cf0fff ApplePushService armv7 <015c68c15621348db9f6a012499170e1> /System/Library/PrivateFrameworks/ApplePushService.framework/ApplePushService
0x33d34000 - 0x33e21fff libiconv.2.dylib armv7 <f4146ce07e3031ea8a81fa5516fd77d0> /usr/lib/libiconv.2.dylib
0x37321000 - 0x3743bfff libicucore.A.dylib armv7 <bada0c2725bb31a483d5adf9aaf1f8df> /usr/lib/libicucore.A.dylib
0x3743c000 - 0x3743cfff vecLib armv7 <0c60cd0a60f43d2791d36cb357d30e3c> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/vecLib
0x37472000 - 0x37507fff ImageIO armv7 <d520e3241d1130e8ac1375ee0f2c1095> /System/Library/Frameworks/ImageIO.framework/ImageIO
0x37536000 - 0x37584fff GMM armv7 <049361f664eb3f30b0d25cd56ffc1f0f> /System/Library/PrivateFrameworks/GMM.framework/GMM
0x37585000 - 0x375a4fff Bom armv7 <b178e3efb4d733c694bd5a55e57a314f> /System/Library/PrivateFrameworks/Bom.framework/Bom
| 0 |
10,775,862 | 05/27/2012 17:22:11 | 1,075,113 | 12/01/2011 09:38:46 | 76 | 3 | Save string from jQuery's `$.get` | I'd like to load some content from an URL, to use it in my code. I tried closures and this:
function getStringFromURL(url) {
var getter = function() {
this.result = "undef";
this.func = function(response) {
this.result = response;
};
};
var x = new getter();
$.get(url, x.func);
return x.result; // the it returns "undef" and not the wanted response
}
Nothing worked at all. I'll never got the content, but if I call it with `alert` like `$.get("http://localhost:9000/x", function(response) {
alert(response)
});` it works -- but I'd like to save the response. I think theres a problem with the scope of the `$.get`-method.
Whats wrong with this? | javascript | jquery | null | null | null | null | open | Save string from jQuery's `$.get`
===
I'd like to load some content from an URL, to use it in my code. I tried closures and this:
function getStringFromURL(url) {
var getter = function() {
this.result = "undef";
this.func = function(response) {
this.result = response;
};
};
var x = new getter();
$.get(url, x.func);
return x.result; // the it returns "undef" and not the wanted response
}
Nothing worked at all. I'll never got the content, but if I call it with `alert` like `$.get("http://localhost:9000/x", function(response) {
alert(response)
});` it works -- but I'd like to save the response. I think theres a problem with the scope of the `$.get`-method.
Whats wrong with this? | 0 |
9,217,834 | 02/09/2012 20:00:17 | 756,044 | 05/16/2011 17:14:10 | 44 | 0 | What's a portable and lightweight comet server implementation? | We're developing a web application in PHP and delivering it either on-premise or in the cloud. Cloud servers are Linux, whereas most on-premise customers are on Windows platforms.
For on-premise customers we are distributing an Apache/PHP stack and I would like to have push functionality in the system. Doing long polling in an Apache/mod_php setting might work for on-premise customers, but it's big no-no for scalability in the cloud.
I have been looking around at most Comet server implementations and it looks like they either:
* Are heavyweight and complex (CometD)
* Are single-platform (APE)
* Depend on a whole different platform (Orbited)
* Or don't look very maintained (nginx + http_push_module)
I would love to run into something like memcached for push: light, fast and cross platform, but I haven't been able to.
Suggestions, anyone? Thanks! | comet | null | null | null | null | null | open | What's a portable and lightweight comet server implementation?
===
We're developing a web application in PHP and delivering it either on-premise or in the cloud. Cloud servers are Linux, whereas most on-premise customers are on Windows platforms.
For on-premise customers we are distributing an Apache/PHP stack and I would like to have push functionality in the system. Doing long polling in an Apache/mod_php setting might work for on-premise customers, but it's big no-no for scalability in the cloud.
I have been looking around at most Comet server implementations and it looks like they either:
* Are heavyweight and complex (CometD)
* Are single-platform (APE)
* Depend on a whole different platform (Orbited)
* Or don't look very maintained (nginx + http_push_module)
I would love to run into something like memcached for push: light, fast and cross platform, but I haven't been able to.
Suggestions, anyone? Thanks! | 0 |
6,830,904 | 07/26/2011 13:41:46 | 44,330 | 12/08/2008 16:01:37 | 27,145 | 899 | Java: tutorials/explanations of jsr166y (ForkJoin, Phaser) | [This question][1] was asked two years ago, but the resources it mentions are either not very helpful (IMHO) or links are no longer valid.
There must be some good tutorials out there to understand [`ForkJoinTask`][2] and [`Phaser`][3]. I've read the javadoc, but my eyes glaze over, since in order to really understand the javadoc you kind of have to know how these classes are supposed to be used.
Anyone have any suggestions?
[1]: http://stackoverflow.com/questions/1148125/resources-on-the-upcoming-fork-join-framework
[2]: http://download.oracle.com/javase/7/docs/api/index.html?java/util/Collection.html
[3]: http://download.oracle.com/javase/7/docs/api/java/util/concurrent/Phaser.html | java | concurrency | fork-join | phaser | null | null | open | Java: tutorials/explanations of jsr166y (ForkJoin, Phaser)
===
[This question][1] was asked two years ago, but the resources it mentions are either not very helpful (IMHO) or links are no longer valid.
There must be some good tutorials out there to understand [`ForkJoinTask`][2] and [`Phaser`][3]. I've read the javadoc, but my eyes glaze over, since in order to really understand the javadoc you kind of have to know how these classes are supposed to be used.
Anyone have any suggestions?
[1]: http://stackoverflow.com/questions/1148125/resources-on-the-upcoming-fork-join-framework
[2]: http://download.oracle.com/javase/7/docs/api/index.html?java/util/Collection.html
[3]: http://download.oracle.com/javase/7/docs/api/java/util/concurrent/Phaser.html | 0 |
9,005,282 | 01/25/2012 15:28:35 | 1,154,910 | 01/17/2012 21:20:16 | 38 | 0 | Porting Java code to C# | I need to create a porting software that will convert Java code to C# (and vice verse, but I will look into that after). The software will aim at people who are proficient in one language and know completely nothing about the other one, and also if you have a very good piece of source code on one platform and want to use it on another without having to manually change it.
I know there are existing works similar to this, but I need to create my own (also for practice purposes), and I'm not really sure how to start. I have considered making a C# project which will call a .Java source code, and go through it line by line and convert the text to what C# looks like. Example: <pre>public class Car extends Vehicle {}<code> change to <pre>public class Car : Vehicle {}<code> and go on about changing every difference between the two languages.
Is this the proper approach and are there any other ones?
*Note: I have found articles about it, and I saw AST and Parsing come out a lot, as well as several parsers such as NRefactory. Can anyone explain how are those terms related to my problem, and how does a parser(NRefactory) works? The definitions gave me an overview, but I'm still not sure if I understand the concept.
| c# | java | porting | null | null | 01/25/2012 15:38:20 | too localized | Porting Java code to C#
===
I need to create a porting software that will convert Java code to C# (and vice verse, but I will look into that after). The software will aim at people who are proficient in one language and know completely nothing about the other one, and also if you have a very good piece of source code on one platform and want to use it on another without having to manually change it.
I know there are existing works similar to this, but I need to create my own (also for practice purposes), and I'm not really sure how to start. I have considered making a C# project which will call a .Java source code, and go through it line by line and convert the text to what C# looks like. Example: <pre>public class Car extends Vehicle {}<code> change to <pre>public class Car : Vehicle {}<code> and go on about changing every difference between the two languages.
Is this the proper approach and are there any other ones?
*Note: I have found articles about it, and I saw AST and Parsing come out a lot, as well as several parsers such as NRefactory. Can anyone explain how are those terms related to my problem, and how does a parser(NRefactory) works? The definitions gave me an overview, but I'm still not sure if I understand the concept.
| 3 |
3,874,599 | 10/06/2010 16:11:56 | 307,976 | 04/02/2010 21:12:32 | 475 | 9 | I want to move to something new... | Currently I'm a .NET developer, I've been working with WinForms, WPF,a little with ASP.NET, Silverlight and recently with raw HTML/JavaScript/CSS and using IIS/.NET as server side only. And I've really enjoyed this last one, because now I understand what ASP.NET is doing under the hood, and that has made me a better developer, I think :P I've been developing custom components for a custom framework (like the UI clashes in ASP.NET).
No I have to move to another thing, because what I do here is not gonna be done by other companies, and it's a good experience but it's been a while, so I was planing to get into Sharepoint and become a WebPart developer for some company, because I'd like to go on developing web components to be used for other developers.
I have no idea about the Sharepoint world, but my friends have told me that what I want to become, is very feasible and there is lots of positios like that.
My plan is get strongly into ASP.NET 3.5 and after go with Sharepoint 2010 in order to be ready in around 3 months.
So what do you think about this? Is it a feasible plan?
Thanks in advance. | asp.net | sharepoint | career-development | sharepoint2010 | sharepoint-development | 10/06/2010 19:04:44 | not constructive | I want to move to something new...
===
Currently I'm a .NET developer, I've been working with WinForms, WPF,a little with ASP.NET, Silverlight and recently with raw HTML/JavaScript/CSS and using IIS/.NET as server side only. And I've really enjoyed this last one, because now I understand what ASP.NET is doing under the hood, and that has made me a better developer, I think :P I've been developing custom components for a custom framework (like the UI clashes in ASP.NET).
No I have to move to another thing, because what I do here is not gonna be done by other companies, and it's a good experience but it's been a while, so I was planing to get into Sharepoint and become a WebPart developer for some company, because I'd like to go on developing web components to be used for other developers.
I have no idea about the Sharepoint world, but my friends have told me that what I want to become, is very feasible and there is lots of positios like that.
My plan is get strongly into ASP.NET 3.5 and after go with Sharepoint 2010 in order to be ready in around 3 months.
So what do you think about this? Is it a feasible plan?
Thanks in advance. | 4 |
2,989,059 | 06/07/2010 11:35:59 | 360,355 | 06/07/2010 11:35:59 | 1 | 0 | Drupal Error After Logging In | I'm kinda new to using drupal and i'm just wondering why I kind of get this error on my new site.
See i have this website under WampServer running drupal6-16. Everytime I log in with my pre-created admin account 'admin01' pass: 'admin01' i get redirected to the WampServer localhost which appears to be unusual since the header does not have the WampServer logo.
I already tried creating a new drupal website with the same database and the same thing happens. Also, I tried creating another website with a new database but I copied the other website's theme and other contents and the same thing happens.
Help me please. I am losing my grip on this. :(
Note: I have the same website running on one PC and i am just trying to run it on another PC by copying all its contents. The original copy is working perfectly but I can't seem to get the hook on my new copies to work on other PCs. | drupal | localhost | log | in | null | null | open | Drupal Error After Logging In
===
I'm kinda new to using drupal and i'm just wondering why I kind of get this error on my new site.
See i have this website under WampServer running drupal6-16. Everytime I log in with my pre-created admin account 'admin01' pass: 'admin01' i get redirected to the WampServer localhost which appears to be unusual since the header does not have the WampServer logo.
I already tried creating a new drupal website with the same database and the same thing happens. Also, I tried creating another website with a new database but I copied the other website's theme and other contents and the same thing happens.
Help me please. I am losing my grip on this. :(
Note: I have the same website running on one PC and i am just trying to run it on another PC by copying all its contents. The original copy is working perfectly but I can't seem to get the hook on my new copies to work on other PCs. | 0 |
5,929,499 | 05/08/2011 18:46:08 | 677,889 | 03/26/2011 09:44:38 | 51 | 2 | URLEncodedUtils.format() issue in android | I found an issue with URLEncodedUtils.format()<br>
When i pass in parameter NameValuePairs consisting of value with space it fails to proper encode. <br>
I passed a "time" key with "2011-05-08 21:36:39" value and <br>
URLEncodedUtils.format(nameValuePairs, "UTF-8"); <br>
returns <br>
&time=2011-05-08+21%3A36%3A39& <br>
where as u can c the space replaced with "+" instead of %20<br>
Why is that? Didn't expect it. | android | urlencode | null | null | null | null | open | URLEncodedUtils.format() issue in android
===
I found an issue with URLEncodedUtils.format()<br>
When i pass in parameter NameValuePairs consisting of value with space it fails to proper encode. <br>
I passed a "time" key with "2011-05-08 21:36:39" value and <br>
URLEncodedUtils.format(nameValuePairs, "UTF-8"); <br>
returns <br>
&time=2011-05-08+21%3A36%3A39& <br>
where as u can c the space replaced with "+" instead of %20<br>
Why is that? Didn't expect it. | 0 |
8,431,936 | 12/08/2011 13:46:41 | 896,293 | 08/16/2011 08:41:41 | 24 | 0 | how store many images in android | I am newbie in android. In our application we will use so many images around 1 gb. I don't know what is the best way to store them. I don't want to keep them in sd card. I want to store them in somewhere protected. I know that internal memory is not enough for those many images. So any ideas will be very helpful.. | android | null | null | null | null | 12/08/2011 16:04:42 | not a real question | how store many images in android
===
I am newbie in android. In our application we will use so many images around 1 gb. I don't know what is the best way to store them. I don't want to keep them in sd card. I want to store them in somewhere protected. I know that internal memory is not enough for those many images. So any ideas will be very helpful.. | 1 |
9,951,561 | 03/30/2012 23:25:05 | 1,304,274 | 03/30/2012 22:44:46 | 1 | 0 | Python: POST Params | How exactly do I send an HTTP Post Request (using httplib) WITH parameters?
I understand the class. I just don't understand how to send the parameters.
Please include a full sample script. | python | null | null | null | null | 06/27/2012 11:44:59 | not a real question | Python: POST Params
===
How exactly do I send an HTTP Post Request (using httplib) WITH parameters?
I understand the class. I just don't understand how to send the parameters.
Please include a full sample script. | 1 |
4,121,567 | 11/08/2010 05:45:20 | 500,314 | 11/08/2010 04:18:34 | 1 | 0 | Embedded Scala interpreter inherits parent classpath | As asked in <a href="http://scala-programming-language.1934581.n4.nabble.com/scala-tools-nsc-Interpreter-and-classpath-td2548176.html">this thread</a> on the Scala mailing list, how can I create an embedded Scala interpreter that inherits the classpath of the parent program? Suppose the parent Scala program is launched using `scala -cp <classpath> ...`; can `<classpath>` be accessed as a string from within the Scala program? (The _Java_ classpath, available via `System.getProperty("java.class.path")`, appears to differ from the Scala classpath.)
An alternative might be to reuse the parent ClassLoader in lieu of a string-based classpath (apparently Apache Sling works this way). Is this the recommended way to do it? | scala | null | null | null | null | null | open | Embedded Scala interpreter inherits parent classpath
===
As asked in <a href="http://scala-programming-language.1934581.n4.nabble.com/scala-tools-nsc-Interpreter-and-classpath-td2548176.html">this thread</a> on the Scala mailing list, how can I create an embedded Scala interpreter that inherits the classpath of the parent program? Suppose the parent Scala program is launched using `scala -cp <classpath> ...`; can `<classpath>` be accessed as a string from within the Scala program? (The _Java_ classpath, available via `System.getProperty("java.class.path")`, appears to differ from the Scala classpath.)
An alternative might be to reuse the parent ClassLoader in lieu of a string-based classpath (apparently Apache Sling works this way). Is this the recommended way to do it? | 0 |
8,120,146 | 11/14/2011 10:22:12 | 640,913 | 03/02/2011 09:55:06 | 141 | 10 | How to encrypt data in android | Thanks in Advance to hear me.
My Problem is That i m using Php WebService to Send my data to server.Somehow my data is too much important and for the same i have to use some encryption algorithm to send my data to webservice..and then webservice decrypt that data and further proceed.Same way,when WebService sending response,response should be encrypted and from client side it would be decypted.
can anyone suggest me what algorithm or what method should i do for the above issue..???
| java | android | web-services | null | null | 11/15/2011 22:50:58 | not a real question | How to encrypt data in android
===
Thanks in Advance to hear me.
My Problem is That i m using Php WebService to Send my data to server.Somehow my data is too much important and for the same i have to use some encryption algorithm to send my data to webservice..and then webservice decrypt that data and further proceed.Same way,when WebService sending response,response should be encrypted and from client side it would be decypted.
can anyone suggest me what algorithm or what method should i do for the above issue..???
| 1 |
9,131,401 | 02/03/2012 15:47:46 | 1,187,313 | 02/03/2012 10:48:13 | 1 | 0 | Convert String to Double excluding part of the string | How to convert double to a string value that I get I get the spinner for example: "10 (ton)."
In summary:
How to convert string to double and delete the part (ton)?
I need only the value 10 | android | string | double | null | null | null | open | Convert String to Double excluding part of the string
===
How to convert double to a string value that I get I get the spinner for example: "10 (ton)."
In summary:
How to convert string to double and delete the part (ton)?
I need only the value 10 | 0 |
5,059,317 | 02/20/2011 19:10:36 | 625,546 | 02/20/2011 19:10:36 | 1 | 0 | What development stack should I learn to move from ASP.NET development to Java? | So here's the story: I currently work as a C# developer doing ASP.NET. While I like C# I don't like the overall quality of the .NET community; most of my past experiences have been that many .NET developers are totally ignorant of actual software engineering (e.g. design patterns, code separation, etc.). The Java area seems a lot better in this regard even if you do have to put up with the occasional "architecture astronaut".
My actual question is this: I can pick up the Java syntax easy enough since I already know C#. However, I've only worked with the full Microsoft stack for web development (WebForms, although I've looked a bit at MVC and I've done some Ruby on Rails demo stuff so I know MVC fairly well). If I want to learn enough marketable skills to be able to apply for junior-level Java development positions at companies, what stack should I look at? There are dozens of Java web frameworks out there; what would be the most common one used in companies? It seems that Hibernate is the default standard for persistence (I've done a little bit with NHibernate) so I'm okay with that. I've also seen several new Java web frameworks that seem interesting, but learning them won't give me a leg up in applying for a job at a company because I'm bettering they're untested in the corporate world and aimed at startups and similar like most new frameworks.
Which framework would be the most likely to be used at a typical company that I should start to learn in order to begin a transition to a better quality community? | java | java-web-framework | null | null | null | 02/20/2011 19:47:39 | not constructive | What development stack should I learn to move from ASP.NET development to Java?
===
So here's the story: I currently work as a C# developer doing ASP.NET. While I like C# I don't like the overall quality of the .NET community; most of my past experiences have been that many .NET developers are totally ignorant of actual software engineering (e.g. design patterns, code separation, etc.). The Java area seems a lot better in this regard even if you do have to put up with the occasional "architecture astronaut".
My actual question is this: I can pick up the Java syntax easy enough since I already know C#. However, I've only worked with the full Microsoft stack for web development (WebForms, although I've looked a bit at MVC and I've done some Ruby on Rails demo stuff so I know MVC fairly well). If I want to learn enough marketable skills to be able to apply for junior-level Java development positions at companies, what stack should I look at? There are dozens of Java web frameworks out there; what would be the most common one used in companies? It seems that Hibernate is the default standard for persistence (I've done a little bit with NHibernate) so I'm okay with that. I've also seen several new Java web frameworks that seem interesting, but learning them won't give me a leg up in applying for a job at a company because I'm bettering they're untested in the corporate world and aimed at startups and similar like most new frameworks.
Which framework would be the most likely to be used at a typical company that I should start to learn in order to begin a transition to a better quality community? | 4 |
3,447,198 | 08/10/2010 08:28:21 | 112,502 | 05/26/2009 10:52:14 | 22 | 1 | need help to create reguller expression | i need regular expression which is not allow ' | regex | null | null | null | null | 08/10/2010 12:09:58 | not a real question | need help to create reguller expression
===
i need regular expression which is not allow ' | 1 |
10,001,914 | 04/03/2012 21:48:39 | 1,152,917 | 01/17/2012 00:24:05 | 51 | 0 | What characteristics does GCC have that separates it from other compilers? | It seems like most compilers have their quirks specific to them. What does the GCC suite have? | gcc | g++ | gfortran | gnat | null | 04/04/2012 10:38:01 | not a real question | What characteristics does GCC have that separates it from other compilers?
===
It seems like most compilers have their quirks specific to them. What does the GCC suite have? | 1 |
6,464,378 | 06/24/2011 06:50:01 | 813,591 | 06/24/2011 06:50:01 | 1 | 0 | difference SAFE_RELEASE(), SAFE_DELETE() | I'm newbie in programming.
I'm wondering release and delete function.
When I allocate memory with new, I should terminate it with delete.
But when I should use release?
What's the difference release and delete...?
| c++ | c | directx | null | null | null | open | difference SAFE_RELEASE(), SAFE_DELETE()
===
I'm newbie in programming.
I'm wondering release and delete function.
When I allocate memory with new, I should terminate it with delete.
But when I should use release?
What's the difference release and delete...?
| 0 |
10,661,458 | 05/19/2012 00:56:32 | 863,984 | 07/26/2011 17:38:32 | 1 | 0 | dtmf signal generation in C or C++ | I want to generate dtmf signals on the PC and send it via serial port to the microcontroller to detect them(dtmf signals). I would like to get guidance on how to write the PC code to generate the dtmf signals or any available code which does this for me or even better a ready made application from which I could send those signals to the serial port.
My goal is to implement in software a detection algorithm for dtmf signals in a microcontroller (PIC18F452) to reduce the cost of having to add an extra chip to do the job(detection). | c | signals | serial | microcontroller | dtmf | 05/19/2012 22:09:52 | not a real question | dtmf signal generation in C or C++
===
I want to generate dtmf signals on the PC and send it via serial port to the microcontroller to detect them(dtmf signals). I would like to get guidance on how to write the PC code to generate the dtmf signals or any available code which does this for me or even better a ready made application from which I could send those signals to the serial port.
My goal is to implement in software a detection algorithm for dtmf signals in a microcontroller (PIC18F452) to reduce the cost of having to add an extra chip to do the job(detection). | 1 |
6,014,898 | 05/16/2011 08:42:10 | 754,569 | 05/15/2011 15:17:05 | 6 | 0 | Counter/Storage Collector + Matlab | I'm trying to design a storage system where excess energy goes into it. There is a cap of a maximum storage size for the system. I am struggling to work out how to code this in matlab.
Currently im using a function similar to this
max_storage = no_tanks*tank_size
if cumsum(excess) > 0
storage = cumsum(excess)
elseif cumsum(excess) < 0
After that I am confused how to continue writing the code. Any help would be greatly appreciated | matlab | null | null | null | null | null | open | Counter/Storage Collector + Matlab
===
I'm trying to design a storage system where excess energy goes into it. There is a cap of a maximum storage size for the system. I am struggling to work out how to code this in matlab.
Currently im using a function similar to this
max_storage = no_tanks*tank_size
if cumsum(excess) > 0
storage = cumsum(excess)
elseif cumsum(excess) < 0
After that I am confused how to continue writing the code. Any help would be greatly appreciated | 0 |
5,843,328 | 04/30/2011 17:04:59 | 197,606 | 10/27/2009 19:49:00 | 2,807 | 104 | Javascript side scrolling | How can you scroll through the viewport of a DIV? I need to build a horizontal scrolling feature on my site where the user has left and right arrows. I've never build anything like this and am wondering how this is done? | jquery | null | null | null | null | null | open | Javascript side scrolling
===
How can you scroll through the viewport of a DIV? I need to build a horizontal scrolling feature on my site where the user has left and right arrows. I've never build anything like this and am wondering how this is done? | 0 |
6,360,255 | 06/15/2011 15:29:36 | 799,858 | 06/15/2011 15:01:34 | 1 | 0 | Django javascript problem when using forms | So I've been stuck on this problem for a day or so now and I'm still not getting very far. I'm using a django inline form-set, this allows for all previous saved forms to be displayed and then one extra empty form. I'm using javascript (jQuery) to hide all the forms until a user clicks an "edit" or "add new" button (p tag styled to look like an a tag) then the form is slideToggled for the user to see then edit.
The problem I'm running into is when the form isn't valid according to my regex in the forms.py. The form doesn't save, obviously, but the slideToggle closes. If you click the edit button again it opens with error messages over the fields that had incorrect input.
What I'm wanting is that if those error messages are present, I want the form to be open and showing which fields need to be corrected. Here's the code before submitting a form:
<div>
<p class="show_edit_ops button black small">Add New »</p>
<p class="show_edit_ops button black small" style="display:none;">Nevermind «</p>
<div class="formWrapperClass">
<div class="fieldWrapper">
<div class="form_errors"></div>
<p class="field_label"><label for="id_location_set-0-street">Street</label>:</p>
<p class="form_field"><input type="text" name="location_set-0-street" id="id_location_set-0-street" /></p>
<p class="field_help_text">Enter your residence number and street</p>
</div>
<div class="fieldWrapper">
<div class="form_errors"></div>
<p class="field_label"><label for="id_location_set-0-street2">Street2</label>:</p>
<p class="form_field"><input type="text" name="location_set-0-street2" id="id_location_set-0-street2" /></p>
<p class="field_help_text">Enter your apartment number or P.O. box</p>
</div>
<div class="fieldWrapper">
<div class="form_errors"></div>
<p class="field_label"><label for="id_location_set-0-city">City</label>:</p>
<p class="form_field"><input type="text" name="location_set-0-city" id="id_location_set-0-city" /></p>
<p class="field_help_text">Enter your city</p>
</div>
And the form goes on, but you get the idea. And this is one of the fieldWrapper div's after submission with an incorrect input:
<div class="fieldWrapper">
<div class="form_errors"><ul class="errorlist"><li>You must enter a street</li></ul></div>
<p class="field_label"><label for="id_location_set-0-street">Street</label>:</p>
<p class="form_field"><input type="text" name="location_set-0-street" id="id_location_set-0-street" /></p>
<p class="field_help_text">Enter your residence number and street</p>
</div>
I've tried many things to test to see if errorlist exists, that way if it does I can style that form to be open after a bad submit. I've tried find and children pretty extensively, but possibly incorrectly, in ways like this:
if($(".form_errors").find($(".errorlist")) == true){
document.write("error!");
}
But with no luck. If I take out the == true then I get 'error!' on every page of my site. I'm baffled, so any help would be great. All I really need is a correct check to see if errorlist exists, I'm pretty sure I can take it after that.
Thanks!! | javascript | jquery | django | form-validation | django-forms | null | open | Django javascript problem when using forms
===
So I've been stuck on this problem for a day or so now and I'm still not getting very far. I'm using a django inline form-set, this allows for all previous saved forms to be displayed and then one extra empty form. I'm using javascript (jQuery) to hide all the forms until a user clicks an "edit" or "add new" button (p tag styled to look like an a tag) then the form is slideToggled for the user to see then edit.
The problem I'm running into is when the form isn't valid according to my regex in the forms.py. The form doesn't save, obviously, but the slideToggle closes. If you click the edit button again it opens with error messages over the fields that had incorrect input.
What I'm wanting is that if those error messages are present, I want the form to be open and showing which fields need to be corrected. Here's the code before submitting a form:
<div>
<p class="show_edit_ops button black small">Add New »</p>
<p class="show_edit_ops button black small" style="display:none;">Nevermind «</p>
<div class="formWrapperClass">
<div class="fieldWrapper">
<div class="form_errors"></div>
<p class="field_label"><label for="id_location_set-0-street">Street</label>:</p>
<p class="form_field"><input type="text" name="location_set-0-street" id="id_location_set-0-street" /></p>
<p class="field_help_text">Enter your residence number and street</p>
</div>
<div class="fieldWrapper">
<div class="form_errors"></div>
<p class="field_label"><label for="id_location_set-0-street2">Street2</label>:</p>
<p class="form_field"><input type="text" name="location_set-0-street2" id="id_location_set-0-street2" /></p>
<p class="field_help_text">Enter your apartment number or P.O. box</p>
</div>
<div class="fieldWrapper">
<div class="form_errors"></div>
<p class="field_label"><label for="id_location_set-0-city">City</label>:</p>
<p class="form_field"><input type="text" name="location_set-0-city" id="id_location_set-0-city" /></p>
<p class="field_help_text">Enter your city</p>
</div>
And the form goes on, but you get the idea. And this is one of the fieldWrapper div's after submission with an incorrect input:
<div class="fieldWrapper">
<div class="form_errors"><ul class="errorlist"><li>You must enter a street</li></ul></div>
<p class="field_label"><label for="id_location_set-0-street">Street</label>:</p>
<p class="form_field"><input type="text" name="location_set-0-street" id="id_location_set-0-street" /></p>
<p class="field_help_text">Enter your residence number and street</p>
</div>
I've tried many things to test to see if errorlist exists, that way if it does I can style that form to be open after a bad submit. I've tried find and children pretty extensively, but possibly incorrectly, in ways like this:
if($(".form_errors").find($(".errorlist")) == true){
document.write("error!");
}
But with no luck. If I take out the == true then I get 'error!' on every page of my site. I'm baffled, so any help would be great. All I really need is a correct check to see if errorlist exists, I'm pretty sure I can take it after that.
Thanks!! | 0 |
11,088,747 | 06/18/2012 18:22:53 | 779,111 | 06/01/2011 09:35:01 | 723 | 3 | How to determine if element 'x' is in sorted array in Ω(log(n)) run time? | How can I decide if element `x` is in sorted array `A` in `Ω(log(n))` run time ?
My initial answer : we use binary search , and create a decision tree which can show that its height
is at least log_3(n) , hence Ternary tree with height `h` has `3^h` leaves , therefore
log_3(n) ∈ Ω(log(n)) .
I'd appreciate any suggestions and corrections | arrays | algorithm | homework | sorting | exam | null | open | How to determine if element 'x' is in sorted array in Ω(log(n)) run time?
===
How can I decide if element `x` is in sorted array `A` in `Ω(log(n))` run time ?
My initial answer : we use binary search , and create a decision tree which can show that its height
is at least log_3(n) , hence Ternary tree with height `h` has `3^h` leaves , therefore
log_3(n) ∈ Ω(log(n)) .
I'd appreciate any suggestions and corrections | 0 |
11,655,726 | 07/25/2012 17:56:43 | 1,127,283 | 01/03/2012 06:01:16 | 9 | 0 | Creating a nested hash in Ruby gives me errors | I tried to create a nested hash in several ways as mentioned in
http://www.dzone.com/snippets/create-nested-hashes-ruby
# From: http://www.ruby-forum.com/topic/111524
# Author: Daniel Martin
a = Hash.new{|h,k| h[k]=Hash.new(&h.default_proc) }
a[2][1]=2
a[2][2][3]=4
a[3][1][1][1]=1
p a #=> {2=>{1=>2, 2=>{3=>4}}, 3=>{1=>{1=>{1=>1}}}}
# From: http://www.ruby-forum.com/topic/130324
# Author: Sebastian Hungerecker
blk = lambda {|h,k| h[k] = Hash.new(&blk)}
x = Hash.new(&blk)
x[:la][:li][:lu][:chunky][:bacon][:foo] = "bar"
But they keep giving me errors like
NoMethodError: undefined method `+' for {}:Hash
from (irb):66:in `block in irb_binding'
from (irb):65:in `each'
from (irb):65
from /Users/kennetht/.rvm/gems/ruby-1.9.3-p194@fdanalyse/gems/railties-3.2.5/lib/rails/commands/console.rb:47:in `start'
from /Users/kennetht/.rvm/gems/ruby-1.9.3-p194@fdanalyse/gems/railties-3.2.5/lib/rails/commands/console.rb:8:in `start'
from /Users/kennetht/.rvm/gems/ruby-1.9.3-p194@fdanalyse/gems/railties-3.2.5/lib/rails/commands.rb:41:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
What is going on? | ruby-on-rails | ruby | hash | null | null | 07/27/2012 12:03:31 | not a real question | Creating a nested hash in Ruby gives me errors
===
I tried to create a nested hash in several ways as mentioned in
http://www.dzone.com/snippets/create-nested-hashes-ruby
# From: http://www.ruby-forum.com/topic/111524
# Author: Daniel Martin
a = Hash.new{|h,k| h[k]=Hash.new(&h.default_proc) }
a[2][1]=2
a[2][2][3]=4
a[3][1][1][1]=1
p a #=> {2=>{1=>2, 2=>{3=>4}}, 3=>{1=>{1=>{1=>1}}}}
# From: http://www.ruby-forum.com/topic/130324
# Author: Sebastian Hungerecker
blk = lambda {|h,k| h[k] = Hash.new(&blk)}
x = Hash.new(&blk)
x[:la][:li][:lu][:chunky][:bacon][:foo] = "bar"
But they keep giving me errors like
NoMethodError: undefined method `+' for {}:Hash
from (irb):66:in `block in irb_binding'
from (irb):65:in `each'
from (irb):65
from /Users/kennetht/.rvm/gems/ruby-1.9.3-p194@fdanalyse/gems/railties-3.2.5/lib/rails/commands/console.rb:47:in `start'
from /Users/kennetht/.rvm/gems/ruby-1.9.3-p194@fdanalyse/gems/railties-3.2.5/lib/rails/commands/console.rb:8:in `start'
from /Users/kennetht/.rvm/gems/ruby-1.9.3-p194@fdanalyse/gems/railties-3.2.5/lib/rails/commands.rb:41:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
What is going on? | 1 |
10,836,716 | 05/31/2012 15:34:29 | 1,378,651 | 05/06/2012 21:52:21 | 1 | 1 | ID3 tags in Python - is Python the wrong language for this task? | I'm trying to write a Python script that reads the filename of my MP3s and when it finds a missing Artist tag it will take it from the first part of the filename. Most of my MP3s are titled "Artist - Title.mp3".
But none of the ID3 tag readers work very well in Python. ID3 won't read any tag past 1.1 and it hasn't been developed since 2002. Mutagen raises exceptions when a file is missing tags. Eye3D requires installing a binary to get the libraries to work, ditto with pylibid3.
Am I using the wrong language? I've heard that Perl has some great ID3 tag libraries. I'm a novice so switching languages (it's been a while since I've read a book on Perl) would mean starting over from scratch. But I'm willing to do it if Python is the wrong language.
Any thoughts? | python | perl | id3 | null | null | 06/01/2012 01:36:37 | not constructive | ID3 tags in Python - is Python the wrong language for this task?
===
I'm trying to write a Python script that reads the filename of my MP3s and when it finds a missing Artist tag it will take it from the first part of the filename. Most of my MP3s are titled "Artist - Title.mp3".
But none of the ID3 tag readers work very well in Python. ID3 won't read any tag past 1.1 and it hasn't been developed since 2002. Mutagen raises exceptions when a file is missing tags. Eye3D requires installing a binary to get the libraries to work, ditto with pylibid3.
Am I using the wrong language? I've heard that Perl has some great ID3 tag libraries. I'm a novice so switching languages (it's been a while since I've read a book on Perl) would mean starting over from scratch. But I'm willing to do it if Python is the wrong language.
Any thoughts? | 4 |
11,222,001 | 06/27/2012 08:15:58 | 835,251 | 07/08/2011 11:17:06 | 775 | 39 | C#: Initialising member variables to be exposed via properties | I have just written a small piece of code and it struck me that I am not sure what method of initialisation is best practice when it comes to initialising my member variables which will be exposed and used via properties. Which is the best way to initialise my member variables out of the two examples below and more importantly **why**?
**Example 1:**
private string m_connectionString = ConfigurationManager.ConnectionStrings["ApplicationDefault"].ConnectionString;
private string m_providerName = ConfigurationManager.ConnectionStrings["ApplicationDefault"].ProviderName;
public string ConnectionString
{
get { return m_connectionString; }
set { m_connectionString = value; }
}
public string ProviderName
{
get { return m_providerName; }
set { m_providerName = value; }
}
public EntityClusterRefreshServiceDatabaseWorker()
{
}
**Example 2:**
private string m_connectionString;
private string m_providerName;
public string ConnectionString
{
get { return m_connectionString; }
set { m_connectionString = value; }
}
public string ProviderName
{
get { return m_providerName; }
set { m_providerName = value; }
}
public EntityClusterRefreshServiceDatabaseWorker()
{
ConnectionString = ConfigurationManager.ConnectionStrings["ApplicationDefault"].ConnectionString;
ProviderName = ConfigurationManager.ConnectionStrings["ApplicationDefault"].ProviderName;
}
NOTE: Assume that I am not using these variables in a static context. | c# | null | null | null | null | null | open | C#: Initialising member variables to be exposed via properties
===
I have just written a small piece of code and it struck me that I am not sure what method of initialisation is best practice when it comes to initialising my member variables which will be exposed and used via properties. Which is the best way to initialise my member variables out of the two examples below and more importantly **why**?
**Example 1:**
private string m_connectionString = ConfigurationManager.ConnectionStrings["ApplicationDefault"].ConnectionString;
private string m_providerName = ConfigurationManager.ConnectionStrings["ApplicationDefault"].ProviderName;
public string ConnectionString
{
get { return m_connectionString; }
set { m_connectionString = value; }
}
public string ProviderName
{
get { return m_providerName; }
set { m_providerName = value; }
}
public EntityClusterRefreshServiceDatabaseWorker()
{
}
**Example 2:**
private string m_connectionString;
private string m_providerName;
public string ConnectionString
{
get { return m_connectionString; }
set { m_connectionString = value; }
}
public string ProviderName
{
get { return m_providerName; }
set { m_providerName = value; }
}
public EntityClusterRefreshServiceDatabaseWorker()
{
ConnectionString = ConfigurationManager.ConnectionStrings["ApplicationDefault"].ConnectionString;
ProviderName = ConfigurationManager.ConnectionStrings["ApplicationDefault"].ProviderName;
}
NOTE: Assume that I am not using these variables in a static context. | 0 |
1,604,892 | 10/22/2009 03:32:23 | 45,226 | 12/11/2008 04:06:11 | 413 | 14 | Is the md5sum linux command working right? | According to Wikipedia, the md5 sum of an empty string is d41d8cd98f00b204e9800998ecf8427e
I confirmed this with my md5 library
However, when I run
echo "" | md5sum
in my linux shell, I get 68b329da9893e34099c7d8ad5cb9c940 -
In fact, none of my hashes match the output of the md5sum command.
Any thoughts on this discrepancy? | linux | shell | md5 | null | null | null | open | Is the md5sum linux command working right?
===
According to Wikipedia, the md5 sum of an empty string is d41d8cd98f00b204e9800998ecf8427e
I confirmed this with my md5 library
However, when I run
echo "" | md5sum
in my linux shell, I get 68b329da9893e34099c7d8ad5cb9c940 -
In fact, none of my hashes match the output of the md5sum command.
Any thoughts on this discrepancy? | 0 |
8,364,501 | 12/03/2011 00:42:23 | 1,078,435 | 12/03/2011 00:34:25 | 1 | 0 | Which mail server can be configured to donwnload from pop or imap | I have a server at my company (can be ubuntu or windows it depend on the mail server), which is up only in work ours and it has no domain.
I need a solution, which dowload my mails from pop3 or imap server (from my ISP) and it is also an IMAP server, what will serve the thunderbirds at the client computers. Also calender share and usual exchange things.
Oh and also I need to copy all mails to a mail account, which is an archive account and can be accessed throw IMAP. (also outgoing)
Is there any open source/free solution for these ?
| ubuntu | windows-server | email-server | null | null | 03/22/2012 00:27:17 | off topic | Which mail server can be configured to donwnload from pop or imap
===
I have a server at my company (can be ubuntu or windows it depend on the mail server), which is up only in work ours and it has no domain.
I need a solution, which dowload my mails from pop3 or imap server (from my ISP) and it is also an IMAP server, what will serve the thunderbirds at the client computers. Also calender share and usual exchange things.
Oh and also I need to copy all mails to a mail account, which is an archive account and can be accessed throw IMAP. (also outgoing)
Is there any open source/free solution for these ?
| 2 |
8,152,626 | 11/16/2011 13:43:46 | 144,345 | 07/24/2009 08:44:01 | 133 | 0 | Rack::Deflater apparently gzip page but it appears as gibberish in browser | I've deployed a rails 3.1 app on the new cedar stack on heroku.
The new stack doesn't automatically provide gzipping so I've added
use Rack::Deflater in my config.ru
Testing it through curl with the following command:
curl -i -H 'Accept-Encoding: gzip,deflate' http://carbuzz-production.herokuapp.com
Returns an header with content encoding gzip and a body that seems compressed.
Opening the page in firefox or chrome shows the body untranslated (lots of gibberish).
Any idea how to solve this? | heroku | ruby-on-rails-3.1 | rack | cedar | null | null | open | Rack::Deflater apparently gzip page but it appears as gibberish in browser
===
I've deployed a rails 3.1 app on the new cedar stack on heroku.
The new stack doesn't automatically provide gzipping so I've added
use Rack::Deflater in my config.ru
Testing it through curl with the following command:
curl -i -H 'Accept-Encoding: gzip,deflate' http://carbuzz-production.herokuapp.com
Returns an header with content encoding gzip and a body that seems compressed.
Opening the page in firefox or chrome shows the body untranslated (lots of gibberish).
Any idea how to solve this? | 0 |
1,503,618 | 10/01/2009 12:16:39 | 182,472 | 10/01/2009 12:16:39 | 1 | 0 | Ethernet - USB communication | I have a piece of hardware that sends USB data over ethernet (only the data stored in the package). On a remote PC the data is revieved via ethernet. How can I send this data to the USB driver so it translates the data into commands applications can use? | usb | communication | ethernet | null | null | null | open | Ethernet - USB communication
===
I have a piece of hardware that sends USB data over ethernet (only the data stored in the package). On a remote PC the data is revieved via ethernet. How can I send this data to the USB driver so it translates the data into commands applications can use? | 0 |
8,134,577 | 11/15/2011 10:07:41 | 270,311 | 02/10/2010 13:44:08 | 826 | 11 | Flash P2P or FMS? | I am trying to connect 2 flash clients to a flash game, each client will control a object in the flash game.
I am unsure of how I can connect those two clients to the central flash game, or what the best way would be to achieve the desired result.
So basically I am just trying to send commands from the flash clients to the flash game, but I am unsure of how to go about it.
Would P2P or a FMS solution work best? | flash | actionscript-3 | flash-media-server | null | null | null | open | Flash P2P or FMS?
===
I am trying to connect 2 flash clients to a flash game, each client will control a object in the flash game.
I am unsure of how I can connect those two clients to the central flash game, or what the best way would be to achieve the desired result.
So basically I am just trying to send commands from the flash clients to the flash game, but I am unsure of how to go about it.
Would P2P or a FMS solution work best? | 0 |
6,499,406 | 06/27/2011 21:56:41 | 277,079 | 02/19/2010 15:34:09 | 126 | 5 | Why are my ASP.NET DLL's in "Temporary ASP.NET Files" not getting updated on rebuilds? | I am working on a DLL that a webservice I have uses, I added some new code and would like to compile and debug into it via an NUnit testing suite. The steps I have taken are.
1. Write my code in Visual Studio 2008 with the output directory pointing to my applications bin directory (C:\Program Files\etc...).
2. When I launch my webservice process and attach to it, I get the warning that my program was built without debug information, I found that if I copied the .pdb files in the the `C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\...` directory then I could avoid warning but still not hit my code section.
3. I stopped my application, re-built my DLL's, and re-started the web application.
4. Upon further inspection, I noticed that when I stopped my application via. process explorer and deleted the sub-directory under the Temporary ASP.NET directory, then when I restarted my process the sub-directories get re-created, however they do not contain the new DLL's that I had just previously built but an older version of the DLL's, and no PDB files either.
To sum it up my question is how do I get Visual Studio to both build and update the DLL's in the temporary ASP.NET directory? For more kudo's how do I get Visual Studio to automatically copy the PDB files to the same temporary directory without any batch assistance?
Ideally I would like to avoid this automatic copying of my DLL's to the temporary directory, but through my searching today I could not find any suitable way to do this as the ASP internals are quite out of my control.
NOTE: I have the shadow copy feature on NUnit disabled when I hit my webservice via an external executable. | asp.net | web-services | visual-studio-2008 | null | null | null | open | Why are my ASP.NET DLL's in "Temporary ASP.NET Files" not getting updated on rebuilds?
===
I am working on a DLL that a webservice I have uses, I added some new code and would like to compile and debug into it via an NUnit testing suite. The steps I have taken are.
1. Write my code in Visual Studio 2008 with the output directory pointing to my applications bin directory (C:\Program Files\etc...).
2. When I launch my webservice process and attach to it, I get the warning that my program was built without debug information, I found that if I copied the .pdb files in the the `C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\...` directory then I could avoid warning but still not hit my code section.
3. I stopped my application, re-built my DLL's, and re-started the web application.
4. Upon further inspection, I noticed that when I stopped my application via. process explorer and deleted the sub-directory under the Temporary ASP.NET directory, then when I restarted my process the sub-directories get re-created, however they do not contain the new DLL's that I had just previously built but an older version of the DLL's, and no PDB files either.
To sum it up my question is how do I get Visual Studio to both build and update the DLL's in the temporary ASP.NET directory? For more kudo's how do I get Visual Studio to automatically copy the PDB files to the same temporary directory without any batch assistance?
Ideally I would like to avoid this automatic copying of my DLL's to the temporary directory, but through my searching today I could not find any suitable way to do this as the ASP internals are quite out of my control.
NOTE: I have the shadow copy feature on NUnit disabled when I hit my webservice via an external executable. | 0 |
10,396,116 | 05/01/2012 09:55:49 | 720,159 | 04/22/2011 06:41:30 | 198 | 4 | Image Map Only Works In Internet Explorer | If you look at this page: http://216.185.114.10, you will see a blue map. In Internet Explorer the map is interactive (mouseover and click), but in firefox and chrome, nothing happens.
Any idea why? | html | image | cross-browser | area | null | 05/01/2012 18:43:42 | too localized | Image Map Only Works In Internet Explorer
===
If you look at this page: http://216.185.114.10, you will see a blue map. In Internet Explorer the map is interactive (mouseover and click), but in firefox and chrome, nothing happens.
Any idea why? | 3 |
11,210,364 | 06/26/2012 15:08:14 | 1,483,145 | 06/26/2012 14:55:30 | 1 | 0 | Multiplication in C# | to get the value of a column i need to multiply the following value by .45, whats this best way of doing this ?
total = total + Convert.ToInt32(dtGetValues.Rows[i]["tot_amt"]);
i tried this but it does not work
total1 = total1 + Convert.ToInt32 (dtGetValues.Rows [i] ["total_amt" * .45]); | c# | null | null | null | null | 06/26/2012 15:14:09 | not a real question | Multiplication in C#
===
to get the value of a column i need to multiply the following value by .45, whats this best way of doing this ?
total = total + Convert.ToInt32(dtGetValues.Rows[i]["tot_amt"]);
i tried this but it does not work
total1 = total1 + Convert.ToInt32 (dtGetValues.Rows [i] ["total_amt" * .45]); | 1 |
8,703,653 | 01/02/2012 17:37:58 | 609,452 | 02/09/2011 09:05:45 | 45 | 0 | Hg - Find tags that "cover" specific file version | We use hg to control the sources for a large project. Whenever we do a release, we tag the version in hg.
Now say I take a specific revision (where I've fixed a bug for example). I want to know which releases contain this fix, i.e. which tags "cover" this revision.
How do I find this? In hg tags seem to refer only to the tagged changeset. I remember that in ClearCase every ancestor of the tagged revision would be marked too, is there a way to see this information in hg?
Thanks! | mercurial | tags | null | null | null | null | open | Hg - Find tags that "cover" specific file version
===
We use hg to control the sources for a large project. Whenever we do a release, we tag the version in hg.
Now say I take a specific revision (where I've fixed a bug for example). I want to know which releases contain this fix, i.e. which tags "cover" this revision.
How do I find this? In hg tags seem to refer only to the tagged changeset. I remember that in ClearCase every ancestor of the tagged revision would be marked too, is there a way to see this information in hg?
Thanks! | 0 |
9,057,901 | 01/29/2012 23:50:33 | 1,171,907 | 01/26/2012 18:10:00 | 20 | 0 | Create JList object when JButton is pressed in java | Hi I have a button that I want to program so when it gets pressed, a new JList object is creating which lists the items in an array. The problem I encounter is that when I create a new JList object under actionPerformed, nothing happens. Can someone help me please
Here is the neccesary code
public class Print implements ActionListener {
private static JFrame frame = new JFrame("Print Array");
private static JList list;
private JButton btn = new JButton("Print");
private static String[] myArray;
}
public print(){ // Class Constructor
frame.setSize(700, 500);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.add(btn);
frame.setVisible(true);
btn.addActionListener(this);
}
public void actionPerformed(ActionEvent e) {
list = new JList(myArray);//Array is updated in another method
frame.add(list)
}
public static void main(String[] args) {
new Print();
}
| java | jbutton | jlist | actionlistener | null | 03/11/2012 13:46:09 | not a real question | Create JList object when JButton is pressed in java
===
Hi I have a button that I want to program so when it gets pressed, a new JList object is creating which lists the items in an array. The problem I encounter is that when I create a new JList object under actionPerformed, nothing happens. Can someone help me please
Here is the neccesary code
public class Print implements ActionListener {
private static JFrame frame = new JFrame("Print Array");
private static JList list;
private JButton btn = new JButton("Print");
private static String[] myArray;
}
public print(){ // Class Constructor
frame.setSize(700, 500);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.add(btn);
frame.setVisible(true);
btn.addActionListener(this);
}
public void actionPerformed(ActionEvent e) {
list = new JList(myArray);//Array is updated in another method
frame.add(list)
}
public static void main(String[] args) {
new Print();
}
| 1 |
11,650,165 | 07/25/2012 12:52:58 | 1,396,769 | 05/15/2012 17:01:44 | 1 | 0 | Code not working in IE7 | My code is working fine for all browser except for IE7. this is code I am using.this is enclosed in another <div> tag.
<div class="offerspic">
Pic1
</div>
<div class="offersinfo">
<a>Offer1</a><br />
<p><div style="width: 200px;">Offer1 info</div></p>
</div>
div class="offerspic clear">
Pic2
</div>
<div class="offersinfo">
<a>Offer2</a><br />
<p><div style="width: 200px;">Offer2 info</div></p>
</div>
Style used are
.offerspic
{
width:57px;
height:57px;
float:left;
padding:8px 10px 15px 0px;
}
.offersinfo
{
padding-right:10px;
font:normal 12px Arial;
color:#363636;
float:left;
margin:7px 0px 15px 0px;
}
.clear
{
clear:both;
}
Can any one help. Thanks in advance.
| css | internet-explorer-7 | null | null | null | 07/25/2012 19:00:28 | not a real question | Code not working in IE7
===
My code is working fine for all browser except for IE7. this is code I am using.this is enclosed in another <div> tag.
<div class="offerspic">
Pic1
</div>
<div class="offersinfo">
<a>Offer1</a><br />
<p><div style="width: 200px;">Offer1 info</div></p>
</div>
div class="offerspic clear">
Pic2
</div>
<div class="offersinfo">
<a>Offer2</a><br />
<p><div style="width: 200px;">Offer2 info</div></p>
</div>
Style used are
.offerspic
{
width:57px;
height:57px;
float:left;
padding:8px 10px 15px 0px;
}
.offersinfo
{
padding-right:10px;
font:normal 12px Arial;
color:#363636;
float:left;
margin:7px 0px 15px 0px;
}
.clear
{
clear:both;
}
Can any one help. Thanks in advance.
| 1 |
915,794 | 05/27/2009 13:45:15 | 42,024 | 12/01/2008 00:16:09 | 632 | 4 | Is there a way to multithread a SqlDataReader? | I have a Sql Query which returns me over half million rows to process... The process doesn't take really long, but I would like to speed it up a little bit with some multiprocessing. Considering the code below, is it possible to multithread something like that easily?
using (SqlDataReader reader = command.ExecuteReader())
{
while (reader.Read())
{
// ...process row
}
}
It would be perfect if I could simply get a cursor at the beginning and in the middle of the list of results. That way, I could have two thread processing the records. However the SqlDataReader doesn't allow me to do that...
Any idea how I could achieve that? | c#-3.0 | sql | sql-server | multithreading | performance | null | open | Is there a way to multithread a SqlDataReader?
===
I have a Sql Query which returns me over half million rows to process... The process doesn't take really long, but I would like to speed it up a little bit with some multiprocessing. Considering the code below, is it possible to multithread something like that easily?
using (SqlDataReader reader = command.ExecuteReader())
{
while (reader.Read())
{
// ...process row
}
}
It would be perfect if I could simply get a cursor at the beginning and in the middle of the list of results. That way, I could have two thread processing the records. However the SqlDataReader doesn't allow me to do that...
Any idea how I could achieve that? | 0 |
638,206 | 03/12/2009 11:23:57 | 4,665 | 09/05/2008 03:02:08 | 191 | 5 | How do I Select all text boxes in a table excluding the last one in the table row with JQuery. | I want add a key up event to every text box element in a table excluding the last text box in each row. The table is dynamic on both axis.
The key up event will total the values in all but the last text box. The total is then placed in the last text box for the row.
The script for the totaling and setting the total all works fine.
I tired the following to select the target elements:
$("#Grid tr input:text:not(:last)").keyup(function(){
//do total stuff here
})
Unfortunately it works as documented and not as I wanted and selects all but the very last checkbox.
Ideally the solution will not involve any further markup to the table example below or involve any looping. However if that is what it takes, so be it.
<table id="Grid">
<tr id="r1">
<td>Row 1</td>
<td><input type="text" id="txt_a1_b1"></td>
<td><input type="text" id="txt_a1_b2"></td>
<td><input type="text" id="txt_a1_b3"></td>
<td><input type="text" id="txt_a1_b4"></td>
<td><input type="text" id="total_a1"></td>
</tr>
<tr id="r2">
<td>Row 2</td>
<td><input type="text" id="txt_a2_b1"></td>
<td><input type="text" id="txt_a2_b2"></td>
<td><input type="text" id="txt_a2_b3"></td>
<td><input type="text" id="txt_a2_b4"></td>
<td><input type="text" id="total_a2"></td>
</tr>
<tr id="r3">
<td>Row 3</td>
<td><input type="text" id="txt_a3_b1"></td>
<td><input type="text" id="txt_a3_b2"></td>
<td><input type="text" id="txt_a3_b3"></td>
<td><input type="text" id="txt_a3_b4"></td>
<td><input type="text" id="total_a3"></td>
</tr>
</table>
One final point, the total text box does need to be a text box as there is also a requirement to enter a total then split it across the row and I do not want a key up function in the total text box. | jquery | javascript | null | null | null | null | open | How do I Select all text boxes in a table excluding the last one in the table row with JQuery.
===
I want add a key up event to every text box element in a table excluding the last text box in each row. The table is dynamic on both axis.
The key up event will total the values in all but the last text box. The total is then placed in the last text box for the row.
The script for the totaling and setting the total all works fine.
I tired the following to select the target elements:
$("#Grid tr input:text:not(:last)").keyup(function(){
//do total stuff here
})
Unfortunately it works as documented and not as I wanted and selects all but the very last checkbox.
Ideally the solution will not involve any further markup to the table example below or involve any looping. However if that is what it takes, so be it.
<table id="Grid">
<tr id="r1">
<td>Row 1</td>
<td><input type="text" id="txt_a1_b1"></td>
<td><input type="text" id="txt_a1_b2"></td>
<td><input type="text" id="txt_a1_b3"></td>
<td><input type="text" id="txt_a1_b4"></td>
<td><input type="text" id="total_a1"></td>
</tr>
<tr id="r2">
<td>Row 2</td>
<td><input type="text" id="txt_a2_b1"></td>
<td><input type="text" id="txt_a2_b2"></td>
<td><input type="text" id="txt_a2_b3"></td>
<td><input type="text" id="txt_a2_b4"></td>
<td><input type="text" id="total_a2"></td>
</tr>
<tr id="r3">
<td>Row 3</td>
<td><input type="text" id="txt_a3_b1"></td>
<td><input type="text" id="txt_a3_b2"></td>
<td><input type="text" id="txt_a3_b3"></td>
<td><input type="text" id="txt_a3_b4"></td>
<td><input type="text" id="total_a3"></td>
</tr>
</table>
One final point, the total text box does need to be a text box as there is also a requirement to enter a total then split it across the row and I do not want a key up function in the total text box. | 0 |
5,781,769 | 04/25/2011 18:38:14 | 99,923 | 05/02/2009 17:30:50 | 1,999 | 119 | Resources for real PHP tips? | When searching on the web you often find rather useless PHP tips such as single-vs-double quotes and the infamous pre-increment (++$i). Needless to say these tips aren't worth the bandwidth I used to fetch them.
What about real PHP tips like destroying object instances to reclaim memory, skipping function calls because of the increased overhead, property lookups, or not making filesystem check requests in an autoloader?
Anyone have some real PHP tips that don't destroy proper coding practices? Tips I can actually put to use when writing code?
| php | tips-and-tricks | null | null | null | 04/25/2011 18:46:37 | not a real question | Resources for real PHP tips?
===
When searching on the web you often find rather useless PHP tips such as single-vs-double quotes and the infamous pre-increment (++$i). Needless to say these tips aren't worth the bandwidth I used to fetch them.
What about real PHP tips like destroying object instances to reclaim memory, skipping function calls because of the increased overhead, property lookups, or not making filesystem check requests in an autoloader?
Anyone have some real PHP tips that don't destroy proper coding practices? Tips I can actually put to use when writing code?
| 1 |
7,143,805 | 08/22/2011 06:22:45 | 767,177 | 05/24/2011 05:57:18 | 3 | 0 | innerHTML in ie6/ie7 bug? | I user the innerHTML for the code:
<div>
<span id="tag"></span>
</div>
var i = 15;
function timer(){
var div = document.getElementById("tag");
i--;
setInterval(function(){
div.innerHTML = i;// use innerHTML
//div.removeChild(div.childNodes[0]);
//div.appendChild(document.createTextNode(i));
i--;
},15000);
}
timer();
the ff,safari,chrome is ok, but in ie8 value is no change;
| javascript | internet-explorer-8 | innerhtml | null | null | null | open | innerHTML in ie6/ie7 bug?
===
I user the innerHTML for the code:
<div>
<span id="tag"></span>
</div>
var i = 15;
function timer(){
var div = document.getElementById("tag");
i--;
setInterval(function(){
div.innerHTML = i;// use innerHTML
//div.removeChild(div.childNodes[0]);
//div.appendChild(document.createTextNode(i));
i--;
},15000);
}
timer();
the ff,safari,chrome is ok, but in ie8 value is no change;
| 0 |
6,943,609 | 08/04/2011 14:52:11 | 860,231 | 07/24/2011 13:08:03 | 5 | 0 | Some weird problem with Nokogiri's xpath method | doc.xpath('//img') #this will get some results
doc.xpath('//img[@class="productImage"]') #and this gets nothing at all
doc.xpath('//div[@id="someID"]') # and this won't work either
I don't know what went wrong here,I double checked the HTML source,There are plenty of img tag which contains the attribute(class="productImage").
It's like the attribute selector just won't work.
Here is the URL which the HTML source come from.
http://www.amazon.cn/s/ref=nb_sb_ss_i_0_1?__mk_zh_CN=%E4%BA%9A%E9%A9%AC%E9%80%8A%E7%BD%91%E7%AB%99&url=search-alias%3Daps&field-keywords=%E4%B8%93%E5%85%AB&x=0&y=0&sprefix=%E4%B8%93
please do me a favor if you got some spare time.Parse the HTML content like I do see if you can solve this one | html | ruby | xml | parsing | nokogiri | null | open | Some weird problem with Nokogiri's xpath method
===
doc.xpath('//img') #this will get some results
doc.xpath('//img[@class="productImage"]') #and this gets nothing at all
doc.xpath('//div[@id="someID"]') # and this won't work either
I don't know what went wrong here,I double checked the HTML source,There are plenty of img tag which contains the attribute(class="productImage").
It's like the attribute selector just won't work.
Here is the URL which the HTML source come from.
http://www.amazon.cn/s/ref=nb_sb_ss_i_0_1?__mk_zh_CN=%E4%BA%9A%E9%A9%AC%E9%80%8A%E7%BD%91%E7%AB%99&url=search-alias%3Daps&field-keywords=%E4%B8%93%E5%85%AB&x=0&y=0&sprefix=%E4%B8%93
please do me a favor if you got some spare time.Parse the HTML content like I do see if you can solve this one | 0 |
10,911,142 | 06/06/2012 09:00:45 | 1,235,037 | 02/27/2012 07:21:19 | 8 | 0 | join two tables(one of them is part of the other) | I have two tables Table_A and Table_B and i want to join those tables to optain Table_c as the result:
Table_A:
+-----------+-----------+---------+
| tableA_id | tableB_id | v_id |
+-----------+-----------+---------+
| 1 | 2 | 27 |
| 2 | 3 | 27 |
| 3 | 3 | 28 |
| 4 | 1 | 26 |
| 5 | 2 | 26 |
| 6 | 3 | 26 |
| 7 | 1 | 24 |
| 8 | 1 | 25 |
+-----------+-----------+---------+
Table_B:
+-----------+-----------+
| tableB_id | s_name |
+-----------+-----------+
| 1 | s1 |
| 2 | s2 |
| 3 | s3 |
+-----------+-----------+
Table_c:
+-----------+-----------+-----------++--------+
| tableB_id | s_name | tableA_id | v_id |
+-----------+-----------+-----------+---------+
| 1 | s1 | null | null |
| 2 | s2 | 1 | 27 |
| 3 | s3 | 2 | 27 |
+-----------+-----------+-----------+---------+
I tried different queries, but i couldn't reach the desired output.
This is MYSQL query:
SELECT s.tableB_id, s.s_name, v.tableA_id, v.v_id
FROM Table_A as v
left OUTER JOIN Table_B as s
ON v.v_id=27
| mysql | join | null | null | null | null | open | join two tables(one of them is part of the other)
===
I have two tables Table_A and Table_B and i want to join those tables to optain Table_c as the result:
Table_A:
+-----------+-----------+---------+
| tableA_id | tableB_id | v_id |
+-----------+-----------+---------+
| 1 | 2 | 27 |
| 2 | 3 | 27 |
| 3 | 3 | 28 |
| 4 | 1 | 26 |
| 5 | 2 | 26 |
| 6 | 3 | 26 |
| 7 | 1 | 24 |
| 8 | 1 | 25 |
+-----------+-----------+---------+
Table_B:
+-----------+-----------+
| tableB_id | s_name |
+-----------+-----------+
| 1 | s1 |
| 2 | s2 |
| 3 | s3 |
+-----------+-----------+
Table_c:
+-----------+-----------+-----------++--------+
| tableB_id | s_name | tableA_id | v_id |
+-----------+-----------+-----------+---------+
| 1 | s1 | null | null |
| 2 | s2 | 1 | 27 |
| 3 | s3 | 2 | 27 |
+-----------+-----------+-----------+---------+
I tried different queries, but i couldn't reach the desired output.
This is MYSQL query:
SELECT s.tableB_id, s.s_name, v.tableA_id, v.v_id
FROM Table_A as v
left OUTER JOIN Table_B as s
ON v.v_id=27
| 0 |
6,315,988 | 06/11/2011 12:43:47 | 629,685 | 02/23/2011 06:49:48 | 28 | 2 | Flexible regular expression url, Django. | I try to do flexible url. I did it this way
url(r'^(&\w*)?/?$', direct_to_template,
{'template': 'basic.djhtml'}),
get_absolute_url
def get_absolute_url(self):
return "/&%s" % self.human_redble_url
The problem is an error:
>direct_to_template() got multiple values for keyword argument 'template'
What does it mean? How could I fix it?
In Python interactive interpretor this regexp works
>>> import re
>>> reg = re.compile('^(&\w*)?/?$')
>>> result = reg.match('&post1')
>>> result
<_sre.SRE_Match object at 0xb77098a0>
>>> wrong = reg.match('aergsr')
>>> print wrong
None
>>> reg.match('post1')
>>> print reg.match('post1')
None
>>> print reg.match('&post1/')
<_sre.SRE_Match object at 0xb77097a0>
>>> print reg.match('&post1:')
None
| regex | django | django-urls | null | null | null | open | Flexible regular expression url, Django.
===
I try to do flexible url. I did it this way
url(r'^(&\w*)?/?$', direct_to_template,
{'template': 'basic.djhtml'}),
get_absolute_url
def get_absolute_url(self):
return "/&%s" % self.human_redble_url
The problem is an error:
>direct_to_template() got multiple values for keyword argument 'template'
What does it mean? How could I fix it?
In Python interactive interpretor this regexp works
>>> import re
>>> reg = re.compile('^(&\w*)?/?$')
>>> result = reg.match('&post1')
>>> result
<_sre.SRE_Match object at 0xb77098a0>
>>> wrong = reg.match('aergsr')
>>> print wrong
None
>>> reg.match('post1')
>>> print reg.match('post1')
None
>>> print reg.match('&post1/')
<_sre.SRE_Match object at 0xb77097a0>
>>> print reg.match('&post1:')
None
| 0 |
11,333,249 | 07/04/2012 17:19:55 | 1,100,671 | 12/15/2011 20:05:12 | 29 | 0 | differences between using .dll via c++ or .net c++ | i'm trying to use .dll file in my .net project but apllications crashing while i'm using function (sending packet into server). In c++ project it's working fine. What differences are between c++ and .net c++? (i'm using Ms visual studio 2010 express)
If somebody can check the code. This is my c++ project in console: http://temp-share.com/show/3YgFbc4yx
and this is my .net c++ project with gui: http://temp-share.com/show/HKdP0sYqA | c++ | .net | dll | null | null | 07/04/2012 18:29:12 | not constructive | differences between using .dll via c++ or .net c++
===
i'm trying to use .dll file in my .net project but apllications crashing while i'm using function (sending packet into server). In c++ project it's working fine. What differences are between c++ and .net c++? (i'm using Ms visual studio 2010 express)
If somebody can check the code. This is my c++ project in console: http://temp-share.com/show/3YgFbc4yx
and this is my .net c++ project with gui: http://temp-share.com/show/HKdP0sYqA | 4 |
3,513,071 | 08/18/2010 14:21:21 | 396,335 | 07/19/2010 07:21:55 | 158 | 3 | Free ASP.Net webhosting. | Hey guys! Can someone give me a site where they grant free ASP.Net hosting?
I found one, but the site just offers 30day period of hosting and 10MB maximum capacity of disk storage. Please post.
Thanks.. | asp.net | null | null | null | null | 08/18/2010 14:24:28 | off topic | Free ASP.Net webhosting.
===
Hey guys! Can someone give me a site where they grant free ASP.Net hosting?
I found one, but the site just offers 30day period of hosting and 10MB maximum capacity of disk storage. Please post.
Thanks.. | 2 |
6,196,158 | 06/01/2011 04:08:03 | 54,760 | 01/13/2009 20:41:17 | 577 | 6 | binary tree in C# | How would you do a binary tree in C# that is simple, straight forward, and does not use any predefined classes? I am talking about something simple like you would do in C++
Nothing like NGenerics
http://stackoverflow.com/questions/1806511/binary-tree-in-c
I mean something that starts with something simple, like this:
struct
{
Node * left
Node * right
int value;
} | c# | binary-tree | null | null | null | 06/03/2011 08:36:04 | not a real question | binary tree in C#
===
How would you do a binary tree in C# that is simple, straight forward, and does not use any predefined classes? I am talking about something simple like you would do in C++
Nothing like NGenerics
http://stackoverflow.com/questions/1806511/binary-tree-in-c
I mean something that starts with something simple, like this:
struct
{
Node * left
Node * right
int value;
} | 1 |
4,084,412 | 11/03/2010 05:18:19 | 495,547 | 11/03/2010 05:18:19 | 1 | 0 | [Delphi] ParamStr() Problem | I have associated the ".file_5" extension with my application and I used the ParamStr(1) function in Delphi to show a messagebox that contains the path & file name of the file when I double click on it in explorer using the code below.
<pre><code>
procedure TForm1.FormCreate(Sender: TObject);
var
TheFile : string;
begin
TheFile := ParamStr(1); //filename for the file that was loaded
ShowMessage(TheFile);
end;
</pre></code>
This works, but if I move the file to another location then the location it was originally in, then the message that is shown is not correct.
Example: (using test.file_5)
The original location of the file is in the C:\ drive and when I double click it my application starts and displays a Messagebox that says: <blockquote>C:\test.file_5</blockquote>
This is correct. If I move that same file to a directory that contains spaces like the program file folder for example then the Messagbox that is displayed is not
<blockquote>C:\Program Files\test.file_5</blockquote> like I would expect but rather
<blockquote>C:\PROGRA~1.FILE_</blockquote> which is obviously not the information I am after so my question is how can I use the ParamStr() function to take into account directories that have spaces in them or is there a better function that I should use that works with directories that contains spaces in them.
| delphi | paramstr | null | null | null | null | open | [Delphi] ParamStr() Problem
===
I have associated the ".file_5" extension with my application and I used the ParamStr(1) function in Delphi to show a messagebox that contains the path & file name of the file when I double click on it in explorer using the code below.
<pre><code>
procedure TForm1.FormCreate(Sender: TObject);
var
TheFile : string;
begin
TheFile := ParamStr(1); //filename for the file that was loaded
ShowMessage(TheFile);
end;
</pre></code>
This works, but if I move the file to another location then the location it was originally in, then the message that is shown is not correct.
Example: (using test.file_5)
The original location of the file is in the C:\ drive and when I double click it my application starts and displays a Messagebox that says: <blockquote>C:\test.file_5</blockquote>
This is correct. If I move that same file to a directory that contains spaces like the program file folder for example then the Messagbox that is displayed is not
<blockquote>C:\Program Files\test.file_5</blockquote> like I would expect but rather
<blockquote>C:\PROGRA~1.FILE_</blockquote> which is obviously not the information I am after so my question is how can I use the ParamStr() function to take into account directories that have spaces in them or is there a better function that I should use that works with directories that contains spaces in them.
| 0 |
10,022,789 | 04/05/2012 04:42:40 | 1,191,020 | 02/05/2012 19:06:15 | 41 | 0 | std::function with non-static member functions | i'm trying to understand a concept and an error. what's wrong with this?
class A
{
public:
A()
{
std::function<void(int)> testFunc(&A::func);
}
private:
void func(int) {}
}
my question, is it possible to create any sort of object that is able to call a member of a specific instance where std::function acts like a member function pointer, except without the wacky type definition that can't be used as function parameters in inheriting classes. for example:
class A
{
public:
A()
{
index[WM_CREATE] = &A::close;
index[WM_DESTROY] = &A::destroy;
}
protected:
map<UINT msg, void (A::*)(HWND, UINT , WPARAM, LPARAM)> index;
void close(HWND,UINT, WPARAM, LPARAM);
void destroy(HWND, UINT, WPARAM, LPARAM);
};
class B : public A
{
public:
B()
{
index[WM_CREATE] = &B::create; // error because it's not a pointer of type A::*
}
private:
void create(HWND, UINT, WPARAM, LPARAM);
};
I'm thinking i'm on the right track of using std::functions like so:
class A
{
public: // Gigantic stl error with these two
A() // |
{ // V
index[WM_CREATE] = std::function<void(HWND, UINT, WPARAM, LPARAM>(&A::close);
index[WM_DESTROY] = std::function<void(HWND, UINT, WPARAM, LPARAM>(&A::destroy);
}
protected:
map<UINT msg, std::function<void(HWND, UINT, WPARAM, LPARAM)> > index;
void close(HWND,UINT, WPARAM, LPARAM);
void destroy(HWND, UINT, WPARAM, LPARAM);
};
class B : public A
{
public: // and this one
B() // |
{ // V
index[WM_CREATE] = std::function<void(HWND, UINT, WPARAM, LPARAM)>(&B::create);
}
private:
void create(HWND, UINT, WPARAM, LPARAM);
};
if someone could explain what these giant cryptic errors mean and how to fix them, i would greatly appreciate it. | c++ | winapi | msvc10 | null | null | null | open | std::function with non-static member functions
===
i'm trying to understand a concept and an error. what's wrong with this?
class A
{
public:
A()
{
std::function<void(int)> testFunc(&A::func);
}
private:
void func(int) {}
}
my question, is it possible to create any sort of object that is able to call a member of a specific instance where std::function acts like a member function pointer, except without the wacky type definition that can't be used as function parameters in inheriting classes. for example:
class A
{
public:
A()
{
index[WM_CREATE] = &A::close;
index[WM_DESTROY] = &A::destroy;
}
protected:
map<UINT msg, void (A::*)(HWND, UINT , WPARAM, LPARAM)> index;
void close(HWND,UINT, WPARAM, LPARAM);
void destroy(HWND, UINT, WPARAM, LPARAM);
};
class B : public A
{
public:
B()
{
index[WM_CREATE] = &B::create; // error because it's not a pointer of type A::*
}
private:
void create(HWND, UINT, WPARAM, LPARAM);
};
I'm thinking i'm on the right track of using std::functions like so:
class A
{
public: // Gigantic stl error with these two
A() // |
{ // V
index[WM_CREATE] = std::function<void(HWND, UINT, WPARAM, LPARAM>(&A::close);
index[WM_DESTROY] = std::function<void(HWND, UINT, WPARAM, LPARAM>(&A::destroy);
}
protected:
map<UINT msg, std::function<void(HWND, UINT, WPARAM, LPARAM)> > index;
void close(HWND,UINT, WPARAM, LPARAM);
void destroy(HWND, UINT, WPARAM, LPARAM);
};
class B : public A
{
public: // and this one
B() // |
{ // V
index[WM_CREATE] = std::function<void(HWND, UINT, WPARAM, LPARAM)>(&B::create);
}
private:
void create(HWND, UINT, WPARAM, LPARAM);
};
if someone could explain what these giant cryptic errors mean and how to fix them, i would greatly appreciate it. | 0 |
9,518,079 | 03/01/2012 14:35:47 | 1,120,768 | 12/29/2011 08:47:07 | 1 | 0 | File upload Javascript Extension managing | hello i have the code above which checks the extension suitability to file upload
But it is switched to .xxx file type. when i upload JPEG it doesnt work can you please help me
var uploadedFileType = $("#glrImageFile").val().substring($("#glrImageFile").val().length - 3);
if (uploadedFileType != "" && uploadedFileType != "jpg" && uploadedFileType != "jpg" && uploadedFileType != "bmp" && uploadedFileType != "gif" && uploadedFileType != "png") {
alert("Only jpg, png, gif, bmp image types are supported");
processing = false;
return false;
}
| javascript | extension | managing | null | null | null | open | File upload Javascript Extension managing
===
hello i have the code above which checks the extension suitability to file upload
But it is switched to .xxx file type. when i upload JPEG it doesnt work can you please help me
var uploadedFileType = $("#glrImageFile").val().substring($("#glrImageFile").val().length - 3);
if (uploadedFileType != "" && uploadedFileType != "jpg" && uploadedFileType != "jpg" && uploadedFileType != "bmp" && uploadedFileType != "gif" && uploadedFileType != "png") {
alert("Only jpg, png, gif, bmp image types are supported");
processing = false;
return false;
}
| 0 |
2,056,098 | 01/13/2010 11:03:33 | 4,639 | 09/04/2008 23:07:22 | 7,358 | 45 | How can I serialize an object with a Dictionary<string,object> property? | In the example code below, I get this **error**:
> Element
> TestSerializeDictionary123.Customer.CustomProperties
> vom Typ
> System.Collections.Generic.Dictionary`2[[System.String,
> mscorlib, Version=2.0.0.0,
> Culture=neutral,
> PublicKeyToken=b77a5c561934e089],[System.Object,
> mscorlib, Version=2.0.0.0,
> Culture=neutral,
> PublicKeyToken=b77a5c561934e089]] can
> not be serialized because it
> implements IDictionary.
When I take out the Dictionary property, it works **fine**.
**How can I serialize this Customer object with the dictionary property? Or what replacement type for Dictionary<string,object> can I use that would be serializable?**
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.IO;
using System.Xml;
using System.Text;
namespace TestSerializeDictionary123
{
public class Program
{
static void Main(string[] args)
{
List<Customer> customers = Customer.GetCustomers();
Console.WriteLine("--- Serializing ------------------");
foreach (var customer in customers)
{
Console.WriteLine("Serializing " + customer.GetFullName() + "...");
string xml = XmlHelpers.SerializeObject<Customer>(customer);
Console.WriteLine(xml);
Console.WriteLine("Deserializing ...");
Customer customer2 = XmlHelpers.DeserializeObject<Customer>(xml);
Console.WriteLine(customer2.GetFullName());
Console.WriteLine("---");
}
Console.ReadLine();
}
}
public static class StringHelpers
{
public static String UTF8ByteArrayToString(Byte[] characters)
{
UTF8Encoding encoding = new UTF8Encoding();
String constructedString = encoding.GetString(characters);
return (constructedString);
}
public static Byte[] StringToUTF8ByteArray(String pXmlString)
{
UTF8Encoding encoding = new UTF8Encoding();
Byte[] byteArray = encoding.GetBytes(pXmlString);
return byteArray;
}
}
public static class XmlHelpers
{
public static string SerializeObject<T>(object o)
{
MemoryStream ms = new MemoryStream();
XmlSerializer xs = new XmlSerializer(typeof(T));
XmlTextWriter xtw = new XmlTextWriter(ms, Encoding.UTF8);
xs.Serialize(xtw, o);
ms = (MemoryStream)xtw.BaseStream;
return StringHelpers.UTF8ByteArrayToString(ms.ToArray());
}
public static T DeserializeObject<T>(string xml)
{
XmlSerializer xs = new XmlSerializer(typeof(T));
MemoryStream ms = new MemoryStream(StringHelpers.StringToUTF8ByteArray(xml));
XmlTextWriter xtw = new XmlTextWriter(ms, Encoding.UTF8);
return (T)xs.Deserialize(ms);
}
}
public class Customer
{
public int Id { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string Street { get; set; }
public string Location { get; set; }
public string ZipCode { get; set; }
public Dictionary<string,object> CustomProperties { get; set; }
private int internalValue = 23;
public static List<Customer> GetCustomers()
{
List<Customer> customers = new List<Customer>();
customers.Add(new Customer { Id = 1, FirstName = "Jim", LastName = "Jones", ZipCode = "23434" });
customers.Add(new Customer { Id = 2, FirstName = "Joe", LastName = "Adams", ZipCode = "12312" });
customers.Add(new Customer { Id = 3, FirstName = "Jack", LastName = "Johnson", ZipCode = "23111" });
customers.Add(new Customer { Id = 4, FirstName = "Angie", LastName = "Reckar", ZipCode = "54343" });
customers.Add(new Customer { Id = 5, FirstName = "Henry", LastName = "Anderson", ZipCode = "16623" });
return customers;
}
public string GetFullName()
{
return FirstName + " " + LastName + "(" + internalValue + ")";
}
}
}
| c# | serialization | xml-serialization | dictionary | null | null | open | How can I serialize an object with a Dictionary<string,object> property?
===
In the example code below, I get this **error**:
> Element
> TestSerializeDictionary123.Customer.CustomProperties
> vom Typ
> System.Collections.Generic.Dictionary`2[[System.String,
> mscorlib, Version=2.0.0.0,
> Culture=neutral,
> PublicKeyToken=b77a5c561934e089],[System.Object,
> mscorlib, Version=2.0.0.0,
> Culture=neutral,
> PublicKeyToken=b77a5c561934e089]] can
> not be serialized because it
> implements IDictionary.
When I take out the Dictionary property, it works **fine**.
**How can I serialize this Customer object with the dictionary property? Or what replacement type for Dictionary<string,object> can I use that would be serializable?**
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.IO;
using System.Xml;
using System.Text;
namespace TestSerializeDictionary123
{
public class Program
{
static void Main(string[] args)
{
List<Customer> customers = Customer.GetCustomers();
Console.WriteLine("--- Serializing ------------------");
foreach (var customer in customers)
{
Console.WriteLine("Serializing " + customer.GetFullName() + "...");
string xml = XmlHelpers.SerializeObject<Customer>(customer);
Console.WriteLine(xml);
Console.WriteLine("Deserializing ...");
Customer customer2 = XmlHelpers.DeserializeObject<Customer>(xml);
Console.WriteLine(customer2.GetFullName());
Console.WriteLine("---");
}
Console.ReadLine();
}
}
public static class StringHelpers
{
public static String UTF8ByteArrayToString(Byte[] characters)
{
UTF8Encoding encoding = new UTF8Encoding();
String constructedString = encoding.GetString(characters);
return (constructedString);
}
public static Byte[] StringToUTF8ByteArray(String pXmlString)
{
UTF8Encoding encoding = new UTF8Encoding();
Byte[] byteArray = encoding.GetBytes(pXmlString);
return byteArray;
}
}
public static class XmlHelpers
{
public static string SerializeObject<T>(object o)
{
MemoryStream ms = new MemoryStream();
XmlSerializer xs = new XmlSerializer(typeof(T));
XmlTextWriter xtw = new XmlTextWriter(ms, Encoding.UTF8);
xs.Serialize(xtw, o);
ms = (MemoryStream)xtw.BaseStream;
return StringHelpers.UTF8ByteArrayToString(ms.ToArray());
}
public static T DeserializeObject<T>(string xml)
{
XmlSerializer xs = new XmlSerializer(typeof(T));
MemoryStream ms = new MemoryStream(StringHelpers.StringToUTF8ByteArray(xml));
XmlTextWriter xtw = new XmlTextWriter(ms, Encoding.UTF8);
return (T)xs.Deserialize(ms);
}
}
public class Customer
{
public int Id { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string Street { get; set; }
public string Location { get; set; }
public string ZipCode { get; set; }
public Dictionary<string,object> CustomProperties { get; set; }
private int internalValue = 23;
public static List<Customer> GetCustomers()
{
List<Customer> customers = new List<Customer>();
customers.Add(new Customer { Id = 1, FirstName = "Jim", LastName = "Jones", ZipCode = "23434" });
customers.Add(new Customer { Id = 2, FirstName = "Joe", LastName = "Adams", ZipCode = "12312" });
customers.Add(new Customer { Id = 3, FirstName = "Jack", LastName = "Johnson", ZipCode = "23111" });
customers.Add(new Customer { Id = 4, FirstName = "Angie", LastName = "Reckar", ZipCode = "54343" });
customers.Add(new Customer { Id = 5, FirstName = "Henry", LastName = "Anderson", ZipCode = "16623" });
return customers;
}
public string GetFullName()
{
return FirstName + " " + LastName + "(" + internalValue + ")";
}
}
}
| 0 |
10,738,054 | 05/24/2012 13:04:27 | 940,571 | 09/12/2011 12:52:19 | 8 | 0 | can you store a payment amount from pay pal into a database so i can then display it on a webpage? | Im trying to find out weather I can get people to deposit money into a wallet on my site using paypal. when they deposit the money id then want to be able to display the balance so I was wondering if I can get the deposited amount saved into a database for me to then display it on my website. PLEASE PLEASE advise me if there is a better way for a system like this. | php | mysql | html | paypal | null | 05/25/2012 10:36:45 | too localized | can you store a payment amount from pay pal into a database so i can then display it on a webpage?
===
Im trying to find out weather I can get people to deposit money into a wallet on my site using paypal. when they deposit the money id then want to be able to display the balance so I was wondering if I can get the deposited amount saved into a database for me to then display it on my website. PLEASE PLEASE advise me if there is a better way for a system like this. | 3 |
10,848,434 | 06/01/2012 10:17:13 | 1,403,413 | 05/18/2012 13:03:00 | 1 | 0 | How we can change switch button background image. | Please help me... How can I change switch button background image or make it custom in iOS. | ios | null | null | null | null | 06/01/2012 16:52:38 | not a real question | How we can change switch button background image.
===
Please help me... How can I change switch button background image or make it custom in iOS. | 1 |
10,376,971 | 04/29/2012 23:39:23 | 287,238 | 03/05/2010 15:32:02 | 432 | 9 | python: building specialized dict class from specialized list class | I have two simple classes which mmap chunks of files, store the range tuples of chunks and return the actual chunk contents when you __iter__ or __getitem__. I was trying to reorganize the code so that the Dict inherits from the list. Is this a bad way to do things? If not how can I make this work? I seem to be getting "instance lay-out conflicts". Maybe it's best to keep it simple and just call the list class inside the dict rather than inherit?
class mylist(list):
def __init__(self):
...
def __getitem__(self, k):
...
def __iter__(self):
...
class mydict(collections.OrderedDict, mylist):
def __init__(self):
...
def __getitem__(self, k):
...
def __iter__(self):
...
| python | inheritance | null | null | null | 04/30/2012 16:55:57 | not a real question | python: building specialized dict class from specialized list class
===
I have two simple classes which mmap chunks of files, store the range tuples of chunks and return the actual chunk contents when you __iter__ or __getitem__. I was trying to reorganize the code so that the Dict inherits from the list. Is this a bad way to do things? If not how can I make this work? I seem to be getting "instance lay-out conflicts". Maybe it's best to keep it simple and just call the list class inside the dict rather than inherit?
class mylist(list):
def __init__(self):
...
def __getitem__(self, k):
...
def __iter__(self):
...
class mydict(collections.OrderedDict, mylist):
def __init__(self):
...
def __getitem__(self, k):
...
def __iter__(self):
...
| 1 |
2,937,289 | 05/30/2010 02:13:47 | 202,184 | 11/03/2009 23:10:50 | 230 | 10 | How do I work with constructs in PHPUnit? | I am new into PHPUnit, and just digging through the manual. I cannot find a decent example of how to build a complete test from end to end though, and so, am left with questions.
One of these is how can I prep my environment to properly test my code?
I am trying to figure out how to properly pass various configuration values needed for both the test setup/teardown methods, and the configs for the class itself.
// How can I set these variables on testing start?
protected $_db = null;
protected $_config = null;
// So that this function runs properly?
public function setUp(){
$this->_acl = new acl(
$this->_db, // The database connection for the class passed
// from whatever test construct
$this->_config // Config values passed in from construct
);
}
// Can I just drop in a construct like this, and have it work properly?
// And if so, how can I set the construct call properly?
public function __construct(
Zend_Db_Adapter_Abstract $db, $config = array(),
$baselinedatabase = NULL, $databaseteardown = NULL
){
$this->_db = $db;
$this->_config = $config;
$this->_baselinedatabase = $baselinedatabase;
$this->_databaseteardown = $databaseteardown;
}
// Or is the wrong idea to be pursuing? | unit-testing | php5 | phpunit | null | null | null | open | How do I work with constructs in PHPUnit?
===
I am new into PHPUnit, and just digging through the manual. I cannot find a decent example of how to build a complete test from end to end though, and so, am left with questions.
One of these is how can I prep my environment to properly test my code?
I am trying to figure out how to properly pass various configuration values needed for both the test setup/teardown methods, and the configs for the class itself.
// How can I set these variables on testing start?
protected $_db = null;
protected $_config = null;
// So that this function runs properly?
public function setUp(){
$this->_acl = new acl(
$this->_db, // The database connection for the class passed
// from whatever test construct
$this->_config // Config values passed in from construct
);
}
// Can I just drop in a construct like this, and have it work properly?
// And if so, how can I set the construct call properly?
public function __construct(
Zend_Db_Adapter_Abstract $db, $config = array(),
$baselinedatabase = NULL, $databaseteardown = NULL
){
$this->_db = $db;
$this->_config = $config;
$this->_baselinedatabase = $baselinedatabase;
$this->_databaseteardown = $databaseteardown;
}
// Or is the wrong idea to be pursuing? | 0 |
1,180,791 | 07/25/2009 00:29:02 | 17,510 | 09/18/2008 10:26:18 | 209 | 9 | Unable to select custom item renderer (flex) | Hi I have made the following item renderer in mxml, but when I use it in a list for some reason I can not select it.
Am I doing something wrong?
<mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml"
horizontalScrollPolicy="off">
<mx:Script>
<![CDATA[
import com.pbsmedia.kanpeki.domain.calEvent.CalEventType;
[Bindable]
private var calEventType:CalEventType;
override public function set data(value:Object):void
{
if(value != null)
{
calEventType = value as CalEventType;
colorBar.setStyle("backgroundColor", calEventType.eventColor);
}
}
]]>
</mx:Script>
<mx:Image source="{calEventType.icon}" />
<mx:Label text="{calEventType.name}" selectable="true"/>
<mx:HBox height="100%" width="100%" horizontalAlign="right" paddingRight="20">
<mx:Box id="colorBar" width="50" height="100%" >
</mx:Box>
The renderer is set up on creation complete of the list's parent component as
follows.
private function cc():void{
if(_itemRenderer != null)
{
lt.itemRenderer = getItemRendererFactory();
}
}
private function getItemRendererFactory():ClassFactory
{
return new ClassFactory(_itemRenderer);
}
I can't see any reason why I can't select it, any pointers much appreciated.
| flex3 | flex | null | null | null | null | open | Unable to select custom item renderer (flex)
===
Hi I have made the following item renderer in mxml, but when I use it in a list for some reason I can not select it.
Am I doing something wrong?
<mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml"
horizontalScrollPolicy="off">
<mx:Script>
<![CDATA[
import com.pbsmedia.kanpeki.domain.calEvent.CalEventType;
[Bindable]
private var calEventType:CalEventType;
override public function set data(value:Object):void
{
if(value != null)
{
calEventType = value as CalEventType;
colorBar.setStyle("backgroundColor", calEventType.eventColor);
}
}
]]>
</mx:Script>
<mx:Image source="{calEventType.icon}" />
<mx:Label text="{calEventType.name}" selectable="true"/>
<mx:HBox height="100%" width="100%" horizontalAlign="right" paddingRight="20">
<mx:Box id="colorBar" width="50" height="100%" >
</mx:Box>
The renderer is set up on creation complete of the list's parent component as
follows.
private function cc():void{
if(_itemRenderer != null)
{
lt.itemRenderer = getItemRendererFactory();
}
}
private function getItemRendererFactory():ClassFactory
{
return new ClassFactory(_itemRenderer);
}
I can't see any reason why I can't select it, any pointers much appreciated.
| 0 |
7,356,878 | 09/09/2011 03:34:07 | 1,088,570 | 07/05/2011 21:41:11 | 199 | 0 | C / C ++ Video Tutorials | Can any one suggest some good video tutorials for c and c ++ for a newbie.
Help appreciated. | c++ | c | null | null | null | 09/09/2011 06:11:15 | not constructive | C / C ++ Video Tutorials
===
Can any one suggest some good video tutorials for c and c ++ for a newbie.
Help appreciated. | 4 |
8,340,791 | 12/01/2011 11:42:00 | 790,993 | 06/09/2011 13:26:52 | 37 | 1 | DB encryption for Django web app without storing key on server | We are setting up a virtual private server (not hosted by us), on which we will be user testing our Django-based web application. The user-generated content produced in these tests will be very sensitive. We would like to keep this content encrypted, for example in case back-up media goes missing. The content will be stored in a MySQL or SQLite database.
As I understand it, we cannot encrypt the file system of the VPS. If we encrypt the database, using something like SQLcipher (http://sqlcipher.net/), is there a way of passing the key to Django without storing it on the server? We will be booting up the server for each test, so that part is not a concern.
Thank you! | mysql | django | sqlite | encryption | vps | null | open | DB encryption for Django web app without storing key on server
===
We are setting up a virtual private server (not hosted by us), on which we will be user testing our Django-based web application. The user-generated content produced in these tests will be very sensitive. We would like to keep this content encrypted, for example in case back-up media goes missing. The content will be stored in a MySQL or SQLite database.
As I understand it, we cannot encrypt the file system of the VPS. If we encrypt the database, using something like SQLcipher (http://sqlcipher.net/), is there a way of passing the key to Django without storing it on the server? We will be booting up the server for each test, so that part is not a concern.
Thank you! | 0 |
7,990,025 | 11/03/2011 03:41:23 | 1,026,916 | 11/03/2011 03:22:41 | 1 | 0 | Change out a div ID with JS or jquery | I am dealing with a CMS that assigns its own id to a UL class for example
id="nav_1218396"
and I would like to replace it with
id="topnav"
Ideas?
| javascript | jquery | html | null | null | null | open | Change out a div ID with JS or jquery
===
I am dealing with a CMS that assigns its own id to a UL class for example
id="nav_1218396"
and I would like to replace it with
id="topnav"
Ideas?
| 0 |
6,248,584 | 06/06/2011 06:41:54 | 667,941 | 03/20/2011 03:58:55 | 6 | 0 | Creating tree from XML | I am trying to create following tree structure from an xml in C#:
Root
-->A
--->1
--->2
-->B
--->1
--->2
The xml would be like this:
<root>
<parent1 name="A">
<child name=1>
<child name=2>
</parent1>
<parent2 name="B">
<child name=1>
<child name=2>
</parent2>
</root>
Any guidelines? | c# | xml | parsing | null | null | null | open | Creating tree from XML
===
I am trying to create following tree structure from an xml in C#:
Root
-->A
--->1
--->2
-->B
--->1
--->2
The xml would be like this:
<root>
<parent1 name="A">
<child name=1>
<child name=2>
</parent1>
<parent2 name="B">
<child name=1>
<child name=2>
</parent2>
</root>
Any guidelines? | 0 |
450,399 | 01/16/2009 13:26:53 | 5,346 | 09/09/2008 10:01:45 | 592 | 28 | Which java YAML library should I use? | There are at least 4 YAML implementations listed at [yaml.org][1]. Which one of these (or another) would you recommend, and why?
There are two ways you could answer this question, either by voting for one of the 4, or by giving a good answer that compares them or strongly justifies one of them. I'll add the 4 mentioned so people can vote, but I'd love a longer justified answer if you could write one.
[1]: http://www.yaml.org | java | yaml | parsing | null | null | 03/10/2012 00:06:29 | not constructive | Which java YAML library should I use?
===
There are at least 4 YAML implementations listed at [yaml.org][1]. Which one of these (or another) would you recommend, and why?
There are two ways you could answer this question, either by voting for one of the 4, or by giving a good answer that compares them or strongly justifies one of them. I'll add the 4 mentioned so people can vote, but I'd love a longer justified answer if you could write one.
[1]: http://www.yaml.org | 4 |
10,107,622 | 04/11/2012 14:09:26 | 29,924 | 10/21/2008 11:27:54 | 486 | 8 | Test Backwards Compatibility of Two Maven Artifacts | I am developing a library that will be used to marshall and unmarshall data into an xml format for transmission. I now have two versions of a Jar containing a `com.mycorp.Marshaller` class that I want to test for compatibility (as we cannot update all clients at the same time).
Does anyone know if it is possible to write a unit test that can load both version A and version B of the class and use them in unison to ensure xml outputted by B can be parsed by A.
I cannot use the fully qualified name as this is identical in both cases, and I cannot change it as version B is intended to be a drop-in replacement.
---
Does anybody have any idea how to load two different versions (from different jars) of a class with the same fully qualified name? | java | testing | classloader | backwards-compatibility | null | null | open | Test Backwards Compatibility of Two Maven Artifacts
===
I am developing a library that will be used to marshall and unmarshall data into an xml format for transmission. I now have two versions of a Jar containing a `com.mycorp.Marshaller` class that I want to test for compatibility (as we cannot update all clients at the same time).
Does anyone know if it is possible to write a unit test that can load both version A and version B of the class and use them in unison to ensure xml outputted by B can be parsed by A.
I cannot use the fully qualified name as this is identical in both cases, and I cannot change it as version B is intended to be a drop-in replacement.
---
Does anybody have any idea how to load two different versions (from different jars) of a class with the same fully qualified name? | 0 |
7,103,391 | 08/18/2011 06:42:28 | 407,339 | 07/31/2010 07:28:08 | 64 | 11 | Why microsoft is not DatetimePicker in datagridview like combobox etc? | DateTimePicker is a general control like combobx and linked-label, but still Microsoft did not added in default list of column-types of datagridview, though there are examples of this on MSDN.
The question is: Why Microsoft does not add it in default column-types so no need to copy and paste extra code in projects?
What do you think? What might be the reason? | .net | winforms | datagridview | microsoft | datetimepicker | 08/18/2011 13:14:39 | not constructive | Why microsoft is not DatetimePicker in datagridview like combobox etc?
===
DateTimePicker is a general control like combobx and linked-label, but still Microsoft did not added in default list of column-types of datagridview, though there are examples of this on MSDN.
The question is: Why Microsoft does not add it in default column-types so no need to copy and paste extra code in projects?
What do you think? What might be the reason? | 4 |
1,985,884 | 12/31/2009 15:46:50 | 73,794 | 09/17/2008 14:43:21 | 1,697 | 74 | Tabulating results for quick SharePoint survey | We have a one-question checkbox (multiple selection) survey in SharePoint.
When selecting "Show a graphical summary of responses" in SharePoint, it tabulates the different combinations of responses as distinct answers as opposed to totaling the number of each option selected.
Is there a way to show the total of each option selected in the Graphical Summary view? | wss | sharepoint | survey | graph | null | null | open | Tabulating results for quick SharePoint survey
===
We have a one-question checkbox (multiple selection) survey in SharePoint.
When selecting "Show a graphical summary of responses" in SharePoint, it tabulates the different combinations of responses as distinct answers as opposed to totaling the number of each option selected.
Is there a way to show the total of each option selected in the Graphical Summary view? | 0 |
5,574,926 | 04/07/2011 01:31:12 | 320,399 | 04/19/2010 13:56:55 | 73 | 2 | Servlet.staticMethod used to initialize Spring reference data? | I'm working on developing new Spring web applications, on a team that's developed a ton of web apps around Vanilla HttpServlet's. I'm new to Spring (***please don't run!***) and I'm doing my best to find a tutorial, reference document, book, anything to help me leverage a "Vanilla Servlet".
I was able to work around [my last issue][1], by invoking the a particular Servlet I needed from the (Flex) client's browser. The trouble now is, I have another Servlet (the source of which, I can't modify) that I need to call when my application is started. The Servlet is involved in initializing application reference data (so this is really critical).
It seems to me this should be a typical problem... This *must* have been a common issue a few years ago when other teams converted to Spring, so why can't I find the tutorial I need? I've tried researching a ton of different Spring classes, but I'm not getting anywhere on this.
Here's some notes on what I've tried:
- ServletWrappingController , but this isn't for use as a Controller, I really only need the Servlet inside a Singleton DAO's Constructor.
- [ResourceServlet][2] , this Class name seems appropriate, and I've run across it in my searching, but I'm not entirely sure if this is something that would help.
- ServletForwardingController ([mentioned here][3]), but I can't seem to find an appropriate example.
- ServletWrappingController ([also from the above question][3]), but -again- I can't find an appropriate example.
Am I on a wild goose hunt here? Is there a way that I can invoke a static method (does that matter?) on a Servlet, during a Spring app's startup?
I'm not sure a code snippet will help, but I'd be happy to post one. Really, my only tangential thoughts are "Does the Servlet need to be declared a particular way in web.xml" and "Does this need to be declared a certain way in as a Spring managed bean?" (i.e. in app-config.xml)
I can't edit the Servlet, though I can tell you it does extend HttpServlet. I'm not calling doGet or doPost on it, instead there's a static method on the Servlet that makes an RPC call that I need to invoke. If anyone knows a special `@MagicInjectHttpServlet` annotation, please pass it on!
[1]: http://stackoverflow.com/questions/5391823/how-can-my-spring-flex-project-use-a-vanilla-httpservlet-via-java
[2]: http://static.springsource.org/spring/docs/3.0.0.M3/javadoc-api/index.html?org/springframework/web/servlet/ResourceServlet.html
[3]: http://stackoverflow.com/questions/3258456/using-pure-servlets-java-servlet-no-framework-in-a-project-using-the-spring-fr
| java | spring | servlets | java-ee | null | null | open | Servlet.staticMethod used to initialize Spring reference data?
===
I'm working on developing new Spring web applications, on a team that's developed a ton of web apps around Vanilla HttpServlet's. I'm new to Spring (***please don't run!***) and I'm doing my best to find a tutorial, reference document, book, anything to help me leverage a "Vanilla Servlet".
I was able to work around [my last issue][1], by invoking the a particular Servlet I needed from the (Flex) client's browser. The trouble now is, I have another Servlet (the source of which, I can't modify) that I need to call when my application is started. The Servlet is involved in initializing application reference data (so this is really critical).
It seems to me this should be a typical problem... This *must* have been a common issue a few years ago when other teams converted to Spring, so why can't I find the tutorial I need? I've tried researching a ton of different Spring classes, but I'm not getting anywhere on this.
Here's some notes on what I've tried:
- ServletWrappingController , but this isn't for use as a Controller, I really only need the Servlet inside a Singleton DAO's Constructor.
- [ResourceServlet][2] , this Class name seems appropriate, and I've run across it in my searching, but I'm not entirely sure if this is something that would help.
- ServletForwardingController ([mentioned here][3]), but I can't seem to find an appropriate example.
- ServletWrappingController ([also from the above question][3]), but -again- I can't find an appropriate example.
Am I on a wild goose hunt here? Is there a way that I can invoke a static method (does that matter?) on a Servlet, during a Spring app's startup?
I'm not sure a code snippet will help, but I'd be happy to post one. Really, my only tangential thoughts are "Does the Servlet need to be declared a particular way in web.xml" and "Does this need to be declared a certain way in as a Spring managed bean?" (i.e. in app-config.xml)
I can't edit the Servlet, though I can tell you it does extend HttpServlet. I'm not calling doGet or doPost on it, instead there's a static method on the Servlet that makes an RPC call that I need to invoke. If anyone knows a special `@MagicInjectHttpServlet` annotation, please pass it on!
[1]: http://stackoverflow.com/questions/5391823/how-can-my-spring-flex-project-use-a-vanilla-httpservlet-via-java
[2]: http://static.springsource.org/spring/docs/3.0.0.M3/javadoc-api/index.html?org/springframework/web/servlet/ResourceServlet.html
[3]: http://stackoverflow.com/questions/3258456/using-pure-servlets-java-servlet-no-framework-in-a-project-using-the-spring-fr
| 0 |
5,467,278 | 03/29/2011 02:36:28 | 681,255 | 03/29/2011 02:36:28 | 1 | 0 | Cant access my gmail password, firefox is always logged in on a pinned tab, nedd get get password for iphone exchange | Cant remember my Gmail password or my secret question answer. My recovery email was mums and is no longer active.
Tried right clicking on the Gmail page/ view page info/ security tab/ but no passwords are stored for that page.
Thanks for any help in advance guys. | gmail | null | null | null | null | 03/29/2011 04:29:39 | off topic | Cant access my gmail password, firefox is always logged in on a pinned tab, nedd get get password for iphone exchange
===
Cant remember my Gmail password or my secret question answer. My recovery email was mums and is no longer active.
Tried right clicking on the Gmail page/ view page info/ security tab/ but no passwords are stored for that page.
Thanks for any help in advance guys. | 2 |
3,075,750 | 06/19/2010 14:09:19 | 371,044 | 06/19/2010 14:09:19 | 1 | 0 | Need C# code converted to VB.net for Silverlight "Export to CSV" | I'm looking to get the following code converted to working VB.Net code. I need to export data from a datagrid into a CSV that the user can save off, and the code below from David in Dakota would work great, but it's in c#. Any help would be appreciated! This is for a silverlight 4 site we're working on.
Thanks!
Charlie
private void exportHistoryButton_Click(object sender, RoutedEventArgs e)
{
string data = ExportDataGrid(true, historyDataGrid);
SaveFileDialog sfd = new SaveFileDialog()
{
DefaultExt = "csv",
Filter = "CSV Files (*.csv)|*.csv|All files (*.*)|*.*",
FilterIndex = 1
};
if (sfd.ShowDialog() == true)
{
using (Stream stream = sfd.OpenFile())
{
using (StreamWriter writer = new StreamWriter(stream)) {
writer.Write(data);
writer.Close();
}
stream.Close();
}
}
}
private string FormatCSVField(string data) {
return String.Format("\"{0}\"",
data.Replace("\"", "\"\"\"")
.Replace("\n", "")
.Replace("\r", "")
);
}
public string ExportDataGrid(bool withHeaders, DataGrid grid)
{
string colPath;
System.Reflection.PropertyInfo propInfo;
System.Windows.Data.Binding binding;
System.Text.StringBuilder strBuilder = new System.Text.StringBuilder();
System.Collections.IList source = (grid.ItemsSource as System.Collections.IList);
if (source == null)
return "";
List<string> headers = new List<string>();
grid.Columns.ToList().ForEach(col => {
if (col is DataGridBoundColumn){
headers.Add(FormatCSVField(col.Header.ToString()));
}
});
strBuilder
.Append(String.Join(",", headers.ToArray()))
.Append("\r\n");
foreach (Object data in source)
{
List<string> csvRow = new List<string>();
foreach (DataGridColumn col in grid.Columns)
{
if (col is DataGridBoundColumn)
{
binding = (col as DataGridBoundColumn).Binding;
colPath = binding.Path.Path;
propInfo = data.GetType().GetProperty(colPath);
if (propInfo != null)
{
csvRow.Add(FormatCSVField(propInfo.GetValue(data, null).ToString()));
}
}
}
strBuilder
.Append(String.Join(",", csvRow.ToArray()))
.Append("\r\n");
}
return strBuilder.ToString();
| vb.net | silverlight | c#-to-vb.net | null | null | 06/19/2010 20:49:25 | off topic | Need C# code converted to VB.net for Silverlight "Export to CSV"
===
I'm looking to get the following code converted to working VB.Net code. I need to export data from a datagrid into a CSV that the user can save off, and the code below from David in Dakota would work great, but it's in c#. Any help would be appreciated! This is for a silverlight 4 site we're working on.
Thanks!
Charlie
private void exportHistoryButton_Click(object sender, RoutedEventArgs e)
{
string data = ExportDataGrid(true, historyDataGrid);
SaveFileDialog sfd = new SaveFileDialog()
{
DefaultExt = "csv",
Filter = "CSV Files (*.csv)|*.csv|All files (*.*)|*.*",
FilterIndex = 1
};
if (sfd.ShowDialog() == true)
{
using (Stream stream = sfd.OpenFile())
{
using (StreamWriter writer = new StreamWriter(stream)) {
writer.Write(data);
writer.Close();
}
stream.Close();
}
}
}
private string FormatCSVField(string data) {
return String.Format("\"{0}\"",
data.Replace("\"", "\"\"\"")
.Replace("\n", "")
.Replace("\r", "")
);
}
public string ExportDataGrid(bool withHeaders, DataGrid grid)
{
string colPath;
System.Reflection.PropertyInfo propInfo;
System.Windows.Data.Binding binding;
System.Text.StringBuilder strBuilder = new System.Text.StringBuilder();
System.Collections.IList source = (grid.ItemsSource as System.Collections.IList);
if (source == null)
return "";
List<string> headers = new List<string>();
grid.Columns.ToList().ForEach(col => {
if (col is DataGridBoundColumn){
headers.Add(FormatCSVField(col.Header.ToString()));
}
});
strBuilder
.Append(String.Join(",", headers.ToArray()))
.Append("\r\n");
foreach (Object data in source)
{
List<string> csvRow = new List<string>();
foreach (DataGridColumn col in grid.Columns)
{
if (col is DataGridBoundColumn)
{
binding = (col as DataGridBoundColumn).Binding;
colPath = binding.Path.Path;
propInfo = data.GetType().GetProperty(colPath);
if (propInfo != null)
{
csvRow.Add(FormatCSVField(propInfo.GetValue(data, null).ToString()));
}
}
}
strBuilder
.Append(String.Join(",", csvRow.ToArray()))
.Append("\r\n");
}
return strBuilder.ToString();
| 2 |
7,414,048 | 09/14/2011 09:24:03 | 942,433 | 09/13/2011 11:41:25 | 1 | 0 | How to create the giyph unicode in C#? | I got a task to write the SVG file using C# in the below format.
This is the sample xml for the letter 'A' similar to this i need to write the SVG file for the given text in text box.
glyph unicode="Α" horiz-adv-x="144" d= "M 10,60 L 73,220 135,60 M 33,116 L 112,116
Can anyone help me out.
Thanks.
| c# | file | svg | creator | null | 09/15/2011 06:06:06 | not a real question | How to create the giyph unicode in C#?
===
I got a task to write the SVG file using C# in the below format.
This is the sample xml for the letter 'A' similar to this i need to write the SVG file for the given text in text box.
glyph unicode="Α" horiz-adv-x="144" d= "M 10,60 L 73,220 135,60 M 33,116 L 112,116
Can anyone help me out.
Thanks.
| 1 |
4,617,545 | 01/06/2011 17:05:33 | 547,192 | 12/18/2010 18:44:57 | 6 | 0 | How to implement non explicit 1:1 relationship with Doctrine? | I have two tables, Inventory and, say, Stuff. Inventory is used to store data common to Stuff and other tables. The way the DBA envisioned this working would be with us inserting the Inventory table and then using the generated ID to insert the Stuff table.
How can I implement this scenario using Doctrine 2? I'm tempted to just add a 1:1 relationship on the model but I'm not sure I can convince the DBA to change the database. | php | model | schema | doctrine2 | null | null | open | How to implement non explicit 1:1 relationship with Doctrine?
===
I have two tables, Inventory and, say, Stuff. Inventory is used to store data common to Stuff and other tables. The way the DBA envisioned this working would be with us inserting the Inventory table and then using the generated ID to insert the Stuff table.
How can I implement this scenario using Doctrine 2? I'm tempted to just add a 1:1 relationship on the model but I'm not sure I can convince the DBA to change the database. | 0 |
11,391,679 | 07/09/2012 08:44:46 | 468,345 | 10/06/2010 18:50:33 | 1,306 | 11 | Ubuntu 12 - how to install Ruby and Rails correctly | I read a lot of articles regarding installing `Ruby 1.9` and Ruby on `Rails 3.2.3` on `Ubuntu 12`. And I've installed them previously. But it took much time, about 5 days. I made many mistakes and I was very tired of that.
Now I need to do it again. Obviously I want it to be effortless and correct. Like in Windows using Rails installer and Ruby installer.
Can anyone give me a link about how to install them correctly(!)? Or maybe you know the right way? | ruby-on-rails | ruby | ubuntu-12.04 | null | null | 07/09/2012 13:42:02 | not constructive | Ubuntu 12 - how to install Ruby and Rails correctly
===
I read a lot of articles regarding installing `Ruby 1.9` and Ruby on `Rails 3.2.3` on `Ubuntu 12`. And I've installed them previously. But it took much time, about 5 days. I made many mistakes and I was very tired of that.
Now I need to do it again. Obviously I want it to be effortless and correct. Like in Windows using Rails installer and Ruby installer.
Can anyone give me a link about how to install them correctly(!)? Or maybe you know the right way? | 4 |
7,154,871 | 08/22/2011 23:47:19 | 879,664 | 08/05/2011 00:03:11 | 46 | 0 | Puzzling UIImageView behavior in a UITableViewCell | I'm currently setting the UIImageView in my UITableViewCell like this:
// in cellForRowAtIndexPath method
[cell.imageView initWithImage:[UIImage imageNamed:@"myImage.png"]];
However the imageView property on UITableViewCell is `readonly`. The code above works but **I don't understand why**. **Any ideas**? | ios | uitableviewcell | properties | uiimageview | uiimage | null | open | Puzzling UIImageView behavior in a UITableViewCell
===
I'm currently setting the UIImageView in my UITableViewCell like this:
// in cellForRowAtIndexPath method
[cell.imageView initWithImage:[UIImage imageNamed:@"myImage.png"]];
However the imageView property on UITableViewCell is `readonly`. The code above works but **I don't understand why**. **Any ideas**? | 0 |
7,638,397 | 10/03/2011 17:19:40 | 966,602 | 09/27/2011 08:36:59 | 10 | 0 | how to display the datatable column data as hyperlink in data grid view using C# | sir am new to asp.net please any one help me
sir i have one column as 3-10-2011 1:00:00 3-10-2011 1:15:00 3-10-2011 1:30:00.................in datatable and i want to display in grid column as follows
1:00
1:15
1:30
1:45
2:00
.
.........
these are display like hyper links and when user click on any one then a pop window should be open how can i achieve it please help me please tell me in detail please | asp.net | datagrid | null | null | null | null | open | how to display the datatable column data as hyperlink in data grid view using C#
===
sir am new to asp.net please any one help me
sir i have one column as 3-10-2011 1:00:00 3-10-2011 1:15:00 3-10-2011 1:30:00.................in datatable and i want to display in grid column as follows
1:00
1:15
1:30
1:45
2:00
.
.........
these are display like hyper links and when user click on any one then a pop window should be open how can i achieve it please help me please tell me in detail please | 0 |
4,170,188 | 11/13/2010 00:27:32 | 506,393 | 11/13/2010 00:27:32 | 1 | 0 | CSS sprite problem, screwing up layout | I'm trying to update some code to use CSS sprites. In some situations it works fine, in others it screws up the page layout, and I can't figure out what I'm doing wrong.
Here's a fragment of the html ....
<div id="footer"><!-- footer -->
<div class="footer-top">
<div class="footer-left">
<div class="footer-right">
<a href="/index.php" id="footer-logo"><img src="footer-logo.gif" /></a>
<br /><br />
<div>
<p>blah blah blah</p>
<div class="clearfloat"></div>
</div>
</div>
</div>
</div>
... and the CSS:
.footer-left {
background: url(/images//footer-left_.gif) no-repeat left top;
}
I've created my sprite, and tried changing the CSS to:
.footer-left {
background:url('/images/sprites.gif') -66px -2px no-repeat;
width:20px;
height:99px;
}
The dimensions and offsets are correct, but the result isn't pretty. The sprite region shows in roughly the right place, but footer-logo.gif and the <p> text are messed up.
Any ideas please?
| css | sprite | null | null | null | null | open | CSS sprite problem, screwing up layout
===
I'm trying to update some code to use CSS sprites. In some situations it works fine, in others it screws up the page layout, and I can't figure out what I'm doing wrong.
Here's a fragment of the html ....
<div id="footer"><!-- footer -->
<div class="footer-top">
<div class="footer-left">
<div class="footer-right">
<a href="/index.php" id="footer-logo"><img src="footer-logo.gif" /></a>
<br /><br />
<div>
<p>blah blah blah</p>
<div class="clearfloat"></div>
</div>
</div>
</div>
</div>
... and the CSS:
.footer-left {
background: url(/images//footer-left_.gif) no-repeat left top;
}
I've created my sprite, and tried changing the CSS to:
.footer-left {
background:url('/images/sprites.gif') -66px -2px no-repeat;
width:20px;
height:99px;
}
The dimensions and offsets are correct, but the result isn't pretty. The sprite region shows in roughly the right place, but footer-logo.gif and the <p> text are messed up.
Any ideas please?
| 0 |
7,643,678 | 10/04/2011 05:34:54 | 977,841 | 10/04/2011 05:28:24 | 1 | 0 | Math expression | What is the math. expression for the following sentence?
<b><i>A is over 10 times B</i></b>
is it <b>A = 1/(10 * B)</b>
Thanks. | math | expression | null | null | null | 10/04/2011 06:03:02 | off topic | Math expression
===
What is the math. expression for the following sentence?
<b><i>A is over 10 times B</i></b>
is it <b>A = 1/(10 * B)</b>
Thanks. | 2 |
6,314,745 | 06/11/2011 07:37:10 | 722,528 | 04/01/2011 13:15:24 | 36 | 1 | classname::dofunction... what is it !!? and how i use it !!?? | everybody that use some library he see something like this in her code
classname::dofunction() ;
example:
class person
{
private:
string name ;
public:
string getperson() { return name ; }
}
void main()
{
............
.........
........
person::getperson() ;
}
i want to use something like the previous example but i get error
> error C2352:
> 'GUI_Window::Get_FrameWindowPtr' :
> illegal call of non-static member
> function
1- what is the name of this technique ??
2- any explain about how to use it ??
| c++ | null | null | null | null | 06/11/2011 09:01:29 | not a real question | classname::dofunction... what is it !!? and how i use it !!??
===
everybody that use some library he see something like this in her code
classname::dofunction() ;
example:
class person
{
private:
string name ;
public:
string getperson() { return name ; }
}
void main()
{
............
.........
........
person::getperson() ;
}
i want to use something like the previous example but i get error
> error C2352:
> 'GUI_Window::Get_FrameWindowPtr' :
> illegal call of non-static member
> function
1- what is the name of this technique ??
2- any explain about how to use it ??
| 1 |
10,540,295 | 05/10/2012 18:40:29 | 1,387,900 | 05/10/2012 18:37:02 | 1 | 0 | code for authentication in php using mysql | For my project their is 2 users, one is users and other is administer.i want code for giving authentication to these users by using one, means same login form and database table ..my back end is mysgl....and am using wamp sever | php | null | null | null | null | 05/11/2012 15:51:51 | not a real question | code for authentication in php using mysql
===
For my project their is 2 users, one is users and other is administer.i want code for giving authentication to these users by using one, means same login form and database table ..my back end is mysgl....and am using wamp sever | 1 |
3,513,935 | 08/18/2010 15:46:38 | 62,623 | 02/04/2009 21:21:03 | 445 | 19 | Can't use silverlight namespace | Whenever I try to reference the following namespace in my XAML, the code compiles and the project starts, but the InitializeComponent method throws an error. Here's the XAML reference:
xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
and here's the use of ExtendedVisualStateManager
<ei:ExtendedVisualStateManager/>
The error is this:
The type 'ExtendedVisualStateManager' was not found because 'http://schemas.microsoft.com/expression/2010/interactions' is an unknown namespace. [Line: 19 Position: 37]
Is there a new namespace I need to use to use this control? | silverlight | xaml | reference | null | null | null | open | Can't use silverlight namespace
===
Whenever I try to reference the following namespace in my XAML, the code compiles and the project starts, but the InitializeComponent method throws an error. Here's the XAML reference:
xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
and here's the use of ExtendedVisualStateManager
<ei:ExtendedVisualStateManager/>
The error is this:
The type 'ExtendedVisualStateManager' was not found because 'http://schemas.microsoft.com/expression/2010/interactions' is an unknown namespace. [Line: 19 Position: 37]
Is there a new namespace I need to use to use this control? | 0 |
6,998,585 | 08/09/2011 15:20:09 | 748,546 | 05/11/2011 11:29:43 | 78 | 1 | Cursors on MySQL - Good or Bad | I have always heard people saying bad about using cursors and this is especially in Microsoft SQL Server as they are very slow. Is this the case with Cursors on MySQL as well? Does cursors in MySQL reduce performance as well? Can someone please advice on the usage of cursors in MySQL? | mysql | performance | cursors | null | null | null | open | Cursors on MySQL - Good or Bad
===
I have always heard people saying bad about using cursors and this is especially in Microsoft SQL Server as they are very slow. Is this the case with Cursors on MySQL as well? Does cursors in MySQL reduce performance as well? Can someone please advice on the usage of cursors in MySQL? | 0 |
5,110,880 | 02/24/2011 21:46:31 | 618,215 | 02/15/2011 16:49:26 | 1 | 0 | TFS2010 api Sample Program | We are moving from VSS to TFS2010 and I need to convert a program that does the checkout and update of items. Does anyone know of a good example of how to use the TFS2010 API to find and item and check it out and then check in the new version? | vb.net | tfs2010 | code-sample | null | null | 07/11/2012 17:19:22 | not constructive | TFS2010 api Sample Program
===
We are moving from VSS to TFS2010 and I need to convert a program that does the checkout and update of items. Does anyone know of a good example of how to use the TFS2010 API to find and item and check it out and then check in the new version? | 4 |
9,655,309 | 03/11/2012 13:23:05 | 1,262,285 | 03/11/2012 13:09:44 | 1 | 0 | Drupal 7 cache page for anonymous users and css files | If you have "cache page for anonymous users" on and are using server logic(http_user_agent) to load different css based on the browser version, that logic will not fire and you will get the css that was cached from the last visitor. This seems as if this will also cause some issues for responsive design...more specifically to browsers that don't understand media queries....pre IE 9 browsers. Does anyone have any solution on a work-around for using anonymous cache and loading the correct css based on server logic? | caching | drupal-7 | null | null | null | 03/12/2012 01:05:26 | off topic | Drupal 7 cache page for anonymous users and css files
===
If you have "cache page for anonymous users" on and are using server logic(http_user_agent) to load different css based on the browser version, that logic will not fire and you will get the css that was cached from the last visitor. This seems as if this will also cause some issues for responsive design...more specifically to browsers that don't understand media queries....pre IE 9 browsers. Does anyone have any solution on a work-around for using anonymous cache and loading the correct css based on server logic? | 2 |
11,026,631 | 06/14/2012 04:22:49 | 1,448,166 | 06/11/2012 04:49:17 | 1 | 0 | Naming convention for layout set of folders | What is correct naming convention for layout set of folders. | android | android-layout | null | null | null | 06/15/2012 11:02:24 | not constructive | Naming convention for layout set of folders
===
What is correct naming convention for layout set of folders. | 4 |
10,178,744 | 04/16/2012 17:25:56 | 950,238 | 09/17/2011 12:38:49 | 311 | 15 | linux eth0 is not working with bridge | Friends, I am trying to bridge my qemu guest to the real network using linux bridge utility. <br/>
For this, I am using very simple method : <br/>
1. Create a bridge on host using (sudo brctl addbr br0)
2. Add eth0 to this bridge (sudo brctl addif br0 eth0)
3. Changed /etc/qemu-ifup script (brctl addif br0 $1)
4. Changed /etc/qemu-ifdown script (brctl delif br0 $1)
With above 4 steps, I was get the network of my guest working properly.
But now the problem is that my host network is not working after i attach my eth0 to bridge br0.
I confirmed that after step1 and step2 my host network stops working. But the guest network continue to work and this is what baffles me.
Can somebody please point out what is the problem with this two lines ?
1. Create a bridge on host using (sudo brctl addbr br0)
2. Add eth0 to this bridge (sudo brctl addif br0 eth0)
| linux | networking | bridge | qemu | kvm | 05/23/2012 19:32:45 | off topic | linux eth0 is not working with bridge
===
Friends, I am trying to bridge my qemu guest to the real network using linux bridge utility. <br/>
For this, I am using very simple method : <br/>
1. Create a bridge on host using (sudo brctl addbr br0)
2. Add eth0 to this bridge (sudo brctl addif br0 eth0)
3. Changed /etc/qemu-ifup script (brctl addif br0 $1)
4. Changed /etc/qemu-ifdown script (brctl delif br0 $1)
With above 4 steps, I was get the network of my guest working properly.
But now the problem is that my host network is not working after i attach my eth0 to bridge br0.
I confirmed that after step1 and step2 my host network stops working. But the guest network continue to work and this is what baffles me.
Can somebody please point out what is the problem with this two lines ?
1. Create a bridge on host using (sudo brctl addbr br0)
2. Add eth0 to this bridge (sudo brctl addif br0 eth0)
| 2 |
11,568,738 | 07/19/2012 20:24:08 | 1,418,164 | 05/25/2012 19:50:42 | 176 | 19 | C++ Exception vs. Error Proxy | I've been part of the 'no-exception' camp, but not religiously so. I have a question about an argument frequently advanced by the proponents of using exceptions.
So my biggest (only) gripe with exceptions in C++ is the unpredictability of code. I want to be able to look at code (without any IDEs, in VIM) and see exactly what it does in all cases. With exceptions the logic flow is not obvious as the throw and catch can be many logical layers apart.
The typical counter of pro-exception response is: "Yes, that sucks. But nested error codes suck more."
Well, yeah, but that's **not** the alternative.
Say you have a class called MyErrorProxy with a virtual handleMyXYZError(), and if you know your MyClass might get an XYZ error, and you want to handle it many logical layers away, you pass it a pointer to MyErrorProxy (which can be a mixin, an interface, or just a centralized error handling class)? You don't want to pass pointers? Fine, make it a thread-safe singleton. This requires more plumbing, but it is *explicit* and very easy to track logic flow.
That is how I've been coding for a long time.
Now my question is: what are the real drawbacks of doing this? Will you get angry if you see this code long after I'm gone and you're maintaining it? Would you really rather prefer try(s) and catch(es) instead of this mechanism and why? | c++ | null | null | null | null | 07/20/2012 00:46:14 | not constructive | C++ Exception vs. Error Proxy
===
I've been part of the 'no-exception' camp, but not religiously so. I have a question about an argument frequently advanced by the proponents of using exceptions.
So my biggest (only) gripe with exceptions in C++ is the unpredictability of code. I want to be able to look at code (without any IDEs, in VIM) and see exactly what it does in all cases. With exceptions the logic flow is not obvious as the throw and catch can be many logical layers apart.
The typical counter of pro-exception response is: "Yes, that sucks. But nested error codes suck more."
Well, yeah, but that's **not** the alternative.
Say you have a class called MyErrorProxy with a virtual handleMyXYZError(), and if you know your MyClass might get an XYZ error, and you want to handle it many logical layers away, you pass it a pointer to MyErrorProxy (which can be a mixin, an interface, or just a centralized error handling class)? You don't want to pass pointers? Fine, make it a thread-safe singleton. This requires more plumbing, but it is *explicit* and very easy to track logic flow.
That is how I've been coding for a long time.
Now my question is: what are the real drawbacks of doing this? Will you get angry if you see this code long after I'm gone and you're maintaining it? Would you really rather prefer try(s) and catch(es) instead of this mechanism and why? | 4 |
6,206,061 | 06/01/2011 18:39:09 | 502,401 | 11/09/2010 20:40:22 | 21 | 0 | Which cms is suitable for product management based website. | Which cms contains all modules related to product management system.It should cover these below :
-Monthly Reports
-Inventory Reports
-Inventory System
-Customer management
Is there any free cms available to cover up these module?
| content-management-system | null | null | null | null | 06/03/2011 09:39:57 | not constructive | Which cms is suitable for product management based website.
===
Which cms contains all modules related to product management system.It should cover these below :
-Monthly Reports
-Inventory Reports
-Inventory System
-Customer management
Is there any free cms available to cover up these module?
| 4 |
11,661,328 | 07/26/2012 02:06:44 | 1,299,401 | 03/28/2012 22:28:50 | 32 | 1 | need a paid 3rd party tool for graphs in .net | I am looking for a third party software for graphs to be integrated with my C#.net project build in visual studio 2010.
My requirements for the graphs is a bit extensive and need the graphs to be of various type and can be easily customized with many different range of data to process.
I am looking for a paid software that can help me in this.
Extra points if the s/w is easy to implement.
Please share your views on the best s/w in the market that can help me do so. | .net | c#-4.0 | null | null | null | 07/26/2012 02:15:35 | off topic | need a paid 3rd party tool for graphs in .net
===
I am looking for a third party software for graphs to be integrated with my C#.net project build in visual studio 2010.
My requirements for the graphs is a bit extensive and need the graphs to be of various type and can be easily customized with many different range of data to process.
I am looking for a paid software that can help me in this.
Extra points if the s/w is easy to implement.
Please share your views on the best s/w in the market that can help me do so. | 2 |
5,970,955 | 05/11/2011 21:40:38 | 622,378 | 02/18/2011 00:35:52 | 475 | 2 | PHP web development on NetBeans | Whats tools/features do you use in NetBeans for PHP Web Development?
In other word, how does NetBeans benefit you for PHP Web development?
When I do web development on NetBean, the only thing that benefit list of php functions popup as soon I type and the custom function/method/classes/object names popup.
| php | php5 | netbeans | ide | null | 05/12/2011 01:17:43 | not a real question | PHP web development on NetBeans
===
Whats tools/features do you use in NetBeans for PHP Web Development?
In other word, how does NetBeans benefit you for PHP Web development?
When I do web development on NetBean, the only thing that benefit list of php functions popup as soon I type and the custom function/method/classes/object names popup.
| 1 |
6,541,857 | 06/30/2011 22:34:43 | 313,163 | 04/09/2010 20:31:46 | 1,019 | 23 | Import RDF data in SQL? | I am quite comfortable using `SQL` but having an impossible time understanding `SPARQL`. For starters, I don't even understand how to look at the structure of the data (in `MySQL` I would just do `describe <table name>`) so I can query the appropriate fields.
Is there a way for me to import an entire RDF dataset into respective tables in a MySQL database?
Barring that, is there a way to `SELECT *` from *all* the tables (or whatever the equivalent descriptor is) such that I can get all the output data into csv (and take it from there?)
The RDF dataset I am trying to query has a [SPARQL endpoint][1] and even a guide on [How to SPARQL][2] but I am having a hard time understanding it.
For example:
PREFIX meannot: <http://rdf.myexperiment.org/ontologies/annotations/>
PREFIX sioc: <http://rdfs.org/sioc/ns#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX mebase: <http://rdf.myexperiment.org/ontologies/base/>
SELECT DISTINCT ?annotator_name
WHERE {
?comment mebase:annotates <http://www.myexperiment.org/workflows/52> .
?comment rdf:type meannot:Comment .
?comment mebase:has-annotator ?annotator
?annotator sioc:name ?annotator_name
}
makes little sense to me. Why is there a period at the end of some of the WHERE statements but not others? and what does `?comment mebase:has-annotator ?annotator` mean in plain English? Select the annotators name where annotators name is the annotators name? huh?
I would be grateful for any resources that you could point me to.
[1]: http://rdf.myexperiment.org/sparql
[2]: http://rdf.myexperiment.org/howtosparql | rdf | sparql | null | null | null | null | open | Import RDF data in SQL?
===
I am quite comfortable using `SQL` but having an impossible time understanding `SPARQL`. For starters, I don't even understand how to look at the structure of the data (in `MySQL` I would just do `describe <table name>`) so I can query the appropriate fields.
Is there a way for me to import an entire RDF dataset into respective tables in a MySQL database?
Barring that, is there a way to `SELECT *` from *all* the tables (or whatever the equivalent descriptor is) such that I can get all the output data into csv (and take it from there?)
The RDF dataset I am trying to query has a [SPARQL endpoint][1] and even a guide on [How to SPARQL][2] but I am having a hard time understanding it.
For example:
PREFIX meannot: <http://rdf.myexperiment.org/ontologies/annotations/>
PREFIX sioc: <http://rdfs.org/sioc/ns#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX mebase: <http://rdf.myexperiment.org/ontologies/base/>
SELECT DISTINCT ?annotator_name
WHERE {
?comment mebase:annotates <http://www.myexperiment.org/workflows/52> .
?comment rdf:type meannot:Comment .
?comment mebase:has-annotator ?annotator
?annotator sioc:name ?annotator_name
}
makes little sense to me. Why is there a period at the end of some of the WHERE statements but not others? and what does `?comment mebase:has-annotator ?annotator` mean in plain English? Select the annotators name where annotators name is the annotators name? huh?
I would be grateful for any resources that you could point me to.
[1]: http://rdf.myexperiment.org/sparql
[2]: http://rdf.myexperiment.org/howtosparql | 0 |
426,042 | 01/08/2009 21:30:01 | 18,631 | 09/19/2008 07:57:37 | 235 | 12 | Want to sell own application. Where to start? | I developed a handy little application that can help a lot of people. I would like to sell it for a few dollars/license, but I do not have any infrastructure for hosting or big money for advertisement.
What do you suggest, where should I start? | startups | startup | selling-software | null | null | 03/04/2012 05:37:07 | off topic | Want to sell own application. Where to start?
===
I developed a handy little application that can help a lot of people. I would like to sell it for a few dollars/license, but I do not have any infrastructure for hosting or big money for advertisement.
What do you suggest, where should I start? | 2 |
8,568,919 | 12/19/2011 23:25:33 | 1,028,887 | 11/04/2011 01:25:17 | 4 | 0 | Singletons/Global Variables in iPhone game design | I'm creating an iPhone game where the character moves between different views, so each view is essentially a new game in itself. But now I want to create health, so if health goes down in one view to say 5 hp, then when they change to a different view the health will still be 5. I've done some research and it sounds like what I need is a singleton or a global variable. But everything i've seen makes no sense to me. I have nothing in either of my app delegates, and i'm not using any frameworks like cocos2d or OpenGLES. Posting the code doesn't seem to be working right now, so if you could tell me what code you need to see to help you answer my question.
Thanks!
| iphone | variables | data | global | null | null | open | Singletons/Global Variables in iPhone game design
===
I'm creating an iPhone game where the character moves between different views, so each view is essentially a new game in itself. But now I want to create health, so if health goes down in one view to say 5 hp, then when they change to a different view the health will still be 5. I've done some research and it sounds like what I need is a singleton or a global variable. But everything i've seen makes no sense to me. I have nothing in either of my app delegates, and i'm not using any frameworks like cocos2d or OpenGLES. Posting the code doesn't seem to be working right now, so if you could tell me what code you need to see to help you answer my question.
Thanks!
| 0 |
4,776,010 | 01/23/2011 19:41:26 | 110,368 | 05/21/2009 07:09:01 | 434 | 2 | pass by reference and value with pointers | I don't understand why passing a pointer to a function doesn't change the data being passed in. If the function proto looked like this: void func( int *p ); and func allocated memory to p, why can't it be used outside of the function? I though that pointers were addresses? | c++ | pass-by-reference | parameter-passing | pass-by-value | null | null | open | pass by reference and value with pointers
===
I don't understand why passing a pointer to a function doesn't change the data being passed in. If the function proto looked like this: void func( int *p ); and func allocated memory to p, why can't it be used outside of the function? I though that pointers were addresses? | 0 |
10,737,617 | 05/24/2012 12:34:50 | 1,415,043 | 05/24/2012 12:29:50 | 1 | 0 | how to stop process if images are loaded in JFrame | I'm trying to display images in JFrame. they are printing well without any problem. but when i close the JFrame window, the process is still running even the window is closed. how to stop the image loading thread. please explain with example coding.
Thanks in advance. | java | swing | null | null | null | 05/24/2012 14:47:37 | not a real question | how to stop process if images are loaded in JFrame
===
I'm trying to display images in JFrame. they are printing well without any problem. but when i close the JFrame window, the process is still running even the window is closed. how to stop the image loading thread. please explain with example coding.
Thanks in advance. | 1 |
1,194,058 | 07/28/2009 13:20:39 | 138,559 | 07/15/2009 08:14:19 | 1 | 1 | Is it safe to use the same event handler for different Windows Forms Controls? | Is this good practise?
I have 3 DataGridView's and I want to have a facility that allows a user to sort the data by clicking on a column header. I could've had an event handler for the ColumnHeaderMouseClick event for each of these DataGridView's, but instead I made one:
private void dataGridView_ColumnHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e)
{
SortDataGridView((sender as DataGridView), e.ColumnIndex);
}
SortDataGridView looks like this:
/// <summary>
/// Sorts a given DataGridView by a column given by its columnIndex.
/// Default sort (if it isn't currently sorted) is Ascending. If it's
/// already sorted Ascending, change it to Descending. If it is Descending,
/// change it to Ascending.
/// </summary>
/// <param name="dataGridViewToSort">The DataGridViewToSort</param>
/// <param name="columnIndexToSortBy">The index of the column which we want to sort by in the DataGridView.</param>
private void SortDataGridView(DataGridView dataGridViewToSort, int columnIndexToSortBy)
{
switch (dataGridViewToSort.SortOrder)
{
case SortOrder.Ascending:
dataGridViewToSort.Sort(dataGridViewToSort.Columns[columnIndexToSortBy], ListSortDirection.Descending);
break;
case SortOrder.Descending:
dataGridViewToSort.Sort(dataGridViewToSort.Columns[columnIndexToSortBy], ListSortDirection.Ascending);
break;
case SortOrder.None:
dataGridViewToSort.Sort(dataGridViewToSort.Columns[columnIndexToSortBy], ListSortDirection.Ascending);
break;
default:
break;
}
}
Each of the DataGridView's ColumnHeaderMouseClick event is hooked up to this handler. This implies that in order to realise which one raised the event at runtime, I have to say (sender as DataGridView). Is this safe? Could sender ever be something that's not a DataGridView?
| good-practices | c# | event-handling | winforms | null | null | open | Is it safe to use the same event handler for different Windows Forms Controls?
===
Is this good practise?
I have 3 DataGridView's and I want to have a facility that allows a user to sort the data by clicking on a column header. I could've had an event handler for the ColumnHeaderMouseClick event for each of these DataGridView's, but instead I made one:
private void dataGridView_ColumnHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e)
{
SortDataGridView((sender as DataGridView), e.ColumnIndex);
}
SortDataGridView looks like this:
/// <summary>
/// Sorts a given DataGridView by a column given by its columnIndex.
/// Default sort (if it isn't currently sorted) is Ascending. If it's
/// already sorted Ascending, change it to Descending. If it is Descending,
/// change it to Ascending.
/// </summary>
/// <param name="dataGridViewToSort">The DataGridViewToSort</param>
/// <param name="columnIndexToSortBy">The index of the column which we want to sort by in the DataGridView.</param>
private void SortDataGridView(DataGridView dataGridViewToSort, int columnIndexToSortBy)
{
switch (dataGridViewToSort.SortOrder)
{
case SortOrder.Ascending:
dataGridViewToSort.Sort(dataGridViewToSort.Columns[columnIndexToSortBy], ListSortDirection.Descending);
break;
case SortOrder.Descending:
dataGridViewToSort.Sort(dataGridViewToSort.Columns[columnIndexToSortBy], ListSortDirection.Ascending);
break;
case SortOrder.None:
dataGridViewToSort.Sort(dataGridViewToSort.Columns[columnIndexToSortBy], ListSortDirection.Ascending);
break;
default:
break;
}
}
Each of the DataGridView's ColumnHeaderMouseClick event is hooked up to this handler. This implies that in order to realise which one raised the event at runtime, I have to say (sender as DataGridView). Is this safe? Could sender ever be something that's not a DataGridView?
| 0 |
2,837,561 | 05/14/2010 20:54:08 | 267,290 | 02/05/2010 17:36:52 | 19 | 0 | Adobe AIR - Option to not create a shortcut when installing an AIR application | Hello Stackoverflow community,
Does anyone know if there is an option to not create a shortcut to an AIR application after its installation?
Currently, all I have found is an option to choose the location of the application shortcut from within the start menu (in the application descriptor file, using the programMenuFolder option)
Thanks,
Mauricio | air | flex | startmenu | null | null | null | open | Adobe AIR - Option to not create a shortcut when installing an AIR application
===
Hello Stackoverflow community,
Does anyone know if there is an option to not create a shortcut to an AIR application after its installation?
Currently, all I have found is an option to choose the location of the application shortcut from within the start menu (in the application descriptor file, using the programMenuFolder option)
Thanks,
Mauricio | 0 |
10,131,459 | 04/12/2012 20:40:53 | 863,975 | 07/26/2011 17:35:27 | 31 | 3 | Create a downloadable attachment from JavaScript? | I'm getting varbinary data(file contents) from the DB along with the file name and mime type. Depending on how many files are there, I need to display links for those files on the web page. When the user clicks on a link, that file should get downloaded. Since the links will get created dynamically, I think i will have to call a client side function to handle the downloading. But I don't know how this can be done. On the server side(C#) we can use FileContentType, but how can this be achieved through JavaScript? Also, since I do not have a physical file and just it's contents, I will have to somehow create this file. | javascript | file | file-download | mime | null | null | open | Create a downloadable attachment from JavaScript?
===
I'm getting varbinary data(file contents) from the DB along with the file name and mime type. Depending on how many files are there, I need to display links for those files on the web page. When the user clicks on a link, that file should get downloaded. Since the links will get created dynamically, I think i will have to call a client side function to handle the downloading. But I don't know how this can be done. On the server side(C#) we can use FileContentType, but how can this be achieved through JavaScript? Also, since I do not have a physical file and just it's contents, I will have to somehow create this file. | 0 |
2,773,024 | 05/05/2010 12:12:05 | 333,410 | 05/05/2010 12:12:05 | 1 | 0 | Adding new "columns" to csv data file in Tcl | I am dealing with a "large" measurement data, approximately 30K key-value
pairs. The measurements have number of iterations. After each iteration a
datafile (non-csv) with 30K kay-value pairs is created. I want to somehow
creata a csv file of form:
Key1,value of iteration1,value of iteration2,...
Key2,value of iteration1,value of iteration2,...
Key2,value of iteration1,value of iteration2,...
...
Now, I was wondering about efficient way of adding each iteration mesurement
data as a columns to csv file in Tcl. So, far it seems that in either case I
will need to load whole csv file into some variable(array/list) and work on
each element by adding new measurement data. This seems somewhat inefficient.
Is there another way, perhaps?
| tcl | csv | null | null | null | null | open | Adding new "columns" to csv data file in Tcl
===
I am dealing with a "large" measurement data, approximately 30K key-value
pairs. The measurements have number of iterations. After each iteration a
datafile (non-csv) with 30K kay-value pairs is created. I want to somehow
creata a csv file of form:
Key1,value of iteration1,value of iteration2,...
Key2,value of iteration1,value of iteration2,...
Key2,value of iteration1,value of iteration2,...
...
Now, I was wondering about efficient way of adding each iteration mesurement
data as a columns to csv file in Tcl. So, far it seems that in either case I
will need to load whole csv file into some variable(array/list) and work on
each element by adding new measurement data. This seems somewhat inefficient.
Is there another way, perhaps?
| 0 |
7,706,878 | 10/09/2011 22:08:13 | 445,000 | 09/11/2010 08:27:23 | 146 | 12 | Advice on Learning OpenGL | I've decided I would like to push into Graphical Programming a little bit.. Unfortunately I do not want to get into creation of 3d images (maybe I can find someone to assist). Anyways, is there a good tutorial or even a good book, maybe examples that could get me started in OpenGL ES. I've heard some negatives about the newest version of OpenGL 2.0 (at least towards the difficulty of writing vs. benefit). Also in generalities what's the performance difference between say native Paint and OpenGL?
Oh. finally.. I have a particle system going. SurfaceView paint etc.. alot of sensor implementations etc.. how difficult to turn that into an OpenGL project? I really just want some of the shading attributes.
If anything in my post is imprecise.. sorry.. totally n00b when dealing w/ graphics. | android | opengl | opengl-es | opengl-es-2.0 | null | 10/09/2011 23:46:06 | not a real question | Advice on Learning OpenGL
===
I've decided I would like to push into Graphical Programming a little bit.. Unfortunately I do not want to get into creation of 3d images (maybe I can find someone to assist). Anyways, is there a good tutorial or even a good book, maybe examples that could get me started in OpenGL ES. I've heard some negatives about the newest version of OpenGL 2.0 (at least towards the difficulty of writing vs. benefit). Also in generalities what's the performance difference between say native Paint and OpenGL?
Oh. finally.. I have a particle system going. SurfaceView paint etc.. alot of sensor implementations etc.. how difficult to turn that into an OpenGL project? I really just want some of the shading attributes.
If anything in my post is imprecise.. sorry.. totally n00b when dealing w/ graphics. | 1 |
10,354,730 | 04/27/2012 16:48:53 | 1,265,665 | 03/13/2012 05:04:59 | 23 | 0 | cURL getting a response | Im Finding the cURL Documentation to read/Understand. what im trying to do here is post a postcode and return whether or not it is valid.
This is my function so far (what i managed to pull together from tutorials)
int checkPostCode(char postCode[5])
{
printf("checkPostCode\n");
char uidPath[200] = "http://zim.cs.uow.edu.au/~dfs/cgi-bin/postcodes.cgi?pcode=";
//Concatinate poth strings
strcat (uidPath,postCode);
//Output URl
printf("%s \n ", uidPath);
CURL *curl;
CURLcode res;
// Create our curl handle
curl = curl_easy_init();
if (curl)
{
curl_easy_setopt(curl, CURLOPT_URL, uidPath);
res = curl_easy_perform(curl);
/* always cleanup */
curl_easy_cleanup(curl);
}
return 0;
}
the script returns either a "Yes" or a "No".
I just don't know what to enter into that if statement to get my result.
thanks in advance :). | c | curl | libcurl | null | null | null | open | cURL getting a response
===
Im Finding the cURL Documentation to read/Understand. what im trying to do here is post a postcode and return whether or not it is valid.
This is my function so far (what i managed to pull together from tutorials)
int checkPostCode(char postCode[5])
{
printf("checkPostCode\n");
char uidPath[200] = "http://zim.cs.uow.edu.au/~dfs/cgi-bin/postcodes.cgi?pcode=";
//Concatinate poth strings
strcat (uidPath,postCode);
//Output URl
printf("%s \n ", uidPath);
CURL *curl;
CURLcode res;
// Create our curl handle
curl = curl_easy_init();
if (curl)
{
curl_easy_setopt(curl, CURLOPT_URL, uidPath);
res = curl_easy_perform(curl);
/* always cleanup */
curl_easy_cleanup(curl);
}
return 0;
}
the script returns either a "Yes" or a "No".
I just don't know what to enter into that if statement to get my result.
thanks in advance :). | 0 |
7,031,996 | 08/11/2011 19:55:15 | 890,626 | 08/11/2011 19:51:31 | 1 | 0 | Producer Consumer - Using Executors.newFixedThreadPool | My understanding of a Producer-Consumer pattern is that it could be implemented using a queue shared between the producer and the consumer. Producer submits work to a shared queue, consumer retrieves it and processes it. It could also be implemented by the producer directly submitting to the consumer (Producer threads submitting to Consumer's executor service directly).
Now, I've been looking at the Executors class that provides some common implementations of thread pools. The method newFixedThreadPool, according to the spec, "reuses a fixed number of threads operating off a shared unbounded queue". Which queue are they talkin about here?
If the Producer directly submits a task to a consumer, is it the internal queue of the ExecutorService that contains the list of Runnables?
Or is it the intermediate queue, in case the producer submits to a shared queue?
May be I'm missing the whole point, but would someone please clarify?
Thanks,
O. | java | multithreading | concurrency | producer-consumer | executors | null | open | Producer Consumer - Using Executors.newFixedThreadPool
===
My understanding of a Producer-Consumer pattern is that it could be implemented using a queue shared between the producer and the consumer. Producer submits work to a shared queue, consumer retrieves it and processes it. It could also be implemented by the producer directly submitting to the consumer (Producer threads submitting to Consumer's executor service directly).
Now, I've been looking at the Executors class that provides some common implementations of thread pools. The method newFixedThreadPool, according to the spec, "reuses a fixed number of threads operating off a shared unbounded queue". Which queue are they talkin about here?
If the Producer directly submits a task to a consumer, is it the internal queue of the ExecutorService that contains the list of Runnables?
Or is it the intermediate queue, in case the producer submits to a shared queue?
May be I'm missing the whole point, but would someone please clarify?
Thanks,
O. | 0 |
8,857,264 | 01/13/2012 21:09:15 | 1,148,509 | 01/13/2012 20:56:22 | 1 | 0 | Search simple figure in big figure | I create **big figure** consisting of squares.
Also I have some **simple figures** consisting of squares too.
How I can found my **simple figures** to **big figure**?
--
*Thanks.* | algorithm | rectangle | figure | square | null | 01/15/2012 01:33:33 | not a real question | Search simple figure in big figure
===
I create **big figure** consisting of squares.
Also I have some **simple figures** consisting of squares too.
How I can found my **simple figures** to **big figure**?
--
*Thanks.* | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.