The New Foursquare

Posted by chetan on August 06, 2014

Yeah, but do you have them all in a spreadsheet on google docs?

A hard core of Foursquare users love to checkin. I am one of them. I want to database my life, the places I go, and what I see and do there. I have checked in a total of 6,342 times since I started using Foursquare.

via The New Foursquare – AVC.


Goodnight. Sleep Clean. –

Posted by chetan on January 12, 2014

We’ve known for some time that sleep is essential for forming and consolidating memories and that it plays a central role in the formation of new neuronal connections and the pruning of old ones. But that hardly seems enough to risk death-by-leopard-in-the-night.

via Goodnight. Sleep Clean. –

S3 enabled disks?

Posted by chetan on October 25, 2013

Sounds interesting, but no mention of OpenStack..

Yesterday Seagate introduced its Kinetic Open Storage Platform, and I’m simply blown away by it. It’s a truly elegant design, “as simple as possible, but no simpler”. The physical interconnect to the disk drive is now Ethernet. The interface is a simple key-value object oriented access scheme, implemented using Google Protocol Buffers. It supports key-based CRUD (create, read, update and delete); it also implements third-party transfers (“transfer the objects with keys X, Y and Z to the drive with IP address”). Configuration is based on DHCP, and everything can be authenticated and encrypted. The system supports a variety of key schemas to make it easy for various storage services to shard the data across multiple drives.

via Reinventing storage – Ethernet über alles! | Speaking of Clouds

The US government has betrayed the internet. We need to take it back

Posted by chetan on September 05, 2013

We’ve had enough of lawyers and politicians not fully understanding technology; we need technologists at the table when we build tech policy.

via The US government has betrayed the internet. We need to take it back – Bruce Schneier.

N.S.A. Foils Much Internet Encryption

Posted by chetan on September 05, 2013

Unlike some classified information that can be parceled out on a strict “need to know” basis, one document makes clear that with Bullrun, “there will be NO ‘need to know.’ ”

via N.S.A. Foils Much Internet Encryption –

A human way to define regular expressions?

Posted by chetan on September 05, 2013

Dear lord, I hope no one is actually using this in production.

pattern =
  maybe { words.with(".") }.
  find { matching { [word, "-"] }.multiple }.
  either("com", "org").
pattern.to_r #=> /^http(?:s)?:\/\/(?:(?:\w)+\.)?([\w\-]+)\.(?:com|org)(?:\/)?$/

via Hexpress by krainboltgreene.

Resetting the chronograph on the Tissot PRC 200

Posted by chetan on November 04, 2012

The large seconds hand (#6 in the diagram above) on my watch somehow got screwed up; when resetting the chronograph, it would always rest on 56 instead of zero. Apparently fixing this is an undocumented feature, though really quite easy to do.

Simply pull out the crown (#12) to the second position as if setting the date. Now, when you press the reset button (#11) the seconds hand will advance by one. Just keep pressing it until you reach zero and you’re all set!

Creepy voicemail

Posted by chetan on February 11, 2011

I got this creepy voicemail today on an unused Vonage number that I have:

Vonage transcription: “Good morning and good morning and good more and then I’m. I’m alone. So in the shower. I am gonna be more than any card board boat races in my dreams. Swimming in the lake trip the water”

PS. this is just an excuse for me try out the new HTML5 <audio> tag, which apparently doesn’t work in Firefox 3.6.x. just earned a spot on my blacklist

Posted by chetan on July 23, 2009

Just fixed another longstanding pet peeve of mine: I finally added and to my email server’s blacklist. How these guys have managed to stay in business for so long is beyond. They don’t even try to hide the fact that they’re spammers. They even sign all their messages with a valid domain keys signature!

DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/simple;;
     s=prod20081009.key.pem; t=1248374724; bh=PH2W8/WWF0Eq5UeHS7xrebJL9l
     g=; h=Date:from:to:Subject:Mime-Version:Content-Type:Message-Id;

Gotta love the sheer audacity of it..

Fixing SquirrelMail’s weird reply behavior

Posted by chetan on July 23, 2009

After years of being annoyed by the fact that SquirrelMail, an otherwise fine product, doesn’t include the date and name of the sender when replying to emails like just about every other email client on the planet, I finally broke down and fixed it. Below is the simple 1 line patch against SquirrelMail 1.4.19. It will most likely work on older 1.4.x versions as well.

Download patch (squirrelmail-1.4.19-reply_body.patch)

--- squirrelmail-1.4.19/src/compose.php	2009-05-14 06:26:29.000000000 +0000
+++ squirrelmail/src/compose.php	2009-07-23 16:09:59.000000000 +0000
@@ -856,7 +856,7 @@
                 $rewrap_body = explode("\n", $body);
                 $from = (is_array($orig_header->from) && !empty($orig_header->from)) ? $orig_header->from[0] : $orig_header->from;
-                $body = '';
+                $body = "\n\n\nOn " . getLongDateString( $orig_header->date, $orig_header->date_unparsed ) . " {$send_to} wrote:\n"; // MOD BY chetan
                 $cnt = count($rewrap_body);
                 for ($i=0;$i<$cnt;$i++) {
                     sqWordWrap($rewrap_body[$i], $editor_size, $default_charset);