web – Useful Mix http://usefulmix.com Something useful every once in a while... Thu, 11 Oct 2018 07:47:17 +0000 en-US hourly 1 https://wordpress.org/?v=4.9.10 sleep-calculator.com – Calculates the Best Time to Go to Sleep So You Wake Up Refreshed http://usefulmix.com/sleep-calculator-com-calculates-the-best-time-to-go-to-sleep-so-you-wake-up-refreshed/ http://usefulmix.com/sleep-calculator-com-calculates-the-best-time-to-go-to-sleep-so-you-wake-up-refreshed/#respond Sun, 13 Apr 2014 09:11:28 +0000 http://usefulmix.com/?p=283 Continue reading "sleep-calculator.com – Calculates the Best Time to Go to Sleep So You Wake Up Refreshed"]]> Sleep Calculator web app

Waking up refreshed and comfortable consists of getting to bed at the right time. Sleep-calculator.com is a webapp that makes decisions based on our sleep cycles and calculates when you should fall asleep / wake up.

Punch in when you need to wake up and you’ll get 4 best times to fall asleep.

Other scenarios are available as well:

  1. Depending on your situation you might want to know when to go to sleep to wake up at a specified time (in this case go for Scenario 1)
  2. You might want to decide the best times to wake up after having gone to sleep at a specified time (in this case go for Scenario 2)
  3. You might want to simply know the best times to wake up if you were to go to sleep this instant (in this case go for Scenario 3)
  4. If plan to take a power nap it will give you the best time at which you should wake up (in this case go for Scenario 4)

Give it a try to see if you can time your sleep for the best rest.

Sleep-Calculator.com

]]>
http://usefulmix.com/sleep-calculator-com-calculates-the-best-time-to-go-to-sleep-so-you-wake-up-refreshed/feed/ 0
Nginx Error – 413 Request Entity Too Large Fix http://usefulmix.com/nginx-error-413-request-entity-too-large-fix/ http://usefulmix.com/nginx-error-413-request-entity-too-large-fix/#respond Mon, 17 Mar 2014 09:04:09 +0000 http://usefulmix.com/?p=274 Continue reading "Nginx Error – 413 Request Entity Too Large Fix"]]> If you’re getting 413 Request Entity Too Large errors trying to upload files to your webserver, you need to increase the client body size limit in your nginx.conf configuration file.

Add ‘client_max_body_size xxM’ inside the server section, where xx is the size (in MB) that you want to allow for files upload to your webserver.

The client_max_body_size directive assigns the maximum accepted body size of client request, indicated by the line Content-Length in the header of request.

To edit your nginx configuration, in your terminal type the following:

sudo nano /etc/nginx/nginx.conf
or
sudo nano /usr/local/nginx/conf/nginx.conf
and set the
# set client body size to 2M #
client_max_body_size 2M;

as per the example below:

http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;

server {
client_max_body_size 2M;
listen 80;
server_name localhost;

# Main location
location / {
proxy_pass http://127.0.0.1:8000/;
}
}
}
]]>
http://usefulmix.com/nginx-error-413-request-entity-too-large-fix/feed/ 0