sensors command doesn’t show CPU temperature if you have Linux kernel 5.9.0-4. It is common problem of new hardware. But you can compile Linux kernel 5.10.0-rc6 where is the support for reading temperature in procesor AMD Ryzen 9 5900x.
Author Archives: Petr Pošvic
Redmine 4.1.1 Options Section is Visible on Reload
After upgrade to Redmine 4.1.1 I see the Options section (for example on Issue page) is always visible. There is a small bug and it is easy to fix it:
Patch file app/views/queries/_query_form.html.erb:
--- _query_form.html.erb 2020-12-03 00:00:00.000000000 +0100
+++ _query_form.html.erb 2020-12-03 00:00:00.000000000 +0100
@@ -14,7 +14,7 @@
<% if @query.available_columns.any? %>
<fieldset id="options" class="collapsible collapsed">
<legend onclick="toggleFieldset(this);" class="icon icon-collapsed"><%= l(:label_options) %></legend>
- <div class="hidden">
+ <div class="hidden" style="display: none;">
<% if @query.available_display_types.size > 1 %>
<div>
<span class="field"><label for='display_type'><%= l(:label_display_type) %></label></span>
File Manager and Shell Like Vim
Today I saw good video on DistroTube channel on Youtube https://www.youtube.com/watch?v=a4scYdubKbo. The guy talks about vifm (file manager in vim style). I haven’t tested it in depth but looks good. I will compare it to ranger.
The second thing is vim keybinding in fish shell. I didn’t know fish has this mode since version 2.3.0.
in-memory-storage and D-Bus
I made a little improvement in my in-memory-storage database using D-Bus instead of pipes. I wrote the simple D-Bus client to control the database like with the echo command and systemd user service.
Read more about in-memory-storage in first post.
Miša’s Journey to the Kindergarten
It’s not a secret that I make games. But this game is unique. I desided to do all the graphics myself. Here you can see a preview of what the game looks like just now.
Continue readingInfluxDB client on HTTPS
If you run a influxdb server on HTTPS with self-signed certificate, you can’t connect to it via influx command. You get ERR: Client sent an HTTP request to an HTTPS server.. Run influx command with -ssl -unsafeSsl and it will work.
in-memory key-value lightweight database
For my little project i3-change.py I need lightweight in-memory database. My first idea was to use Redis (I have some experience with it) but it requires some library to control it. I need something more lightweight. I think using linux named pipes is elegant way how communicate with a database. Here is the full source of my lightweight in-memory database: https://github.com/petrposvic/in-memory-storage.
i3 keeping mouse pointer after workspace switching
I use i3 window manager. If you switch to another workspace, mouse pointer will move to the center of the active window. It doesn’t matter for my work but sometimes (mainly on workspace where I have web browser) the centered mouse pointer obstructs the view and I’m forced give it away.
Open last image file in Gimp
I use simple script for screenshots (bind on PrtSrc key). It saves picture of current screens in home directory. Usualy I want open the picture immediately. I created simple script that opens the youngest .jpg file in current directory (named gimp-last).
Continue readingESP3D wiring
ESP3D is firmware for ESP8266 and ESP32 to add wireless control your 3D printer. For me is important print progress and temperatures but you can upload files on SD card and start printing, move motors and send custom commands.
You can get ESP3D here https://github.com/luc-github/ESP3D. I use it with ESP12 and here is my wiring:
Of course ESP part are two pin headers. GPIO0 and GPIO2 are high but for programming I can switch them.
GPIO0 | GPIO2 | GPIO15 | |
UART Download Mode | 0 | 1 | 0 |
Flash Startup | 1 | 1 | 0 |
SD-Card Boot | 0 | 0 | 1 |