Logging tcpdump output all the time can create a huge amount of data. This can be both: too much data...
I had a very frequent cronjob that in rare cases could be relatively slow. To avoid multiple instances of this...
Ruby has a set of methods to convert an object to another representation. Most of them come in explicit and...
Ruby allows multiple assignment: a, b, c = o In order to prove multiple values from a single object, Ruby calls...
If you have problems installing a gem and get a error collect2: error: ld returned 1 exit status it's...
If you need a postgresql extension for your database it isn't a good idea to give your applications database...
Each time thin boots, it prints a boot message : Thin web server (v1.6.3 codename Protein Powder) Maximum connections set to...
CTRL + SHIFT + ALT + N Search for any symbol in your application, like CSS classes, Ruby classes, methods, helpers etc...
There are times when you have a chunk of text that you want to do something with, e.g. replace something...
It is a common misunderstanding that all [op]=-operators work the same way, but actually they don't. ||= and &&=
To find a hash key by it's value, i.e. reverse lookup, one can use Hash#key. It's available...
When your system is not running on English, you may sometimes want to run some applications and not use your...
Microsoft Exchange service administrators can enable Exchange Web Services (EWS) which is a rather accessible XML API for interacting with...
So you have placed a breakpoint somewhere and now want to dig around, but not even inspecting variables is working...
The debugger gem does not seem to be properly working on Ruby 2. Use byebug instead! Byebug is a simple...
When you tell rbenv to install a Ruby it does not know about, you will get an error message.
RSpec 3.0 deprecates the :should way of writing specs for expecting things to happen. However, if you have tests you...
Use the following command to test if a server (in this example: makandra.com on port 443) uses Perfect Forward Secrecy...
Rbenv won't compile REE 2011.03 properly on Ubuntu 12.04, failing with an error in tcmalloc.cc. If you want to...
Sometimes you need to monitor a connection from your machine to a specific, single host or network in order to...
So you're switching to PostgreSQL from MySQL? Here is some help... General hints on PostgreSQL \? opens the command overview...
After running bundler / gem install I could not load nokogiri lately. It died with cannot load such file -- nokogiri/nokogiri.
Access the Method object Dead simple: Get the method object and ask for its owner: "foo".method(:upcase) # => #
Apache HTTP server benchmarking tool (ab) is a nice tool to test performance on sites delivered by HTTP. If the...