We built GabberTalk. Here’s a demo
I’ve noticed plenty of posts around the net on how to get this to work, but none of them worked as is for me on a Rails 3 Beta 3 app using Compass and the Compass 960 plugin
Here’s my cobbled together solution - it’s also a little simpler than some, as it doesn’t try and do things different for heroku and local dev - it keeps it the same, and seems to work OK.
1) Make sure you are using the latest gems
2) Make sure config/compass.rb has any plugins referenced, and set it’s css_dir to tmp/stylesheets - this is writable on heroku.
3) Create a initializer in config/initializers/stylesheets.rb , and set it to serve the generated stylesheets from tmp/stylesheets under /stylesheets . This has to be loaded before the Rack::Sendfile middleware, otherwise it will try to X-Sendfile the CSS file which doesn’t work on Heroku, rather than just rendering it’s contents.
If you want to use Rack::Test with Rails 3 and RSpec, you’ll want to add
to your spec_helper.rb
Once this is done, the tests will run fine. This is useful, because it allows the same tests to be used regardless of the backend - be it Sinatra, Rails 3, or raw rack
Excellent write up on a solid git branching strategy. I prefer the use master as the ‘integration’ branch though.
This would be useful if one ever has to do any php. Saves running up a full apache/nginxnstack
Good starting point for a bootstrap chef command.
Awesome canvas-based textile editor.
Google’s documentation for receiving XMPP messages on App Engine involves running the HttpServletRequest through XMPPServiceFactory.parseMessage to extract the details, however on Play you don’t get access to the HttpServletRequest, so you can’t use their message parser. Fortunately the message is really just POSTed form data, so you can easily extract it in a handler bound to “POST /_ah/xmpp/message/chat/” like this:
Emacs 23.2 has been released, so I’ve created a build for it for OS X, including typesters fullscreen patch. You can download it here: http://bit.ly/bwvZI5. It’s 64bit built on Snow Leopard - I havent tested it anywhere else.
I was giving this site a little tweak, and one thing I wanted to add was my current location to my contact details - I move around a lot, and getting calls at stupid hours was begging to get a little annoying.
The catch was, I didn’t want to have to update this information manually all the time - it would get tiresome quickly, and I would end up letting it go stale. I usually geotag tweets semi-regularly from my phone, so I figured that would be a great place to get the data.
I sat down, and whipped up a quick Sinatra application that looks for the latest tweet with coordinates, extracts them, and uses the google reverse geocoding service to determine the city name. To make it a little less stalkerish I kept the city as the finest level of granularity. This is then exported as a simple little JSON-P Service, as well as a redirect to a map of the location.
I deployed it to Heroku like usual, I love how simple they make it to get an app up and running. The running app can be found at http://whereami.lds.li, and the code is on github at http://github.com/lstoll/whereami
I integrate it in to this site with the following script: