CakePHP: Sanitization…

May 30, 2007 § Leave a comment

is a very long word and difficult to pronounce. But hella useful. Waay useful.

It’s recommended to use sanitization in all of your controllers that serve web form.


Sanitization helps trimming out undesired tags coming in from your view pages. Thus, bad <script> tag will never make it to the database.

It’s a good handy helper function.



The dot com dream…

May 25, 2007 § 1 Comment

is hella difficult to pursue.

When dreaming the web 2.0 dream, I cannot help but to felt discouraged. A lot…

The discouragement came when real problems arose. Whether it’s the database mapping that’s overly complicated (making searching difficult), or “way-over-the-top” JavaScript UI that I couldn’t create…

But such is life, ain’t nothin’ is easy. If success is easy, then everyone is successful already. Pursuing such humongous dream, of course I do the usual routes:

  • Bank in skills like mad because cool stuff are made by utilizing various skills.
  • Learn and apply time management. Even at home, or at work, or at plain old day-job, or while working at that cool open source framework. There’s only 24 hours a day. I cannot possibly lose too many minutes a day dreaming.
  • Being Frugal. Because Frugal is the new Cool in Web 2.0

But those are seemingly not enough. It’s really though to COMPLETE a dream.

Therefore, when I’m at my low points. I like reading stories about how other entrepreneurs do things. I never read self-help books, but experiences told by real entrepreneurs are believable and more importantly, REAL.

Below are compilations of good reads that I’ve read. Stay tuned because I will have more:

Python for N00bies Resources

May 23, 2007 § Leave a comment

When coding with new language, unfamiliar syntax & API might frustrates you a lot.

That’s what I felt with Python, thus to familiarize myself, I’ve compiled list of online resources that I (or readers) can download or read online.

Online Books:

Online Tutorials:

One Laptop Per Child (OLPC) review…

May 21, 2007 § Leave a comment

is here!

There’s no way I can get my hand on these. But, their User Interface (called Sugar) look simple and intuitive.

Further research shows that the GUI is written in Python.

Sugar UI Demo:

Other References:

Wikipedia article on Sugar GUI.

Another blog, with far more detail description and opinion.

Sakaiproject: Out of Memory…

May 18, 2007 § Leave a comment

seems to be a well known issue.

For those who encountered strange Tomcat behavior,

or OutOfMem during deployment,

I compiled list of articles that might help you:


Dr. Chuck seems to be very involved with sakaiproject. Thus, I’d recommend readers, who care about CMS for higher education, to check back on his blog frequently.

Battle against RoR: gem install mysql…

May 17, 2007 § 12 Comments

is simply broken. Broken as hell.

This is my development environment:

  • Mac OS X 10.4.9
  • MySQL 5.0 under /usr/local/mysql
  • gcc 4.0.1 or gcc 3.3
  • readline 5.2
  • ruby 1.8.5
  • rubygems 0.9.3
  • fcgi 2.4.0

Everything was installed properly except mysql binding.

1. This is the command I called to install that module:

sudo gem install mysql — –with-mysql-dir=/usr/local/mysql

2. Didn’t work. Next:

sudo gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
Chose MySQL 2.7 (ruby)

3. Works. But “rake migrate” didn’t work. Next:

4. Changed gcc from 4.0 to 3.3:

sudo gcc_select 3.3

5. Then ran:

sudo gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
Chose MySQL 2.7 (ruby)

6. Didn’t even compile. Tried MySQL 2.6 (ruby):

sudo gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
Chose MySQL 2.6 (ruby)

7. Didn’t even compile. Damn!

Google search revealed this. Damn! Why some configurations work for some people? What The Hell???

8. So, I changed gcc back 4.0:

sudo gcc_select 4.0

9. Uninstall gem mysql:

sudo gem uninstall mysql

Now, obviously, “rake migrate” works.

Conclusion: RoR 1, me? Big Fat 0.


References on how to install Ruby on Rails on Mac OS X

May 17, 2007 § Leave a comment


Number 3 is interesting because it provide project containers to all of your Ruby on Rails application, but the 75 MB download is a bit too much though.

I cannot really add more insight to the installation process because RoR seems to be born inside Mac OS X. Installation is dead simple, documentations are plenty as well.

Where Am I?

You are currently viewing the archives for May, 2007 at RAPD.