Enable JavaScript to use search. / 検索を使用するには JavaScript を有効にしてください。
Posts
Thu, June 12, 2014
1 min read
[jQuery] Integers can be rounded with .data() so use .attr() to retrieve them
Older jQuery's .data() rounds long integer data-* values, so use .attr() to keep them intact as strings.
read more →
Sun, June 8, 2014
If You Don't Continuously Update Apps/Web Services, You'll Never Be Able to Develop Them Again
A reflection on how app and web-service dev environments rot when left unmaintained.
Thu, June 5, 2014
2 min read
[Nagios] Changing Alert Email Content
Defining a custom Nagios notify command so alert emails are readable for non-engineer team members.
Sun, June 1, 2014
Common Patterns for Using screen
Common screen command patterns for running long batch jobs over SSH — start, detach, re-attach.
Thu, May 29, 2014
[Backbone.js] Chrome Extension 'Backbone Debugger' is Useful for Debugging
A short note on the Backbone Debugger Chrome extension for debugging Backbone.js apps.
Wed, May 28, 2014
[Nagios] Configuration Method for Operating from Web Management Interface
Fixing the Nagios web UI permission error by joining nginx to the nagios group and tuning cgi.cfg authentication.
[Nagios] Configuration File Verification, Reloading, etc.
Nagios commands for validating configuration files and reloading them without a full restart.
Tue, May 27, 2014
3 min read
[AWS] How to Handle EC2 Instances Stuck in 'stopping' State
Force-stopping an AWS EC2 instance stuck in the 'stopping' state until it transitions to 'stopped'.
[AWS] Sites to Check if Each Service is Running
A short memo of sites for checking whether AWS services are currently up and running.
Sat, May 17, 2014
[Sublime Text] Setting to Draw Vertical Lines for Indentation
Drawing indent guide lines in Sublime Text by setting draw_indent_guides and indent_guide_options in Settings - User.
Thu, May 15, 2014
[Android] How to remove Google (Gmail) account from device
How to remove a Google (Gmail) account from an Android device via the Settings app.
[Node.js] Using node-wkhtmltopdf
How to install wkhtmltopdf via Homebrew so you can use node-wkhtmltopdf from Node.js.
Wed, May 14, 2014
[iOS][CocoaPods] Psych::SyntaxError - ( .cocoapods/repos/master/CocoaPods-version.yml): mapping values are not allowed in this context at line 3 column 4
Fixing pod install's Psych::SyntaxError by upgrading CocoaPods and re-running pod setup on the master repo.
Mon, May 12, 2014
[Apple] Handling 'Your iOS Distribution Certificate will expire in 30 days.'
Renewing an expired iOS Distribution Certificate and rebuilding the provisioning profiles.
Mon, May 5, 2014
[Ghost] How to change blog theme
Installing the free Scriptor theme from Ghost Marketplace under content/themes and activating it from the admin panel.
Deploying Ghost, a Node.js Blog Platform, to Heroku
Getting Ghost running locally and deploying it to Heroku to start a new blog.
Mon, April 21, 2014
[Node.js] Getting File Extensions with path.extname
Extracting file extensions with Node.js's path.extname, illustrated with a few short examples.
Sun, April 20, 2014
[AWS] aws s3 sync ./upload_dir s3://xxx --region ap-northeast-1
Fixing the `aws s3 sync` PermanentRedirect error by passing --region for the bucket's region.
Sat, April 19, 2014
G Suite Customer Support Contact Information
G Suite customer support is hard to find from the admin dashboard — here's the link and my take on it.
[Node.js] RangeError: Maximum call stack size exceeded
Notes on working around Node.js's RangeError: Maximum call stack size exceeded using the --stack-size option.
Fri, April 11, 2014
[Node.js] Checking File Existence
Using fs.stat to check for a view file and redirect via Express when it's missing.
[JavaScript] js2coffee Converts arguments to arguments_
Js2coffee silently renamed arguments to arguments_ and caused a runtime error.
Wed, April 9, 2014
[MongoDB] How to output query results to standard output and save to file
Piping MongoDB query results straight into a file with mongo --quiet and shell redirection.
[Regular Expression] Enclosing text with single quotes
A quick regex search-and-replace snippet for wrapping text on a line in quotes.
Tue, April 8, 2014
[Linux] Command to split CSV, text files, etc. by specified number of lines
Use split to break a CSV into 100-line chunks, then restore the .csv extension with a short for loop.
Fri, April 4, 2014
[WordPress] Sample using category name in backlink (external link) text
A sample of injecting the current category name from get_the_category() into the anchor text of an outbound link.
Thu, March 27, 2014
[MongoDB] How to start two instances on different ports (Mac / Homebrew)
Run two Homebrew MongoDB instances side by side on ports 27017 and 27018 with a second config.
[Mac] Command to check processes using a specific port: lsof -i
Using lsof -i on macOS to find the process listening on a specific port.
Sun, March 23, 2014
The dangers of managing tasks with email
A short note on why managing tasks in Gmail is risky, after misaddressing a mail almost right away.
How to stop the secondary SSID on Aterm WR8750N
How to disable the secondary SSID on the Aterm WR8750N router from the Quick Setup Web UI.
Sat, March 22, 2014
DeployGate starts providing iOS app distribution functionality!
DeployGate opens an iOS distribution beta with permanent unlimited perks for early signups.
Collection site of interesting HipChat emoticons
A site that gathers HipChat's amusing emoticons in one place.
Fri, March 21, 2014
Resetting Aterm WR8750N to factory default state
How to factory-reset the Aterm WR8750N router with the physical RESET switch.
Mon, March 17, 2014
Let's have witty communication on GitHub
GitHub PR chatter was getting stiff, so we shifted to a more relaxed, witty tone and it noticeably helped.
Sat, March 15, 2014
Programmers and eyes
A short reflection on eye pain from staring at a display all day as a programmer.
Thu, March 13, 2014
[HTTP] Status code when returning errors for non-xhr requests
A note on choosing HTTP 400 Bad Request when rejecting non-xhr requests as errors.
Sun, March 9, 2014
Snippet to display only days with jQuery Countdown
A jQuery Countdown snippet using compact and format: 'D' to show only the remaining days.
[Google Apps] How to disable Gmail spam filter settings
The three types of spam filters in Google Apps Gmail and how to disable each of them.
[Windows7] How to localize English version to Japanese
Localize English Windows 7 to Japanese via Region and Language settings.
[Apache][Windows7] Solution for 'No listening sockets available' Error That Prevents Startup
Fixing Apache's port 80 conflict on Windows 7 by changing Skype's port settings.
Sat, March 8, 2014
[Mac] How to fix Wi-Fi (wireless LAN) connection issues
A reference-link memo for a Mac Wi-Fi troubleshooting guide that resolved my connection issue.
Hacker News translation blog
Discovering a Japanese-language translation blog for Hacker News stories.
Changing the time display format of jQuery Countdown
A snippet memo for customizing jQuery Countdown's display with its separator and label_* options.
Listen to Rebuild.fm on repeat
Listening to Rebuild.fm on repeat during train rides turned out better than I imagined.
Fri, March 7, 2014
[Gmail] Does GIF Image Files Have a Bug Where They Display Partially Cropped?
Some GIFs render partially cropped through Gmail's image proxy cache — swapping to PNG was the workaround.
Mon, March 3, 2014
[JavaScript] Change Date Type Timezone to JST with moment.js
A short moment.js snippet for converting a Date value to the Asia/Tokyo timezone.
Sun, March 2, 2014
[WordPress] Changing 'WP-OGP' Thumbnail Image og:image
How I replaced the WP-OGP default thumbnail by changing the image filename and updating wp-ogp.php.
Fri, February 28, 2014
[iOS] The binary you uploaded was invalid. The key CFBundleVersion in the Info.plist file must contain a higher version than that of the previously uploaded version.
A note on hitting the CFBundleVersion validation error while submitting an iPhone app update to the App Store.
Fri, February 21, 2014
What I Learned from One Week of Hard Work
One week of hard work — takeaways on energy, input, and spotting DEV team tech debt.
[Node.js][node-csv] Error: Invalid closing quote at line 1; found " " instead of delimiter "\ "
Working around a node-csv Invalid closing quote error caused by stray double quotes in tab-separated input.