Category Archives: tech

Open Source Project of the Week: Dovecot

For being totally awesome and easy to configure and install, building support for SSL, and having a debian package available when I needed it: Dovecot! Congratulations, you’re my open source project of the week!

Posted in tech | Leave a comment

WordPress 2.0

I just upgraded the blog to WordPress 2.0. Let me know if something seems broken. Thanks.

Posted in meta, tech | Leave a comment

Atom Feed

I’ve switched my atom feed from atom 0.3 to atom 1.0. A few things don’t support atom 1.0 yet (google.com/ig, I’m looking at you!) so you can use meat.net/wp-atom03.php to get an atom 0.3 feed.

Posted in meta, tech | Leave a comment

Enemies List

Why does Thinkgeek hate me so?

Posted in tech | Leave a comment

Get Error Message from HRESULT

Need to look up the error string for an HRESULT code? Here’s some code to do so. #include <comdef.h> CString GetMsgForHresult(HRESULT hr) { CString cs; CString msg = _com_error(hr).ErrorMessage(); cs.Format(_T(“Error 0x%08x: %s”), hr, msg); return cs; }

Posted in tech | 2 Comments

PHP Debugging Tip

Page not loading right? Try putting this at the top inside a <?php block… print_r( $_REQUEST); I was having a problem where http://meat.net/2005/11/xml-js-freeze/ was coming up blank. Turns out the following regexp is at fault: RewriteRule ^(.+).xml /index.php?feed=$1 [QSA,L] I’ve … Continue reading

Posted in tech | 10 Comments

microsoft XML DOMDocument and javascript error

I’m encountering a weird error where an embedded copy of IE is failing to load XML properly. Here’s the best approximation I have of what we’re doing:

Posted in tech | 2 Comments

Baseball and SQL

Two great tastes that go great together. One of the greatest things ever is the Lanham Baseball Database. It’s a database of all baseball statistics since 1871, suitable for random SQL queries. Not quite pitch by pitch, but season by … Continue reading

Posted in baseball, sports, tech | Leave a comment

CTA transit map

Lots of people have them. I like mine. Check it out. How I did this: Installed PostgreSQL and PostGIS Tried to load data from the City of Chicago Maps SHP file. Discovered the City uses a weird, us-ft based projection. … Continue reading

Posted in tech | 12 Comments

m4 quoting

m4 quoting examples: define(A,1)dnl define(B,A)dnl define(`A’,2)dnl B should be 1 define(`B’,`A’)dnl A should be 2 B should be 2 define(`B’,“A”)dnl B should be `A’

Posted in tech | Leave a comment