Thursday, August 27, 2009

Nice marathi song

Bhatukalichy khela madhali raja anik rani
ardhyawarati dav modila adhuri ek kahani

raja wadala mala samjali shabdawachun bhasha
mazya naseebasave bolati tuzya hatachya resha
ka ranichya dola tenva datuni aale pani?

rani wadli baghat ektak doorachya tara
udya pahate dusrya wata dujya gavacha wara
pan rajala ushira kalali gudh atal hi wani

tila vichari jara ka he jeev ase jodave?
Ka daivane fulnya adhi ful ase todave?
Ya prashnala uttar navate rani kevilwani

ka ranine mitale dole door door jatana?
Ka rajacha swash kondala geet tiche gatana
Waryawarti virun geli ek udhas virani



Click to hear this song

Thursday, August 13, 2009

22

People who are 22s are said to find themselves feeling as if they live in 2 worlds, one which is overwhelmed by the mundane and the other by the fantastic.

Saturday, April 11, 2009

Nano space

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.

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.

Thursday, February 26, 2009

Art at Talentica

not able to participate in clay competition but looks like there are talented artists are here.




Friday, January 30, 2009

Tshirt design competition at talentica



designed tshirt for team with swati. I think it was not the best but I say, was good try..

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?

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.

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>

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.

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!!

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

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.

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.

Woohooo... more than 100 posts on blog.

Enjoy

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

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!!!

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

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.

Thursday, December 11, 2008

Again winner of Collage competion at talentica




We, the winner team, Poushali, ryan, Nitin and Sandip, thats me ofcourse. unfortunately dont have photo of team.