Enable JavaScript to use search. / 検索を使用するには JavaScript を有効にしてください。
Posts
Mon, December 3, 2012
1 min read
[Ruby on Rails] find with ActiveRecord::RecordNotFound
Avoiding ActiveRecord::RecordNotFound by preferring find_by_id, which returns nil, over find.
read more →
[Objective-C][iOS] How to implement TabBar
A memo of reference articles I used to implement TabBar in iPhone/iPad apps.
Sat, December 1, 2012
[Objective-C][iOS] unable to dequeue a cell with identifier Cell - must register a nib or a class for the identifier or connect a prototype cell in a storyboard
Notes on resolving the UITableView dequeueReusableCellWithIdentifier: assertion error.
Fri, November 30, 2012
[iOS] Library 'IIViewDeckController' for implementing slide menus like Facebook and Path
A note on IIViewDeckController, an iOS library for Facebook/Path-style slide menus.
Wed, November 28, 2012
[Node.js] How to set up Basic authentication in Express.js
Sample code for adding Basic authentication to Express.js, either app-wide or per route.
Tue, November 27, 2012
[Ruby] God : The server is not available (or you do not have permissions to access it)
How I resolved god's 'The server is not available' error by loading the config file with an explicit path instead of a glob.
Mon, November 26, 2012
[Xcode] iOS Simulator could not find the SDK.
The 'iOS Simulator could not find the SDK' error came from picking an outdated Simulator version in build settings.
Sun, November 25, 2012
[Objective-C] How to Use UICollectionView
Reference links for learning how to use UICollectionView, new in iOS6.
[Git] How to enable --no-ff (no fast-forward) by default
How to enable `git merge --no-ff` by default using an alias or `mergeoptions` config.
How to create a Google+ page
Reference articles I used when creating a Google+ page, plus notes on its impact on search results.
How to create a US iTunes account
Notes on creating a US iTunes account from Japan, including reference article and Apple Store addresses to use.
Summary of App Store analytics services for iPhone and Android apps
A 2012 list of app store analytics services for iOS and Android apps.
Thu, November 22, 2012
[Ruby] Summary of reference sites for using Foreman
Reference links for learning Foreman, the Procfile-based process manager for Ruby apps.
Differences between major LICENSEs and how to identify them
A memo of reference links about the differences and identification methods for major OSS licenses like BSD, MIT, GPL, LGPL, and Creative Commons.
Wed, November 21, 2012
[Mac] Installing Redis with Homebrew
Installing Redis via Homebrew, setting up launchctl auto-start, and connecting with redis-cli.
Tue, November 20, 2012
Installing Git on CentOS 6.3 with yum
A short note on installing Git 1.7.1 on CentOS 6.3 with plain yum.
[Ruby] Installing Nokogiri on CentOS 6.3
Fixing the 'libxml2 is missing' error when installing Nokogiri on CentOS 6.3.
Steps to install Solr 3.6.1 on CentOS 6.3
Installing Solr 3.6.1 on CentOS 6.3 and starting it with the bundled Jetty sample.
Steps to install Java 1.7 on CentOS 6.3
Installing OpenJDK-based Java 1.7 on CentOS 6.3 with yum.
Mon, November 19, 2012
[Ruby] How to check the Solr version installed by sunspot_solr
Checking the default Solr version of sunspot_solr via the registry.jsp URL.
[Solr] JapanesePartOfSpeechStopFilterFactory : java.lang.ClassCastException: java.lang.String cannot be cast to [C
Notes on the java.lang.ClassCastException from Solr's JapanesePartOfSpeechStopFilterFactory.
Sun, November 18, 2012
[Ruby] WARNING: Nokogiri was built against LibXML version 2.7.3, but has dynamically loaded 2.7.8
Fixing the Nokogiri vs LibXML version mismatch warning by reinstalling libxml2 libraries via Homebrew.
Thu, November 15, 2012
[Xcode] Useful .gitignore Settings for iPhone App Development
A .gitignore template for iPhone app development with Xcode and CocoaPods.
[Apache] Basic Authentication Settings for Passenger
Adding Basic auth to an Apache + Passenger VirtualHost with htpasswd.
How to Set Up a Custom Domain on Blogger
Reference links for pointing a お名前.com domain at a Blogger blog, and why it's worth doing.
Wed, November 14, 2012
[PHP] Character Code Conversion for Platform-Dependent Characters (EUC-JP→UTF-8)
Chain mb_convert_encoding via sjis-win to convert EUC-JP to UTF-8 including platform-dependent characters.
Mon, November 12, 2012
[Mac] iTunes Migration Work
Migrating an iTunes library between Macs, with the reference article that helped.
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.