MoLoPoLY

joined 1 year ago
[–] MoLoPoLY@discuss.tchncs.de 3 points 3 weeks ago

Cromite, KeepassDX, Moshidon, Phone, K9

[–] MoLoPoLY@discuss.tchncs.de 1 points 1 month ago

Unfortunately, logrotate does not work the way I would like it to. I have now created a bash script, which hopefully does what it is supposed to do:

#!/bin/bash
keepCount=30

files=($(ls *.db))
fileCount=${#files[@]}

for (( i=0; i<$fileCount; i++ )); do
	database="${files[$i]}"
	dbarr=($(ls -t $database.*))

	for index in "${!dbarr[@]}"; do
		p=$((index+1))
		if [ $p -gt $keepCount ]; then
			rm ${dbarr[$index]}
		fi
	done
done

Invoked in the respective directory, all *.db files are read into an array, as there can be different DBs per user. The array is then processed in a loop. First, the backup files for the respective DB are read into the array again, sorted by age. This array is then processed and all files whose index +1 is greater than keepCount are removed. This means that the oldest files are always removed and only those that are defined in the keepCount are kept.

Its a little bit more complicated, but it seems to do the job.

 

If I copy files with backup (cp --backup=numbered), the old file is renamed to something like oldfile.ext.~1~. I get my old files. Can this be limited to a certain number of old files, for example 30? I don't want to have keep more than that...

 

Creating *.desktop files for WIndows/Wine applications, specify sometimes a Icon like this:

[Desktop Entry]
Name=Game to start
Comment=Play this game on Steam
Exec=steam steam://rungameid/738520
Icon=steam_icon_738520
Terminal=false
Type=Application
Categories=Game;

with Icon=steam_icon_738520. Is this extracted from the *.exe file and how do i get the name mentioned here? I know, that i can use the path to a *.png, but i would prefer to use the *.exe file itself.

 

In einem Projekt schiebe ich Video von meinen Kameras in ein Verzeichnis auf den Rasperry Pi4. Ein Cronjob geht dieses Verzeichnis dann durch und konvertiert diese Videos mit ffmpeg. Seit letzter Woche schlägt dies fehl. Folgendes Kommando wird dabei benutzt: ffmpeg -y -i "/tmp/4B9A9487.MP4" -vf format=yuv420p -c:v h264_v4l2m2m -b:v 8M -c:a aac -movflags +faststart "/tmp/4B9A9487_cv.mp4". Für einige Video klapp dies, für andere erhalte ich die Fehlermeldung: [h264_v4l2m2m @ 0x558fae9600] Could not find a valid device.

Das es aber für einige funktioniert, für andere nicht, glaube ich nicht, das dies am fehlenden device liegt. Denn wenn ich die Auflösung des Videos reduziere, funktioniert es durchaus. So klappt folgender Befehl mit den bisher fehlgeschlagenen Videos problemlos: ffmpeg -y -i "/tmp/4B9A9487.MP4" -vf format=yuv420p -c:v h264_v4l2m2m -b:v 8M -s 1280x720 -c:a aac -movflags +faststart "/tmp/4B9A9487_cv.mp4".

Geändert hat sich nur die Angabe der Auflösung mit -s 1280x720. Das Input Video hat hier 3840x2160. Ich vermute daher das der Rasperry Pi hier irgendwo mit 3840x2160 nicht mehr klar kommt und daher abbricht.

Was ist denn die maximale Auflösung die der Rasperry Pi hier unterstützt?

[–] MoLoPoLY@discuss.tchncs.de 1 points 2 months ago

Many thx for the hint with to reset the filter. Indeed this worked. Now the selection works as expected.

 

I use Darktable 5.0.1. I don't know if this is a bug or just a user error on my part. But I can remember that it worked differently in 4.8.x.

When I am in the lighttable module, I can select “rejected only” in the filter. I would now expect to see all rejected images. However, the opposite is the case. I now see all images that have not been rejected. However, if I select “all except rejected”, I see the rejected images.

Why is the filter effect reversed?

[–] MoLoPoLY@discuss.tchncs.de 1 points 2 months ago

Good point. Will try that

[–] MoLoPoLY@discuss.tchncs.de 1 points 2 months ago (2 children)

Hmm this is close enough to mine... Manjaro...

have Arch in parallel boot, but I'm not happy how it works with Steam Games. This is at least for me, a lot better with Manjaro. But anyway, I will compare with Arch settings next time im on it. Tomorrow I have to go to Bangkok for some weeks and can't use my private laptop for this time.

[–] MoLoPoLY@discuss.tchncs.de 2 points 2 months ago (4 children)

Strange. I'm on Gnome 47.4. Is this XFCE in your screenshot?

And how could you add a image here? I have tried, but couldn't find a button to do so.

[–] MoLoPoLY@discuss.tchncs.de 2 points 2 months ago (6 children)

256x256px. In my eyes, this should be ok.

 

When I send a notification with notify-send -i /path/to/my/icon.png "title" "message" , it appears wonderfully in Gnome 47.4. However, the icon is very tiny. According to the screenshots I saw, the icon can be very large. It is also obviously displayed in addition to the app icon. Is there a way to send such an icon in the message or another way to create desktop notifications?

 

I'm using Gnome as DE and was really happy with it until my last update. I would like to re-install Gnome, but want to remove before that all Gnome stuff, settings and dependencies. This is no problem for the packages installed via pacman and also it's dependencies. But I fear that I don't know how to remove all relevant settings. Is there some special folder or set of files to remove, before I can start from scratch?

 

A new version of Roundcube Photos has been released. New in 1.5.6 is the feature to share images with Mastodon, including multiple images. The manual generation of tokens has been removed, as the plugin now logs on to a Mastodon or Pixelfed instance as an autonomous app. The Timeline view and various internal improvements and bug fixes are also new. You can find the new version, as usual, on https://codeberg.org/Offerel/Roundcube_Pictures

 

If i get it right, the database and some other things are modified, when updating from 4.8.x to 5.0.x. That's why I think its a good idea, to backup old Darktable data. The question is, should I only backup the sqlite database or also the sidecar files?

3
Search for Hastags (discuss.tchncs.de)
submitted 5 months ago* (last edited 5 months ago) by MoLoPoLY@discuss.tchncs.de to c/pixelfed@discuss.tchncs.de
 

Somehow I still seem to have a hard time dealing with Fediverse and Co. Currently with Pixelfed. I'm looking for hashtags like #eosr7 or #irishwolfhound, but no results will be found. But I created such posts myself. If you can't find results through the search, you can't add the hashtag to the following hashtags. If I click on such a hashtag in my posts, I can subscribe to it.

Why can't I find posts about the search?

[–] MoLoPoLY@discuss.tchncs.de 1 points 5 months ago

If you have access to a Roundcube instance, you can try my PrimitiveNotes plug-in, if you want. You can find it at https://codeberg.org/Offerel/Roundcube_Primitivenotes. Maybe this helps to understand, for what and how i use markdown notes. I have absolutely no knowledge about flutter or Android coding, so I can't help that much.

But I can test and send you a little bit feedback for your app, because I really like your concept so far.

[–] MoLoPoLY@discuss.tchncs.de 8 points 5 months ago (3 children)

This looks like something usefull. Some observations after first start...

  • why does the app requests full file rights, after I selected my local notes folder? If the app has access to that folder (and subfolders), this should be enough.
  • for code, examples a code font should be used and not the same font as article text
  • i use markdown a lot for code. With this it should be possible to select the whole code block by single click. When using css, this should be possible with > user-select:all
  • auto line break should be disabled in the same context. This seems to be already the case for code block but not for single line code
  • i would love to see support for yaml. But in the form that i can hide the yaml block
  • i think the search feature doesn't work yet. If I have for example a note with the title Manjaro.md and I type "manjaro", it isn't found. The search should also search the text inside the notes or at least the yaml tags (if supported)
  • please keep the local folder and don't invest your resources in a sync mechanism. There are so much possibilities like WebDAV, rsync, SFTP and a lot of clouds. To much to make anyone happy. There are some Android apps which sync such things with an ease.
  • I keep my rare images in a hidden subfolder of the notes folder like ".media". Not only images, also linked PDF and so on. Such images are not displayed. They seems to be not found

I really like the idea of your app. Could be a good companion for my PrimitiveNotes plug-in for Roundcube. Hopefully you find the time to develop it further.

[–] MoLoPoLY@discuss.tchncs.de 2 points 7 months ago

Ok, many thx for all your suggestions. I will try therm tomorrow.

[–] MoLoPoLY@discuss.tchncs.de 1 points 7 months ago (3 children)

Hmm i never noticed a visual indicator for the head lift. I can see the blue hologram and some sort of "waves" starting from the pump hologram. Assume, I have build a industrial tank on the bottom, 0 meter's above the ground. From there the pipeline starts straight upwards, for example 20 meter's. Where should I place the first mk II pump? At 3 meter's or later?

[–] MoLoPoLY@discuss.tchncs.de 1 points 7 months ago (5 children)

The direction is correct and power is on. But I don't get the right spot, to place the pump. If I place it on the bottom, it doesn't seem to be right, but placing on the top seems to be to far away, to get enough fuel from the pipeline.

 

I try to build a tower for fuel generators. I could get 4 generators at the bottom running. The fuel is inserted from the top and splitted 2 times to support the 4 generators. But now I would add another 4 generators on top of the existing 4.

But what ever I try, I don't get the fuel pump high enough. According to the height of a generator, the next floor is 4 walls above the current floor. If im right, this is 16 meters and pump mk II should pump 20 meters. But it doesn't work.

Has someone a idea?

 

I'm using Gnome 46 with Loupe as an image viewer. Can this tool perform simple functions like rotating, resizing, or cropping? I haven't been able to find a way to do this yet. Or should I use something else?

 

Hi there. I know that Darktable can't do Imagestacking for photos of the MilkyWay. I have searched now for some time, but could find only Siril as Linux Alternative. But in most descriptions, it is stated, that Siril is not the best, when I have parts of the landscape on the horizon and i should only use it, when i have photos from the sky only.

Can someone recommend me a Linux native Imagestacking tool, which I can use also on photos with landscapes on the horizon?

view more: next ›