I am feeling
The current mood of sweetperceptions at www.imood.com
right now.
Home  Email  Rss  PHP  Ruby

Measuring it up

 November 15th, 2008

There are different ways to start your application out right. Some work on TDD methods, some equip their teams with good QAs, the others rely on extremely efficient project management and strong system administration. But the building of a good rails application does not only depend on code alone and its processes…

Read the rest of this entry

Quick fixing Blackbook gem for Gmail

 November 14th, 2008

The blackbook gem, though not really maintained well right now has still been a good solution for my needs in networking stuffs. Although, recently pointed out by Marco Fang was some trouble with Gmail changing the way data is retrieved via the API.

Previously, a query for contacts via..

Read the rest of this entry

To run RubyRun

 October 11th, 2008

I’m excited to have found RubyRun! I’ve just got the gem, but haven’t really fiddled with it. I’m gonna have it tested soon. I’ve heard about NewRelic and other stuffs too, but this one is new. We used to work with just bleakhouse, and I’ve tried dike. They are both hard to use and takes a lot of analysis to extract good info from it.

Read the rest of this entry

We should be taught not to wait for inspiration to start a thing. Action always generates inspiration. Inspiration seldom generates action.

Read the rest of this entry

Rails addressbook importer

 October 3rd, 2008

I’ve been a developer for almost 10years now, yet I haven’t done any implementation of an address book importer. Well, this is the first time. smile

Since I started using symfony, I started to love its framework. Later on, I moved to using Ruby on Rails. Ever since, I loved working on Rails, and see myself wanting to create more Rails applications that would be better and more beautiful each time. That is why I always welcome the things I don’t know. I want to spend more time learning than simply perfecting what I already know.

Enter Rails address book importer.

Read the rest of this entry

I admire sites that spend time trying to put up a page that is W3C compliant in both HTML and CSS aspects. My hats off too to those who workout their usability testing.

While its still a treat to overload your application with intelligence, in the end, its how you present it to the users that is most important.

Read the rest of this entry

Meaningful 404s and 500s

 July 6th, 2008

My site is still young and contents aren't that many right now, but what I really enjoy doing is making all the pages look better and be more usable. One thing that I recently gave thought on were my error pages.

I tried to advertently access a missing page, and I was greeted with my old one liner text and a suggestion to visit my blog. At the bottom of it was my twitter feed. It had the same layout as the rest of my site's pages and had the usual links on the right side. Funny though, when you access this missing page, it did take the usual loading time only to be displayed with such a page. And so I thought it needed a revamp.

Read the rest of this entry

The type I wanna be

 July 3rd, 2008

I have been misled by my understanding of a "Hacker". I've always thought and believed that "hacking" is a selfish act.. an act of abusing intellectual ability.

My misconception

When I was young, back then, CDs were burned at the highest speed of 32x.. my CDROM can only read those burned up to 16x. It was a terrifying fact that I cannot buy the high end CDs because of financial limitations. I had to stick by the 'old' CDs that were sold at a cheaper cost because they had to get rid of the 'slow' CDs. I end up scavenging those CDs that nobody would even like. I take whatever interests me. Sometimes its frustrating to find the ebook CD you want burned at a higher speed I cannot read. At worst, the seller doesn't even know the speed used for burning and sell out a copy that I cannot even use. But there is one though that I wanted and was burned at a lower speed.. it was a "Hacking Tools" CD.

This was one of my favorite CDs. I learned that the CD I bought won't teach me anything about 'good' pride. By good, I mean the pride that you get from giving your projects a good thought, ample time of planning and rigorous code development. It taught me about 'bad' pride. It showed me a lot of 'instant gratification' coding. I'd like to call these tricks and 'hacks'.

With this, it kinda stuck in my head that 'hacking' is a negative term. I have confused the "Masters" with the "Crashers".

Read the rest of this entry

Lovin' my Pidgin

 June 28th, 2008

Since I love Linux (not really shunning Mac lovers), my best chatting companion is Pidgin. I like it since its simple to use and it can hold as much as 10 accounts at the same time! I wouldn’t have to worry about having to open multiple chat clients for each of my accounts. Lovely! smile

Read the rest of this entry

