Author Archives : techstruggles


Black screen on iphone

If you get black screen when you run your iphone code, check if you do this: @synthesize window = _window; and then this: [window makeKeyandVisible]; This, will not work. The @synthesize line is “new” in xcode 4, per objective c. it makes accessing windows directly FAIL and return nil. Thus, makeKeyAndVisible was never called on […]


Some things you need to do to create archive of iPhone app to submit to apple app store

1. iphone icon, ipad icon size 2. plist file’s icon file is blank (seems like can’t have file called icon.png otherwise both iPad and iPhone will use that) 3. Does not see archive in organizer after building archive: For the “Release” configuration do the following: Set “Skip Install” to YES on your project Set “Skip […]


Escape asterisk * in file when cat -ing it in ksh

If you were to want to read the contents of a file in ksh, and the file just so happens to contain problematic characters like *, do this in your script: set -f prior to doing: sql=`cat $sql_file`;   More info (from http://www.computing.net/answers/unix/escaping-in-korn-shell/7016.html): echo $- ism set -f echo $- isfm echo $sample test* set +f […]


WordPress autopost

Download redstone xml rpc from source forge: http://sourceforge.net/projects/xmlrpc/files/%28New%29%20Redstone/ Set classpath to include the jar file. Enable rpc at  http://<wordpress site>/wp-admin/options-writing.php compile and run the following code: import redstone.xmlrpc.XmlRpcClient; import java.util.HashMap; public class XmlRpcPoster { public static void main( String[] args ) { // Check command-line arguments if( args.length < 3 ) { System.out.println( “Usage: java XmlRpcPoster […]


Playing Real Media files with KMPlayer on Windows 7 64bit

Traditionally I needed real player 10 to get it to work.  But that is too old to be installed on windows 7 64bit.  Thus, I had to install real alternative and k-lite and stuff. Per k-lite (http://www.codecguide.com/faq_playback_issues.htm#item32): You are missing a decoder for RealAudio COOK. You can install that by following these steps: Download the […]