Dodona gives you answers

Archive for the ‘Web’ Category

How do I redirect a non www address to a www address?

leave a comment »

In my case, I built a Flash site with SWFAddress to allow deeplinking. The downside to this was the site didn’t work well if a user used a URL like exaple.com instead of www.example.com.

If your site runs on an Apache server, you can use .htaccess to redirect all users visiting a example.com URL (without the www) to a www.example.com URL (with the www). This is the code you need:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^example.com
RewriteRule (.*) http://www.example.com/$1 [R=301,L]

Put it in a file named .htaccess, upload it to the root directory of your website, and your good to go.

Link:
www.stepforth.com/resources/web-marketing-knowledgebase/non-www-redirect

Advertisements

Written by lutsen

December 9, 2009 at 2:13 pm

Posted in Actionscript, Web

How can I protect e-mail addresses on my website from being harvested by spammers?

leave a comment »

Spammers use web-crawlers to search web-pages for e-mail addresses. There are ways to make it more difficult for these crawl-bots to harvest your email address. These links tell you how:

Links:

Ten methods to obfuscate e-mail addresses compared

PHP 4 class to obfuscate e-mail addresses (based on above link)

How and Why of obfuscating your address

Backwards writing using css

Written by lutsen

January 6, 2009 at 1:05 pm

Posted in Web

How do I keep image colors the same between Photoshop and Flash?

leave a comment »

Change the RGB color profile in Photoshop

Change the RGB color profile in Photoshop

When I imported an image I created in Photoshop CS 3 into Flash CS 3, the colors always used to change. They were nice and bright in Photoshop, but flat and washed-out in Flash.
I finaly found out this has to do with the color profile settings in Photoshop. By default, RGB images in Photoshop are saved with the sRGB profile. Flash however uses the “normal” RGB profile, and this causes the color-change.

To stop this, in Photoshop chage the RGB color profile to Monitor RGB. Images created and saved with this profile look the same in Photoshop and Flash.
You can change the Photoshop color profile under Edit > Color Settings…

Original post and more information: The mysterious save for web colorshift

Status: Tested it, works

Written by lutsen

December 2, 2008 at 4:10 pm

Posted in DTP, Web

What is a good open source online .flv video player?

with one comment

Recently a client asked me to post a Flash Video (flv) on his website. I did a little web-surfing-research to find a nice open-source flv player to show the video. I ended up using the FLV Player.
I liked it the best because of the way it looks (don’t be put off by the green color, this can easily be changed), because of the easy and extensive configuration, and because it’s really open-source (opposed to the popular JW player for example, which is not free for commercial use).

Link: www.flv-player.net (I prefer the Maxi version of the player)
Status: Tested it, liked it

Written by lutsen

October 14, 2008 at 3:10 pm

Posted in Web

Why do my colors look different when I use the “Save for web” option in Photoshop?

leave a comment »

The sRGB option

The hidden sRGB option (turned on)

When I used the “Save for Web & Devices” option in Photoshop CS3, I noticed the colors of the saved image looked different from the colours of the original. After some web-surfing-research I found out the problem was this: by default, images saved with Save for Web and Devices are converted to the sRGB color profile. Switching this option off solved my problem. The option is hidden in the little arrow button right from the color preset selection menu (view screen-shot).

Original post and more in-depth discussion about the use of color profiles in web-design: Photoshop CS3 and Save for Web issues | Tancredi

Written by lutsen

October 14, 2008 at 2:48 pm

Posted in Web

Where can I test different Content Management Systems?

leave a comment »

If you’re looking for an open source LAMP (Linux Apache MySQL PHP) based CMS, but you want to test some first, try opensourcecms.com. They provide working demo’s of just about every open source LAMP content management system.

Link: www.opensourcecms.com

Written by lutsen

October 14, 2008 at 2:23 pm

Posted in PHP, Web

How can I use the same SMTP server while mailing from different locations?

leave a comment »

When you work on different locations, you can’t always use your ISP’s outgoing mail-server (SMTP server). When you have a Gmail account, Google offers the free service of using their SMTP server for your outgoing mail, no matter where you are. These are the settings you need to change to make it work:

  • Outgoing mail server (SMTP): smtp.gmail.com
  • Use authentication: Yes
  • Use SSL: Yes (some clients call this STARTTLS)
  • Port: 465 or 587
  • Account name: Your Gmail address (including ‘@gmail.com’)
  • Password: Your Gmail password

Note: when you’re using Gmail as your SMTP server but are not sending your e-mail from your Gmail address, by default Google will change the “from” address into your Gmail address (so to the recipient the email will seem to be sent from your Gmail address, and he/she will most likely reply to this address as well). To prevent this, in your Gmail Settings, go to Accounts, and under Send mail as click on Add another email address. Here add the address you want the “from” address to be, and after adding it click on the make default link behind it.

Links:
Original post: Gmail as a free smtp server
How to use Gmail as your SMTP server
Gmail

Status: Testes it (Apple Mail), works

Written by lutsen

August 29, 2008 at 11:39 pm

Posted in Mac, Web