GeoIP extension PHP 7.x + AMI / Redhat / CentOs Linux

GeoIP extension PHP 7.x + AMI / Redhat / CentOs Linux

Small 2019 update – Please check out this library – github.com/maxmind/MaxMind-DB-Reader-php

It’s a straight replacement of PHP module.


GeoIP extensions is quite use-full, but it requires some server – side magic. If you are looking for something simpler, just go with  ipstack.com or something similar – GeoIP .

Otherwise:

wget http://pear.php.net/go-pear.phar
php go-pear.phar

We need geoip-devel libraries:

yum install geoip-devel

And newest (not stable) version of geoip:

sudo ./pecl install geoip-1.1.1

Don’t forget to add extension=geoip.so to your php.ini file.

4 reasons why you don’t get a new client Today

4 reasons why you don’t get a new client Today

Each day – new companies want to make the world a better place and try to sell you fantastic service, API, whatever. I’m constantly searching for new exciting, and valuable services which could make “my” (my clients) live easier. Everyone has a flashy website, “Try now”, “Try now for free”, “Signup for free” – fill the form, no credit card required… entry level – no trouble at all. Let’s do it.

How to make email work better email2issue

How to make email work better email2issue

The problem:

We are using a bug tracking system, like most software development companies. Creating an issue is quite simple. Open bug tracking system, fill some inputs, upload attachments – done. The issue is created. Sometimes an issue is described with multiple attachments (screenshots). A bug tracking system allows us to embed images into a description. All issues come from users in the form of an email.

Binary compression still alive – golang binary compression.

Binary compression still alive – golang binary compression.

In the ancient times, when I was coding mostly in Pascal – size did matter. People were using RAR to shave couple kilobytes from archives, and having 2mb executable was better then having 4mb executable file. In that beautiful time we used  UPX – I wasn’t aware that this project is still alive, and works nicely with binaries create bo go lang.

Ultimate Packer for eXecutables
Copyright (C) 1996 - 2017
UPX 3.94        Markus Oberhumer, Laszlo Molnar & John Reiser   May 12th 2017

File size Ratio Format Name
-------------------- ------ ----------- -----------
11512772 -> 3547792 30.82% macho/amd64 main

Packed 1 file.