This is the schedule of classes at UFL. Here people say I have class at period 1, I'm free at period 6 etc. I always get confused with the mapping between period and their scheduled timings. I decided to put it here, so I can quickly look up.
Period 1 7:25
Period 2 8:30
Period 3 9:35
Period 4 10:40
Period 5 11:45
Period 6 12:50
Period 7 1:55
Period 8 3:00
Period 9 4:05
Period 10 5:10
Period 11 6:15
Saturday, December 12, 2009
Wednesday, December 9, 2009
Google chrome on Linux
Today Google released the chrome browser for Linux. I was desperately waiting for the release. And u know why. I'm a big fan of the porn mode.;) oops !!! the in-cognito mode in chrome. I don't like the private mode in Firefox as it opens a new private session after saving your current session. When you close the private session, ure old session will be restored. Gosh !! its way too complicated. Chrome simply opens an in-cognito window.
Again Thank You Google...
Friday, November 27, 2009
Family restroom
Ever heard of a family restroom. Well seeing is believing
Found it in KOHLS Gainesville during our thanks giving morning walk. Here is an excerpt from wiki about Family Restroom
Another recent development in public toilets is the gender-neutral toilet or "family restroom". These areas contain multiple stalls designed for maximum privacy and a communal washing area for use by both genders. The family restroom is designed so that a parent with a young child of the opposite gender can take the child into the restroom without the concerns associated with single-gender restrooms. Family restrooms have started appearing in newly-built sports stadiums, amusement parks, shopping malls, and major museums.
Saturday, November 21, 2009
F-spot
Hey its not a so called bad word like ****. Its an open source photo management software for Linux. I dont know if **** is the motivation behind naming the software. Anyways i liked the software very much. The best feature to be highlighted is the way F-spot imports photo from your digicam. The import is done in a hierarchical manner. Oops am i getting too techy !!.. Well lets take an example. Suppose you are going for a week long trip to Canada. Everyday you took pit stops at say Montreal, Vancouver, Toronto respectively and took your favorite snaps. After the trip you are back at home. You put the digicam memcard in your laptop and copy the pics. Lets say you want to share only the photos from Vancouver. Well you have to sort the pics with date and select them accordingly. Here comes F-spot. F-spot imports the photos from your memcard and separates them based on the date which you took them.
The created folders will be of the Format
Year/Day
You can navigate to the day where you visited Vancouver. see and share the pics.
You can do all sort of basic photo editing like you do in picassa. With export to web albums feature, You can upload your pics to picassa, flicker etc..
Try F-spot and let me know the feedback....
Friday, November 13, 2009
Wish List
1) Sky diving
2) Drive a Ferrari and Lambhorgini Diablo
3) Wing suit flying
4) To fly a F-35 Lightining
5) To spend a week in International Space station
Well I'm looking for sponsors..Let me know if anyone is interested :)
2) Drive a Ferrari and Lambhorgini Diablo
3) Wing suit flying
4) To fly a F-35 Lightining
5) To spend a week in International Space station
Well I'm looking for sponsors..Let me know if anyone is interested :)
Thursday, November 12, 2009
Automation with expect
For doing project i have to ssh to the Tesla machine in the college as i don't have GPU on my laptop. At times the connection is so slow that its difficult to even type. So i decided to do the coding on my laptop and do the build in the Tesla machine. This needed frequent transfer of files for which i use sftp. Each time invoking sftp and typing in commands is a pain. I wanted to somehow automate this. Googled and came to know about the expect command. The command can be used to automate tasks which needs user interaction. In other words expect talks to other programs using a script. I browsed through the expect man page and I felt writing a script for expect is not that easy for newbies. Well here comes autoexpect script which will generate the script for you.
The expect comes with default installation of most Linux distros but not autoexpect. You can download the required packages from here.
If you are using Ubuntu 9.10 you can use apt
sudo apt-get install expect-dev
The autoexpect script is located in /usr/bin/expect_autoexpect file
Now lets see how we can automate sftp to put a file a.cpp to the some host
girish@MATRIX:~$ expect_autoexpect sftp user@host
autoexpect started, file is script.exp
Connecting to host...
If you are using Ubuntu 9.10 you can use apt
sudo apt-get install expect-dev
The autoexpect script is located in /usr/bin/expect_autoexpect file
Now lets see how we can automate sftp to put a file a.cpp to the some host
girish@MATRIX:~$ expect_autoexpect sftp user@host
autoexpect started, file is script.exp
Connecting to host...
user@host's password:
sftp> mput a.cpp
Uploading a.cpp to /home/user/a.cpp
a.cpp 100%
sftp> bye
autoexpect done, file is script.exp
Now run the script.exp..Bingo!! it automatically does the sftp operation. with 0% interaction from you. Ok wait here is a catch.!! Open the script script.exp. You will be shocked to see the password in pure text smiling at you. This is no way acceptable. Well here is the work around.
Add these lines before spawn in the script
send_user "Enter password: "
stty -echo
expect_user -re "(.*)\n" {set PASSWORD $expect_out(1,string)}
send_user "\n"
sftp> mput a.cpp
Uploading a.cpp to /home/user/a.cpp
a.cpp 100%
sftp> bye
autoexpect done, file is script.exp
Now run the script.exp..Bingo!! it automatically does the sftp operation. with 0% interaction from you. Ok wait here is a catch.!! Open the script script.exp. You will be shocked to see the password in pure text smiling at you. This is no way acceptable. Well here is the work around.
Add these lines before spawn in the script
send_user "Enter password: "
stty -echo
expect_user -re "(.*)\n" {set PASSWORD $expect_out(1,string)}
send_user "\n"
stty echo
When the script is run it asks for your password and store it in the variable $PASSWORD. stty -echo ensures password wont be echoed. Change the line where your password is shown to
send "$PASSWORD\r"
You are good to go. But you have to enter password each time you run the script. If you are too lazy for this and not concerned about security, stick on with the original script. Hopefully expect will add an option to encrypt password in the generated script.
When the script is run it asks for your password and store it in the variable $PASSWORD. stty -echo ensures password wont be echoed. Change the line where your password is shown to
send "$PASSWORD\r"
You are good to go. But you have to enter password each time you run the script. If you are too lazy for this and not concerned about security, stick on with the original script. Hopefully expect will add an option to encrypt password in the generated script.
Tuesday, November 3, 2009
vim:: Restore cursor to file position in previous editing session
Add these lines to .vimrc file.
if has("autocmd")
autocmd BufReadPost *
\ if line("'\"") > 0 && line ("'\"") <= line("$") |
\ exe "normal! g'\"" |
\ endif
endif
You can read more about autocmd here
if has("autocmd")
autocmd BufReadPost *
\ if line("'\"") > 0 && line ("'\"") <= line("$") |
\ exe "normal! g'\"" |
\ endif
endif
You can read more about autocmd here
configuring xterm
Few tips for configuring xterm
Configuring Font:
Run the command xfontsel
Configuring Font:
Run the command xfontsel
This will open an X window where you can configure font parameters.
Copy the values from the dialog box. Create a .Xresources file in the home directory and paste it there.
Sample .Xresources file
XTerm*font: -*-fixed-medium-r-*-*-18-*-*-*-*-*-iso8859-*
XTerm*background: black
XTerm*foreground:white
XTerm*geometry: 80x40
Instead of .Xresources file you can have a custom file say xsettings and run the command xrdb -merge xsettings
Sunday, November 1, 2009
Professor names in CLR exercise questions
Im taking the course Analysis of Algorithms under Dr Arunava Banerjee. The textbook is the standard book Introduction to Algorithms by CLR. Some of the exercise questions in the book refers to professor names. Like Professor ABC claimed theorem XYZ. Give a counter example etc etc. I wondered if they were really professor names. Well as usual googled and found the answer.
All these are some real personalities (not professors) and the question is to make fun of them.
Example:
Page 557 of the book refers to Professor Deaver
The exercise is on strongly connected components, and Michael Deaver used his connections to excess in the Reagan administration.
Firefox addons
One of the reasons i chose to move from IE to Firefox is the availability of tons of addons. These are the addons I use
Tree style tab : This makes the tab bar vertical and the new tabs will be opened as children to the current tab making the tab bar look like a tree. Its very useful for me because I hardly close the browser (unless it crashes). So by the end of day there'll be lotta tabs sitting in the tab bar and its very difficult to find a tab or close a group of tabs. Vertical bar makes this job easier. When the parent tab is closed, u can choose to close children as well. Since the bar is vertical with tabs kept one below the other, there is more room for tab headings which you can read. The bad part is vertical bar takes up some part of the screen. But it doesnt matter if ure using high resolution .
All in one gestures : While browing through web pages ill be mostly using mouse. This addon enables all the keyboard shortcuts with mouse gestures. Takes a while to get used to it. But its funny to use. Not recommended for laptop touch pads as well as non-optical mice.
Down them all : Download accelerator. Integrates very well with conext menus.
You tube video download : Shows up links for normal and HQ video download.
Sage: A simple reader for RSS feeds. Nicely integrates along with the Tree Style tab.
Xmarks: Synchronizes the bookmarks among multiple machines. The best part is addon supports inter browser synchronization. You can even synchronize passwords and open tabs.
Xmarks: Synchronizes the bookmarks among multiple machines. The best part is addon supports inter browser synchronization. You can even synchronize passwords and open tabs.
Let me know if there are any good ones that can be added to the list.
Saturday, October 31, 2009
Morning Glory Clouds
I stole this from APOD. For those of you dont know APOD, its Astronomy picture of the Day. The website is maintained by NASA and Michigan Technological University. Each day they upload an astronomy picture and a short description of the picture. For those space enthusiasts out there its worth checking it everyday atleast u can find something to put in your blog :). Read more about these clouds here.
Karmic Koala
This is the so called scientific name of Ubuntu 9.10. Installed it yesterday. Wow its really fast !!. The shutdown happens in less than 5 seconds and boots up in around 25 seconds on my Toshiba E105-S1602 laptop. Canonical claims its faster than windows 7. Well im waiting for my windows 7 DVD from Toshiba. I will have a better comparison then. Oh the xterm background is white and the font is black by default. I dont know whatz the motivation behind that and i hate terminals with white backgrounds (Well the blog is white background ;). Its not good for mother nature either as white pixels eat up more power ;). Other than that Koala comes with ext4 file system, GRUB 2.0. I have to read about whatz new with these. Im playing around with the bundled softwares. More on this later.
My First blog
I dont know what to write. Lets start with some rubbish. I Googled a lot to find a catchy name for my blog. But i ended up in a stupid name "gi-random" which is very well my own creation. Dont ask me what it means. Of course the first two letters are from my name and the random is to add a bit of techieness.
Subscribe to:
Posts (Atom)