...embedded web fonts in the past years (e.g. by copying CSS from a Font Squirrel @font-face kit), that CSS won't work in Internet Explorer 9.

...it by turning these styles... @font-face font-family: 'MyFont' src: url('myfont.eot') src: local("☺"), ('myfont.ttf') format("truetype") font-weight: normal font-style: normal ... into these: @font-face

When creating an ActiveRecord with .new, .create or create!, you cannot set the ID attribute (note: When using Machinist's .make you can). This is because even when you are...

...are always protected. These attributes are #id and #type. If you want to allow setting #id on .new, .create or create! you can include the attached module in order to...

...iconv -f UTF-16 -t UTF-8 de_neu.dic -o ~/Documents/dic/de_neu_utf8.dic In RubyMine: Go to Settings (CTRL + ALT + S) > Editor > Spelling > Dictionaries and add the folder ~/Documents/dic

lesscss.org

...run by your web browser. As any JavaScript, you include a link to the script in your HTML, and…that’s that. LESS is now going to process LESS code...

stackoverflow.com

top: 0; bottom: 0; /* Aligns Vertically */ left: 0; right: 0; /* Aligns Horizontally */ } /* Make sure the centered element fits into its container. If you know that's the case, you...

timeless.judofyr.net

...unknown, technique in Ruby. For certain types of problems (e.g. when you have a set of rules) this gives you such an elegant way of describing the solution. There’s...

...no meta programming or monkey patching involved, it’s short and sweet and best of all: it’s very intuitive...

jamesgolick.com

Trample is a more flexible load simulator. Instead of a static list of urls, trample's configuration language is ruby. Using ruby's blocks (lambda functions), it's possible to...

blogs.concedere.net

The goal of modelling is to produce something substantially simpler than the world. This is achieved not through endlessly inventing new types and relationships -- in fact, it's just the...

...s by eliminating entities and restricting types that we get a model that's simpler than the world and thus useful...

github.com

When CoffeeScript was added to Rails 3.1 they forgot one very important part, the ability to use it when responding...

sgruendel.blogspot.com

When you install Type 1 fonts (like makandra's corporate typeface), they won't show up in OpenOffice. OpenOffice requires some additional files to process them. Stefan Gründel found out...

There is a tool that can produce the missing files: sudo apt-get install t1lib-bin Now you can create .afm files: cd ~/.fonts type1afm *.pfb

kernel.org

...merge in the file named with %A by overwriting it, and exit with zero status if it managed to merge them cleanly, or non-zero if there were conflicts...

blog.peepcode.com

...at least four times2, including a recent rewrite for the upcoming Rails 3. The syntax is now more concise. But never mind making it shorter! It’s time for a...

theexciter.com

...when there’s a gem update I know that it has actually been tested somewhat and it’s not just whatever random point HEAD happens to be at, at that...

m.onkey.org

decided to go fixtureless with Shoulda + Factory Girl. All good, except one problem. Slow as fuck tests. So here’s fast_context as a solution for it. fast_context compiles...

...all the ‘should’s within a context into a single test...

css-tricks.com

...the ‘border’ of any block level element gets factored into it’s final box size for layout. That means that if you add a border on a hover to an...

...element that didn’t already have a border of that exact size, you will cause a layout shift...

documentcloud.github.com

...a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built...

staringispolite.com

...time programming languages understood what the kids are typing these days. So let's start with a baby step in that direction: Like, Python...

daringfireball.net

...Apple does not want is for some other company to establish a de facto standard software platform on top of Cocoa Touch. Not Adobe’s Flash. Not .NET (through MonoTouch...

javascriptweblog.wordpress.com

Inspired by a snippet of code in Oliver Steele’s legendary Functional library, here’s a lightweight tool to help keep track of JavaScript invocations. It works in Chrome, Safari...

hagenburger.net

Lemonade’s goal as a sprite generator is to be incredible easy to use, so you’ll use ist for every project—just because there’s no overhead. It needs...

...no configuration, no Rake task, no Photoshop, just a little change in your Sass or SCSS files...

alistapart.com

...remember that the pain is temporary. It’s a little like a vaccine—the shot hurts now, true, but it’s really not that bad in comparison to the disease...

teddziuba.com

The problem isn't that Git is to hard, it's that smart developers are impatient and have exactly zero tolerance for unexpected behavior in their tools. While Git is...

...now, perhaps some day you will come across a grizzled developer who is using SVN, and when you ask him why, his answer won't make sense, because it's...

makandracards.com

Default to strict sandbox mode...

...for example through an Ubuntu release upgrade) you might notice that Thunderbird will not show any of your old e-mails or settings. This results from a different directory being...

...used for storing profiles and configuration. You can replace the blank profile with your old one like this: cd ~ mv .thunderbird .thunderbird-invalid cp -R .mozilla-thunderbird .thunderbird