Great presentation about writing Javascript like you write everything else: Well-structured and tested. JavaScript is no longer a toy...
In Ruby, the meaning of protected and private is different from other languages like Java. (They don't hide methods...
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...
Rails flashes (FlashHash) track a list of used keys, which is not respected when comparing flash hashes.
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...
Do not pass times to date attributes. Always convert times to dates when your application uses time zones. Background
Rails understands a :limit options when you create columns in a migration. Its meaning depends on the column type, and...
Sometimes it seems a favicon does not work because your browser displays an old version or (in case of local...
TL;DR: You should generally use #size to count associated records. size Counts already loaded elements If the association is...
Here is a hacky way to load dumps directly from the source server, without fully copying them over and extracting...
When MySQL refuses to use your index, there's a number of things that you may be doing wrong. One...
Good collection of crash-course articles about founding a start up, getting funded, validating ideas, etc.
tl;dr: Do not use merge! for session hashes. Use update instead. Outline Let's assume you're modifying the...
JavaScript has no built-in functions to compare two objects or arrays for equality of their contained values.
Watch out when saying something like 1.year in Rails. The result is not a Fixnum and can cause unexpected errors...
MongoMapper is a MongoDB adapter for Ruby. We've forked it so it works for Rails 2.3.x applications running...
If you open a pop-up window [1] in your Selenium tests and you want to close it, you can...
So you have a method returning a regular expression but one case that should not yield a matching Regexp object...
If others on a call (Skype, SIP, ...) can not hear you loud enough, your volume levels are probably too low...
So you're using multiple remotes that offer the same branch? $ git branch -a | grep my-branch remotes/something/my-branch remotes/origin/my-branch
You either have an old version of Mocha and an edge version of Rails 3.2, or you have a new...