PNG not suited for webdesign!

I've been banging my head on my Mac & PC monitors with this! :'(

I had gone a long way already with color matching my Mac & PC displays, but this is far worse!

Suppose you have a logo on a plain color background that has a specific color code, let's say #A1B2C3.

  • If you save the logo as a GIF, you can just put it on a css background of #A1B2C3 and the background colors will match.
  • If you save the logo as a JPEG, it's a tiny little bit more complex but it still can be done. Just make sure that:

    1. You save the JPEG withOUT incorporating an ICC color profile
    2. You do not compress the JPEG so strong that it cannot encode a proper background color
  • If you save the logo as PNG-8... good luck! First there is no option (in Photoshop CS2 at least) to choose whether or not to include a color profile. But worse: it will include the gamma of you current display. So if you save the image on a Mac then try to display it in a PC browser, the displayed background of the image will no longer be #A1B2C3! IE7 and FireFox2 both try to compensate for the gamma being different on PC and Mac.

    If you now try to match the displayed color on your PC and put that into your CSS, then it will probably display incorrectly on the Mac. Crap! :(

That's a shame, because in many situations, PNG-8 will compress much nicer than JPEG and much better than GIF. But if you can't color match it with your CSS on all browsers, it's almost useless... :no:

Redirecting old posts

One of the cool things you can do with b2evolution 2.0 is redirect older posts to a new URL.

I've put this to use by redirecting some of my first English posts on fplanque.net to fplanque.com.

Here's an example: http://fplanque.net/Blog/devblog/2003/01/21/quote_of_the_day_computers_and_programme

If you click on that link you go straight to France and bounce back immediately to:
http://fplanque.com/dev/dev/computers-programmers-dangerous-match

All that automagically with a nice 301 Permanent redirect! ;)

I have already observed in the past that Page Rank would follow 301 redirects when moving pages on the same site. I'm quite curious to see how moving posts to a different server, heck a different country, will affect the PageRank.

If all goes well, PR should follow... someday ;)

AC3 codec for Intel Mac (Universal)

WOW! All this time I've been running the wrong AC3 codec on my Mac Mini!

Last week, I found one that works soooo much better! To find it, I actually had to search for "a52 codec" and not "ac3 codec". Go figure!

It is GPL licenced and merely based on the "a52 library". But I really wonder were a52 comes from. Too late to investigate tonight though ;)

Update: a52 is now included in a codec pack called Perian and you can even get 5.1 surround sound out of it.

Update: the easiest solution now seems to just use the VLC media player and not worry about the codecs (VLC has everything it needs included).

Mac instead of PC for PHP/Web development?

I have recently put together a new Core 2 duo PC for doing my web development. And I have been asked why I didn't get a Core 2 duo Mac instead...

The question definitely makes sense. You can now get essentially the same components into a PC or a Mac. So the choice would boil down to:

  • Design
  • OS
  • Software

Design

Well, the Macs look better, definitely.

However...

If you choose your hardware carefully, you can get a pretty decent looking PC. Check out these Antec enclosures (they have a nice quality feeling by the way) or these Sony displays.

And also, if you actually want to connect 3 screens to a Mac, you'll definitely need one of those bigger Mac Pros where you can put in a PC video card. And those sort of lose their coolness factor over the iMacs. But to be fair, I guess you could get away with a 24" iMac ;)

Read more »

AppleJack

If you crash your mac: AppleJack!

And even if you don't crash your Mac bad, you want AppleJack. Everytime you hard reset/reboot your mac you add a few errors on your hard drive structure. And as time goes by, you get more and more of those turning pizzas/beach balls and you just don"t know why...

Run Apple Jack and your Mac will feel all clean and new again! ;)