Selamat Datang Putera Puteri Ter-xxx

Selalu ada kejahilan dari para senior menyambut mahasiswa baru memasuki Gerbang Ganesha untuk pertama kalinya… Pas liat kata-kata sambutan itu di spanduk besar, lucu juga hehehe

Yang dibawah ini kayaknya waktu angkatan 2002:

Yang ini baru, waktu ITB narik biaya super mahal buat para mahasiswa baru, denger-denger setelah angkatan 02 loncat ke angkatan 45 alias 45 juta :p

Advertisements

Free Android Phone Memory with Linux link -s

Source: http://www.baadnwz.eu/search/label/tutorials

Although there is a2sd, that keeps the apks on the sd-ext some files are stored on phone’s nand on /data partition and if we install alot of apk’s then you remain out of free space. WE DO ALL THIS WITH PHONEON, NOT IN RECOVERY
1st let’s see how much free space i’m having:

# df -h | grep data

/dev/block/mtdblock5 147.6M 76.7M 70.9M 52% /data 

 As you can see i have left about 70 MB free. Let’s see what folders eat my space:

#du -sk /data/data/* | sort -rn | head

18641 /data/data/com.navngo.igo.javaclient

14911 /data/data/com.opera.browser

6756 /data/data/com.google.android.gm

5194 /data/data/com.android.providers.contacts

3661 /data/data/com.htc.launcher

3083 /data/data/com.htc.googlereader

1276 /data/data/com.swype.android.inputmethod

1172 /data/data/com.android.settings

1144 /data/data/com.htc.android.mail

1084 /data/data/and.blogger

Ok so it seems that iGO and Opera is eating 32 megs together. I’ll leave data/data/com.google.android.gm alone since it’s gmail and I want to be more responsive by keeping its files to nand(i only have a class 4 card). Lets get to work. 1st we need to make a folder on sd-ext where to keep the files.

#mkdir /system/sd/.moreapps  

I made the folder .moreapps. Now let’s move stuff and symlink them.

First we move them:

#mv /data/data/com.navngo.igo.javaclient /system/sd/.moreapps/com.navngo.igo.javaclient 

Then we symlink them:
#ln -s /system/sd/.moreapps/com.navngo.igo.javaclient /data/data/com.navngo.igo.javaclient

Now we repeat the operation for opera:

Move:

#mv /data/data/com.opera.browser /system/sd/.moreapps/com.opera.browser  

Symlink:

ln -s /system/sd/.moreapps/com.opera.browser /data/data/com.opera.browser  

Now let’s check again my free space.

#df -h | grep data

/dev/block/mtdblock5 147.6M 51.8M 95.9M 35% /data 

Well it seems to me I gained 35 mB without uninstalling apps, without moving ALL of them to SD and experience some lags.

Now let’s check if we made the symlinking right

#ls -al –color=none /data/data/com.opera.browser

lrwxrwxrwx 1 0 0 38 Feb 22 05:46 /data/data/com.opera.browser -> /system/sd/.moreapps/com.opera.browser  

Yap all seems right. Opera and iGO are working at same speed, i freed up some space. Everyone’s happy.
The advantage of this method is that you can choose what to move to sd-ext you don’t have to have all to sd-ext.
Now make sure you don’t name your folder in /system/sd “data” since a2sd script will move back on nand all its contents.
This method is recommend for GPS software, Browsers, Games, some apps you got from market. It’s best to  leave system apps there to avoid FCs or slowdowns. If anything goes wrong with your app after this you can always move them back.
1st you delete the symlink (rm /data/data/whatevar) then move it back

Rooting HTC Desire + Flashing Gingerbread ROM with Sense 2.1/3.0

Just like the title said, in last the weekend I was trying to root my HTC Desire since I want to have HTC Sensation look and feel by using Sense 3.0 UI. At the same time, I also want to have Gingerbread (Android 2.3) features. I am writing this post in case I need to re-do it again some day.

HTC Sensation Sense 3.0 UI


My HTC Desire initial specs:

  • Unrooted
  • HBOOT 93.0001
  • Frozen Yoghurt (Android 2.2)
  • HTC Sense 2.0
  • AMOLED screen (not SLCD)

