Tuesday, October 25, 2011

What I follow to post codes in Blogger

There are may alternatives and workarounds available in the net to post code snippets in blogger. But process I follow is the simple one founded in following link.

What I do is to
(1) Simply go to the site SIMPLEBITS
(2) Paste the code
(3) Place the code in my blog by clicking Edit HTML link on top

VoilĂ !!

Thursday, July 14, 2011

Adding Source Code in Latex

One of my favorite sites for quick Latex reference is Wikibook. Today I got a new package listings which can insert directly form a source code file and generate necessary formatting in Latex document. Just use the package in your Latex document file :


And then use the following command where you want to place code :


For more details see the link :

Also take a look in the following link for writing pseudo-code and algorithms in Latex.

Sunday, June 26, 2011

Configure 10MBPS Full-Duplex Mode in Ubuntu

If you have your internet provider limiting you Link speed/duplex mode like mine, there is  a workaround available in Ubuntu. Okay, in windows it can be done graphically by

Device Manager > Network Adapter > Properties > Advance > Link Speed/Duplex Mode

But in Ubuntu, its quite different, but easier than Windows you must say! Go to terminal, and simply type the following command using your root password :

sudo mii-tool -F 10baseT-FD

Give other settings like IP address etc. as usual.

Sunday, June 12, 2011

Use terminal directly from Kate

Kate, along with Geany is one of my favorite text editor. One of the good features of Kate is that it open a file in terminal in the files own loacation. For Example, if you have a file in D drive, with following path : Folder1/Folder2/Folder3/File1 then Kate will open it in terminal in the same location say Folder1/Folder2/Folder3/File1 for my given example.

Ubuntu users might find that terminal in disable in Kate. Personally I also face the problem. The reason for the problem is Kate actually build on KDE distribution. Hence if you use the terminal of Kate, you need to install the package konsole in Ubuntu. So, go to your Ubuntu desktop terminal (Application > Accesories > Terminal) and type the following command :

sudo apt-get install konsole

Sunday, June 5, 2011

Use Ubuntu font in Lucid

The all new Ubuntu Font
There is a new font for Ubuntu called 'Ubuntu' from the release versions of 10.10 to onwards.

But if you do not want to upgrade your system like me, then you can use the all new Ubuntu font in your current distribution. I am currently using Ubuntu 10.04 LTS (Lucid Lynx), so I write this based upon Lucid.

Now, lets start! First add the repository for Ubuntu true type fonts and then simply download font package. Here is the command to write in terminal :

sudo add-apt-repository ppa:webupd8team/ubuntu-font-family
sudo apt-get update
sudo apt-get install ttf-ubuntu-font-family

It is time to change your font. Go to System>Preferences>Appearance Settings and modify the Font tab shown bellow:

Thursday, May 12, 2011

Slide Number in Warsaw theme of Latex-Beamer

Recently I have made my first presentation on Latex Beamer. But I have faced problem to give slide number using the theme Warshaw. There is a method to do this by the following command :

%\setbeamertemplate{footline}{Your Footer Text \hfill\insertframenumber/\inserttotalframenumber}

But which actually removes footer graphics. A workaround I found to place slide number in Short Title of the presentation. So, you can use this in your \title command :

\title[My short title \hspace{25mm} \insertframenumber/\inserttotalframenumber]{My Title}

The resultant output :

Wednesday, May 11, 2011

Solve Bangla Text problem in Firefox 4

Whenever I first use Firefox 4, I saw that Bangla texts are coming distorted. According to this link from Mozilla Support team, the problem can be fixed by changing font (Option > Content) in Firefox 4.

But the problem remains still remains as the header of the tabs shows distorted characters. Also, if you write anything in the search text box, letters are also misplaced. Today, I found the workaround of that problem. The problem actually happens if you change your system default font (Vrinda) to anything other like Siyam Rupali or any Unicode Bangla font. This is done when you setup Avro keyboard 5. So, the solution is, click Setup icon > Font fixer in Avro Keyboard 5 and click to Restore as shown in figure.

After restart your PC, problem will be fixed!

Note: I have tested it in Windows Seven. For Windows XP, installing IComplex from OmicronLab might solve the problem.

Monday, May 9, 2011

View Last Modified Date of a Web Page

Couple of days ago, I need to see how old a web page, specially actually when it was modified last. Then I found there is an JavaScript method to do this.

For seeing last modified date of any web page, go to the page and simply write the following to browsers address-bar.


Easy and simple!