Some Random Thoughts..
Just a place to put some random thoughts..

Hi,

This is an excerpt from

al-queda
Yours Sincerely,
Hi,

Thanks for reading


Yours Sincerely,
Hi,

Take the MIT Weblog Survey

Yours Sincerely,
Hi,

After trying out their liveCD, I have made a switch to Ubuntu Linux at home as well as on my office desktop. Installation was pretty simple. I was already familiar with the system (thanks to the liveCD) and was right at home. After installing gstreamer-mad package for mp3, I went for totem-xine and all the movie codec. I am very very impressed by their GUI to apt-get, Synaptec.

Ubuntu "looks" a lot better than my earlier FC3 desktop. Fonts look sleek and had unicode support out of the box. For the first time in last ten years I am finally using GUI instead of shell. It just works. GNOME was kind of slow on my office desktop so I installed XFCE and it works fine.

In 1995, I had started with Slackware. After that there was SuSE and then for last 3-4 years I was loyal to Redhat/FEDORA. This is my first Debian based distro and I think I am going to like it a lot.

Yours Sincerely,
Hi,

I am seriously worried that I am suffering for insomnia. Last weekend I was awake for almost 40 hours. I just could not sleep even when I tried very hard (counted sheeps too 12731.. recited A-Z and Z-A for dozens of times.. did 100-1 couple of times.. tables till 23). My only good friend at these times which keeps me from thinking about all this is my guitar.

Here are some stupid chords for a woderful song. The song is called "Kaisi paheli" from the movie Parineeta. Its just a normal C Dm G C progression. Thats how I play it anyway. Leave a comment if you have a better one.

Yours Sincerely,
Hi,

This is dark, sad, funny, scary and sometimes true.



Yours Sincerely,
Hi,

A few days ago, I was talking to one of my friends and he was all praises about . So I decided to give it a try. I downloaded . Burnt the image. Booted into it and now am posting this entry from it.

It took some time to boot but it detected all the devices correctly and loaded all the correct drivers. It logs in by default as a user called, well, ubuntu. Nowhere in the documentation the passwords (ubuntu as well as root) are mentioned. But you can 'sudo' and change the passwords. Rest everything is cool. No MP3 support though. To play MP3s you have to go and modify /etc/apt/sources.list and uncomment following lines :

#deb http://archive.ubuntu.com/ubuntu hoary universe
#deb-src http://archive.ubuntu.com/ubuntu hoary universe

Then you have to run Synaptic package manager (System->Administration) and Reload the package list. Search for gstreamer0.8-mad package and install it. Thats all. You will be able to play mp3s now.

I am planning to use this setup for a week now. Looks like it will pass the test.

Yours Sincerely,
Hi,
I stumbled upon this site that does your . It will try to tell you about your previous life. This is what it has to say about me.

------------------
Your past life diagnosis:

I don't know how you feel about it, but you were male in your last earthly incarnation.

You were born somewhere in the territory of modern North India around the year 1850.

Your profession was that of a medic, surgeon or herbalist.

Your brief psychological profile in your past life:
You had the mind of a scientist, always seeking new explanations. Your environment often misunderstood you, but respected your knowledge.

The lesson that your last past life brought to your present incarnation:
Your lesson is to study, to practice and to use the wisdom that lies within the psychological sciences and in ancient manuscripts. With strong faith and hard work you will reach your real destiny in your present life.

Do you remember now?
------------------

Hmm.. doesn't sound too different from my current life.. does it? ;)

Yours Sincerely,
Hi,
Here is the code to solve su-do-kus. These things are popping up in almost every newspaper here. This program is not at all perfect. If you find any bug or any improvement please leave a comment. It is divided into two part. One that solves it deterministically and other non-deterministically.

I know that deterministic part is not complete. You can still fill some slots deterministically. But current code is adequate to solve all the puzzles only thing is it will inspect more states than necessary.

Worst thing about this program is that you have to hard-code the input and that takes a lot of time. I am planning to create a Qt or GTK frontend for it just to get acquainted with these frontends.

Here is the code:

void print_state(char state[9][9])
{
int x, y;
for(x = 0; x < 9; x++){
for(y = 0; y < 9; y++){
printf("%d ", state[x][y]);
}
printf("\n");
}
printf("\n");
}
int check_possibilities(char state[9][9], char possibilities[9], int x, int y)
{
int ret = 0;
int i, j, sq_x, sq_y;
int temp_poss[9] = {1, 1, 1, 1, 1, 1, 1, 1, 1};
if(state[x][y] || x>8 || y>8)
return -1;

sq_x = (x/3) * 3;
sq_y = (y/3) * 3;

for(i = sq_x; i < sq_x + 3; i++)
for(j = sq_y; j < sq_y + 3; j++)
temp_poss[state[i][j]-1] = 0;

for(i = 0; i < 9; i++){
temp_poss[state[i][y]-1] = 0;
temp_poss[state[x][i]-1] = 0;
}

for(i = 0; i < 9; i++){
if(temp_poss[i]){
possibilities[ret] = i+1;
ret++;
}
}
return ret;
}

