Wednesday, July 29, 2009

Found it!!

Who the heck could have figured out that Python needed a system module in order to show its own version?
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..?

As I am a Perl, Lua and shell utilities typical fan-boy; that is to say, a weird but committed KISS advocate; I will make this post as minimal as possible. Today, I was trying to package a little something for openSUSE. There were missing dependencies as usual so I went for it! Firstly libgmail, but then, mechanize. Crossed fingers at this time hoping for the build server to quit complaining about missing dependencies in an endless, tedious, time killing spiral... Finally, all went fine, but then I tried to adjust little details here and there in the spec file. e.g. 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!!

Personal Notes...

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.