Quantcast
Channel: Dev Blog
Browsing all 10 articles
Browse latest View live

In Python, thread safe does not mean fork safe

We discovered this in a not so easily reproducible way. Here at Mahalo we use this wonderful distributed task queue called Celery. Upon restarting the celeryd server, rarely (until recently) and only...

View Article



Reset file's modification time to their birth time

NOTE:This only works for FreeBSD. This will change the modification time (ls -l) of the current directory and all files and directories under it back to their "birth time" (creation time). If you want...

View Article

Nginx modules for a memcached page cache cluster

Nginx already has a neat module included with it to proxy requests to a memcached server (memcached_pass). Combine that with the upstream round robin load balancer, you have the beginnings of a...

View Article

Apache Cassandra FreeBSD rc.d script

We are a FreeBSD shop, so naturally we run our Apache Cassandra cluster on it. Unfortunately, there isn't an rc.d script for it. Using cassandra/bin/cassandra -p /var/run/cassandra.pid has been working...

View Article

How to dump memcache key/value pairs fast

Recently we migrated our memcached cluster to a new larger one. This needed to be done mostly for reliability and speed, but it's also nice being able to have access to new stats like 'reclaimed' in...

View Article


MySQL 5.5 Homebrew Formula

I recently switched to a 27" iMac workstation running Snow Leopard from Ubuntu 10.10 (Maverick Meerkat). The resident Mac fanbois suggested Homebrew over Fink and MacPorts. At first I didn't heed their...

View Article

memcache-top patch to see curr_items

I stumbled upon memcache-top in the Homebrew Formula repository. It's a neat little Perl application that aggregate stats from a memcached cluster and displays it in a nice little table. I like to use:...

View Article

Tips.js - Lesson 1: For-in Caveats

JS has several different looping statements, many of which we know and love: for, while, and do-while. JS has a sort of for-each statement, which we like to call the for-in statement, but the caveat...

View Article


Jacob Kaplan-Moss at Mahalo

This post is really late in coming. In trying to get Mahalo 4 launched on time, a few things got pushed off, so here I am trying to catch up. Way back in November (I think), Jacob Kaplan-Moss visited...

View Article


Image may be NSFW.
Clik here to view.

Deploying a Video Sitemap

If you've ever considered implementing a video sitemap, you''ve probably gone throught the same thought process we did. First, "what's a video sitemap?" then "should we have one?" followed by "how come...

View Article
Browsing all 10 articles
Browse latest View live




Latest Images