Well, Talentica readers, your first guess will be wrong as this is not about our funky, new cool office but but but, your second guess should and must be right..Yes!!
its about India's dream 1L car - Tata Nano.
Kahani me thoda twist to hona hi chahiye...yach sathi kela hota ha attahas...
Today we went to croma showroom at Nana-space in aundh. Many spaces here and there...because Nano is small but quite spacious inside and I wanted to make title interesting for some peope.
I didnt get chance to drive but just experience of seating in car was good. I was quite impressed. "Go Fida" punch line should be taken away from Ford cars and should be awarded to Nano.
Tata engineers has done wonders, Congrats Ratan Tata, the visionary and his Nano team. Just waiting for the day, when Tata's avails this Dream for test drive and let our dream come true to drive this car.
Saturday, April 11, 2009
Sunday, March 22, 2009
The great gatsby
Gatsby believed in the green light, the orgastic future that year by year recedes before us. It eluded us then, but that's no matter -
tomorrow we will run faster, stretch out our arms farther. . . .
And then one fine morning - So we beat on, boats against the current, borne back ceaselessly into the past.
tomorrow we will run faster, stretch out our arms farther. . . .
And then one fine morning - So we beat on, boats against the current, borne back ceaselessly into the past.
Thursday, February 26, 2009
Friday, January 30, 2009
Monday, January 19, 2009
mysql - copying data to other db using sqlyog
Sqlyog is pretty good client to access mysql and doing various operation on MySQL. I wanted to make copy of full DB for backup purpose. I took dump using sqlyog (structure+ data). then I was going to create new DB by running this script but noticed
functionality of copying db to other DB in sqlyog. I thought that would be safe. but it turned out that it was taking lots of time. so I suggest its better to copy data using taking dump of db and run those script to create fresh db. wat do you think?
functionality of copying db to other DB in sqlyog. I thought that would be safe. but it turned out that it was taking lots of time. so I suggest its better to copy data using taking dump of db and run those script to create fresh db. wat do you think?
Tuesday, January 13, 2009
Google Chart api issues
While working out graphs with Google chart api, We couldnt find ways render some of things properly, we used workaround in some cases.
1) Legends positioning
We couldnt find a parameter using which we can specify distance between legend and x-axis.

workarounds we used:
rendering legends using html
2) Legends ordering
Google is not rendering the legends as per order we give in url. looks like it orders
them alphabetically.

workaround we used:
rendering legends using html
3) Labeling issues
2 issues here
a) when bar is of full lenth, label overlaps bar
b) how to specify space between label and bar.

