icomoon.io

...offers a free app to build custom icon webfonts. It offers downloads as webfont set (.eot, .ttf, .woff, .woff2) or as icon set of SVG and/or PNG and many more...

...file types, or even SVG sprites. From my experience, the frontend developer should create the font, and not the designer. There are many tweaks required during font development, and routing...

shapeshed.com

I've recently moved from using Parallels for browser testing to Sun's Open Source VirtualBox. Here's a walkthrough on how to get a browser testing suite for free...

Every now and then, Java is subject to security issues where code can break out of Java's sandbox and obtain more privileges than it should. In almost all cases...

...by attacks via the Java browser plug-in, for example by malicious ad banners. Since removing Java completely is not an option for us, make sure the Java plug-in...

...request headers, response headers and payloads. What is HTTP/2? Digging deeper Use curl to save a copy of http://www.sueddeutsche.de/. Use curl to save the CSS stylesheet of sueddeutsche.de...

What is SSL / TLS? Why do we need it? How do SSL certificates work? What is a "certificate authority"? What's the significance of the "Common Name" entry...

This is a way to run multiple redis server on one ubuntu server. These steps you have to do only once: Adjust init script Change some Variables. From this:

...ARGS=/etc/redis/redis.conf NAME=redis-server DESC=redis-server PIDFILE=/var/run/redis.pid to this: NAME=`basename ${0}` DAEMON_ARGS=/etc/redis/${NAME}.conf DESC=${NAME} PIDFILE=/var/run/${NAME}.pid Move redis configuration ^

Cucumber step argument transforms can be a powerful way to make your steps more flexible. Note however that if your transform only matches a substring (no ^ and $ markers at the...

...beginning and end), you are still expected to return a replacement for the whole string that was piped through the transform. If you don't do that, you will truncate...

In order to save the original value of a constant, set the new value and restore the old value after a scenario was completed, you can use the following helper...

...It takes care of saving the old constant value, setting the new one without throwing warnings and resets the value with an After hook. This module also enables you to...

...Eventually you will want want the same detection logic to be available on both server and client side. This card shows how to get a Ruby method touch_device? for...

...detecting touch devices by grepping the user agent, and the keyword list we are sniffing for sure is lacking many unpopular phones. In your ApplicationHelper: def touch_device?

If your application has forms to edit string fields, you probably want to strip the entered values (remove whitespace from beginning and end). The reason is that your users will...

...one will usually notice this until you get the weirdest bug reports (e.g. two seemingly equal records are not, or multiple records for "unique" values). Use the attached trait in...

...don't do JavaScript rendering on the client, it's best practice to put script tags at the bottom of the HTML. This way, the page can start to render...

...before scripts have been loaded and run. The caveat is that you also have to move all other script tags from your views to the bottom of the page. This...

...reduce the pain is to to use Underscore.js's functions like _.each, _.map or _.select, which unfortunately clutters your code with awkward calls to the _ helper. Fortunately when you use...

...has a very versatile for keyword that can do anything that each, collect or select can do. Enjoy! each for item in items ... collect / map ages = (person.age for person in...

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