As usual, setting up in Virtual Box is fairly simple. I've installed Ubuntu on it and enabled the Virtual Box's shared folder feature. To mount the shared folder on the system, I need to run the command below:
mount -t vboxsf <Shared_Folder_Name> <Local_Directory_Name>
However, the problem is I have to type it everytime I reboot the system. So I went out to search for the file that I can place my commands. The funny thing is I don't know the exact term and I even tried the "Ubuntu equivalent of Windows' autoexec.bat".
Finally, I found it. It's /etc/init.d/rc.local
Have fun.
written by mangoorange
Two days ago, I was thinking of trying out both Ubuntu 7.04 and Microsoft Vista Ultimate, so I went to download the ISO from ubuntu.com and MSDN. Naturally after that, I go on to burn the ISO into CD and DVD.
While I was burning my ISO files into CD/DVD, CDBurnerXP Pro kept prompting me that my disc aren't blank. When I try burning my data files from hard disk, it works. So I thought, "Why not I try to mount the ISO and burn the files from the Virtual Disk?". So I went ahead with that idea.
Sadly, I can't boot any of them. After a long period of trial-and-error, I decided to install Nero and burn the ISO directly. It works! Most importantly, not only successfully burn the ISO but it can boot from the CD/DVDs.
So the moral of the story, don't burn your bootable programs from Virtual Disk. It won't work.
written by mangoorange
I can't believed it that I've been using extract($_GET) and extract($_POST) where I could just type in extract($_REQUEST). Feel so silly now. Nevertheless, it was cool to learn that it exist. Never to late to learn.
More information can be found here (that's where I found what it means):
http://www.w3schools.com/php/php_get.asp
written by mangoorange
Recently, I've been using Jquery framework to do all my Javascript chores. Needless to say, I love it. Documentation rocks, easy to implement and lovely syntax. The reason I write this post is not to praise Jquery but to see whether anyone experience some kind of weirdness in their effect functions.
So weirdness came, when I fetch my information using AJAX and construct the information in HTML. Subsequently, I insert the HTML using append() and after that I slideDown() it. It works perfectly fine - no lagged.
However, when I shift the slideDown() outside of the AJAX, $.getJSON(), it gives some sort of lagged. Weird huh?
Snippet of the code below...
Continue reading »
written by mangoorange