Auteursarchief: admin

Getting YUM to work on CentOS

One of my servers is running CentOS. As I wanted to upgrade PHP, I was looking how to do that. I’ve found the YUM command to be useful (yum upgrade php). However, for being able to upgrade this way, one needs yum to be installed.

I was ‘fortunate’ it wasn’t so another task was born: installing YUM on CentOS. Verder lezen

Getagged , , ,

PEAR install on Linux by a n00b for n00bs

Okay, I must admit: I’m a programmer and I know some commands. Because I want to use PEAR packages, I needed to install it. The installing command is quite easy to find, but I had a hard time determining the directory structure. Some searching on the internet and an IRC conversation (EFNet #pear, thanks davidc_!) later I was able to install PEAR in a quite reasonable directory structure. Verder lezen

Getagged , , ,

Upgrading Plesk – Useful commands

I’ve been upgrading Plesk today and yesterday. Although Plesk has a nice interface, it’s not 100% clear in what happens. After some help on the FreeNode #plesk IRC channel and some cyberciti.biz pages, I’ve composed some details and commands to execute at the command line which can help when upgrading Plesk.

Verder lezen

Getagged , ,

Developing using WampServer 2: additions

WampServer 2.0 is a nice tool to help you develop a new site on your local computer. However, you’ll probably need more packages/libraries than those included with WampServer. This post is about installing extra common features which are mostly present at hosting servers, but not (directly) on WampServer.

Verder lezen

Getagged , , ,

Taverna and R: Rserve

So in my previous post I wanted to do a hypergeometric test in R. Now I want this test to be executed from Taverna (RShell). Verder lezen

K-means clustering in Java code found!

My blogpost on K-means clustering has the highest number of views, so people are probably interested in it. Sadly enough I lost the source code of the K-means action a while ago. Last week I needed an external harddisk to make a back-up of some files. There was already some content on the disk. I found quite some pieces of code including the K-means code. Although it is quite simple code operating on (if I remember correctly 8-bit) greyscale images, it might give some insights in how to do this.

Verder lezen

Getagged , , ,

FPDF error: Unable to find xref table

Today I faced a problem with FPDF and FPDI when trying to concatenate some PDF files. The only output I got was ‘FPDF error: Unable to find xref table.’ When I did a search on this error message, I wasn’t able to extract the answer from it. After some searching, the problem was located.

Verder lezen

Getagged , ,

Toshiba back-up discs mess

About a week ago my parents bought a Toshiba Satellite L350 notebook. As with other brands, it comes with a lot of extra applications installed which you don’t need at all while taking away precious internal memory space. Luckily it is fairly easy to remove these applications. One application created by Toshiba, and supposed to be useful, is the application to create back-up discs which can come in handy when your notebook has crashed. It looks pretty easy to use, but has a big constraint when you want to actually create these discs.

Verder lezen

Getagged ,

Python: check for substring speed

I was looking for options on how to check if a certain substring (in my case ‘ FROM ‘) is present in a SQL query string when I found this blog entry. Just for fun I decided to have a look at how fast these checks would be compared to each other.

Verder lezen

Getagged , , ,

Getting IPython readline and auto-completion to work on Mac OS X

It’s taken me some time and a lot of web pages which tried to solve the readline support with all kinds of hacks, but finally I’ve been able to get readline support and auto-completion for IPython to work. As it can be quite confusing and hard to follow all posts, this will be a step-by-step approach to get things to work. Note that I’ve got it working on Mac OS X 10.5.7 Leopard. It is expected to work on Leopard at least. Other versions might not require the exact same solution.

Verder lezen

Getagged , , ,