Our first iPhone application has been submitted to the App store. It was submitted on April 28 and should be available any day now. We will update you when it becomes available.
Tuesday, May 5, 2009
Tuesday, January 27, 2009
Hadoop Streaming using the StreamXmlRecordReader
Hadoop Cmd
/root/hadoop-0.19.0/bin/hadoop jar $HADOOP_STREAMING_JAR -D mapred.reduce.tasks=0 -input /mnt/hgfs/code/streaming/feed.xml -output `pwd`/output -mapper 'echo.pl' -inputreader "StreamXmlRecordReader,begin=<product ,end=</product>"
echo.pl
#!/bin/env perl
my $count = 0;
while(<STDIN>) {
chomp($_);
$count++;
print "$count\t:".$_.":\n";
}
Input
000000 3c 72 6f 6f 74 3e 0a 3c 73 65 63 6f 6e 64 3e 32 ><root>.<second>2<
000010 3c 2f 73 65 63 6f 6e 64 3e 0a 3c 70 72 6f 64 75 ></second>.<produ<
000020 63 74 20 3e 09 0a 73 74 65 76 65 3c 2f 70 72 6f >ct >..steve</pro<
000030 64 75 63 74 3e 09 0a 3c 70 72 6f 64 75 63 74 20 >duct>..<product <
000040 3e 0a 6c 69 6e 65 20 74 77 6f 0a 6c 69 6e 65 20 >>.line two.line <
000050 74 68 72 65 65 0a 3c 2f 70 72 6f 64 75 63 74 3e >three.</product><
000060 0a 0a 3c 2f 72 6f 6f 74 3e 0a >..</root>.<
00006a
Output
000000 31 09 3a 3c 70 72 6f 64 75 63 74 20 3e 09 3a 0a >1.:<product >.:.<
000010 32 09 3a 73 74 65 76 65 3c 2f 70 72 6f 64 75 63 >2.:steve</produc<
000020 74 3e 09 3a 0a 33 09 3a 3c 70 72 6f 64 75 63 74 >t>.:.3.:<product<
000030 20 3e 3a 0a 34 09 3a 6c 69 6e 65 20 74 77 6f 3a > >:.4.:line two:<
000040 0a 35 09 3a 6c 69 6e 65 20 74 68 72 65 65 3a 0a >.5.:line three:.<
000050 36 09 3a 3c 2f 70 72 6f 64 75 63 74 3e 09 3a 0a >6.:</product>.:.<
000060
view a file in hex via cmd line in linux
od -Ax -tx1z -v
other random command is
cut which let's you pick out columns to process from a file or stdin
Sunday, January 11, 2009
Sunday, May 25, 2008
Trac integration post commit hook
Hey if your using Trac I am posting an improved script for integration into dreamhost. Thanks Stefan Koopmanschap for the original script and this is just a small incremental improvement. Link to the original is on Stefan's blog post linked below.
USERNAME=username
PACKAGE=trac_packages
PROJECT=projectname
LOG=`/usr/bin/svnlook log -r $REV $REPOS`
AUTHOR=`/usr/bin/svnlook author -r $REV $REPOS`
TRAC_ENV="/home/$USERNAME/trac_sites/$PROJECT/"
HOME="/home/$USERNAME"
export PYTHONPATH="$HOME/$PACKAGE/lib/python2.3/site-packages"
export LD_LIBRARY_PATH="$HOME/$PACKAGE/lib"
export PATH="$HOME/$PACKAGE/bin:$PATH"
/usr/bin/python /home/$USERNAME/trac_sites/trac_hooks/trac-post-commit-hook \
-p "$TRAC_ENV" \
-r "$REV" \
-u "$AUTHOR" \
-m "$LOG"
Trac Install Guides
Friday, May 16, 2008
NS vs CF
Coding is never straightforward well here is another example. Well having been working with the iPhone sdk (now at beta 5) found out a few things. People don't realize that there is a difference between parts of the framework that are part of the NS (Stands for NextStep) which is fully object oriented Objective-c and CF (Stands for Core Framwork) which are the c based api's. So now your memory management is different depending on which framework you are using. So you end up swapping between C and Objective-c.
Saturday, May 10, 2008
Leopard of external harddrive
This is driving me crazy. I am trying to run Leopard for my intel mac off of an external harddrive. I worked really nicely for a little while. Maybe the first couple of days. Now it's slow as hell. I haven't really installed anything other than the sdk but it's making this drive work slow ass hell.... Think it's time to buy another mac
Monday, May 5, 2008
iPhone error on app deployment GDB: Program received signal: "EXC_BAD_ACCESS"
Solution: check mark the proper provisioning on your developer iPhone.
GDB: Program received signal: "EXC_BAD_ACCESS" is the error I received when I deployed a test app to my developer program iPhone. This is actually caused by a failure of developer provisioning. Basically if you look at you XCode Organizer window the provisioning entry was not selected. This is solved by making the provision entry active.
Saturday, May 3, 2008
iPhone Developer Program you may not know
People may not know it but. If you apply for a corporate developer account you can have multiple developers building apps. So it's interesting because we are a team of developers and only have one official developer account.
Today has been painful setting up some of the tools. Dave has a nack with the developer tools because his is working smoothly and mine on my system isn't.
The error I am getting is GDB: Program received signal: "EXC_BAD_ACCESS".
If you know what causes this error email us.
-Steve
Wednesday, April 23, 2008
iPhone SDK version 4 Beta
The fourth beta version of the iPhone SDK adds OpenGL ES support to the iPhone Simulator. Also the fourth beta version of the iPhoneOS is out today too ...
Jail break
- Make sure you are running software version 1.1.4
- Download iJailbreak
- Make sure Xcode and iTunes are not open, and the iPhone is connected
- Use the Jailbreak ONLY option, do not unlock
- After it is finished, go into Installer and let it update
- Install Community Sources in the Sources section
- Install TwoCampFires from the Network section
- NOTE: If Youtube breaks, there is a fix in Tweaks called Youtube Activator
- Optional:
- Install BSD Subsystem from System
- Install OpenSSH from System
- Install Term-vt100 from System
- Install SUID Lib Fix from Tweaks(1.1.3)
- Install BossPrefs from Utilities
- Go into BossPrefs and disable the SSH Server
- Install VNsea from Network to enable the VNC client