Archive for January, 2009

Today afternoon on any seach on google.com the user was unable to click any of the results since google said it has interstitials. I mean strange, very strange…. all of them?

For those of you that don’t know what an interstitial is, it’s an intermediate page shown before the desired page, usually used to advertise something.

Here is the proof that it was either a hack either a very poor programming:
– A search for word “google“:
badgoogle

– If i am clicking the link for Google.com, I’ve got: “Warning – visiting this site may harm your computer!“:
badgoogle2

Now after more than half an hour Google is working well again… hopefully this will not happen again in the future…

Andrei

Tags: , ,

Comments No Comments »

Seems that my thumbnail generation tutorial was somehow appreciated by community and somebody posted an article on Zend Developer Zone describing my tutorial as “Advanced Thumbnail Trickery with PHP“.

First, thank you!
Second, I never had so many visitors coming from the same referred. When I saw my statistics I thought that my internal statistics tool went crazy and I checked my google analytics account. Seems that it’s true.

I promise I will elaborate the topic and make a class with it. I will also try to do the same thing with ImageMagick as a visitor suggested.

Tags: , ,

Comments No Comments »

No, it’s not yet another PHP thumbnail generation tutorial! I recently needed a function to:

  • create square thumbnails
  • don’t crop the initial image, but scale it and fill with white background
  • center the thumbnail in the square
  • call the function in a loop to process an entire folder

I found no suitable example and I decided that instead of digging too much it’s better to create my own function and a class for it.

Let’s start with a photo that we need to create a thumbnail for:

Nice kid, huh?

Nice kid, huh?


… and what we want to achieve:
danut_thumb


First step would be the thumbnail generation snippet:
Read the rest of this entry »

Tags: , , , , ,

Comments 25 Comments »