Python

My coding and hacking experiences with Python (and other related stuff)

GNU/Linux, Python, Ubuntu/Debian

Install Tensorflow with RTX 50 series GPU acceleration with Python wheel for Ubuntu 24.04 (and Windows WSL2)

It seems that the Tensorflow acceleration is broken with the latest RTX50 series GPU, especially with the most cost effective RTX5060Ti 16GB card. This is a guide to install Tensorflow with RTX50 (Blackwell) card GPU acceleration with the python wheel. First you need to download this python wheel. It is compiled for Ubuntu 24.04 or […]

Open Source, PHP, Python

How to convert Microsoft Office *.docx files to PDF using Linux in command-line

Here’s how to convert Microsoft Office *.docx files to PDF using Linux in Command Line. This trick can also be used together with other documents files supported by LibreOffice First make sure you’ve installed the latest version of LibreOffice for use in command line environment. Assuming the user is ‘example’ and the filename to convert […]

Computers, GNU/Linux, Open Source, Python, Ubuntu/Debian

Nano command for search and replace

I spend most of my time with headless Ubuntu server or Raspbian (a Debian derivatives distro for Raspberry Pi). So naturally I use ‘nano’ to edit various configurations files and Python Scripts. Here are several ‘nano’ shortcuts for your references Searching CTRL-W : search text string ALT-W : repeat search ALT-B : Backward search Search and Replace CTRL-\  […]

httpd, nginx, Python, Tips & Guides, Web Server

Python code: List most popular URL from Apache/NGINX ‘access.log’ file

Found a great Python code snippet for listing the most popular URL from Apache / NGINX ‘access.log’ file. Very practical! import collections logfile = open(“access.log”, “r”) clean_log=[] for line in logfile: try: # copy the URLS to an empty list. # We get the part between GET and HTTP clean_log.append(line[line.index(“GET”)+4:line.index(“HTTP”)]) except: pass counter = collections.Counter(clean_log) […]

Computers, GNU/Linux, Python, Ubuntu/Debian

Working hard publishing papers and learning PyGTK

For the last few weeks I’ve been working hard to finish up my research project, most of it concerning about on mobile phone application usability and context-aware applications. This leaves me with less  time to devote for this blog and I started to realise that I might have a ‘burn-out’ issue at the same time. […]

Computers, Internet Stuff, Open Source, Python, Server, Tips & Guides

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 […]

Internet Stuff, Open Source, Python, Ubuntu/Debian

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 […]

Python, Ubuntu/Debian

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]) […]

General, Internet Stuff, Java J2me, Mobile, Nokia Python, Other Operating System, Paid-Post, PHP, Python

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 […]

GNU/Linux, Open Source, Python

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 […]

Nokia Python, Python

Python for S60 at PyCon 2006

Seems that Python for S60 received another attention at PyCon 2006, when Matt Croydon gives a talk on Python in Your Pocket: Python for S60 at the convention. Several examples of Pys60 codes are also included in the slides. You can download the ReST Source of the slide here. [source] pys60, python, pycon, s60, symbian, […]

Scroll to Top