One Free Invite for the OnePlus X

Today I received an invite for the OnePlus X. The code is: GL71-90E4-75E1-DBA7. This invite is valid for 3 days.

Advertisements

nginx: 413 Request Entity Too Large – File Upload Issue

I got above error message in nginx. Stackoverflow post 413 Request Entity Too Large – File Upload Issue had all information to resolve the issue. The solution was written by User Arun.

One has to edit /etc/nginx/nginx.conf and add in http{...}

client_max_body_size 15900M ;

and /etc/php/php.ini

; Maximum allowed size for uploaded files.
; http://php.net/upload-max-filesize
upload_max_filesize = 15900M

; Maximum amount of memory a script may consume (128MB)
; http://php.net/memory-limit
memory_limit = 6900M

; Maximum size of POST data that PHP will accept.
; Its value may be 0 to disable the limit. It is ignored if POST data reading
; is disabled through enable_post_data_reading.
; http://php.net/post-max-size
post_max_size = 25900M

Besides editing /etc/nginx/nginx.conf and /etc/php/php.ini I had to stop nginx and php-fpm:

systemctl stop nginx
systemctl stop php-fpm

so the changes take effect.

After starting the two services then check with phpinfo().

Small Scale Computing

Below is a short overview of small scale computers for use in embedded computing.

  1. Intel Galileo, single core Quark/Pentium, ca. 100 USD, <15 W
  2. Intel Edison, dual core Atom Silvermont, 500 MHz, ca. 100 USD, <1 W
  3. Raspberry Pi, single core ARM, 700 MHz, ca. 35 USD, ~1 W
  4. Arduino series, e.g., Intel Quark/Cortex, 32 MHz, ca. 15 USD, ~1 W
  5. ESP8266 (spec), single core Tensilica Xtensa LX106, 80 MHz, 7 USD, 1 mW

On the other end of the spectrum there are Mini PCs.

  1. Intel NUC, quadcore Intel i5/i7, ca. 400 USD (no SSD+no RAM), 6-60 W
  2. Apple Mac Mini, Intel i5/i7, ca. 500 USD, 6-85 W
  3. Apple Mac Pro, Intel 3.5 GHz 6-Core Intel Xeon E5, ca. 4,000 USD, <450 W

Now comes the fun part: connecting many small scale computers to a cluster.

Connecting 64 Raspberry Pi running MPI and putting them all into a Lego frame, see Raspberry Pi at Southampton.

Clustering 48 PandaBoards and putting this all into an industrial trashcan, see Phoronix: Building A 96-Core Ubuntu ARM Solar-Powered Cluster.

Clustering ten Intel NUCs each with 10GB RAM: Orange Box, see The Orange Box: Cloud for the Free Man, motto: Most planes fly in clouds…this cloud flies in planes!

Mac Pros are offered in the cloud, see Dedicated Mac Pro server hosting.