Skip to main content


Showing posts from September, 2012

XML parsing and Python: the lxml way

Today I was tinkering with an idea involving parsing a Html file by taking an XML structure and building a simple xquery engine in python. I know...most of my "World changing ideas" finally end up on my unfinished/fragile Github Project category. But knowing how it's gonna help me in long drive I tried to give it a shot anyway. And this is when I discovered  lxml  and immediately fell in love with it. But rather going to the intricacies I'm gonna share how simple it was for me to pars an xml file with it. First, we'll make sure we have everything in place. Things we need lxml Yeah...that's kinda only thing you'll need :) (and of course Python!!!). If you are sing Ubuntu or Xubuntu (like me) then just goto synaptics package manager and install it. Or get it from the website if you are gonna tinker in windows. Now, let's assume that we want to parse a xml file named 'file.xml' with the following content:

The Ammazing iOS6 Maps

omg: somebody painted the landscape in white. Three types of image quality in southern switzerland. The Helsinki Central Railway Station has magically turned into a park Helsinki’s biggest open-air marketplace (Kauppatori) has also been magically been turned into a park (along with a bunch of other marketplaces)   Walking across there seems like fun… Apple thinks that much of the east side of Portland, Oregon is a nature park New Orleans famously misplaced Crescent City Connection bridge, otherwise known as the Greater New Orleans Bridge to no one New Orleans famous Huey Long Bridge now available at Home Depot Apple seems to have left out half of one of Southeastern Europe’s biggest tourist destinations Apparently Belgrade, Serbia has no rivers

The new iOS6 Maps....And how they fare to Google Maps

We just had the grand release of iOS6 and with it the new Apple Map (yes...the one apple cooked up after abondoning Google Maps). But it seems they were in a little hurry with it. Just see the images below and please do come back with what you think ;) The Williamsburg Bridge in New York like you've never seen it, thanks to Apple's new map app.  New York's Manhattan Bridge in Apple Maps on iOS 6. The road to the Hoover Dam on the Black Canyon of the Colorado River, between Nevada and Arizona seems to take a sudden drop. In Punta Arenas, Chile, not only are highways duplicated, but they are even build out over the water. A side by side of the Cayman Islands, showing the difference in detail between Google Maps and Apple Maps in iOS 6. There are many more of these examples sprawled acroos the net So What's your take on this?