The following code doesn't work like expected: page.find(css_selector).find(other_css_selector) The second .find will search...

opensoul.org

Great presentation about writing Javascript like you write everything else: Well-structured and tested. JavaScript is no longer a toy...

singlepageappbook.com

Great look at the tradeoffs between progressive enhancement with jQuery or similiar, vs. client-side views.

tenderlovemaking.com

In Ruby, the meaning of protected and private is different from other languages like Java. (They don't hide methods...

stackoverflow.com

Access the Method object Dead simple: Get the method object and ask for its owner: "foo".method(:upcase) # => #

Establishing a TCP connection to a SSL secured remote service is not possible using telnet or nc. Though, you can...

chartjs.org

Chart.js seems to be a good alternative to Google's Chart API and other commercial chart drawing libraries.

Rails flashes (FlashHash) track a list of used keys, which is not respected when comparing flash hashes.

For example if you use rvm and get this message: ERROR: Loading command: install (LoadError) no such file to load...

coding.smashingmagazine.com

Smashing Magazine lists some handy tricks for print style sheets, all with CSS: Expand External Links For Print

cssmatic.com

CSSmatic lets you play around with four rather complex CSS stylings and gives you CSS or SASS code to use...

browserhacks.com

The linked site lists a wealth of CSS hacks that let you apply styles to just that one browser. You...

Since there are more and more touch-capable devices out there, as a web-developer it becomes more and more...

Consider this class: class Foo private def test puts "Hello" end end While you can say create a block to...

...Mar 2013 11:56:03 CET +01:00 >> Time.current.to_s(:db) => "2013-03-15 10:56:03" # This is now UTC Problem That will blow up in your face when...

...Sat, 01 Jan 2050 00:15:00 CET +01:00 >> Time.current.to_s(:db) => "2049-12-31 23:15:00" # This is the correct representation of our time.

Ruby 1.8 (supplied by Rails' ActiveSupport) >> BigDecimal.new("0.1").floor.class => BigDecimal Ruby 1.9 (supplied by Ruby 1.9 itself) >> BigDecimal.new("0.1").floor.class...

robots.thoughtbot.com

Guide how to make fixes in other people's GitHub repositories. It's basically "Open Source Development 101".

Google Chrome saves your profile data in ~/.config/google-chrome. To transfer the profile to for example a system you have setup...

jeff.dallien.net

When you use heredoc, string interpolation is enabled by default: x = "Universe" <<-MESSAGE Hello #{x} MESSAGE # => "Hello Universe"

makandra dev

Sometimes it seems a favicon does not work because your browser displays an old version or (in case of local...

web.archive.org

TL;DR: You should generally use #size to count associated records. size Counts already loaded elements If the association is...

Given you use Capistrano together with bundler to automatically install your gems when deploying. I recently had the problem that...

makandra dev
thestartuptoolkit.com

Good collection of crash-course articles about founding a start up, getting funded, validating ideas, etc.