Tuesday, February 5, 2013

Make a Micro SIM from a Regular SIM


Recently I needed a micro SIM card for using in a Nexus 4 phone. Since AT&T wanted me to get a data plan for getting a micro SIM (which is ridiculous!), I made the micro SIM from the regular SIM card I have. Here is how to do it.

  • Download and print the following image. Use original image size while printing.

  • Use a ruler and ruler to extend the lines of micro SIM
  • Place the SIM card on the paper so that it fits in the border of Mini SIM in the image.
  • Use pencil and ruler to draw lines over the SIM card using the extended lines of micro SIM as reference.
  • Use a sharp scissor to cut the SIM.
  • Don't worry if does fit in the phone after the first try. Just trim it as necessary.
  • Make sure that the golden part is not cut in any way.

Saturday, January 19, 2013

Samsung Nexus S: Flush Jelly Bean Factory Image

I have been waiting for OTA for several months with no luck. So finally decided to flush my Samsung Nexus S with Jelly Bean 4.1.2 factory image. Here is how I did it. 
  1. (PC) Download Nexus Root Toolkit from here (don't worry. I did not root my phone, just unlocked it for flushing!). 
  2. (PC) Install the software. When prompted, choose your device. In my case, it was Samsung Nexus S, 850MHz, i9020a. Allow the software to download necessary files for your phone.
  3. (PC) Connect your phone to the PC with a USB cable. Run the 'Nexus Root Toolkit' software and click on 'Unlock'. Follow the on screen instructions to unlock your phone.
  4. (PC) Download Nexus S factory image from here
  5. (PC) Unzip the downloaded image in the installation directory of Nexus Root Toolkit. In my case the path was C:\Program Files\WugFresh Development\data
  6. (Phone) Turn off your device 
  7. (Phone) Go to Bootloader (press&hold volume up button then press&hold power button) 
  8. (PC) Go to the folder where you unzipped the factory image. Make sure that the folder contains adb.exe and fastboot.exe.
  9. (PC) Double click on flash-all.bat file. This will flush the factory image in the phone.
  10. (PC) When done, click on 'OEM Lock in the Nexus Root Toolkit to lock bootloader again.
Enjoy your Jelly Bean:)

Friday, December 14, 2012

Installing R in Ubuntu

To install R (http://cran.r-project.org) and desired packages in Ubuntu, follow the steps:
  1. sudo apt-get install r-base
  2. R (this will open R command window)
  3. To add a package, e.g., signal, run the following
    • install.packages("signal")
    • packageStatus()
    • update.packages()
 That's it!

** Adding R repository paths to package manager may be necessary.

Wednesday, August 8, 2012

Latex: Multirow Example


Recently, I found it difficult to create a table with multi-row and multi-column combination. Here is an simple example.

The latex code to create above table.

\begin{tabular}
{|c|c|c|c|}
\hline
\multirow{1}{*}{{1}} & \multirow{2}{*}{{2}} & \multirow{3}{*}{{3}} & \multirow{6}{*}{{6}} \\
\cline{1-1} \multirow{1}{*}{{1}} & & & \\
\cline{1-2} \multirow{1}{*}{{1}} & \multirow{2}{*}{{2}} & & \\
\cline{1-1} \cline{3-3} \multirow{1}{*}{{1}} & & \multirow{3}{*}{{3}}& \\
\cline{1-2} \multirow{1}{*}{{1}} & \multirow{2}{*}{{2}} & & \\
\cline{1-1} \multirow{1}{*}{{1}} & & & \\
\hline
\end{tabular}

Wednesday, July 25, 2012

Samsung Nexus S i9020a: OTA Update to JB 4.1.1 from 4.0.4

Several user have reported the following procedure as successful, but some failures were also reported. Try at your own risk:)

  1. Connect your charger! This is a prerequisite
  2. Go into airplane mode
  3. Under settings->apps->all (scroll the page to the left), 
      • select 'Google Services framework'
      • force stop it and 
      • then delete its data


  4. Enable wifi only (don't leave airplane mode)
  5. Settings->about->system updates->check for update.

Repeat this several times if it doesn't work at first. There is no need to remove the sim card or  reboot.

Monday, April 9, 2012

Samsung Nexus S i9020a: Update to ICS 4.0.4 from 2.3.4/2.3.6 (without rooting)

Update from 2.3.4 (GTJ61)/2.3.6 (GRK39C) to 2.3.6 (GRK39F)

  1. Download this file
  2. Rename the downloaded file to update.zip
  3. Put it update.zip you have downloaded on your sd card. 
  4. Turn off your device 
  5. Go to Bootloader (press&hold volume up button then press&hold power button) 
  6. When in Fastboot mode navigate to Recovery using volume up/down buttons 
  7. Press the power key to select Recovery 
  8. If you see a warning logo, press the power button and then press volume up button then release both to go to the Main Recovery menu
  9. From the menu, select Apply update from /sdcard, and choose update.zip from the list. 
  10. When update is finished go back and select reboot system now
Update from 2.3.6 (GRK39F) to 4.0.4 (IMM76D)

  1. Download this file
  2. Use the above steps again to update.
*** The same procedure should work for other devices as well but the file would be different. You will have to find the right update file.

Saturday, December 10, 2011

HowTo: Root HTC Droid Incredible || Android Phone

Follow the steps to get root access of a HTC droid incredible phone and install CyanogenMode Android OS using windows PC.

  1. Install HTC USB Drivers on your PC. Driver can be found here.
  2. Download this kit that contains adb, fastboot and other necessary scripts.
  3. Connect your phone with the PC via usb cable with USB Debugging enabled in the phone. (do not select file transfer mode for the sdcard).
  4. Download revolutionary from http://revolutionary.io/ and collect the Beta Key.
  5. Unzip the revolutionary-x.x.zip inside the folder where adb.exe is available.
  6. Run revolutionary.exe from command line.
  7. Then follow the steps from here to install CyanogenMode.