development blog for the wicked stuff we encounter

I’ve recreated a website for my friend using the Joomla portal-framework, the successor of the late Mamboo portal-engine. I personally think it is a bit over-rated, not an easy-to-use system at all.

One huge error I found with the 1.5 install: the search got mixed up somehow, and it failed with the following error message:

Fatal error: Call to undefined method SearchHelper::checknohtml() in /plugins/search/content.php on line 254

..and of course there were no checknohtml() functions in any of the directories.

So i’ve downloaded the last stable version, and found out that originally, this function must live in the ~/administrator/components/com_search/helpers/search.php file. So i’ve just copied over the old file, and voila: it’s working.

If you want to get all images (and other fancy stuff like scripts, css) from a website (even if the files referenced in the Html source are hosted on other domains), you can do it with the following wget command:
wget -E -H -k -K -p -U "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"  http://the.domain/file.name
note: if you don't specify the browser type, the server possibly will think of you as a Crawler, a search engine bot, and will only serve you the robots.txt file.

Create a new file in init.d (i like nano for file editing): nano /etc/init.d/makefull100mode type in: ethtool -s eth0 speed 100 duplex full autoneg off exit. in shell, type: chmod +x /etc/makefull100mode update-rc.d makefull100mode defaults when you reboot the machine or restart the network stack, the interface will come up with true full duplex.

The other day I tried to create an ISO under Ubuntu, finally I found out how: mkisofs --cap -o myVolume.iso /home/balint/archive With cdrecord, you can write it to disk, and if you want to eject the disk (as i did with my slot-loader drive): cdrecord -eject myVolume.iso

I've added MRTG to Cron, but later I found that it is not running. Checking the logs, and found the following: <code> ERROR: Creating templock /var/lock/mrtg/_etc_mrtg.cfg_l_3723: No such file or directory at /usr/bin/mrtg line 1757 </code> The folder doen not exist, so <code>mkdir -m 0755 /var/lock/mrtg</code>...