makandra dev
github.com

Nested exceptions for Ruby: When you rescue an error and then re-raise your own, you don't have to...

Web applications can be used by multiple users at the same time. A typical application server like Passenger has multiple...

This is useful to kill processes like ruby my-script.rb: pkill -f my-script.rb With great power comes great responsibility.

When you want to look up a class for a given factory, do it like this: >> FactoryBot.factories.find('admin').build_class...

To achieve this goal you have to setup the session store like the following example: MyApp::Application.config.session_store( :cookie_store...

This guide shows how to create an AngularJS application that consumes more and more memory until, eventually, the browser process...

I've pushed an update to Cucumber factory that simplifies working with FactoryGirl factories. Say you define a factory with...

If you get this error (probably because you want to load some modules): # modprobe xt_comment FATAL: Could not load...

I couldn't successfully execute a simple iptables command and got this error on an Ubuntu server: # /sbin/iptables -I INPUT...

makandra dev
github.com

Geordi 1.0 features a command line application geordi, that holds most of Geordi's previous commands. New features

github.com

Jonas Nicklas, the author of Carrierwave and Capybara, has released Refile, a gem for handling file uploads in Rails. It...

Here is a Javascript function reloadUsers() that fetches a HTML snippet from the server using AJAX and replaces the current...

When running Selenium features with parallel_tests, some browser-server interaction might take longer than usual and the impatient Capybara...

github.com

Capybara-screenshot can automatically save screenshots and the HTML for failed Capybara tests in Cucumber, RSpec or Minitest. Requires Capybara...

developer.mozilla.org

You can do so much more than console.log(...)! See the attached link for a great breakdown of what the developer...

blog.phusion.nl

Interesting approach to caching responses directly in the HTTP server, based on the value of an individual cookie.

If you want a class-like construct in JavaScript, you can use the module pattern below. The module pattern gives...

The Angular 1.2 way: # By default, angular returns undefined for invalid attributes which removes # the value from the form field...

phusion.github.io

Traveling Ruby is a project which supplies self-contained, "portable" Ruby binaries: Ruby binaries that can run on any Linux...

askubuntu.com

Adobe no longer supports their PDF reader on Linux and the official page does not offer it for download. \

Option 0: Download from the official page (preferred) Open https://googlechromelabs.github.io/chrome-for-testing/ In Section "Stable" > chromedriver / linux64 > Download ZIP from...

The Angular ngSrc directive serves to properly set an image src via Angular. As anything in Angular, it updates the...

If you get one of this errors: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: ( ): found...

For our production servers we use Passenger as a Ruby application server. While it is possible to use Passenger for...