/* Returns 1 if found atleast one correct slot. (solve deterministically again)
Returns 0 if no correct spot is found. (solve non-deterministically)
Returns -1 if there is an error, i.e. found a spot with no
possibilities. (backtrack) */
int solve_deterministic(char state[9][9])
{
char poss[9];
int x, y;
int num_pos;
int ret = 0;
for(x = 0; x < 9; x++){
for(y = 0; y < 9; y++){
num_pos = check_possibilities(state, poss, x, y);
if(num_pos == 1){
state[x][y] = poss[0];
ret = 1;
}
if(!num_pos)
return -1;
}
}
return ret;
}

int solved(char state[9][9]){

int x, y;
int done = 1;
for(x = 0; x < 9; x++){
for(y = 0; y < 9; y++){
if(!state[x][y]){
done = 0;
break;
}
}
if(!done) break;
}

if(done)
return 1;

return 0;
}

int solve(char state[9][9])
{
int det_sol = 0;
int x, y, i;
char poss[9];
int num_pos;
int done = 1;
char new_state[9][9];


while(det_sol = solve_deterministic(state)){
if(det_sol == -1)
return 0;
}
if(solved(state)){
print_state(state);
return 1;
}

for(x = 0; x < 9; x++){
for(y = 0; y < 9; y++){
memcpy(new_state, state, sizeof(new_state));
num_pos = check_possibilities(state, poss, x, y);

for(i = 0; i < num_pos; i++){
new_state[x][y] = poss[i];
if(solve(new_state) == 1){
return 1;
}
new_state[x][y] = 0;
}
}
}

return 0;
}
int main()
{
char init_state[9][9] = {0, 0, 6, 0, 5, 0, 0, 8, 0,
5, 7, 0, 3, 0, 2, 0, 6, 0,
0, 0, 2, 4, 0, 0, 3, 0, 9,

0, 9, 0, 5, 0, 4, 1, 3, 0,
7, 0, 0, 0, 0, 0, 0, 0, 4,
0, 4, 1, 7, 0, 8, 0, 2, 0,

9, 0, 3, 0, 0, 5, 2, 0, 0,
0, 1, 0, 2, 0, 9, 0, 4, 5,
0, 5, 0, 0, 6, 0, 9, 0, 0};

print_state(init_state);
if(solve(init_state)){
printf("solved\n");
return 0;
} else {
printf("cannot solve\n");
return 1;
}
}


-------------------------------------------------------------------
Yours Sincerely,
Hi,


I have heard that before ;)


Yours Sincerely,
Hi,

Here is my 2 cents (0.2 rather or even less than that) to online-guitar-world.

--------------------------------------------------------
Song : Jeene ke Ishaare mil gaye
Movie : Phil Milenge

The starting riff of the song goes something like this.
I dont know if this is in the correct key because I was not
listening to the song when I did this.

E |------------------------------------------
B |----5--5--5-h7--5-----5--5----------------
G |-------------------7--------6-p4-----4----
D |-7--------------------------------7-----7-
A |------------------------------------------
E |------------------------------------------


E |---------------------------
B |----5--5--5-h7--5-----5----
G |-------------------7-------
D |-7-------------------------
A |---------------------------
E |---------------------------

Simple one. But sounds good.
--------------------------------------------------------

This was tabbed using . Its a nice and simple thing for such simple tasks. I liked it.

Yours Sincerely,
Hi,

Just got connection installed at home. I wanted to do this in Pune as well as in Bangalore but in both the places I was living in the area where they could not provide the connection.

The service was good. Day before yesterday I contacted their helpline person. Yesterday their sales representative came to my place. I paid the initial installation charges and today I got the connection working. Pretty good.

I downloaded a couple of mp3 and found out that speed is good. Its a 256 Kbps line and certainly performed at that speed.

Tonight I will browse.

Yours Sincerely,
Hi,

I came across this URL shows you . Pretty cool stuff. First I thought there is some trick there and this would never work. Went home yesterday and tried it. It works but I need more practice. Soon I will master it and my wardrobe will look a little better.

Yours Sincerely,
Hi,

