Archive for the 'Java' Category
31
Aug/09Facebook Picture Upload Crashes Or Errors On FireFox
Monday, August 31st, 2009Recently tried to upload pictures to Facebook using Firefox only to find it crashed on me the first time and errored on the second. I thought this was odd considering it uses a Java Applet which should be compatible with Sun’s Java.
Well I found that GCJ’s implementation of java caused the problem. To solve it just remove the following packages:
sudo apt-get remove gcj libgcj-common libgcj7-0
Then install sun’s version of Java
27
May/08GPS on Computers
Tuesday, May 27th, 2008I have been trying to get get a bluetooth GPS device hooked up to various computers from mobile phones, Asus EEE PC to a Vista desktop. I thought it would be fairly easy but boy was I wrong.
Starting out on Linux with the Asus EEE PC the idea that Linux has is a daemon called gpsd which handles the commication between the computer and GPS. The clever idea for this is so that you can have multiple programs which “asks” the daemon for GPS information so not one program hogs the device. Also once you configured the daemon, it keeps all the settings from port to NEMA specification so all of this does not have to be repeated.
Linux
The first problem I had was establishing a connection between the GPS and computer using bluetooth. Ubuntu kept on saying the device would not accept an OBEX connection. Further investigation and I had to install gnome-bluetooth and bluez-utils. Using apt-get this was easy but it still wouldn’t let me. So I did it via command line:
hcitool scan
This picked it up and I used sdptool to get the serial profile for the device which my GPS supports.
sdptool browse xx:xx:xx:xx:xx:xx
Replace the ‘xx’ with the MAC address of the bluetooth GPS device which is displayed when you use the hcitool scan command.
This was where I got stuck. The sdptool didn’t create a serial profile and I stopped there.
Mac OSX 10.5
I then went on to try and get it working with the Mac. There wasn’t a lot of native GPS software for the Mac (that was free) but using port you could install gpsd. For port to run you need to have Xcode installed because it needs a c compiler. Xcode was over 1GB to download so it slowed my progress down. I created a bond between my MacBook Pro and the bluetooth GPS and that was fine. The cool thing was it even tells you the serial port it was on. I tried using KisMac with the GPS module but it didn’t work and also used GPSylon, a java open source GPS software.
After Xcode was downloaded and installed I had fetched gpsd but got confused to how to set up and lauch the daemon on the Mac.
Windows XP/Vista
For XP i used my bootcamp partition and Vista is my normal desktop computer. It was kind of pointless setting up GPS with the desktop because I won’t be able to move it about with me but it was worth a try. I used GPSylon but had trouble with the serial port because GPSylon was designed with *nix in mind and Windows used COM ports. Later on I found I had to jus change the line:
/dev/tty
to the COM port but I have yet to try it.
Mobile Phone
The best luck I have had was on my Motorola Ming(A1200). Technically it is and it is not a computer but it worked best here. I used GPS Track which was really good. JavaME has JSR179 built into the framework specification for location based devices. I would have thought these specification should be ported to the Java SE so that it too can make available the API’s needed for any mobile stuff but they weren’t. Also JavaME isn’t as easy to code for once you are use to version 1.5 and upwards.
23
May/08BlueNext BN-909GR & SirfStar III Chip
Friday, May 23rd, 2008I have been playing around with a BlueNext BN-909GR which has the SirfStar III GPS chip. The chip and implementation by BlueNext was amazing. I was able to get a lock of up 10 satellites on a clear bright day when the receiver was placed indoors! I was going around the house and it kept a lock on at least 1 satellite 90% of the time and it switched to DGPS when it didn’t.
When it was sitting next to me on the computer about 1.5 – 2 meters away from a glass window it had 9 satellites locked. I clenched my hand around the unit and it dropped to 5 satellites. It was impressive. Usually on a cold start it took around 1 – 2 minute to get a lock but normally it will get one faster. This was without the Assisted GPS (AGPS) aid although the chip does support it. I think the chip gets a better signal than my aging TomTom Go700.
The SirfStar III uses the NEMA 0183 standard which is the format for the GPS data from the unit. It is a string containing a series of data separated by commas. Each data is in a certain order and different standard have different data and in different order. This has posed many issues with JavaME which I will discuss in another post.
I got the BlueNext BN-909GR to try and create a J2ME midlet (application) which would use a bluetooth and a GPS device.
18
May/08BugLabs Bugs
Sunday, May 18th, 2008This cool modular open source hardware is a pretty good idea but seems a bit big and expensive. It’s a good idea and the even better part is that they use the Java to programming and the Eclipse IDE works with the SDK.
I’m sure I will have to get one of these to play around with one day but at the moment it seems the production of the bug and modules are not up to capacity and getting the bug base and modules adds up to almost the same price as a mobile phone such as the Nokia N95 with all the modules built in.


Blog (RSS)