Compdigitec Labs

Windows

Switching page orientation in OpenOffice.org

Thursday, November 6th, 2008

If you need to switch the page orientation (from portarit to landscape, or vise versa), here is how to do it (OpenOffice 2.x and plus):

Start by opening your document in OpenOffice.
Open the “Format” menu and click “Page…“.
Go to the “Page” tab and choose “Portrait” or “Landscape“.
You’re done! Save the document if you wish.

If you found [...]

Geany - the ultimate IDE for programming

Thursday, August 28th, 2008

Geany (Wikipedia article) is one of the best open source, multi-platform (supports Windows, Linux, Mac and BSD) and multi-language IDE/text editors. It also supports a selection of development commands and supports lots of languages/formats (see note 1). It also supports some unusual file formats such as Makefiles, ini files and SQL files.
Installing/Upgrading Geany (Ubuntu+Debian)
sudo apt-get [...]

Aliases for common command line typos

Sunday, August 24th, 2008

Update (2008-08-25): Lists complete and ready for download.
Update (2008-08-24): The list may take some time to compile, so downloads may not be available until August 25.
Are you tired from “bash: somethinghere: command not found” errors that happen when you type something like vf instead of cd, or cla instead of cls (alias for clear)? Well, [...]

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

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 not calling parent::__construct(), [...]

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.)

Download [...]

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…
?>

For example, to parse the following [...]

Create and extract tarballs in Windows

Tuesday, August 12th, 2008

For those of you who want to extract and create tarballs (tgz, tbz) on the Windows platform, there are many commercial tools to extract tarballs. If you want an graphical app, you can use the open-source 7-zip archiver for Windows.
However, there are also not many tools extract tarballs from the command line (cmd.exe or command.com). [...]

Unofficial Bigloo 3.1a Build for Windows

Friday, August 1st, 2008

If you’re looking for a prebuilt build of Bigloo 3.1a, you’re in luck! We have made a Bigloo 3.1a build for Windows, ready to be installed and in various formats. You can download the builds here . Bigloo 3.1a is required to build Roadsend PHP for Windows.
If you want to compile Bigloo 3.1a yourself though, [...]

« Previous Entries