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:  | My Most Recently Watched Video Tutorials: I regularly watch video tutorials from video2brain (most German some French) and record notes on what I learn. Many of the lessons are available online for free (you just have to register quickly first with video2brain, 2 minutes). Videos I am currently learning from: Adobe AIR, Die Kunst des CSS-Designs, Fireworks CS3, FlashCS3/Flex, PHP 5.1, Photoshop CS3, Zeichnen lernen, Einstieg in VBA mit Excel, Flash Games, Flash 8, Adobe After Effects 7.0 Grundlagen, Ruby on Rails, Access VBA, Flex 2 Crashkurs, Java EE 5, Dreamweaver CS3, ASP.NET 2.0, Visual C# 2005, Einstieg in TYPO3 4.0, AJAX, CSS Design, Gimp, 3ds Max8, Little Boxes CSS, Flash CS3 and ActionScript 3 French, Ubuntu, Adobe CS3, Drupal 5, JavaFX, ActionScript 3.0, Eclipse, InDesign CS3 Grundlagen, Java 6, Python, Adobe Flex 3, Excel Profiwissen, MAC OS X Tiger, Flash CS3 French | - AJAX: XML-Dateien mit JavaScript II - watched on July 5, 2008
- Einstieg in TYPO3 4.0: 2.4 Designvorlagen vorbereiten - watched on July 5, 2008
- Adobe Flex 3: Zugriff auf das Systemtray über AIR - watched on July 3, 2008
- Adobe Flex 3: Einfügen von Daten in SQL-Datenbanken - watched on July 3, 2008
- AJAX: Verbindung ohne XMLHttpRequest II - watched on July 2, 2008
- AJAX: Verbindung ohne XMLHttpRequest I - watched on July 1, 2008
- Adobe Flex 3: Methode "copy locales" - watched on June 25, 2008
- Adobe Flex 3: Methoden "setStyle" und "getStyle" - watched on June 21, 2008
- Adobe Flex 3: Listenbasierte Steuerung - watched on June 21, 2008
- Adobe Flex 3: Datenspeicherung - Local Shared Objects - watched on June 19, 2008
|
My Most Recently Added Items: 
|
CSS CODE EXAMPLE
- added on August 12, 2008
Many times you want to have a menu with A elements as the links instead of e.g. LI elements. Here is an example with large buttons. See example here.
| post comment or questionpost comment or question |
|
|
|
PHP CODE EXAMPLE
- added on July 17, 2008
This function checks if an IP address is between two others, not that ip2long has a problem by itself so you need the sprintf("%u") function as well. Also it returns false if any of the IP addresses are invalid as to avoid tampering.
post comment or questionpost comment or question |
|
 tip
|
FIREFOX TIP - added on July 6, 2008
I installed Firefox 3 today and instantly found the search-history-in-the-URL-bar to be indispensible. All the more to my horror did I realize that Firebug was no longer installed because it was not compatible with Firefox 3. Luckily there is a beta being built that IS compatible and it works just like the old one. The SQLite Manager and Web Developer bar still work in Firefox 3 and so with these three, no reason not to upgrade! Enjoy.
post comment or questionpost comment or question |
|
|
This was a little experiment to get a useful base of cross-browser code that does some interactive stuff in Javascript. It is simple but handles mouseover, button highlight, and just has a nice, basic feel. The only issue is in Opera the text is at top of the buttons, but didn't have any nerves left for that one. At first I tried using :hover and :focus which brought me to the conclusion that this really isn't standard between the browsers so used onmouseover and onmouseout to deal with it. Also worked out a number of quirks that various browsers had, e.g. I removed the ugly dotted focus line in Firefox on the buttons, they left it there in Firefox 3 as well I noticed, I replaced it with a gradient background for the focussed button. So this code looks decent in Firefox 2/3, Internet Explorer 7 (probably 6 too), Opera 9.5 (in fact only after I upgraded from 8 did it show the background on the buttons), and Safari. The bad boy of the group is Opera, but since opera gets embedded in quite a number of devices these days (e.g. Philips TVs), you don't want to leave it out completely. You can view this example online here. Of course next step when implementing this is to make it read from a database or XML file, I just wanted to get the browser-compatibility as accurate as possible first.
post comment or questionpost comment or question |
|
 tip
|
JAVASCRIPT TIP - added on July 3, 2008
If you are getting into AJAX and need a booster course on Javascript, this site has a nice concept/example format to get you up to speed fast without the make-the-background-color-blink examples you get on other sites. Note the "AJAX for N00bs" section as well.
post comment or questionpost comment or question |
|
|
post comment or questionpost comment or question |
|
|
This code runs in Explorer, Firefox, Opera and Safari, simple code that enables you to attach Javascript functions to button clicks, etc.
post comment or questionpost comment or question |
|
|
PHP CODE EXAMPLE
- added on June 30, 2008
If you have various translations of your website, a quick way to implement this is to have an .ini file with all the translations in it and read it out. This code shows you how to also use constants within the ini file.
post comment or questionpost comment or question |
|
|
CSS CODE EXAMPLE
- added on June 30, 2008
This CSS script give you absolute pixel-exact control of where to place text in a left and right area of a wide div, e.g. a header or footer. I was not able to get it to align automatically, e.g. left/center/right, so you have to know your font size and your text and position things exactly, but at least you have control, checked in Firefox and Explorer.
post comment or questionpost comment or question |
|
 tip
