renogybt-emulator: A Python Emulator for Renogy BT-1 and BT-2
My latest Python project emulates Renogy BT-1 and BT-2 Bluetooth communication for testing solar-monitoring software without a physical controller.
My latest Python project emulates Renogy BT-1 and BT-2 Bluetooth communication for testing solar-monitoring software without a physical controller.
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 […]
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 […]
You can enable quick file sharing using python3 by activating its built-in internal webserver python3 -m http.server The default webserver will listen to port 8000, you can change to any port above 1024 without root privileges by specifying the port number after the command: python3 -m http.server 9090
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-\ […]
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) […]
Embedding web browser or a screen for parsing HTML is easy in PyGTK. You only need to import the pymozembed, and add a few lines of code in your pygtk library, and you are set to go. Here’s a sample PyGTK application that embeds a web-browser as well as a “Back” button for demonstration purpose […]
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. […]
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 […]
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 […]
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]) […]
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 […]
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 […]
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, […]
The Python for Nokia is really exciting from the moment you download it, to the moment it runs on your phone. I know that experience first hand when I saw my Python applications was up and running on my phone! Previously I only had experience writing mobile applications in Java J2ME, but writing the same […]