Archive

Archive for the ‘Research Room’ Category

Blackberry Storm II ‘Odin’ on Ubuntu 10.04

July 16th, 2010

Hi there, it’s me again with my experience using Ubuntu Linux.

This time I want to show you how to mount your Blackberry device with Ubuntu Linux. Normally, some device doesn’t need this kind of action, but in my case I needed to do this.

When I got this Odin on my hand. The first thing that I would like to do is connecting it to my Linux box (yay! look how much fanatic I am *giggles*). And at that time, unfortunately that the device is suddenly reboot soon after the USB is plugged in. And it keeps reboot and keeps reboot and keeps reboot … *sigh*

Then I try to connect it to my sister-in-law’s Netbook, running M$ Windows XP, and it run well. Darn!

After few search in the internet, I found that installing barry would solve the problem. Here are some quotes from their site …

Barry is an Open Source application that will provide synchronization, backup, restore and program management for BlackBerry ™ devices. Barry is primarily developed on Linux, but is intended as a cross platform library and application set, targeting Linux, BSD, 32/64bit, and big/little endian systems.

So, on Ubuntu, you just go to Synaptic Package Manager and fetch all packages that contains “barry” on it (except the -dbg one of course).

First attempt … no reboot issue found anymore, and my Odin is charging using the USB interface. But wait, the mass storage doesn’t mounted. I have set the configuration on Option > Memory > Enable Mass Storage and Auto Enable Mass Storage When Connected to Yes.

And then I found the solution on this page. It said that the udev rules is the cause of everything. removing the /etc/udev/rules.d/10-blackberry.rules would be the solution. Please be aware that the ‘10′ on ‘10-blackberry.rules’ is vary, on your device it could be ‘65′, or more.

And so I plugged the device once again, and walla! Two mass storage is shown on Nautilus. Now my Odin is back into business ^^ … *transferring a lot of song and movies here :p

Hope this will help you. Cheers!!

Research Room, Ubuntu Talk, Written in English , , , , ,

Thanks Google!!

February 25th, 2009

After read this dude’s writing on his blog about how Google Map now also viewing the road name, I straightly checked it on my currently developed web application and configure it to use the MAP view type, and walla … google help my research!!!

At first I’m not sure about how to show Transjogja’s route map with a clearer view of the road, until today. Now I can switch to the MAP type and let the user understand the route better.

Again … thanks google!!! And thanks whoever you are who helps google create the map! *err .. I think I know the guy* wkwkwkwk … UPDATED: he don’t, I’ve contacted by him and he said it’s TeleAtlas’ works ^^

Research Room, Tech Update, Ubuntu Talk, Written in English ,

Warning: Failed to initialize WMA message routing support

February 11th, 2009

It’s past midnight, and I still working at my noob Java Mobile application using Netbeans. After type a few lines of code just to create a so-much-like-a-Hello-World-application, I hitted the Run button, and walla … there it goes, the emulator showed up and after few seconds … nothing happened. No MIDlet showed, no error message, and I couldn’t press any key on the emulator except the close button. Tried it again for 2 or 3 times, and then a message showed on the output tab :

Warning: Failed to initialize WMA message routing support

Yes, I’m not an expert in Java Mobile programming, so this issue made me spent 30 minutes search and rescue for help on Google. I remember having the same problem few months ago (*gosh*), but I don’t remember how to solve it. The only part I remember is it has something to do with the network connection … but what???

Then I bump into this page here. Seems that the WTK is strictly prohibit changes of IP address. Contributor on that page said that

giving write permissions does not correct the problem when the problem seems to be linked to changing ip address.

if one installs WTK2.1 with one ip address and then the ip adress is changed at some later point (say one’s ip address is being set via dhcp) the problem erupts.

The error doesn’t occour because of write permissions. INSTEAD it happens cause of WMA routing support fetches IP info from /etc/hosts file. If you update /etc/hosts with your current IP address, WTK will work perfectly. This happens, for example, when your IP is changed from static to dinamic and dhcpcd doesn’t update /etc/hosts file

Seems fit to my case, since I remember installing WTK at my office, and here I am at my room (different IP address of course). Hmm, then I tried to add a line on /etc/hosts refering to both of my office IP and my room IP … still no use …

Last try, since there are two interface here on my notebook, I put my room IP address to my wired interface, and then my office IP address to my wireless interface.

Yep, that’s fix the problem … geez … the conclusion is I feel sleepy now, time to go to my bed … hoahm ^^

Research Room, Ubuntu Talk, Written in English , , ,

Confusing cURL and proxy options

January 22nd, 2009

This night I’ve been trying to use cURL to fetch some content of a website using PHP-CURL library. And because I did the work while I’m at my campus, which is using some proxy to connect to the net, I should configure cURL to use proxy.

Okay, then I read the PHP manual *gosh, long time no see this thing* … and found few variables that seems need to be configured so I could use proxy … which is …

  • CURLOPT_HTTPPROXYTUNNEL : TRUE to tunnel through a given HTTP proxy.
  • CURLOPT_PROXY : The HTTP proxy to tunnel requests through.
  • CURLOPT_PROXYPORT : The port number of the proxy to connect to. This port number can also be set in CURLOPT_PROXY.
  • CURLOPT_PROXYUSERPWD : A username and password formatted as “[username]:[password]“ to use for the connection to the proxy.

