Tips and tricks

Adding pcntl_fork support on a cpanel server

February 1, 2012
By

A php application on a cpanel server kept throwing this: Fatal error: Call to undefined function pcntl_fork() in /path/blah.php on line 5 The fix requires recompiling php with –enable-pcntl Fortunately cpanel offers the Easy Apache script. The bad part is that it doesn’t have an option for pcntl. So you have to specify it...

Read more »

Recursively remove digikam’s xmp embeded tags

January 25, 2012
By

Because digikam made a mess of the tags I started to add to my pictures I decided to start from scratch. Note that I tried to get the max and I had set to write tags both to .xmp sidecar files and inside the image files. I also use the mysql backend. One of...

Read more »

Fixing a self pressing button on an Asus VW202SR monitor

January 17, 2012
By
Broken button Asus Monitor showing Brightness menu

Well, today instead of working I had the pleasure of fixing the monitor The monitor is an older Asus VW202 SR that my wife uses connected to the laptop. I tried everything else (power cycling, another signal cable, another computer) but it turns out to be really the button. The issue manifested itself by...

Read more »

Limit number of related articles returned in Joomla 1.7

January 11, 2012
By

Joomla 1.7 has a nice module mod_related_items (Articles Related) that shows articles related to the current one the visitor is browsing. It has one issue though, you can’t set a limit. So a little code hacking is in order. Open modules/mod_related_items/helper.php and go to line 94 (right after the Filter by language if) and...

Read more »

cbnet Ping Optimizer is killing a site

January 11, 2012
By

Some wise soul decided many moons ago that installing the aforementioned plugin on a site I host. The wise soul is long gone (admining websites for ngo’s as a volunteer is no fun to many ) but the site was getting more and more sluggish lately. I decided to clean a bit the many...

Read more »

Cadsoft Eagle on Slackware Current 64bit

January 11, 2012
By

I want to start building some new electronics projects and I wanted to use some tool to build my schematics. Even if not open source Cadsoft’s Eagle seems to be the de-facto standard between hobbyists. Unfortunately trying to run the setup on Slackware gives the errors regarding to /…/bin/eagle: error while loading shared libraries:...

Read more »

New AdSense interface language

December 22, 2011
By

Though not my native language I like all my software in English. It always sounds weird to me to see it different. Ever since AdSense upgraded the looks it switched to Romanian. Today I wanted to tackle this: I went to Home->Account settings->Display Language It was already English US Well, it won’t be the...

Read more »

Concatenate multiple *.vcf files into one for importing into gMail

December 8, 2011
By

I have a secondary phone that is running Android. My main phone is still a Nokia N900 for which I gave up trying to sync contacts with gmail. Two options basically exist for n900 none of which works for me: using MFE which works from time to time use syncevolution which invariably screws my...

Read more »

Optimizing all mysql tables (from all databases)

October 4, 2011
By

You want to optimize mysql tables from time to time in order to reduce fragmentation. Here’s an easy way to do it automatically (put it in a script and run it from cron for example) View Code BASH1 mysqlcheck -Aop -h hostname -u user -pPASSWORD What all those mean: –all-databases, -A; Check all tables...

Read more »

Clear Windows 7″Recent Items”/ jumplists

September 21, 2011
By

I hate windows’s jump lists. If you read this you probably hate them too They are stored as hidden files in a, you guessed, hidden directory. You can’t browse to it but you can type it in RUN or windows explorer location bar: %APPDATA%\Microsoft\Windows\Recent\AutomaticDestinations You will see there a bunch of files with long...

Read more »

Follow Me

Subscribe via RSS