Saturday, October 24, 2009
A little superficial Linux research if you ask me...
Wednesday, October 14, 2009
The fastest program for acquiring system information
time uptime 02:42:28 up 42 min, 3 users, load average: 0.00, 0.00, 0.00 real 0m0.009s user 0m0.003s sys 0m0.007slinux rules
time linuxrules.awk CPU_0=800 CPU_1=800 MEMF=3437 SWAP=0 UPTIME=00:00:45 IDLE=01:28 LOAD="0.00 0.00 0.00" PROCS=3/186 USERS=3 LID=open TIME=02:45:54 DATE=2009-10-14 GPU_TH=54 real 0m0.012s user 0m0.003s sys 0m0.000sNumbers speak for themselves, uptime gets overtaken. Linux rules proves to be an excellent choice for resources savvy people. I think that many sysadmins, general geeky users and WMII alike people could benefit a lot from this little utility. NOTE: The present test was run with mawk (not gawk, for obvious reasons) uptime results were the best from a series of tries. No effort was made to favour linuxrules.awk, all the contrary.
Friday, September 25, 2009
Saving CPU clock for those tasks which worth the power on [Part 1]
Paving the way for an old thought
Personal note: Aggregated --> to the feeds
Yeah, it works my way ..or not
Core 2 Duo 1.6G (No more info) Total nodes: 36247629 Raw nodes per second: 1169278 Total elapsed time: 31Anyway, the lesson learned from that simple "benchmark" test was that my processor was running quite well comparing some results I achieved from a virtual console:
Turion 64 ML-34 Console Total nodes: 36247629 Raw nodes per second: 1249918 Total elapsed time: 29Then a pleasing ratpoison visual environment with nine Firefox tabs opened, three terminals and another two applications which I cannot recall at this very moment gave good results too:
Turion 64 ML-34 Visual Environment Total nodes: 36247629 Raw nodes per second: 1208254 Total elapsed time: 30
My final thoughts
Wednesday, July 29, 2009
Found it!!
python -c "import sys; print (sys.version[:3])"
I humbly think this is pure madness!
Is there a better way to do this shit!?
Your comments are very appreciated!!
And sorry for the fucking language. As you may have noticed, English is not my native tongue and this is not a god day.
Final comments...
No more coffee for today. Rum and expanding my iptables knowledge sounds just fine [WINK!]
Python bites! Sometimes..?
python --version
.
As I am no expert in Python and surely I will never be, just tried to check out what is the better way to get the actual language version without the kludges of our beloved AWK! for just a single piece of information like this: 'Python 2.6'1.
That said, I went with the major here:
Python 2.6 (r26:66714, Feb 3 2009, 20:49:49) [GCC 4.3.2 [gcc-4_3-branch revision 141291]] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> help help> modules Please wait a moment while I gather a list of all available modules... Segmentation fault
Fascinating!!
So, after that shame, I don't really know who is the people to blame about this...
The SUSE people or the Pythonic ones?
For an indented style yet powerful program (even a shell script) I will always pick Haskell!!
Hi there Richard Stallman... It's me!!
I am finishing a personal script which I will publish here later. Its main function is updating some hg (mercurial) and svn (subversion) repositories weekly, checking out if there are any changes to commit them to the openSUSE build service for compiling and updating my personal RPM repository.
It is rater simple as for the code implied. Though, I was not aware of any utility like that in the openSUSE realm.
So, it is already written.
But that is not my main preoccupation. You see:
Writing it made me wonder about whether it is possible creating a GPL++ license so that we, GPL ass licking advocates can avoid updating our code every time by just putting GPL++ in it so that Richard and those helpful lawyers at the fsf.org can decide what's next in "Free"sofware without user intervention.
I know, I know there is already a GPL version X or superior stanza just like You require a super server or superior machine in order to run Vista. But creating the GPL++ convention will worth language economy and yet less machine resources.
Self updating RPMS and what not!!
If you don't got it yet. Fuck you (..with a smile) ;)
That is not for you RMS. I love you.