There’s lots to know about Voice/SIP for VoIP.
Unicode Regular Expressions
Found some good info on Unicode in regular expressions: Unicode Regular Expressions. Particularly some good doco about Unicode Categories and how to indicate them in regular expressions.
No meta characters in regex character classes
Today while reading Writing better Regular Expressions in PHP I learned that meta characters are treated as literals in character classes. So '/^(\d[.]\d)$/' will match '1.2' but not '1x2'. Who knew!?
String validation in PHP
Learn about character type checking and filter_var. I bumped into these while reading Writing better Regular Expressions in PHP.
Why Decentralised Applications Don’t Work
Via HN today: Why Decentralised Applications Don’t Work. TL;DR: Misaligned profit motives. Wish I had time to read more than the tl;dr.
Challenging projects every programmer should try
Man these look *hard*: Challenging projects every programmer should try.
Teardown of a PC power supply
This via Lobsters today: Teardown of a PC power supply. Also Macbook charger teardown and Apple iPhone charger teardown.
Write Your Own Operating System
I found some cool videos about writing an OS in Assembly:
John’s PHP Extension library
Note to self: my PHP extension is here: jj5@tact:/home/jj5/repo/git/git.php.net/php-src/ext/pext
The .so file (shared object) is in modules/pext.so
I linked it in like this:
------------------- Sun May 23 13:44:22 root@tact:/usr/lib/php/20170718 # ln -s /home/jj5/repo/git/git.php.net/php-src/ext/pext/modules/pext.so . -------------------
Configured it like this:
------------------- Sun May 23 13:44:47 root@tact:/usr/lib/php/20170718 # cat /etc/php/7.2/cli/conf.d/pext.ini extension=pext.so -------------------
And I can build it like this:
------------------- Sun May 23 13:51:37 jj5@tact:/home/jj5/repo/git/git.php.net/php-src/ext/pext $ make clean && make
Getting Started with PHP Extension Development via PHP-CPP
Today I found Getting Started with PHP Extension Development via PHP-CPP which talks about what it says on the label. But then some more searching revealed a more direct alternative: How to Create a PHP C Extension to Manipulate Arrays – Part 1: Basic Array Class Extension