Debugging docker containers with gdb and nsenter.

Many a time you feel the need to debug a process running inside the container with gdb (or anything that uses ptrace). It is not as straightforward (at least for now) as attaching gdb to host pid of the container process or to docker client/daemon. You can go about in following ways: If you try Continue Reading

Slides from PLMCE 2014 breakout session

As many of you already know, PLMCE is an annual MySQL community conference and Expo organized by Percona in the month of April (usually). It is a great conference, not only to meet new and eminent people in MySQL and related database fields, but also to attend interesting talks, and also to give some. This Continue Reading

My twitter setup

I have been using Twitter for a while under the handle randomsurfer. I tend to use web interface sometimes, but regularly I use the command-line/ncurses interface. There are two main clients that I use regularly. One is ttytter which is a nice command-line client which offers advanced functionality such as creating/editing lists and scripting. Refer Continue Reading

Annoying access keys on web pages

HTML access keys were introduced to improve web accessibility and they still seem to serve that purpose. Wikipedia defines them as “In a web browser, an access key or accesskey allows a computer user to immediately jump to a specific part of a web page via the keyboard.” If you view hover over the link, Continue Reading

MySQL file limit, table cache and max_connections

MySQL variables open_files_limit, table_open_cache and max_connections are inter-related, and this is for obvious reasons: all deal with file descriptors one way or another. If one of the value is provided but others are left out, mysqld calculates others using a formula and in some cases, emits a warning if not possible. The whole calculation behind Continue Reading

Saving form data in firefox

When commenting on sites, I have sometimes, seen that the commenting system just swallows the comment, or there is a browser crash, or a system one. In these cases it would be great if you can recover it somehow, particularly when you typed quite a bit. There are plugins for firefox and other browsers for Continue Reading


I finally installed wordpress on my site, replacing the old home-brewed ‘blog’. The next question being why wordpress. Yes, there are many, and yes, WordPress has a history of vulnerabilities. But, I went for WordPress because I felt it was more feature complete and it didn’t require more work from my end, two good reasons Continue Reading

%d bloggers like this: