Sunday, 27 February 2011 - 2:40 PM GMT

I've just recently heard the news that Facebook will be closed by 15 March 2011. I know it's late, because I don't really follow this kind of news. Once I know this (from my mom who claimed that she get the news from kompas.com) I immediately check for the news on the internet. Well, it seems that most major news sources in Indonesia actually act like it's a truth, except TempoInteraktif.

The funny thing is , by today, people in MediaIndonesia still believe that Facebook is really being closed. I read all the comments, and that's just insane!

Guys, I can confirm that this news is 100% HOAX. You can check the web where this news comes from. See for yourself what kind of website that is.

Saturday, 26 February 2011 - 2:10 PM GMT

I'm currently experimenting with the new HTML5 tags. In this post, I'll be experimenting with the new <video> tag. To be able to view this video, you'll need Google Chrome (the latest build) or Mozilla Firefox 4 Beta (for Linux).

This video is the video from my previous post.

This video is removed by the administrator of Yohanes Mario [ dot ] com due to high bandwidth usage originating from USA, considering the no-leeching policy of the web hosting that I use. Looks like we're stuck with youtube for a while.

It seems that when we're halfway downloading the video, and then we leave the page, and go back to the page, the video will resume downloading, and if you have finished downloading, when you visit the page later, you don't need to download the video all over again!

It's a bandwidth saver both for the client and the host.

Monday, 21 February 2011 - 1:11 PM GMT

Sometimes, we have only small amount of content to fill our page, and that makes the footer rises up to the middle of the screen. Today, my senior coworker asked me to figure out how to make the footer placed on the bottom of the screen when we have a short amount of content. It's an ugly view for both of us, so I told him that I'll try to find a solution.

On my previous studies about HTML, the only thing that will enable you to adjust the vertical-alignment of any object is a <table>. A <table> will give you that kind of freedom to adjust the alignment both horizontally and vertically. So, I try to encapsulate the whole web page into two rows of <table>, one for footer and one for everything else.

I use css to help me set attributes for the table and its contents. The <table>, <html>, and <body> have a width:100%; and height:100%; attribute. on the other hand, the upper row, which contain everything except the footer, have a vertical-align:"top"; attribute, and the other row have a vertical-align:"bottom"; attribute. That will let the content placed where it should be placed, and the footer placed on the bottom of the screen when the content is too short.

Here is the sample html code:

<!doctype html>     <!-- I am using the html5 doctype -->
<html>

<head>
<link rel ="stylesheet" type="text/css" href="style.css" />
</head>

<body>
<table class="capsule">
<tr>
  <td class="content">Everything that's above our footer</td>
</tr>
<tr>
  <td class="footer">This contains our footer</td>
</tr>
</table>
</body>

</html>
And here is the style.css content:
html, body, table.capsule
{
width:100%;
height:100%;
}

td.content
{
vertical-align:"top";
}

td.footer
{
vertical-align:"bottom";
}

I hope that helps. Let me know if it doesn't work for you.
Happy blogging!