Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am ravi on github.
  • I am ravisarma (https://keybase.io/ravisarma) on keybase.
  • I have a public key whose fingerprint is FE91 DB7D 9482 A238 46FF CEF9 344E C671 085D 1168

To claim this, I am signing this object:

@ravi
ravi / gist:2932287
Created June 14, 2012 19:12
Google bounces Google
Delivery to the following recipient failed permanently:
replyto-........@plus.google.com
Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the recipient domain.
We recommend contacting the other email provider for further information about the
cause of this error. The error that the other server returned was:
550 550-5.1.1 The email account that you tried to reach does not exist. Please try
550-5.1.1 double-checking the recipient's email address for typos or
@ravi
ravi / gist:211467
Created October 16, 2009 01:51
MySQL: What this does is: INSERTS a new row if no unique key has a duplicate value. If there is such a duplicate value, then it UPDATEs the field 'fld2' with the supplied value for 'fld2' IF the supplied value for 'fld3' is greater than the current valu
INSERT tbl
(fld1, fld2, fld3)
VALUES
('xyz', 'def', 4)
ON DUPLICATE KEY UPDATE
`id` = LAST_INSERT_ID(`id`),
fld2 = IF(VALUES(fld3) > fld3, VALUES(fld2), fld2);
<td colspan='2' id='header'>
<table border=0 cellpadding=0 cellspacing=0>
<tr>
<td id='title'><a href="<?php echo get_option('home'); ?>/">
<?php bloginfo('name'); ?></a></td>
<td id='description'><?php bloginfo('description'); ?>>/td>
<td id='search' valign='middle'>
<?php include (TEMPLATEPATH . "/searchform.php"); ?> </td>
</tr>