To my absolute amazement I find I'm writing in C & C++ on my iPhone app. Many moons ago when I was a "programmer", the C guys used to laud it over us 3rd Gen people, their superiority for working with the arcane. So HA! I finally caught up.
Generally I find c++ fine, I did do some utility apps on KDE a long time ago, so it's not a big jump to use it again. C is hmm, well like anyone else I get confused with my pointers.
What is interesting, is reading Unix Network Programming and Advanced Unix Programming, it's funny how much of the unix noise you blot out in the terminal without really wondering what it means..
I'm writing pThreads at the moment, for some background processing, I'm finding it more challenging to think outside the Cocoa Framework that has become home. I must buy Programing with Posix Threads when I can afford it, a page turner.
Wednesday, 3 December 2008
Saturday, 8 November 2008
xBox and iPlayer
I finally bit the bullet and upgraded xbmc on the xbox to the latest version.
The best new feature is the plugin layouts. I've added bbc iPlayer ( from google code ) and ITV catchup.
Such an amazingly useful piece of hardware now, I can watch my torrents, dvd's, play music, a/v streams and even my photos.
Haven't figured out the connection to iTunes yet.
It was a bit confusing, and here's how I needed to do it, just in case I break it again.
Boot up Splinter Cell and select the saved linux game.
Boot into linux
Copy over xbmc into E:/xbmc
reboot
The best new feature is the plugin layouts. I've added bbc iPlayer ( from google code ) and ITV catchup.
Such an amazingly useful piece of hardware now, I can watch my torrents, dvd's, play music, a/v streams and even my photos.
Haven't figured out the connection to iTunes yet.
It was a bit confusing, and here's how I needed to do it, just in case I break it again.
Boot up Splinter Cell and select the saved linux game.
Boot into linux
Copy over xbmc into E:/xbmc
reboot
Election
Well, I stayed up the whole of the night watching the election results in the USA, found it all quite emotional which I wasn't expecting. Can't help but feel that the world has changed, and hopefully for the better.
Major disappointment, the passing of Proposition 8 in California. What a terrible thing to do. Maybe the solution needs to be different but a great slap in the face when the Obama result represents the next page in the Civil Rights movement. How ironic.
Hopefully change is coming.....
Major disappointment, the passing of Proposition 8 in California. What a terrible thing to do. Maybe the solution needs to be different but a great slap in the face when the Obama result represents the next page in the Civil Rights movement. How ironic.
Hopefully change is coming.....
Monday, 27 October 2008
MacBookPro Matte Display Petition
http://www.PetitionOnline.com/38djhak2/petition.html
Probably won't have any effect but give it a go.
Probably won't have any effect but give it a go.
Sunday, 12 October 2008
Ftp Server / Servlet for cocoa
Before I got interested in Lighttpd I had been working on an Ftp Server for my projects.
I've decided that lighttpd is to complex for me to incorporate at the moment, so I'm releasing my source code to my server and hope that people might find it useful.
I'd also be very glad if people help make it better.
You can find it at http://code.google.com/p/diddyftpserver/
upload/download works from filezilla and transmit. i havent implemented all of ftp's commands yet
I've opened a google group for discussing the server code you can find it here
http://groups.google.com/group/diddyftpserver
I've decided that lighttpd is to complex for me to incorporate at the moment, so I'm releasing my source code to my server and hope that people might find it useful.
I'd also be very glad if people help make it better.
You can find it at http://code.google.com/p/diddyftpserver/
upload/download works from filezilla and transmit. i havent implemented all of ftp's commands yet
I've opened a google group for discussing the server code you can find it here
http://groups.google.com/group/diddyftpserver
Saturday, 11 October 2008
Finding Shared libraries
Have you ever wished you could work out what program uses which libraries. On os x the tool is otool.
I found the information here and its been a great help Al Hoangs blog
I found the information here and its been a great help Al Hoangs blog
Friday, 10 October 2008
Compiling lighttpd for iphone
After writing my own ftp server for my app, I decided that webdav was a way better solution as so many have found out. Using the instructions at http://latenitesoft.blogspot.com/2008/10/iphone-programming-tips-building-unix.html
/bzlib.h and crt_externs.h
If anyone has some advice how I could incorporate this into an app, do let me know.
cheers
#/bin/bash
export DEVROOT=/Developer/Platforms/iPhoneOS.platform/Developer
export SDKROOT=$DEVROOT/SDKs/iPhoneOS2.1.sdk
export SIMROOT=/Developer/Platforms/iPhoneSimulator.platform
# Save relevant environment
U_CC=$CC
U_CFLAGS=$CFLAGS
U_LD=$LD
U_LDFLAGS=$LDFLAGS
U_CPP=$CPP
U_CPPFLAGS=$CPPFLAGS
export CPPFLAGS="-I$SDKROOT/usr/lib/gcc/arm-apple-darwin9/4.0.1/include/ -I$SDKROOT/usr/include/"
# -I$SIMROOT/Developer/SDKs/iPhoneSimulator2.1.sdk/usr/include/"
export CFLAGS="$CPPFLAGS -arch armv6 -pipe -no-cpp-precomp -isysroot $SDKROOT"
export CPP="/usr/bin/cpp $CPPFLAGS"
# dynamic library location generated by the Unix package
#LIBPATH=src/.libs/.dylib
#LIBNAME=`basename $LIBPATH`
#,-dylib_install_name,@executable_path/$LIBNAME"
export LDFLAGS="-L$SDKROOT/usr/lib/ -Wl,-dylib_install_name,@executable_path/$LIBNAME"
echo $CPPFLAGS
echo $LDFLAGS
read -p "Press a key"
# static library that will be generated
LIBPATH_static=src/.libs/lighttpd.a
LIBNAME_static=`basename $LIBPATH_static`
./configure CC=$DEVROOT/usr/bin/arm-apple-darwin9-gcc-4.0.1 LD=$DEVROOT/usr/bin/ld --host=arm-apple-darwin -without-pcre
# --libdir=$SDKROOT/usr/lib/ --includedir=$SDKROOTk/usr/include/
make
#mkdir -p lnsout
#cp $LIBPATH_static lnsout/$LIBNAME_static.arm
exit
and with the help of Alice at http://gothcandy.com/alice/2007/09/05/81/porting-lighttpd-to-the-iphone/ I think I have it compiling, but after all that, I wonder if its actually useful to me....
doh!
anyway here's the shell script to compile..
you also need to copy in 2 header files from the simulator to let it compile..
these are
/bzlib.h and crt_externs.h
If anyone has some advice how I could incorporate this into an app, do let me know.
cheers
#/bin/bash
export DEVROOT=/Developer/Platforms/iPhoneOS.platform/Developer
export SDKROOT=$DEVROOT/SDKs/iPhoneOS2.1.sdk
export SIMROOT=/Developer/Platforms/iPhoneSimulator.platform
# Save relevant environment
U_CC=$CC
U_CFLAGS=$CFLAGS
U_LD=$LD
U_LDFLAGS=$LDFLAGS
U_CPP=$CPP
U_CPPFLAGS=$CPPFLAGS
export CPPFLAGS="-I$SDKROOT/usr/lib/gcc/arm-apple-darwin9/4.0.1/include/ -I$SDKROOT/usr/include/"
# -I$SIMROOT/Developer/SDKs/iPhoneSimulator2.1.sdk/usr/include/"
export CFLAGS="$CPPFLAGS -arch armv6 -pipe -no-cpp-precomp -isysroot $SDKROOT"
export CPP="/usr/bin/cpp $CPPFLAGS"
# dynamic library location generated by the Unix package
#LIBPATH=src/.libs/
#LIBNAME=`basename $LIBPATH`
#,-dylib_install_name,@executable_path/$LIBNAME"
export LDFLAGS="-L$SDKROOT/usr/lib/ -Wl,-dylib_install_name,@executable_path/$LIBNAME"
echo $CPPFLAGS
echo $LDFLAGS
read -p "Press a key"
# static library that will be generated
LIBPATH_static=src/.libs/lighttpd.a
LIBNAME_static=`basename $LIBPATH_static`
./configure CC=$DEVROOT/usr/bin/arm-apple-darwin9-gcc-4.0.1 LD=$DEVROOT/usr/bin/ld --host=arm-apple-darwin -without-pcre
# --libdir=$SDKROOT/usr/lib/ --includedir=$SDKROOTk/usr/include/
make
#mkdir -p lnsout
#cp $LIBPATH_static lnsout/$LIBNAME_static.arm
exit
Subscribe to:
Posts (Atom)