[x]Blackmoor Vituperative

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 not 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
:

Thursday, 2020-05-28

David Brent, vampire

Filed under: Entertainment,Humour,Television — bblackmoor @ 17:40

Okay, so, we watched part of “Get Him To The Greek” (2010) last night. And we both noticed that Russell Brand is using the same accent as Ricky Gervais used for “the Office”. And I got to wondering if that was a deliberate choice? Like, does that accent belong to a particular region of the UK, yeah? Maybe it represents a certain socio-political group, or a stereotyped mindset? Maybe a bit stupid? Maybe a bit arrogant, even?

And then, for some reason, I thought of “What We Do In The Shadows”, which is a TV show (based on the eponymous film) about vampires in Staten Island, NY. And I got to wondering what it would be like if one of them had this accent.

“So I was at this bar, right? And this young thing, this lady, not that I mind a young bloke, I’m not sexist. Blood is blood, innit? Right? If you want a bloke, good for you. I support that. But in this case, a young lady, right? She’s all forward, which frankly I’m not fond of. Leave a bit for the chase, please. It’s a little word in relationships I like to call mystery. Leave a bit of it, right? Don’t just put everything on the table at once. Let us have a bit of fun. A bit of foreplay, right?

“But she’s persistent, and it’s getting late, and if I must admit, I was a bit peckish. I do get peckish sometimes. Not that I’m always on the hunt. Just because I’m a vampire, that doesn’t mean I’m just about that. I’m my own boss. Sometimes I’ll wake up in me coffin, and I’m like, ‘David, are you hungry?’ And I’m like, ‘No thank you. Think I’ll compose a sonnet. Think I’ll be a poet today, yeah? Can I just stay in my coffin and compose a sonnet?’ ‘Ooh, don’t know, better ask the boss.’ ‘David can I stay in my coffin all day?’ ‘Yes, you can David.’ Both me, that’s not me in my coffin with another bloke called David.

“But in this case, yeah, I drank her blood and left her body in the alley. Think she was alive. Might not have been. Didn’t check. Might be breathing. Probably not. Don’t care. That’s how I roll. I’m a free spirit.

“No, but… yeah, she was breathing. Again guilty, unorthodox, sue me.”

Ricky Gervais vampire

Thursday, 2020-05-21

“Day Of The Triffids” (2009)

Filed under: Movies — bblackmoor @ 14:24

Letting the 2009 BBC adaptation of “Day Of The Triffids” play while I work. This has a remarkable cast: Dougray Scott, Joely Richardson, Eddie Izzard, Jason Priestley, Vanessa Redgrave, and Brian Cox. Eddie Izzard steals this. It helps that he’s playing the perfect Eddie Izzard character: charming, clever, subtle, and much more dangerous than you think.

This is the last of the three extant “Day Of The Triffids” film adaptations. I have been letting them all play, over the past week. They’re depressing as hell. There is no happy ending. Ever. And although the triffids are undoubtedly dangerous, people are the real monsters. Not most people. Most people are decent, and have empathy. Most people want to work together so that everyone can survive. Most people realize that we are all in this together.

But just a few are malicious. Just a few are sociopaths, sadists, and liars. Selfish. Cruel. And if people allow the worst among them to seize power, that’s really all that it takes for everything to go to hell.

Thursday, 2020-05-07

Dentist appointment

Filed under: Health,Poetry — bblackmoor @ 09:09

I had a dentist appointment this morning. I had planned to pick up some milk from the store afterward. Unfortunately, my car’s battery was dead. After some protests, Susan consented to allow me to drive her car.

When I arrived at the dentist’s office, I realized that I didn’t have a face mask: it was in *my* car. So no shopping afterward.

I called the dentist office to let them know I was outside, so they could bring out the pandemic-release forms and take my temperature. My temperature was 96.3 F, and they left the forms with me.

The first page described all of the reasons that I could catch COVID-19 at the dentist’s office despite their precautions, and ended with a statement I was supposed to sign confirming that my visit met the requirements of urgency and medical necessity described above.

I apologized and returned the form to the next nurse who came outside, and said it wasn’t urgent: just a checkup.

“Oh, it’s okay. We are seeing patients for checkups now.”

I apologized again, and fled, my stomach in knots.

Sunday, 2020-04-19

Hogwarts wallpaper or Zoom backgrounds

Filed under: Art,Movies — bblackmoor @ 13:54

Here are some Hogwarts screen captures you can use as wallpaper or as backgrounds for your Zoom meetings. These are all from “Harry Potter And The Sorcerer’s Stone” (2001).

Tuesday, 2020-01-28

“The Devil Rides Out” (1968)

Filed under: Movies — bblackmoor @ 11:12

The Shout! Factory blu-ray for “The Devil Rides Out” (1968) is quite well done. The print is clean and bright, and the extra features are fascinating.