|
GENERAL TIP - added on June 25, 2008
I've been recently downloading and listening to some great IT talks from the Conversation Network, talks by e.g. Rasmus Lerdorf founder of PHP, Mark Shuttleworth, founder of Ubuntu, even things that are on the edge of technology such as stuff going on in Biology and other sciences, really interesting talks by some key people in the industry, I've listened to about 5 and they've all been good. They have a nice format: you sign up to their RSS feed and just download the ones you want straight onto your MP3 stick and go. The free MP3s have a plug to sign up at the beginning and the end but you can download and listen to anything you want. After you download one, you get an email to review it the next day and in one click you can say how you liked it, which I assume gives good feedback so the best float to the top. If you have a lot of listen/wait time in your daily life, this is a great way to stay up on the latest in the IT space.
post comment or questionpost comment or question |
|
 tip
|
PHP TIP - added on June 19, 2008
EditPad Lite has been my text editor of choice for a long time since it is free and has an easy time-stamping feature (ALT-E-I) and you can set the time format. But it used to have a nasty habit of always writing a BOM to the beginning of UTF-8 files which PHP 5.2 can't deal with. I always had to go into jEdit and save the UTF-8Y file again as UTF-8. But just in March EditPad Lite came out with a new version that allows you edit UTF-8 files without the BOM characters at the beginning and and EditPadLite will *leave it this way*, very nice. This means that if I need to make a quick change to a PHP file, I don't have to fire up and wait the 15 long seconds for Eclipse to commence: I simply pop into EditPadLite and edit it without fear of adding a BOM (hmm, interesting that it sounds like "BOMB" since that is exactly what it does to your PHP file, nice). In any case, EditPad Lite is now an ideal free text editor to edit any kind of text file in any encoding and to convert to and fro between the various encodings (e.g. between Windows 1252, ISO-8859-1, and UTF-8). You have the option to simply change the encoding setting of a file but not translate the characters or you change the encoding setting of a file and translate the characters as well--just the tool you need when you find yourself in encoding hell.
 post comment or questionpost comment or question |
|
|
FLEX CODE EXAMPLE
- added on June 13, 2008
You can do a lot more with filters, e.g. dynamically change them in ActionScript but here is the syntax for a basic shadow filter on a text.
Johann: Hello,
I'am very new to Flex 3 and programming but like it a lot. I've a ne question: i'am using multiple hsliders and the sum of the values of those sliders may not be over 100(%), so when the first slider value=60 the second slider is limited to value=40. What AS function do I need to achieve this? replyreply post comment or questionpost comment or question |
|
|
|
FLEX CODE EXAMPLE
- added on June 13, 2008
Check out this example here. This shows you the basics of using styles in flex, I did all of this with the FlexBuilder in design mode, very easy to use, when you are in a CSS file just click on design. The alpha transparency is wonderfully easy and the background picture leaves behind all the problems you have with page backgrounds in HTML/CSS, namely, it constantly resizes it, etc.
post comment or questionpost comment or question |
|
 tip
|
FLEX TIP - added on June 13, 2008
Flex Builder 3 has a design mode for CSS style sheets
When you are in a CSS file in Flex Builder 3, you can click on the Design button and see your styles as they will appear. You can change them and the CSS code will change in the background, it gives a library/symbol feeling to CSS files, nice.
post comment or questionpost comment or question |
|
 tip
|
ECLIPSE TIP - added on June 12, 2008
Code completion for PHP templates
When you make a PHP tempalte (like a macro) with Windows|Preferences|search for "templates"|PHP Templates, and you include $$${variable} in your template text, you will be presented with a dropdown of all available variables in the context where you call your template, nice.
post comment or questionpost comment or question |
|
|
FLEX CODE EXAMPLE
- added on June 11, 2008
This is another example of access filesystem this time with ActionScript. Did an expanding window in this example, but there are some scrolling issues on this window I need to work out, couldn't find a scrollable=false in the application element. To try this example, download adobe air and then you can install this application.
post comment or questionpost comment or question |
|
 tip
|
FLEX TIP - added on June 10, 2008
Flex allows you to comment out attribute values
Flex Builder is full of surprises, here is another uncommon but useful feature: two slashes in front of an attribute value comments it out. ...addendum: any variable after the line with the double-slash will not be recognized in code complete = bug. oh well, 1 point for ingenuity.
post comment or questionpost comment or question |
|
|
FLEX CODE EXAMPLE
- added on June 10, 2008
This shows you the basics of getting access to files and directories with AIR using FileSystemTree and FileSystemDataGrid. Would be interesting to see how these work in Linux and Mac. To try this example, download adobe air and then you can install this application.
post comment or questionpost comment or question |
|
|
FLEX CODE EXAMPLE
- added on June 10, 2008
Here's how to get started with windows in an AIR application.
post comment or questionpost comment or question |
|
|
FLEX CODE EXAMPLE
- added on June 7, 2008
View the example here. The graphic is png with transparency and you see that it lets the background of the button show through.
post comment or questionpost comment or question |
|
| My Free Tutorials: How to Install Ruby on Rails with Instant Rails and Create a Website Using JEdit and the Ruby Plugin Install a PHP Development Environment with Eclipse PDT, Apache 2.2, PHP 5, MySQL 5, and phpMyAdmin Using XAMPP Lite How to Install the Android SDK on Windows XP and Create an Application that Runs in the Cell Phone Emulator Install Ubuntu 7.04 in VMWare on Windows XP and connect it to your network Setup a PHP Development Environment on Windows XP With Apache, PHP 5, MySQL 5, SQLite, Eclipse, Subversion, PHPMyAdmin, and Datapod Install Java on Windows XP and Learn the Basics of Java 6 using the NetBeans IDE Install OpenSuse 10.2 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 Install Perl 5 on Windows XP and Get a Perl Hello World Running How to Create a Website with Datapod  |