cssdiscussion.com

If you want your application to display properly on iPad, iPhone or Android there are two things to do:

Update: This trick probably isn't very useful anymore in Ruby 2.x. The Ruby GC has improved a lot...

If you want to iterate over a Range, but only look at every n-th element, use the step method...

When your block takes an argument that should have an default, only in Ruby 1.9 you can say: block = lambda...

Styling button tags across all major browsers is not easy. Many times you should be fine by using the native...

If you need to do calculations inside the database and can not use Ruby objects you may run into problems...

This is non-trivial because you need to fake event objects and require different code for different browsers. Luckily, there...

For clarity and traceability, your commit messages should include the ID and title of the Pivotal Tracker story you're...

It can be useful to have a Ruby expression like condition ? positive_case : negative_case in MySQL queries:

If you have several submit elements (inputs or buttons with type="submit") that each cause different things to happen (e.g...

web.archive.org

With its you can switch the subject of an example to a method value of the current subject: describe Array...

When Paperclip attachments should only be downloadable for selected users, there are three ways to go. The same applies to...

The box shadows created rendered in IE by CSS3PIE look darker and are blurred differently than in browsers that render...

github.com

There are three ways to define your own RSpec matchers, with increasing complexibility and options: 1) Use RSpec::Matchers.define

When you create e.g. a sidebar box that contains headlines and paragraphs, the final paragraph's margin in that box...

When deploying Rails applications you might have noticed that JS and CSS are not cached by all browsers.

When working with times and dates in Rails applications, you need to deal with the following problem: In Rails, Time...

Use this if you want to show or hide part of a form if certain options are selected or boxes...

regular-expressions.info

You can write regular expressions some different ways, e.g. /regex/ and %r{regex}. For examples, look here. Remember that it...

makandra dev

Show all sockets (Unix & TCP/UDP), both listening and established ones: netstat -anp To limit the output e.g. to listening TCP...

makandra dev

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

makandra dev

Basic configuration Please keep this config simple. It should be a starting point for new developers learning Git. [user]

axonflux.com

/^([\w!#$%&'*+-/=?^`{|}~]+.)*[\w!#$%&'*+-/=?^`{|}~]+@((((([a-z0-9]{1}[a-z0-9-]{0,62}[a-z0-9]{1})|[a-z]).)+[a-z]{2...