Via r/programming: Advanced console.log Tips & Tricks. A good run down on browser logging facilities…
Category Archives: Programming
Testing in Production, the safe way
This via r/programming today: Testing in Production, the safe way.
How you average numbers matters
This on lobste.rs today: How you average numbers matters.
Google C++ Style Guide
Today I (re)discovered the Google C++ Style Guide. There are other Google Style Guides.
Learn X in Y minutes
Today on r/programming: Learn X in Y minutes — looks like a great resource! I read the PHP notes, they were good. Comprehensive and to the point.
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.
Challenging projects every programmer should try
Man these look *hard*: Challenging projects every programmer should try.
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