Enable JavaScript to use search. / 検索を使用するには JavaScript を有効にしてください。
Posts
Sun, April 9, 2017
1 min read
[Ubuntu] How to handle messages saying packages can be updated or updates are security updates
How to handle the 'packages can be updated' message on Ubuntu with apt-get update and upgrade.
read more →
Thu, April 6, 2017
2 min read
Points to check when configuration file specified in Serposcope's Dserposcope.conf is not loaded
Serposcope ignored `-Dserposcope.conf` because I had the `java` command options in the wrong order.
Wed, April 5, 2017
[MySQL] How to configure my.cnf (Mac + Homebrew Edition)
How to configure my.cnf for MySQL installed with Homebrew on Mac.
Sun, April 2, 2017
Change MySQL character encoding to UTF8
Steps to switch MySQL 5.7's character encoding to UTF8 via my.cnf.
Sun, March 26, 2017
Free VPN Service Tunnello Recommended
How to install and use Tunnello, a Chrome extension VPN service with 1GB free per month.
Sat, March 25, 2017
[Mocha] Execution order of before, beforeEach, after, afterEach
The execution order of Mocha's before, beforeEach, afterEach, and after hooks with sample code.
Fri, March 17, 2017
4 min read
Vue.js Tokyo v-meetup="#3" Participation Report #vuejs_meetup3
A personal summary of the sessions I attended at Vue.js Tokyo v-meetup #3.
Wed, March 15, 2017
CAPTCHA Frequency with Search Ranking Checker Tool Serposcope
A case study of tuning Serposcope to keep CAPTCHA occurrences under 10 across about 6000 keywords.
Sun, March 12, 2017
[MongoDB] Query to Get Documents with nth Decimal Places and Update with mth Decimal Place Values
Use $where and `toFixed(2)` to round prices with 3+ decimal places down to two.
Sat, March 4, 2017
How to use Windows on Mac for free (IE, Edge only)
Set up IE and Edge testing on a Mac for free using VirtualBox and ievms.
Thu, March 2, 2017
6 min read
Inside Frontend #1 Participation Report #insideFE
Notes and impressions from the sessions I attended at the Inside Frontend #1 conference.
Mon, February 27, 2017
[Mongoose] Using Only createdAt with timestamp options
How to keep only createdAt in Mongoose by implementing it yourself in pre save/update hooks.
Thu, February 23, 2017
3 min read
How to Build a Proxy Server with Squid3
Steps for building an HTTP proxy server on Ubuntu using Squid 3.x.
Wed, February 22, 2017
Price Comparison of CAPTCHA Breaking Services Compatible with Search Ranking Checker Tool Serposcope
A price comparison of four CAPTCHA breaking services that work with Serposcope, with a monthly cost estimate.
Tue, February 21, 2017
Practicing the Pomodoro Technique with the Toggl App
Turning on Pomodoro timer settings in the Toggl app to run the technique in a familiar tool.
Sat, February 18, 2017
I Tried Using Free Proxies with Search Ranking Checker Tool Serposcope but It Didn't Work
I hooked Serposcope up to free proxies, but CAPTCHAs made it completely unusable.
Wed, February 15, 2017
Steps to Install Search Ranking Checker Tool Serposcope on Ubuntu
Install the Serposcope 2.6.0 deb package on Ubuntu and start the service to expose the rank checker.
How to Install Java 8 on Ubuntu 16
Add the webupd8team PPA and install Oracle Java 8 on Ubuntu 16.04 for a serposcope host.
Mon, February 13, 2017
Free WordPress Cache Plugin Comparison
Comparing free WordPress cache plugins from an Nginx + PHP-FPM operator's perspective.
Fri, February 10, 2017
Installing iftop on Mac
After brew install iftop, the binary wasn't on PATH, so I symlinked it into /usr/local/bin/.
Thu, February 9, 2017
Options I Use with ssh-keygen When Creating SSH Public and Private Keys
The ssh-keygen options (-t, -b, -f, -C, -l) I regularly use to create SSH key pairs.
[JavaScript] How to Get the Number of Decimal Places
A getDecimalPlace helper that uses toString().split('.') to count decimal places in JavaScript.
Sun, February 5, 2017
[JavaScript] Remove All Elements with Specified ID or Class Name
Pure JavaScript functions to remove DOM elements by id or class name, no jQuery required.
Fri, February 3, 2017
[Mongoose] You Can Skip Validation with model.save({ validateBeforeSave: false })
From Mongoose 4.2.0 you can skip validation with save({ validateBeforeSave: false }).
Tue, January 24, 2017
[Nginx] Configuration to Redirect HTTP to HTTPS & HTTP Strict Transport Security (HSTS) Support
Nginx configs for a 301 HTTP→HTTPS redirect and the HSTS header, plus how to submit to the HSTS Preload List.
Sat, January 21, 2017
[Mac] Fixing 'Error: /usr/local must be writable!' with brew update
Notes on recovering from brew update's /usr/local must be writable! error via chown and brew prune.
Fri, January 20, 2017
[Git] Command to Bulk Delete Merged Remote Branches
Bulk deleting merged remote Git branches with git branch --merged and xargs, then pruning stale refs.
Sun, January 8, 2017
[WordPress] How to Support Accelerated Mobile Pages Using the AMP Plugin
Adding AMP support to WordPress and fixing disallowed tags flagged by AMP Test.
Fri, January 6, 2017
[MongoDB] How to Check the Storage Engine
Check the MongoDB storage engine via `db.serverStatus().storageEngine`.
Sat, December 31, 2016
5 min read
Looking Back on 2016
Reflecting on 2016 across business improvement, returning to engineering, and starting remote work from Kumamoto.
Tue, December 20, 2016
[JavaScript] Regular Expression and Snippet to Replace Line Break Characters \r\n \r \n with Spaces
A JavaScript regex snippet that replaces \r\n, \r, and \n line breaks with a single space.
Sun, December 18, 2016
Got Library not loaded: libreadline error when running psql, so I ran brew upgrade postgresql
How I fixed a psql libreadline error with brew upgrade postgresql and pg_upgrade.
Thu, December 15, 2016
Promise reference articles summary [JavaScript/ECMAScript6]
A personal reading list of reference articles for learning ES2015 Promises in JavaScript and Node.js.
Wed, December 14, 2016
WordPress files and database automatic backup and upload to Google Drive
Automating WordPress file and MySQL backups to Google Drive with the gdrive CLI and cron.
Fri, December 9, 2016
[Mongoose][timekeeper] TypeError: Undefined type `FakeDate` at `fieldName`
Calling new mongoose.Schema inside timekeeper.freeze throws a FakeDate TypeError — cause and fix.
Tue, December 6, 2016
[MongoDB] Getting year-month-day string from ISODate
Extracting YYYY-MM-DD from a MongoDB ISODate with toISOString().substring(0, 10).
Fri, November 25, 2016
Reusing variables between different versions of Moment.js and Moment Timezone resulted in spectacular bugs
Mixing Moment.js and Moment Timezone versions broke date handling due to how the _d property is treated.
Thu, November 24, 2016
Article summary explaining Tech Lead roles clearly
A reading list of the articles and podcasts I used to understand what a Tech Lead actually does.
Fri, November 18, 2016
git log -S can search for code deleted in the past
How to use `git log -S` to find commits that added or removed a specific piece of code.
Tue, November 15, 2016
[JavaScript] Use onload event to execute processing after iframe loading completes
Use the iframe onload event to run JavaScript after loading, with a jQuery example to disable inner links.
Sun, November 13, 2016
Won ANTOR-JAPAN Award at 'Think Regional Revitalization in Tokyo! RESAS API Hackathon'
First-hackathon report: team Zen OS won the ANTOR-JAPAN Award at the RESAS API Hackathon.
[Node.js] Installed socketio instead of socket.io and got 'Cannot find module 'socket.io'' error
Mixing up the socketio and socket.io npm packages led to a Cannot find module error — here's the fix.
Tue, November 8, 2016
moment-timezone old version caused date processing bugs during daylight saving time switch
An old moment-timezone bugged out at the DST switch — upgrading fixed it, and here's why tz updates matter.
Sun, October 23, 2016
[Heroku] Deploy only subdirectories
Deploying only the api subdirectory of a monorepo to Heroku with git subtree push.
Thu, October 13, 2016
[Atom] How to fix getaddrinfo ENOTFOUND atom.io atom.io:443 error
Fixing `apm starred`'s `getaddrinfo ENOTFOUND atom.io` error by running `apm login`.
Mon, October 10, 2016
Using icon font Ionicons with Ionic Framework
How to find and use Ionicons, the icon font that comes with Ionic Framework, via the icon and ion-* classes.
[Atom.io] Format JavaScript source code with atom-beautify
Formatting JavaScript in Atom with the atom-beautify package.
Tue, September 6, 2016
How to overwrite and save files with sed command
Two ways to overwrite a file in place with the sed command — the -i option and a redirect + cp pattern.
Mon, August 29, 2016
How to set animated GIFs to loop playback
Using gifsicle's --loopcount and --batch options to configure loop playback for animated GIFs.
Fri, August 5, 2016
Five cultural differences between Japanese and US companies you should know
A colleague's Tech Talk Tokyo #4 slides on five cultural differences between Japanese and US companies.