Enable JavaScript to use search. / 検索を使用するには JavaScript を有効にしてください。
Posts
Sun, October 7, 2012
1 min read
[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.
read more →
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.
2 min read
[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.
Sun, July 29, 2012
[VirtualBox] How to Increase Disk Space of Windows7 in Virtual Environment
A memo on how to increase disk space for a Windows 7 guest on VirtualBox.
[VMware Server] How to Delete Snapshots
A short memo on removing snapshots from a guest OS in VMware Server.
[VMware Server] How to Uninstall
Uninstalling VMware Server by re-running the installer and choosing Remove.
Fri, July 20, 2012
VMware Server Installation Steps
A memo on installing VMware Server on Windows 7.
Thu, July 12, 2012
[Linux] Remove Duplicate Lines by Piping sort and uniq
Pipe sort into uniq to strip duplicate lines from a text file in one line.
Tue, July 10, 2012
[CORESERVER] Database Backup Method
A quick memo on backing up a database from the CORESERVER management screen to the home directory.
Sat, July 7, 2012
[Facebook] About @proxymail.facebook.com Email Addresses
A note on the @proxymail.facebook.com address behavior in Facebook apps and its later specification change.
Tue, July 3, 2012
How to Get Sakura VPS Free for One Month (980 yen)
Use A8.net's self-referral program to get one month of Sakura VPS (980 yen) essentially for free.
Sun, July 1, 2012
Titanium Mobile Introduction (Titanium Studio Installation/Configuration ~ Running on iPhone/Android Simulator)
Setting up Titanium Studio and getting a first project running on iPhone and Android simulators.
Sat, June 30, 2012
[Firefox] List of Installed Add-ons
A memo listing the Firefox add-ons I had installed at the time.
Wed, June 27, 2012
[RVM] How to Update Ruby version
Update RVM with `rvm get latest`, then bump your Ruby version with `rvm upgrade`.
[Ubuntu] How to Configure US (English) Keyboard
Steps to add a US English keyboard layout on Ubuntu 12.04 and switch layouts with Ctrl+Space.
[Linux] Command to Check Number of Files Under Specified Directory
A quick note on counting files under a directory recursively with find and wc -l on Linux.