So I wrote these lines of code …

curl_setopt($ch,CURLOPT_HTTPPROXYTUNNEL,1);

curl_setopt($ch,CURLOPT_PROXY,’ip.addr.of.proxy’);

curl_setopt($ch,CURLOPT_PROXYPORT,’****’);

curl_setopt($ch,CURLOPT_PROXYUSERPWD,’****:****’);

and guess what … some response showed up …

Received HTTP code 403 from proxy after CONNECT

Okay … what’s this??? !@#$%^&^%$#@#$%

Few more read here and there … found the problems. It seems that I mistakely understands stuff about CURLOPT_HTTPPROXYTUNNEL. It somehow doesn’t related to the kind of proxy my campus have (correct me if I’m wrong here). At first I think that whenever I use proxy, then that variable should be set to TRUE. But no, I think that variable is only used whenever I need to use the proxy as a tunneling service for my connection, not as a real proxy. Dunno that’s true or not, but the problems is gone when I deleted the line.

Resource:

  • http://id2.php.net/manual/en/function.curl-setopt.php
  • http://curl.haxx.se/mail/curlphp-2008-07/0006.html

Research Room, Ubuntu Talk, Written in English , , ,

A progress … phew

September 8th, 2008

After being so busy with my current job, today *err … seein the clock, i guess I should said … yesterday … one minute already passed from midnight* I able to put my brain on my research.

Still about GPS location and Web Service … I decide to use RESTful Web Service as the service model for mobile application built on Java ME. Why? Coz I already build the server with PHP+NuSOAP, which still holds RPC-Encoded model of web service, while Java ME (JSR 172) doesn’t support it. After little chat with Nico, he told me to try RESTful Web Service … and here it goes … I rebuild the service, only to serve XML document based on request from the client …

Ah! I never thought that Web Service could be so easy using this concept (err … do I called it right as concept?) … And, yes … actually with REST, our response could be anything as long the client understands it *err, maybe a little drawback if I can’t supply the correct information about it, but it must be thought before, and maybe I am to lazy not to read all the documentation*

My first attempt, using Java ME + KXML as the reader, still in the emulator box, though … well, at least I could see something now ^^ *since I never touch any not-a-web programming before*

Free Image Hosting at www.ImageShack.us

QuickPost Quickpost this image to Myspace, Digg, Facebook, and others!

*aaargghhh … the time is ticking!!!! should keep the speed up here … mayday mayday … mediccccc*

Research Room

Failed to Track Full Route

June 17th, 2008

Today I was planning to do a survey on one of Transjogja’s route. The objective is to get information about Geodetic Coordinate of some bus stop and do some route tracking. For this purpose, I use these tools:

  1. Portable GPS Receiver, which could transmit NMEA data by bluetooth. I use Holux M-1000, got a fair price and service at otomasi.com
  2. My beloved mobile phone, Sony Ericsson W810i, equipped with MobileTrailExplorer as GPS bluetooth data receiver, waypoint marker, and tracklogger.
  3. Viking GPS Data and Topo Analyzer (http://viking.sf.net/), so I could read the GPX data exported from MobileTrailExplorer on Ubuntu.
  4. Patient … a lot of patient, since I have to sit on the bus for about 2 hours (that’s average time for one lap).

The actual plan is I will pick route 3A as a target. Since this route is passing both my boarding house and my office, so I could start in the morning from bus stop near of my boarding house, and track the route until my office, stop there and go to work, and continue tracking on the afternoon from bus stop near my office and finish at my boarding house again (yeah, what a nice plan!!).

And the result is …

Actually what happened is not as smooth as I think. Okay, as you may see at the picture above, I only could track half of the route. Why is this happened? Well, technical reason … At Giwangan I saved the tracklog into memory stick (export it into GPX format - resulting that image), and then continue tracking. So far everything is fine, but the problem arise when the tracker application suddenly freeze when we arrived at East Ring Road (Disnaker) bus stop. That time I still could record the last waypoint there but after that the tracker application freeze. And I didn’t realized that happened until we are near of UPN bus stop. Darn … I don’t know what is the source, but when I try to connect it again to the GPS receiver, it is refused …

And so … the tracklog from Giwangan to Disnaker is lost! My great plan on recording a full track of a route is failed just when it’s about to come to the finish line. But it’s okay, since the waypoint records is still there, I could use them for some research preparation.

Tommorow I will track for route 2B, I must prepare everything better now … until then, stay healthy guys!!!

Daily Blog, Research Room , ,

New Theme!!

June 15th, 2008

Yeah, new theme here … white text on top of black background.

There is no specific reason for this to be happened, I just want to change the mood and keep everyone happy on loading my page (less images less bandwitdh I presume) …

Okay, there are other changes here. I’ve added new category called “Research Room”. This category is dedicated to log my research which I hope will be finished on September. The main theme of my research is using Web Service to create a Transportation Information Services, planned to be tested on Transjogja. The system itself will integrate GPS, J2ME, PHP, and maybe Python applications through web service as their “broker” …

And yes … except PHP, the rest were subjects I’ve never touch for the whole of my life!! And maybe this time is the time to start touching them …

Well, meet you on my next post then … until then, keep healty guys!!!!

Daily Blog, Research Room