How to advocate for good backups! Or, how NOT to advocate for good backups!

Posted on Updated on

Originally posted at http://www.pythian.com/blogs/767/how-to-advocate-for-good-backups-or-how-not-to-advocate-for-good-backups.

GraveWarning_DatabaseBackups

Advertisement

Online photo editors

Posted on

PIxlr – Photoshop-like replacement

http://www.pixlr.com/

 

Picnik – iPhoto level app

This one is less “scary” for users, as the interface is a bit more simple and intuitive

http://www.picnik.com/

 

text/application type is deprecated

Posted on Updated on

This was news to me–RFC4329 explicity declares text/javascript to be obsolete. Instead, application/javascript is to be used. The problem? Not all browsers support it yet.

Here’s the breakdown:

Firefox

  • Firefox 3.5.4 – supported

Internet Explorer

  • IE 8 – NOT supported

Safari

  • Safari 4.0.3 – supported

Chrome

  • Chrome 3.0 – supported

Determining if a method was called statically

Posted on

In PHP, it’s occasionally helpful to call a method sometimes statically and sometimes from class instance. Figuring out which way a method has been called is pretty straightforward, thanks to a function posted in the PHP documentation:

<?php
function foo () {
$isStatic = !(isset($this) && get_class($this) == __CLASS__);
}
?>