jwz.org

An ancient essay on software design that, after 20 years, should still guide you for every line of code you...

dehora.net

All you need to know about the rise and fall of programming languages. Not really related to the worse is...

When rendering a number, you want to pretty up the string coming from #to_s: Render 0.0 as 0

shopify.com

Most web applications contain several examples of state machines, including accounts and subscriptions, invoices, orders, blog posts, and many more...

yehudakatz.com

Yesterday, there was a blog post entitled “What the Hell is Happening to Rails” that stayed at the number one...

makandra dev

You can unpack a .tar.gz file into the current directory like this: tar -xzvf archive.tar.gz The options used are

Because your examples should not change global state, you should not need to care about the order in which RSpec...

I encountered a bug in RSpec 1.x where stubbed class methods ("static methods") would not be unstubbed before the...

successfulsoftware.net

Choosing the right product to develop is crucial. Great execution is also very important. But if you develop a product...

geordi, our collection of awesome shell scripts, has been extended by three scripts to help you call RSpec or Cucumber...

you should always has_many :join_models, :dependent => :destroy

superuser.com

Ubuntu natty introduced new "invisible" scrollbars for GTK programs such as gEdit or Nautilus. If you do not like them...

askubuntu.com

When using gnome-open (i.e. double-clicking a file, telling to browser to open a download, etc.) on Ubuntu you...

For Email-Patterns see most recent E-Mail-Pattern. HOST = /\A[a-z0-9]+[a-z0-9\-\.]*[a-z0-9...

My front audio output would not work even though the front mic input did fine. The Pulse Audio mixer (= Ubuntu...

This will install a printer called "PDF": sudo apt-get install cups-pdf Files will be put into ~/PDF/ without...

(Rails has a method ActiveRecord::Relation#merge that can merge ActiveRecord scopes. However, its behavior has never been clear, and...

You know there is the du command to fetch the disk usage of a directory (“.” in this example). By default...

When using the resource_controller gem you often hook onto events like this: update.before do do_something end

To check your apache2 config files for syntax errors run sudo apache2ctl configtest or shorter sudo apache2ctl -t

In order to request a SSL certificate from any dealer, you usually need a CSR certificate. As both the CSR...

This snippet makes links that refer to an anchor (like "...

...") scroll softly to it.\ In this example we only do...

schema.org

If you would like to enrich your website with semantic markup like contact data, places or events you should have...

Note: In Rails 3+ you can use Array.wrap instead of the solution here. In the past you could use Array...