Monday, December 14, 2009

Law of Attraction




Attract what you need.
For example, attract terrific people by being a terrific person.
Attract blessings by being grateful to the blessings you already have received.
Attract money by thinking about your financial dream everyday.



Sunday, August 2, 2009

I Have Fallen In Love

I Have Fallen In Love (with the same woman three times)
by Jose Mari Chan
poem written by Ninoy Aquino while in prison for Cory on there 19th wedding anniversary

I have fallen in love
With the same woman three times
In a day spanning nineteen years
Of tearful joys and joyful tears.
I loved her first when she was young
Enchanting and vibrant, eternally new
She was brilliant, fragrant and cool as the morning dew
I fell in love with her the second time
When first she bore her child and mine
She’s always by my side, the source of my strength
Helping to turn the tide…
I fell in love again with the same woman the third time
Looming from the battle her courage will never fade.
Amidst the hardships she has remained
Undaunted and unafraid
She is calm and composed. She is God’s lovely maid.

Monday, April 6, 2009

Are you lonely?


Recently I was invited by my fellow devs to join EVERYONE.ISLONE.LY.
The newly launched webtoy of SyndeoLabs.

By joining you can have your own lonely page :( hehe
Add stuffs that matters to you most and rate your friends based on those criteria.
Thus making the world less lonely lol :D

Tuesday, March 24, 2009

[TS] Thinking Sphinx

Using Thinking Sphinx in your rails app?
This is how I install TS in my Ubuntu machine.

First you need to install sphinx (if you haven't already).
$ curl -O http://sphinxsearch.com/downloads/sphinx-0.9.8-rc2.tar.gz
$ tar zxvf sphinx-0.9.8-rc2.tar.gz
$ cd sphinx-0.9.8-rc2
$ ./configure
$ make
$ sudo make install


Then install Thinking Sphinx as a plugin in your rails app.
I'm running on edge so:

script/plugin install git://github.com/freelancing-god/thinking-sphinx.git

Add these to your models.

define_index do
...
...
...
...
end

To index your models run:
$ rake thinking_sphinx:index or rake ts:in

To start searching daemon:
$ rake thinking_sphinx:start

To stop
$ rake thinking_sphinx:stop


To test:
Model.search "test"


Thinking Sphinx Rdoc: http://ts.freelancing-gods.com/rdoc/