Category Archives: Programming

Fix associate-o-matic images not showing

After moving a clients Associate-o-matic store to a new hosting, images have stopped showing. If we attempted to view the image the following error would appear:

Warning: file_get_contents() [function.file-get-contents]:… File(/aom/img.php) is not within the allowed path(s)

Even after updating to the new version of AOM I could not get it  to work. The work around I found is to use cURL intead of file_get_contents();  To do this I followed these simple steps.

  1. Download and open file /aom/img.php
  2. copy the function CURL replacement for file_get_contents to the end of the file before ?>
  3. comment out the line echo file_get_contents($img); (just add # at the start of the line, do this for both instances of the line)
  4. add echo file_get_contents_curl($img); under both lines you have just commented out.
  5. Save and upload the file.

 

 

 

Technorati Tags: , , , ,

Arduino the Open Source hardware

If you are a thinker, a mad scientist in the making or just a curious ADD person like me, the Arduino boards are just what you are missing in life.

Arduino Uno BoardArduino is an open-source physical computing platform based on a simple micro controller board, and a development environment for writing software for the board.

Arduino can be used to develop interactive objects, taking inputs from a variety of switches or sensors, and controlling a variety of lights, motors, and other physical outputs. Arduino projects can be stand-alone, or they can be communicate with software running on your computer .

Arduino hardware can be used in Windows, Mac or Linux. The boards can be assembled by hand or purchased pre-assembled and the open-source IDE (programming environment) can be downloaded for free.

There’s a great starting guide at http://arduino.cc/en/Guide/HomePage, but I have also been recommended this book:

30 Arduino Projects for the Evil Genius

This guide shows you how to program and build a variety of projects with the Arduino microcontroller development system. Covering Windows, Mac, and Linux platforms, it gets you up to speed with the simplified C programming you need to know–no prior programming experience necessary.

You can find more books and arduino boards and components on here.

Examples of what one can accomplish with Arduino:

 

 

 

 

Technorati Tags: , , , , , , , , , , , ,

Books for sale – Linux Shell, Qmail Handbook and SSL/TLS

I have selling on Amazon.co.uk a copy of each of the following books:

Linux Shell Scripting with Bash (Paperback) (SOLD)
by Ken O. Burtch (Author)
Linux Shell Scripting with Bash will help you learn to not only get your system up and running quickly by employing the Bash shell, but it will also show you professional scripting solutions through the use of structured programming and standard Linux development tools. The book focuses on the Linux environment, which the shell relies on to function, and the robust Linux tool set, making this book ideal for learning shell scripting. Real-world scripts are included that are readable, extendable and easy to debug. This book is an asset to any Linux user.

The Qmail Handbook (Paperback)
by David Sill (Author)

qmail is used by hundreds of ISPs and thousands of other sites, including Hotmail since 1997, which has over 30 million users. qmail is popular because of its security, reliability, speed, low memory use, user-controlled mailing lists, straightforward administration, and much more! An Introduction to qmail is designed to guide system and mail administrators of all levels of experience through the installation, configuration, and maintenance of a qmail server.

SSl and TLS: Building and Designing Secure Systems (Paperback)
by Eric Rescorla (Author)

SSL and TLS: Designing and Building Secure Systems offers clear and comprehensive descriptions of these security protocols and their implementation, and also provides “designs”–tried and true templates that suit various scenarios. Armed with this book, you can become well versed in the importance of SSL and TLS, be able to work with them to provide solutions, and furthermore identify an appropriate tested “design” that will solve the security problems of a proposed new network installation.

Technorati Tags: , , , , , , , , ,

Android to iPhone Apps with XML

Why has no one thought of it before….. ? You may ask. But someone now has.  The XMLVM project was created by Arno Puder and his team at San Francisco State University.  What it does is provide a bridge between disparate compile-time and run-time environments — in a word cross-compiling, as described by  Frank Ableson on the Linux Magazine website

XMLVM serves as an umbrella for several projects. For all projects, a Java class file or a .NET executable is first translated to an XML-document. Based on the XML-document generated by the front-end, various transformations are possible. (extracted)

The possibilities are immense, but I think it will really take off in the mobile market with Applications being able to run cross-platform from Android to iPhone and so on.

Technorati Tags: , , , , , ,

PHP 5.2.8 Avaliable fixed the security bug on 5.2.7

the PHP version 5.2.7 was removed from distribution due to a bug that caused a security hole in some configurations. The bug was related to the magic_quotes_gpc which will be deprecated in version 2.6.

The PHP development team has officially announced the immediate availability of PHP 5.2.8. This release addresses a regression introduced by 5.2.7 in regard to the magic_quotes functionality, that was broken by an incorrect fix to the filter extension. All users who have upgraded to 5.2.7 are encouraged to upgrade to this release, alternatively you can apply a work-around for the bug by changing “filter.default_flags=0” in php.ini.

Technorati Tags: , , , ,