Enable JavaScript to use search. / 検索を使用するには JavaScript を有効にしてください。
Posts
Mon, November 12, 2012
1 min read
[Mac] iTunes Migration Work
Migrating an iTunes library between Macs, with the reference article that helped.
read more →
Sun, November 11, 2012
[iptables] Applying firewall rules: iptables-restore v1.4.7: no command specified Error occurred at line: 6
The `no command specified` error on iptables restart was caused by whitespace on a blank line.
4 min read
[Server] Initial Setup of CentOS 6.3 on Sakura VPS
Initial setup for Sakura VPS's CentOS 6.3 — admin user, SSH, iptables, and yum.
Fri, November 9, 2012
[Ruby] cannot load such file -- ci/reporter/rake/rspec
Rescue ci_reporter's LoadError in Rakefile so Capistrano's assets:precompile survives in production.
2 min read
[Mac] Installing MySQL with Homebrew
Installing MySQL via Homebrew on macOS, setting up auto-start, and logging in as root.
Thu, November 8, 2012
Memo on Installing Ruby1.9.3 from Source Code on CentOS6.3
Notes on building Ruby 1.9.3 from source on CentOS 6.3, from libyaml through RubyGems.
[JavaScript] "cryptico.js" Library for RSA Public Key Encryption/Decryption
A note on cryptico.js, a JavaScript library for RSA public-key encryption and decryption.
Wed, November 7, 2012
[Mac] Window Displaying Off-Screen Issue and Solution
Bringing a Mac window back from off-screen by deleting the app's plist under Preferences.
[MySQL] CMake Error: Internal CMake error, TryCompile configure of cmake failed
Fixing MySQL source build errors on CentOS 6.3 by installing gcc-c++ and bison.
Tue, November 6, 2012
[Java] Dynamic Class Generation and Method Invocation Using Reflection
A short set of reference links for dynamic class generation and method invocation via Java reflection.
Mon, November 5, 2012
[Java] Converting Current Date and Time to String
A short SimpleDateFormat snippet for converting the current date and time to a string in Java 1.4.
Fri, November 2, 2012
[IE6] Solution for Issues with javascript:void(0); and onclick Not Working
In IE6, href="javascript:void(0);" with onclick works once you add return false; at the end.
Mon, October 29, 2012
[Node.js] How to Install npm on Mac
Installing npm on a Mac that already has Node.js via nodebrew, and notes on the http URL gotcha.
OAuth Articles for Beginners Summary
A link roundup of beginner-friendly OAuth articles I compiled for myself.
Sun, October 28, 2012
[Java] Measuring Program Execution Time
Measure Java execution time in ms by wrapping the target block with System.currentTimeMillis().
Sat, October 27, 2012
Summary of Sites Where SSL Certificates Are Available for Free or at Low Cost
A 2012-era note on cheap and free SSL certificate options — RapidSSL for 1,080 yen and StartSSL free for one year.
Wed, October 24, 2012
[Excel] "Excel Sheet to HTML Table Converter" is Convenient
A handy Japanese web tool that converts an Excel sheet into an HTML table while preserving formatting.
Tue, October 23, 2012
[PostgreSQL] ERROR: language "plpgsql" does not exist
Fixing PostgreSQL's missing plpgsql language by loading it with the `createlang` command.
Sun, October 21, 2012
[Node.js] How to Install the Version Management Tool nodebrew on Mac
Installing the Node.js version manager nodebrew on Mac, with fixes for build-time issues.
Customizing Livedoor Blog Design
Reference sites I used when customizing Livedoor Blog designs — the Livedoor Wiki and a user tips page.
Tue, October 16, 2012
[PHP] How to Insert Line Breaks Within the Same Cell in Excel Output
Use PHP_EOL when you want a line break inside the same Excel cell from PHP.
Mon, October 15, 2012
[Mac] How to Fix When Hoster Won't Launch
Fixing Hoster launch issues by restoring the group and permissions on /etc/hosts.
Tue, October 9, 2012
[Google] How to Display Author Information in Search Results
A memo linking to a detailed guide on showing author info in Google search results.
Sun, October 7, 2012
How to Install Google Analytics on Livedoor Blog
Install Google Analytics on Livedoor Blog by pasting the tracking snippet into Custom JS – In head.
[WordPress] How to Set Default Values for Article Content in New Posts (post-new.php)
A default_content filter snippet that prefills a new WordPress post body.
Sat, October 6, 2012
Migrated WordPress from CORESERVER to Sakura VPS
A rough memo of migrating WordPress from CORESERVER to Sakura VPS, centered on the DB dump and import.
[CORESERVER] Process Terminated with Killed
A note on working around CORESERVER's tar process being Killed by transferring files locally and compressing there.
Wed, October 3, 2012
[Ruby] rvm pkg install zlib → [ERROR] There is no checksum for xxx
Working around the no checksum error from rvm pkg install zlib with --verify-downloads 1.
[curl] Options for Sending RESTful Requests
A memo of reference links summarizing curl options for sending RESTful requests.
Tue, October 2, 2012
[Objective-C] unrecognized selector sent to instance
Tracking down an `unrecognized selector sent to instance` error in Objective-C.
Mon, October 1, 2012
[Objective-C] Instance method -initWithfloat not found return type defaults to id
Hours lost to an Objective-C typo — `initWithfloat` instead of `initWithFloat`.
[Linux] How to Create Password-Protected ZIP Compressed Files
Use zip -er to build a password-protected archive from the command line on Linux or macOS.
Wed, September 26, 2012
How to Embed zenback Below Articles in Livedoor Blog
How to embed zenback below Livedoor Blog posts, with links to the nanapi Web tutorials I followed.
[Nginx] How to Configure Redirects from www URLs to Non-www URLs
How to set up a 301 redirect from www URLs to non-www URLs in Nginx using rewrite.
[Windows7] How to Set Up English Keyboard
Registry edits to switch Windows 7 to a US English keyboard layout.
Tue, September 25, 2012
[Mac] zsh Installation Steps and Configuration Memo
Switching the default Mac shell from bash to zsh via Homebrew, then configuring oh-my-zsh.
[PHP] Installing PEAR and PHPUnit on Mac
Installing PEAR and PHPUnit on Mac OS X Mountain Lion.
Mon, September 24, 2012
[Java 1.4] How to Embed Lists in PreparedStatement IN Clause
Placeholder helper snippets for embedding a list into a PreparedStatement IN clause in Java 1.4.
Fri, September 21, 2012
How to Place Ads on Livedoor Blog's Smartphone Version
Reference articles from Livedoor Blog's dev blog on placing custom ads — including AdSense — on the smartphone version.
Wed, September 19, 2012
[VMware Fusion] How to Add Windows Applications to Mac Application Folder
Adding Windows 7 apps to the Mac Applications folder from VMware Fusion 5.
[Mac] Installing Eclipse Kepler (4.3) on Mountain Lion + Japanese Localization
Installing Eclipse Kepler on Mountain Lion and localizing it to Japanese with Pleiades.
Tue, September 18, 2012
[jQuery] Using Proxy Pattern to Override Methods
A memo on overriding window.alert with the Proxy Pattern in jQuery.
Sun, September 16, 2012
[Rackspace cloud] SSL URLs for Cloud Files
A quick memo on deriving the HTTPS (SSL) URL for Rackspace Cloud Files by swapping r01 with ssl.
[CSS] How to Remove Link Image Borders in Internet Explorer (IE)
Two CSS snippets that use border-style: none to strip IE's link-image border.
Thu, September 13, 2012
[PostgreSQL] ERROR: must be owner of extension plpgsql
Resolving `must be owner of extension plpgsql` on pg_dump import by granting the role superuser privileges.
Wed, September 12, 2012
[Mac] How to Configure PHP + Apache2 on Mountain Lion
How to enable the default PHP + Apache2 on Mountain Lion, with reference links for setting up MySQL or PostgreSQL.
Tue, September 11, 2012
[macOS] How to Configure Finder to Show Hidden Files (Dot Files)
How to toggle hidden files (dot files) in macOS Finder with defaults write and killall Finder.
[Mac] How to Configure Not to Create .DS_Store Files
How to stop Mac from creating `.DS_Store` files on Windows network shares.
Thu, September 6, 2012
[JavaScript] How to Simply Measure Execution Time in Milliseconds
A quick JavaScript snippet to measure execution time in ms using Date.getTime().
[Apache][PHP] libphp4.so: cannot open shared object file: No such file or directory
Fixing the libphp4.so missing error on Apache by correcting the LoadModule path in httpd.conf.