Category Archives: tools

Firmware update SN30pro on Linux

This has been a small nightmare 🙂

So, I own an SN30pro gamepad mostly used to play Nintendo Switch. It works wonders, EXCEPT when running in multiplayer mode alongside other controllers, where I get a totally noticeable input lag

how to fix it

Advertisement

Leave a comment

Filed under curious, tools

Hugo static website on S3

You are in for a treat, static websites are back from the dead (they never left, but were not prominent nor sexy). Combine this with the cheapness of file hostings like S3 and you have a winner here.

more

Leave a comment

Filed under code, tips, tools

Color2attribute in QGIS Plugin servers

Something like 7 years ago I created a very small plugin for Qgis (V1.x and V2.x later on).

This plugin was available via my github on a clone and copy fashion.

Yesterday I stopped being lazy and fixed that, The plugin is now available directly from the QGis plugin servers. And can be installed from Qgis itself.

Although I’m late as always since It does not work on 3.x versions.. oh well (look at this changelist!).

QGIS Color to Layer

Related

Original Post
2.X update
Plugin at the Qgis plugin website
Plugin source

Leave a comment

Filed under code, gis, tools

Memcached and Django

Here a quickie, since I’ve been silent for so long.

I find myself with a REST service taking way too long to process one of its queries, it’s not bad per se, but it will get bad when this query gets hit more often.

Memcached to the rescue.

more

Leave a comment

Filed under code, tools

Tenma DC 72-2540 graphical interface

I was planning to write a post of how to write a simple GTK application indicator. But there’s a really good explanation already from
candidtim that you can follow. It is actually very well explained.

What I’ll do instead is just drop here an update to the Tenma DC 72-2540 command line tool that can be found in the tenma-serial github repo. It is the gtkIndicator.py script, that more or less looks like this:

And note that you can create a small .desktop file, so your desktop environment knows about it 😀

vim ~/.local/share/applications/TenmaDcPower.desktop

[Desktop Entry]
Name=Tenma DC power supply
Comment=
Exec=/usr/bin/tenmaSer/gtkIndicator.py
Icon=/usr/bin/tenmaSer/logo.png
Terminal=false
Type=Application
StartupNotify=true

Some Links

1 Comment

Filed under tools

Tenma72-2540 Linux serial control

I daily work with a DC power supply to run different boards and prototypes. One day, plugging in the power supply I realized there was a USB and a COM port!
It is not correct from a tinkerer’s to avoid this option. So this day ended up with a small Python program (also golang, but that’s a different story) to use this feature.

more

6 Comments

Filed under code, tools