• About Me!!!
  • Its Me!!!

Mani's Weblog

~ Naangalum Sindhippomla!!!

Mani's Weblog

Monthly Archives: October 2014

Formatting XML in GEdit

21 Tuesday Oct 2014

Posted by Mani in Linux, Technical

≈ 1 Comment

Tags

external tools, format, gedit, Linux, python, xml, xml formatting

Have you ever got an XML that is in a messed up format and had a hard time in trying to figure out what is there? And felt that, what if there is a tool that you can use to format it…

If you are using GEdit as your editor, here is a solution for you:

  • Install python-lxml (Or look for lxml)
  • Create a new external tool configuration (Tools -> Manage External Tools…) and add a new command. Like : (Format XML)
  • This is the script you need to execute:

 #! /usr/bin/env python
 
import sys
import lxml.etree as etree
import traceback
 
result = ”
for line in sys.stdin:
  result += line
try:
  x = etree.fromstring(result)
  result = etree.tostring(x, pretty_print=True)
except:
  etype, evalue, etraceback = sys.exc_info()
  traceback.print_exception(etype, evalue, etraceback, file=sys.stderr)
print result

  • Set Input to Current document
  • Set Output to Replace current document

Once done, you will have a menu option under Tools -> External Tools -> Format XML. Once you click on it, you can enjoy understanding XML easily 🙂 Obviously, being a software engineer, I reused the above given code from somewhere else 😀

Unlocking levels in Candy Crush

19 Sunday Oct 2014

Posted by Mani in Android, Candycrush, Games

≈ Leave a comment

Tags

android, candy, candy crush, candycrush, crush, iphone, unlock

How many of us are playing candy crush regularly? And, loose all the lives and have to wait for long time to regain all the lives?

Once we reach a certain level, to proceed to the next level, it asks us to play 3 quests and we can plan only one per day.. And as we are addicted, how can we wait for so long… huh??

Solution: This worked for me (Read from somewhere though)

1) In your mobile, close the candy crush app. (Not exit. Terminate the application)

2) Change the date/time on your mobile (Add 2:30 hrs to the current time if you ran out of lives and 1 day if you want to play the next quest. to unlock the next level.)

3) Start candy crush. Open the game. But, don’t start playing yet.

4) Exit candy crush. (As mentioned in step 1)

5) Revert your change to date/time on your mobile

6) Start enjoying candy crush.

If you didn’t exit candy crush app or change the time properly , you will be in a big trouble either to play candy crush or with the date/time on your mobile.. So follow the steps as mentioned.

Beware!! Candy crush is not a game. It is an ADDICTION 🙂

First week in the USA

12 Sunday Oct 2014

Posted by Mani in Personal, Social

≈ Leave a comment

Tags

culture differences, India, tv programs, USA

First week went fast… 🙂

The best thing was, (Believe Me!!), I didn’t have jet lag 🙂  I didn’t know how.  I started at night from my place.. On the first flight, slept well. Once I reached the place where I have the connecting flight, I roamed inside the airport for a while. Then came the flight to US. I didn’t sleep during that travel. Tried watching movies.. May be that was the reason for not having jet lag.. Reached USA that evening. One of my friend had prepared some good food for me.. Had it and slept. The next day, I was up and running 🙂

My observations so far.. People seem to be polite. They greet whenever they meet others. That is good. The roads are clean. People follow traffic rules strictly. I have heard honking in cars only when the car gets locked. Not on the roads. Being an Indian, Im missing honking 😀 One thing for sure is, Any Indian can drive in the USA.. But, I dont think any American can manage to drive in India 😀 Common India, lets do something about it 🙂

One more observations about the TV commercials: In the USA, I can find that the TV contains commercials for medicines, alcohols.. But, that is not that much in India. I like India in that perspective.

Another observation about the programs in TV: Around night, the programs seems to become a bit violent. Lots of horror stuff, killing stuff.. But that is not the case in India. Again, I like this in India.

Being Indian, Im used to do the conversions when I buy things. Hope I stop doing that soon 🙂 (Yes.. Some things seems to be more expensive).

I’ll be staying here for a while.. So, I’ll try to write more 🙂

Hello USA!!!

04 Saturday Oct 2014

Posted by Mani in Personal

≈ Leave a comment

Hello USA!!!

Subscribe

  • Entries (RSS)
  • Comments (RSS)

Archives

  • January 2017
  • November 2016
  • November 2015
  • October 2015
  • June 2015
  • May 2015
  • March 2015
  • January 2015
  • December 2014
  • November 2014
  • October 2014
  • September 2014
  • August 2014
  • July 2014
  • May 2014
  • January 2014
  • November 2013
  • October 2013
  • September 2013
  • August 2013
  • May 2013
  • December 2012
  • March 2012
  • January 2012
  • May 2011
  • April 2011
  • October 2010
  • August 2010
  • July 2010
  • June 2010
  • April 2010
  • February 2010
  • January 2010
  • December 2009
  • August 2009
  • June 2009
  • May 2009
  • March 2009
  • December 2008
  • September 2008
  • July 2008
  • June 2008
  • January 2008
  • November 2007
  • October 2007
  • September 2007
  • July 2007
  • May 2007
  • February 2007
  • December 2006
  • November 2006
  • October 2006
  • July 2006
  • June 2006
  • May 2006
  • March 2006
  • February 2006
  • January 2006
  • November 2005
  • October 2005
  • September 2005

Categories

  • Computers
  • Games
    • Candycrush
  • Personal
  • Review
    • Book
    • Movie
    • Software
  • Science
  • Social
    • Culture
  • Sports
    • Cricket
    • Tennis
  • Tamil
  • Technical
    • Android
    • Linux
  • Technology
  • Uncategorized

Meta

  • Register
  • Log in

Create a free website or blog at WordPress.com.

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy