github.com

An alternative to this technique is using VCR. VCR allows you to record and replay real HTTP responses, saving you...

github.com

PaintbrushJS is a lightweight, browser-based image processing library that can apply various visual filters to images within a web...

Open the configuration file: gksudo gedit /usr/share/vte/termcap/xterm Find a line like this: :co#80:it#8:li#24:\

makandra dev

Ubuntu lets you mount an SSH shell into Nautilus from Places -> Connect to server (select "SSH" as server type).

Screen is great for long running tasks, where you want to log in every few hours and days and keep...

In a nutshell: to avoid your shell character set from messing with imports, use -r to export and SOURCE when...

makandra dev

From the shell: ls -l | wc -l

makandra dev
github.com

Currently not possible as the linked .htc file contains JavaScript which is not explicitly called. The developers are working on...

makandra dev
prototypejs.org

For example, to send a form and populate a preview div with the response. $('content_form').request({ parameters: { 'preview': "1...

thinkvitamin.com

Increasingly web application developers and entrepreneurs are turning to the “Software As A Service” (SaaS) model to monetize their products...

github.com

A fake filesystem. Use it in your tests.

weblog.muledesign.com

You’re a business, calling a business, about conducting business. Don’t be surprised when money comes up.

blog.peepcode.com

The Rails router has been written and rewritten at least four times2, including a recent rewrite for the upcoming Rails...

github.com

Ancestry is a gem/plugin that allows the records of a Ruby on Rails ActiveRecord model to be organised as a...

In Webkit you can use the HTML5-attribute autofocus: = form.text_field :title, :autofocus => 'autofocus' Here is a jQuery fallback for...

When a Cucumber feature leaves your page through an external Link, Webrat has problems like "Could not find field: "E...

makandra dev

This may be awkward to set up, but will work once you're done. Fun facts:

To retain all branches you can try the svn2git tool. However, this tool has some bugs. To only import the...

Create a branch: svn copy https://dev.makandra.de/svn/filepanic/trunk https://dev.makandra.de/svn/filepanic/branches/$ticketnumber_shortdesc Don't just copy the folder into your working...

morris-photographics.com

Some browsers render PNG images with color profiles and other shenanigans, some don't. The cleanest way to have consistent...

Most of these will not work in newer projects because these use the Capybara/Rack::Test combo in lieu of Webrat...

When a paperclip attachment gains a new style and you have many attachments, reprocessing can take ages. This is because...

script/runner -e development 'Article.all.each { |a| a.image.reprocess! if a.image.exists? }; "done"'

Until May 2011 our gems have been created with Jeweler, which is a helper library to package code into a...