Opensource: be grateful for enterprisey mess

Apparently, it has taken almost a year for the most popular PHP mailing library to support TLS v1.1 and v1.2 !? https://github.com/swiftmailer/swiftmailer/issues/933 (Packagist says it is downloaded almost 73 million times! https://packagist.org/packages/swiftmailer/swiftmailer) … only after PHP geeks freaked out, started screaming, running like headless chickens (online), including me, maybe because some paranoid security guys turned … Read moreOpensource: be grateful for enterprisey mess

WHAT HAS CHANGED SINCE PHP 5.5.3?

A LOT! From: http://www.charliebaird.co.uk/bugs_2000.htm Bugs are not always cute. So, we need to upgrade all software applications we use on a regular basis. Ref: php.net/ChangeLog-5.php Version 5.5.22 19-Feb-2015 Core: Fixed bug #67068 (getClosure returns somethings that’s not a closure). Fixed bug #68925 (Mitigation for CVE-2015-0235 – GHOST: glibc gethostbyname buffer overflow). Fixed bug #68942 (Use … Read moreWHAT HAS CHANGED SINCE PHP 5.5.3?

PHP is dying faster because … (part 2)

PHP 5.0 was released in July 2004. Almost 11 years and we know that they gave up on PHP 6.0 🙁 In IT world, that is a massive failure and a huge embarrassment! Think for a minute: thousands of “genius” developers working together to improve PHP itself, rather than creating another bloody framework!!! How would … Read morePHP is dying faster because … (part 2)

Online Relocation: Moving from 1and1 to AWS Route 53 and Digital Ocean

Even though it is time consuming, I think we have to reconsider our web hosting options regularly. If our current provider does not renew its products and services, together with their pricing structure (Amazon does, 1and1 does not), they become less competitive. After long research, I have decided that AWS has confusing pricing structure and … Read moreOnline Relocation: Moving from 1and1 to AWS Route 53 and Digital Ocean

EU VAT Number Validation SOAP Service

We are a VAT registered company in UK, and I am the lead developer of a small team. http://www.whatusersdo.com/ Like many online global businesses invoicing clients from many different countries, we are obliged to invoice them correctly with or without VAT whether they are VAT registered companies within EU or not, or individuals, etc. So, … Read moreEU VAT Number Validation SOAP Service

Composer for PHP: Do we really need it?

If you are wondering what we are dealing with in PHP world on a day to day basis, here is an example: just check http://getcomposer.org and autoload*.php files in it!! It’s supposed to be a solution!? First of all, PHP saved us huge pain by autoloading classes. It’s been brilliant! Now, it is a mess, … Read moreComposer for PHP: Do we really need it?

PHP get_browser function to detect user’s OS and browser details

I’ve just lost a day because of this stupid browser_name_regex property: e.g. “§^mozilla/5\.0 \(.*windows nt 6\.1.*wow64.*\) gecko/.* firefox/29\.0.*$§” To replicate the issue and work around bloody ‘§’ character, please see below. Whose idea was it to use that character?!

To use a framework or not to use a framework: again!

If using a PHP framework is recommended for its reusability, maintainability, popularity; why would a developer create a web application which does not have many reusable parts, which is not easy to maintain, and which takes time to learn even though you can easily find another developer who used it before?! Here are some interesting … Read moreTo use a framework or not to use a framework: again!

Postgresql and Node.js 100% Javascript Adventure – Part 2

This is the second part of PostgreSQL, Node.js and JavaScript post. We can continue by installing PL/V8:

Then we can create the extension in our database.

And run SQL command below:

Then, we can create functions using PL/V8 JavaScript language. A simple example is below:

It gets variable inputs as JSON … Read morePostgresql and Node.js 100% Javascript Adventure – Part 2

PostgreSQL and Node.js – 100% JavaScript Adventure

This is a log of every step I will take to create a 100%-JavaScript application back to front. Hardware: Windows 7 64bit Home Edition ASUS laptop with Intel P6100 CPU @2.0GHz, 4GB RAM, 320GB HDD Oracle VirtualBox 4.2.12 Ubuntu 12.04.2 – Long term support Downloaded 32bit ISO image – laptop does not support 64bit virtualisation … Read morePostgreSQL and Node.js – 100% JavaScript Adventure