Yesterday, for lunch, some colleagues took me to a place called . The food was good and the waiter was very user-friendly with context sensitive help. Once he almost yelled at one of my friends for drinking too much water during the lunch. He told him to drink water after an hour. Good for health, you see. He told what are the ingredients of the item he was serving and all such info. In the evening when I asked my friends from Pune (who are now in Hyd) about the place and they said they have never heard of it. Looks like a famous place among the locals. I liked it.

Yours Sincerely,
Hi,

This is a nice to have thing. Its a DVD player + speakers + projector. Home theater system in 7.8 lbs. Its called . Nice.

Yours Sincerely,
Hi,

Blogger recently added support to upload images on the blog. They have a nice article that explains how to do it. However they missed on one thing. Whenever I tried to upload an image it just showed me blank window and that's it. My first intuition was to blame firefox popup blocker and I was (as always) right about it.

Just allow popups from "photos.blogger.com" and you are all set. While at it, you might want to allow popups from "www.blogger.com" and "blogger.com" as well. This will enable the spell checks. Maybe I should use that feature more often. :)

Yours Sincerely,
Hi,



Yours Sincerely,
Hi,

Almost a year ago a friend had mentioned this novel called by F.ScottFitzgerald. I had bought this book then from a useb-book store. It had been there in my bookshelf since then and suddenly came infront of me a week back.

I finished it on Friday night. But I liked the book so much that I did not want it to finish. After reading this book I did not want to read anything else for some time. I don't want to discuss the book and write a review or something like that. Somehow such a postmortem of the experience will take away the poignancy. This experience is certainly very private.


Yours Sincerely,
Are they serious?
Hi,

This is an excerpt from

al-queda
Yours Sincerely,

posted by rumplestiltskin @ 10:35 am 0 comments

Blog-googled
Hi,

Thanks for reading


Yours Sincerely,

posted by rumplestiltskin @ 12:10 pm 0 comments

Towards humanity
Hi,

Take the MIT Weblog Survey

Yours Sincerely,

posted by rumplestiltskin @ 5:51 pm 0 comments

Ubuntu experience
Hi,

After trying out their liveCD, I have made a switch to Ubuntu Linux at home as well as on my office desktop. Installation was pretty simple. I was already familiar with the system (thanks to the liveCD) and was right at home. After installing gstreamer-mad package for mp3, I went for totem-xine and all the movie codec. I am very very impressed by their GUI to apt-get, Synaptec.

Ubuntu "looks" a lot better than my earlier FC3 desktop. Fonts look sleek and had unicode support out of the box. For the first time in last ten years I am finally using GUI instead of shell. It just works. GNOME was kind of slow on my office desktop so I installed XFCE and it works fine.

In 1995, I had started with Slackware. After that there was SuSE and then for last 3-4 years I was loyal to Redhat/FEDORA. This is my first Debian based distro and I think I am going to like it a lot.

Yours Sincerely,

posted by rumplestiltskin @ 5:25 pm 0 comments

Insomnia
Hi,

I am seriously worried that I am suffering for insomnia. Last weekend I was awake for almost 40 hours. I just could not sleep even when I tried very hard (counted sheeps too 12731.. recited A-Z and Z-A for dozens of times.. did 100-1 couple of times.. tables till 23). My only good friend at these times which keeps me from thinking about all this is my guitar.

Here are some stupid chords for a woderful song. The song is called "Kaisi paheli" from the movie Parineeta. Its just a normal C Dm G C progression. Thats how I play it anyway. Leave a comment if you have a better one.

Yours Sincerely,

posted by rumplestiltskin @ 11:24 am 1 comments

Ouch!
Hi,

This is dark, sad, funny, scary and sometimes true.



Yours Sincerely,

posted by rumplestiltskin @ 11:04 am 0 comments

Experiment
Hi,

A few days ago, I was talking to one of my friends and he was all praises about . So I decided to give it a try. I downloaded . Burnt the image. Booted into it and now am posting this entry from it.

It took some time to boot but it detected all the devices correctly and loaded all the correct drivers. It logs in by default as a user called, well, ubuntu. Nowhere in the documentation the passwords (ubuntu as well as root) are mentioned. But you can 'sudo' and change the passwords. Rest everything is cool. No MP3 support though. To play MP3s you have to go and modify /etc/apt/sources.list and uncomment following lines :

#deb http://archive.ubuntu.com/ubuntu hoary universe
#deb-src http://archive.ubuntu.com/ubuntu hoary universe

Then you have to run Synaptic package manager (System->Administration) and Reload the package list. Search for gstreamer0.8-mad package and install it. Thats all. You will be able to play mp3s now.

