Compdigitec Labs

Linux

Manipulating symbolic and hard links on Linux and Windows

Saturday, August 23rd, 2008

Symbolic and hard links are a very convenient feature of the Linux and UNIX operating systems – they enable you to create a short alias, use it to avoid duplicate data and much, much more. They are also availible on Windows to a limited extent – NTFS supports only hard links while FAT/FAT32/VFAT supports neither. […]

Compiling re2c 0.13.5 on Ubuntu 8.04+ (binaries available)

Tuesday, August 19th, 2008

If you need the latest features of the re2c compiler, you would normally sudo apt-get install re2c to install the re2c compiler. However, the Ubuntu packaging team (again) has not updated their re2c package to the latest re2c v0.13.5, so here are some pre-compiled re2c binaries. Be sure to remove the official version in the […]

Stopping the “PHP Fatal error: Internal object missing in” error in PHP-GTK2

Saturday, August 16th, 2008

In PHP-GTK2, if you build your own class of an existing PHP-GTK2 class, you may encounter one of the following errors: “PHP Fatal error:  Internal object missing in YourclassName wrapper in /path/to/your/script on line *” “Fatal error: Internal object missing in YourclassName wrapper in /path/to/your/script on line *” This is somehow (not documented) caused by […]

Embeder – a free PHP to EXE solution

Friday, August 15th, 2008

If you’re looking for a PHP to EXE solution that supports PHP5, Embeder is one rarely mentioned application that will convert your PHP applications into a Windows executable file, although it will only work with PHP 5.0.3. Below are the steps to set it up on your system. (Will run under Linux with Wine, too.) […]

How to use dd to copy, move and erase disks

Thursday, August 14th, 2008

Often, you may encounter the need to move a partition, copy a partition or copy a CD/DVD. The easiest and most user-friendly way to do this is with GParted. However, in a server environment or a command line environment where the GUI is not available, GNU dd is an good way to perform these simple […]

Parsing text files in PHP with FlatfileTools

Wednesday, August 13th, 2008

Compdigitec FlatfileTools is a API written in PHP to manipulate, read and modify plain text databases. It can also manipulate existing databases, such as CSV files. It is released under the GNU General Public License and therefore is free software. To use it, download Compdigitec FlatfileTools. Then include_once it like this: <?php include_once(‘flatfiletools.lib.php’); // The rest of your code goes here… ?> […]

Install bcompiler for PHP on Ubuntu Linux

Sunday, August 10th, 2008

The PHP bytecode compiler is a useful way to convert PHP to bytecode, which can then be converted to binaries. However, the Ubuntu packaging team has not yet made a binary package of bcompiler available. However, you can install this bytecode compiler yourself with these 9 easy to follow steps. A binary build is availible, […]

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 […]

« Previous Entries Next Entries »