Enable JavaScript to use search. / 検索を使用するには JavaScript を有効にしてください。
Posts
Fri, November 2, 2012
1 min read
[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.
read more →
Mon, October 29, 2012
2 min read
[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.
Wed, September 5, 2012
[VMware] Solution for Device eth0 does not seem to be present, delaying initialization Error
Fixing the eth0 does not seem to be present error on a cloned VMware VM.
Tue, September 4, 2012
Summary of Titanium Mobile SDK 2.1.2 Release Information
A bookmark of links to Titanium Mobile SDK 2.1.2 release information from official and Japanese sources.
[Apache] How to Fix SSL (HTTPS) Not Starting
On Apache 2.0.x, HTTPS stays down after apachectl restart unless you start with startssl or the -DSSL option.
Sat, August 25, 2012
[Titanium Mobile] How to Disable Splash Screen
How to hide the Titanium Mobile splash screen — impossible on iOS, doable on Android by editing theme.xml.
[Javascript] How to Check if an Object is Empty
A short sample that uses Object.keys(obj).length to check whether an object is empty.
Wed, August 22, 2012
[Titanium Mobile][ERROR] Script Error = Parse error (unknown file)
Titanium Mobile's `Script Error = Parse error (unknown file)` almost always points to a JavaScript syntax bug.
Mon, August 20, 2012
[Titanium Mobile] How to Make View Background Transparent
Set a Titanium Mobile View background to transparent by passing `'transparent'` to `backgroundColor`.
Sat, August 18, 2012
[Javascript] HTML Escaping htmlspecialchars
Sample JavaScript code that mirrors PHP's htmlspecialchars for escaping HTML-special characters.
Wed, August 15, 2012
3 min read
[PostgreSQL] ERROR: missing FROM-clause entry for table
Handling the missing FROM-clause error in PostgreSQL, and what changed with add_missing_from in 9.0.
Tue, August 7, 2012
[Titanium Mobile] invalid method (createCoverFlowView) passed to UIModule
Fixing Titanium Mobile's `invalid method passed to UIModule` error by forcing a full rebuild via `rm -rf build/iphone`.
Wed, August 1, 2012
[Shell Script] /bin/bash^M: bad interpreter: No such file or directory
`/bin/bash^M: bad interpreter` comes from CR/LF line endings — convert the script to LF to fix it.