Complete, Concrete, Concise

Practical information without the bloat

Web Tools

Installing AMPPS – Apache Server, MySql, PHP, Perl with Installation Scripts

These instructions are for installing AMPPS 1.2 on Windows XP with Service Pack 3. It should work for other configurations as well. Some images may be clicked for full sized versions. AMPPS is an extremely easy to install and use Apache Server which comes bundled with MySQL (a database), PHP (server side scripting language), Perl […]

Blog

How to Get XnView to Open an Unknown File Format

Ok, XnView cannot open unknown file formats, but it can open many more formats than it enables during a normal install. See the full list of file formats it is able to open here. XnView is an excellent image viewing program that handles many graphics formats and allows numerous batch operations like: resizing, compressing, image […]

Web Tools

How to Change ‘localhost’ to a Domain Name

This tutorial is for XAMPP 1.7.3 running under Windows XP with Service Pack 3. It may be similar for other version combinations, but no guarantee is made. Assumes you have installed XAMPP. Instructions can be found here. UPDATE 17-March-2012:If you are running Windows 7 (and possibly Vista) the default security settings prevent you from running […]

Joomla

Adding Adsense to Your Joomla! 1.7 Site

This tutorial shows you how to display Google Adsense ads on your Joomla! 1.7.x website without installing an extension. Requires you have a Google Adsense account. Should work for other ad providers that provide you with a code snippet for ads on your site. Joomla! 1.7.0 has backend compatibility problems with IE 8 (and possibly […]

Joomla

How To View Module Positions in Joomla! 1.7

Joomla! 1.7 is now obsolete. Joomla! 2.5 is the newest release with long term support. Instructions for installing Joomla! 2.5 can be found here. Instructions for viewing module positions in Joomla 2.5 can be found here. In Joomla! 1.5.x you would append ?tp=1 to the end of the URL to view your module positions. For […]

Joomla

Installing Joomla! 1.7 Under XAMPP

Joomla! 1.7 is now obsolete. Joomla! 2.5 is the newest release with long term support. Instructions for installing Joomla! 2.5 can be found here. This tutorial describes how to install Joomla! version 1.7.0 and 1.7.1, 1.7.2, 1.7.3, 1.7.4 under XAMPP version 1.7.3 on Windows XP. The procedure should be the same for other version combinations, […]

C

How to Add Comments to Macros

Comments are an important part of documenting your code. Adding comments to macros is quite easy, but it has to be done the right way. This works with both C and C++ compilers. The easiest way to document macros is to just add comments before or after the macro definition: // returns the larger of […]

C

Preprocessor – the #error Directive

Preprocessor – the #error Directive This is a very useful and often underused preprocessor directive. Behaviour of this preprocessor directive is the same for both C and C++ compilers. Purpose The #error directive terminates compilation and outputs the text following the directive. Format #error text All preprocessor directives begin with the # symbol. It must […]

C

Preprocessor – the #line Directive

I don’t think I have ever seen this directive used. Behaviour of this preprocessor directive is the same for both C and C++ compilers. Purpose The #line directive allows setting the current line number and name of the file being compiled. Format #line integer or #line integer "file_name" or #line preprocessing_expression All preprocessor directives begin […]

C

Preprocessor – the #pragma Directive

Behaviour of this preprocessor directive is the same for both C and C++ compilers. Behaviour of this directive is very likely to vary from one compiler vendor to another. Purpose The #pragma directive allows implementation specific control of the compiler. Format #pragma command All preprocessor directives begin with the # symbol. It must be the […]

C

Preprocessor – Understanding the stringizing (#) Operator

This is one of three preprocessor operators. The other two operators are the token pasting operator (##) and the define operator. The behaviour is the same for both C and C++ compilers. Purpose The stringizing operator is used to convert parameters passed to a macro into strings. Format # token_to_turn_into_a_string Use The stringizing (#) operator […]

C

Preprocessor – the #endif Directive

Behaviour of this preprocessor directive is the same for both C and C++ compilers. Purpose The #endif directive is used end / close / terminate a selection block (#if, #ifdef, or #ifndef. Format #if or #ifdef or #ifndef preprocessor or code statements #elif controlling_expression (optional) preprocessor or code statements #else (optional) preprocessor or code statements […]