[x]Blackmoor Vituperative

Monday, 2022-05-16

Getting rid of Firefox’s “downloads” popup

Filed under: Software,The Internet — bblackmoor @ 15:12

Ever since Firefox 98 (I think), a popup appears every ten minutes or so, showing files that have been downloaded successfully (or not, I assume). Whether I have downloaded anything recently or not. It does not go away until I manually close it.

That is annoying. Here is how to fix it.

Go to about:config (accepting the warning along the way).

Change browser.download.alwaysOpenPanel to false.

Thursday, 2022-05-12

Scaled Agile Framework – SAFe

Filed under: Programming,Software,Work — bblackmoor @ 11:02

Taking my Scaled Agile Framework – SAFe certifications off of my resume. If I am never forced to drink that snake oil again, it will be too soon.

Friday, 2022-04-29

Trimming trailing spaces in LibreOffice Calc

Filed under: Software,Windows — bblackmoor @ 13:39

I looked for ages before I found this advice, so I am preserving it here. Credit goes to Keyboard Playing for the original post, though.

In LibreOffice Writer, you can replace \s+(\r?(\n|$)) with $1 to remove all trailing spaces. A single execution should be efficient this time.

The regular expression (aka “regex”) can be decomposed this way:

\s+ matches one or more whitespaces;
(\r?(\n|$)) matches a carriage return (\r?\n) or the end of a paragraph (\r?$) ; \r? is there only to be compatible with Windows carriage return format;
$1 is the first captured group ((\r?(\n|$))) as it was found in the text (we put back what was found).

Friday, 2022-04-08

Lepton Firefox-UI-Fix update

Filed under: Software,The Internet,Windows — bblackmoor @ 12:38

If you have hacked Firefox to be less annoying, and if you have noticed icons in context menus overlapping the text, it may be time to update your Lepton modifications.

Don’t forget to go to URL “about:support” and clear the startup cache afterward.

I had no idea that Firefox’s user base had withered like this. Less than 5%? This makes me sad.

Tuesday, 2021-08-17

Remove Proton from Firefox 91

Filed under: Software,The Internet — bblackmoor @ 17:13

Winaero has a step-by-step tutorial on how to revert Firefox (more or less) to its pre-Proton user interface. I am giving it a try. I have been using Chrome as my default browser for the past day, and I like it better than Protonic Firefox, but not as much as pre-Protonic Firefox.

Wednesday, 2021-07-14

Stop downloading images as webp

Filed under: Software,The Internet — bblackmoor @ 09:08

If you are annoyed that you download images in Firefox and they save as “*.webp”, install this addon.
https://addons.mozilla.org/en-US/firefox/addon/dont-accept-webp/

Tuesday, 2021-06-01

Change Firefox tabs back to old style

Filed under: Software,The Internet — bblackmoor @ 10:21

If Firefox has updated and now your tabs are huge and you can’ t tell which tab is open by looking at them, you can switch it back. Type “about:config” in the address bar, search for “proton“, and change the “true” values to “false“.

Sunday, 2021-04-18

Rounding to significant digits in LibreOffice Calc

Filed under: Software — bblackmoor @ 12:24

Here is a formula for rounding a number to a specified number of significant digits.

=if(A1=0,0,round(10^(floor(B1-LOG(abs(A1))))*A1)/(10^(FLOOR(B1-log(abs(A1))))))

In this formula, A1 is the cell with the number, and B1 is the cell with the number of significant digits.

Monday, 2021-03-01

Karelia, version 7

Filed under: Art,Gaming,Software — bblackmoor @ 09:37

Current version of Karelia map, for my maybe-I-will-maybe-I-won’t D&D game. I like the overall look, but I am bumping into limitations in Inkarnate (which is what I used to draw this). namely, there is no way to group objects into, say, “Labels”, or “Rivers”, and change the size, colour, font, etc. in a simple way. Photoshop can do that fairly easily (no great surprise), so I am thinking about doing the landmasses in Inkarnate (which is easy to do with its built-in textures and POI icons) and then doing the rivers and labels in Photoshop.

Alternately, I am playing with the idea of loading this map into Campaign Cartographer (from ProFantasy), and re-drawing it in that program. Campaign Cartographer is a much more powerful mapping program than Inkarnate, and can do everything (or nearly everything) I would like to do in Photoshop. I have owned Campaign Cartographer for literally decades, and have subscribed to their monthly “Cartographer’s Annual” since 2007, but I have never taken the dive into learning it. It has a steep learning curve.

On the other other hand, I am wondering if perhaps I have gone down a rabbit hole on this whole map thing. Maybe I should just declare it “good enough”, and move on to planning the actual game. Maybe.

Friday, 2020-06-05

MyMedia under screen

Filed under: Linux,Movies,Software — bblackmoor @ 11:47

I use a Python application called MyMedia to stream videos from my Ubuntu media server to my Roku boxes.

I installed Ubuntu 20 yesterday. The painfully slow navigation problem (caused by the slow but inevitable deprecation of python 2) re-appeared, and I tried to re-create the fix. Initially, I just succeeded in preventing MyMedia from running at all.

Here is what actually worked.

  1. First, I copied all of my backed up MyMedia files to /usr/local/bin/mymedia
  2. Then I installed python 2.7…
  3. sudo apt-get install python2
  4. Then I installed pip, but first I had to install curl…
  5. sudo apt-get install curl
  6. curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
  7. sudo python2 get-pip.py
  8. Then I installed Pillow
  9. sudo python2 -m pip install --upgrade Pillow
  10. It might not have been necessary, but I installed several image libraries…
  11. sudo apt-get install libjpeg-dev
  12. sudo ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib
  13. sudo apt-get install zlib1g-de
  14. sudo ln -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib
  15. In common.py, I made sure that this…
  16. import Image
  17. … had been replaced with this…
  18. #import Image
    from PIL import Image

Huge success!

Note that during this process, I got several warnings about Python 2.7 being deprecated, like this one:

DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support

It’s only a matter of time before MyMedia becomes unusable. I would love to get access to the git repository and try to update it for Python 3, if that’s possible. I’ve asked, but the original developer is no longer associated with the project. It may be that I’ll have to find a new solution to this problem in a year or so.

Also, I have updated my init script (/etc/init.d/memedia), which runs mymedia in a screen

#!/bin/sh
### BEGIN INIT INFO
# Provides: minidlna
# Required-Start: $local_fs $network $remote_fs
# Required-Stop: $local_fs $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: mymedia server
# Description: mymedia media server.
### END INIT INFO

# Do NOT "set -e"

# PATH should only include /usr/* if it runs after the mountnfs.sh script
DESC="MyMedia media server"
MEDIAPATH=/var/media
DAEMONPATH=/usr/local/bin/mymedia/server
DAEMON=$DAEMONPATH/mymedia.py
SCRIPTNAME=/etc/init.d/mymedia
SCREENNAME=mymedia
USER=bblackmoor
GROUP=media
EXECUSER=root
EXECGROUP=media

case "$1" in
start)
chown -R $EXECUSER:$EXECGROUP $DAEMONPATH
chown -R $USER:$GROUP $MEDIAPATH
su - $USER -c "cd $DAEMONPATH; screen -dm -S $SCREENNAME python2 $DAEMON"
;;
stop)
su - $USER -c "screen -S $SCREENNAME -X quit"
su - $USER -c "screen -wipe"
;;
status)
su - $USER -c "screen -list | grep $SCREENNAME"
;;
*)
echo "Usage: $SCRIPTNAME {start|stop|status}" >&2
exit 3
;;
esac
:

Next Page »