No workaround
4) length of Y axis
y-axis in not inheriting length of graph.
workaround we used:
use different margins as per number of bars. chbh=25,10,30
using 300 instead of 30 works.
1) Legends positioning
We couldnt find a parameter using which we can specify distance between legend and x-axis.
workarounds we used:
rendering legends using html
2) Legends ordering
Google is not rendering the legends as per order we give in url. looks like it orders
them alphabetically.
workaround we used:
rendering legends using html
3) Labeling issues
2 issues here
a) when bar is of full lenth, label overlaps bar
b) how to specify space between label and bar.
No workaround
4) length of Y axis
y-axis in not inheriting length of graph.
workaround we used:
use different margins as per number of bars. chbh=25,10,30
using 300 instead of 30 works.
Sunday, January 11, 2009
Configuring virtual host on windows in Apache 2
I am running two different apps on my localhost. one is in python and other in php.
I also want to learn how to configure virtual host so that 2 different domain names can point to same ip. it turned out to be quite simple. at first it was not working
because I was writing extra slash at end of documentroot, instead of "C:\work\SandipProject1\trunk\Website", I was "C:\work\SandipProject1\trunk\Website\" and getting permission denied.
in your httpd conf,
#
# Use name-based virtual hosting.
#
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot C:\work\SandipProject1
ServerName sandipProject1.com
</VirtualHost>
<VirtualHost *:80>
DocumentRoot C:\work\sandipProject2
ServerName sandipProject2.com
</VirtualHost>
<Directory C:\work\SandipProject1\>
Order Deny,Allow
Allow from all
SetHandler mod_python
PythonHandler index
OPTIONS -Indexes
</Directory>
<Directory C:\work\sandipProject2\>
Order Deny,Allow
Allow from all
DirectoryIndex index.php
</Directory>
I also want to learn how to configure virtual host so that 2 different domain names can point to same ip. it turned out to be quite simple. at first it was not working
because I was writing extra slash at end of documentroot, instead of "C:\work\SandipProject1\trunk\Website", I was "C:\work\SandipProject1\trunk\Website\" and getting permission denied.
in your httpd conf,
#
# Use name-based virtual hosting.
#
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot C:\work\SandipProject1
ServerName sandipProject1.com
</VirtualHost>
<VirtualHost *:80>
DocumentRoot C:\work\sandipProject2
ServerName sandipProject2.com
</VirtualHost>
<Directory C:\work\SandipProject1\>
Order Deny,Allow
Allow from all
SetHandler mod_python
PythonHandler index
OPTIONS -Indexes
</Directory>
<Directory C:\work\sandipProject2\>
Order Deny,Allow
Allow from all
DirectoryIndex index.php
</Directory>
Tuesday, January 06, 2009
New year change
changed punch line of my blog which I wrote on last new year. which was
Journey
till I cease the walk of life.
Journey
till I cease the walk of life.
Monday, January 05, 2009
excellent and simlpe way to format html email
and it works beautifully across ms outlook, outlook express and gmail.
actually I was having problem in formatting email correct way. original code used inline css styles which was not working, so I changed styles but didnt work so I changed content-transfer-encoding from quoted-printable to 7bit and as always in programmers life, this hack worked for my outlook express. but failed to work on gmail. so on the way to give up, i found following page and tried the way they have asked to format email and it worked!!! woohoo..
see examples inside it
http://www.w3.org/TR/1998/NOTE-HTMLThreading-0105#Appendix%20B
one example for reference
From: Yogi Beera
To: Boo Booz
Message-ID: FD1D3K3KASDDFD17C00805FD459C86BB2BF@POPDOG
Subject: Joke
MIME-Version: 1.0
Content-Type: text/html;
<HTML>
<HEAD>
<STYLE TYPE="text/css">
<!--
.yogi--picnic-com {
color: black;
font-weight: bold;
font-style: normal;
text-decoration: none;
}
-->
</STYLE>
</head>
<BODY bgcolor="#FFFFFF">
<P CLASS=yogi--picnic-com>Konck Knock</p>
</body>
</html>
enjoy!!
actually I was having problem in formatting email correct way. original code used inline css styles which was not working, so I changed styles but didnt work so I changed content-transfer-encoding from quoted-printable to 7bit and as always in programmers life, this hack worked for my outlook express. but failed to work on gmail. so on the way to give up, i found following page and tried the way they have asked to format email and it worked!!! woohoo..
see examples inside it
http://www.w3.org/TR/1998/NOTE-HTMLThreading-0105#Appendix%20B
one example for reference
From: Yogi Beera
To: Boo Booz
Message-ID: FD1D3K3KASDDFD17C00805FD459C86BB2BF@POPDOG
Subject: Joke
MIME-Version: 1.0
Content-Type: text/html;
<HTML>
<HEAD>
<STYLE TYPE="text/css">
<!--
.yogi--picnic-com {
color: black;
font-weight: bold;
font-style: normal;
text-decoration: none;
}
-->
</STYLE>
</head>
<BODY bgcolor="#FFFFFF">
<P CLASS=yogi--picnic-com>Konck Knock</p>
</body>
</html>
enjoy!!
jquery tooltip bug - IE7 bigger fonts - hack
if you are using jquery tooltip plugin to show pop up. you will notice that on IE7, its showing much bigger font size. reason for this internally its using h3 tag which is not changed if you set font-size of overall div on IE7. so you need to explicitly overwrite the h3 style and set the smaller font-size, it works beautifully for both firefox and ie7.
actually this solution is given on following page but its at bottom. one might miss this so trying to give it more focus through my blog.
http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/
by
Monkeytail
31. January 2008 |23:37 @ Jorn
following is the code.
#tooltip {
font-size:10px;
}
add this in your css
#tooltip.pretty h3 {
font-size:8pt;
}
btw above mentioned code didnt worked for me. i took out pretty and it worked well.
#tooltip h3 {
font-size:8pt;
}
I added font-weight:normal to make it look better. so it becomes
#tooltip h3 {
font-size:8pt;
font-weight:normal;
}
Thanks
actually this solution is given on following page but its at bottom. one might miss this so trying to give it more focus through my blog.
http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/
by
Monkeytail
31. January 2008 |23:37 @ Jorn
following is the code.
#tooltip {
font-size:10px;
}
add this in your css
#tooltip.pretty h3 {
font-size:8pt;
}
btw above mentioned code didnt worked for me. i took out pretty and it worked well.
#tooltip h3 {
font-size:8pt;
}
I added font-weight:normal to make it look better. so it becomes
#tooltip h3 {
font-size:8pt;
font-weight:normal;
}
Thanks
Tuesday, December 30, 2008
HSBC credit card gotcha
I have a HSBC gold credit card which I didnt use a single time. I got it as free card.
yday I got a credit card statement asking me to pay 2247, first shocked to see bill as I didnt do any shopping using this card. splitup was 2000 rs membership card fees and
247 as service tax on it. so I thought yday I will pay and will stop using this card. also felt cheated by the hsbc.
so discussed this with friends today but they said you just call up customer care and they will waive off the charges. and also mentioned that HSBC people add to your bill for various charges but you can waive it off by calling customer care. I called up customer care and they just waived it off.
so in case, you are having same problem, you dont need to pay it. just call customer care and waive it off.
yday I got a credit card statement asking me to pay 2247, first shocked to see bill as I didnt do any shopping using this card. splitup was 2000 rs membership card fees and
247 as service tax on it. so I thought yday I will pay and will stop using this card. also felt cheated by the hsbc.
so discussed this with friends today but they said you just call up customer care and they will waive off the charges. and also mentioned that HSBC people add to your bill for various charges but you can waive it off by calling customer care. I called up customer care and they just waived it off.
so in case, you are having same problem, you dont need to pay it. just call customer care and waive it off.
The Zen and art of motorcycle maintenance - quotes
Blind Alley, though, If someone's ungrateful and you tell him he's ungrateful, okay,
you've called him a name. You haven't solved anything.
you've called him a name. You haven't solved anything.
Sunday, December 28, 2008
Scripts to restart apache/mysql in windows
Currently I am working on 2 projects. both projects involves Apache and Mysql. but configuration used for each project is different and one project is using WAMP. So I was needed to start and stop services to switch between projects I am working. it was becoming quite tedious. so I tried to write a scripts to restart services whenever I was going to switch between projects. I am linux guy so like writing scripts but was new to writing script for restarting services on windows.
following are the scripts to start the services..
A.bat
B.bat
I first started using actually executables from bin directories from respective apps. but It was not working for stopping the service.
I used pause because didnt find sleep command on windows. these scripts I wrote using whatever help I got from windows help service. as I was working from home without internet.
if sc start/stop says service is not installed then you can install the service.
sc install servicename.
you have any better ways of doing this things let me know.
following are the scripts to start the services..
A.bat
sc stop Apache2
sc stop MySQL
pause
sc start wampapache
sc start wampmysqld
B.bat
sc stop wampapache
sc stop wampmysqld
pause
sc start Apache2
sc start MySQL
I first started using actually executables from bin directories from respective apps. but It was not working for stopping the service.
I used pause because didnt find sleep command on windows. these scripts I wrote using whatever help I got from windows help service. as I was working from home without internet.
if sc start/stop says service is not installed then you can install the service.
sc install servicename.
you have any better ways of doing this things let me know.
konneyy - who is this?
I turned my head with surprize...wanting to know from where question came.
"konneyy?" question in high pitch voice, repeated with mischivous smile on his face..
"Hrithik Roshan" I replied..
"Hitik roan" he repeated excitedly and kept repeating with playful smile.
"He" in this story is my 1 and 10 month year old nephew. I was quite surprized because he barely can talk now. and He wanted to know who is the smart guy on Coffee with Karan show. Amazing!!!
"konneyy?" question in high pitch voice, repeated with mischivous smile on his face..
"Hrithik Roshan" I replied..
"Hitik roan" he repeated excitedly and kept repeating with playful smile.
"He" in this story is my 1 and 10 month year old nephew. I was quite surprized because he barely can talk now. and He wanted to know who is the smart guy on Coffee with Karan show. Amazing!!!
Friday, December 26, 2008
cant connect to mysql from client on remote machine, mysql running on aws
error messages you can get are
Error 2003: Can't Connect to MySQL server on 'hostname'
1) enable the firewall for amazon aws ec2 instance.
ec2-authorize default -p 3306
3306 is default port on which mysql runs. If you are running mysql on different port like 3307 or 3309 enable that.
2) in mysql/my.cnf which is mysql config file.
comment out following line which allows connection only from localhost.
bind_address=127.0.0.1
3) log on to mysql with root from local machine
GRANT ALL ON *.* TO 'user'@'ipadd' identified by 'pwd';
ipadd is ip address of machine from which you are trying to connect to mysql server
user and password are auth info.
useful links
http://forge.mysql.com/wiki/Error2003-CantConnectToMySQLServer
Error 2003: Can't Connect to MySQL server on 'hostname'
1) enable the firewall for amazon aws ec2 instance.
ec2-authorize default -p 3306
3306 is default port on which mysql runs. If you are running mysql on different port like 3307 or 3309 enable that.
2) in mysql/my.cnf which is mysql config file.
comment out following line which allows connection only from localhost.
bind_address=127.0.0.1
3) log on to mysql with root from local machine
GRANT ALL ON *.* TO 'user'@'ipadd' identified by 'pwd';
ipadd is ip address of machine from which you are trying to connect to mysql server
user and password are auth info.
useful links
http://forge.mysql.com/wiki/Error2003-CantConnectToMySQLServer
Monday, December 22, 2008
Tata indicom plug2 surf data card
yday bought Tata indicom wireless card, usb one ..from shop new baba mobile store in aundh near parihar chowk, near vishis cafe.
it cost me 2376 Rs for modem + sim.
I opted for recharge card worth 1000Rs with validity 6 months.
Tata indicom main office is opposite to Sancheti hospital, Shivajinagar.
In this rush I lost my Credit card. luckily blocked it before anyone misused it.
it cost me 2376 Rs for modem + sim.
I opted for recharge card worth 1000Rs with validity 6 months.
Tata indicom main office is opposite to Sancheti hospital, Shivajinagar.
In this rush I lost my Credit card. luckily blocked it before anyone misused it.
Thursday, December 11, 2008
Again winner of Collage competion at talentica
Monday, November 03, 2008
Thursday, October 23, 2008
Maxwell's Silver Hammer
from
wikipedia
McCartney said in 1994 that it merely epitomises the downfalls of life:
McCartney referred to the song when talking about his 2005 album Chaos and Creation in the Backyard:
Lyrics and video..
Joan was quizzical; Studies pataphysical
Science in the home.
Late nights all alone with a test tube.
Oh, oh, oh, oh.
Maxwell Edison, majoring in medicine,
Calls her on the phone.
"Can I take you out to the pictures,
Joa, oa, oa, oan?"
But as she's getting ready to go,
A knock comes _ON_ the door.
Bang! Bang! Maxwell's silver hammer
Came down UPON her head.
Clang! Clang! Maxwell's silver hammer
Made sure that she was dead.
Back in school again Maxwell plays the fool again.
Teacher gets annoyed.
Wishing to avoid an unpleasant
Sce, e, e, ene,
She tells Max to stay when the class has gone away,
So he waits behind
Writing fifty times "I must not be
So, o, o, o.."
But when she turns her back on the boy,
He creeps up from behind.
Bang! Bang! Maxwell's silver hammer
Came down upon her head.
Clang! Clang! Maxwell's silver hammer
Made sure that she was dead.
P. C. Thirty-one said, "We caught a dirty one."
Maxwell stands alone
Painting testimonial pictures.
Oh, oh, oh, oh.
Rose and Valerie, screaming from the gallery
Say he must go free
(Maxwell must go free)
The judge does not agree and he tells them
So, o, o, o.
But as the words are leaving his lips,
A noise comes from behind.
Bang! Bang! Maxwell's silver hammer
Came down upon his head.
Clang! Clang! Maxwell's silver hammer
Made sure that he was dead.
Whoa, oh, oh Silver hammer,
Maxwell's Silver Hammer flash video
wikipedia
McCartney said in 1994 that it merely epitomises the downfalls of life:
"Maxwell's Silver Hammer" is my analogy for when something goes wrong out of the blue, as it so often does, as I was beginning to find out at that time in my life. I wanted something symbolic of that, so to me it was some fictitious character called Maxwell with a silver hammer. I don't know why it was silver, it just sounded better than Maxwell's hammer. It was needed for scanning. We still use that expression now when something unexpected happens."
McCartney referred to the song when talking about his 2005 album Chaos and Creation in the Backyard:
"In the past I may have written tongue-in-cheek, like 'Maxwell's Silver Hammer', and dealt with matters of fate in a kind of comical, parody manner. It just so happens in this batch of songs I would look at these subjects and thought it was good for writing. If it's good enough to take to your psychiatrist, it's good enough to make a song of."
Lyrics and video..
Joan was quizzical; Studies pataphysical
Science in the home.
Late nights all alone with a test tube.
Oh, oh, oh, oh.
Maxwell Edison, majoring in medicine,
Calls her on the phone.
"Can I take you out to the pictures,
Joa, oa, oa, oan?"
But as she's getting ready to go,
A knock comes _ON_ the door.
Bang! Bang! Maxwell's silver hammer
Came down UPON her head.
Clang! Clang! Maxwell's silver hammer
Made sure that she was dead.
Back in school again Maxwell plays the fool again.
Teacher gets annoyed.
Wishing to avoid an unpleasant
Sce, e, e, ene,
She tells Max to stay when the class has gone away,
So he waits behind
Writing fifty times "I must not be
So, o, o, o.."
But when she turns her back on the boy,
He creeps up from behind.
Bang! Bang! Maxwell's silver hammer
Came down upon her head.
Clang! Clang! Maxwell's silver hammer
Made sure that she was dead.
P. C. Thirty-one said, "We caught a dirty one."
Maxwell stands alone
Painting testimonial pictures.
Oh, oh, oh, oh.
Rose and Valerie, screaming from the gallery
Say he must go free
(Maxwell must go free)
The judge does not agree and he tells them
So, o, o, o.
But as the words are leaving his lips,
A noise comes from behind.
Bang! Bang! Maxwell's silver hammer
Came down upon his head.
Clang! Clang! Maxwell's silver hammer
Made sure that he was dead.
Whoa, oh, oh Silver hammer,
Maxwell's Silver Hammer flash video
Subscribe to:
Posts (Atom)
