Enable JavaScript to use search. / 検索を使用するには JavaScript を有効にしてください。
Posts
Sun, December 9, 2012
1 min read
[SEO] Website Performance Measurement Service "WebPageTest"
A quick introduction to the WebPageTest website performance measurement service.
read more →
[PHP][APC] Warning: require_once(): Unable to allocate memory for pool.
Silencing the APC Unable to allocate memory for pool warning by setting apc.mmap_file_mask=/dev/zero.
[Windows] How to use 'Junction' - a symbolic link-like feature
A quick reference memo on using Junction on Windows 7 as a Linux-style symbolic link.
[JavaScript] How to Fix Sidebar Parts with jQuery When Scrolling
Link collection of reference articles for fixing a sidebar in place while scrolling with JavaScript or jQuery.
Thu, December 6, 2012
[RSpec] Differences between stub and mock
A link roundup of references that helped me get stubs vs. mocks straight in RSpec.
[Ruby on Rails] Overriding Devise's current_user method
Overriding Devise's current_user with alias_method to always include the user's Role.
Wed, December 5, 2012
[Ruby][FactoryGirl] Could not find a valid mapping for #<User
A record of running into the "Could not find a valid mapping for User" error with FactoryGirl and Devise.
[Ruby][RVM] mysql2.bundle: [BUG] Segmentation fault
Fixing a mysql2.bundle segmentation fault after recreating an RVM gemset by updating RVM to head.
[Rails][FactoryGirl] Error: Factory already registered: xxx
A short note on the "Factory already registered: xxx" error raised by FactoryGirl.
Tue, December 4, 2012
[Ruby] Convenient gem 'faker' for creating sample data
A short memo of reference links for 'faker', a Ruby gem that makes test and sample data generation easy.
[Ruby on Rails] How to create many-to-many relationship tables
Reference links for setting up many-to-many relationship tables in Ruby on Rails.
2 min read
[Ruby on Rails] How to use seed-fu for easy seed data addition and management
Using the seed-fu gem to manage Rails seed data under `db/fixtures/`, with a CSV import example.
[Ruby] 'will_paginate' for adding pagination functionality
will_paginate helper options and localizing its labels through a locale YAML file.
Mon, December 3, 2012
[Ruby on Rails] find with ActiveRecord::RecordNotFound
Avoiding ActiveRecord::RecordNotFound by preferring find_by_id, which returns nil, over find.
[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.
[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.