RAM Disk: A Very Interesting Idea…

Ξ June 29th, 2010 | → 0 Comments |
Tools |, , , |

Simply run:

$ mkfs -q /dev/ram1 8192   # 8192 = 8MB disk capacity
$ mkdir -p /mnt/ramcache
$ mount /dev/ram1 /mnt/ramcache
$ df -H | grep ramcache

to mount your own mini ramdisk.

For more details, here and here are some references I found on the subject.

You might ask yourself “Why does this guy needs a ramdisk?… What a geek!”, and wouldn’t mind. It was kind of a epiphany, when I remembered to use a ramdisk to run a “‘Lack of space’ Test Case” on the application I’m building right now.
After running the application, I just had to copy a mp3 album to occupy the remaining disk space… et voilá, welcome the expected “error message”. No, not a SIGSEGV, a real error dialog!…

 

Redirecting your intents

Ξ June 27th, 2010 | → 0 Comments |
Tools |, , |

command > filename

redirects the stdout from ‘command’ to a file called ‘filename’. The file shall be created if not present, or otherwise overwritten.

> filename
: > filename

are a special case of redirection, creating a zero-lenght file. The ‘:’ is a dummy placeholder that generates no content - usually used when the first form is not allowed by the shell.

command >> filename

also redirects the stdout to file, but the content is appended to file in the file already exists.

note: pre-pending 1, 2 or & will redirect stdout, stderr or both , according to the redirection ‘operator’ (>, >>).

 

A useful shortcut…

Ξ June 24th, 2010 | → 0 Comments |
Humor |, , |

Shift + Num Lock… whenever your numpad stops working on your ubuntu machine!

 

No more, no less… just perfect!

Ξ June 24th, 2010 | → 0 Comments |
Abstract |, , |

No more, no less… just perfect!
Time to rest.

 

Home, Sick, Alone…

Ξ June 4th, 2010 | → 0 Comments |
Music, Uncategorized |, , |

I might be home alone, taking care of this cold and the running nose, but found this on the internet and had to share.

 

On the nightstand...


    The Art of Agile Development


    Beautiful Architecture


    Modern C++ Design


    Large Scale C++ Software Design

Personal

Friends


Interesting


Shared Readings