Quick and Dirty Network File sharing with Python

Ever find yourself in need to share file over the network quickly, but find yourself lacking time to setup a proper NFS or samba share? Here’s a way to do this with the good old Python CLI.

  • First, go to the directory that you want to share, for example ~/Desktop
  • Then run this command "python -m SimpleHTTPServer"
  • You may access the folder from a remote computer using any webrowser using the url – http://192.168.1.20:8000, change the ip address accordingly
Simple HTTP Server
file sharing with python

You may find this technique offers limited options to share files, but its a real time saver!

Mitter: My favorite Ubuntu Linux Twitter client

Since I’ve been into twitter recently, I’m was looking for a twitter client that is suitable for my operating system. Thank god that search ended when I found mitter.

Among mitter features are :

  • clean interface: simple and easy to use
  • supports docking on systray
  • nicely integrated with GNOME desktop
  • has console client

Bonus for Ubuntu users : mitter is also available from GetDeb.net one-click-install portal

What are you waiting for? catch me on twitter (id: mypapit)

Ubuntu Hardy Python XML error bugfix – xml.dom.ext

This was brought to my attention when I’m working on a python code to parse xml documents. I found out that in Ubuntu Hardy, the python-xml package has moved xml.dom.ext.* package to /usr/lib/python2.5/site-packages/oldxml thus breaking python code which depended on python-xml.

One way to work around this bug is to append :

sys.path.append('/usr/lib/python%s/site-packages/oldxml' % sys.version[:3])

just before you import stuff from xml.dom.ext.*. Hope that would help you.

HP Officejet 5680 – How to Send Fax from Ubuntu Linux Computer

This serves as a continuity from my previous post, I got myself a new and flexible Printer – HP Officejet 5680 All in One.

HP Officejet All-in-One Under Ubuntu
Its all seems rather easy at the way I left off, the printer is fully functioning by just plugging it to my Ubuntu pc, the scanner works well without I having to do anything special, the phone is fully functioning (yeah it is included with the printer) and I am able to send and receive fax without a hitch, something that I cant do without installing 350MB of companion application (half of it was crapware) under WIndows Vista.

Everything worked, what left to do?
What left to do is figuring out how can I send fax directly from Ubuntu (or other Linux base operating system) using only digital files (*.txt, *.pdf, *.ps, *.jpeg), so I don’t have to print those files and fax them one by one anymore.

HP Linux Imaging and Printing project
Through googling, I found that Hewlett Packard (HP) has published open source software tool to deal with their printers. Free and Open Source drivers and printer-specific application directly from manufacturer, which is very cool!

Fortunately Ubuntu already installed HPLIP tools by default with CUPS in my machine. The next step that I should take is to run ‘hp-setup’ as root to configure my printer port and run the ‘hp-sendfax’ application to send the faxes.

Both of these tool requires python-qt3 package which is available from Ubuntu software repository.

Now I can fax my pdf documents directly without having to print them first, a huge saving over ink and paper cost.

hpfax11.png

hp2.png

Conclusion
If you are planning to get a new printer, then I would suggest you get a HP printer. Not only because HP printers are reliable, but they also comes with Free and Open Source drivers and applications for the Linux based operating system. Well that’s a good reason to get HP printers.

Please visit HPLIP project website for more information about HP printers support under Linux based operating system.

[tags]hp,hewlett packard,printer,linux,opensource,ubuntu,foss,drivers,hardware,scanner,officejet[/tags]

Gyach Enhanced Yahoo Messenger with Webcam and Voice support for Linux

Ditch gaim if you happen to use Linux and Yahoo messenger on your desktop. Gyach Enhanced is an open source Yahoo Messenger client that support most of the official Yahoo Messenger features out from the box including Webcam support and Voice Chat.

Unlike any other 3rd Party Yahoo Messenger Client, Gyach Enhanced only supports Yahoo Messenger protocol and available for GNU/Linux operating system only.

Among features supported by Gyach Enhanced :

  • Webcam (Receive and Broadcast)
  • Voice Chat
  • Address Book
  • Yahoo Chat
  • Yahoo Mail Alert
  • Yahoo News Alert
  • Mobile Messenger Buddy Group
  • ‘Invisible’ support
  • Spam Protection
  • Themable Smileys


Continue reading “Gyach Enhanced Yahoo Messenger with Webcam and Voice support for Linux”