>>Single Point of Failure >>

§ Home § CV § Blog Photography Divagações §

Calendar

June 2010
M T W T F S S
« May   Aug »
 123456
78910111213
14151617181920
21222324252627
282930  


Popular Tags


Recent Entries



Categories


Archives

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...



Entries | Comments