July 19, 2011

Debugging WebSQL databases in Google Chrome

Debugging WebSQL databases in Google Chrome is straight forward, right? Just open up the developer tools (⌘ + ⇧ + I) go to the Resources Tab and select Databases. You can poke through the WebSQL databases of the current website there. But this won’t work if you are trying to inspect WebSQL Databases which have been created by a WebWorker! They just won’t show up in the Databases Tab. Luckily you can work around this problem easily: Chrome stores all WebSQL Databases locally on a per-domain basis at ~/Library/Application Support/Google/Chrome/Default/databases. Read more

May 26, 2011

Ruby on Rails and PDFKit

Disclaimer: this is a really passionate post about PDF generation in Ruby on Rails If you ever tried to generate PDFs in one of your Ruby on Rails projects you probably know plenty different ways to get PDFs out of your Ruby on Rails app: Prawn, Apache FOP, iText et cetera. I’ve worked with Prawn, Apache FOP and iText - all these solutions are completly impractical. Here is why: Prawn: for me, the Prawn DSL doesn’t work well with separation of concern: if you don’t watch out you’ll end up mixing your style- and layout code. Read more

February 12, 2011

painless `sudo` invokation

For quite some time now I’ve been working as an administrator to keep servers up and running. What bugs me most is remembering all those different root passwords, which at least need to be typed in once, after a remote ssh session has been started - to launch an interactive sudo shell via sudo -i. I used to store all these passwords in a note in my 1Password keychain - a safe solution, yet one that requires too much work to retrieve a password if I wanted to work on a server. Read more

© Raphael Randschau 2010 - 2022 | Impressum