I am planning to use this setup for a week now. Looks like it will pass the test.

Yours Sincerely,

posted by rumplestiltskin @ 3:38 pm 0 comments

I remember!
Hi,
I stumbled upon this site that does your . It will try to tell you about your previous life. This is what it has to say about me.

------------------
Your past life diagnosis:

I don't know how you feel about it, but you were male in your last earthly incarnation.

You were born somewhere in the territory of modern North India around the year 1850.

Your profession was that of a medic, surgeon or herbalist.

Your brief psychological profile in your past life:
You had the mind of a scientist, always seeking new explanations. Your environment often misunderstood you, but respected your knowledge.

The lesson that your last past life brought to your present incarnation:
Your lesson is to study, to practice and to use the wisdom that lies within the psychological sciences and in ancient manuscripts. With strong faith and hard work you will reach your real destiny in your present life.

Do you remember now?
------------------

Hmm.. doesn't sound too different from my current life.. does it? ;)

Yours Sincerely,

posted by rumplestiltskin @ 11:36 pm 0 comments

Su-Do-Ku code
Hi,
Here is the code to solve su-do-kus. These things are popping up in almost every newspaper here. This program is not at all perfect. If you find any bug or any improvement please leave a comment. It is divided into two part. One that solves it deterministically and other non-deterministically.

I know that deterministic part is not complete. You can still fill some slots deterministically. But current code is adequate to solve all the puzzles only thing is it will inspect more states than necessary.

Worst thing about this program is that you have to hard-code the input and that takes a lot of time. I am planning to create a Qt or GTK frontend for it just to get acquainted with these frontends.

Here is the code:

void print_state(char state[9][9])
{
int x, y;
for(x = 0; x < 9; x++){
for(y = 0; y < 9; y++){
printf("%d ", state[x][y]);
}
printf("\n");
}
printf("\n");
}
int check_possibilities(char state[9][9], char possibilities[9], int x, int y)
{
int ret = 0;
int i, j, sq_x, sq_y;
int temp_poss[9] = {1, 1, 1, 1, 1, 1, 1, 1, 1};
if(state[x][y] || x>8 || y>8)
return -1;

sq_x = (x/3) * 3;
sq_y = (y/3) * 3;

for(i = sq_x; i < sq_x + 3; i++)
for(j = sq_y; j < sq_y + 3; j++)
temp_poss[state[i][j]-1] = 0;

for(i = 0; i < 9; i++){
temp_poss[state[i][y]-1] = 0;
temp_poss[state[x][i]-1] = 0;
}

for(i = 0; i < 9; i++){
if(temp_poss[i]){
possibilities[ret] = i+1;
ret++;
}
}
return ret;
}

/* Returns 1 if found atleast one correct slot. (solve deterministically again)
Returns 0 if no correct spot is found. (solve non-deterministically)
Returns -1 if there is an error, i.e. found a spot with no
possibilities. (backtrack) */
int solve_deterministic(char state[9][9])
{
char poss[9];
int x, y;
int num_pos;
int ret = 0;
for(x = 0; x < 9; x++){
for(y = 0; y < 9; y++){
num_pos = check_possibilities(state, poss, x, y);
if(num_pos == 1){
state[x][y] = poss[0];
ret = 1;
}
if(!num_pos)
return -1;
}
}
return ret;
}

int solved(char state[9][9]){

int x, y;
int done = 1;
for(x = 0; x < 9; x++){
for(y = 0; y < 9; y++){
if(!state[x][y]){
done = 0;
break;
}
}
if(!done) break;
}

if(done)
return 1;

return 0;
}

int solve(char state[9][9])
{
int det_sol = 0;
int x, y, i;
char poss[9];
int num_pos;
int done = 1;
char new_state[9][9];


while(det_sol = solve_deterministic(state)){
if(det_sol == -1)
return 0;
}
if(solved(state)){
print_state(state);
return 1;
}

for(x = 0; x < 9; x++){
for(y = 0; y < 9; y++){
memcpy(new_state, state, sizeof(new_state));
num_pos = check_possibilities(state, poss, x, y);

for(i = 0; i < num_pos; i++){
new_state[x][y] = poss[i];
if(solve(new_state) == 1){
return 1;
}
new_state[x][y] = 0;
}
}
}

return 0;
}
int main()
{
char init_state[9][9] = {0, 0, 6, 0, 5, 0, 0, 8, 0,
5, 7, 0, 3, 0, 2, 0, 6, 0,
0, 0, 2, 4, 0, 0, 3, 0, 9,

0, 9, 0, 5, 0, 4, 1, 3, 0,
7, 0, 0, 0, 0, 0, 0, 0, 4,
0, 4, 1, 7, 0, 8, 0, 2, 0,

9, 0, 3, 0, 0, 5, 2, 0, 0,
0, 1, 0, 2, 0, 9, 0, 4, 5,
0, 5, 0, 0, 6, 0, 9, 0, 0};

print_state(init_state);
if(solve(init_state)){
printf("solved\n");
return 0;
} else {
printf("cannot solve\n");
return 1;
}
}


