Archive for January, 2008

I Know What You Clicked Last Summer

authored on Saturday, January 26th 2008

programming is so fun!

Simply by creating a new table, I can now track which link of the Sith or clicks on my website, how long it took him to click that link would tell me if he or she read my article.

This tracking software was created the by me and I am a little proud of it. That is because Google Analytics exists. no matter, as long as he does goes into my database, I can make it customized to what I want to see.

Imagine the placement of your links are so important if you get the right information on which most of your users click on, then you can track what is working and what is not. Should you color your links a different color? should you put your links a little higher?so on and so forth.

It is a little tedious, however like Robert Kyosaki said do more work to do less work. Oxymoron yet true :-)

The Beginning of a Search Algorithm

authored on Friday, January 25th 2008

Building a website is easy!

When you have a database full of articles, posts, and reviews… you will want your users and visitors to search your site instead of finding more information by clicking around.  adding a search box is easy, however producing results from your database is a little tougher.

How to build a mini Google search engine

Here is a simple database structure: ID, title, article

let’s say our precious visitors search for “attracting beautiful women”.

we will have to run multiple queries.

The first query is to search all three words in this same order on the title,

then from the article,

then break up the search to and find in title that contains all keywords in any order,

then break up the search term again find in the article that contains all the keywords in any order.

If the above a few queries does not produce a result, then break up the keywords such to begin and as long as the title contains any one of those keywords or the article that contains any one of those keywords… those should produce results.

What if the user types “sdljklodsfeowirdfkljkldfs dsfkl;dfsldsfpioewfjkfdskfjlsdfkljdsfjkl “?

I can’t even begin to pronounce the word!  But if my algorithm doesn’t produce a result, throw in some advertisements!

be kind to your visitors, baby gift and the gift and send them on their way home :-)

What a Mixed Up Day

authored on Saturday, January 5th 2008

What a day…

  1. Woke up late. (-1)
  2. Arrived work late. (-1)
  3. Bought my iPod a leather casing, yay! (+1)
  4. Got charmed by beautiful girls to sign up for CLEO’s 50 most eligible bachelors. Should post the picture here (Soon soon.) (+1)
  5. Found out I’ve to work half day only (+1)
  6. Have to send my car for air-con service repair (-1)
  7. Went and play basketball (+1)
  8. It rained 5 minutes later (-1)
  9. Stepped on dog poo! (-1)
  10. Rain gave the dog poo a wet feel which dirty my shoe that I’ve to wash… not to mention my car (-1)
  11. Geramnya, so wash toilet which oddly enough, feels kinda good which things are neat, clean and in place (+1)

Well the day hasn’t end yet but so far I think I should be doing well….

-1-1+1+1+1-1+1-1-1-1+1 = 1

What a day… +1. hah.

+1

If life continues like that, I’ll have a whole bunch of them by year end :D

Such positive mental attitude should get me ’somewhere’ which looks promisingly, the right direction.

Hope your interpretation of your day is as positive, if not more, than mine :D

What a Sobering Day

authored on Thursday, January 3rd 2008

I almost lost my girlfriend.

I had to carry my laptop, the everyday bag, a coat and I was talking to my girlfriend when suddenly a motorbike came my direction, took U-turn, aimed for her and almost grab her away!

Yea, totally ‘handless’ and distracted on the phone, I didn’t notice it sooner. That cursed bastard scumbag’s aim was damn good but my instinct told me a vehicle was coming too close. So as his filthy, devilish, crooked twisted sh*ty fingers aimed for the phone, I took a step back. Missing it, he just sped off hoping I wouldn’t catch his disgusting dirty license plate. I didn’t. Bleh.

So yea, damansara perdana isn’t safe, even for a guy. And I was pretty naive! I didn’t know it all happened and panic didn’t get in until 5 minutes later.

Lessons to learn:

1. Keep a look out for motorcycles. Potential to be victimizer. A friend of mine got hit on the head with a helmet. Drop dead cold, robbed (but not raped, thank God).

2. Walk in pairs.

3. Act like someone not to be trifled with. Yea, buy a 2liter water bottle. Long ranged and heavy as a hammer.

4. Hide your belonging when alone.

Wow, what a list when fear strikes.

Thank God for his mercy and angels protecting me.

P.S. The colorful language that you’ve just read has already been toned down. I assume you’ll already know that. Somehow I wished I could put a detonator in my phone and if it’s stolen, kaboom?

Hah, if it’s a buggy system I could lose a leg. Literally. *shrugs*.