[x]Blackmoor Vituperative

Thursday, 2022-09-08

Bulk Crap Uninstaller

Filed under: Software,Windows — bblackmoor @ 14:03

If you are a Windows user looking for a replacement or alternative for Iobit Uninstaller (which has become little more than a vector for trojans), give Bulk Crap Uninstaller a try.

https://www.bcuninstaller.com/

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.

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).

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
:

Tuesday, 2019-12-17

Replace white background with transparency in Photoshop

Filed under: Gaming,Software — bblackmoor @ 13:48

I use a lot of found images in my online RPGs, to help set the scene. Sometimes, the image is almost, but not quite, what I want. Cropping, healing brush, and clone stamp solve most of those problems, but once in a while I find the perfect image… but it needs something more complex to make it what I want.

In this case, I found this illustration of a Pathfinder alchemist goblin, but I wanted the background to be black instead of white. So I looked for a tutorial on changing this in Photoshop, and found this one on StackExchange. The basic technique is to use the original image as its own layer mask. I’ll create a duplicate of the layer, desaturate and invert it, pasting the greyscale result into the original layer’s layer mask.

I start with my flattened image.

I then Desaturate the image.

I then duplicate this layer, Invert it, then select and fill white areas until everything I’d like to be opaque is white, and everything I want fully transparent is black. This was tricky, because I want the smoke translucent, but the goblin itself to be opaque.

Now I press CTRL+A to select the entire image, and CTRL+C to copy the combined greyscale result.

I then selected the layer with my original image, made sure nothing was selected in my image, and selected Layer > Layer Mask > Reveal All to create a layer mask on my original layer.

I then ALT+Clicked in the layer mask icon to enter direct edit mode, then pasted the greyscale image I had just copied into there.

I then clicked on my original layer to exit the layer mask direct edit, and tada, I have my semi-transparent goblin.

Now I just add a black background layer, and I am done. It’s not perfect, but it will do for my purposes.

Next Page »