Programming in Ruby on Rails introduced me to agile software development. I have been used to development in the traditionally confusing and dirty process of coding system. Agile development is different.

In the good old waterfall model, there is a strict flow of activities and process that is followed in the exact manner as they are described. What I really liked about agile method is that its ability to be adaptive, thereby allowing more programmer sanity. As defined by Wikipedia,

Some of the principles behind the Agile Manifesto are:

* Customer satisfaction by rapid, continuous delivery of useful software
* Working software is delivered frequently (weeks rather than months)
* Working software is the principal measure of progress
* Even late changes in requirements are welcomed
* Close, daily cooperation between business people and developers
* Face-to-face conversation is the best form of communication (Co-location)
* Projects are built around motivated individuals, who should be trusted
* Continuous attention to technical excellence and good design
* Simplicity
* Self-organizing teams
* Regular adaptation to changing circumstances
Read the rest of this entry

Dominance is power

 June 25th, 2008

When I came to be as a programmer, the only things that I knew was about Microsoft, DOS, Apple and Commodore 64. I didn't know about open source, or linux or unix and its various flavors. I was only exposed to what was commercialized, and what everybody was using.

As the years progressed, I found myself wondering why there are differences between the platforms and the applications and their developers such as myself squander to continuosly fix and present the "one" product in various translations (aka, in various browsers or platforms). Preference is always at the top of all priorities. The user knows best, and their wants and needs are the most important.

I resorted to the study of W3C documents and followed guides and documents on writing good web code. A code that would not only work magnificently but also be as clean, readable and standards compliant as it should be. More years passed, and I have gotten frustrated with the "Internet Explorer". Since the birth of Firefox, it no longer mattered to me whether I'd still be using Windows for development. If I can have Firefox in Linux, then nothing beats my setup. Yeah right.

Read the rest of this entry

Versioning your releases

 June 24th, 2008

Unless you’ve never used any software, nor have been exposed to the computer then you would have never seen version numbers for applications both offline and online.

Software versioning is the process of assigning either unique version names or unique version numbers to unique states of computer software. Within a given version number category (major, minor), these numbers are generally assigned in increasing order and correspond to new developments in the software. At a fine-grained level, revision control is often used for keeping track of incrementally different versions of electronic information, whether or not this information is actually computer software.

Read the rest of this entry

Writing good code

 June 13th, 2008

It has long been a debate on how to describe 'good code'. What are the criteria for declaring a code to be good, neat, and dry?

My advocacy is to promote writing good quality code. It is by painstaking practice and tons of reading that I get to exercise this advocacy. It is but a long journey, but little steps lead you to understanding and qualifying a code to be of high quality. So what are my benchmarks?

  • Long codes are less readable and more likely to fail.

Ruby scripts are far smaller and more compact in size compared to Java codes or C++ codes. Trust me, I've seen some and comparing them to Ruby, reading Java codes or C++ codes that are not mine would take me a longer time for understanding (even if docs and other help materials are present). Ruby has good metaprogamming (that sometimes gets abused because of monkey patching) and produce straightforward codes. Each line would end up more like real English sentences.

If you write ruby codes that take up to more than twenty lines.. hmm.. well, its doomed to fail, for sure. smile Refactor and review!

  • Codes that don't look anything like its API source is really smelly.

APIs are there for you to use as a general sitemap. It is your guide to efficiently write code with ease. Usually, APIs are well documented and even provide examples or snippets of codes to demonstrate its use. The lines of codes involved may also be present for you to inspect its process and even predict if it will pass your expectations.

Read the rest of this entry

Scoop of Coding Ethics

 June 5th, 2008

It has occurred to me in a very ugly, surprising way that not all programmers do practice programming ethics. It is a sad fact and horrifying for some who practice extreme measures to fulfill being a quality programmer.

It is but a shame to not practice what the best minds and the best teams practice and observe. We, the younger generations of programmers need not worry about having the best machines to compute on, or the best practices/methodologies/principles that there is to improve the way of computing. It has already been resolved by our ancestors in the field of IT. Thus, it is much expected from us to continue with this founded easy, elegant and professional way of computing. We are now burdened only with the general interest to improve these established way of thoughts and thereby find another set of quality contributions to our society.

