This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| self.tabBarController.selectedViewController | |
| = [self.tabBarController.viewControllers objectAtIndex:4]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| In the meantime there are some manual steps you'll need to do to get the current release running in snow leopard. These steps need to be done in Terminal. | |
| So, first, you need to "thin" quartz-wm: | |
| $ cd /usr/bin | |
| $ sudo mv quartz-wm quartz-wm.bak | |
| $ sudo lipo -thin i386 quartz-wm.bak -output quartz-wm | |
| Then you'll need to launch CXGames from the command line with a special environment variable set which tells Perl to run as 32-bit: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gource -s 1 -a 1000 -640x480 --disable-progress --stop-at-end --highlight-all-users --output-ppm-stream - | ffmpeg -y -b 3000K -r 30 -f image2pipe -vcodec ppm -i - -vcodec libx264 -vpre normal gource.mp4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rpm2cpio copient-local-server-5.6.2-1.i386.rpm |cpio -vid |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- specifically used this to update non relative links in my mssql | |
| -- database for old posts after blog move | |
| UPDATE wp_posts SET post_content = | |
| REPLACE( post_content, 'http://www.kosertech.com/blog/' , 'http://www.kosertech.com/') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # initial master clone setup | |
| #cd /Users/vkoser/Applications/Spaz-bleeding-edge/ | |
| #git clone git://github.com/funkatron/spaz-desktop-air | |
| # normal update | |
| cd /Users/vkoser/Applications/Spaz-bleeding-edge/spaz-desktop-air | |
| git pull | |
| ~vkoser/Applications/air2_b2_sdk_mac_020210/bin/adl -nodebug ~vkoser/Applications/Spaz-bleeding-edge/spaz-desktop-air/application.xml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // to get a NSString representation of a UUID | |
| + (NSString *)GetUUID | |
| { | |
| CFUUIDRef theUUID = CFUUIDCreate(NULL); | |
| CFStringRef string = CFUUIDCreateString(NULL, theUUID); | |
| CFRelease(theUUID); | |
| return [(NSString *)string autorelease]; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // dataStr is a base64 encoded username and password in format username:password | |
| NSMutableString *dataStr = @"Basic dXNlcm5hbWU6cGFzc3dvcmQ="; | |
| // Set up the URL | |
| NSMutableURLRequest * request=(NSMutableURLRequest*)[NSMutableURLRequest requestWithURL:[NSURL URLWithString:theURL] cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:1.0]; | |
| // append the http header for authentication | |
| [request addValue:dataStr forHTTPHeaderField:@"Authorization"]; | |
| // Send the request to the web service |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| NSString *htmlPath = [[NSBundle mainBundle] pathForResource:@"index" ofType:@"html"]; | |
| NSURL *bundleUrl = [NSURL fileURLWithPath:[[NSBundle mainBundle] bundlePath]]; | |
| NSString *html = [[NSString alloc] initWithContentsOfFile:htmlPath]; | |
| [self.myWebView loadHTMLString:html baseURL:bundleUrl]; |