Enable JavaScript to use search. / 検索を使用するには JavaScript を有効にしてください。
Posts
Wed, October 19, 2011
1 min read
[Ruby] How to Configure RVM Ruby Version for Default Use
Using rvm use --default to make an RVM-installed Ruby the default in every new terminal session.
read more →
Tue, October 18, 2011
[Oracle] Automatic Sequential Number Generation Method
Using Oracle sequence objects with NEXTVAL / CURRVAL for auto-numbering.
Sun, October 16, 2011
2 min read
[Node.js] How to Install Version Management Tool nodebrew on Mac
Installing the nodebrew Node.js version manager on Mac and troubleshooting the errors along the way.
[ZF] Subqueries in FROM / WHERE Clauses with Zend_Db_Select
Reference links for writing FROM / WHERE subqueries with Zend_Db_Select.
How to Change Form Action with JavaScript and jQuery
Minimal sample code for changing a form's action attribute with vanilla JavaScript and jQuery.
[JavaScript][jQuery] How to Get DOM Elements
How to get a raw DOM Element from a jQuery object with .get(0), alongside the vanilla getElementById equivalent.
For Facebook API Research and Questions, 'Facebook Stack Overflow' is Recommended
For Facebook API research and questions, Facebook Stack Overflow is the recommended resource.
3 min read
How to Build an Authenticated Staging Environment with Heroku + Rails
Build a Basic-auth-protected Rails staging environment on Heroku alongside your production app.
Must-See Support Site for Facebook Developers: 'fb.developers'+'
A quick introduction to fb.developers'+, a Japanese-language support site for Facebook developers.
[PHP] How to Check the Output Directory of error_log
Use php -i and grep to find where PHP writes its error_log.
Fri, October 14, 2011
[Eclipse] Shortcut Key for Line Number Jump
A quick memo on the Ctrl + L shortcut to jump to a specific line number in Eclipse.
Wed, October 12, 2011
[JavaScript] How to Use a href="" onclick
Avoiding the href="#" onclick anti-pattern in JavaScript, with good and bad examples.
Mon, October 10, 2011
Article That Clearly Explains the Differences and Usage Between rpm and yum
External references explaining the differences and usage between rpm and yum for Linux package management.
[PHP][PEAR] Solution for 'Column count of mysql.proc is wrong.' Error
Digging up the real cause behind a PEAR::DB "unknown error" via getDebugInfo().
[Symfony1.4][Validator] How to Create Custom Validators
Building a Symfony 1.4 custom validator that checks ISBN-10 / ISBN-13 length and characters.
[Symfony1.4] csrf token: Required.
How I fixed the `csrf token: Required.` error in Symfony 1.4 by rendering the form's hidden fields.
[Facebook] Page Width of Page Tab Apps/Canvas Apps
A quick reference for the page width of Facebook Page Tab apps (520px) and Canvas apps (760px).
Sat, October 8, 2011
How to Enable Facebook App Cookies in IE
Fix third-party cookie loss in Facebook iframe apps on IE by sending a P3P policy header (Rails / PHP).
Wed, October 5, 2011
Heroku-ja Meetup #1 Slide Summary
A roundup of slide decks presented at Heroku-ja Meetup #1, covering Salesforce, Lokka, and more.
Tue, October 4, 2011
[Facebook App] JavaScript SDK Must Always Be Used with https
Why you should always load the Facebook JavaScript SDK over https to avoid mixed-content issues, especially in IE.
[JS] How to Check if jQuery is Loaded
A short sample using the typeof operator to check whether jQuery has been loaded.
[Rails] How to Redo db:migrate to Heroku's Default PostgreSQL
Three ways to force db:migrate to run again on Heroku when rake db:reset is not available.
Mon, October 3, 2011
[Facebook API] Function setAutoGrow() to Remove Scroll Bars in IFrame Tab Pages
Hide scroll bars on Facebook iframe tab pages by moving from setAutoResize to FB.Canvas.setAutoGrow().
[Mail] Slide Material for Easy Understanding of Email Systems
A link memo for a SlideShare deck that explains the basics of email systems, '#Mailerstudy'.
Thu, September 29, 2011
[Facebook] Upgrade Your App to OAuth 2.0 and HTTPS by October 1st
The Facebook email announcing that OAuth 2.0 and HTTPS became mandatory for all apps from October 1, 2011.
Amazon Product Advertising API Specification Changes to be Implemented on October 26, 2011 (Wednesday)
An announcement that the Amazon Product Advertising API spec changes will roll out on October 26, 2011 as planned.
[Linux] Batch Change File Name Endings with rename Command
Use the Linux rename command with a regex to batch change file name endings.
Sun, September 25, 2011
How to Embed a Facebook App Under Development into a Facebook Page
Step-by-step notes for embedding a Facebook app under development into a Facebook Page.
Facebook App SSL Authentication Becomes Mandatory from October 1, 2011
SSL becomes mandatory for Facebook apps and iframe Page tabs from October 1, 2011 — a summary with links.
PHP's array_key_exists Corresponds to Ruby's Hash#key?
PHP's array_key_exists maps to Ruby's Hash#key? — quick side-by-side sample of each.
Sat, September 24, 2011
[Ruby] Increment is "+=1" Not "++"
In Ruby you increment with += 1 rather than ++, briefly compared with PHP.
[Linux] How to Auto-Execute Commands or Programs at Startup
Edit /etc/rc.d/rc.local to auto-run commands at CentOS startup, such as proxy setup and ntpdate time sync.
[Eclipse] svn: Working copy locked; try performing 'cleanup' - Cannot Perform Cleanup
How I fixed an Eclipse SVN working copy locked error by deleting the log and lock files when cleanup itself failed.
[MySQL] How to Solve ERROR 1045 (28000): Access denied for user
Granting the FILE privilege to fix MySQL's Access denied error on SELECT INTO OUTFILE.
error while loading shared libraries: /lib/libc.so.6: file too short Kernel panic: Attempted to kill init!
A CentOS-on-VMware kernel panic caused by libc.so.6 that I recovered from via backup.
[Rails] How to Get View Image URLs from Within a Controller
Using view_context.image_path inside a Rails controller to resolve a full asset URL.
Mon, September 19, 2011
[Rails] The Cause of redirect_to Not Working Was a Half-Width Space in the URL
`redirect_to` failed silently in Rails because a Facebook OAuth scope URL contained a stray half-width space.
Sun, September 18, 2011
[MacOS] Steps to Install PostgreSQL with Homebrew
Installing PostgreSQL on macOS via Homebrew — initdb, launchd auto-start, PGDATA, and a non-superuser account.
How to Change the Root Route from routes.rb in Rails 3
Change the Rails 3 root route with the root directive and delete public/index.html.
[Rails] Solving the 'rake aborted! no such file to load -- pg' Error with rake db:migrate Command
Fix `rake db:migrate` failing with `no such file to load -- pg` by swapping sqlite3 for pg in your Gemfile.
Sat, September 17, 2011
To Install with Version Specification Using gem install, Add the --version= Option
Use `gem install <name> --version=X.Y.Z` to install a specific gem version instead of the latest.
[Facebook] Language Code and Country Code (locale) List
A reference table of language and country codes usable with the locale parameter in Facebook's APIs.
Fri, September 16, 2011
[Mac] Installing Ruby and Rails with RVM
How to install Ruby and Rails on Mac with RVM, pulling in dependencies through Homebrew.
Wed, September 14, 2011
[MySQL] Query Log File Cannot Be Specified Error / [ERROR] Could not use /var/log/myquery.log for logging (error 13)
Resolving MySQL's 'Could not use ... for logging (error 13)' startup failure via my.cnf.
[MySQL] Startup Fails with default-character-set
Fixing a MySQL 5.5 startup failure by switching my.cnf to character-set-server=utf8.
[PHP] Lime Testing Environment Configuration Method
How to grab lime.php and useful reference links for using symfony's Lime testing library.
Sun, September 11, 2011
[MySQL] User Deletion Should Be Done with DROP USER, Not DELETE Statement
Why user deletion in MySQL must use DROP USER, not a DELETE statement.
wget no-check-certificate Option for SSL, https Connection
Bypass wget's SSL certificate verification error with the `--no-check-certificate` option.
Nginx Installation Steps and Methods
Installing Nginx on CentOS with yum, from dependencies to auto-start configuration.
[Linux] # yum -y install yum-fastestmirror for Automatic Fast Repository Selection
Installing the yum-fastestmirror plugin on CentOS so yum automatically picks the fastest mirror.