Perl Petstore Enhanced REST API Framework
I’ve been doing a lot of work with REST APIs and microservices, so I decided to write a complete REST API framework in Perl based on the Mojolicious and Swagger2 Petstore sample. You can git clone the...
View ArticlePerl and Monotonic Time Functions
Perl on Linux supports the POSIX C clock_gettime() function to get the monotonic time (always increasing system time, except for variable overflow) values: Comparing monotonic time values: avoid...
View Articlesv.pm.org: Moose (OO Perl)
Tonite at Silicon Valley Perl Mongers, Venugopal gave a talk on “Moose (OO Perl).” It was a dark and stormy nite, but a dozen members still arrived. Venugopal did a great job explaining how Moose...
View ArticleConfiguring IPv6 on Linux CentOS
Configuring IPv6 is this easy if your ISP is IPv6-ready on CentOS 5 and 7: /etc/sysconfig/network-scripts/ifcfg-my_interface file, note the settings that start with “IPV6” DNS2=2001:4860:4860::8888 –...
View ArticleLecture: Silicon Valley Perl Meetup – REST API Server Programming With Perl
I gave a talk at the Silicon Valley Perl Meetup on “REST API Server Programming With Perl.” Here are the slides: Part 1: “The REST API Landscape in 2017” Part 2: “REST API Server Programming with Perl,...
View ArticlePerl, DBI and MySQL utf8mb4 Character Set Support
MySQL’s modern UTF-8 encoding is named utf8mb4 (4 bytes), not utf8 (3 bytes.) For new applications, especially web, you should start with utf8mb4. For existing applications, you need to decide if an...
View ArticleRedis and CentOS 7
Redis is a feature-packed cache that’s easy to install and work with. Here’s some notes on installing and using Redis with CentOS 7. Install available redis package from your available yum repos: # yum...
View ArticlePerl Sample Code for Geolocation Lookups with MaxMind GeoLite2
There’s been a lot of changes with MaxMind’s GeoIP database: You must register for an account to download databases. The database format was changed from GeoIP to GeoIP2. The free databases are called...
View ArticleGithub Actions Demo Repo with Several Programming Languages
I created a Github repo to test using the Github Actions build workflow feature to lint several programming languages (Perl, Python, Ruby and Bash) in different directories simultaneously. Github...
View ArticleOpenAPI to GraphQL Gateways
A lot of companies are in the situation where they have a working, tested REST API server and they want to enable GraphQL queries as easily as possible. Both are data access methods that allow...
View Article