Monday, May 6, 2013

To preserve formatting in HTML

Hi all,

In HTML sometimes you need to preserve whatever formatting you intend to include in your HTML page. Use <pre> your text here </pre> in such situations.

That's it!

Cheers

Tuesday, April 30, 2013

Ubuntu autoremove

Hi all,

The command sudo apt-get autoremove removes the packages that were installed to satisfy dependencies of another package but no longer required.

That's it!

cheers

Friday, February 8, 2013

Draw Arrows in GIMP

Hey guys,

To draw arrows in GIMP, here is what you can do.

  • You can find a plugin at http://registry.gimp.org/node/20269
  • Download the .scm file (arrow.scm)
  • Save the file in the scripts folder of GIMP
    • e.g. In Ubuntu open your home folder, press ctrl+h to show hidden files, open .gimp-2.6/scripts
  • Open GIMP
  • Using Tools->Paths draw a path. i.e. click two points
  • Next, go to Tools->Arrow and press OK
Cheers!

Wednesday, January 23, 2013

Resize text fields in MS Visio drawing along with the group

Hey guys,

If you have also have encountered this problem, here is a one remedy.

1) cut you text field
2) goto Edit->Paste special and paste it as a Picture (enhanced meta file)
3) group it again

Now, you can resize it without a problem.

cheers

Wednesday, December 12, 2012

To keep formatting when copying from Notepad to MS Word

Hey all,

I have always had trouble copy/paste MS Notepad texts to MS Word because usually the formatting goes away. It is important to keep formatting if you are especially copying guitar chords.

Here is what I do to keep the formatting.
  1. Copy the content from webpage to MS Notepad.
  2. Copy the text from MS Notepad to MS Word
  3. Change MS Word font to a fixed length font like Courier New
That's all!

cheers!!!

Wednesday, November 21, 2012

Jump back and forth in Code::Blocks

Hi all,

This is how it is done.

  1. First, you need the BrowseTracker plugin.
    • The BrowseTracker-plugin is part of the contrib-plugins. You can install it using the synaptic package manager (codeblocks-contrib)
  2. Once you have the BrowseTracker plugin you would see "Jump" tab in the "View" menu.
    • now you can use this "Jump" for navigating back and forth.
  3. However, to make things a little bit easier you can use the Keyboard shortcuts plugin to assign shortcuts.
    • Go to "Settings->Editor" in the menu bar.
    • Choose "Keyboard shortcuts"
    • In the Commands: option go to Menu bar->View->Jump and add your keyboard shorcuts
That's it!

Cheers!!!

Monday, November 19, 2012

head and tail for shell scripting

Hey guys,

Do you know the head and tail commands?
For example,

head -10 abc.txt > abc_left.txt
tail -10 abc_txt > abc_right.txt

  • The first command will read the first 10 lines from abc.txt and write them into a abc_left.txt file
  • The second command will read the last 10 lines from abc.txt and write them into a abc_right.txt file

Cool isnt' it?

Cheers!