You are here


Vim/Gvim and missing line numbers in the interface

Submitted by Druss on Sat, 2011-09-24 00:32

I'm not sure whether it was something I did, something that the Vim developers did, or an anomaly with the Windows 7 binary, but I could no longer see the line number and cursor position tracker in the bottom right of my interface. Looking at the menus, I could find nothing. I could turn on a line number prefix for each bleeding line, but this is not what I was after.

MySQL's LOAD DATA INFILE leads to an ERROR 29 (HY000) File not found / (Errcode: 13)

Submitted by Druss on Fri, 2011-09-23 01:08

While trying to import a CSV file into MySQL today using the LOAD DATA INFILE command, I ran into the following situation:

ERROR 29 (HY000): File 'foo.csv' not found (Errcode: 13)

The file exists fine and the permissions are also kosher. After much gnashing of teeth and perusing of documentation, I found out that local file sources require the LOCAL keyword:

Converting Roman numerals into Decimal/Arabic/Indian equivalents

Submitted by Druss on Sun, 2011-09-18 22:41

While importing some data today, I found myself having to convert the Roman numerals in the source to decimal. While there are scripts and tools available on the Internet to do so, a quicker way exists (or, at least, it did for my case). This solution is to simply import the data into Open Office Calc and use one of its native functions to do the conversion.

Kubuntu: Moving an installation hard drive from one system to another

Submitted by Druss on Sat, 2011-08-27 02:58

One of my local servers died a quiet death last week. Much as I tried to revive the li'l bitch, she refused to accede to my plaintive entreaties. She is now consigned to a forlorn corner and I am yet to see to her last rites. In the meantime, I have recently introduced a new addition to my family of servers through the cannibalisation of older (and now retired) members of the same. So, I settled on trying to see if I could save the soul of my now recently defunct Kubuntu box by simply transferring its hard drive to this new server. When I tried to do so, this is what transpired:

Implementing a shutdown timer in Linux

Submitted by Druss on Fri, 2011-08-19 02:38

Even when compared to the simplicity of Windows 7's shutdown function, Linux goes a step further in flexibility and ease of use. Shutting down a system at 8 AM in Linux is as easy as saying shutdown 8:00 in a terminal. To explicitly state that the system should power down after shutting down, we would expand it to shutdown -h 8:00. Alternatively, if we want to perform a reboot, the switch would change to shutdown -r 8:00.


Figure out what that site and server are running

Submitted by Druss on Sat, 2011-08-13 03:45

If you administer or program websites etc., you often find yourself wondering what the specifics of a particular website or its server are. For e.g., you might want to know if a server is running on Linux, or if a site is based on Drupal or Mambo. The following sites all assist in this endeavour:

Windows 7: Program search box missing in Start Menu?

Submitted by Druss on Sun, 2011-07-31 11:59

I had to reinstall W7 yesterday and after some initial setup shenanigans, I found that the best feature of Windows 7 - the Start Menu program search field - was missing. These things are usually sorted via the Customize option which can be reached by right-clicking the Start Menu. However, I could find no option for the search field. After much hemming and hawing around, I decided to retrace my steps during the initial setup that I did and wonder upon wonder, organised strategies do work!

Drupal 7 and the "You do not have any administrative items" error

Submitted by Druss on Sat, 2011-07-30 11:27

If you've upgraded Drupal recently and noticed that the admin page is empty and returns a You do not have any administrative items error message, then this basically means that your menu table is a little wonky. Another tell-tale sign that you've got the same problem as I did is that the admin page will have the title, Administer rather than Administration. Fixing this is pretty straightforward, if a little painstaking. To do so, make sure that the Menu module is enabled and perform the following steps:

git-receive-pack not permitted error on pushing upstream

Submitted by Druss on Fri, 2011-07-08 22:53

If you ever run into a git-receive-pack not permitted error when using Git, chances are that it's a configuration issue on your end. In my case, I had cloned the repository using via https (which required authentication). However, pushing failed with the aforementioned error. This was due to the fact that I was only allowed to push via SSH. Therefore, once I changed the protocol in the configuration for my checkout, all was well again.


Subscribe to RSS - Tip