Random forum avatars - part two
Tonight, Twitter user Chris Smith suggested using redirect headers instead of using GD to render the image.
This didn't even occur to me, when I started with this idea. It is much mor elegant and does not need the GD library. Continue reading to see the new code!
This didn't even occur to me, when I started with this idea. It is much mor elegant and does not need the GD library. Continue reading to see the new code!
Random forum avatars
Random forum avatars
Today I felt like changing my avatar on one of the forums I frequently visit. I then thought it would be fun if I could have a random avatar, chosen from a directory on my server.
After about half an hour of experimenting and Googling I came up with something that works reasonably well. The only thing I need to look at is the increased JPEG compression that is very visible in the images, after they've been through the PHP script.
Continue reading for my code.
Today I felt like changing my avatar on one of the forums I frequently visit. I then thought it would be fun if I could have a random avatar, chosen from a directory on my server.
After about half an hour of experimenting and Googling I came up with something that works reasonably well. The only thing I need to look at is the increased JPEG compression that is very visible in the images, after they've been through the PHP script.
Continue reading for my code.
Typo update
Modding a Futaba S3001 Servo
This really is easy, but I had to do a bit of Googling and look at very small pictures to see what I had to do. Therefore, I've taken pictures along the way and written this little guide.
We start with a Futaba S3001 Servo:

We start with a Futaba S3001 Servo:

Flash performance on OSX - Safari vs Firefox vs Opera
Just a quick test with a random Youtube HD movie I grabbed from their frontpage. The (quick and dirty) screenshots should say it all:
Safari:

Firefox:

Opera:

Why does Safari perform so badly? My regular browser is still Safari, but I'm thinking about switching to Opera on my MacBook Air, it will probably run cooler and use less power... (I haven't tested CPU usage under normal browsing conditions, but considering a LOT of pages have at least some Flash ads...)
I did however test this with multiple movies, all of them show this kind of difference in CPU usage.
Safari:

Firefox:

Opera:

Why does Safari perform so badly? My regular browser is still Safari, but I'm thinking about switching to Opera on my MacBook Air, it will probably run cooler and use less power... (I haven't tested CPU usage under normal browsing conditions, but considering a LOT of pages have at least some Flash ads...)
I did however test this with multiple movies, all of them show this kind of difference in CPU usage.