Archive - Oct 2, 2007

Date

PHP class for gif animations

The gif class is made by SuperRembo back in 2006, very short and compact. View the source here. The old time favorite, GIFEncoder is still at hand, so I did a test and the result shows SuperRembo's gif class is faster after a little modification(my test could be inaccurate because the structure of 2 gif system is different). Take out the ob_start and other part, let the user input the output image instead of the resource provide better result improves speed a thousandfold.
SuperRembo's gif class could be faster because it uses the PHP built in function pack instead of a massive amount of bitwise operators.
Anyone who thinks they can do a better job, read the gif89a specification. Strange, I don't see anything about animated gif in there.

Running out of blogging ideas

in

No more topic to blog about? everyone have one of those days. A few ways I use when this happens.

1. Stumble around until you find something interesting. Include read the RSS, go though digg.
2. Check your statistics, like the most popular search engine keywords that lead the user into this blog (factorial, eeepc and PHP speed related topics are the ones for me). and you will know what the reader want and write more about it.
3. Summarize, compare a range of items in a particular field.
4. Write a post about "running out of blogging ideas"
5. Forget your blog. read and comment on someone else's blog.

Honey Pot that kill bots