Dneska jsme procvičovali psaní P, zase jsme se trápili s horní kličkou. V matematice jsme psali číslici 5. V PS z M jsme opět něco vynechali, nedopisujte to, prosím. Je to připravené na zítřejší suplování. Suplovat tady bude paní Lencová. Děti to ví, mají podrobné instrukce. Po dětech posílám papír, který si přinesete vyplněný na blížící se trojúhelníky, o kterých jsem mluvila na minulé třídní schůzce. Společná třídní schůzka bude 20.11. A trojúhelníky týden před. Ještě se později více o tom rozepíšu.
AMD Ryzen 9 5900x Temperature with lm-sensors
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.
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 reading