Friday, December 14, 2012

Installing R in Ubuntu

To install R ( 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.

\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}} & & & \\

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
  3. Put it 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 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.