Tuesday, November 14, 2017
Simon Tushev

Simon Tushev

Simon is IT professional with interests in web design, electronics, photography and astronomy. He writes about PHP, Yii, Joomla!, Arduino and several other topics.

nginx introduced dynamic module support in v. 1.9.11. This brief article provides step-by-step procedure to enable GeoIP support on your CentOS server.

This is is "random" image generated using PHP rand() function:

50c4692360d970e64ef356f74746f894

And this is an image base on true random generator:

e50c4c4f806f423ab6ca6253c403ebdd

 (Having a true random number is extremely important in cryptography, simulations and so on)

Monday, 12 October 2015 12:46

Best EEPROM practices

(this article is a work in progress). My own advice will be added later...

 

Having a system that regularly writes parameters to the EEPROM can wear out the EEPROM, since it is only guaranteed to endure 100 k erase/write cycles. Writing the parameters to a circular buffer in EEPROM where each of the elements in the buffer can endure 100 k erase/write cycles can circumvent this. However, if the system is exposed to RESET conditions, such as power failures, the system needs to be able to identify the correct position in the circular buffer again. This document describes how to make safe high endurance parameter storage in EEPROM/

Read more: http://www.atmel.com/images/doc2526.pdf

If you run nginx on Windows (for development purproses, for instance), you may often experience 'An existing connection was forcibly closed by the remote host' errors.

To get rid of them, add the following lines to your nginx.conf:

keepalive_timeout 65; keepalive_requests 500; proxy_http_version 1.1;
Friday, 02 October 2015 19:44

Pale Blue Dot

Page 1 of 7

Welcome!

Here I publish articles related to my areas of interest, my brief notes that may save some time to others, as well as some of my works.

This site is a work in progress. I will add more sections in the future, such as

  • More photos to photogallery
  • More Joomla!-related articles
  • ...

 

themeforest

New Posts

Using dynamic GeoIP module with nginx (CentOS)

nginx introduced dynamic module support in v. 1.9.11. This brief article provides step-by-step procedure...

13-04-2016 in Linux, BSD, Unix

READ MORE

Visual difference between pseudo and true random data

This is is "random" image generated using PHP rand() function: And this is an image...

20-11-2015 in Blog

READ MORE

Best EEPROM practices

(this article is a work in progress). My own advice will be added later...   Having...

12-10-2015 in Arduino

READ MORE
Scroll to top

We use cookies, just to track visits to our website, we store no personal details Privacy policy