His portfolio reflects years consumed with trekking the globe, but photographer Jauder Ho only rediscovered his love for the art several years ago. Taking advantage of an opportunity for a vacation for the first time in over a decade, Jauder Ho ended up taking a trip to Japan including a trek up Mount Fuji. That followed by the road trip of a lifetime driving across the States had a profound effect on how he perceives the world. Since then, Jauder Ho has seen the world shot by shot, each one serving as a reminder of changing moments in time. In his portfolio, Jauder Ho juxtaposes long exposure shots of beautiful scenery with pictures focused on details that explain more to the story. Jauder Ho strives to take portraits that describe the feelings of his subjects and reflect his ability to arouse emotions from the viewer. Combining skills acquired from continual photography with what it takes to see life on stills, Jauder Ho has created a body of work that reflects the world both great and small. Here, Jauder Ho brings you selected content from his personal collection as well as sharing interesting items found from the Internet. Identica

Converting your Rails app to utf8


Out the box, Rails sends utf8 content. However, the transport and database (in this case MySQL) most likely is *not* configured for utf8.


UTF8 being the fun beast that it is really needs to be used across the board from input to retrieval to prevent any nasty surprises. Besides, it’s good practice should you want to internationalize later.


The following outlines how to convert your Rails app to use utf8.


  • Shutdown Rails
  • Modify config/database.yml to add encoding: utf8 to each db instance
  • Export database to dump file
  • Convert the CHARSET from latin1 to utf8 in dump file
  • Change MySQL configs and restart DB
  • DROP and recreate DB
  • Import DB via dump
  • Start Rails

For each database,

  1.  mysqldump —user=username —password=password —default-character-set=latin1 —skip-set-charset dbname > dump.sql
  2. sed -e ‘s/CHARSET=latin1/CHARSET=utf8/g’ dump.sql

  3. AT THIS POINT STOP MYSQL, ADD THE OPTIONS BELOW AND THEN START MYSQL
  4. mysql —user=username —password=password —execute=”DROP DATABASE dbname; CREATE DATABASE dbname CHARACTER SET utf8 COLLATE utf8_general_ci;”
  5. mysql —user=username —password=password —default-character-set=utf8 dbname
  6. RESTART RAILS after making mods to database.yml.



MySQL

[mysqld]

# Set default charset

init-connect=’SET NAMES utf8’

init_connect=’SET collation_connection = utf8_general_ci’

default-character-set=utf8 

default-collation=utf8_general_ci

[clients]

default-character-set=utf8

[mysql]

default-character-set=utf8 



Rails

Put encoding: utf8 in database.yml



Nginx

charset utf-8



Some additional links: