Maryland, et al

December 17th, 2008

(Haha, before you even think about it: I am working remotely on Philippine time, not on vacation.)

My second sister and I flew over to Maryland on the 13th so we could spend the holidays with the rest of the family. We are just about to end our fifth day here.

So far everything is good. We have been around Washington D.C. this weekend, have driven through Maryland a bit, and will be in New York City tomorrow til Friday (Hopefully, I can drop by MET this time.). The company is great, of course. A different range of shops, the Wii, HD on demand, and GPS also deserve so much more than a bit of mentioning. I’m especially looking forward to possible skiing and eat-all-you-can cheesecake feast.

Hmm, what else to say. I’m starting colds because of the cold and some lack of sleep, but I’m just about to pwn it. :-) So forget about that.

I got some books earlier today. I wonder what else I’ll end up bringing home.

voobys.com

September 22nd, 2008

I recently came across an interesting web tool: voobys.com. I’ve tried out its service for YouTube video downloads — the procedure is pretty brilliant.

Say I wanted to download the video in http://youtube.com/watch?v=F2TSy0Z5qTEw. I’d just have to replace the string “youtube” (as in “youtube.com”) in the URI with “voobys” (for “voobys.com”) and go to that URI. For this example, the resulting URI would be http://voobys.com/watch?v=F2TSy0Z5qTEw. This page will then contain a hyperlink with which I could download the video.

Convenient, portable, and easy to remember. A pretty creative solution, huh. There is a potential issue with terms of use, but that’s another topic.

validates_as_phone on GitHub

August 9th, 2008

A second plugin to GitHub today.

validates_as_phone is a Ruby on Rails plugin that provides strict validation for phone numbers. At the moment, only phone numbers in Australia are supported. This will still be extended to support classifications and areas in the future.

validates_as_phone
==================

Strict validation module for phone numbers that supports classifications and
areas.

= General usage

== Installation

You can install the plugin the traditional way. Go to your application root
and do:

  script/plugin install git://github.com/kristinalim/validates_as_phone.git

== Validate your model attributes

Example:

  class Person < ActiveRecord::Base
    validates_as_phone :phone, :allow_blank => true, :set => true
  end

= License

Written by Kristina Lim (http://i-think.com.ph/kristina/)

Copyright (c) 2008 Syndeo Media
http://syndeomedia.com

= Contributing

If you wish to contribute to the project, you may contact the author through:

'kristinasyndeomediacom'.insert(8, '@').insert(20, '.')

= Acknowledgements

This plugin is named after the validates_as_phone plugin of Jerrod Blavos
(http://code.google.com/p/validates-as-phone/). Admittedly, this plugin was
built over the latter, but as the purposes of this plugin is more complex than
that of the minimal one, practically all of the code has been written over by
now.

schedule_attribute on GitHub

August 9th, 2008

I pushed schedule_attribute to GitHub early today.

The Ruby on Rails plugin schedule_attribute provides support to ActiveRecord for a Data Definition Language (DDL) for schedules.

schedule_attribute
==================

Provides support to ActiveRecord for a Data Definition Language (DDL) specific to schedules.

= Language

A datetime pair comprised of the start datetime and end datetime is defined with two lines. At the moment, only one option is available.

== Weekly Schedule

  mon 09 00 ==> Monday, 7 AM
  01 17 00  ==> Monday, 5 PM

  1 00 00   ==> Monday, midnight
  2 05 00   ==> Tuesday, 5 PM

  5 09 00   ==> Friday, 9 AM
  0 09 00   ==> Subday, 9 AM

= General Usage

== Installation

You can install the plugin the traditional way. Go to your application root and do:

  script/plugin install git://github.com/kristinalim/schedule_attribute.git

== Specifying the Attributes for Schedule

In your models, you can do:

  class Person < ActiveRecord::Base
    schedule_attribute :office_hours, :type => :weekly
  end

== Checking if a Datetime is Within the Schedule

  person.within_schedule?(:weekly, :office_hours, Time.now)

= License

Written by Kristina Lim (http://i-think.com.ph/kristina/)

Copyright (c) 2008 Syndeo Media
http://syndeomedia.com

= Contributing

If you wish to contribute to the project, you may contact the author through:

'kristinasyndeomediacom'.insert(8, '@').insert(20, '.')

A Sony DSC-S700

April 6th, 2008

My dad caught Sony Cybershot DSC-S700 on a big sale a couple of weeks ago, so now, both my eldest sister and I have a digital camera too. I played with white balance (First thing I checked out. ;-) Thanks, Mutya.), effects, scene modes, and other configurables today, and it seems there will be a lot of photographs of practically anything under the sun coming.

(Irrelevant: My parents do not play favorites, my other sister got hers some time ago. And we got other things that time, alright? Although gifts are not important.)