We can extract the base64 image data from that string, decode it and save it to disk, don't need GD since it already is a png. <?php // requires php5 define('UPLOAD_DIR', 'images/'); $img = $_POST['img']; $img = str_replace('data:image/png;base64,', '', $img);…
Test a website for Retina without an actual Retina Display
There a way to simulate a Retina display to test a website for HiDPI displays such as Retina. We can using Firefox. Go to about:config Find layout.css.devPixelsPerPx Change it to your desired ratio (1 for normal, 2 for retina, etc.…
Fix ERROR InnoDB: The InnoDB memory heap is disabled
Wiki InnoDB is a storage engine for MySQL. MySQL 5.5 and later use it by default. It provides the standard ACID-compliant transaction features, along with foreign key support (Declarative Referential Integrity). It is included as standard in most binaries distributed…
Slove MySQL Plugin 'FEDERATED' is disabled.
Recently, a MySQL server I manage has shut down abnormally. I find some information in error log Plugin 'FEDERATED' is disabled. The FEDERATED storage engine is available beginning with MySQL 5.0.3. It is a storage engine that accesses data in…