Skip to content

Instantly share code, notes, and snippets.

run
Running…
Ignoring packet error, continuing...
Ignoring packet error, continuing...
gdb stack trace at point of error:gdb stack crawl at point of invalid hex digit:
[ 0 ] /Developer/Platforms/iPhoneOS.platform/Developer/usr/libexec/gdb/gdb-arm-apple-darwin (remote_read_bytes+0x175) [0x17aae5]
[ 1 ] /Developer/Platforms/iPhoneOS.platform/Developer/usr/libexec/gdb/gdb-arm-apple-darwin (default_xfer_partial+0x129) [0x9a19a]
[ 2 ] /Developer/Platforms/iPhoneOS.platform/Developer/usr/libexec/gdb/gdb-arm-apple-darwin (target_xfer_partial+0x2f5) [0x98e5f]
[ 3 ] /Developer/Platforms/iPhoneOS.platform/Developer/usr/libexec/gdb/gdb-arm-apple-darwin (target_read+0x72) [0x9c571]
[ 4 ] /Developer/Platforms/iPhoneOS.platform/Developer/usr/libexec/gdb/gdb-arm-apple-darwin (dcache_peek_byte+0x171) [0x180998]
ConnectionDelegate *connectionDelegate = [[[ConnectionDelegate alloc] init] autorelease];
NSURLConnection *connection = [[[NSURLConnection alloc] initWithRequest:request delegate:connectionDelegate startImmediately:NO] autorelease];
connectionDelegate.connection = connection;
NSRunLoop* runLoop = [NSRunLoop mainRunLoop];
[connection unscheduleFromRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode];
[connection scheduleInRunLoop:runLoop forMode:NSDefaultRunLoopMode];
[connection start];
some curl output:
j-macbook:~ vickeryj$curl -H "Content-Type: application/json" -X POST -d '{"user":{ "password": "password", "email_address": "josh@vickeryj.com"}}' "http://localhost:3000/users" -D -</pre>
HTTP/1.1 200 OK
Connection: close
Date: Tue, 24 Feb 2009 17:39:11 GMT
Set-Cookie: _curse-counter=BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo%0ASGFzaHsABjoKQHVzZWR7AA%3D%3D--b93fd7ebe21e983a19428d6802cae9a452ff92d1; path=/
Status: 200 OK
X-Runtime: 0.01377
@implementation MyAppDelegate
static NSOperationQueue *sharedOperationQueue = nil;
- (void)applicationDidFinishLaunching:(UIApplication *)application {
//setup the operation queue