Wordpress Bug: Text 'PHP Fatal Error' in Body

I was having trouble saving my last post (back when I was using WordPress), apparently because it contained the following content:

'PHP Fatal Error' in the post text triggers a bug

When you paste that into a new post and click preview, it actually shows a preview for the previous post! After returning to the posts list, I’m not even able to edit it again, it triggers a 404. But the content made it to the database OK: I was able to verify it with mysql on the command line.

Various substrings do not trigger the erroneous behavior.

I don’t know what the heck is going on. I tried greping around in the WordPress source code, but wasn’t able to find anything that looked like it was treating that text as a special case.

Overcoming Ruby Error digest/sha1.bundle Library not loaded.

I ran into trouble the other day running rspec on my project. It had been working just fine the day before, but all of a sudden:

/Users/mburke/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/i686-darwin12.3.0/digest/sha1.bundle: dlopen(/Users/mburke/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/i686-darwin12.3.0/digest/sha1.bundle, 9): Library not loaded: /opt/local/lib/libcrypto.1.0.0.dylib (LoadError) ..snip ..

Read More

Keep Your Framerate Out of My Physics - Part II

This is part II of a series looking at the physics algorithm for Electric Field Hockey. Part I outlines the initial algorithm and it’s shortcomings.

Last time we noticed a problem in how we generate a time step for our physics simulation: requestAnimationFrame can’t guarantee a consistent interval which makes the simulation appear frustratingly irrational.

Read More

Apache ProxyPass and Cache-Control

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule headers_module modules/mod_headers.so
ProxyRequests off

<LocationMatch "/s3/">
ProxyPass http://s3.amazonaws.com/your_bucket/
Header set Cache-Control "max-age=290304000, public"