My name is Edward Tanguay. I am a web developer in Berlin, Germany. I learn everything I can and record it on this site.
Other things you might be looking for:
My Ubuntu Tutorial
My Datapod Project
My Blog Feed:
- Code Examples
These are the latest code examples I've added. To find other code examples, use the search box in the upper-right.
Code Example: File that shows how all PHP 5.2 input_filters work.
PHP CODE EXAMPLE - added on November 18, 2008
This file runs through the input filters codes and shows how e.g. filter_var($value, FILTER_SANITIZE_STRING) and filter_input($value, FILTER_SANITIZE_STRING) will alter strings. You can see an example this here..
SHOW CODE

post comment or question
Code Example: How to create a PHP Webservice with nusoap and consume it with nusoap and PHP5's SoapClient()
PHP CODE EXAMPLE - added on November 18, 2008
Nusoap is convenient because you don't have to make any changes on the server, just download and copy the library files to a sub-directory. Nusoap also creates a WSDL file automatically for you. These examples show how to return an array of values so that you could, e.g. return 20 fields of information about a user, for instance. Not that on the nusoap examples I turn the cache off since when you have it on while you are developing and add a method to your soap server, your client doesn't recognize the changes. First download nusoap, then copy the files to a sub-directory on your web called "nusoap".
SHOW CODE

post comment or question
Code Example: Use define() for tedious-to-type constants
PHP CODE EXAMPLE - added on November 13, 2008
Stumbled across this use of define() today, nice for HTML tag and newline shortcuts etc.
SHOW CODE

post comment or question
Code Example: Develop Flash Applications without Flash with free Flex SDK and free FlashDevelop editor
FLEX CODE EXAMPLE - added on November 8, 2008
The following instructions show you the exact steps to set up a free development environment on windows which allows you to develop Flex applications with ActionScript 3. You won't have the nice step-through debugging or the design view of Adobe's FlexBuilder but this code shows you how to create a two-line MXML file which allows you to do all your programming back in ActionScript 3 classes anyway so you just kind of use the MXML file as a tunnel to be able use the rich Flex libraries. FlashDevelop has very nice code-completion and other features, and with traces you can do decent debugging. The code helps you get up to speed with event handlers which are a bit different than web scripting if that is all you have been doing so far. You can view a running example of this appliction here.
SHOW CODE

post comment or question
Code Example: How to set up a Flex application in FlashDevelop (with code completion)
ACTIONSCRIPT 3.0 CODE EXAMPLE - added on October 23, 2008
This works much better than my previous example since it enables FlashDevelop to do its nice code-completion on Flex objects such as "button". In FlashDevelop, new project, Flex, Flex 3 Project, then replace MXML code, then create a class and put in the ActionScript3 code.
SHOW CODE

post comment or question
Code Example: How to set up a Flex application in FlashDevelop
ACTIONSCRIPT 3.0 CODE EXAMPLE - added on October 23, 2008
In FlashDevelop, new project, Flex, Flex 3 Project, then replace MXML code, then create a class and put in the ActionScript3 code. Unfortunately it doesn't seem to have the nice code complete completion for e.g. the button object.
SHOW CODE

post comment or question
Code Example: Text-Follow-Cursor example using simple sprite
ACTIONSCRIPT 3.0 CODE EXAMPLE - added on October 22, 2008
In FlashDevelop, New Project, AS3 Project, (check Create directory for project), (Project/Properties/Text Movie/Play in popup), then open up Main.as and replace it with this code.
SHOW CODE

post comment or question
Code Example: A quick MySQL data layer class that makes read/writes one-liners
PHP CODE EXAMPLE - added on September 18, 2008
If you need to write a quick PHP script that accesses a MySQL database, just copy in or include this class and you can do all your reads and writes with one-line satements.
SHOW CODE

post comment or question
Code Example: Four Simple Perl database functions for MySQL
PERL CODE EXAMPLE - added on September 10, 2008
Was on a Perl project where the code had 5 lines of database connection code for each time it needed to get data from the database, so I wrote these functions which allow you to get records, record, value or execute a command with one-liners. Records are an array of hashes and included the code to call the functions since figuring out what syntax you need to access the objects through pointers/references can be time-consuming. End result is: if you just need to use Perl quick to read and write to a MySQL database, this code will get you up to speed fast.
SHOW CODE

post comment or question
Code Example: Basic database read and text file read/write code in Perl
PERL CODE EXAMPLE - added on September 2, 2008
If you need to do something quick and useful in Perl, this will get you reading and writing in databases and text files. If you are a PHP programmer getting into Perl then look up the "eq" operator first.
SHOW CODE

post comment or question
My Free Tutorials:
Tutorial: How to Install the Android SDK on Windows XP and Create an Application that Runs in the Cell Phone Emulator
How to Install the Android SDK on Windows XP and Create an Application that Runs in the Cell Phone Emulator
Tutorial: How to Create a Website with Datapod
How to Create a Website with Datapod
Tutorial: Install Fedora 6 in VMWare on Windows XP and connect it to your network
Install Fedora 6 in VMWare on Windows XP and connect it to your network
Tutorial: Install Perl 5 on Windows XP and Get a Perl Hello World Running
Install Perl 5 on Windows XP and Get a Perl Hello World Running
Tutorial: Install OpenSuse 10.2 in VMWare on Windows XP and connect it to your network
Install OpenSuse 10.2 in VMWare on Windows XP and connect it to your network
Tutorial: Install Ubuntu 7.04 in VMWare on Windows XP and connect it to your network
Install Ubuntu 7.04 in VMWare on Windows XP and connect it to your network
Tutorial: Install Java on Windows XP and Learn the Basics of Java 6 using the NetBeans IDE
Install Java on Windows XP and Learn the Basics of Java 6 using the NetBeans IDE
Tutorial: Setup a PHP Development Environment on Windows XP With Apache, PHP 5, MySQL 5, SQLite, Eclipse, Subversion, PHPMyAdmin, and Datapod
Setup a PHP Development Environment on Windows XP With Apache, PHP 5, MySQL 5, SQLite, Eclipse, Subversion, PHPMyAdmin, and Datapod
Tutorial: Install a PHP Development Environment with Eclipse PDT, Apache 2.2, PHP 5, MySQL 5, and phpMyAdmin Using XAMPP Lite
Install a PHP Development Environment with Eclipse PDT, Apache 2.2, PHP 5, MySQL 5, and phpMyAdmin Using XAMPP Lite
Tutorial: How to Install Ruby on Rails with Instant Rails and Create a Website Using JEdit and the Ruby Plugin
How to Install Ruby on Rails with Instant Rails and Create a Website Using JEdit and the Ruby Plugin
This site was made with Datapod.