I was moving around 200+GB data from one WD external drive to another. Although the drives were connected to USB3 port the process was taking time. And I felt asleep and shutdown the system. Next day I connect hard drive and I see Error mounting: mount exited with exit code 13: $MFTMirr does not match […]
Category Archives: Ubuntu
How to remove blank lines from text files or php files or js files or…
By running this command… egrep –include=*.php -lRZ “^$” ./ | xargs -0 -l sed -i -e ‘/^$/d’ Just two parts to it, search for all *.php files and use sed to replace new lines with nothing. That’s all.
PyGTK Hello World or: How I learned to write my first GUI application on Ubuntu?
There are so many things I like about Ubuntu and I can write in extent about all those. My focus is in this post is Python. Python is easy to learn. So easy that one can write GUI apps in just 2 minutes. The title for the post has also indicated this(and is somewhat similar […]
Python httplib example
This is a very simple example of httplib in Python. I am trying to write a very simple client which can simply ping a URL. import httplib while True: myURL = raw_input(‘\nURL Please: \n> ‘) if myURL == ”: print ‘\URL Please: \n’ break httpconnection = httplib.HTTPConnection(myURL) httpconnection.request(‘GET’, ‘/’) res = httpconnection.getresponse() #I am only […]
Ubuntu 9.10 – Karmic Koala
This is bit dramatic. Day one, a conversation between me and Dr. Abhishek on phone Dr.: So whats this with new release of Ubuntu, the Koala…have you heard about it, any idea…? Me: Yeah, I dont think it will be much different in terms of kernel or any thing related to core, though I do […]