You are here


Vim: Rejoin paragraph with forced line breaks / hard-wrapped multiple lines

Submitted by Druss on Sun, 2014-06-29 00:42

Some documents contain paragraphs which are wrapped often at the 80 character mark to help with formatting and readability. This is sometimes accomplished using forced line breaks which can be quite annoying especially when you want to reverse it as I did earlier today. Rather than messing with regex and weird edge cases, use Vim which provides a lovely solution! Here it be:

Starting krfb in minimised mode

Submitted by Druss on Mon, 2013-08-05 16:16

I've got Kubuntu running my HTPC and XBMC starting up in full screen on boot. Besides XBMC's remotes which I operate from an Android tablet, I also use a VNC client on said tablet to connect to the HTPC to operate other programs. As a VNC server, I've got krfb also starting up on boot which is where my problem lies. krfb does not start minimised in the system tray. There is also no option to get it to do so in its configuration screen.

Here is a guide on how I have krfb configured to start it minimised.

Upgrading KTorrent in Kubuntu Precise

Submitted by Druss on Tue, 2013-05-14 12:24

KTorrent on the LTS release of Kubuntu—Precise Pangolin aka 12.04—is perfectly fine except for the fact that it comes only with version 4.1. Unfortunately, this package is missing a few features that I was looking for, especially the option to add magnet links via its web interface.

Upgrading from 4.1 to 4.3 (the latest version at the time of writing) is pretty straightforward if one is happy to accept PPA sources.

PDOException: SQLSTATE[HY000]: General error: 144 Table 'cache_menu' is marked as crashed and last (automatic?) repair failed: DELETE FROM {cache_menu};

Submitted by Druss on Tue, 2013-04-23 10:38

While trying to edit a menu on a Drupal site, I found that none of my changes were being saved. Looking at the logs led me to the following error message:

PDOException: SQLSTATE[HY000]: General error: 144 Table 'cache_menu' is marked as crashed and last (automatic?) repair failed: DELETE FROM {cache_menu};

Simply restarting MySQL did not fix things and it looked like I had to get my hands a li'l dirty.

Enabling multiple user profiles in mIRC

Submitted by Druss on Fri, 2012-07-06 02:29

mIRC is by far the most popular IRC client in the world. However, it's a bit of a pain to use if you connect to different networks with different nicks and so on, as mIRC only supports one user profile. One of the ways to get around this is to have multiple mIRC installations for each profile. But as you can well imagine, this is a pain. However, salvation is here as a friend on IRC put me on to this nifty trick to get his happening without all the brute-forcing. Here's how it is done.

Debian/Ubuntu: Loading iptables rules on boot

Submitted by Druss on Wed, 2012-07-04 03:30

If you've ever worked with Debian or Ubuntu servers, you've very likely had to set up a firewall at some point or the other. However, any changes that are made are not saved and loaded if the server is ever rebooted. The following is a quick guide on how to get this happening:

(root or sudo access is required)

Hiding Apache version information in Ubuntu

Submitted by Druss on Sat, 2012-06-02 00:03

If you've ever visited a webserver's error page, it will usually state the error followed by information about the server. This will customarily tend to include the webserver software, its version, possibly information about some of the modules compiled in as well as the server's address and port. While this might look generous and helpful, it also allows bad guys as well as other parties to probe the server to find out what it is running as well as other details such as version information. This information can be used for nefarious purposes.


Subscribe to RSS - Guide