Ruby's __FILE__ keyword returns the path to the current file. On popular for this are Ruby binaries: #!/usr/bin/env ruby...

For some years Google Chrome has allowed you to add desktop icon for any web page by going to Tools...

So you downloaded a theme for Chrome a while ago and don't remember which one it is?

This is quite an edge case, and appears like a bug in Rails (4.2.6) to me. Update: This is now...

Processes in Linux might be put into Swap ("virtual memory") occasionally. Even parts of a single process might be removed...

stackoverflow.com

When you are working with jQuery selectors and collections, many times you want to know if the collection actually contains...

to create a Gallery that has a name and has_many :images, which in turn have a...

jqueryui.com

UI sortable helps reordering items with drag 'n drop. It works quite fine. Proven configuration for sorting table rows

github.com

fake_stripe spins up a local server that acts like Stripe’s and also serves a fake version of Stripe.js...

guides.rubyonrails.org

ActiveRecord offers an explain method similar to using EXPLAIN SQL statements on the database. However, this approach will explain all...

Don't write resources :people, :concerns => :trashable Write resources :people do concerns :trashable end Why Writing a controller...

reddit.com

Chrome has discontinued support for 32-Bit Linux builds and this might break your apt-get update.

makandra dev

To delete a certificate request run sudo puppet ca destroy $your.full.hostname on your puppetmaster.

Until recently, you could open a new tab via window.open when using execute_script in Selenium tests. It no longer...

unix.stackexchange.com

As described by the linked Stackoverflow answer, run these commands: sudo add-apt-repository ppa:git-core/ppa -y

From time to time, RubyMine suddenly did not accept any keyboard input and felt crashed, while mouse interaction was still...

After restarting an OpenStack host you may encouter problems with missing iptables rules (we're on an quite old release...

While you can use Apache as a reverse proxy, it tries to be too smart. Try nginx instead, it's...

This is a guide on how to effectively use Git when working on a feature branch. It is designed to...

makandra dev
csstriggers.com

I figure we needed a definitive reference for what work is triggered by changing various CSS properties. It's something...

makandra dev
developer.chrome.com

In the DevTools settings, there's a "Shortcuts" section. Found these keyboard shortcuts there: General ESC Toggle drawer

This is how you regain disk space from OpenStack instances if you are using kvm and qcow. If your instance...

If you have problems installing a gem and get a error collect2: error: ld returned 1 exit status it's...

We organize our daily work with issues in our Linear workspace. Issue format A good issue needs to be precise...