You are at the archive for the General Web work - technical Category:

What the world needs now is Croons, sweet Croons

Looks like we just did a big publicity push for Croon My Tune. Everybody should go check it out.
http://croonmytune.com
or read about it here: http://jumpcanopy.com/?p=21

_method in recent rails is brokenish

I was trying to pass in _method: 'put' as part of a json body and for some reason rails kept not realizing that I wanted to put.
Then I came across this article: http://stackoverflow.com/questions/1249282/set-method-to-put-in-rails-xml-requests
So... if you're using prototype your "put" methods look something like this:
PLAIN TEXT
JavaScript:

new Ajax.Request(url, {
                onSuccess: [...]

Game Theory

Wii Games - E3 2010 - Guitar Hero 5
You can skip the last 10 minutes or so when he dives into this odd crazy future... but the beginning part really makes you think about how you can add game theory to any business you're in. I really like the idea of experience points and [...]

Rails thread safety

Calling Rails.configuration.threadsafe! at the end of your environment.rb does *not* turn on multi-threading. Adding config.threadsafe! to your individual environments (like production.rb) *does* turn on multi-threading.
You can also check that your multi-threading is active by seeing if ActionController::Base.allow_concurrency is true.
We add ::RAILS_DEFAULT_LOGGER.fatal { "Mulithreading is active? #{ActionController::Base.allow_concurrency}" }
to the end of our environment.rb to let [...]

Google Analytics Launches Asynchronous Support

Google Code Blog: Google Analytics Launches Asynchronous Tracking
Google Analytics Launches Asynchronous Tracking
Tuesday, December 01, 2009
Today we're excited to announce our new Google Analytics Asynchronous Tracking Code snippet as an alternative way to track your websites! It provides the following benefits:
* Faster tracking code load times for your web pages due to [...]

Daring Fireball: jQuery touch isn’t as good as a native app.

Daring Fireball Linked List: jQTouch
But the demos show just how far short even best-of-breed iPhone web apps fall compared to native apps.
John Gruber writes about jQTouch demos saying they "aren't great." It made me wonder what in particular he finds lacking - as those demos look exactly the same as their native counter parts to [...]

Does the modern browser landscape look excellent to you?

If you were able to say: "Fuck IE6" (at least being able to say: "it will work, but will be old school." Do you think we live in a world now where the browsers have "enough" features? That is to say - the javascript engines are fast enough to simulate features of other [...]

CouchDb: Replication halts between two databases and results in a hung erlang process

We were seeing a json error in the couchdb logs. Apparently 0.9.1 (because of MochiWeb) doesn't like certain UTF characters. Unfortunately, this causes replication to totally hang. That's a bummer. It looks like it's been patched:
http://issues.apache.org/jira/browse/COUCHDB-333
However, that's not in the 0.9.1 release.

Confused about CouchDB changes API?

If the couchdb book confused you regarding the changes api that supposedly exists:
http://books.couchdb.org/relax/reference/change-notifications
I think that's a 0.10 release feature (and not yet in 0.9.1). I stumbled upon this API which seems to do something very similar: http://wiki.apache.org/couchdb/HTTP_Document_API?action=show&redirect=HttpDocumentApi (scroll down to "all_docs_by_seq").

Fix string memory leaks in Ruby 1.8.6

UPDATE: This is rails-incompatible... which sucks.
Ruby 1.8.6 leaks memory in some surprising places. Even gsub and split on the String class cause some bad headaches. If you're using Haml and 1.8.6 - you are probably in a bit of trouble.
Read more: http://blog.edhickey.com/2008/12/03/memory-leak-in-ruby-186-string-class/
However, simply overwriting the offending methods fixes this memory leak at least. [...]