So I searched on how-to and required files. Basically here’s the source of my method and reference. Thanks to below sites that has guide me through overnight.

Step#1 Download Required Files to your PC

Yes, this rooting and ROM flashing process requires you to have your PC ready with its internet connection. Here’s the required files to download:

  • Unrevoked 3.21 (Latest Unrevoked available in the official site is version 3.32. I have try to use this latest version but it stuck on “Validation Error: Backup CID is missing” (CID: Carrier or Region ID) at the end of rooting process. I don’t know what exactly becomes the problem, and I can not find others in the net that could solve this. But one of recommendation is to use older version of Unrevoked which is version 3.21, luckily it still can be found on the net. I attach it here.
  • Android USB Driver (for both HBOOT and ADB mode of your phone, modified by Unrevoked team). Download.
  • ROM with Gingerbread (Android 2.3) with Sense 2.1/3.0 UI. I use the Insert Coin ROM InsertCoin_GB_Sense2.1_A2SD+_v30.zip with Apps2SD.

Step#2 Installing and Preparing Downloaded Files

Now after you got your files ready, its time to install the Unrevoked and USB Driver to your PC. While the ROM itself should be copied to your HTC Desire SD Card root folder (keep it in .zip format).

  • Install Unrevoked 3.21. Well, its not actually installing the program. The downloaded program itself is executable, you can run it instantly (always right click and run as administrator if you are using Windows Vista).
  • Install USB Driver. I am using Windows Vista and its complicated. When installing this driver, you will need your phone to be connected via USB cable to your PC. First, install it in HBOOT mode of your phone. Follow instruction on this link. In my case, after I follow the steps on the link, when my phone is in HBOOT mode, the driver works well, but when my phone is in normal mode, the PC keeps searching for the driver (Android ADB Driver not found). If you have the same thing, do this: Open Control Panel, Open Device Manager, in Other Device you can find Android 1.0 and below it, there’s Android ADB driver that could not be found. You just have to right click and update the driver, but not direct it to the downloaded driver as we do for HBOOT mode, select the “help windows find the driver”, then you can find some drivers already there, select the Android Bootloader Driver. Test it by connecting your phone to your PC using USB cable, if the Windows find the driver and not searching it again, then it works. 
  • Copying your ROM to your phone SD Card root folder. Just connect your phone into your PC on Disk Drive mode and copy the InsertCoin_GB_Sense2.1_A2SD+_v30.zip (do not unzip) ROM into your SD Card root folder.

Step#3 The Real Work: Rooting and Flashing

  • Rooting. In the phone Setting>Connect to PC, select Disk Drive mode as default (not charge only) and untick the Ask Me option. And in the phone Setting>Applications, tick the Unknown sources option, while in the phone Setting>Applications>Development, tick the USB Debungging option. Rooting itself is easy, simply connect your phone (in normal mode, not HBOOT mode) into your PC. Run the Unrevoked program and it will automatically install Unrevoked program into your phone and root it instantly. The process involves your phone rebooted automatically several times, so don’t worry. Just pay attention to the Unrevoked log displayed in the program, when it says it’s done, then it’s done.
  • Flashing ROM. Flashing ROM is also easy, after you copy the InsertCoin_GB_Sense2.1_A2SD+_v30.zip into your root folder of SD Card, you can choose the ROM in the recovery mode of HBOOT just after you finished rooting your phone. In the HBOOT mode you can use your volume button to choose options and power button to select your options. After you choose the ROM, the flashing process will be started, just keep monitor your phone screen for the logs. It will tell if it is finished.
  • After flashing finished, choose reboot option in the HBOOT then you will have your HTC Desire running Gingerbread with Sense 2.1/3.0 UI, fantastic!!!

As visual aid, video below gives overall guide of the process, its just the ROM loaded is not the InsertCoin_GB_Sense2.1_A2SD+_v30.zip, but the main steps are the same (download mp4).

UPDATE MAY 23, 2011: I have found another great ROM from RCMix: RCMixS_v1.6.2_A2SD+_BravoHboot.zip try both if you want to compare. For me, I like RCMix better compared to Insert Coin, RCMix has working Google Talk 1.3 with video and voice call inside.

UPDATE MAY 30, 2011: I am now a big fan of RMixS ROM. Keep monitor his thread on XDA Forum. I am now using RCMixS v1.8.

Good Riddance

Another turning point, a fork stuck in the road
Time grabs you by the wrist, directs you where to go
So make the best of this test, and don’t ask why
It’s not a question, but a lesson learned in time

It’s something unpredictable, but in the end it’s right.
I hope you had the time of your life.

So take the photographs, and still frames in your mind
Hang it on a shelf in good health and good time
Tattoos of memories and dead skin on trial
For what it’s worth it was worth all the while

It’s something unpredictable, but in the end it’s right.
I hope you had the time of your life.

It’s something unpredictable, but in the end it’s right.
I hope you had the time of your life.

It’s something unpredictable, but in the end it’s right.
I hope you had the time of your life.

—–

Good Riddance – by Green Day

Tunneling and Port Forwarding in Android

I believe several countries has quite strict policy on their internet access. Well, with a little trick, we can make a hole and goes straight through it. I have try to do this using Blackberry but I could not found nice free ssh client. But with Android, it is pretty easy. So let’s get started.

What you need is:

  1. Your Android phone (I use my HTC Legend with Android 2.2)
  2. Install ConnectBot from your Android Market
  3. Unix server in the internet with Squid Proxy server (or any other cache server) installed [I am using inet0.net]

Alright, if all the tools are ready, first step is to create SSH Tunnel with Port Forwarding enabled. Basically we build SSH connection to the Unix server with Squid Proxy running and then forward all HTTP traffic from our Android phone via this tunnel. So instead of going through standard HTTP port (8080), our browsing traffic goes via SSH port (22). Below is screen shot on how to do this using ConnectBot.

And then, we have to edit the APN settings, specifically the proxy setting. We have to direct all HTTP traffic into this proxy. In this case we have to direct the traffic to localhost (127.0.0.1) port 8080. As we can see from the previous step, the 127.0.0.1:8080 address and port has been binded (port forwarded) into port 8080 in the Unix server. With this setting, the HTTP traffic will go to localhost and then via SSH tunnel goes to Unix server port 8080 which the Squid Proxy running and listening to this port. Here’s the screen capture.

Finally, we can login into the Unix server using SSH:

Then open your browser, try to visit restricted websites. I have try it and made it, but I will not capture my screen on this one 😉 Hope it works on your Android too.

Using FizzBuzz to Find Developers who Grok Coding

This post title I took from http://imranontech.com/2007/01/24/using-fizzbuzz-to-find-developers-who-grok-coding/. Nice test that makes me want to try it. Basically here’s the test:

Write a program that prints the numbers from 1 to 100. But for multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”. For numbers which are multiples of both three and five print “FizzBuzz”.

So, I log in into inet0.net machine and begin scripting in perl.

fizzbuzz

fizzbuzz

Then I run it, voila!

sigit@amazon:~$ perl fizzbuzz.pl
1
2
Fizz
4
Buzz
Fizz
7
8
Fizz
Buzz
11
Fizz
13
14
FizzBuzz
16
17
Fizz
19
Buzz
Fizz
22
23
Fizz
Buzz
26
Fizz
28
29
FizzBuzz
31
32
Fizz
34
Buzz
Fizz
37
38
Fizz
Buzz
41
Fizz
43
44
FizzBuzz
46
47
Fizz
49
Buzz
Fizz
52
53
Fizz
Buzz
56
Fizz
58
59
FizzBuzz
61
62
Fizz
64
Buzz
Fizz
67
68
Fizz
Buzz
71
Fizz
73
74
FizzBuzz
76
77
Fizz
79
Buzz
Fizz
82
83
Fizz
Buzz
86
Fizz
88
89
FizzBuzz
91
92
Fizz
94
Buzz
Fizz
97
98
Fizz
Buzz
sigit@amazon:~$