Enable JavaScript to use search. / 検索を使用するには JavaScript を有効にしてください。
Posts
Fri, December 9, 2011
1 min read
[SQLite] Getting Current Time in Japan Standard Time (JST) with datetime
Getting the current time in JST with SQLite by passing 'localtime' to the datetime function.
read more →
Wed, December 7, 2011
[Java][Play!] Retrieving Messages Defined in message Using Messages.get()
Looking up conf/messages entries from a Play! controller with Messages.get().
Sat, December 3, 2011
Installing the Latest Version of Vim on CentOS5.7
Uninstall the yum Vim on CentOS 5.7, clone the latest source with mercurial, and build it from source.
Sun, November 27, 2011
[jQuery] How to Open Links to External Sites in a New Window
Sample code that opens links with a given class in a separate sized window using jQuery and window.open.
"Introduction to Build Craftsman with Jenkins" Available for Free Download During November
Introduction to Build Craftsman with Jenkins is free on Gihyo Digital Publishing throughout November 2011.
Fri, November 25, 2011
[Heroku] "Heroku Git error, try again shortly."
Recovering from a Heroku Git error, try again shortly. failure by checking status and retrying the push.
Wed, November 23, 2011
2 min read
[jQuery] Sample Code for Countdown Timers Commonly Seen on Groupon-Style Sites
Sample code for a Groupon-style countdown timer built with plain jQuery and setTimeout — no plugin needed.
[Rails] AbstractController::DoubleRenderError
Fixing Rails 3.1's AbstractController::DoubleRenderError by adding `and return` after the first render.
[Rails] How to Set Time Zone to Japan Standard Time (JST)
How to switch a Rails app's time zone from UTC to Japan Standard Time (JST).
[Column] Interview with Ruby on Rails Creator David Heinemeier Hansson - Dan Kogai's Meeting with Alpha Geeks
A pointer to Dan Kogai's DHH interview on gihyo.jp, plus a note on rereading 37signals' Rework.
[Resource] 'Future Vision Through a Business Model That Makes Programming a Lifelong Career' by Sonic Garden CEO Yoshihito Kuranuki
Slides and Publickey commentary on Yoshihito Kuranuki's talk on making programming a lifelong career.
Sun, November 20, 2011
520 Grid System - HTML/CSS Framework Useful for Creating Facebook Apps and Pages
Introducing the 520 Grid System for Facebook Tab Apps and the 760 Grid System for Canvas Apps.
[Heroku][Rails] Always Run bundle install After Editing Gemfile
Always run bundle install after editing the Gemfile so Gemfile.lock stays in sync when you push to Heroku.
Sat, November 19, 2011
[Mac] How to Swap Control and CapsLock Keys on US Keyboard
Swapping Control and CapsLock on a Mac US keyboard from System Preferences → Keyboard → Modifier Keys.
Fri, November 18, 2011
[Heroku][Rails] NewRelic - Web Application Performance Measurement and Operations Monitoring
Adding the NewRelic addon to a Rails + Heroku app for performance monitoring.
[Java] Differences Between StringUtils.isEmpty and StringUtils.isBlank
A quick comparison of StringUtils.isEmpty vs isBlank, focusing on whitespace handling.
Wed, November 16, 2011
[PEAR] How to Set Proxy Information with setProxy in Services_Amazon
Fixing a Services_Amazon Malformed response error by passing proxy info through setProxy.
[PHP] Summary of Reference Sites and Books for Zend Framework Beginners
Reference sites and books that helped when I picked up Zend Framework for PHP.
[PEAR] How to Configure Settings to Hide Strict, Deprecated Errors and Warnings
How to hide Strict and Deprecated warnings from PEAR by adjusting error_reporting in php.ini.
[Doctrine] How to Execute SQL Directly [Symfony1.4]
A short memo on executing raw SQL directly through Doctrine in Symfony 1.4.
[Doctrine] How to Use Subqueries [Symfony1.4]
A short memo on using Doctrine's createSubquery() for subqueries in Symfony 1.4.
[Rails3.0] When Scaffold-Generated Delete (Destroy) Links Don't Work, Check if jquery_ujs.js or rails.js is Loaded
Rails 3.0 Destroy links not firing? Check that jquery_ujs.js is loaded via the jquery-rails gem.
Tue, November 15, 2011
[Rails] Editing scaffold.css to Make Tables More Readable
Make Rails 3.1 scaffold tables more readable by adding a border class to scaffold.css.
3 min read
[Symfony1.4] Authentication and Authorization Checks Are Configured in security.yml
Configuring Symfony 1.4 authentication and authorization declaratively via security.yml.
[Symfony1.4] How to Set Validation Errors on Individual Fields with PostValidator
Attaching per-field validation errors from a Symfony 1.4 PostValidator via sfValidatorErrorSchema.
[API] Summary of Helpful Sites When Using Amazon API with PHP
A curated list of go-to reference sites for working with the Amazon Product Advertising API from PHP.
[Symfony1.4] Implementing Email Distribution Processing
Reference docs I used when implementing email distribution in Symfony 1.4.
[Symfony1.4] How to Create Multiple Relations to Columns in the Same Table
Declaring multiple relations to the same User table from a Symfony 1.4 schema.yml.
Mon, November 14, 2011
[PEAR] How to Configure Settings for Authenticated Proxy to Use install
Fixing a pear install failure behind an authenticated proxy by setting http_proxy via pear config-set.
[Symfony1.4] Template Modification: setTemplate
Using Symfony 1.4's setTemplate to switch the template an action renders.
Sun, November 13, 2011
[CSS] 'clearfix' to Clear Float
Sample code for the classic clearfix pattern with IE6/IE7 compatibility hacks.
[Heroku] Error H99 (Platform error)
Heroku's Error H99 is a platform-side internal error; the only action is to check Heroku Status and wait.
[Ruby] How to Change the Display Format of Time Objects
A quick note on using Time#strftime to format Ruby Time objects into arbitrary display strings.
[Error] Invalid row key specified: ~ , referred to in ~
Fixing Symfony 1.4 `Invalid row key specified` fixture errors tied to foreign key relations.
[Error] Unable to parse string: Unable to parse line ~. [Symfony1.4]
Fixing Symfony 1.4 fixture YAML parse errors from a missing colon and tab indentation.
Sat, November 12, 2011
[Apache] How to Set Up an SSL Environment
Minimal steps for setting up an Apache SSL VirtualHost with a certificate and key.
Thu, November 10, 2011
[SSH] How to Create a Private Key for Poderosa from a Putty Private Key
A note on using PuTTYgen's Export ssh.com key to convert a Putty .ppk private key into a Poderosa .sshcom private key.
[Security] Essential Sites to Read When Understanding SQL Injection Countermeasures
A personal reading list of articles for understanding SQL injection countermeasures.
Tue, November 8, 2011
[Symfony] Enabling mod_rewrite to Fix Apache Standard 404 Not Found Display
Fixing Symfony 1.4 prod 404s by enabling Apache's mod_rewrite.
Mon, November 7, 2011
[Apache] Articles to Read When Setting Up VirtualHost
External articles worth reading when configuring Apache VirtualHost.
Sun, November 6, 2011
[Ruby on Rails] Controller Creation and Naming Conventions
Notes on how CamelCase vs under_scored names behave with rails generate controller.
Sat, November 5, 2011
[Mac] How to Install Node.js and npm [Homebrew]
Installing Node.js via Homebrew and npm via the curl-based install.sh on macOS.
[Rails 3.1.0] ActionView::Template::Errror (application.css isn't precompiled)
Fixing the Rails 3.1 application.css isn't precompiled error on Heroku by setting config.assets.compile = true.
Fri, November 4, 2011
[Rails] Differences Between Routing in Version 2 and 3
A side-by-side comparison of Ruby on Rails 2 and 3 routing DSL with concrete examples.
Wed, November 2, 2011
[MySQL] File './mysql-bin.index' not found (Errcode: 13)
Fixing the MySQL Errcode: 13 error on mysql-bin.index by giving the mysql user ownership via chown.
5 min read
Procedure to Install MySQL5.5 from Source Code on CentOS6.3
Installing MySQL 5.5 from source on CentOS 6.3 with cmake, from build to initial setup and startup troubleshooting.
Steps to Install PHP 5.3.8 from Source Code on CentOS 5.7
Build PHP 5.3.8 from source on CentOS 5.7 and wire it into Apache with php.ini and DocumentRoot updates.
[Heroku] Logging Add-on to Check Logs
Adding Heroku's Logging add-on and tailing logs with heroku logs --tail.
Tue, November 1, 2011
Installing Apache from Source Code on CentOS
End-to-end steps for installing Apache 2.2.21 from source on CentOS 5.7.
Mon, October 31, 2011
Meaning and Etymology of 'Scratch Development'
A memo on the meaning and etymology of the term 'scratch development'.