40 new icons, spinner-style rotation with CSS animations, smaller file size, possibility to sub-set the font to only include the icons you need.
With the impending release of Ruby on Rails 4, it looks like a lot of developers will be updating their web applications in the coming new year.
To help with this transition, over the next 31 days, we are going to be releasing a series of blog posts going over everything you will need to know about Rails 4 for an effortless upgrade.
Examples how to create dozens of shapes using pure CSS and a single HTML element.
I’ve worked on huge applications in Ruby and Rails before. I very much want to believe in DCI, but I’m having a hard time accepting the promises of Clean Ruby when it seems like the work on this paradigm is half-done. If it weren’t so oversold and hyped, I think I’d be more patient, but right now I’m just frustrated and confused.
Axlsx is an incredible gem to generate "Office Open XML" spreadsheet files (XLSX). Does not break on large spreadsheets and supports a ton of features like graphs.
API looks mature and existing code is easy to migrate when coming from the
The documentation of some methods is a bit out of date, but you'll find your way around the gem's code.
No support for reading files, however. :( If you want to open XLSX spreadsheets (for example to confirm your output in tests), you can use [
When you have a Pull Request on GitHub that includes commits from another Pull Request, you will still see them after the "child" PR has been merged. Unfortunately, GitHub won't automatically update the diff (or commit list).
Here is what worked for me:
git checkout my-target-branch
git status). You should be 0 commits ahead or behind.
git add .please-update
Let’s take a look at what you need to do to get your app ready for Rails 4.
Every time you call
$(...) jQuery will create a new object. Because of this, comparing two jQuery collections with
== will never return true, even when they are wrapping the same native DOM elements:
$('body') == $('body') // false
In order to test if two jQuery objects refer to the same native DOM elements, use
var $a = $('body'); var $b = $('body'); $a.is($b); // true
Do this before you install the gem:
sudo apt-get install libffi-dev
When doing a
git blame, git will blame the person who added or removed white space in a line (e.g. by indenting), not the person who originally wrote the code.
git blame -w to ignore such white-space changes. You want this. \
Note that you can also use it when diffing:
git diff -w.
Consider this method, created by a user in commit
def hello 'world' end
$ git blame foo
d47bf443 (Arne Hartherz 2012-12-19 14:44:38 +0100 1) def hello
d47bf443 (Arne Hartherz 2012-12-19 14:44:38 +0100 2…
Previous versions of Consul exhibited strange behavior when querying a power that returns
Consul 0.4.2+ behaves as expected:
power.notes # => returns nil power.notes? # => returns false power.notes! # => raises Consul::Powerless power.note?(Note.last) # => returns false power.note!(Note.last) # => raises Consul::Powerless
Generate dummy images for a given dimension and topic.
A cozy place to pick a short and catchy name for your product, company or domain.
If you wear a lot of hats in a small team, or if you feel like your projects could be more successful if they looked better, this is for you. Here are five traditional elements and principles of art and design that will cure the ugly (or at least disguise it).
jQuery plugin for equalizing the height or width of elements.
Microsoft Office pre-fetches hyperlinks using an internal DLL (which doesn't know about your cookies), follows all redirects and opens your browser with the result. This is because of stupidity.
The "fix" is to not redirect but just render a text like "access denied" with 200 OK when you see that
The following stopped working with git version 188.8.131.52 or higher
When you are using
git rebase and are currently editing a commit (due to a conflict, for example), you may want to know the current commit. \
Luckily, there is lots of useful stuff in the
Useful if you want to inspect the original commit for its changes, for example like:
git show `cat .git/rebase-merge/stopped-sha`