Open Synapse

Hi, I'm Abhay Kumar. I like to throw up interesting things I encounter here. You can also see the result of my mustache pact with my coworkers, check out what I'm up to or see the few photos I take. I like to receive email and instant messages (AIM / Jabber), as well. Some links of interest: Calais Text Tagger, Powerset

Aug 05
Permalink
This ad is just plain scandalous. [via]
This ad is just plain scandalous. [via]
Comments (View)
Jul 14
Permalink

Clever but slow: Symbol#to_proc

Ever do something like this in a Rails app and think it was really awesome and convenient?

all_content = Post.find(:all).map(&:content)

Symbol#to_proc is really neat but is expensive as heck.

Here’s some sample benchmarks:

                      user     system      total        real
without to_proc   0.840000   0.000000   0.840000 (  0.858780)
with to_proc      1.780000   0.020000   1.800000 (  1.816275)

That means code that looks like this:

(1..100).inject(&:+)

looks really neat but is quite a bit slower than

(1..100).inject {|sum, n| sum + n }

ActiveRecord, your Ruby-Fu may be strong but it’s going to cramp my style.

Comments (View)
Jul 01
Permalink

Design By Humans 20% Off Referral Code + Contest

I got this in my email today so I thought, why not? Use this 20% off referral code and I’ll have a chance to win an iPhone I’ve been coveting for about as long as everyone with one has been mocking me for not having it. The first place winner also wins a MBP but I highly doubt I’ll get that far. I’m fine with Top 5.

Design By Humans 20% Off Referral Code: abhay (Expires July 6 @ midnight)

The super awesome designs that I own:

pollution effect
pollution effect

Must Destroy The City
Must Destroy The City

Memory Ln.
Memory Ln.

Circular Reasoning
Circular Reasoning

The only unfortunate part of it is that you have to pay tax in CA. Bah!

Comments (View)
Jun 23
Permalink
Am I the only one who went “Aaaaaah, he’s going to attack those kids!” when viewing this illustration? Way to really ruin a moment, Newsweek.

Also, as Dave said, “The Men of the USS Vista were never seen again.” Stormy waters, indeed.

Am I the only one who went “Aaaaaah, he’s going to attack those kids!” when viewing this illustration? Way to really ruin a moment, Newsweek.

Also, as Dave said, “The Men of the USS Vista were never seen again.” Stormy waters, indeed.

Comments (View)
Jun 19
Permalink
The Tesla doing a lap at Le Mans.
Comments (View)
Jun 17
Permalink
It’s unfortunate that I’m actually posting this on Tumblr but….
Comments (View)
Permalink

Firefox 3 Download MIrrors

I haven’t been able to download the new Firefox 3 package all morning so I went hunting for mirrors.

Here’s a direct link for those on Mac and wanting the en-US release: dmg, checksum

There’s a full mirror list where you can get more download links while the mozilla.org site stays up. You can find your platform and language via that list. More examples: linux-i686, win32

Comments (View)
Jun 10
Permalink

Fedora mirrors being wonky

This post is mostly so I remember this myself but when I logged into my VPS this evening and tried to use yum, I got the following silliness

Could not retrieve mirrorlist http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-8&arch=x86_64 error was
[Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again

I’m not really sure what’s going on over there but I’m impatient.

I just modified the mirrorlist line in /etc/yum.repos.d/fedora.repo

mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?path=pub/fedora/linux/releases/$releasever/Fedora/$basearch/os

Extra points

If you add country=us, to the mirrorlist url, you’ll get a more restricted repository list.

Comments (View)
Jun 05
Permalink
Really neat video showing a synopsis of the American Civil War. I think the coolest part is Sherman’s March to the Sea.
Comments (View)
Jun 03
Permalink
America&#8217;s Joyous Future [via Defiler in #nyc.rb]
America’s Joyous Future [via Defiler in #nyc.rb]
Comments (View)
Jun 02
Permalink
Here&#8217;s an awesome annotated ink drawing floor plan of one of the most famous fictional residences ever. I think this is going to go up on my bedroom wall as soon as I can get a poster print of it. Fortunately the artist, Russ Stutler, has given all of us a very liberal license (although this could have been achieved very simply by a CC BY-ND license) on his work:


  You have my full permission to use this image. 
  Just don&#8217;t erase my name and claim that you drew it.
  You are above that.


There are some links on Stutler&#8217;s site for the full-sized annotated version and several formats for printing. [via strangemaps]

Here’s an awesome annotated ink drawing floor plan of one of the most famous fictional residences ever. I think this is going to go up on my bedroom wall as soon as I can get a poster print of it. Fortunately the artist, Russ Stutler, has given all of us a very liberal license (although this could have been achieved very simply by a CC BY-ND license) on his work:

You have my full permission to use this image. Just don’t erase my name and claim that you drew it. You are above that.

There are some links on Stutler’s site for the full-sized annotated version and several formats for printing. [via strangemaps]

Comments (View)
Permalink
This is from namecheap.com&#8217;s account profile page where you can set some defaults. Indian Band was eventually explained to me as: &#8220;a group that is usually associated with a reserve or small patch of land, but it&#8217;s a band whether or not it has its own land base.&#8221; The Queen or Crown happens to still be the &#8220;head of state&#8221; in Canada as well.
This is from namecheap.com’s account profile page where you can set some defaults. Indian Band was eventually explained to me as: “a group that is usually associated with a reserve or small patch of land, but it’s a band whether or not it has its own land base.” The Queen or Crown happens to still be the “head of state” in Canada as well.
Comments (View)
May 30
Permalink
Seriously&#8230;. [xkcd]
Seriously…. [xkcd]
Comments (View)
May 29
Permalink

I think my equivalent would be some sort of computer.

hugehuge:

Recumbent 3 a.m. conversation a few days ago:

She [sincerely and without warning]: I’m attracted to everything about you.  Even the Darth Vader sword hanging on your wall.

Me [thinking]: Oh my god, that’s the sweetest thing anyone has said to me in a very long time.

Me [out loud]: Correction: it’s a lightsaber.

Comments (View)
May 23
Permalink

I walked right into one of the best "that's what she said" moments of recent times.

  • Me: It's pretty cool that 7 of my 397 facebook friends were born on 5/25. That's about 6.5 times the expected birthday collision.
  • Cliff: http://www.cs.utexas.edu/users/EWD/transcriptions/EWD09xx/EWD980.html and http://www.mste.uiuc.edu/reese/birthday/
  • Me: two is easy... but seven? that makes it interesting.
  • Cliff: and that's what she said.
Comments (View)

Change CongressVote Obama