Got an answer on my Python Minidom question

Lately I am have been into python development and the interaction from Python and XML. Python has some modules to interact with modules such as SAX, MiniDom, and other packages for the XML. The email was shoot on the PyXML-SIG list which is a mailing list devoted to give support to python and xml users.The first reaction was the lxml or ElementTree proposal which seems appealing but is yet another XML manipulation framework. However since I want to learn one framework and then move on to the next. Also since I want to do a manipulation with the python in the OOo installation. I want to make sure that this code can be run for most people.So finally after some emails I got a real reply to my question about using minidom to change the attribute of some of the nodes. The first step was calling on the namespace and the next will be to use the getElementsByTagNameNS(). This function already have the node name and the attributes as methods like:OONS= ‘’doc= minidom.parse(PATH)item= doc.getElementsByTagNameNS(OONS, ‘toolbaritem’)[0]item.setAttributeNS(OONS, ‘toolbar:visible’, ‘true’)fp= open(PATH, ‘wb’)doc.writexml(fp)fp.close()The next function is setAttributeNS to have the writexml() to overwrite the changes. The only issues I am having is figuring out the 0 option from the getElementByTagNameNS(). I can’t really figure out if this is a count within the node or within the tree. I’ll be testing this snippet and come up with a script to modify the XML to simplify the toolbars.


Bridging Linux and Windows

Having a Linux desktop on a Windows company carry many hassles, standardization on proprietary — Microsoft software will affect you in ways you can’t possibly imagine. The whole M$ crap was too much to work around through web interfaces so I have eventually to go to virtualization. The virtualization should have take care of everything, if you can’t run a crappy OS like windows at least use it like an app through emulation right? Well not so yet.So we had this thing called Microsoft Communicator, which is like a offspring of MSN Live Messenger. The MSC is utter crap, basically it’s annoying and on top of that is very picky on the communications bits. The interconnectivity with the servers is very weak and dumb and it requires a real IP so the exchange can go back and forth.Having this combined with the pressure from management I decided to take drastic steps and nuke the hard drive. Before nuking it I did a backup which wasn’t very attended since the backup was done to a Fat32 drive which tops at 4GB. This made my backup useless in the end.In the end after a bunch of data lost and stuff I got to get MSC going on a native windows install. I also found out that the server had my wrong email ID which made my torture last even longer. After a week and half of failures and a nuke hard drive, communicator worked. However the challenge was to get back to linux and that’s where the process started.After having a virtual OS set up with outlook, BMC, and Secure client working perfectly, I have to come to the conclusion that all these applications are smart enough to survive NAT networking however MSC will require some credential exchange which lead me to believe that having a real IP would be the best choice to. However on the VirtualBox page there was little documentation on bridging. There was the user manual but even that document wasn’t very thorough and sequential.Reading on the VirtualBox forum I found a VirtualBox guide for Ubuntu which help me out to have the connectivity setup and in the end MSC got connected.The process was not hard but it was long, first problem that I had in the past was finding the right package for the right tools. The tutorial talk about a brctl and tunctl, however these were on two different packages: bridge-tools and tunctl.The other problem that I have was handling all the instructions in the correct fashion. First I have something like scattered commands between one and the other. The next thing is the code for:brctl addbr br0ifconfig eth0 promiscbrctl addif br0 eth0dhclient br0tunctl -t tap1 -u my_userbrctl addif br0 tap1ifconfig tap1 up

on my way back

So right now I am just making the final arrangements to go back to Guadalajara, and get to go to work tomorrow. I am carrying my nokia800 so I have a good flight, I hope everything turns out nice. I hope to check back later tonight with maybe a meaningful post or two about my overall trip home.I was feeling a bit bad yesterday but today I am much well. Hope everything turns out to be ok.

Mr Fantastic runs Linux

So I was watching some clips from the fantastic 4 part 2 when I saw Mr Fantastic playing with what it seem like a controller. This device looked real familiar and indeed it was. He was holding a Nokia 770 which is an internet tablet PC that runs the maemo Linux OS.Interesting clip, here is a screenshot:


OOo 3.0 it’s comming

A snippet from GULLFOSS take us to through the roadmap expected for 3.0 which is coming faster than many expected.


This are great news and at the same time it spurs some debate on what should OOo become. Since the launch of MSO 2007 and the big transformation it had on the UI, we have to wonder if OOo will follow suite. If there will finally be an email client with it and if we are going to see either an explosion of complexity on the source code or a true lean mean Office machine.

Best gift for my Bday

hey!happy birthday!i’m having a really short break now, and i really did a big sacrifice to be able to catch some weird bus to get to the freaking library which is so far. and it’s so hot, so i can get to the internet cuz it’s ur birthday……..just wish u a happy birthday, i send u muchos bessos. mi monito fheo.take care of u pls.i luv u a lot. i really need u so much sometimes….luvkiss

This was by far the best gift I received today, totally unexpected. I was so happy when that email came and a bit frustrated because I didn’t catch it right away. But never the less I can tell you that this girl is still mine. It’s been almost 2 months since I last heard of her, and having her sent me that email clear a bunch of my pain that I was getting from thinking that I was loosing her. Yet she got me a big surprise when I got her email.totally awesome… I am the happiest guy!

Happy Bday to me

So today is my bday, again the mixed feelings of hapiness and realization that I am an old man. I am about to hit 30, (just turn 29) and well I still live with my parents…. haha actually I dont. Yet right now I came back home to visit my sister graduation and found out that my bday hit that same week so I stayed a bit longer.Then again I am almost 30, I don’t have really any thoughts, is just another year, I am getting older, I have felt stuff that makes me think that I older yet I still want to go and play basketball like I was still in high school, no difference.I been doing some swimming while I am here and at least in the water I am still the same. I also feel like I was 21 or somethig, nothing really changed.Is a weird feeling, on the flip side I guess I achieved a lot this year, I stayed the whole year in mexico but at least I wasn’t alone. My girlfriend came here to visit me, we had a great time traveling, I got a good job and my adventure in guadalajara and I got to travel to the US once again.I also gave many talks around the country and well I guess I have had fun which is the most important thing.