Use Socket.gethostname. So for a machine whose hostname is "happycat", it will look like this: >> Socket.gethostname => "happycat" That should work...

When calling a scope like current_power.user?(user), Consul will no longer trigger a query if the users power selects all...

The way MySQL's FULLTEXT tokenizer splits text into word tokens might not always be what you need. E.g. it...

Upgrade the offending gem. If you cannot or don't want to upgrade, lock rake to 0.8.7.

You will get this when you are using the latest version of Rails with a recent version of Rack:

I needed a way to make my apps full screen from bash scripts. There is no super-easy way, but...

While you are probably using will_paginate to paginate ActiveRecord scopes, it can actually paginate plain Ruby arrays. The resulting...

fortawesome.github.com

40 new icons, spinner-style rotation with CSS animations, smaller file size, possibility to sub-set the font to only...

rubysource.com

Let’s take a look at what you need to do to get your app ready for Rails 4.

wordoid.com

A cozy place to pick a short and catchy name for your product, company or domain.

blog.remarkablelabs.com

With the impending release of Ruby on Rails 4, it looks like a lot of developers will be updating their...

Every time you call $(...) jQuery will create a new object. Because of this, comparing two jQuery collections with == will never...

makandra dev
css-tricks.com

Examples how to create dozens of shapes using pure CSS and a single HTML element.

elmcitycraftworks.org

I’ve worked on huge applications in Ruby and Rails before. I very much want to believe in DCI, but...

When doing a git blame, git will blame the person who added or removed white space in a line (e.g...

Microsoft Office pre-fetches hyperlinks using an internal DLL (which doesn't know about your cookies), follows all redirects and...

makandra dev
github.com

Axlsx is an incredible gem to generate "Office Open XML" spreadsheet files (XLSX). Does not break on large spreadsheets and...

makandra dev
relishapp.com

You can define methods in any example group using Ruby's def keyword or define_method method. These helper methods...

TLDR: In tests you need to clean out the database before each example. Use :transaction where possible. Use :deletion for...

When you have a Pull Request on GitHub that includes commits from another Pull Request, you will still see them...

When you are using git rebase and are currently editing a commit (due to a conflict, for example), you may...

Mark window as "demands attention" Install wmctrl through your package manager, i.e. sudo apt-get install wmctrl Download the attached...

cirw.in

If you ever wondered why a constant wasn't defined or wasn't available where you expected it to be...