ENABLE MOD REWRITE ERROR LOG

Just a quickie - throw this in your apache config if you need error logging for mod_rewrite. Useful in a dev environment, not so much in production. RewriteLog /var/log/httpd/rewrite.log RewriteLogLevel 9

'ERLANG: UNDERSTANDING GEN_SERVER'

Gen_server is a great way to create simple servers without having to write a lot of code at all. Here’s a brief overview to get you started. For some reason, figuring out how the gen_server behavior works in erlang was kind of a pain for me. I think it’s because I can’t just implement something, I need to know why it works. Well, now I know. So, lets get started. Gen_server is built into erlang.

INTERESTING PROGRAMMER LINKS

Peeping into memcached. Really interesting read about how to examine what’s stored in memcached. Peep uses ptrace to freeze a running memcached server, dump the internal key metadata, and return the server to a running state. If you have a good host ejection mechanism in your client, such as in the Twitter libmemcached builds, you won’t even have to change the production server pool. The instance is not restarted, and no data is lost.

C# ON THE MAC WITH ECLIPSE

It looks like developing using c# and eclipse on the Mac is pretty easy, at least on first glance. Here’s a good guide to get started. It only took about 2 minutes to go from “I think I’ll give this a shot” to “sweet it compiled.”

'ERLANG: CREATE SCHEMA BEFORE STARTING MNESIA'

If you’re running into trouble with Mnesia not writing your data to disk, make sure you create the schema BEFORE you start mnesia. Otherwise you’ll get errors like opt_disc. Directory "c:/Documents and Settings/jhaddad/workspace/Mnesia.localhost@whatever" is NOT used.

ADIUM CRUSHES EVERY WINDOWS IM CLIENT

So, recent job switch. No longer at Demand, and no longer on Mac. Windows is mandatory. Once again I quest for software that doesn’t suck. I’ve tried Pidgin, Trillian, and now digsby, and all are AWFUL when compared to the beautiful, elegant Adium. Oh, and if you’re wondering what my requirements are. Clean interface. This means the tabs, the buddy list font size, and the icons. Searchable buddy list. This is incredibly elegant in Adium.

THE MAC MINI NOW SUPPORTS DUAL MONITORS

The Mac Mini is now capable of running dual monitors. This, to me, is huge. It’s a machine that comes in a decent price that developers are used to, while allowing us to keep our dignity and use our own monitors. A few months ago, I bought a triplehead2go, and I ran 3 20 inch monitors. Then I got greedy, and decided to step it up to 2 26" screens (the LG W2600 to be exact).

USING THE FILTER QUERY IN SOLR (FQ)

Filter queries are applied to a result set after it has generated the search results. This can be useful in cases where you want to filter by category or user. In my use case, I’d like to filter a list of questions by a group of categories on Answerbag. This is used primarily for partner sites who’ve opted into our white label cobrand system and have selected a list of categories to restrict the site to.

'SETTING UP A SOLR INDEX '

Setting up a solr index isn’t that hard, but I found the documentation to be somewhat hard to find. It only took me a few hours from start to finish to go from download to indexing my documents, but I think it could have happened a lot faster if I had some of the below information. I’m assuming you’ve already downloaded solr and you’re now looking at a directory with a bunch of files in it.

'FOUND CODE: REPLACING RUNS OF COMMAS'

I found this gem today. $special = str_replace(",,,,",",",$special); $special = str_replace(",,,",",",$special); $special = str_replace(",,",",",$special); Pretty sweet.