Wednesday, 10 September 2014

Genius Child by Langston Hughes

This is a song for the genius child.
Sing it softly, for the song is wild.
Sing it softly as ever you can-
Lest the song get out of hand.

Nobody loves a genius child.

Can you love an eagle,
Tame or wild?
Can you love an eagle,
Wild or tame?
Can you love a monster
Of frightening name?

Nobody loves a genius child.
Kill him - and let his soul run wild.

-Langston Hughes

Monday, 8 September 2014

Solution : System time conflict between ubuntu and windows.

1. Open terminal

2. type the command
~$ gksudo gedit /etc/default/rcS

3. In the gedit window, edit the BIOS clock section to what is below.
 # assume that the BIOS clock is set to UTC time (recommended)
UTC=no
4. Save and exit.
Source. 

Monday, 18 August 2014

Closing all scilab figures with one command

I observed that to close all figure windows in scilab, we can't use
>> close all
like in MATLAB.
After looking around, got the equivalent command in scilab. It is,
>> xdel(winsid())

peace.

Thursday, 14 August 2014

Apostrophe in latex

If you want use apostrophe in your document and it isnt showing in the built pdf file, include fontenc package.

\usepackage{fontenc}

Sunday, 10 August 2014

Running a python script from the python shell

To run a script from the python shell or the python prompt, use the command

>> execfile('filename.py')

To clear the screen, do the following,
>>import os
>>os.system("clear")

These are for systems running Ubuntu. Not sure if this will work for other operating systems.