photo of cookyjar

A Biker's Trail Blog and more ...

Thoughts from the depth of a weird nerdy mind

Subscribe to RSS feed

Sticky post

My injury recovery journal

, ,

I mentioned in my last post that I have been deprived of my favorite activity 'biking' for last six months now because of a freak back injury. I have been undergoing intensive physical therapy regimen for last 3 months now (almost). My physical therapist Leslie J. Lear suggested I start biking once again. Starting this week I am going to maintain my recovery journal that will keep track of my biking progress until full recovery where I feel comfortable biking 45+ miles non stop like I used to do.

Read more...

Sticky post

A new craze Man-Booker prize

I have found myself a new craze bigsmile I decided few months ago that I will try to read as many Booker award winning titles as I could possibly come across in my public library. I have been a member since 5 years now but my library card saw not much action until recently lol Well ... Here I will maintain a list of all the books that I have read as part of my new found craze!

Title Winning Year Author
The White Tiger 2008 Arvind Adiga
The Gathering 2007 Anne Enright
Life of Pi 2002 Yann Martel
The Elected Member 1970 Bernice Rubens
Hotel du Lac 1984 Anita Brookner
Oscar and Lucinda 1988 Peter Carey
Disgrace 1999 J M Coetzee
Vernon God Little 2003 DBC Pierre
The Remains of the Day 1989 Kazuo Ishiguro

spicy & delicious dum-aloo in under 20 minutes

, , ,

Its been a while since I last blogged here! So today I decided I will post something good! I was getting a bit hungry and therefore decided to make something really tasteful but something that can be cooked really fast as well. I decided on adding my own twist to a traditional Indian dish 'dum-aloo' that I made in under 20 minutes. Hopefully you will like my recipe.

Read more...

First Attempt at home made pizza

Today I tried my hands on making home made pizza. I bought a very good Pizza Stone this memorial day sale. I even made the pizza dough myself (well actually my bread machine helped me a lot bigsmile).
The pizza stone was 15" in diameter so I made an almost large size pizza. I flavored the dough using some indian spices and Italian seasoning mix.

Read more...

Importing csv data file in SQLite3

, , ,

Here I will tell an easy way to import a CSV data file as database in SQLite3.

For the sake of argument suppose you have a comma separated database file called "data.csv". Further suppose you want your SQLite3 database to be called "data.db". Before you begin there is a little quirk that you must take care of. SQLite3 csv import works when there are no double quotes character in the input file.

You can easily fix that using this simple UNIX command:
> cat data.csv | tr -d \" > out.csv

Once you have performed this cleanup step, we can proceed. We will assume you know the database schema that your csv file represents. Again for illustration, say your CSV file contains data in the format: Name,address,salary. And hence your corresponding SQL Table will have three columns: Name of type STRING, address of type STRING and salary of type INTEGER. These may vary depending on how you want to process your query results.

These are the steps that would create a SQLite3 compatible database from your original csv data file:
> sqlite3 data.db
SQLite version 3.5.9
Enter ".help" for instructions
sqlite> CREATE TABLE data (name STRING, address STRING, salary INTEGER);
sqlite> .mode csv
sqlite> .import out.csv data
sqlite> .quit
>

Now you can see that there is a new database file created called "data.db". This is SQLite3 compatible database that you can now process and query from within several scripting languages including PHP. Note that I have used the cleaned up version of the csv file instead of the original csv file.

This database will have the table you created with table-name "data" and column names "name", "address", "salary". You can issue standard SQL queries against this database in SQLite3.

You can browse and query your newly created database by using this handy TCL/TK tool called TkSQLite. You can get it for free at: TkSQLite site. Enjoy!

Creating your own PHP visitor tracking page using Google Maps API

, , ,

I did a lot of research on how to generate your own visitor traffic stats instead of tons of ads laden free tracking services. I am going to present a cool PHP script that would allow you to do just that, as a bonus I will also provide the PHP script that would generate the geographical layout of your last 100 visitors using Google Maps API.

Read more...

Honeymoon Island State Park trip

, ,

This past Sunday [Easter-Sunday] I was frigging bored out of my mind! I called one of my good friends Maria to go to a beach to kill time, she agreed and we went to Honeymoon Island state park to enjoy its beautiful rocky beach and awesome sunset!

Read more...

Hawaiian Experiences

, , , ...

I was lucky enough to go to Hawaii on a full expenses paid trip for an academic conference. Going from the east coast (US) to Hawaii could be very tiring. I had to take a journey that included 13+ hours flying time (one way) not including the airport layover time. But all was worth the beautiful island paradise of Hawaii!

Read more...

My new camera

, ,

I recently bought a new camera. During my recent India trip, I disposed off my old camera. And with my pending Hawaii trip, I had to buy one soon. Money has been a severe constraints these days as I have been living on a reduced graduate student stipend mad

Read more...

Las Vegas & Grand Canyon Trip Summery

, ,

July 14 - 17 2008 I was in Las Vegas for my conference. I took 1 day off too go on a day tour to Grand Canyon. It is the most gorgeous crack in the earth created by Colorado river over a period of many million years. I also made a video of the famous Bellagio water show!

Read more...

February 2012
M T W T F S S
January 2012March 2012
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29