August 2006 Archives

2006 Aug 31

Most description from SERPs generated from top search engines came from Open Directory Project (ODP) and not from the actual site description. Now, most of the site owners do not like this to happen since most of the descriptions there are outdated or maybe incorrect.

Google now supports META NOODP while MSN gives out their support for the opt out from DMOZ months ago. After adding this code your site header allow 1 day to 3 weeks to see results depending on how often is your site gets crawled.

Tell all robots not to use site description from DMOZ:
<META NAME="ROBOTS" CONTENT="NOODP">

Also works for attribute combination:
<META NAME="ROBOTS" CONTENT="NOODP, NOFOLLOW">

We could specifically direct Googlebot not to use DMOZ descriptions by:
<META NAME="GOOGLEBOT" CONTENT="NOODP">

Or MSN by:
<META Name="msnbot" CONTENT="NOODP">


Note:
SERPs - Search Engine Result Page

2006 Aug 30

Give your answer quickly - and without using pen or pencil. Which sum is the greater, that of the figures on the left, or on the right?

987654321      123456789
 87654321      12345678
  7654321      1234567
   654321      123456
    54321      12345
     4321      1234
      321      123
       21      12
        1      1
__________________________
2006 Aug 30

target.gifRight keywords on your site displays the right ads. With section targeting, you could redirect google bot to which portion of your site that has more relevant content, most probably a paragraph with your main keyword. This would greatly lessen the PSAs displayed on your site. Although google bot automatically targets your sites keyword, there are some poritions on your site you might want to put some weight on.

Here are some guidelines:

  • You can have more than one section in a page.

  • The section should have a significant amount of content.

  • Changes will be reflected in at least 1-2 weeks.

To emphasize a page section:
<!-- google_ad_section_start -->

{text content here}

<!-- google_ad_section_end -->

You can also mark contents to be of less significant by adding ignore
<!-- google_ad_section_start(weight=ignore) -->

{ignored text here}

<!-- google_ad_section_end -->


Notes:
PSAs - Public Service Ads

2006 Aug 29

I never knew there was a built-in random function in MySQL. What i did was get all the rows and using PHP's array_rand to get a random set of rows. When using RAND() in MySQL together with the LIMIT keywords it returns only the number of rows required for a random. It really saved so many lines of my code.

We can get a random number from the MySQL server using:
mysql> SELECT RAND();

We can also add a seed value by adding an argument to our RAND function:
mysql> SELECT RAND(34);

To retrive rows in random we use:
mysql> SELECT * FROM tbl_name ORDER BY RAND();

Now with the LIMIT keyword added:
mysql> SELECT * FROM tbl_name ORDER BY RAND() LIMIT 1000;

2006 Aug 28
bowling-lanes.jpg bowling-team.jpg bowling-winners.jpg bowling-champs.jpg

For me determination, discipline, desire does not count. All you need is a camera, agility and the timing. When the picture taking comes, all you need to do is run and smile like you are part of the team!! and then post your winning moment on your blog and thats it.

Anyway, i took three straight strikes with three spares but still my score was just over a hundred and fifty and the ball is so heavy. You could feel your arms dropping as you swing it. Well, i would still stick to the saying "Better luck next time".

2006 Aug 27

Theres a request with this entry from my last blog, and because i can still remember it, im going to post it here. the image stated in the url will be fixed no matter how the page is scrolled down.

<style type="text/css">
<!--
body
{
  background-attachment: fixed;
  background-image: url;
  background-repeat: no-repeat;
  background-position: right top;
}
-->
</style>
change the url with the correct image filename you want to appear.
2006 Aug 25

I believe that everyone who was exposed to television and music know the king of pop, Michael Jackson. In this featured article, Jackson's is chronologically traced from his humble beginnings to his current disturbing appearance.

His metamorphosis is mainly attributed to plastic surgery. If you wish to learn more about plastic surgery, check out this plastic surgery blog. Sad as it may seem, Michael's appearance is simply a reflection of how he lived his life, weird and disturbing.

2006 Aug 25

Hey, I know prom is still a loooooooooooooooong way for most of the seniors out there but I'm sure this will come in handy in case you are expecting to have one this year (or next year for that matter). Of course, to those of you who are looking forward to next year's prom, check out prom dresses 2007. I'm sure you'll find something to your liking.

2006 Aug 25

Here's one short story that was shared to me by a friend of mine who was hired by a San Diego web design firm, his name's Jeedo and this was one of the short stories he made basically as filler for their college publication:

When I was still a little boy I had this innate nature of forgetting things. Once, my grandfather requested me to buy a medicine for him, a certain tablet with a name I barely remember. It sounded like diametusin or was it derobusin? Anyway, with the eagerness of a youngster, I went out to the pharmacy and bought the tablet. Unfortunately (for my grandfather) I bought the wrong tablet. What he wanted was a medicine for his headache, I bought a medicine for constipation. Good thing, when he took the tablet, it worked! His headache was gone, but there was just one minor side effect. After he took the tablet, he spent the rest of the day at the toilet (and I mean the rest of the day). After the incident, my grandfather came to conclude to take it all out at the restroom whenever he had a headache. I tried to tell him about the tablet, but he just wouldn't listen

Enough about my grandfather, there was also another incident (I was already a high school student at that time) during our chemistry laboratory. We were working on some chemicals that were quite explosive when mixed with water. Our chemistry teacher was giving us step-by-step instructions on the proper handling of the chemicals. We listened intently and I was sure that I got everything right (so I assumed). Luckily for me, I was picked up by our teacher as one of the assistants. When we segregated the chemicals, I forgot to separate the bottles containing the chemicals and the ones containing pure water because they looked the same. To cut the story short, after our lab, besides the smoke, what was left of the chemistry room were a few sturdy wall frames, some tables and iron chairs, also a few of my classmates and of course, me. Anyway, I eventually forgot about the incident when I was transferred to another school.

There was even one time that I was part of a big play depicting the life of a farmer. Since I could not memorize any line I was just assigned as one of the props men. My role during that time was to guide the farm animals and coordinate their movements onstage. The director gave me cues so that I'll know when to let some of the animals in and some of them out during the show. Not one cue did I remember, so when the director was giving me all sort of weird signals, I panicked and I let all the animals go on stage. What ensued then was a grand chaotic scenario filled with flying ducks, chickens darting to and fro, squealing pigs that were sliding across the slippery stage, goats that were either crying or laughing and actors that were shouting "Mama!" at the top of their lungs! It was total chaos! But the audience enjoyed the pandemonium so much that after the show, they gave a standing ovation. During that time, my face beamed with a smile that almost tore my lips.

During my sophomore and junior years in high school I transferred from school to school wreaking havoc wherever I go because of my forgetfulness. Honestly speaking, I just couldn't remember how many schools and how many times I transferred. But more or less, it was only a few.

When I became a senior high school student, my parents consulted my dilemma to a famous child psychologist. I was pretty intimidated because I already considered myself an adult during that time. Still, I agreed with my mom and dad to see the psychologist and stayed with him for a month for my treatment. During the first few days I was nervous and apprehensive because the psychologist was stern-looking. What we usually did was that he would show me pictures and then he would let me describe the pictures, you know, the usual stuff psychologists do. However, to my demise, most of the sessions were boring because what he would usually show me were abstract pictures that closely resembled his wife (sort of). I did improve though, but unfortunately, my treatment was never completed because after the second week, he admitted himself in a mental hospital.

When I became a freshman college student, I began to take interest on girls. I was always conscious about how I looked because I believed in the saying "first impressions last." There was this one particular girl that I liked so much. She had a fair skin, straight hair, cute smile and eyes that can pierce through any man's soul. Eventually, I fell in love with her. That was the time then when I started courting her. Believe it or not, she became my girlfriend, I just couldn't remember how. Everything went fine for the two of us not until our first anniversary. We went to a beach, my girlfriend and I, and we stayed in a cottage. Man, that was the greatest event of my life because we stayed there overnight. The next day, I woke up early morning, I took a bath, brushed my teeth, changed my clothes and then I went home, bringing with me all the things I brought. I forgot my girlfriend. When I got home, I went to my room and slept without anything on my mind. Afternoon came and I was awakened by a furious and loud knock downstairs. With only my shorts on, I immediately went downstairs and opened the door. To my surprise, it was my girlfriend with her wind-blown hair, dusty clothes, skimpy shorts (sexy), and tattered slippers. She looked as if she walked a pretty long distance. "My goodness, what happened to you?" I asked with all my concern. Without saying a word, she punched me three times, a right hook, a left cross and finished with an upper cut! The third one put me to sleep and that was the end for both of us. That was also the last time I saw her.

So much about my love life, I miss her at times though. Now, I am already an engineering student and I will be graduating soon after a few more years of study. Just one thing, I keep forgetting my class schedules that I always end up either later or absent. Just a month ago, I ended at one of the classes of the graduate school, I just couldn't remember how. However, I enjoyed that experience because I was the only one who answered most of the instructor's questions (hee hee hee). Through out the whole twenty years of my life, I went on and on forgetting this and that. My forgetfulness was and is both a blessing and a curse. A blessing for those who owe me debts and a curse for those persons I owe debts. But despite myself, I am very content with what I have. However, the thing that just bugs me right now is, how did I ever end up telling you my life's story?

2006 Aug 25

When I saw the tattoo pictures on rankmytattoos.com, I've been thinking bout getting one myself. Perhaps a dragon on my chest, yeah, that would look cool or perhaps bart simpson's face on my shoulder. I think I'll go out now and see if anything can inspire me to get one.

2006 Aug 25

Its been a couple of years since I learned to auction stuff and buy as well on ebay. I use ebay.ph since ebay.com requires payment to sell. I think I've been lucky so far because all the buyers and sellers I've encountered were simply great (my feedbacks were 100% positive heh).

I've come across this good link that provides ebay auction tips. For those of you who are interested about online auctions, you might want to check the page out.

2006 Aug 22

XAMPP is a web development tool containing the essential applications in rapidly deploying web applications. XAMPP contains thew following:
1) Apache HTTP Server,
2) MySQL Database Server
3) ProFTPD Server
4) PHP
5) Perl
6) phpMyAdmin
7) OpenSSL

Xampp logo

Initially XAMPP stands for X-, A-pache, M-ySQL, P-HP, P-erl. XAMPP may be installed on most of the operating systems namely, Linux, Windows, Mac OS X and Sun Solaris. In Linux XAMPP is called LAMPP but to avoid the misconception it was renamed to XAMPP for Linux. The main feature of XAMPP is its one click server deploy and the easy PHP version switch. XAMPP was initially intended as a web developer tool so it is designed to be free from all restrictions. However, there are ways to secure XAMPP if you are planning to use it in a production environment.

A number of packages are also bundled with XAMPP.
Graphics: libjpeg, libpng, GD, ncurses
Database: SQLite, gdbm, FreeTDS
PHP: Pear, ezpdf, TURCK
XML: xpat, libxml, salbotron
Generic: mod_perl, zlib, IMAP, Ming, mcrypt, gettext, freetype2

The latest version of XAMPP may downloaded from its website.

XAMPP Download:
Linux
Windows
Mac OS X
Solaris

You may choose which installer to download the easiest is the .exe. if you have downloaded the tar ball you may use the command to install:

tar xvfz xampp-linux-1.5.3a.tar.gz -C /opt

by default in linux XAMPP is located at:
/opt/lampp

to start XAMPP you may issue the command:
./lampp start

to stop XAMPP you may issue the command
./lampp stop

check your XAMPP installation by typing the following on your web browsers address bar:
http://localhost/

other more specific commands:
Start commands
/opt/lampp/lampp startapache
/opt/lampp/lampp startmysql
/opt/lampp/lampp startftp

Stop commands
/opt/lampp/lampp stopapache
/opt/lampp/lampp stopmysql
/opt/lampp/lampp stopftp

Switch PHP versions
/opt/lampp/lampp php4
/opt/lampp/lampp php5

To uninstall XAMPP
rm -rf /opt/lampp

There would be no problem in Windows for there is an administration tool for running server applications in XAMPP. It usually located at:

Start -> All Programs -> apachefriends -> xampp ->

2006 Aug 18

In apache, we can redirect pages having no www to its www counterpart without manualy adding the www on the url by using mod_rewrite. Like for example, try to type in my url as tildemark.com on your browser's address bar, hit Enter and automatically you will be redirected to http://www.tildemark.com. This is useful to avoid duplicate caching of pages and the division of your pages' PR.

We need to edit our .htaccess file to add the 301 redirect.

# .htaccess file
# we need to check if mod_rewrite has been enabled, 
# by default its not
<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteCond %{HTTP_HOST}       ^tildemark.com
  RewriteRule (.*)               http://www.tildemark.com/$1 [R=301,L] 
</IfModule>

Replace tildemark.com to your respective domain name. here's a mod_rewrite cheatsheet from ilovejackdaniels.com

Notes:
301 is an http status code meaning permanent redirect
.htaccess files should be placed on the root directory
PR is PageRank

2006 Aug 17

At long last i was able to finish setting up my blog. Its been almost three months since it went offline. I hope i would be able to recover my previous posts.

movable_type_logo.jpg

Anyway, i took the liberty in upgrading my blog engine to MT 3.3.1. The new version has significantly improved from its previous versions. i specially like its Tags, well i dont know if its already supported on 3.2 since i was using its 3.17 version.

Sorry but i have made some changes in making some comments on this blog, you need to have a TypeKey account in order for you to add some comments.

About this Archive

This page is an archive of entries from August 2006 listed from newest to oldest.

April 2005 is the previous archive.

September 2006 is the next archive.

Find recent content on the main index or look in the archives to find all content.

Recent Activity

Today

  • tildemark tweeted, "im so sleepy. Zzzzzzzz"

Sunday

  • tildemark tweeted, "some of my scipts are not working with godaddy. but works fine on the others. not mention their poorly coded admin page"

Thursday

  • tildemark tweeted, "so many pending tasks i need to finish. need more coffee !!!"
  • tildemark tweeted, "@gmtristan i dont think that is true."

Thursday

  • tildemark tweeted, "how does godaddy subdomain behaves? i have some problems with it on my scripts. it does not seem to accept query strings.."

Monday

  • tildemark tweeted, "i had a hard time removing the error messages generated by surf side kick. i ended up uninstalling most of my applications."

Sunday

  • tildemark tweeted, "i got hit by surf side kick and im getting numerous error messages on my screen. tskkkkk"

Saturday

  • tildemark tweeted, "check boxes, i didn't know they can also be complex"
  • tildemark tweeted, "this smart bro internet speed is depressing, i thinking of filling a complaint to the DTI next week."

Today

  • tildemark tweeted, "the seminar turned out to be leadership training. it was fun, learned alot. i have already attended numerous seminars but this is different."