Enable JavaScript to use search. / 検索を使用するには JavaScript を有効にしてください。
Posts
Tue, November 19, 2019
2 min read
Redis Replication (Master-Slave) Environment Setup [docker-compose Edition]
Setting up and verifying a Redis master-slave replication environment with docker-compose.
read more →
Sat, November 16, 2019
3 min read
Determining Country, City, Postal Code, and ASN from IP Address [GeoIP2 + Node.js]
Node.js samples for looking up country, city, postal code, and ASN from an IP with GeoIP2.
Thu, November 14, 2019
[Linux] Command to Delete Old Files by Specifying Date and Time
Use find with -mtime / -atime and xargs rm to bulk delete old files on Linux when freeing up disk space.
Tue, November 12, 2019
1 min read
[Linux] Command to Check Directories with High Disk Usage
Combine du and sort to find the top directories eating disk space on Linux when hit with a disk full warning.
Sat, November 9, 2019
How to Deploy an Existing Express.js Project to Heroku
Adding a Procfile to an existing Express.js app and deploying it to Heroku.
Thu, November 7, 2019
[JavaScript] Use unicode-substring for Extracting Parts of Strings Containing Unicode
Why substring breaks surrogate pairs — and how the unicode-substring package slices Unicode strings safely.
Tue, November 5, 2019
[JavaScript] Detecting Hyphens and Dashes with Regular Expressions Using unicode-regex + Dash_Punctuation
Detect the many kinds of hyphen and dash characters at once by combining unicode-regex with the Dash_Punctuation category.
Sat, November 2, 2019
[Express.js] Timeout Configuration Changes and Sample Code for Testing
Express.js default timeout, plus sample code for server / request / response setTimeout behavior.
Thu, October 31, 2019
JavaScript Function Currying Sample Code
Currying samples that let you call add(2)(3)(4).result(), written in both ES5 and ES6 styles.
Tue, October 29, 2019
[Linux/macOS] Batch Compress Files to .gz with gzip Command
Use gzip * to batch compress log files and free up disk space when hit with a sudden disk full incident.
Sat, October 26, 2019
Achieve Comfortable Video Calls with Noise Cancelling App Krisp
Using the Krisp noise-cancelling app to keep remote video calls clear from background noise.
Thu, October 24, 2019
4 min read
[WordPress] Fixed Email Sending Issue with WP Mail SMTP Version 1.7.0
How I fixed WP Mail SMTP 1.7.0 by swapping the From Email and From Name fields back to their correct values.
Tue, October 22, 2019
Differences Between JavaScript Functions and Methods
The difference between JavaScript functions and methods, framed around MDN, CodeZine, and how this is bound.
Sat, October 19, 2019
HTTrack - Tool for Saving Entire Websites - macOS Edition
How to install HTTrack on macOS via Homebrew and mirror a whole website for offline browsing.
Thu, October 17, 2019
[JavaScript] Median Calculation Sample Code and Math.js Usage Examples
Compute the median in JavaScript with Math.js's math.median, or hand-written ES5 / ES6 functions.
Fri, October 11, 2019
Digital Content (PDF, Images, ZIP) Redistribution Prevention Strategies
Notes on preventing redistribution of PDF, image, and zip content sold on an EC site.
Thu, October 10, 2019
How to Update Node.js + NPM + Express All to Latest Versions
Bumping Node.js to the latest LTS and refreshing an Express project's npm deps in one shot with npm-check-updates.
Tue, October 8, 2019
How to Renew and Repurchase AWS EC2 Reserved Instances
Notes on renewing and repurchasing EC2 Reserved Instances after they expire, since they aren't auto-renewed.
Sat, October 5, 2019
Update nvm version | nvm バージョンアップデート
Running the official nvm manual upgrade shell script to update nvm itself.
Thu, October 3, 2019
Bookmarklet and JavaScript Sample Code to Bulk Show GitHub Hidden Comments
A bookmarklet and JS snippet to bulk-expand all Hidden Comments on a GitHub issue for browser search.
Tue, October 1, 2019
[Express.js] How to Fix (node:10151) UnhandledPromiseRejectionWarning: TypeError: res.status is not a function
If Express.js throws `res.status is not a function`, check the order of `req`, `res` in your handler.
Sat, September 28, 2019
[Newgistics] Time Zone is America/Denver - MT(MST/MDT)
How I identified the Newgistics API timezone as America/Denver (MT) from the newgistics-ruby client.
Thu, September 26, 2019
[JavaScript] Sample Code for Timezone String Validation with moment.tz.zone
Validate timezone strings in JavaScript with Moment Timezone's moment.tz.zone in just a few lines.
Tue, September 24, 2019
How to Prevent Chrome Browser from Caching 301 Redirects
Avoiding Chrome's 301 redirect cache trap in short-URL services by using 302 or 307 instead.
Thu, September 19, 2019
How to Display Ads in the Top Header Area with Google AdSense
Displaying ads in the top header area of a page with Google AdSense auto ads.
Tue, September 17, 2019
[JavaScript] How to Fix the Problem Where removeEventListener Cannot Remove Events
Why removeEventListener silently fails when the listener is redefined, and how to fix it by lifting the listener out.
Sat, September 14, 2019
Easy Table of Contents - WordPress Plugin for Displaying Table of Contents
Setting up Easy Table of Contents to auto-generate a WordPress post TOC.
Tue, September 10, 2019
[Shippo] Address Validation API Returns Valid Zip Code Even When Invalid Zip Code is Passed
Shippo's Address Validation API returns VALID even for an invalid zip — verified via cURL.
Sat, September 7, 2019
It's better to spend money on routers rather than internet connections
A colleague's advice on spending money on routers rather than internet connections, with recommended and avoided models.
Thu, September 5, 2019
Resolve Japanese character corruption in MySQL CLI with SET character_set_results=utf8mb4;
Fixing Japanese mojibake in the MySQL CLI with SET character_set_results=utf8mb4;.
Tue, September 3, 2019
How to send emails from Zendesk using G Suite group custom domain email addresses
Send Zendesk email from a G Suite group address on your custom domain, with Route 53 and SPF setup.
Sat, August 31, 2019
Modern Mobile-responsive JavaScript slider library Swiper
How I modified Swiper's sample code to load from CDN so the demos run as a standalone file.
Thu, August 29, 2019
Explanation of mongoose.Schema type: ObjectId
What type: ObjectId in a mongoose.Schema means, including MongoDB _id and Mongoose ref.
Tue, August 27, 2019
[WordPress] How to resolve Facebook Sharing Debugger 'The following properties are required: fb:app_id' error
Fixing Facebook Sharing Debugger's fb:app_id error with Yoast SEO.
Sat, August 24, 2019
How to completely uninstall Android apps for clean reinstallation
Steps to cleanly uninstall and reinstall an Android app, including turning off Google Drive backup.
Thu, August 22, 2019
How to transfer files to Android 9 devices using Android File Transfer
Switching the Android 9 USB mode to File Transfer and sending files from macOS with Android File Transfer.
Tue, August 20, 2019
'Product Managers Talk About Their Careers. For Engineers Under 35 Aspiring to be PdM【kiitokMeetup】' Participation Report #kiitok_meetup
Notes and takeaways from the kiitokMeetup event on product manager careers for aspiring PdMs.
Mon, August 19, 2019
'DMM meetup #12 Technologies Supporting DMM's New Business' Participation Report #dmm_meetup
Notes from DMM meetup #12 covering DMM's tech vision, Bitrise, Redash, and a containerization case study.
Sat, August 17, 2019
Amazon S3 'A conflicting conditional operation is currently in progress against this resource. Please try again.' error
Waiting out the S3 `conflicting conditional operation in progress` error when recreating a bucket with the same name.
Thu, August 15, 2019
How to publish a static website with custom domain using Amazon CloudFront + S3 + Route 53
Publishing a static site on a custom domain with CloudFront + S3 + Route 53, including OAI and HTTPS setup.
Tue, August 13, 2019
Hosting a static website on Amazon S3
Hosting a static site on Amazon S3, both S3-only and in combination with CloudFront.
Sat, August 10, 2019
Operational policy for distributing YouTube channel revenue among multiple people
An operational policy for splitting YouTube channel revenue among multiple owners, and where to check the earnings.
Thu, August 8, 2019
Renaming virtualenvwrapper environment names
Renaming a virtualenvwrapper environment by combining cpvirtualenv and rmvirtualenv.
Tue, August 6, 2019
Managing Multiple Versions of Ansible with virtualenv
How to install multiple Ansible versions side by side using virtualenv and virtualenvwrapper on macOS.
Sat, August 3, 2019
Considering the Impact and Response Strategy for URL Refactoring
Impact areas and response strategies to consider when refactoring URLs, including 301 redirects.
Thu, August 1, 2019
How to Configure MongoDB Atlas for Development Environment
Setting up MongoDB Atlas for development: free-tier region choice and Network Access whitelist notes.
Tue, July 30, 2019
Run docker system prune --volumes When Getting 'no space left on device' Error with Amazon ECS + Docker
Fixing the no space left on device error on Amazon ECS with docker system prune --volumes.
Sat, July 27, 2019
How to Bulk Delete Unused Docker Images, Containers, Volumes, Networks, and Cache
How to reclaim disk space with docker system prune and per-resource prune subcommands.
Thu, July 25, 2019
How to Deploy EC-CUBE4 to Heroku
Deploying EC-CUBE4 to Heroku with a workaround for the missing app.json error.
Tue, July 23, 2019
[GitHub] How to Filter Pull Requests by Creator and Reviewer
Filter GitHub Pull requests by author and reviewer with is:pr author: and is:pr reviewed-by: search qualifiers.