A day in the life of an audio visual junkie
30 Jun

This post is for Manny. You are the greatest! Mabuhay ka Manny!
Hatton, you’re next!!!!
“His punches are just too fast” - David Diaz
Sorry guys no match videos here, YouTube keeps blocking them ![]()
27 Jun
I first noticed this bug in the first beta release of Firefox 3. Whenever I apply a CSS rule to an element in order to give it a background image, if I add the top or bottom positioning rule along with the no-repeat rule, I get a blurred version of that background image.
First look at the image in the example below, which appears blurry:

CSS:
#containerMain { background: url(images/backgroundMain.jpg) top no-repeat; }
Compare the image above with the image below, which is what it should look like:

CSS:
#containerMain { background: url(images/backgroundMain.jpg) top; }
Now notice that the only difference is the absence of the no-repeat rule.
Blurring does not occur if the no-repeat rule is by itself, or if I use the left and right rule, or if I specify the background image location in pixels. The following rules will not cause any blurring:
#containerMain { background: url(images/backgroundMain.jpg) no-repeat; }
#containerMain { background: url(images/backgroundMain.jpg) 10px no-repeat; }
#containerMain { background: url(images/backgroundMain.jpg) 5px 10px no-repeat; }
#containerMain { background: url(images/backgroundMain.jpg) left no-repeat; }
#containerMain { background: url(images/backgroundMain.jpg) top left no-repeat; }
In essence, the background blurring bug only appears whenever the no-repeat rule is used in conjunction with the top or bottom positioning rule. This is probably due to Firefox 3’s rendering engine attempting to center the image which it does so successfully but with a blurred image.
I did not care back when Firefox 3 was still in beta, but now that it is actually out of beta I can’t help but feel disappointed that this “bug” was left unfixed.
22 Jun

I recently fixed a machine that got infected by a virus that works like this: every time you click on a directory, an error message gets displayed that goes like this:
bq. Attention, [name]! Some dangerous trojan horses detected in your system. Microsoft Windows XP files corrupted. This may lead to the destruction of important files in C:\WINDOWS. Download protection software now!
This error message is then followed by a dialog box. Clicking on it takes you to the website http://free-viruscan.com/id/4912933/4/1/ (WARNING: The website is a FAKE meant to deceive the visitor into downloading and executing a program that will create more virii. Do not interact with it).
(more…)
18 Jun
Over the past few days I’ve been appreciating Puddle of Mudd’s last album Famous. I’ve had it when I first came out October of last year, but I’ve never really had the chance to appreciate it as I did now. I mean I love POM but when on my first few listens, “Famous” didn’t really stick. Their sound has sort of changed and I guess that alienated me.
(more…)
10 Jun
So today is my birthday. Happy 13th birthday to me!!!!
Okay. I lied. I’m 14. Gomen, gomen ^_^;
4 Jun
Sometimes it can be really annoying for the user to open a PDF file in the same window, and sometimes you might find yourself working on an existing website, faced with the insurmountable task of making sure all PDF links open in a new window.
Just like today.
Forget about manual editing, it will only take too long.
Forget about search and replace, you might mess up the code.
JQuery to the rescue!
See my code below:
$("a[href*=.pdf]").click(function(){
window.open(this.href);
return false;
});
Alternatively, you can apply the target=”_self” attribute instead:
$("a[href*=.pdf]").click(function(){
$(this).attr({"target":"_self"});
return false;
});
Viola! With Just four lines of code, you now open all pdf links in a new window! Thanks to JQuery’s awesome element matching engine and attribute pattern recognition, you can actually modify the code to apply the same behavior to any link, as long as the text can be found anywhere within the href attribute.
Have fun! ![]()
2 Jun
Today is a sad day.
Gone is the proud old big G boxed in red, blue, and green. It has been replaced by the second g in the Google logo, boxed by a hideous Web 2.0 wannabe rounded box:
![]()
It seems like a very minor change. After all, who looks at these icons, right? Wrong. I like to open search results on a separate tab, and before I could always locate the Google tab immediately. But today I hesitated a couple of times as I tried to find the right tab: Where the hell is it? It was then that I noticed the small “g”, unnoticeable and shy, hidden amongst my grayish tabs like it didn’t want to be seen.
(more…)