Friday, June 15, 2012

[jQuery] Know If An Element Exist

Basic syntax:
$('element').length == 0

if($('div#mydiv').length == 0)
        <div id="mydiv">hello world!</div>
    $('div#mydiv').html('hello universe!');

Saturday, June 9, 2012

[Ubuntu] Virtualbox Fullscreen on Ubuntu 10.10 Won't Work

I use Virtualbox to have the Ubuntu 10.10 (64-bit) version in my unit but the Fullscreen function doesn't work properly. If I go to View > Switch to Fullscreen, then the virtualbox window will have a fullscreen but not the ubuntu itself.

So I've research on how to do it and here's what works for me:

sudo apt-get update
sudo apt-get install build-essential linux-headers-$(uname -r)
sudo apt-get install virtualbox-ose-guest-x11 

Apparently, we need to solve first the Guess Additions Issue on Ubuntu 10.10 for the Fullscreen to take effect.

Enjoy! =D

Thursday, June 7, 2012

[Ubuntu] Resize Wubi Disk

If you're wondering what is wubi then let me explain it a bit. Wubi let's you install ubuntu OS via Windows. Although installing ubuntu in a traditional boot-to-CD way still it's more complicated to other non-techie people.

Installing ubuntu using wubi limits your ubuntu drive into 30GB storage disk, not so bad if you're not really using as your primary OS. I, as a web developer and using ubuntu as my primary OS due to my current work, needed to have a larger storage disk but I don't want to backup my file and install ubuntu over again (traditional way). It's a hassle to backup files specially if I need the larger storage right away. So I've done some research and read a lot of articles if it is possible to just resize and extend the storage disk which was installed via wubi. And, yes, I found the solution that works for me.

First, download the Save it on Downloads folder.
Related Posts Plugin for WordPress, Blogger...