Ri Xu Online

Change the life in a geek way

  • Home
  • Coding
  • Cloud Native
  • Excelize
  • Aurora
  • TOML-to-Go
  • Rust Report Card
  • About
  • Blog Statement
  • Blogroll
  • Privacy Policy
  • Navigation

Save a PNG image from a base64 data string with PHP

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);…

Ri Xu November 18, 2014 Coding 1 Comment
Read more

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.…

Ri Xu November 17, 2014 Web No Comments
Read more

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…

Ri Xu November 10, 2014 Linux 1 Comment
Read more

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…

Ri Xu November 9, 2014 Linux No Comments
Read more
  • Page 33 of 83« First‹ Previous293031323334353637Next ›Last »

Categories

  • Apps
  • Books
  • Classical Music
  • Cloud Native
  • Coding
  • Kubernetes
  • Life
  • Linux
  • Mac
  • MCU
  • Programming Office
  • Security Related
  • Web
  • Windows

Archives

Tags

Algorithm Apache Apple Apps Banchmark Books CentOS Classical Music Cluster Coding Docker git Go Language Hadoop Homebrew IIS iOS Java Laravel Life Linux Mac MCU Memcached MySQL Nginx Octopress Oracle OS X PHP PostgreSQL Programming Office Python RAID Security Related Server ShadowSocks SSD SSL Ubuntu Vim Virtualization Web WebSocket Windows
Copyright © 2013 - 2025 Ri Xu Online All rights reserved.
Hosting on Azure