...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

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...

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

makandracards.com

With the new unpoly client side templates (available since 3.10) there's another way to substitute the ids of inserted nested attribute forms which I added to this card...

Best results in other decks

blog.cloudflare.com

What is netfilter's Connection Tracking system? The connection tracking system often referenced as nf_conntrack is part of the Netfilter framework. It allows the Linux kernel to keep track...

...of all logical network connections and sessions. In combination with iptables this feature is used to achieve a stateful firewall. Why to care about nf_conntrack? All connections are stored...

To get parent of Capybara's node do the following: node = page.find '#selector' parent = node.find(:xpath, '..') parent_of_parent = node.find(:xpath...

Search in all decks