>>Single Point of Failure >>

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

Calendar

November 2009
M T W T F S S
« Sep   Dec »
 1
2345678
9101112131415
16171819202122
23242526272829
30  


Popular Tags


Recent Entries



Categories


Archives

Home Cinema Afternoon #2

Ξ November 28th, 2009 | → 0 Comments |
Fun |, , , |



The movie has everything good about the book and adds so much more. The book is too irrational for my taste. I had seen the movie before, but nevertheless it was good to remember this master piece.

 

Everyday Companions

Ξ November 15th, 2009 | → 0 Comments |
Life |, , , |

From the everyday companions below, I must admit that Google and Wikipedia are my essential tools. There is not a single day I don’t visit them.

Google stores my email, calendar, rss feeds, some of my documents, and I’m waiting patiently for my Wave invitation. As for Wikipedia, it is simply the best knowledge database out there. I can’t believe I was an Encarta fan… it was so limited. You can’t imagine how many discussions have been settled over a Wikipedia page.
They are only a couple of year old, but I can’t imagine my life without them.



I also use other services, but all that Web 2.0 concept is not for me. If you need to “connect” with me just use the “good ol’ e-mail”.

 

End, The ‘Fabulous’

Ξ November 14th, 2009 | → 1 Comments |
Life, TV |, , , |


One of the best TV series I have ever seen… Even though the end was fabulous, I must say that it is sad to think that it had to end. It was brilliant, simply brilliant…

 

Nap Time…

Ξ November 11th, 2009 | → 0 Comments |
Life |, , |


Ok, I don’t look as sexy, but it sure feels nice to have some free time to finish the book I was reading and catch-up with the latest episodes of my favorite TV series.
But, right now… I’ll take a nap! Only when on vacations.



 

Procrastination…

Ξ November 10th, 2009 | → 0 Comments |
Uncategorized |, , |

This must be based on myself… Lev Ylmaz doesn’t know me, but he certainly did a great job depicting me, specially when I’m on vacations! By the way, I’m on vacations.


And there’s a lot of other funny videos. These are my other favorites: [1], [2] and [3].

 

CPU load average in /proc

Ξ November 8th, 2009 | → 0 Comments |
Development |, , |

One of my C/C++ applications needed to provide information about CPU usage for debug and monitoring purposes. I never had to do anything like this, but quickly found what something interesting. The getloadavg is a standard library function that provides simplified information on CPU load average.

Because the function seems to point to /proc as source of information, I got to “take a look under the hood” and search for more information about /proc. I already knew that this so called filesystem (which in fact is only virtual) provides an easily accessible interface to kernel information.

Inside, it contains a folder called pid for each process running in the machine and several other folders/files that contain information on available memory, devices (e.g. disks) or kernel version.

If you take the usual look at the man page for proc, I’m sure you’ll find it interesting. it contains much more information than the one I was expecting.

 

Emptying a file

Ξ November 8th, 2009 | → 0 Comments |
Tools |, , , |

To empty an existing file, without having to recreate it, one can simply

> file

There are other ways to do the same, but none of the them are as simple. One can

cat /dev/null > file
echo -n > file

If the goal is only to change the file access timestamp, them you can simply

touch file

 

Forgotten Heroes of Yore

Ξ November 3rd, 2009 | → 0 Comments |
Life |, , , |

Yesterday, I was talking about heroes with some colleagues… how many can you name from the picture below?


Of course, all of the above are excellent heroes, but during my teen years I tended to look at other type of heroism. Who doesn’t remember the people saved by … (after a huge ‘unsupported’ run across the hot Californian sand!).




 

Getting help…

Ξ November 3rd, 2009 | → 0 Comments |
Development |, , , |


There is nothing that provides more help to a Linux SW developer than the manual pages. Here’s how to install them in a Debian based system (i.e. my desktop ubuntu system):

sudo aptitude install manpages manpages-dev manpages-posix-dev

 


On the nightstand...



Entries | Comments