ALTER DATABASE database_name CHARACTER SET "utf8"; ALTER DATABASE database_name COLLATE "utf8_unicode_ci"; After that, for...

makandra dev

From the shell: ls -l | wc -l

github.com

home_run is an implementation of ruby’s Date/DateTime classes in C, with much better performance (20-200x) than...

makandra dev
github.com

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

When you get this while installing the raspell gem: ERROR: Error installing raspell: ERROR: Failed to build gem native extension...

When you get this error: No word lists can be found for the language "de". An aspell dictionary is missing...

tinyMCE.activeEditor.getContent()

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...

javascriptcompressor.com

Compress and obfuscate Javascript code online completely free using this compressor.

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...

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...

makandra dev

Desktop: 1440x900 / 1680x1050 (19"- und 22"-Widescreen-TFTs) iPad: 768x1024 Notebooks 1280x800 (13.3"-15.4", 16:10) 1440x900 (15.4", 16:10) 1680x1050 (15.4"+, 16:10) older notebooks cf. Desktops...

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

has_attached_file( :avatar, :styles => { :large => "300x300", :small => "100x100" }, :convert_options => { all => "-colorspace RGB" } )

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