This movie was part of a trend of 1960s “satanic” films, and while it’s not my favourite of that genre, I have a great deal of affection for it, in no small part due to Christopher Lee’s magnetic presence which anchors the film.

Sunday, 2020-01-26

“Pirates Of Blood River” (1962)

Filed under: Movies — bblackmoor @ 21:01

Watching “Pirates Of Blood River” (1962). What a great cast! Christopher Lee, Kerwin Matthews, Glenn Corbett, and a young Oliver Reed (yes, sadly the few female characters are little more than set dressing and prizes to be fought over… it irks me, but such was the era).

This movie is an example of a particular genre, which one sees more often in horror movies: a group of people (usually criminals) is betrayed by their greed, which leads them into a cul-de-sac of betrayal and death. If you haven’t noticed this before, keep an eye out for it: you’ll start seeing this plot everywhere once you start looking for it.

One of the things that irks me about this particular movie are the religious zealots who are so blinded by their hatred and superstition that they happily cause death and destruction to the people around them, because they are servants of “god” and they get a free pass. You see it a lot in movies set in the 16th and 17th centuries, particularly horror movies (maybe I just watch a lot of horror movies). You also see it a lot in places like Alabama and Washington, D.C. The word “evangelical” has become a synonym for “sneering hypocrite”.

But I digress.

I am amazed at what marksmen these Huguenots and pirates are with unrifled muskets and blunderbusses. You rarely see people in movies who are this accurate with actual rifles.

“Pirates Of Blood River” (1962) is a cool movie, worth watching. Do so, if you get the chance. The ending is rather abrupt and not entirely satisfying, but again, such was the era.

Thursday, 2019-12-26

Cinema Insomnia animated GIFs, part 1

Filed under: Art,Movies,Television,The Internet — bblackmoor @ 13:01

Here are some animated GIFs I made for Cinema Insomnia.

Tuesday, 2019-12-24

“The Witcher” sucks

Filed under: Television — bblackmoor @ 00:25

“The Witcher” on Netflix, episode 3. I’ve stuck with it this long, hoping that it will eventually get going and allow the characters to be interesting once it gets the tedious exposition out of the way. But that hasn’t happened. On top of that, the characters’ conversations in this episode make it apparent that the scenes are jumbled in time.

I know that the jumbled timeline gimmick is in vogue right now, and it might even work, in skilled hands. The first season of “Westworld” made it work, brilliantly. In “The Witcher”, it is just irritating.

They should have left out the “Princess Cally’s Road Trip” subplot. Every single scene tied to that was painfully dull. And the whole “Yennefer Goes To Sorcery School” thing — the whole “Brotherhood Of Sorcery” thing, in fact — is just … yuck.

I wish the show had been about the woman from the first episode, Refiri. She was more interesting than everything else in the first three episodes put together.

As Willie T. Stokes (Billy Bob Thornton) said in “Bad Santa”, “They can’t all be winners, can they.” Time to move on to a different show.

The Witcher wonders why his show is so dull

I want to like things. And I don’t think my expectations are unreasonable. But some things just suck.

Monday, 2019-12-23

White Evangelicals Want Christian Supremacy, Not “Religious Freedom”

Filed under: Civil Rights,Mythology,Philosophy,Politics,Society — bblackmoor @ 18:51

Conservative Christians believe their rights are in peril partly because that’s what they’re hearing, quite explicitly, from conservative media, religious elites, partisan commentators and some politicians, including the president. The survey evidence suggests another reason, too. Their fear comes from an inverted golden rule: Expect from others what you would do unto them. White evangelical Protestants express low levels of tolerance for atheists, which leads them to expect intolerance from atheists in return. That perception surely bolsters their support for Trump. They believe their freedom depends on keeping Trump and his party in power.

White evangelicals fear atheists and Democrats would strip away their rights. Why?, By Paul A. Djupe

To summarize, among atheists who said they loathed Christian fundamentalists more than any other religious group, 65% still said they would be perfectly fine with those Christians having the same rights as everyone else. But among white evangelicals who hated atheists the most — even more than “white supremacists” — only 32% would say the same.

This is a core difference between the two groups and it illustrates why the “both sides are the same” argument is ridiculous. We’re not equally dogmatic but on opposite sides of the spectrum. In fact, these results just emphasize a point I’ve made repeatedly on this site: Atheists fight for religious neutrality, while white evangelicals fight for Christian supremacy.

Study Shows White Evangelicals Want Christian Supremacy, Not “Religious Freedom”, By Hemant Mehta

“You hypocrites! Isaiah was right when he prophesied about you:
‘These people honor me with their lips,
but their hearts are far from me.
They worship me in vain;
their teachings are merely human rules.’ “

— Matthew 15:7-9

Next Page »