Sunday, July 6, 2008

Sayings Fo Wedding Invitations

Circumvent the browser's cache for images on a web page

One problem that I faced a couple of times is that the caching of images by the browser.
All browsers, by default, store the pages and articles contenutivi (just like the pictures, or even a movie. Swf) in their cache to speed up the browsing experience.
Unfortunately this is also an annoying obstacle to those who develop web application.

To force a browser (server side) to not use the cache for a given page, there are a couple of tricks, but unfortunately they do not work with images (or other objects) embedded in the page.

For example:
BACKGROUND A.1 - No server side and precautionary default settings of the browser
you have a page [index.htm] that contains an image [photo.jpg].
User A requests the page [index.htm]. The server sends it to B as it is. The user's browser to receive it, check out all the embedded objects (including the image [photo.jpg]) and requires them to server B, running everything in the cache. Suppose
over this, the server B, the image is replaced with a new name while keeping the [photo.jpg]. You
in re the same page. The user's browser sees the page and the objects are cached and then shows them a video to the user without requiring those updates to the server B.
Result: You have not see the updated image.

SCENARIO
A.2 Suppose that the server side has to be done so that the user does not use the browser cache as regards the page.
User A to log on again [index.htm]. Your browser requests a page from that server B returns. The user's browser and runs the search for embedded objects. Among these is the image [photo.jpg] that is stored in cache, so the browser will not request to Server B.
Result: the user gets the updated page, but NOT the new image!

SOLUTION:
To overcome this problem I found a solution that allows you to trick the browser, forcing them to believe that they have to search always a different image.

code to embed an image in an HTML file is as follows:

\u0026lt;img /> src="photo.jpg"

to convince the browser to search for a different image from the previous one, just use sending bogus parameters.

\u0026lt;img /> src="photo.jpg?parametrofasullo=53876453"

As you can see the "src" attribute of the img tag has changed, but its meaning is actually remained the same as before. The string is different, but all the characters are after the question mark do not affect the level of the hierarchy to search for the file [Photo.jpg] on the server.
changing these parameters each time the user A receives the page from server B, try to convince the browser to update the image without using the cache.

: It

"photo.jpg"! = "Photo.jpg? 53876453"

To obtain this solution just use a little script to work server-side languages (PHP, eRuby, ASP) for each image that we need which are not stored in cache.

Example in PHP (the page should be index.php):

\u0026lt;img src = "photo.jpg \u0026lt;? Php echo"? ". Rand (0.30000);?>" />

The PHP code will produce using the function rand () a different number each time.

Monday, November 5, 2007

Clip Art De Los Powers Rangers

PSOCOTTERI !!!!!!!!!!!!

Now ... I'll tell you a scary thing ... a story that nobody wants to be the protagonist because he has the macabre and horror inside ...

one morning our hero, who for privacy call "ME", wakes up and decides to go, as usual, to the toilet and play the DS while at the same time carry out its needs solid.

ME open the DS and note 4 small white dots that move and that logically seem to insects. What seems strange to me that he decided to check the shelf on which he had supported the DS. Note that there is full of bugs ... like me start to worry ... but I had no idea ancora conto della dimensione del probbbblema... piano piano controllando la camera nota che NESSUN PUNTO di essa è esente da quei maledetti insettucoli....LA CAMERA NE E' INVASA...

e quando dico invasa dico proprio DOVUNQUE!!! muri, mobili, cassetti... addirittura ME ne trova uno dentro un cassetto, dentro a una busta per CD mai aperta!!!
ME non li aveva mai notati perchè sono troppo piccoli, bianchi e l'unico modo per vederli è osservare attentamente la superficie incriminata a 20 cm di distanza...

IL PANICO...

ME comincia a pulire il muro come un forsennato ma sono talmente tanti che dopo neanche un ora questi lo hanno nuovamente invaso impadronendosene ...

ME cerca su internet information on these be horrible ... and find something ...

PSOCOTTERI ... it is also known as Flea of the books ...

the cause is probably the presence of mold! and in fact, unfortunately the camera is facing north of ME and this, in addition to causing the worst weather of the whole house, is also the reason why it may be mold on the wall ...

here and then met the enemy and his weaknesses, you start on the offensive!

ME can only move from the closet yet with all the things inside (3 x 3.5 m of pure weight!) And located behind a wall of mold ...

ME cleans the wall by mildew and PSOCOTTERI and then gives a first coat of paint heat.

the next day and the next, ME cleans the locker can remove all traces of dirt and insects. Cleans, one by one, his clothes and books, seals and other haunted things clearly. ME

hours worked is tired and will go to sleep. Tomorrow awaits another quick cleaning cycle and a second coat of paint on the wall.

NEVER HAVE YOUR ROOM TO THE NORTH !!!!!!!!!!

Thursday, October 11, 2007

Are There Secretpoptropica?

"Viva Forever"

OK .... some of you have ever seen or remembers this enigmatic video of the Spice Girls?
I saw him yesterday after a long time and I still do not quite understand the meaning ...

For those who do not remember if this is the plot ...

There are two children (one which is sexually unclassifiable) who are playing in the woods ... obviously (like all children of 10-12 years) is not that shines for peace and in fact at some point come out from behind a bush decided to take revenge for 5 have been disturbed ..
one of two children (that look more awake and clearly was pea-equipped) intelligently runs away, leaving the other being at the mercy of these ... spicy-fairies, anything with a face that stands there bewildered alarm in front of the 5 dragons but dall'aspeto pissed as sweet and angelic. They are obviously determined to make it pay: the first blonde spits in his face, the color of the throws a punch (a small, but still a fist eh!) and then tricked him draw close to a giant Rubik's cube.
Meanwhile, the friend who had fled, thinking back on his feet to his membership of a volunteer and I think if he had been expelled from the body would no longer have to enter the discount to the movies. The notes, however, the timid friend (which no one has yet identified the sex after 5 minutes of video, and nobody will succeed to the end) that leaves from 5 sbefeggiare fairies without intervening. At this point, the hermaphrodite is driven by fraud to enter the Rubik's cube that ends making disappear into thin air.
Friend, dejected and pissed off at the same time thinking about the lost facility for the cinema, he decides to take revenge starting to play with the Rubik's cube was on the ground by turning the faces colored shreds and pulp left inside the hermaphrodites. After
revenge and sure he killed the ex-friend from the enigmatic face, comes in front of a giant trash can shaped like a toy and threw in the Rubik's cube to suppress evidence. End

Tuesday, September 25, 2007

Find A Dune Buggycalgary

"Apple Supermarket"



http://www.melablog.it/post/4462/ipod-classic-peggiora-la-qualita-audio

Yeah .. when all they saw at MacWorld this image, came to ask what would lead ..
doubts, assumptions today in my opinion have become really clear ..

After the poor display of the new iMac ( http://www.melablog.it/post/4405/imac-20-lcd-di-bassa-qualita ) today there are those who became aware of the fact step back with the iPod classic .. Chip
poorer than the previous generation (the 5G) ...
Yet, after elimination of the "Computer" from name, and after the delay of Mac OS X 10.5 Leopard, I would bet that by now the only real business were the iPod and the iPhone ...
believe that they would concentrate on all of them, churning out products that are always up to the name but ... race to save ... cheap products from supermarket ...
I was wrong about the "what", but I was wrong about the "how" ...
Apple is no longer synonymous with quality ... is only one company that aims to market ... .. like all the other disappointing his old clients ...
the "think different" now means no longer distinguish themselves from others ... but apart from the Apple of yore ...

Goodbye darling Apple Computer Inc..