Panasonic Youth rob sanheim writes about software, business, ruby, music, stuff and things



Posts Tagged Linux

history meme onwards…

rsanheim@ares:~$ history 1000 | awk ‘{a[$2]++}END{for(i in a){print a[i] ” ” i}}’ | sort -rn | head
71 gst
67 l
38 ****
38 c
28 git
22 ss
21 gca
13 gsd
13 :
12 rake

I like keeping it short. The 3rd one thats bleeped out is a shortcut to my main client project right now. The aliases can be found in […]


Beware the default nginx config - old IE6 hates gzip

I had some issues with an application deployed to EngineYard recently, using their standard nginx config with a few mongrels behind it. The issue was only happening with IE6, and only happening intermittently. And of course, I could not reproduce it locally. After some fun-filled research and gotomeeting’s with folks who saw […]


RailsConf 2007 - Memcaching Rails - Chris Wansrath

Chris Wanstrath helped scaling gamespot
had to turn off gzipping to avoid burning the cpus
3000 req/seconds
50M pages in the day, no downtime
Chris is a sloppy programmer (jk)

a distributed hash with no each or keys – just get and set
written in c – fast

at first – you dont need memcached – YAGNI
unless you really do need it […]


Facebook’s architecture - 200 memcached servers

Great thread on the memcached list. Facebook has 200 dedicated memcached servers, all 4 core boxes with 16 GB ram. Thats serious hardware. Having to scale to that size is a nice problem to have.


My Command line toolkit for Ruby and Linux

Some common aliases and functions that I use, spread across various bash_login and .sh scripts. This excludes a bunch of things that are specific to SeekingAlpha, of course. A lot of this was cobbled together from similar lists and previous coworkers.

# general shortcuts
alias mv='mv -i'
alias cp='cp -i'
alias rm='rm -i'
alias :='cd ..'
alias ::='cd ../..'
alias [...]


Zed and Geoffrey, laying it down, httperf style

I've been waiting for this screencast for awhile. Our team at SeekingAlpha has been doing a ton of work with load testing, performance, and optimization, in both Rails and PHP (ugh). I've used httperf a bit but still don't feel like I really "get it". Its great to see Zed and Geoffrey [...]


Contegix is Amazing. Plus Thoughts on Rails Hosting

I think I've raved before about our experiences at Seeking Alpha with Contegix for our hosting before, but I'm going to do it some more. As of late we've been having problems with our outgoing email for subscription being tarpitted or even blacklisted by certain well known public email companies. Obviously, this is [...]


Comand Line Tip: How to List Only Directories

Finding this took over three tries with Google, which means it took too long and that I'll forget as soon as I need to do it again.
To list only directories in the current directory, this does the trick:
ls -d */
Though it doesn't make since to me, because the -d option for ls says:
-d [...]


Madison Ruby on Rails wiki setup

Finally got i2 setup on dreamhost for the Madison Ruby on Rails Wiki. Most of the trouble was due to human error, of course. There is still an issue where it seems Rails uses the cached version of a page when it should really hit the database to pick up changes. Not [...]


Ruby 1.8.4 on White Box Enterprise Linux 3 (with OpenSSL)

Finally figured out why ruby wasn't picking up openssl when I was installing it from the tarball. This was resulting in switchtower not working, which was really driving me crazy as I'm trying to get this box ready for deployments. Well, I guess I'm not sure exactly what is going on, but this [...]


← Before