Writing wp-posts directly from my phone!

October 4th, 2009

After reading a former class-mates blog, I found the application wpToGo, which I can use to write blog-posts directly from my phone.

Now I just need to get better at hitting the right keys, when I write on the phone!

Just received my new HTC Hero with Android!

September 10th, 2009

I finally got myself together and bought a HTC Hero with Android. A really wonderfull mobile OS, but HTC has already filled it up with lame applications that cannot be removed by default!

As an example I really dont like their “Mail” application – I prefer the Gmail-application.

After “rooting” my phone (giving myself root-access), I also found out, that by default the filesystem where HTC applications (and all other applications) are placed is a read-only filesystem. I first tried the standard “mount -o remount,rw /system” – but with no luck.

I had to do this instead: “mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system”. The I did a “rm /system/app/Mail.apk” and the Mail-application was finally gone!

Programming-wise I already programmed my first application – an application to send SMS. There is already an awesome application in the phone – I just wanted to see how hard it was to do it. Compared to the OpenMoko with PHP, the Java framework in Android is a lot harder and a lot more heavy to work with.

More notes will be posted later.

PHP 5.3 and PHP-GTK packages

July 8th, 2009

Some days ago I compiled and packaged PHP 5.3 and the GTK-extension. I also put this in my Ubuntu-repository (i386 only):

http://wiki.kaspernj.org/index.php/KnjUbuntuRepository

You can install it like this:

sudo aptitude install php53-cli php53-gtk2

You can then start you PHP-GTK-scripts like this:

php53-gtk myscript.php

You can also start it without the Gtk-extension with:

php53 myscript.php

Notice all the extensions has to be loaded through dl() og the “php.ini” which is placed in “/opt/php53/lib/”. Also the SQLite3 is built static, where all the other extensions are build shared.

Happy hacking…

FFMPEG Record

May 11th, 2009

I have looked a lot around from a decent screencast-application, that didnt make laggy sound or video – without any luck.

The only thing I found that actually worked was FFMPEG (compiled with x11grap). It is kind of annoying to enter these long commands in the prompt though, so I decided to write a small guy application for FFMPEG.

It works be simply placing a window in the area, that you want to record and then press “Record”. You can also select filename and a folder where you want the video to be saved. It will show FPS, length and size for the video while recording.

ThePirateBay

April 18th, 2009

As a result of the danish internet providers DNS blocking www.thepiratebay.org and that the my freedom of speach in general is threadened, I will now stop buying any kind of my music (~150 kr / month) and going to the cinema (~300 kr / month) in protest.

I always beleived to sponsor the music and movies by buying music and going to the cinema – but this has to stop. Private companies think they have become the police, because they have briped the police, has big lobby organisations and have bought expensive layers.

Even though it isnt that much money I use, I will begin to donate this to torrent-sites like www.thepiratebay.org instead.

knjInterface

April 15th, 2009

When I switched to Debian some time ago on the OpenMoko, I decided to program my own small interface for opening applications and doing basic stuff on it.

As of tonight, it can actually receive calls as well by listening to and sending dbus-events. If will, of course, also make some software to make calls and to handle SMS.

I will post some screenshots at the wiki, if anyone is interested. The page is located on this url:

http://wiki.kaspernj.org/index.php/KnjInterface

knjMokoEmail

April 14th, 2009

I just finished the first version of knjMokoEmail, which is, as the name suggests, an application for accessing email-accounts from the OpenMoko.

Currently it only works on OpenMoko Debian, because I have not been able to compile PHP5-IMAP for OM2008 or SHR (I have really tried though).

The application is currently able to sync emails down to a SQLite3-database, search for emails, show the latest emails and of course read emails.

It is possible to set up multiple accounts with IMAP, IMAP-SSL, POP3 and POP3-SSL.

Trying out Debian for the OpenMoko again

April 12th, 2009

While I have been playing with my OpenMoko, I have spent so many ours trying to compile or cross-compile stuff for the OpenMoko… Time I would much rather spent coding stuff.

Today I decided to try out Debian again. I dont really like Zhone (crashes, windows overlaps each other – just annoying), so I decided to quickly code my own very simple and kind of ugly interface-application.

After using some hours on it, I am very produ of the result. It cant read and sort all applications under “/usr/share/applications” and start them if choosen. I even got it to start with X.

I set up a small OpenMoko Debian repo, where the application will be available for anyone interessted soon.

Also, the third OpenMoko phone has been discontinued! Wtf? This is just another reason why not to use to official OpenMoko software. If they stop their future development, I can always port my work to another phone running Debian – like HTC Dream or HTC Magic.

Contacts and messages in the OpenMoko

March 23rd, 2009

I finally found some good documentation on the DBUS-stuff for the OpenMoko. I wrote two frameworks for manipulating with both contacts and messages.

I have made simple functions to add new contacts, edit contacts, delete contacts, list contacts, list messages and delete messages.

Hopefully I will be able to use this in some kind of way in my email and calendar applications.

I remember back when I wrote J2ME (Java)… It was a hell to find out how to list contacts on Nokia phones… Thank you OpenMoko – even though the Python scripts is a bit slow to react ;-)

knjMokoOPKG, debfoster functionality

March 22nd, 2009

Tonight I added debfoster-functionality to my knjMokoOPKG-package. You can find it in the “Foster”-section from the main window.

It basically asks you which packages you want to keep, based on which packages does not have any dependencies. I have not found a way with OPKG, where I could actually clean the all the packages which were left from installing (example) Pidgin.

The foster-functionality helps me keeping my OpenMoko “clean” :-)