Author: Lisa

Pylint — Ignoring Errors

MS Word has an ‘ignore this error’ thing in the grammar checker that I use fairly regularly — technical writing has syntax that reads as wrong, grammatical errors for impact, or informal writing where I don’t much care for some rules of grammar … I don’t want to turn off the grammar checker, but I do want to stop seeing a squiggly line under a specific sentence that I don’t want to change. Turns out Pylint has something similar:

PIP SSL Error

Upgraded pip today, and I pretty quickly regretted it. SSL Error attempting to install anything from the Internet (and, amazingly, some things where I downloaded the wheel file). The answer is to downgrade PIP until you hit a version that doesn’t have the error. Annoying. Not sure what the latest rev I could have used was — going back one level and getting the error in loop was more time than I could devote to the project, so I just jumped back six months. Had success with 20.0.2 and left working alone.

Everything from 20.3.1 through 21.0.1 has this failure:

D:\tmp\5\pip>pip install basic_sftp
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLError(1, ‘[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1076)’))’: /simple/basic-sftp/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLError(1, ‘[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1076)’))’: /simple/basic-sftp/
WARNING: You are using pip version 20.3.1; however, version 21.0.1 is available.
You should consider upgrading via the ‘c:\programs\anaconda3\python.exe -m pip install –upgrade pip’ command.

55 Days of Grilling: Day 5

Tonight, we made turkey, spinach, feta burgers with fresh rolls. The rolls were my usual dough recipe (4c flour, 1T yeast, 1T sugar, 1t salt, 1T oil/butter, 1/2c wheat gluten) with a six hour rise time in a warm oven followed by a really short rise time after shaping and an egg wash. Cooked at 375 for 15 minutes — could have used an extra minute or two.

The burgers were ~1.5 lbs ground turkey, 1/4 large red onion chopped, 1 package frozen chopped spinach (defrosted with water squeezed out), 2t salt, 1t pepper, 6 oz feta, 2 eggs (minus what was used for the egg wash on my rolls), seranno chillis, and about 1/2c panko. Grilled about 5 minutes each side at a high temp. Very good — may want to try adding mustard to burger mix next time.

SCP From Solaris to RHEL?

Evidently you cannot just scp files from an old Solaris box when you’re on a RHEL/CentOS system … there’s an incompatibility between them that requires you to (1) install scp1 on the Solaris server {not likely in a prod environment} or (2) use sftp to transfer the files.

 

Server1: Red Hat Enterprise Linux Server release 7.6 (Maipo)
Server2: Solaris 5.9

lisa@server1:~/$ scp lisa@server2:/data/stuff/file1.txt ./input/
lisa@server2’s password:
scp: warning: Executing scp1.
scp: FATAL: Executing ssh1 in compatibility mode failed (Check that scp1 is in your PATH).

55 Days of Grilling: Day 4 Breakfast

Anya and I made pancakes on the grill today — I put the batter in and flip the first time, then she takes them out of the pan. She wanted to toss the cooked pancake on the grill to get some “grill marks” … which was pretty cool.

The batter is an extra vanilla-y buttermilk pancake recipe:

2c flour
1t baking powder
1t baking soda
1/2t salt

2c buttermilk
3T maple syrup
1 egg
2T oil
1T vanilla

It’s actually a powdered buttermilk, so that’s half a cup of buttermilk powder and two cups of water. I mixed up some “pancake mix” so next time we’re making pancakes … we just need to add water, oil, maple syrup, vanilla, and an egg.

Fedora — Disabling IPv6

Since it’s the third time I’ve had to do this so far this year, I’m going to write down how I disable IPv6 in Fedora. Add these lines to /etc/sysctl.conf

[lisa@server~]# grep ipv6 /etc/sysctl.conf
net.ipv6.conf.all.disable_ipv6=1
net.ipv6.conf.default.disable_ipv6=1
net.ipv6.conf.lo.disable_ipv6=1

Then load the sysctl settings (sysctl -p) or reboot.

Without IPv6, if you do X-redirection, you may get an error indicating the redirection was refused. In journalctl, there’s an error “error: Failed to allocate internet-domain X11 display socket”. Evidently you’ve got to configure sshd to use IPv4 by setting “AddressFamily inet” in /etc/ssh/sshd_config

[lisa@server~/]# grep AddressFamily /etc/ssh/sshd_config
AddressFamily inet