Posted on August 10, 2009 at 1:49 pm
Der Tim hat zu einem Kettenblogging aufgerufen und lockt mit der Herausgabe von Chaosradio Express folgen.
Da ich mittlerweile Podcastsüchtig bin, muss ich da natürlich mitmachen um schneller an neuen Stoff zu kommen.
Aus diesem Anlass hier meine persönlichen Podcastcharts:
- Not Safe For Work
- Chaosradio Express (und auch das normale Chaosradio)
- Bits und so (Plus natürlich)
- Mobilemacs
- dieGesellschafter
- Java Posse
- Medienradio
- Linux Outlaws
- Games und so
- Küchenradio
Ich muss sagen, dass ich die NSFW-Podcasts noch besser als die Chaosradio Folgen finde. Zielloses Rumgelaber zwischen Holgi und Tim sind einfach unschlagbar.
Die CRE-Podcasts sind da natürlich deutlich informativer. Mir gefällt besonders die Mischung aus sehr techniknahen und ehr sozialen Themen.
Hier geht’s zum vorherigen Blog und hier zum nächsten.
Posted on March 10, 2009 at 11:03 pm
I tried to run the LWUIT Demo with my MicroEmulator iPhone port. Here are some screenshots:
First Try. Got the clipping slightly wrong…

After a quick fix, clipping correct, but no text…

Changing to another theme…

… the text is there!

Menu is workin.

Setting some dialog properties, and…

… displaying it.

Some more screenshots…



Performance is slow as hell, not all graphics are rendered properly, but its working at least.
Posted on November 24, 2008 at 4:00 pm
I have started porting microemulator to (jailbroken) iPhones. Here are some first screenshots.



