Clearance is a gem that provides authentication functionality (e.g. login, logout). This note explains, how the clearance login, logout and...

To show the MySQL default character set you have to login to the MySQL console and execute SHOW VARIABLES LIKE...

makandra dev

If you want to know the exact hits on your website (or whatever logfile you want) for a specific date...

The Rails logger will store its content in a buffer and write it into the file system every 1000 lines...

commandlinefu.com

The colors in Rails log files are helpful when watching them but, since they are ANSI color codes like ^[[4...

makandra dev

This will reduce the filesize of foo and bar to 0 bytes: truncate -s0 foo bar If the files do...

stackoverflow.com

Most likely you run rake and your code is causing an exception which is not the one shown in your...

When your Solr seems to be started properly (a process is running with the correct data directory) but never responds...

If your application raises an error like ... Couldn't connect to the Solr server at http://127.0.0.1:8983/solr. 500 "Lock...

I believe that when WEBrick has trouble bringing up your Rails application, the WEBrick component that is supposed to print...

When you create a temporary file (e.g. to store a generated Excel sheet) and try to send it to the...

Note: Consider using MATE instead of Gnome 3 on newer system Awesome is a very good tiling window manager that...

devnet.jetbrains.net

To activate the shell command, go to Tools > Create Command-line Launcher and confirm. Now you have mine as bash...

superuser.com

Ubuntu natty introduced new "invisible" scrollbars for GTK programs such as gEdit or Nautilus. If you do not like them...

httpd.apache.org

If you want to have a new log file every day automatically, but avoid using logrotate, the CustomLog directive is...

makandra dev

When installing RMagick you may get an error messages like this: Version 2.13.1: checking for Ruby version >= 1.8.5... yes

From time to time we're convinced that an error must be very close to the network card, OS IP...

This is for those who already own an SSL certificate (e.g. using it in the Apache HTTP Server) and need...

When your site is mapped into the URL-space of another server using mod_proxy, ProxyPass and ProxyPassReverse, all requests...

If you want to see how long your database queries actually take, you need to disable MySQL's query cache...

ubuntuforums.org

Keyboard layout reverting to US on (every) reboot Cause: I found the same problem, but only on my wife...

Screen is great for long running tasks, where you want to log in every few hours and days and keep...

makandra dev

This may be awkward to set up, but will work once you're done. Fun facts:

web.archive.org

This note shows how to merge an ugly feature branch with multiple dirty WIP commits back into the master as...