But it is such a disgrace to go backwards and be proud of it. Isn't? Our forefathers have already established the following for us:

Read the rest of this entry

I’m just a new user of Mephisto, and I find that its a mature blogging platform (that still has a lot to improve though). I’m liking it already, but I feel that there aren’t much resources available for the Mephisto users. I had a hard time finding a theme that suits my taste, and so I decided to use my own.

As I was writing my own layout, I had to look at liquid markup and quickly breeze through it so that I could go on with fixing my blog. To my surprise, even the Google Group for Liquid were not so kind enough to post answers to those questions related to “using helper methods in liquid layouts/template”.

Its sad that I had to work on it on my own. And now that I finally learned how to do it, I’m sharing it with you.

Read the rest of this entry

One sweet day is coming!  I'm so happy and excited.. and so is my honey.  smile  Its a road to forever happiness and we'd like to share it with you.  Things are still cooking up, but we're excited to let you know.  Watch out for eleven8...


comments Comments »
nakakainis talaga maging empleyado lang12:02 PM pipilitin kang gawin lahat kahit na sa tingin mo mali12:02 PM sa tingin ko ito talaga problema ko ever since the world began12:02 PM ayokong gawin yung sa tingin ko eh mali12:03 PM pero kahit mali sa iba at tama para sa akin gagawin ko12:03 PM pero yun naman...


comments Comments »
Seriously, I like it when people give words of wisdom, or even share their own joys and/or sorrows.  Even those people who leave good thoughts and advices are alright.  Its okay.  But if you don't tell me who you are or if that I find that you picked my blog...


comments Comments »
Its a wonderful feeling that you are loved, and yes, its even better when you have someone to love.  In tagalog.. "kay sarap nang may minamahal.."  smile  Yep, its really great when everything seems perfect.. but then you get to ask yourself why on earth should you deserve this?  Is...


comments Comments »
If you haven't read Jules Verne's Journey to the Center of the Earth and weren't even able to watch the movie Journey to the Center of the Earth, then I hope you'll find it intriguing to watch the movie or buy the book after I relate our experience.I love Jules...


comments Comments »
Inspiration is nothing compared to Action itself.. I think so, I believe so..We should be taught not to wait for inspiration to start a thing. Action always generates inspiration. Inspiration seldom generates action.--Frank Tibolt [From MockObjects.com]&nb...


comments Comments »
I'm not a US citizen, in fact, I've never been there.  I'm not a politician or a political analyst/thinker.  But I do know a good person when I see one.  We all do right?  If I can vote for a US Presidency candidate, I'd pitch my vote for Barack Obama.Not...


comments Comments »
[video align='align-left']http://www.youtube.com/watch?v=rafEFSXVtuw[/video]While on the way home, as usual, I had to compete with a lot of people going to Quiapo.  I got a little pissed off because the drivers feel like once they have the "Derecho" sign boards they automatically upgrade their fare to 30 bucks!  They still pass by...


comments Comments »
I'm out of my league.  Hell, I didn't even know why I was there.  I knew I wanted to come because I wanted to try new things!  I don't really like gambling, and was quite hesitant to come, yet I wanted to learn how to play poker.  smile  My honey...


comments Comments »
Two days ago, my youngest sister was suddenly in the mood to watch Kill Bill again.  Well, since none at home had any violent reactions, we watched Volume 1 at around 8pm.  Supposedly, my honey and I were to discuss something very important that night, but then we opted to...


comments Comments »
  • Anti burn out = day off! 2008-11-17
  • i can only be stubborn because i have ideals and personal standards. 2008-11-16
  • working in a company means you'll do ALL of what they say. Most of the time its painful and annoying when its something you don't want. 2008-11-16
  • i just don't like being lied to. i can take a bitter truth but not a beautiful lie 2008-11-14
  • how could "a moment" take so long as 2 hours? especially if you say you're sleepy 2008-11-14
  • woohoo.. i'm happy for this weekend. smile 2008-11-14
  • nakiki-twitter lang kay Chris... buwahahahaha! - Deyey 2008-11-08
  • good to have the friendly internet always handy.. hehe 2008-11-08