Posted on August 31, 2008 at 6:30 pm
I am using Maven2 for most Java projects. So I wanted to use it for Phone-Java development, too. This is a little tutorial on how it can be done.
iPhone Cydia Packages are Debian .deb files really and luckily there is the mvn-pkg-plugin that supports creating .deb files with Maven2. Unfortunatly the current version has a bug, so that it won’t work out of the box for creating iPhone packages. So you have to grab the latest svn-snapshot and apply the following patch.
Index: src/main/java/de/tarent/maven/plugins/pkg/map/Parser.java
===================================================================
--- src/main/java/de/tarent/maven/plugins/pkg/map/Parser.java (revision 132)
+++ src/main/java/de/tarent/maven/plugins/pkg/map/Parser.java (working copy)
@@ -62,7 +62,7 @@
if (auxMapDocument != null)
{
- s = new State(packageMapDocument);
+ s = new State(auxMapDocument);
s.nextMatch("package-maps");
parsePackageMaps(s); |
After applying the atch and doing a “mvn install”, we can start with the real work. Download the tutorial files from here. I will explain the contents of the archive later. For now unzip it and do a “mvn package” in its directory. It will compain about some missing dependencies, so grab the missing jars from your iPhone and install them in your Maven reposiory as directed in the error message. After you have done that another “mvn package” shoud produce a .deb file in the target subdirectory. You can upload this to your iphone and install it with dpkg. After a restart of the SpringBoard a new icon HelloMaven should be on your screen, that should start the demo program.
Now some explanation of how it works. The main part is done in the pom.xml. Here is the relavant excerpt form this file:
<plugin>
<groupId>de.tarent.maven.plugins</groupId>
<artifactId>maven-pkg-plugin</artifactId>
<configuration>
<defaultDistro>iphoneos</defaultDistro>
<shortDescription>Arindal Tune Helper</shortDescription>
<defaults>
<mainClass>HelloJava</mainClass>
<section>example</section>
<architecture>iphoneos-arm</architecture>
<datadir>/Applications/HelloMaven.app
</datadir>
<dataFiles>
<dataFile>
<from>Info.plist</from>
</dataFile>
<dataFile>
<from>icon.png</from>
</dataFile>
<dataFile>
<from>Starter</from>
</dataFile>
</dataFiles>
<postinstScript>postInst.sh</postinstScript>
<prermScript>preRm.sh</prermScript>
</defaults>
<auxPackageMapURL>file:${basedir}/pm-iphoneos.xml
</auxPackageMapURL>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>pkg</goal>
</goals>
</execution>
</executions>
</plugin> |
The first important part is the defaultDistro tag. Here we tell the plugin, that we want to build a package for the iPhone. Unfortunatly there are no default iPhone mappings contained in the plugin. That is why we have the auxPackageMapURL tag, that tells the plugin where to look for the Maven-to-Cydia-Package-Mapping. Most other things should be pretty self explaining.
The files in the dataFiles Section have to reside in src/main/auxfiles icon.png and Info.plist should be pretty clear. The Starter entry needs some explanation though. The plugin automatically generates a start script in /usr/bin. This is good enough for console applications, but if you want to start a GUI-App some more work is needed. The Starter script sets the Java executable path to /Applications/Appname.app/Java and calls the generated script after that. For this to work the starter Script has to get executable permissions and jamvm has to be linked to /Applications/Appname.app/Java. This is done in the postInst.sh script. For more info about those scripts and what you can do there refer to the Debian documentation.
This should be enough to get you started, if cou have questions, please feel free to post them in the comments.
Posted on August 4, 2008 at 10:11 am
Made my first tries with Java on a jailbreaked iPhone 3G. Here is a screenshot of some drawing routines. Its reacting on touch events, too. Will write more about it later.

Posted on July 12, 2008 at 11:21 pm
Posted on July 10, 2008 at 10:08 am
Panzi has written a very nice Lib to parse command line options in Java. You can just add Annotations to your Java fields and they will be filled automagically with the command line values.
Posted on July 7, 2008 at 8:34 pm
Es ist sehr leicht Wordpress 2.5 unter Ubuntu Intrepid zu installieren. Damit hat man dann auch sofort Multiblog-Fähigkeiten. Es gibt dazu ein Beispielscript (/usr/share/doc/wordpress/examples/setup-mysql) um neue Instanzen anzulegen. Allerdings ist das von Debian kopiert und einige Pfadangaben passen nicht für Ubuntu. Das folgende diff behebt das. Getestet mit wordpress-2.5.1-2ubuntu1.
Its pretty easy to install Wordpress 2.5 on Ubuntu Intrepid. The Ubuntu version comes with Multiblog capabilities included. There is an example script (/usr/share/doc/wordpress/examples/setup-mysql) to create new instances of Wordpress Blogs. Unfortunatly the script was copied from Debian and some paths are wrong for Ubuntu. The script below fixes that issue. After that it worked flawlessly for me with wordpress-2.5.1-2ubuntu1.
82,83c82,83
< [ -d /srv/www ] || mkdir -p /srv/www
< ln -s /usr/share/wordpress /srv/www/$DOMAIN
---
> [ -d /var/www ] || mkdir -p /var/www
> ln -s /usr/share/wordpress /var/www/$DOMAIN
149c149
< UPLOAD="/srv/www/wp-uploads/$DOMAIN"
---
> UPLOAD="/var/www/wp-uploads/$DOMAIN"
181a182
> |
Posted on June 29, 2008 at 10:03 pm
Posted on April 25, 2008 at 12:14 pm
I wanted to develop my J2ME CDC Applicatins on my Intel Mac. Unfortunalty there is no CDC VM available for Intel Macs. The phoneME project provides sources for a PowerPC version for Darwin/OS X. So I decided to port that over to Intel by replacing some files with the correct Linux x86 ones.
Here is my result:

Patch: phoneme-cdc-darwin-x86
Binary: phoneme-cdc-personal-darwin-x86-qt3-x11-bin
Copy the files from the Patch-Archive into the correct folders of the phoneME sources. You can build the Foundation-Profile with “make”in the directory cdc/build/darwin-x86-mac and with “make J2ME_CLASSLIB=personal” the Personal-Profile. You need QT3 for the Personal-Profile. Install that with Fink.
You can try out the resulting VM with “bin/cvm -jar democlasses.jar”.