Home

Advertisement

Customize

Bhati Bhai's Journal

Apr. 17th, 2009

04:43 pm - Implicit type conversion can be evil


mysql> SELECT IF(('text' = 0), 'true', 'false'); 
+-----------------------------------+ 
| IF(('text' = 0), 'true', 'false') | 
+-----------------------------------+ 
| true                              | 
+-----------------------------------+ 
1 row in set, 1 warning (0.00 sec) 
 
 
mysql> select * from users;               
+-------+ 
| name  | 
+-------+ 
| usera | 
| userb | 
+-------+ 
2 rows in set (0.00 sec) 
 
 
mysql> select * from users where name = '0'; 
Empty set (0.00 sec) 
 
mysql> select * from users where name = 0; 
+-------+ 
| name  | 
+-------+ 
| usera | 
| userb | 
+-------+ 
2 rows in set (0.00 sec) 
 
mysql> delete from users where name = 0; 
Query OK, 2 rows affected (0.03 sec) 
 
mysql> select * from users ;              
Empty set (0.00 sec) 

mysql>  show variables like 'version';                
+---------------+--------+
| Variable_name | Value  |
+---------------+--------+
| version       | 5.0.77 | 
+---------------+--------+
1 row in set (0.03 sec)

mysql> 
 
implicit type conversion is evil


Tags:

Dec. 12th, 2008

08:57 pm - AT & T Technical Customer Support

I am not able to receive emails send to my-number@txt.att.net as sms on my AT & T mobile.

why so:


mycomputer:~ myname$ telnet 66.102.165.114 25
Trying 66.102.165.114...
Connected to atlsmtp.cingularme.net.
Escape character is '^]'.
220 atledge02.cingularme.com ESMTP server (InterMail vG.1.02.00.03 201-2136-104-103-20050318) ready Fri, 12 Dec 2008 23:22:33 -0500
helo dd
250 atledge02.cingularme.com
mail from: myemail@mydomain.com
250 Sender Ok
rcpt to: 408XXXXXXX@txt.att.net
550 Invalid recipient: <408XXXXXX@txt.att.net>
quit
221 atledge02.cingularme.com ESMTP server closing connection

I feel helpless, after explaining my problem 30 minutes,  technical support guy says:

  
  * Turn off & on your phone N number times
    * Take out your battery & put it in
    * Get new sim from nearest shop (free of cost)

I can't imagine what would happen to average non technical mobile customer

Current Mood: [mood icon] apathetic

Sep. 18th, 2007

03:32 pm - Do You Hack?

Time to get out of your cubicle and quickly code your mashup at Yahoo! Bangalore Open Hack Day.

You may use any number of available APIs from Yahoo! Developer Network or other available open APIs and code using your own favorite language.

First step is to register to secure your invitation.

Jun. 25th, 2007

10:00 pm - Old Classic Hindi Songs

I have been using this site for few years, every time I visit this page, I get few new 'old classic' hindi movie songs:

http://indianscreen.com/songs.htm
http://indianscreen.com/songs_Previous.htm

Tags: , ,

Jan. 8th, 2007

11:42 am - Jodhpuri Pyaaj Ki Kachori in Bangalore?

Jodhpur is famous for Pyaaj Kachori, Hot & Spicy Mirchibada (made from potato, onion, chili and gramflour) and Sweet Mawa Kachori. It is almost impossible to get such taste anywhere else in India. In case you are looking for similar taste in Bangalore, you should try "Jodhpur Sweet Home" at RT Street, BVK Iyengar Raod, Chikpete.

Google Maps Link to Jodhpur Sweet, Bangalore

WikiMapi link to Jodhpur Sweet, Bangalore

You are not going to get exact taste at this shop, but it is close enough (80%) to remind you original taste.

Jan. 2nd, 2007

May. 28th, 2006

May. 18th, 2006

09:17 pm - download Google video

Somtime google video streaming is really slow, we can wait and watch it.

Get a bookmarklet from my site to download Google video

Feb. 13th, 2006

01:44 pm - going down? going up?

you are in elevator, suddenly someone came half the way in and ask a question:

"going down?"
why?
Something wrong with human man interface design?
Can we have interface that take care of such 1% use case to make life simple of other 99%?

Sep. 10th, 2004

08:31 pm - Early morning yoga camp

Joined yoga camp at http://www.ramakrishnamath.com/yoga.asp

Yoga exercise is not a challenge for me, the real challenge is to wake up early
at 5.30 to attend the yoga session from 6.00 am to 7.00 am for
one month (except sunday).

Current Mood: awake

Jul. 2nd, 2003

07:51 pm - blog entry in dictionary

Just run the spell check at Live Journal, it suggests the following words for the 'Blog' :

Bog, Log, Bloc, Biog, Bldg, Blow, Blob, Blot, Clog, Flog, Slog, Belg, Bligh, Belong, Bloch

http://dictionary.reference.com/search?q=blog says that defination of 'Blog' is available for premium members.

07:33 pm - Blog Ideas

If you are away from your home, no need to write a mail to your family members and friends everyday about you, just update it on your blog!

Blog can be used a text based live camera? A live update about you to your friends!

Current Mood: creative