Archive for January, 2007

No Borders With Beryl and NVIDIA AIGLX

Sunday, January 28th, 2007

If you find that you have no borders after you have set up Beryl with AIGLX using the latest nvidia driver you should append the following to your /etc/X11/xorg.conf in the “Device” section:

Option         "AddARGBGLXVisuals" "True"
Option         "RenderAccel" "True"
Option         "AllowGLXWithComposite" "True"
Option         "backingstore" "True"
Option         "TripleBuffer" "True"

For some reason many guides do not mention this problem.

Screencasting and Youtube Compliant Encoding

Sunday, January 28th, 2007

This article will guide you through the process of setting up the screencapture software recordmydesktop, record a screencast and convert it to a Youtube ready format for release to the public. The video converter used will be mencoder, already in the package repositories for a wide range of Linux distributions. Because the recording software is currently not available as a package for the distribution used in this article (Ubuntu Edgy Eft) it will feature a section on how to grab the latest source code and build it yourself.

(more…)

Calculating the Number of Digits in an Integer

Friday, January 19th, 2007

Sometimes it can be handy to calculate the number of digits in an integer for various mathematical calculations.

(more…)

A Few Thoughts on Encoding

Saturday, January 13th, 2007

The following article is a brief summary of different approaches of music file encoding I’ve used and a few thoughts about how to put them to use. Various encoding utilities such as lame, oggenc and flac are used throughout this article.

(more…)

Time for Diagnosis Version 2.0

Saturday, January 6th, 2007

Since the release of Diagnosis 1.2 (17th of July 2006) the plugin has been downloaded over a thousand times (or 1052 to be correct, when I’m writing this). I would like to thank the WordPress Podcast for mentioning the plugin in . A big round of applause to Charles Stricklin for his work and dedication to the community podcast.

For a long time now, nothing has happened to the original version written last summer. That however, is about to change. I intend to sit down at the drawing board once again and plan the future of this little plugin. The main purpose of this will be to maintain a functional plugin now that WordPress is moving towards version 2.1. I also see this as a small challenge for myself since Diagnosis was the first thing I ever wrote in PHP and it will be so much fun to see how I have grown as a programmer.

Evaluating HTTP Responses in PHP

Saturday, January 6th, 2007

Sometime it is valuable to check the HTTP response of a HTTP-request for quality and service availability assurance. The following code returns the headers given in response to a HTTP-request.

The following code opens a socket connection to a hostname or IP address (mandatory argument) and sends the request (mandatory argument). After that it returns the HTTP response code as a string.

(more…)