...you want to delete from. Let's say that Post belongs_to :author. In order to delete all posts from the author named "Eric", write DELETE posts FROM posts LEFT...

makandra dev

...shell into Nautilus from Places -> Connect to server (select "SSH" as server type). In order to copy a file over SSH from a shell: scp filename username@remotehost:

...than one process to a version can cause MiniMagick to run multiple commands. In order to have all processing done in one mogrify system call, you'll need to define...

Ruby allows multiple assignment: a, b, c = o In order to prove multiple values from a single object, Ruby calls #to_a on the object: o = String.new('O')

Make sure you call the methods in the following order and not vice versa: has_attached_file :image validates_attachment_presence :image Validation with condition works fine, too: validates_attachment...

On your credit card summary, you will find order numbers of rides with Deutsche Bahn ("DB BAHN A-NR XYZ123") If you need to find out details about the ride...

...Selenium are very slow. You might not want to run them every time. In order to skip all Selenium scenarios, call Cucumber like this: cucumber --tags ~@javascript

In order to open a MySQL shell without the need to enter user and password, you can say the following in any Rails 2 project: script/dbconsole -p

In order to prevent the browser from asking whether to remember the password, give a form an autocomplete attribute with the value off: ... Rails example form_for @model, :html => { :autocomplete...

developer.mozilla.org

...pages. One of those preferences, security.mixed_content.block_active_content is now enabled by default in order to enhance user security. That means insecure scripts, stylesheets, plug-in contents, inline frames, Web...

dev.mysql.com

Usually our mysql queries are not case sensitive. In order to query case sensitive, you can use the mysql COLLATE clause. The collate clause lets you specify a collation, which...

Embedded Flash movies do not always obey element order and z-index. To fix this, set the wmode attribute to transparent in both and tags...

...database_name", pg_database_size(pg_database.datname)/1024/1024 AS size_in_mb FROM pg_database ORDER by size_in_mb DESC; Want to see database sizes in MySQL...

In order to rename your Ubuntu box, replace all occurences of the the old name in the following two files: /etc/hostname /etc/hosts After a reboot your hostname is changed. If...

makandra dev

Spreewald 1.1.0 drops the be_true and be_false matchers in order to be RSpec 3 and Ruby 2 compatible. For backward compatibility, these matchers are replaced with == true and...

makandra dev
ohshitgit.com

...you already know the name of the thing you need to know about in order to fix your problem. So here are some bad situations I've gotten myself into...

makandra dev

...for no apparent reason, chances are one of your views contains a BOM (Byte Order Mark). To remove it, open the file with VIM, and type :set nobomb

bonsaiden.github.com

...aim to teach you JavaScript. Former knowledge of the language is strongly recommended in order to understand the topics covered in this guide

In order to bring up a textual description of a Capistrano task you can say cap -e taskname ... where taskname is the name of the task you're not sure...

...of Matthew O'Riordan, who has spent more time than you ever will in order to produce a fix. You should probably use this solution. Note that I haven't...

SELECT table_name, table_rows FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'your_database' order by table_rows...

getsprockets.org

...It takes any number of source files and preprocesses them line-by-line in order to build a single concatenation. Specially formatted lines act as directives to the Sprockets preprocessor...

ctan.larsko.net

You can use this package that takes care: \usepackage[final]{pdfpages} In order to insert a PDF, use: \includepdf{$filename} See the external link for more options...

In order to open a Nautilus window in your terminal's working directory, you can say: