Displaying articles with tag

DMIDecode to find used RAM slots

Posted by hank, Thu Sep 27 01:11:00 UTC 2007

So, someone asked if there was a way to find out which memory slots were used in a running machine without opening it using Linux. Here’s the answer:


$ sudo dmidecode | grep "Installed Size"
        Installed Size: 1024 MB (Double-bank Connection)
        Installed Size: Not Installed
        Installed Size: 1024 MB (Double-bank Connection)
        Installed Size: Not Installed
        Installed Size: 64 KB
        Installed Size: 2048 KB

If you just run sudo dmidecode by itself, you can find out all kinds of awesome system info.

Tags:

Precaching Images with Javascript

Posted by hank, Tue Apr 17 02:53:00 UTC 2007

Today, Will told me about some awesome image caching. I used it.

//Do some image caching
cached_image = Array(new Image(), new Image(), new Image(), new Image());
cached_image[0].src="image1.jpg";
cached_image[1].src="image2.jpg";

It’s amazing.

Tags: