messaliberty

about hulor and us

Archive for October, 2009

Thoughts on the GPL and WordPress themes

October 26th, 2009 post by ianc

gnu_gpl_logo

Why the GPL doesn’t matter

WordCamp Kyoto 2009 was a great experience. One presentation by Digital Cube provoked a discussion about GPL amongst a small group of attendees, myself included.

The major worry about releasing themes or plugins as GPL is that after all the work and effort at producing it, someone you sell it to is going to turn around and re-release it either at a discount or for free. Leaving you, the original developer, feeling cheated.

The GPL definitely allows this. But it doesn’t much matter if you understand the concept of competitive advantage. Let me explain:

(more…)

[Rails] use DataTime class with ActiveRecord column

October 22nd, 2009 post by ice

ActiveRecord’s :datetime corresponds to ruby Time class.
But Time class can’t use old timestamps like 0001-01-01 00:00:00.
(ActiveRecord converts 0001-01-01 00:00:00 to 2001:01:01 00:00:00.)

So overwrite ActiveRecord to use DateTime class with :datetime.

Test Environment:

  • Ubuntu 9.04
  • ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]
  • rails 2.3.2 – 2.3.4
  • mysql Ver 14.12 Distrib 5.0.75, for debian-linux-gnu (i486) using readline 5.2

Just put following code active_record_datetime_ext.rb into RAILS_ROOT/config/initializers
(more…)

Get Adobe Flash playerPlugin by wpburn.com wordpress themes