messaliberty

about hulor and us

Archive for May, 2009

[Ruby on Rails] Didn't apply edited view file

May 18th, 2009 post by ice

With Ruby on Rails 2.3.2

Sometimes, edit rails view file like app/view/users/edit.html.erb, but didn’t apply it.
Draws page with old (before edit) view.

Reason

In app/view/* directory, like app/view/users,
there might be files like edit.html.erb.~BASE~ ends with “.html.erb.*”.
Then rails draw pages with view file that ends with “.*”.

svn (subversion) makes .~BASE~ files when compare working file with old revision file.

How to resolve

remove .*~BASE~ files like this:

 % cd project_dir
 % find . -name "*html.*"
 ./app/views/userss/edit.html.erb.~BASE~
 ./app/views/userss/show.html.erb.~BASE~
 % find . -name "*.~BASE~" -exec rm {} \;

Review of the Logitech S7500 webcam (Communicate Deluxe)

May 11th, 2009 post by ianc

If you are looking for a webcam for your mac mini then this might be the solution for you. The problem with the mac mini is that it doesn’t have a microphone socket so what you really need is a webcam with a built-in USB mic. And that is exactly what the Logitech S7500 (also known as the QuickCam Communicate Deluxe) has.

Let me run down the hardware specs of the S7500

  • 1.3 Megapixel resolution
  • 30fps video
  • Glass lens
  • RightLight2
  • Manual focus
  • Privacy shutter
  • USB mic built in
  • UVC

If you are using this webcam with Windows then the last feature Universal Video Class isn’t that important because it has a full driver suite. It may come in handy though as you can use it driver-less, though Logitech doesn’t recommend this. But for OSX or Linux it is a vital feature. Plug it into OSX Leopard and it is recognized and select USB mic input and it just works.

So how does perform? (more…)

Multi-lingual WordPress Admin Screens

May 8th, 2009 post by ianc

As mentioned in messa.tv episode 004 we have set-up multi-lingual admin screens in WordPress.  It means that each user can choose to have the admin interface in their own language.  You can’t believe how useful this is in a multi-lingual company such as ours and how long I’ve searched for the solution.

We used a plugin called tam-mothertongue written by Miyoshi-san.  It didn’t work for WordPress 2.7 but Miyoshi-san sent me a quick fix that got it working.  And now he’s released an updated version and renamed it bogo (which is mothertongue in Japanese). Please help spread the word about this wonderful and useful plugin by blogging about it in your own language.

You can find his announcement post about the bogo plugin here.