howto

Developing for Mobiles with Java on Ubuntu

Mobile devices are getting more and more powerful, if you get a mobile phone the odds are it will not just be a phone but a camera, organiser, music player, video player and web browser too. You can also extend the capabilities of you phone by downloading applications and games to it. One of the most significant aspects of this is that we are talking about technology that many people already own, not just-released or niche devices, so there is a sizeable potential audience for new applications. There are a vast array of mobile phones out there, each running their own operating system and with different ways of programming them. One thing is common to many of these devices though: Java, Micro Edition (also known as Java ME and J2ME), a version of the platform-independent Java language optimised for mobile devices. You can write applications using Java and the same application on many different types of devices, you don't have to worry about the specifics of the hardware, which might be just as well as models of mobile phone come and go very quickly. You can set up a fully featured development environment for Java Mobile on your Ubuntu machine, gain access to this very popular platform and create the next ground-breaking application for mobile devices!

Installing Ubuntu MID in VirtualBox

Ubuntu MID is one of the newest members of the Ubuntu family, a version of Ubuntu made for touch screen mobile devices. It has a very different interface to regular Ubuntu and even Ubuntu Netbook Remix as it is designed with big finger-friendly icons. If you lack a suitable device though to install it on and get the full experience you can still find out a bit more about it by installing an image on VirtualBox. You can run the image in the same way as a live cd but installing it brings more scope for experimentation. As Ubuntu MID is supplied as a disc image rather than an ISO image of a CD the install process is a little different from regular machine setups, but is still quite straightforward; the first step is to grab a copy of the disc image from http://releases.ubuntu.com/8.10/, scroll down to "MID USB image" and download the "Low-Power Intel Architecture MID USB image" to your local hard disc, you should now have a file named "ubuntu-8.10-mid-lpia.img". Next we need to convert this to an image format that VirtualBox can recognise

Saving bandwidth when using multiple Ubuntu machines with Apt-cacher

If you have more than one computer running Ubuntu (or Debian), or maybe you are experimenting with different installations of Ubuntu using something like VirtualBox, you might find yourself using a lot of bandwidth and time when downloading packages from the Internet to update or add capabilities to your machine. By default each installation of Ubuntu will go directly to the Ubuntu download servers to get packages, producing a situation where you are downloading the same file multiple times through your connection to your ISP. There is an alternative to this situation though, you can download the packages through a host on your own network that will act as a cache. The next time any machine wanting that file requires it, the cache will serve its own copy, instead of having to download it again. This is a lot quicker, as the speed in your internal network will be much higher than the speed of the connection to your ISP, it is also a great bonus if you have maximum download allowances as part of your Internet connectivity package. Setting this up is not too difficult, thanks to a program called Apt-cacher.

Huawei E169G - the easy way

A few days ago Lifehacker Australia carried a blog post where they said that they felt my method to get the Huawei E169G modem working on an EEE PC was a "tad fiddly". Well, they are probably right, so taking this as a challenge I've had a go at creating a package that will apply these steps automatically and make getting this modem up and running as simple as possible. This is one of my first attempts at packaging, so there might be some problems, however I've successfully tested that it works on both a Xandros and an Ubuntu powered EEE PC. The package is quite basic in what it does, so it may well work on some other Debian-based distributions too.

Getting Seesmic to work on the Asus EEE PC

Having Flash 10 on your EEE PC opens up some interesting possibilities. One of these is the use of Seesmic, a website currently in beta that is designed to allow people to have conversations via video. The idea of this is that people can just use the built in webcam of their computer to record a short dialogue, this can be much quicker for somebody to do than composing a written comment and possibly could speed up the flow of a web-based discussion. The problem for EEE users is that this site just isn't designed for this type of machine. Hopefully the rise of netbooks means that we will see less and less sites being developed that do not work on them (that would be sensible after all) and let's hope that Seesmic will be able to correct this problem once they are out of beta. The way that the site is currently set up means that it is not possible to use it with an EEE. However, this is not the end of the story, open source has a habit of providing amazing flexibility, and we can put this to good use to make this site work for us. You mileage may vary with what is written here, but I have had seesmic working on an Ubuntu-powered EEE. If you get this to work with a standard EEE let me know.

Installing Python onto a Symbian-powered mobile phone

One of my aims for this year is to learn the Python programming language. Why? Well it seems to be cropping up all over the place. If you own a Linux machine or an Apple Mac, chances are it is already installed. Google recently made it the primary language for their AppEngine platform. The design ethos behind it is very appealing, a down to business approach to programming that dispenses with needing lots and lots of code and allows the developer to ulitlise powerful libraries to get the job done. Python code can be run on many different devices, and it is possible to use it to develop desktop, server and web applications. Now it can also be used to develop applications for mobile phones. This is very appealing to me as a developer as it takes time to master a new skill and I would rather that skill provides a lot of flexibility and the chance to get involved in a wide variety of challenges.

Full screen YouTube and BBC iPlayer on the Asus EEE PC

If you've been trying to watch YouTube videos or use the BBC's iPlayer site on your Asus EEE PC you might have noticed that it it is not possible to use these services in full screen mode. YouTube videos just play in a bigger window when you try to activate full screen. Trying to watch the videos when embedded on their webpages can be a little frustrating as it wastes available screen space (on what is quite a small screen anyway). Fortunately, this is quite easy to fix. The problem is that the version of Adobe Flash player that is supplied with the EEE does not support full screen mode. I found that the version installed on my machine was numbered 9.0.48.0 and the latest version, at the time of writing is 9.0.124.0. You can find out the version of Flash you have installed by typing about:plugins into the address bar of Firefox or Flock, or by visiting this link: http://www.adobe.com/products/flash/about/.

A block to show random content titles for Drupal

Do you like my Random Content block? I thought it would be nice to show people random selections from previous entries on my website as another way, along with the Popular Content block, to help visitors discover pages that they might be interested in. The way it was done is a little hack-ish, and it would be better to write this up as a module, but it does give an example of a custom content block using the PHP filter.

How to avoid your face being used in adverts in Facebook

I was surprised today while on Facebook to notice an advert on the left of the page with the face of a friend of mine promoting a certain local radio station. It looks like this may be due to the SocialAds system in Facebook, which seems to be a way to persuade people to but products on the basis that their friends are a fan of it so you should too. Unlike celebrities though, your apparent endorsement of a product won't earn you a penny, in fact you may not even be aware that this is happening. The products concerned don't seem to be completely random but may be products that you are a "fan" of.

Change the VGA mode of the Kubuntu KDE4 Remix Beta Alternative Install CD

I've just been installing the new Kubuntu KDE4 Remix Beta on an old Acer L100 Media Centre using the Alternative Install CD (so I can do a text mode install) as I only have an old CRT TV attached to it. When I tried to boot from the CD it looked like the installer picked a display mode that didn't work with the TV as the picture lost stability and was unviewable. I couldn't find the usual options to change the screen mode, but found that this worked to override the screen mode:

Syndicate content

Back to top