Wednesday, August 31, 2011

TeXniCenter 0 ERRORS, 0 WARNINGS, 0 BAD BOX, 0 PAGES.

This happens if the MikTex has missing packages. To resolve this, go to
for e.g. MikTex2.9 -> maintainance (admin) - > Settings (admin) -> General and choose

either Yes or No (but not "Ask me first") for the option "Install missing packages on-the-fly".

cheers!

Tuesday, August 30, 2011

To get files from a FTP server

This is simple.

  1. Open the given ftp location in internet explorer
  2. In the "view" tab, click on "open FTP site in windows explorer"
  3. Just copy the contents from there
Cheers!

Wednesday, August 24, 2011

To span figures in two columns in LaTex

If you need your figures to span two columns in LaTex this is what you have to do.
\begin{figure*}[t]
\end{figure*}
Just change figure into figure*. Simple as that!

Wednesday, August 17, 2011

How to Find Keywords from Files in Ubuntu

I personally have wasted much time finding keywords within files, when I wanted to debug programming codes in Ubuntu.
Here is how it is done easily.

The function we use is called grep. Most of the Ubuntu distributions come with grep installed.

If you want to find my_function in all the files in folder /home/abc
type:
grep -i -n -r 'my_function' /home/abc

definition:
grep - function to search patterns in files
-i - ignore case
-n - output line number
-r - search recursively

Use
grep --help or man grep for more details.


Thanks for reading this post. Hope it would help!

Tuesday, August 16, 2011

Typing Japanese on Windows 7

Now this is very easy.
  • Go to control panel->Clock, Language and Region - click on the "Change keyboards or other input methods"
  • Click on the "Keyboards Languages" tab. Then click the "Change keyboards" button.
  • Click the "Add" button to add Japanese input capability.
  • Scroll down to Japanese. In the Keyboard section section choose "Microsoft IME. Click "OK".
That's it!

Sunday, August 14, 2011

Windows 7 and Hidden Partitions

  • I am using a Toshiba Dynabook laptop and I finally decided to install Windows 7 on it. Toshiba laptop has two hidden partitions; one for recovery called HDDRECOVERY and the other one for booting, called TOSHIBA SYSTEM VOLUME. Now when Windows 7 was installed it had created two more primary partitions, finishing up all the four primary partitions you can create. (In Windows 7 a small 100MB partition is created for system stuff). This makes you run out of all the primary partitions and you may not be able to install any other operating system like Ubuntu.
  • Now, unless one of your primary partitions is an extended partitions you cannot create any more partitions in the disk. So, I had to remove the hidden HDDRECOVERY. You can copy contents of hidden partitions using an Ubuntu live cd. Using System->Administration->Disk Utility mount the hidden partition you want and you can copy it to wherever you want.
  • On an extended partition you can create logical partitions and you can use this extended partition to install Ubuntu.

Cheers