-------------------------------------------------------------------
Yours Sincerely,

posted by rumplestiltskin @ 2:40 pm 0 comments

Deja Vu
Hi,


I have heard that before ;)


Yours Sincerely,

posted by rumplestiltskin @ 11:31 am 1 comments

Guitar Time
Hi,

Here is my 2 cents (0.2 rather or even less than that) to online-guitar-world.

--------------------------------------------------------
Song : Jeene ke Ishaare mil gaye
Movie : Phil Milenge

The starting riff of the song goes something like this.
I dont know if this is in the correct key because I was not
listening to the song when I did this.

E |------------------------------------------
B |----5--5--5-h7--5-----5--5----------------
G |-------------------7--------6-p4-----4----
D |-7--------------------------------7-----7-
A |------------------------------------------
E |------------------------------------------


E |---------------------------
B |----5--5--5-h7--5-----5----
G |-------------------7-------
D |-7-------------------------
A |---------------------------
E |---------------------------

Simple one. But sounds good.
--------------------------------------------------------

This was tabbed using . Its a nice and simple thing for such simple tasks. I liked it.

Yours Sincerely,

posted by rumplestiltskin @ 10:39 pm 0 comments

Information SuperHighway
Hi,

Just got connection installed at home. I wanted to do this in Pune as well as in Bangalore but in both the places I was living in the area where they could not provide the connection.

The service was good. Day before yesterday I contacted their helpline person. Yesterday their sales representative came to my place. I paid the initial installation charges and today I got the connection working. Pretty good.

I downloaded a couple of mp3 and found out that speed is good. Its a 256 Kbps line and certainly performed at that speed.

Tonight I will browse.

Yours Sincerely,

posted by rumplestiltskin @ 4:58 pm 0 comments

Amazing
Hi,

I came across this URL shows you . Pretty cool stuff. First I thought there is some trick there and this would never work. Went home yesterday and tried it. It works but I need more practice. Soon I will master it and my wardrobe will look a little better.

Yours Sincerely,

posted by rumplestiltskin @ 10:35 am 0 comments

Hungry?
Hi,

Yesterday, for lunch, some colleagues took me to a place called . The food was good and the waiter was very user-friendly with context sensitive help. Once he almost yelled at one of my friends for drinking too much water during the lunch. He told him to drink water after an hour. Good for health, you see. He told what are the ingredients of the item he was serving and all such info. In the evening when I asked my friends from Pune (who are now in Hyd) about the place and they said they have never heard of it. Looks like a famous place among the locals. I liked it.

Yours Sincerely,

posted by rumplestiltskin @ 10:28 am 0 comments

If I had money..
Hi,

This is a nice to have thing. Its a DVD player + speakers + projector. Home theater system in 7.8 lbs. Its called . Nice.

Yours Sincerely,

posted by rumplestiltskin @ 4:22 pm 0 comments

Blogger and Firefox
Hi,

Blogger recently added support to upload images on the blog. They have a nice article that explains how to do it. However they missed on one thing. Whenever I tried to upload an image it just showed me blank window and that's it. My first intuition was to blame firefox popup blocker and I was (as always) right about it.

Just allow popups from "photos.blogger.com" and you are all set. While at it, you might want to allow popups from "www.blogger.com" and "blogger.com" as well. This will enable the spell checks. Maybe I should use that feature more often. :)

Yours Sincerely,

posted by rumplestiltskin @ 11:50 am 0 comments

I believe I can fly...
Hi,



Yours Sincerely,

posted by rumplestiltskin @ 11:44 am 0 comments

Gatsby
Hi,

Almost a year ago a friend had mentioned this novel called by F.ScottFitzgerald. I had bought this book then from a useb-book store. It had been there in my bookshelf since then and suddenly came infront of me a week back.

I finished it on Friday night. But I liked the book so much that I did not want it to finish. After reading this book I did not want to read anything else for some time. I don't want to discuss the book and write a review or something like that. Somehow such a postmortem of the experience will take away the poignancy. This experience is certainly very private.


Yours Sincerely,

posted by rumplestiltskin @ 2:32 pm 0 comments