Compdigitec Labs

Archive for July, 2008

Using dpkg in Ubuntu and Debian

Tuesday, July 29th, 2008

For those of you who are stuck in an command line (bash) environment with no access to Synaptic, here are 9 useful and clear tips to help you to get the hang of package management with dpkg in the Ubuntu Linux and Debian Linux distributions. dpkg --install (or dpkg -i) - Installs the specified package. […]

Building .deb packages on Ubuntu/Debian

Monday, July 28th, 2008

Ever wanted to create your very own .deb packages for Ubuntu and Debian? Well, here’s a guide to tell you how in 10 easy steps! Create the directory to hold the package by using: mkdir package Change into the package directory: cd package/ Make the package file system. For example, any files you put into […]

Install Roadsend PHP Compiler on Ubuntu - without compiling anything!

Thursday, July 24th, 2008

Update (2010-07-21): Due to vast interest in getting the packages to work, we have released a updated version of the Roadsend PHP compiler. Update (2008-09-06): The binary packages are not AMD64 compatible (thanks to Tom in the comments). You may wish to compile your own packages following the instructions in this article. The binaries are […]

Very Suspicious Internet Robots

Wednesday, July 23rd, 2008

So far we have come across some very strange and suspicious robots hitting our site; we have identified them for you here. Feel free to use this information to block these suspicious robots from hitting/scraping your website. OOZBOT/0.17 (--; http://www.setooz.com/oozbot.html; pvvpr at iiit dot ac dot in) This bot tried to access only the home […]

Compiling PHP-GTK2 Applications into Win32 Executables

Sunday, July 20th, 2008

Update (August 24, 2008): Apparently this program does not support Unicode or php-gettext supported programs; a “program name has encountered an error and needs to close” dialog appears. A good solution for compiling (not true compiling though) PHP-GTK and PHP-GTK2 applications is the PriadoBlender (pb.impressivegames.com). Released under the PHP License (see note 1), and allowing […]

Stopping syntax error, unexpected ‘;’, expecting T_FUNCTION

Saturday, July 19th, 2008

If you’ve ever been stumped by “Parse error: syntax error, unexpected ‘;’, expecting T_FUNCTION”, you will know that this is a very difficult bug to track. Fortunately, we have found the error for you. This error message is very misleading, because your actual problem is that you have an extra semi-colon at the end of […]

Measure CPU temperature and your fan speed in Ubuntu Linux

Friday, July 18th, 2008

Update (2010-10-10): If you are getting “E: Couldn’t find package sensors-applet” errors, then add universe to /etc/apt/sources.list (add or uncomment http://archive.ubuntu.com/ubuntu <dist code> universe) lm-sensors is a very useful tool to measure your CPU temperature and your fan speed (which is not in /proc/cpuinfo) in Ubuntu Linux. In order to use it, you will first […]

Determine the OS and version of PHP

Wednesday, July 16th, 2008

It is very hard to determine the OS of the server/computer that is running PHP. So therefore here are two very, very useful methods to get the OS and Version of PHP. This finds the version and OS the PHP on your server, not that person that is visiting your site. To get the version […]

OCR for PDF in Ubuntu

Tuesday, July 8th, 2008

To get OCR in Ubuntu, you need to use the Open-Source Tesseract OCR engine. However, it can only perform OCR on the TIFF format. In order to allow it to do PDF, we also need the Evince PDF reader to allow us to export a page to TIFF to feed Tesseract with. Install tesseract in […]