Unix Millenium Bug: Y2K38

August 25th, 2010 by [re-arrange] 3 comments »

Picture courtesy to this blog.

I’m going technical today.

Remember the Y2K bug? The one where the date of 1st January 2000 appears to be translated by the computer as 1-1-1900? It happened because of the memory limitation where computer programmers previously only specify the range of date to be up until year 1999. They don’t expect their system to be available until year 2000.

Or so they thought.

Now, this problem might repeat itself on the year 2038. While not jumping into the calculation (you can read more of it on Wikipedia), basically it happened due to the memory limitation of 32-bit. The 32-bit memory calculated the time up until 19th January 2038, then it will reset the value to be a negative number. Picture below explains how it goes (courtesy of Wikipedia – click the picture to see the picture animation):

Solution? Upgrade your system to use 64-bit so that this kind of data can be calculated correctly. That’s the way to do it. This will effect quite a whole lot of applications that is date-sensitive; INCLUDING blogs, forums, and Web 2.0.

If you’re running your own self-hosted WordPress or any websites that capitalize PHP technology, try to run this piece of codes to see if your system is affected. Although most of web hosting is now using 64-bit Linux, well — you’ll never know. I am not sure if this will affect the Windows 32-bit system as well or not (maybe not, since the bug itself is called Unix Millenium Bug).

<?php
$date = ’2040-02-01′;
$format = ‘l d F Y H:i’;
$mydate1 = strtotime($date);
echo ‘<p>’, date($format, $mydate1), ‘</p>’;
?>

Code is courtesy of Tech Times newsletter from Sitepoint.com. Cool stuff. I’ve been reading their newsletters and webpages for so long now, and I’ve learned so much about web programming and other stuffs as well when visiting their sites.

So, are you affected? I’m not, luckily winking





Changelog: rearrange-inc.com

August 23rd, 2010 by [re-arrange] 1 comment »

I’ve done some changes to this blog to accommodate more functionality and to clean up the databases and files. Security has been tighten, performance-wise has also been improved due to the migration of the server. Changelog as below for my own reference:

1- Hosting is now using ServerFreak

As stated in the previous EMO post, my previous hosting gives me problems a lot from the uptime, accessibility, and server stability. So no more cheap hosting without the proper functionality!

The matter was made worst when they revert my files prior to posting the Inception post below. Suddenly the post was reverted and lost in just 5 minutes of posting, just because I ping it to Twitter and Facebook? WTF!

So that’s about it. I moved to ServerFreak now. Better client support, better performance, better functionality, a bit expensive from previous hosting but very worth it. And it’s not that expensive either way, only RM140 per year for both domain name and hosting.

2 – Use 1-click Retweet/Share/Like plugin, remove the Random Quote plugin, more Nuffnang.

See the sidebar? No more random quotes like before. I decided to remove that plugins because I lost the tables of it. Damn! Even though I can rebuilt and search for new quotes, I just don’t feel like it for now. So… sorry!

But I added the 1-click retweet/share/like plugin. See the bottom of the post? If you want to like or share the post now, it’s easy! Yeay! (and the plugin produces a good looking buttons too. Nice! big grin)

And I decided to use the poll plugins from Nuffnang. See the new polls in the sidebar now? The orange one? PLEASE feel free to click it. At least I know better what are the things you guys like and wanted me to post moar tongue

Added the top header ads, sidebar ads, and square ads. The square ads only visible if you see the comments, so I don’t think its too much intrusive. Just worried about the header ads though; please give me feedback of how it looks likes once it appear.

(Oh. Feel free to click the ads too. HEHEHEHE tongue)

Pending Task:

1) Add more banner ads on the sidebar. Need to tweak the theme since it only gives four pre-defined template and left a lot of space below. Sigh.Not only that, need to select proper affiliate ads or banner that is useful. Don’t want to put those cialis/viagra type of ads. Acai berry pun cannot!!! tongue

2) Target of adding another one follower in NetworkedBlog. Now I got 19 follower, if can add another 1, additional functionality and statistics will be available from NetworkedBlog. Dying to see how good (or bad) it is.

3) Auto-publish to other social networks. Need to register for additional API and configuration stuffs. Still thinking whether to do it or not since my article and posts are not… that good to be shared. HAHA tongue

4) Figure out if I can monetize the blog in more ways without having to annoy my current readers. Most prolly won’t be able to figure out though. HAHAHAHAH tongue





Inception: Movie Review

August 21st, 2010 by [re-arrange] 9 comments »

I’ve watched Inception for two times now so I guess I can review it fairly. It is a great movie with a lot of life lesson to be learn if you open your eyes and minds. The movie has an open-ended closing and it is very up to the viewer’s understanding.

So I’m gonna review it based on these two things – life lesson learnt and the plot as I understand it. Beware! Spoiler’s ahead. Close your browser now if you haven’t watched it. Yes I mean it. Click that X on the right top of your browser now!

Life Lesson Learned From Inception:

  • Your belief in your mind will determine your action.

All people have fears; scared to lose someone / something valuable, scared to lose security in life, scared to be in an uncomfortable position. Yet, those fears and scared should not be your limiting boundary. Most people subconsciously take their fear and embed (or incept?) in their mind and says “I can’t do it”. So, what you believe subconsciously will determine your action.

In the movie, the ideas being planted makes his son determine to eradicate his late father’s empire. It’s just an idea being put in his mind, yet that can determine what’s his next action. That’s the power of your mind.

So make up good believes inside you, and you will find yourself have more determination to do the things that you wanted to achieve in life.

  • Always dream big; it never hurt.

Dream bigger when it comes to your belief. If you want to be a millionaire, you must dream big — maybe a billionaire? That way, you will always move forward towards your desire and dreams. After all, dreams are what you want to make your mind believe, so why not dream bigger?

In the movie, Eames said:

You mustn’t be afraid to dream a little bigger, darling.

And he takes out a grenade launcher that solve the sniper issue. Wicked. big grin

  • You still need to keep track of your realities.

Lost in dreams will not bring anything except – dreams. What you dream still needs to be fulfilled by action. That’s what it mean “to keep track of your realities”. Some people dreams that they want to build his or her own business empire, but it stays a dream without any action. Some people dreams to be a highly-skilled programmers, but too lazy to work on programming (or stuck in a job that doesn’t do programming, and not willing to change job) — that dream will stay a dream.

Oh damn, did I just reveal my own weakness? tongue

In the movie, Cobb, Arthur, and Ariadne have their own totems to keep track of their reality — whether they are still dreaming or not. Cobb got stuck in limbo because he don’t want to believe that his wife is gone. Until the end, his wife keep haunting him till the end. Which brings me to the next thing..

  • Some things are meant to be let go.

Cobb do not want to let go of his wife; and he prisoned his memory of his wife inside his mind, and it haunts him. In the end, Cobb said to Mal –

Look at you. You’re just a shade, a shade of my real wife. How could I capture all your beauty, your complexity, your perfection, your imperfection, in a dream? Yes, you’re the best that I can do. But, I’m sorry, you’re just not good enough.

It’s a useful principal in life. Sometimes we make mistakes, sometimes we lost something so priceless. And we wept, we cried, we let it haunt us. I myself have lost many things that is priceless, and yes, sometimes I do let it haunt me. My current relationship nearly broke apart when I can’t accept that my aunt has passed away. sad (Honey, I do apologize for that. kiss)

But to move forward, we need to let it go. No matter how hard it is. Because..

  • Always believe that you can do it.

In the movie, Saito said in two different occasions:

Do you dare to take a leap of faith? Or become an old man, filled with regret, waiting to die alone?

That is what can happened if you don’t believe that you can do it. Sometimes, a leap of faith is what we need to do to get going. If not, we will stuck in the little comfort zone that we have and.. filled with regret, to say the least. Never contemplate to be in your comfort zone.

  • Learn, and get a mentor or a guide to help you.

Have you ever questioned what’s the function of Ariadne in the movie? And do you know the significant of the character?

Ariadne is actually a Greek story and the significant of the character is “assistance”. Here’s the story: Ariadne was the daughter of King Minos of Crete that helped Theseus to survive in the Minotaur’s labyrinth. King Minos has a Minotaur as a pet, and due to his grievance when his son was killed by Athenians, he conquered Athens and instructed that seven young men and seven maidens be sacrificed to the Minotaur every nine years. Theseus is Athenian who is willing to kill the Minotaur and end the Athenians misery – and Ariadne fell in love with him.

To help Theseus to survive in the labyrinth, Ariadne gave a ball of red fleece thread. Theseus tied the red thread at the labyrinth’s gate and go deeper inside to kill the Minotaur. After killing the Minotaur, Theseus found his way back by following the thread. That’s the significance of Ariadne.

In the movie, Ariadne is supposed to guide Cobb to the reality world after getting over of Mal. So, in real life – we always need a guide or a mentor to assist us to achieve the goals that we wanted in life. Dream big, believe that we can do it, and then get a mentor to help us in the reality check. That’s the way to do it.

P/s: Feel free to add more life lessons that you noticed in the movie by leaving your comments. winking

Plot as I understand Inception:

I think we are presented with Mal’s dream. Mal’s the dreamer and Cobb is the subject. Cobb is still in limbo and still dreaming until the end of the movie. The child that Cobb think is his real child is only his projection, which means that Mal has been unsuccessful to get Cobb into the reality. That can be quite a prelude later on (Inception: Mal’s Revenge? laughing).

At the start of the movie, we’re being presented with Cobb arriving at Saito’s limbo. And then, it goes to the dream where Cobb tries to take the confidential information from Saito. The reason I think we are in Mal’s dream is — why suddenly Mal can be there, and choose to side with Saito? (by telling Saito that Cobb is stealing?)

Then we are presented with all kind of Mal’s madness. The biggest clue for me is the totem itself. It was Mal’s, so Mal can control the totem if it is on her dream. She can make it spin, or she can make it stop. Cobb can’t differentiate.

Oh well, at least that’s what I speculated until now tongue

P/s: What is the most resilient parasite? An idea.