Re: Checking if email is valid

2023-11-05 Thread gene heskett via Python-list

On 11/5/23 05:32, D'Arcy Cain via Python-list wrote:

On 2023-11-05 00:39, Grant Edwards via Python-list wrote:

Definitely. Syntactic e-mail address "validation" is one of the most
useless and widely broken things on the Interwebs.  People who do
anything other than require an '@' (and optionally make you enter the
same @-containing string twice) are deluding themselves.


And don't get me started on phone number validation.  The most annoying 
thing to me, though, is sites that reject names that have an apostrophe 
in them.  I hate being told that my name, that I have been using for 
over seventy years, is invalid.


OK, now that I am started, what else?  Oh yah.  Look at your credit 
card.  The number has spaces in it.  Why do I have to remove them.  If 
you don't like them then you are a computer, just remove them.


When do we stop working for computers and have the computers start 
working for us?


If this is being voted on, pretend you are in Georgia, vote often and 
early. Best question of the century.


Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis

--
https://mail.python.org/mailman/listinfo/python-list


Re: Fwd: AUTO EDITOR DIDN'T WORK

2023-06-13 Thread gene heskett via Python-list

On 6/13/23 19:10, Thomas Passin via Python-list wrote:

On 6/13/2023 5:32 PM, Alan Gauld via Python-list wrote:

Okay thanks. Meanwhile, I am not tech savvy so I may not say much here.
I followed all the commands as given on the website to install auto
editor standing it on python but after rendering the XML file, I
couldn't open it with my Davinci Resolve 18. I uninstalled and
reinstalled about twice and still no success hence I uninstalled it.


I don't understand when you talk about an "XML file". Auto-editor works 
on video files, or at least .mp4 files, which are not XML files. Davinci 
Resolve does have some ability to interoperate with other editors using 
XML in some way (according to Wikipedia, 
https://en.wikipedia.org/wiki/DaVinci_Resolve) but that's a different 
thing completely.


I also don't know what you mean by "after rendering the XML file" since 
from what I can see auto-edit doesn't render anything.


The simplest thing that auto-editor can do is to cut out long periods of 
dead space, e.g., from an mp4 file.  Their documentation shows how to do 
it.  If it were me, I would run the example command line on a sample mp4 
file, then see what it looked like in Davinci.  Is that what you did? It 
should be the same video but with some dead space removed.


(Note that I'm speaking from a place of no experience with either of 
these software packages; just looking at what auto-edit claims to do).




auto-edit? Never heard of it. xml? I've written hundred of kilobytes of 
it in plain old geany. I didn't know there was a special editor for xml.


Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/>

--
https://mail.python.org/mailman/listinfo/python-list


Re: Weak Type Ability for Python

2023-04-13 Thread gene heskett

On 4/13/23 13:34, Dennis Lee Bieber wrote:

On Thu, 13 Apr 2023 12:21:58 +1000, Cameron Simpson 
declaimed the following:


On 12Apr2023 22:12, avi.e.gr...@gmail.com  wrote:

I suspect the OP is thinking of languages like PERL or JAVA which guess
for
you and make such conversions when it seems to make sense.


JavaScript guesses. What a nightmare. Java acts like Python and will
forbid it on type grounds (at compile time with Java, being staticly
typed).



REXX -- where everything is considered a string until it needs to be
something else.

REXX-ooRexx_5.0.0(MT)_64-bit 6.05 23 Dec 2022
   rexxtry.rex lets you interactively try REXX statements.
 Each string is executed when you hit Enter.
 Enter 'call tell' for a description of the features.
   Go on - try a few...Enter 'exit' to end.


You missed the best REXX, Dennis.

ARexx for the amiga's. Bill Hawes wrote in a link to everything amigados 
had and we wrote, in ARexx, stuff that Amigados didn't have starting 
with a cron, a better cron than Paul Vixies. Worst, Bill never got a 
dime from commode-door for the best language it had,  We served our WDTV 
web page with it in the middle 90's. Using ARexx and early php. Now its 
farmed out and 99% commercial junk.



x = 1;
   ... rexxtry.rex on WindowsNT
y = "a";
   ... rexxtry.rex on WindowsNT
say x||y;
1a
   ... rexxtry.rex on WindowsNT


Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/>

--
https://mail.python.org/mailman/listinfo/python-list


Re: Baffled by readline module

2023-03-10 Thread gene heskett

On 3/9/23 20:31, 2qdxy4rzwzuui...@potatochowder.com wrote:



I was with you until that part of the small wooden box.  :-)


So was I, but we all put that off as long as we can. I retired 22 years ago.


We're not really an industry that has a concept of retirement.


Which is why I'm still here (on this mailing list, and a handful of
others like it).

More echo. And doing things, albeit at a slower pace, that I always 
wanted to do.


Take care and stay well all.

Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/>

--
https://mail.python.org/mailman/listinfo/python-list


Re: Python 3.10 Fizzbuzz

2023-03-01 Thread gene heskett

On 3/1/23 20:28, Greg Ewing via Python-list wrote:

On 2/03/23 10:59 am, gene heskett wrote:

Human skin always has the same color


Um... no?

Yes, only the intensity of the color changes, the vector angle remains 
the same within a degree or so.


Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/>

--
https://mail.python.org/mailman/listinfo/python-list


Re: Python 3.10 Fizzbuzz

2023-03-01 Thread gene heskett

On 3/1/23 11:41, rbowman wrote:

On 1 Mar 2023 11:28:12 GMT, Stefan Ram wrote:



   IIRC, I've heard of professional video monitors which are set to
   standard values for color saturation, contrast, and brightness. They
   have no way to adjust these values, although they are more expensive
   than normal screens.


Probably a good thing. In the early days of color TV the color values were
user adjustable. A generation grew up thinking Lorne Greene (Bonanza) had
a slightly green complexion to match his name.

Chuckle. That was back in what we called Never Twice Same Color days. 
NTSC IOW. I'm a retired tv Chief Engineer and we as broadcasters always 
had a vectorscope in front of the operator so he could adjust the color 
if it wasn't right. Even if he was color blind! Human skin always has 
the same color and it makes an excellent image on the vectorscope at a 
certain angle. And it does not change that angle when the camera 
switches from my white caucasian face to the blackest basketball or 
football players, the difference is not the color, but the brightness.
A lesson I've had to demo to every colored person we ever hired by 
showing him both of us on camera.


Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/>

--
https://mail.python.org/mailman/listinfo/python-list


Re: How to enter escape character in a positional string argumentfrom the command line?

2022-12-21 Thread gene heskett

On 12/21/22 11:22, Chris Angelico wrote:

On Thu, 22 Dec 2022 at 03:11, Stefan Ram  wrote:


Lars Liedtke  writes:

Or you could have "native" bash ($SHELL) with WSL.


   In this newsgroup, it would actually be obvious to use Python.


Less obvious than you might think - partly because bash is just so
dang good that it's really really hard to outdo it :) Sure, bash has a
lot of weird and wonky edge cases, but it's an incredibly practical
shell to use.

When you make a statement like that, Chris, you should also note that 
every single one of those "wonky edge cases" is documented down to the 
last dotted i. Bash's docs will kill a good sized pulp tree, needing 
around a ream of paper to print on a duplex printer. I know, I did it 
around a decade ago. If you like to write scripts, having a dead tree 
copy of the docs at your elbow in incredibly useful.  That huge man page 
does not cover it like the printed docs do.



   When commands are typed manually, this might be a bit verbose,
   though. I mean

os.chdir( r'C:\EXAMPLE' )

   versus

CD C:\EXAMPLE


Exactly. What's good for a programming language is often not good for a shell.


class PythonShell( cmd.Cmd ):

 intro = 'Welcome to the Python shell. Type help or ? to list commands.\n'
 prompt = '(Python) '
 file = None

 def do_cd( self, arg ):
 'change directory:  CD C:\EXAMPLE'
 os.chdir( *parse( arg ))

 def do_bye( self, arg ):
 'Exit:  BYE'
 print( 'Thank you for using the Python Shell!' )
 return True


Sure, you can always create your own shell. But I think you'll find
that, as you start expanding on this, you'll end up leaning more
towards "implementing bash-like and/or cmd-like semantics in Python"
rather than "creating a Python shell". Shells, in general, try to
execute programs as easily and conveniently as possible. Programming
languages try to stay inside themselves and do things, with subprocess
spawning being a much less important task.

Fun challenge: see how much you can do in bash without ever forking to
another program. And by "fun", I mean extremely difficult, and by
"challenge" I really mean "something you might have to do when your
system is utterly hosed and all you have available is one root shell".

It's amazing how far you can go when your hard drive has crashed and
you desperately need to get one crucial login key that you thought you
had saved elsewhere but hadn't.

ChrisA


Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/>

--
https://mail.python.org/mailman/listinfo/python-list


Re: NEO6 GPS with Py PICO with micropython

2022-11-29 Thread gene heskett

On 11/29/22 06:56, KK CHN wrote:

List ,
I am following this tutorial to  get latitude and longitude data  using
NEO6 GPS module and Py PICO  to read the GPS data from the device.

I followed the code specified in this tutorial.
https://microcontrollerslab.com/neo-6m-gps-module-raspberry-pi-pico-micropython/

I have installed thony IDE in my Desktop(windows PC) and  run the code
after the devices all connected and using USB cable connected to my PC.

When I ran the program I am able to see the output of  latitude and
longitude in the console of thony IDE.  But  between certain intervals of a
few seconds  I am getting the latitude and longitude data ( its printing
GPS data not found ?? ) in the python console.

The satellite count from the $GGPA output showing 03 ..
and the GPS data not found repeating randomly for intervals of seconds.
Any hints why it is missing the GPS data (randomly) ??

PS:-  The GPS device I placed outside  my window and connected to the PC
with a USB cable from the PICO  module. GPS device NEO6 light (Red LED
) blinking even though the "  GPS data not found" messages in th python
console.

Any hints ?? most welcome

Yours,
Krishane


From a retired broadcast engineer, intimately familiar with vswr:

std, wire only usb cables can get to acting flaky at 5 feet. If the 
cable to the receiver is more than that, a higher quality cable may be 
required. The better cable will probably have active electronics in the 
molded on ends that treats the cable as a transmission line,

Which if done right can go as much as ten meters at usb2 speeds.

Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/>

--
https://mail.python.org/mailman/listinfo/python-list


Re: Running two separate servers (was Re: venv questions)

2022-08-30 Thread gene heskett

On 8/30/22 06:52, Chris Angelico wrote:

On Tue, 30 Aug 2022 at 19:51, gene heskett  wrote:

So I'm thinking of venv's named rock64prusa, and rock64ender5+, each with
"port#" on my local net. So chromium could have two tabs open, one to
localhost:5000 and one to localhost:5001, totally independent of each other.


As I said, that has absolutely nothing to do with venvs, so you'd have
to figure out how to change their port numbers independently.

(Although you could probably add an env var to the venv's activation
script, if that would help.)

ChrisA
The short script as /etc/default/octoprint has that PORT item. I see no 
reason it

couldn't be renamed and edited to affect the desired separation.
(venv) gene@rock64:~/printrun/Printrun/venv$ cat /etc/default/octoprint
==
# Configuration for /etc/init.d/octoprint

# The init.d script will only run if this variable non-empty.
OCTOPRINT_USER=gene

# base directory to use, change this for cura in both copies so cura can 
see it on the /sshnet

# make it unique and get rid of the dot.
BASEDIR=/home/gene/.octoprint

# configuration file to use, relocate this for uniqueness
CONFIGFILE=/home/gene/.octoprint/config.yaml

# On what port to run daemon, default is 5000, anything not it use for 
2nd ender5+ version

PORT=5000

# Path to the OctoPrint executable, you need to set this to match your 
installation!

# change the venv to a unique name
DAEMON=/home/gene/OctoPrint/venv/bin/octoprint

# What arguments to pass to octoprint, usually no need to touch this
DAEMON_ARGS="--port=$PORT"

# Umask of files octoprint generates, Change this to 000 if running 
octoprint as its own, separate user

UMASK=022

# Process priority, 0 here will result in a priority 20 process.
# -2 ensures Octoprint has a slight priority over user processes.
NICELEVEL=-2

# Should we run at startup?
START=yes
EOF

Edit two copies of this in defaults with individual names,

Edit 2 copies of /etc/init.d/octoprint with unique names

make two uniquely named venv's.

The two should never meet nor interfere with each other. So far, I've got
it running in a venv named prusa-mk3s. Now checking to see if it see's a
gcode file uploaded directly from cura here on this machine.

Short answer is no, octoprint cannot see an uploads directory in the 
prusa-mk3s directory.
In fact, it cannot see, or even create a new uploads directory. But I 
made one with mc, put
a gcode file there, not seen, got po'd and gave it 755 perms, bingo, it 
needed exec perms,
and cura wasn't setting them. Chalk up another bitch at cura. Or at 
octoprint, gcode is a text file

fur crying in the beer.  The rwXrwXrwX should not affect it IMO.

I need another batch of cable clips to neaten up the ender5+, so let me 
see if it can do that.
Now that I have the rules in hand, maybe I can make a second copy work 
at the same time.


IF I can figure out how to make it use a unique name for its PID identifier
.
Might have to change a character in the launchers name w/o changing the 
script. Or better yet,

rename the executable?

IDK. And hour lateer, cable clips went nice and clean, so the first 
instance is working fine.


And there isn't a PID for octoprint anyplace in /var unless its under 
the snakes umbrella.


Progress, discovering bugs and work-arounds in octoprint. Now I'm 
waiting on the mail for parts. Among other things a bigger PSU for the 
rock64. See if that reduces the video glitches from usb activity.


Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/>

--
https://mail.python.org/mailman/listinfo/python-list


Re: Running two separate servers (was Re: venv questions)

2022-08-30 Thread gene heskett

On 8/29/22 23:22, Chris Angelico wrote:

On Tue, 30 Aug 2022 at 12:59, gene heskett  wrote:

But that might create another problem. how to differentiate the servers,
both of which
will want to use localhost:5000 to serve up their web pages we run
things with.

Suggested solutions?

This is nothing to do with venvs, so I'm forking the thread.

By far the easiest way to differentiate them is to NOT have them both
on localhost:5000. Depending on how you invoke the servers, you should
be able to find a way to configure one (or both) of them to a
different port; common methods include a "--port" argument, setting
the PORT environment variable, and poking in the code to find the
number 5000 and changing it to some other value.

(Less common methods include poking in ctypes to find the number 5000
and changing it to some other value. Mentioned only because I realise
the alternative interpretation of my previous comment.)

Another method would be to change the "localhost" part. The standard
for IP addresses is that 127.x.y.z means localhost, regardless of what
x, y, and z are; so you could have one of them bind to 127.0.0.2 and
the other to 127.0.0.3, which you could then use in your browser the
same way (http://127.0.0.2:5000/ and http://127.0.0.3:5000/
respectively).

But if you can't change anything else, you'll have to make the two
processes cooperate in some way, or worst case, just make sure you
shut one down before you start the other up.

ChrisA

That is a limitation I'd druther not have to deal with Chris. I want two
separate octoprint servers running with no interaction between them.

So I'm thinking of venv's named rock64prusa, and rock64ender5+, each with
"port#" on my local net. So chromium could have two tabs open, one to
localhost:5000 and one to localhost:5001, totally independent of each other.

I already have that in my /etc/hosts file. No dns resolving involved.

And from snooping just now, the port # is set it /etc/default/octoprint, 
so copy
/etc/default/octoprint to octoprint-prusa, and to octoprint-ender5+, do 
the same in
/etc/init.d, and change the port # & venv name  in the -ender5+ version. 
Then

reconfigure the ender5+ version to drive that printer.

With the venv isolation, it should work, with a browser tab at 
localhost:5000 and
another tab at localhost:5001, each pointing at its own directory tree 
in /home/gene.


The separation is also because of the way linux finds usb facilities, the
prusa is always /dev/ttyACM0 and the ender5+ is almost always /dev/ttyUSB0.
in this case I've a 4 port usb hub with port disabling switches plugged
into the rock64.

One of the things I want to try is plugging in a startech usb3 to sata 
adapter

with a small SSD plugged into it, and move the /tmp directory off that poor
u-sd card to prolong its life.

And each with its own input buffer that cura can see from here. The new 
cura 5.1
has its own set of problems, not being able to see octoprints defaulted 
input buffer
hidden behind a dotted directory being a starter, toss in that it has no 
way to look at
.. and that requires a user session of mc just to move the gcode 
produced to be printed

from a local dir here to the input buffer of that instance of octoprint.

Back at this come daylight.  Thank you Chris.

Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/>

--
https://mail.python.org/mailman/listinfo/python-list


venv questions

2022-08-29 Thread gene heskett

Greetings all;

The command to setup a venv, "python -m venv venv" has no man page that 
I have

found.

So I'm guessing that one of the venv's is the name of the one being 
created. Probably

argv(3) in c parlance.

What I am thinking about is setting up two venv's more or less named for 
the printer

that copy of octoprint will administer,

So how about some tutorial on creating the venv?

But that might create another problem. how to differentiate the servers, 
both of which
will want to use localhost:5000 to serve up their web pages we run 
things with.


Suggested solutions?

Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
 -Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must
first make the law respectable. - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/>
--
https://mail.python.org/mailman/listinfo/python-list


Re: What can I do about this?

2022-08-29 Thread gene heskett

On 8/29/22 15:12, Peter J. Holzer wrote:

On 2022-08-29 13:43:18 -0400, gene heskett wrote:

On 8/29/22 12:50, Mark Bourne wrote:

Roel Schroeven wrote:

$ pip3 install -r requirements.txt  # finally invoke pip3

or:

$ {path_to_venv}/bin/pip3 install -r requirements.txt

That got me to showstopper #2: (lengthy warniing)


[...]

   checking for dbus-1 >= 1.8... no
   configure: error: Package requirements (dbus-1 >= 1.8) were not met:

   No package 'dbus-1' found

Since this message comes from configure, it is probably looking
for the development version of the dbus library here.

 apt search dbus-1

reveals (among other things):

 libdbus-1-dev/jammy 1.12.20-2ubuntu4 amd64
   simple interprocess messaging system (development headers)

(this is on Ubuntu, so the version number is probably different, but the
package name should be the same as on Debian.)

So you invoke

 apt install libdbus-1-dev

and try again. At which point you will probably discove another missing
library. Rinse and repeat.
You left out the wash, ;) The next missing dev was a gtk thingy, but 
search only returned
one .dev. One for spice-gtk, and that pulled in around 100 more 
packages, and now its stuck
on wxPython for about 35 minutes and, way into swap, like several 
hundred megs &
growing. I even went to its keyboard and shut down chromium to give it 
more play
room. Didn't seem to help though. But it hasn't errored, and swap is 
going  down a
meg here and there. Pounding that poor, cheap sd card all to hell I 
expect. At some point,
I'll unpack a startech usb3-sata cable and try an SSD. But I'll not 
disturb this just yet.


Works well on an r-pi4b where I can build linuxcnc in half an hour from 
the git pull. I
run a 3/4 ton, 80 yo Sheldon lathe with linuxcnc just to see if I could 
do it, first on an rpi3b.
Had to build my own realtime kernel and figure out how to install it 
because I wanted to
do it on a pi, got black holed on their forum. The amazing part is that 
the tarball to install

it is only 28 megs uncompressed.

Ideally the README should mention such dependencies, but since the exact
names of the packages depend on the distribution, it will often be vague
unless you happen to use the same distribution as the developer.
Your forgot to mention that each packager is working in his own sound 
proof booth, so
each comes up with a somewhat different way to pound that square peg 
into a 7 point hole.

;o)>

It was obviously going to take hours so I took a nap and 4 hours later 
it had left out a
few things but kept on going until it hit another showstopper while 
building wxPython-4.1.

At which point it spit out 2600 some lines of backtrace.

Ending with this:
 In file included from 
../../../../sip/cpp/sip_glcanvaswxGLContext.cpp:10:
  ../../../../sip/cpp/sipAPI_glcanvas.h:865:198: error: 
‘wxGLCanvasName’ was not declared in this scope; did you mean ‘wxGLCanvas’?
    865 | wxGLCanvas(wxWindow *parent, const wxGLAttributes 
, wxWindowID id=wxID_ANY, const wxPoint 
=wxDefaultPosition, const wxSize =wxDefaultSize, long style=0, 
const wxString =wxGLCanvasName, const wxPalette =wxNullPalette)

| ^~
| wxGLCanvas

  Waf: Leaving directory 
`/tmp/pip-install-1myz6noi/wxpython_5fdcad39f0c544599dd49fdd522391f2/build/waf/3.1/gtk3'

  Build failed
   -> task in '_glcanvas' failed with exit status 1 (run with -v to 
display more information)
   -> task in '_glcanvas' failed with exit status 1 (run with -v to 
display more information)
   -> task in '_glcanvas' failed with exit status 1 (run with -v to 
display more information)
   -> task in '_glcanvas' failed with exit status 1 (run with -v to 
display more information)
  Command '"/home/gene/printrun/Printrun/venv/bin/python3" 
/tmp/pip-install-1myz6noi/wxpython_5fdcad39f0c544599dd49fdd522391f2/bin/waf-2.0.19 
--wx_config=/tmp/pip-install-1myz6noi/wxpython_5fdcad39f0c544599dd49fdd522391f2/build/wxbld/gtk3/wx-config 
--gtk3 --python="/home/gene/printrun/Printrun/venv/bin/python3" 
--out=build/waf/3.1/gtk3 configure build ' failed with exit code 1.

  Finished command: build_py (100m40.712s)
  Finished command: build (171m37.482s)
  Command '"/home/gene/printrun/Printrun/venv/bin/python3" -u 
build.py build' failed with exit code 1.

  [end of output]

  note: This error originates from a subprocess, and is likely not a 
problem with pip.

error: legacy-install-failure

× Encountered error while trying to install package.
╰─> wxPython

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

Now, I have the unpacked tarball of wxPython-4.2.0 sitting in 
/home/gene/src.


Where would I mv it to to substituted for the 4.1 since 4.1 isn't quite 
ready for prime time?


I changed the 1 to a 2 in requirements.txt, but that exited in a few 
seconds after it
do

Re: What can I do about this?

2022-08-29 Thread gene heskett

On 8/29/22 12:50, Mark Bourne wrote:

Roel Schroeven wrote:

Op 29/08/2022 om 2:55 schreef gene heskett:

On 8/28/22 19:39, Peter J. Holzer wrote:

On 2022-08-28 18:40:17 -0400, gene heskett wrote:
Persuant to my claim the py3.10 is busted, here is a sample. This 
is me,

trying to make
pronterface, inside a venv: When the package manager version will 
only run

the gui-less "pronsole"
but nothing else from that all python kit runs as it should or at 
all.
 From the package-managers install in 
/usr/share/doc/printrun-common/ I

copied requirements.txt
into the venv, and ran this command line:

gene@rock64:~/venv$ pip3 install -r requirements.txt

You are almost certainly *not* in a venv here. First, your prompt
doesn't show the name of the venv,
I've created that several times, as octoprint won''t run without it 
either.
I found a way to autostart it on reboots and octoprint seems happy 
with it
I agree with Peter: it doesn't look as if you are invoking the pip3 
in the venv. Just making the venv-directory the current directory 
doesn't activate it.


As a diagnostic, ask the OS which pip3 is actually used:

$ type -a pip3

Does that show the pip3 installed in the venv? Or the system-wide 
one? If it's not the pip3 in the venv, well, then that's the problem 
(or at least part of the problem). Solution: first check whether the 
venv really contains 'pip3' (as opposed to eg. just 'pip'): list the 
contents of the bin subdirectory of the venv. If not, use 'pip' or 
whatever instead. Then to make sure you use the one in the venv, 
either activate the venv or explicitly specify the path when invoking 
pip/pip3 (and likewise for python/python3).


So either (assuming you're using bash):

$ source {path_to_venv}/bin/pip3  # activate the venv


I think this first line should probably be:

$ source {path_to_venv}/bin/activate  # activate the venv

i.e. with `activate` rather than `pip3`?


$ type -a pip3  # check whether now the correct pip3 is used
$ pip3 install -r requirements.txt  # finally invoke pip3

or:

$ {path_to_venv}/bin/pip3 install -r requirements.txt

That got me to showstopper #2: (lengthy warniing)

(venv) gene@rock64:~/printrun/Printrun$ ./venv/bin/pip3 install -r 
requirements.txt
Ignoring pyobjc-framework-Cocoa: markers 'sys_platform == "darwin"' 
don't match your environment
Ignoring pyreadline: markers 'sys_platform == "win32"' don't match your 
environment
Requirement already satisfied: pyserial>=3.0 in 
./venv/lib/python3.10/site-packages (from -r requirements.txt (line 1)) 
(3.5)

Collecting wxPython==4.1.0
  Using cached wxPython-4.1.0.tar.gz (65.8 MB)
  Preparing metadata (setup.py) ... done
Collecting numpy>=1.8.2
  Using cached 
numpy-1.23.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl 
(13.9 MB)
Requirement already satisfied: pyglet>=1.1 in 
./venv/lib/python3.10/site-packages (from -r requirements.txt (line 4)) 
(1.5.26)

Collecting cffi
  Using cached 
cffi-1.15.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl 
(449 kB)

Collecting cairocffi
  Using cached cairocffi-1.3.0.tar.gz (88 kB)
  Preparing metadata (setup.py) ... done
Collecting cairosvg>=1.0.9
  Using cached CairoSVG-2.5.2-py3-none-any.whl (45 kB)
Collecting psutil>=2.1
  Using cached psutil-5.9.1-cp310-cp310-linux_aarch64.whl
Collecting lxml>=2.9.1
  Using cached 
lxml-4.9.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_24_aarch64.whl 
(6.6 MB)

Collecting appdirs>=1.4.0
  Using cached appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Collecting dbus-python>=1.2.0
  Using cached dbus-python-1.2.18.tar.gz (578 kB)
  Preparing metadata (setup.py) ... done
Collecting pillow
  Using cached Pillow-9.2.0-cp310-cp310-manylinux_2_28_aarch64.whl (3.1 MB)
Collecting six
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting pycparser
  Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
Collecting cssselect2
  Using cached cssselect2-0.6.0-py3-none-any.whl (15 kB)
Collecting tinycss2
  Using cached tinycss2-1.1.1-py3-none-any.whl (21 kB)
Collecting defusedxml
  Using cached defusedxml-0.7.1-py2.py3-none-any.whl (25 kB)
Requirement already satisfied: webencodings in 
./venv/lib/python3.10/site-packages (from 
cssselect2->cairosvg>=1.0.9->-r requirements.txt (line 7)) (0.5.1)
Using legacy 'setup.py install' for wxPython, since package 'wheel' is 
not installed.
Using legacy 'setup.py install' for cairocffi, since package 'wheel' is 
not installed.
Using legacy 'setup.py install' for dbus-python, since package 'wheel' 
is not installed.
Installing collected packages: dbus-python, appdirs, tinycss2, six, 
pycparser, psutil, pillow, numpy, lxml, defusedxml, wxPython, 
cssselect2, cffi, cairocffi, cairosvg

  Running setup.py install for dbus-python ... error
  error: subprocess-exited-with-error

  × Running setup.py install for dbus-python did not run successfully.
  │ exit code: 1
  ╰─> [166 lines of o

Re: What can I do about this?

2022-08-29 Thread gene heskett

On 8/29/22 05:25, Roel Schroeven wrote:

Op 29/08/2022 om 2:55 schreef gene heskett:

On 8/28/22 19:39, Peter J. Holzer wrote:

On 2022-08-28 18:40:17 -0400, gene heskett wrote:
Persuant to my claim the py3.10 is busted, here is a sample. This 
is me,

trying to make
pronterface, inside a venv: When the package manager version will 
only run

the gui-less "pronsole"
but nothing else from that all python kit runs as it should or at all.
 From the package-managers install in 
/usr/share/doc/printrun-common/ I

copied requirements.txt
into the venv, and ran this command line:

gene@rock64:~/venv$ pip3 install -r requirements.txt

You are almost certainly *not* in a venv here. First, your prompt
doesn't show the name of the venv,
I've created that several times, as octoprint won''t run without it 
either.
I found a way to autostart it on reboots and octoprint seems happy 
with it
I agree with Peter: it doesn't look as if you are invoking the pip3 in 
the venv. Just making the venv-directory the current directory doesn't 
activate it.


As a diagnostic, ask the OS which pip3 is actually used:

$ type -a pip3


I get different answers in or out of the venv

venv) gene@rock64:~/printrun/Printrun$ type -a pip3
pip3 is /home/gene/printrun/Printrun/venv/bin/pip3
pip3 is /usr/bin/pip3
pip3 is /bin/pip3

or:

gene@rock64:~/src/wxPython-4.2.0$ type -a pip3
pip3 is /usr/bin/pip3
pip3 is /bin/pip3

but with all the build instructions I've now followed, I now have at 
least 3 different

venv subdirs scattered about.

one in /home/gene,
one in /home/gene/Octoprint,
and one in /home/gene/printrun

each with its own bin subdir, but not identical contents.

Does that show the pip3 installed in the venv? Or the system-wide one? 
If it's not the pip3 in the venv, well, then that's the problem (or at 
least part of the problem). Solution: first check whether the venv 
really contains 'pip3' (as opposed to eg. just 'pip'): list the 
contents of the bin subdirectory of the venv. 

gene@rock64:~/venv/bin$ ls -l
total 36
-rw-r--r-- 1 gene gene 1982 Aug 21 13:12 activate
-rw-r--r-- 1 gene gene  908 Aug 21 13:12 activate.csh
-rw-r--r-- 1 gene gene 2050 Aug 21 13:12 activate.fish
-rw-r--r-- 1 gene gene 9033 Aug 21 13:12 Activate.ps1
-rwxrwxr-x 1 gene gene  232 Aug 21 13:12 pip
-rwxrwxr-x 1 gene gene  232 Aug 21 13:12 pip3
-rwxrwxr-x 1 gene gene  232 Aug 21 13:12 pip3.10
lrwxrwxrwx 1 gene gene    7 Aug 21 13:11 python -> python3
lrwxrwxrwx 1 gene gene   16 Aug 21 13:11 python3 -> /usr/bin/python3
lrwxrwxrwx 1 gene gene    7 Aug 21 13:11 python3.10 -> python3

If not, use 'pip' or whatever instead. Then to make sure you use the 
one in the venv, either activate the venv or explicitly specify the 
path when invoking pip/pip3 (and likewise for python/python3).


So either (assuming you're using bash):

$ source {path_to_venv}/bin/pip3  # activate the venv
$ type -a pip3  # check whether now the correct pip3 is used
$ pip3 install -r requirements.txt  # finally invoke pip3

or:

$ {path_to_venv}/bin/pip3 install -r requirements.txt

Activating the venv is easier if you're going to use multiple commands 
in the venv. Note that activating the venv only has effect on the 
current shell; other shells are unaffected, and when you close the 
current shell the venv is not activated anymore.
Explicitly using the path is easier for one-off calls, or in things 
like crontab.


I've not had to deal with venv's before. Can more than one of these venv 
things
peacefully coexist?  Seems like they should. If there is sufficient nv 
memory,

But I am a 100% new bee here. The card itself is a 64GB.

I also have the git clone of wxPython-4.2.0, but nothing I can invoke 
there builds it.
But there are no specific linux instructions there, osx and winders 
only. The package

managers version of wxPython-4.0.7 apparently is not new enough.

It seems to me these utility's ought to be able to all live in one venv, 
or there should be
an env python path that is specific to each application. This would lead 
to a huge waste
of nv storage by duplicating a venv for each app, not sensible when the 
target of the venv

is a common arm64 system. All broadcom for gpio etc.

Presently, Octoprint works, and so does pronsole which has no gui, but 
Octoprint

is a one printer show, and I've a small farm of printers. Most of which have
failed the PETG test ,but that claimed to be PETG compatible, but 
quickly failed
when fed a roll of it. PETG is the same plastic forever bottles are made 
from, much
stronger than the PLA most folks use for artwork and what I'm doing 
needs its
physical strength. It also raises the printhead temp around 50C, which 
causes
teflon to slowly ablate with phosgene gas as output. Dangerous stuff, 
and high

maintenance too.

What I hope to be the 2nd workhorse  is an Ender 5 Plus, a huge core-xy 
thing that
now has a 300C capable head and an orbiter-v2 direct drive, heavy enough 
I've
had to restrict  its top speed fro

Re: What can I do about this?

2022-08-29 Thread gene heskett

On 8/28/22 20:51, gene heskett wrote:

On 8/28/22 19:36, Chris Angelico wrote:

On Mon, 29 Aug 2022 at 08:41, gene heskett  wrote:

Greatings all;

Persuant to my claim the py3.10 is busted, here is a sample. This is 
me,

trying to make
pronterface, inside a venv: When the package manager version will only
run the gui-less "pronsole"
but nothing else from that all python kit runs as it should or at all.
  From the package-managers install in 
/usr/share/doc/printrun-common/ I

copied requirements.txt
into the venv, and ran this command line:

gene@rock64:~/venv$ pip3 install -r requirements.txt
Defaulting to user installation because normal site-packages is not
writeable

I don't think Python 3.10 is busted; it's more likely your venv is not
providing a pip3 command. Try "pip3 --version",

gene@rock64:~/venv$ pip3 --version
pip 22.0.2 from /usr/lib/python3/dist-packages/pip (python 3.10)

  "python3 --version",

gene@rock64:~/venv$ python3 --version
Python 3.10.4


and then "python3 -m pip install -r requirements.txt".

gene@rock64:~/venv$ python3 -m pip install -r requirements.txt
Defaulting to user installation because normal site-packages is not 
writeable
Ignoring pyobjc-framework-Cocoa: markers 'sys_platform == "darwin"' 
don't match your environment
Ignoring pyreadline: markers 'sys_platform == "win32"' don't match 
your environment
Requirement already satisfied: pyserial>=3.0 in 
/usr/lib/python3/dist-packages (from -r requirements.txt (line 1)) (3.5)

Collecting wxPython>=4.1
  Using cached wxPython-4.2.0.tar.gz (71.0 MB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [8 lines of output]
  Traceback (most recent call last):
    File "", line 2, in 
    File "", line 34, in 
    File 
"/tmp/pip-install-g3phtj8f/wxpython_17898b1c7a6f49a690adac623d839514/setup.py", 
line 27, in 
  from buildtools.config import Config, msg, opj, runcmd, 
canGetSOName, getSOName
    File 
"/tmp/pip-install-g3phtj8f/wxpython_17898b1c7a6f49a690adac623d839514/buildtools/config.py", 
line 30, in 

  from attrdict import AttrDict
  ModuleNotFoundError: No module named 'attrdict'
  [end of output]

  note: This error originates from a subprocess, and is likely not a 
problem with pip.

error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.



Why do you keep blaming Python as if it's fundamentally broken?

ChrisA
Given the above output, do you have a better target? It also fails to 
build linuxcnc on

bullseye for armhf, on an rpi4b with 2 gigs of dram.
Works perfectly on buster, but I expect that has been fixed  since 
linuxcnc

looks like its good to go for inclusion in bookworm.


I;ve created a separate venv to install printrun, I does not work either.

So in that venv, I've done a git clone of printrun. Then after that, it 
appears there is
no such critter as a wxPython.whl for the arms, only x86_64's. So whats 
the diff if it
run ok on a pi, or claims it does. I don't have a spare rpi4b and they 
are equ to teeth

for a chicken ATM.

What, on the arms, substitutes for the missing "*.whl" file?


Take care and stay well Chris.

Cheers, Gene Heskett.



Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/>

--
https://mail.python.org/mailman/listinfo/python-list


Re: What can I do about this?

2022-08-28 Thread gene heskett

On 8/28/22 19:39, Peter J. Holzer wrote:

On 2022-08-28 18:40:17 -0400, gene heskett wrote:

Persuant to my claim the py3.10 is busted, here is a sample. This is me,
trying to make
pronterface, inside a venv: When the package manager version will only run
the gui-less "pronsole"
but nothing else from that all python kit runs as it should or at all.
 From the package-managers install in /usr/share/doc/printrun-common/ I
copied requirements.txt
into the venv, and ran this command line:

gene@rock64:~/venv$ pip3 install -r requirements.txt

You are almost certainly *not* in a venv here. First, your prompt
doesn't show the name of the venv,

I've created that several times, as octoprint won''t run without it either.
I found a way to autostart it on reboots and octoprint seems happy with it

Defaulting to user installation because normal site-packages is not
writeable

and second, because of this message, which you don't get if you invoke
pip inside a venv (at least not if you can write it).

So, first thing to do is to create the venv and activate it.

Procedure? Or a url to it?

Thank you Peter. Take care & stay well.

 hp





Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/>

--
https://mail.python.org/mailman/listinfo/python-list


Re: What can I do about this?

2022-08-28 Thread gene heskett

On 8/28/22 19:36, Chris Angelico wrote:

On Mon, 29 Aug 2022 at 08:41, gene heskett  wrote:

Greatings all;

Persuant to my claim the py3.10 is busted, here is a sample. This is me,
trying to make
pronterface, inside a venv: When the package manager version will only
run the gui-less "pronsole"
but nothing else from that all python kit runs as it should or at all.
  From the package-managers install in /usr/share/doc/printrun-common/ I
copied requirements.txt
into the venv, and ran this command line:

gene@rock64:~/venv$ pip3 install -r requirements.txt
Defaulting to user installation because normal site-packages is not
writeable

I don't think Python 3.10 is busted; it's more likely your venv is not
providing a pip3 command. Try "pip3 --version",

gene@rock64:~/venv$ pip3 --version
pip 22.0.2 from /usr/lib/python3/dist-packages/pip (python 3.10)

  "python3 --version",

gene@rock64:~/venv$ python3 --version
Python 3.10.4


and then "python3 -m pip install -r requirements.txt".

gene@rock64:~/venv$ python3 -m pip install -r requirements.txt
Defaulting to user installation because normal site-packages is not 
writeable
Ignoring pyobjc-framework-Cocoa: markers 'sys_platform == "darwin"' 
don't match your environment
Ignoring pyreadline: markers 'sys_platform == "win32"' don't match your 
environment
Requirement already satisfied: pyserial>=3.0 in 
/usr/lib/python3/dist-packages (from -r requirements.txt (line 1)) (3.5)

Collecting wxPython>=4.1
  Using cached wxPython-4.2.0.tar.gz (71.0 MB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [8 lines of output]
  Traceback (most recent call last):
    File "", line 2, in 
    File "", line 34, in 
    File 
"/tmp/pip-install-g3phtj8f/wxpython_17898b1c7a6f49a690adac623d839514/setup.py", 
line 27, in 
  from buildtools.config import Config, msg, opj, runcmd, 
canGetSOName, getSOName
    File 
"/tmp/pip-install-g3phtj8f/wxpython_17898b1c7a6f49a690adac623d839514/buildtools/config.py", 
line 30, in 

  from attrdict import AttrDict
  ModuleNotFoundError: No module named 'attrdict'
  [end of output]

  note: This error originates from a subprocess, and is likely not a 
problem with pip.

error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.



Why do you keep blaming Python as if it's fundamentally broken?

ChrisA
Given the above output, do you have a better target? It also fails to 
build linuxcnc on

bullseye for armhf, on an rpi4b with 2 gigs of dram.
Works perfectly on buster, but I expect that has been fixed  since linuxcnc
looks like its good to go for inclusion in bookworm.

Take care and stay well Chris.

Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/>

--
https://mail.python.org/mailman/listinfo/python-list


What can I do about this?

2022-08-28 Thread gene heskett

Greatings all;

Persuant to my claim the py3.10 is busted, here is a sample. This is me, 
trying to make
pronterface, inside a venv: When the package manager version will only 
run the gui-less "pronsole"

but nothing else from that all python kit runs as it should or at all.
From the package-managers install in /usr/share/doc/printrun-common/ I 
copied requirements.txt

into the venv, and ran this command line:

gene@rock64:~/venv$ pip3 install -r requirements.txt
Defaulting to user installation because normal site-packages is not 
writeable
Ignoring pyobjc-framework-Cocoa: markers 'sys_platform == "darwin"' 
don't match your environment
Ignoring pyreadline: markers 'sys_platform == "win32"' don't match your 
environment
Requirement already satisfied: pyserial>=3.0 in 
/usr/lib/python3/dist-packages (from -r requirements.txt (line 1)) (3.5)

Collecting wxPython>=4.1
  Using cached wxPython-4.2.0.tar.gz (71.0 MB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [8 lines of output]
  Traceback (most recent call last):
    File "", line 2, in 
    File "", line 34, in 
    File 
"/tmp/pip-install-c9gmbpsr/wxpython_1a0e096c87d84229b709c31ccb920a24/setup.py", 
line 27, in 
  from buildtools.config import Config, msg, opj, runcmd, 
canGetSOName, getSOName
    File 
"/tmp/pip-install-c9gmbpsr/wxpython_1a0e096c87d84229b709c31ccb920a24/buildtools/config.py", 
line 30, in 

  from attrdict import AttrDict
  ModuleNotFoundError: No module named 'attrdict'
  [end of output]

  note: This error originates from a subprocess, and is likely not a 
problem with pip.

error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

What do I need to do to fix this? It supposedly works on a rpi4b, but 
this is a rock64, V2,

older stuff with 4 gigs of dram.

Thank you for any help you can toss my way.

Cheers, Gene Heskett.

--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/>

--
https://mail.python.org/mailman/listinfo/python-list


Re: python 3.10 vs breakage

2022-08-26 Thread gene heskett

On 8/26/22 21:35, Michael Torrie wrote:

On 8/26/22 14:37, gene heskett wrote:

Greetings all;

Its now become obvious that 3.10 has broken some things. I can't build
linuxcnc with it. And
Octoprint has quit talking to 3d printers, now pronterface won't buy it,
can't find a 4.0.7
version of wxPython with it sitting there staring at us.

I have Fedora 35 here, nearing it's end of life. It has Python 3.10.6,
and wxPython 4.0.7.  I installed Pronterface 2.0.0 from the Fedora repos
and it runs fine as near as I can tell.  So there's no inherent
incompatibility with Python 3.10 and wxPython 4.0.7.


Whats chances of a fixed version for bookworm? Or even a bugs fixed
release for bullseye?

Seems like it is a distro-specific problem; I cannot replicate your
error with pronterface on Fedora 35.

I have no idea why octoprint won't work.

This is good to know as it helps to narrow down the battlefield.

Octoprint now gets stuck claiming the printer is continuously requesting 
a repeat of line one,
but It works fine if the gcode file is put on its sd card and printed 
from the printers menu.


Octoprint is supposed to be able to handle more than one printer, but 
this change occurred after
I had plugged in another printer and tried to add it. It was working 
great with a prusa mk3S+.


And I'm trying to resurrect an Ender 5 Plus that has forgotten how to 
use any of the 3 BLTouch's
I have. So I've replaced the head with a volcano version of an E3D-V6 
and have a prox switch
with the wrong logic output mounted in place of the BLTouch. It seems 
amazon is not immune to
ID10T vendors. I ordered npn-no's and got pnp-nc's. Even the label on 
the devices cable is wrong.


The head replacement includes an Orbiter V2 extruder sitting on top of 
the volcano, with me
designing and printing the adapters. but still with the long capricorn 
tube feed to
absorb the jerking on the feed spool the mk3s+ does. Even with the much 
improved grip a bondtech
LGX extruder on the mk3s+ gives, I can still see artifacts of the spool 
jerk as it runs left/right

in the print.

Vertical flex in the head transport suspension rods I believe. So I've 
eliminated that
geometry error on the Ender 5 plus by interposing a fixed length of 
tubing so it doesn't

jerk on the spool as the head moves.

The Dell with an i5 in it had its video out nullified by some noisy 
weather 20 days back,
so I pulled out a 5 amp 5 volt box and hung a rock64/w/4gigs on it to 
run octoprint on, but
it quit working on the mk3s+ when I plugged in the Ender. I'll probably 
have to re-install

it all. Easy enough since I have armbian bullseye's img file here.

The target of all this is production of a woodworking tool using modern 
cnc wood carving and
3d printing, of a device I see selling in the 3 digit price range on 
ebay that you'll hand
down to your great grandkids if they are interested in fine woodworking 
as a means to buy
groceries, good housing and nice wheels.  At my age, I'm that great 
great grandpa. Looking to
supplement my SS in my dotage. A retired broadcast engineer, a C.E.T., 
approaching the end
of my time here as I look at the calendar and see my 88th coming up 
shortly. I'd like to
leave something useful behind. It will take at least 2 working printers 
to keep up with the
output of one of my milling machines if sales materialize. 3d printers 
are not fast. A screw
I can carve in 2 days, takes about 2 weeks to print the rest of it. 
Production, 20 a year, maybe.


Thanks everybody.  Take care and stay well.

Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/>

--
https://mail.python.org/mailman/listinfo/python-list


Re: python 3.10 vs breakage

2022-08-26 Thread gene heskett

On 8/26/22 16:54, Paul Bryan wrote:

Why can't you build linuxcnc with it? Why has Octoprint quit talking to
3d printers? Why won't pronterface buy it? Why can't you find a 4.0.7
version of wxPython? Why is it sitting there staring at you? What is
bookworm? What is bullseye?


Bullseye is the current debian-11, buster is last years, bookworm is next.

Linuxcnc builds just fine on armhf buster, with its python-3.9.4. fails 
from 3.10 in bullseye. Pronterface.py can't find wxPython 4.0 or 
greater, with 4.0.7 installed. Octoprint did work, but has now stopped. 
So my 3d printing has become a sneakernet exercise again. Adding 3 to 5 
more steps between OpenCSAD and the printer that will make my designs. 
The error code file from this mornings attempt to run pronterface.py is at


<http://geneslinuxbox.net:6309/armhf>

Is there a workaround?

Thank you.

On Fri, 2022-08-26 at 16:37 -0400, gene heskett wrote:

Greetings all;

Its now become obvious that 3.10 has broken some things. I can't
build
linuxcnc with it. And
Octoprint has quit talking to 3d printers, now pronterface won't buy
it,
can't find a 4.0.7
version of wxPython with it sitting there staring at us.

Whats chances of a fixed version for bookworm? Or even a bugs fixed
release for bullseye?

Thanks all.

Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
   soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law
respectable.
   - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/>






Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/>

--
https://mail.python.org/mailman/listinfo/python-list


python 3.10 vs breakage

2022-08-26 Thread gene heskett

Greetings all;

Its now become obvious that 3.10 has broken some things. I can't build 
linuxcnc with it. And
Octoprint has quit talking to 3d printers, now pronterface won't buy it, 
can't find a 4.0.7

version of wxPython with it sitting there staring at us.

Whats chances of a fixed version for bookworm? Or even a bugs fixed 
release for bullseye?


Thanks all.

Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/>

--
https://mail.python.org/mailman/listinfo/python-list


Re: Behavior of the for-else construct

2022-03-04 Thread gene heskett
On Friday, 4 March 2022 02:18:51 EST Chris Angelico wrote:
> On Fri, 4 Mar 2022 at 18:13, Dieter Maurer  wrote:
> > Rob Cliffe wrote at 2022-3-4 00:13 +:
> > >I find it so hard to remember what `for ... else` means that on the
> > >very few occasions I have used it, I ALWAYS put a comment
> > >alongside/below the `else` to remind myself (and anyone else
> > >unfortunate enough to read my code) what triggers it, e.g.
> > >
> > > for item in search_list:
> > > ...
> > > ... break
> > > 
> > > else: # if no item in search_list matched the criteria
> > >
> > >You get the idea.
> > >If I really want to remember what this construct means, I remind
> > >myself that `else` here really means `no break`.  Would have been
> > >better if it had been spelt `nobreak` or similar in the first
> > >place.
> > 
> > One of my use cases for `for - else` does not involve a `break`:
> > the initialization of the loop variable when the sequence is empty.
> > It is demonstrated by the following transscript:
> > 
> > ```pycon
> > 
> > >>> for i in range(0):
> > ...   pass
> > ...
> > 
> > >>> i
> > 
> > Traceback (most recent call last):
> >   File "", line 1, in 
> > 
> > NameError: name 'i' is not defined
> > 
> > >>> for i in range(0):
> > ...   pass
> > ... else: i = None
> > ...
> > 
> > >>> i
> > 
> > ```
> > 
> > For this use case, `else` is perfectly named.
> 
> What's the point of this? Why not just put "i = None" after the loop?
> 
That makes the logic work, but who then cleans up the trash on the stack.  
Thats a memory leak.

> ChrisA
> --
> https://mail.python.org/mailman/listinfo/python-list
> .


Cheers, Gene Heskett.
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis



-- 
https://mail.python.org/mailman/listinfo/python-list


Re: All permutations from 2 lists

2022-03-02 Thread gene heskett
On Wednesday, 2 March 2022 10:49:11 EST Larry Martell wrote:
> On Wed, Mar 2, 2022 at 10:26 AM Antoon Pardon  
wrote:
> > Op 2/03/2022 om 15:58 schreef Larry Martell:
> > > On Wed, Mar 2, 2022 at 9:37 AM Antoon Pardon  
wrote:
> > >>>>> If one list is empty I want just the other list. What I am
> > >>>>> doing is
> > >>>>> building a list to pass to a mongodb query. If region is empty
> > >>>>> then I
> > >>>>> want to query for just the items in the os list. I guess I can
> > >>>>> test
> > >>>>> for the lists being empty, but I'd like a solution that handles
> > >>>>> that
> > >>>>> as down the road there could be more than just 2 lists.
> > >>>> 
> > >>>> How about the following: Keep a list of your lists you want to
> > >>>> permute over. Like the following:
> > >>>> 
> > >>>> permutation_elements = [["Linux","Windows"],["us-east-1",
> > >>>> "us-east-2"]]
> > >>>> 
> > >>>> permutation = itertools.product(*permutation_elements)
> > >>>> 
> > >>>> If you don't include the empty list, you will get more or less
> > >>>> what you seem to want.
> > >>> 
> > >>> But I need to deal with that case.
> > >> 
> > >> What does that mean? How does using the above method to produce
> > >> the permutations you want, prevent you from dealing with an empty
> > >> list however you want when you encounter them? Just don't add
> > >> them to the permutation_elements.> > 
> > > I need to know what items are in which position. If sometimes the
> > > regions are in one index and sometimes in another will not work for
> > > me.
> > 
> > I am starting to suspect you didn't think this through. What you are
> > telling here contradicts what you told earlier that if either list
> > was empty, you just wanted the other list. Because then you wouldn't
> > know what items were in that list.
> > 
> > The only solution I can see now is that if a list is empty, you
> > either add [None] or [""] to the permutation_elements (whatever
> > suits you better) and then use itertools.product
> 
> I found a way to pass this directly into the query:
> 
> def query_lfixer(query):
> for k, v in query.items():
> if type(v)==list:
> query[k] = {"$in": v}
> return query
> 
> self._db_conn[collection_name].find(query_lfixer(query))

I take it back, kmail5 had decided it was a different thread. My bad, no 
biscuit.

Cheers, Gene Heskett.
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>



-- 
https://mail.python.org/mailman/listinfo/python-list


Re: All permutations from 2 lists

2022-03-02 Thread gene heskett
On Wednesday, 2 March 2022 17:46:49 EST Larry Martell wrote:
> On Wed, Mar 2, 2022 at 5:31 PM Joel Goldstick 
 wrote:
> > On Wed, Mar 2, 2022 at 5:07 PM Larry Martell 
 wrote:
> > > On Wed, Mar 2, 2022 at 5:00 PM Cameron Simpson  
wrote:
> > > > On 02Mar2022 08:29, Larry Martell  
wrote:
> > > > >On Tue, Mar 1, 2022 at 7:32 PM Rob Cliffe 
 wrote:
> > > > >> I think itertools.product is what you need.
> > > > >> Example program:
> > > > >> 
> > > > >> import itertools
> > > > >> opsys = ["Linux","Windows"]
> > > > >> region = ["us-east-1", "us-east-2"]
> > > > >> print(list(itertools.product(opsys, region)))
> > > > >
> > > > >This does not work if region = []. I wrote in question that
> > > > >either
> > > > >list could be empty.
> > > > 
> > > > What do you want to get if a list is empty? You haven't said. My
> > > > personal expectation would be an empty result.
> > > > 
> > > > Alternatively, if you expect an empty list to imply some single
> > > > default> > > 
> > > > the the experession:
> > > >     the_list or (the_default,)
> > > > 
> > > > might be of use.
> > > 
> > > I've solved the issue.
> > > --
> > > https://mail.python.org/mailman/listinfo/python-list
> > 
> > Would you be so kind as to show the results of your solution?
> 
> I posted it at 10:49am Eastern time.

You may want to repost it Larry, at 9pm eastern it has not arrived here.

Cheers, Gene Heskett.
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>



-- 
https://mail.python.org/mailman/listinfo/python-list


front end gfx for a redpitaya VNA

2021-10-23 Thread Gene Heskett
Greetings all;

I have acquired the linux version of the front end for a redpitaya Vector 
Network Analyzer.

Putting it on an rpi4b running raspbian buster, it gets to line 32 and 
bails out with this error:

pi@rpi4:/media/pi/workspace/vna-linux-tool $ python3 ./vna.py
Traceback (most recent call last):
  File "./vna.py", line 32, in 
from mpldatacursor import datacursor
ModuleNotFoundError: No module named 'mpldatacursor'

I have installed all the stuff that a search for "python-mpl" finds in 
synaptic, no change in the error above.

Does anyone know where this resource might be found?

Never mind, I finally remembered pip3, which found it, and the linux 
front end now runs. All I need to do now is get the device out of my 
truck and plug it into my network.

Progress, for some definition of the word. :o)

Thank you all who might have posted the obvious.

Cheers, Gene Heskett.
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


front end gfx for a redpitaya VNA

2021-10-23 Thread Gene Heskett
Greetings all;

I have acquired the linux version of the front end for a redpitaya Vector 
Network Analyzer.

Putting it on an rpi4b running raspbian buster, it gets to line 32 and 
bails out with this error:

pi@rpi4:/media/pi/workspace/vna-linux-tool $ python3 ./vna.py
Traceback (most recent call last):
  File "./vna.py", line 32, in 
from mpldatacursor import datacursor
ModuleNotFoundError: No module named 'mpldatacursor'

I have installed all the stuff that a search for "python-mpl" finds in 
synaptic, no change in the error above.

Does anyone know where this resource might be found?

Thanks all.

Cheers, Gene Heskett.
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Bloody rubbish

2021-05-06 Thread Gene Heskett
On Thursday 06 May 2021 13:54:23 Skip Montanaro wrote:

> > Machine language is so much simpler, and you can code with just a
> > hexpad.
>
> Pshaa... All you need are front panel switches. ;-) (Yes, I had a
> professor who required is to 'key' in our programs on the front panel,
> of a rack mounted PDP-11 as I recall. Needless to say, we didn't use
> an assembler either. We just wrote raw opcodes and their arguments on
> paper. This was in the late 70s.)
>
> Skip

That brings back memories. I was the ACE at KRCR in Redding CA, and I saw 
a huge quality destroying bottleneck in producing our own commercials 
and proposed to the GM that I wanted to learn something about computers, 
and I thought it would be a way around it, by having it installi the cue 
tones that made an autmatic station break sequencer work, as opposed to 
copying a blank tape from a poor master, then dub copying the finished 
commercial to the bad copy.

Sounded like a good idea, so I ordered a quest super elf board which only 
had a hex keypad and hex monitor, along with a copy of RCA's programming 
the 1802.  This was in 1978 IIRC. That grew an s-100 backplane and a 
$400 4k of static ram kit.  And I built the rest of the interfaceing 
including the video  to lay a new, digital academy leader countdown out 
of whole cloth.

Then I eventually went down the road in search of taller grass. I left 
instructions as to how to patch it for for the ballistics of newer tape 
machines and forgot about it, eventually landing for good in WV as the 
CE at a CBS affiliate in '84.  In '94, I took my then fairly new wife 
who has now passed on from COPD, to meet an aunt of mine, in her 80's as 
I figured I was running out of time to do that, so we booked a flight to 
Portland and she would meet us there and take us to her place in Salem. 
While there, I called that tv station and found out they were still 
using my gismo. 16+ years in a tv stations control room is unheard of 
but they said it was working fine and was one heck of a labor saver.  
With memory of only 4k, I used a lot of self-modifying code, but was 
very carefull to re-init it at the top of the loop. It didn't crash, 
ever. I shanghied an old cart deck that was off speed for power failure 
recovery storage since the thing had only a 256 byte boot eprom.  When I 
left I took a cart with 3 copy's on it, and a paper copy of the hex 
codes and assembly nemonics if it ever grew an assembler, which it 
didn't. I can reach it by standing up to reach the shelf it is on above 
me.

And if I had to fix it today, I could "get my head" back into "my head" 
easier than I can make python work when it doesn't. I'm lurking here, 
trying to learn about python, but TBT, most of you are talking above my 
pay grade.  Way too afraid you are doing some students homework rather 
than dropping into teacher mode, a fault of this list.

Take care and stay well, all of you.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Unsubscribe/can't login

2021-05-05 Thread Gene Heskett
On Tuesday 04 May 2021 23:55:26 Rasig Kosonmontri wrote:

> Hi I wanted to unsubscribe from the python mailing list because I has
> been sending me countless mails over the months but when I try to
> login on my browser it doesn't recognize this email as a user even
> though the mails that are coming it are to this email address
> If there's anything thing to fix or anyway to do this manually please
> let me know
> Thanks

That is usually the security feature of the mailing list software, in 
that often the header info is used to verify that you are not 
maliciously unsubscribiing someone else. Said in plainer english, if you 
have moved ISP's or changed browsers, you aren't you and you cannot 
unsub from a new ISP even if the mailing address is the same.

Occasionally, you may be able to fix it by way of the password recovery 
facility, which will send you a one time pad access to change the pw, 
which may update that and allow you to unsub.

In extremis, write a procmail recipe to send it to /dev/null.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: async watch directory for new files

2021-04-25 Thread Gene Heskett
On Saturday 24 April 2021 16:13:50 Zoran wrote:

> > inotifywait contains several variations of a notifier, I use it
> > rather heavly here to automate such goings on as my incoming e-mail.
>
> Can you be more specific about inotifywait?
> Do you have an link or something?

No need for a link or URL, it should be available from the repo's of your 
distro.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: async watch directory for new files

2021-04-24 Thread Gene Heskett
On Friday 23 April 2021 17:31:40 Zoran wrote:

> Hi,
>
> I need to watch for new files in directory, and when it shows up, I
> should create async task with file's full path for it, and wait for
> new file.
>
> If anyone here used a library for such task, please share which one.
>
> Regards.

inotifywait contains several variations of a notifier, I use it rather 
heavly here to automate such goings on as my incoming e-mail.

The variation I use most is launched by a bash script, when then waits 
for its return with the name of the new file, that bash script then 
takes an action determined by the name that was returned.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: .title() - annoying mistake

2021-03-22 Thread Gene Heskett
On Monday 22 March 2021 22:31:27 Richard Damon wrote:

> On 3/22/21 4:20 PM, Christian Gollwitzer wrote:
> > Am 22.03.21 um 16:03 schrieb Robert Latest:
> >> Chris Angelico wrote:
> >>> Cool thing is, nobody in Python needs to maintain anything here.
> >>
> >> That's great because I'm actually having trouble with sending log
> >> messages over
> >> the socket conection you helped me with, would you mind having a
> >> look?
> >
> > You misunderstood the "here".
> >
> > (native German as well, but I think it means "for keeping .title()
> > up to date)
> >
> > I agree with Chris that .title() can be useful for "title-casing" a
> > single character, whatever that means. It should be documented,
> > though, that it is not suitable to title-case a string, not even in
> > English.
> >
> > Christian
>
> Part of the difficulty in getting clear documentation for this is that
> is it IS somewhat complicated. You title-case a string by Title-casing
> the first character of each word (and the primary issue error that
> started this was the definition of a 'word'), and lower casing the
> rest of the word. The complication comes in that title-casing a
> character 99.99% of the time doesn't give you a character in
> title-case, but more often in upper-case (or uncased). There are
> apparently only 31 actual characters that are 'Title-Case'. Thus the
> action of 'title-casing' a character is a bit strange to describe,
> especially to people used to simple languages which don't have any of
> the characters that cause the issue.
>
> We don't seem to have a problme that upper doesn't always return a
> true 'upper-case', like for '1' because we realize that many character
> don't have case, so it gets largly just assumed we know that. For
> title case, the fact that almost all characters do NOT have a
> 'title-case' form makes things a bit more awkward.
>
> Yes, perhaps the documentation could be made a bit more clear. I do
> note that the documentation for str.capitalize() does talk about using
> actual title case characters if the first character is a digraph.
> Something like that might make sense in the description of str.title()
>
> Note, that str.istitle() doesn't actually check if the character is a
> real 'title case' character, but that the string follows a rule
> similar to what str.title() produces. I am not positive that its
> description exactly matches what .title() produces, but it close, and
> the way it is written, "Python's".istitle() is False, as the s at the
> end needs to be uppper case to satisfy as ' is uncased, so the next
> cased character must be upper case.
>
> --
> Richard Damon

I am as tired of this thread as anybody here. To me, it must be capable 
to subbing a considerably more caligraphic attention getting font and  a 
bit larger in order for it to be worth its space on the drive. We can do 
that in openoffice and its ilk with a bit of bother, but it can be done.  
Learning how to use this just adds more bother because you can do it by 
hand quicker than looking up the man page for this. OTOH, in the average 
title, that should be restricted to the first character only.

However, we've beat this horse to death, so it is not going to rear up 
and win the next Derby. So dig a hole and bury it please.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Fwd: [BUG] missing ')' causes syntax error on next line

2020-07-22 Thread Gene Heskett
On Wednesday 22 July 2020 19:51:42 Chris Angelico wrote:

> On Thu, Jul 23, 2020 at 9:17 AM dn via Python-list
>
>  wrote:
> > However, questions remain:-
> >
> > Robot: any machine or mechanical device that operates automatically
> > with humanlike skill
>
> What about a human that operates mechanically with merely robot-like
> skill? I'm pretty sure I've spoken to them on the phone many times.
>
> ChrisA

Thats more common than you might think Chris.  Whats nice is that you can 
often take over that robot and use his or her hands to troubleshoot an 
off the air tv transmitter from a thousand miles away.  That was my 
field of expertise for 60 years.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: The Real-Time Use of Python in Data Science World!

2020-03-07 Thread Gene Heskett
On Saturday 07 March 2020 16:23:58 Perri Jones wrote:

> Is this training that someone can sign up for, and if so, how do you
> sign up.
This could be legit, but it sure smells like spam to me, so please meet 
sa-learn spam>
> 
> From: priyasudha041...@gmail.com 
> Sent: Saturday, March 7, 2020 12:39 AM
> To: python-announce-l...@python.org 
> Subject: Re: The Real-Time Use of Python in Data Science World!
>
> Besant Technologies providing Python Training in Chennai with expert
> guidance and fully hands-on classes. Python is a high-level
> programming language sometimes it also denoted as the scripting
> language as it provides rapid & fast development and easy of use. Our
> Python Training in Chennai package also includes job placement
> assistance, which is really a bonus point for students. We also help
> students in getting a good job by conducting interviews of ours with
> good IT companies and MNCs too.
>
> https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.
>besanttechnologies.com%2Ftraining-courses%2Fpython-training-institute-i
>n-chennaidata=02%7C01%7C%7Ca4d13696dfe649b76ba308d7c25dd7c2%7C84df
>9e7fe9f640afb435%7C1%7C0%7C637191580609217361sdata=lRZ
>ZiFR6AWxUBu7r90lXNZNlITNSji80S%2Bp%2FVWRWbi8%3Dreserved=0 --
> Python-announce-list mailing list -- python-announce-l...@python.org
> To unsubscribe send an email to python-announce-list-le...@python.org
> https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail
>.python.org%2Fmailman3%2Flists%2Fpython-announce-list.python.org%2F
>;data=02%7C01%7C%7Ca4d13696dfe649b76ba308d7c25dd7c2%7C84df9e7fe9f640afb
>435%7C1%7C0%7C637191580609217361sdata=%2FGx3A6KvX6%2FN
>Ru2mkOwPty9n3Y8Z1tCX0Lmv1Ov1LcI%3Dreserved=0
>
> Support the Python Software Foundation:
>
> https://nam10.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.p
>ython.org%2Fpsf%2Fdonations%2Fdata=02%7C01%7C%7Ca4d13696dfe649b76b
>a308d7c25dd7c2%7C84df9e7fe9f640afb435%7C1%7C0%7C63719158060
>9217361sdata=iEYALDe6NXEt%2BzW9g%2BW4zqLQEJq9kxMPXTFl8nyeg3Q%3D
>p;reserved=0


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Recommendations for intro to python+programming lecture to Humanities MA students

2019-11-21 Thread Gene Heskett
On Thursday 21 November 2019 11:27:11 Dennis Lee Bieber wrote:

>   The only time I had to do less than "automated" installs was my first
> Python -- v1.4 (maybe 1.3) on a Commodore Amiga.
>
That takes us back up the log quite a ways, but it also puts early python 
up against Bill Hawes and his truly did it all, Arexx. All others fell 
by the wayside once we had a compiler for Arexx. But for all the time it 
took Bill to write that, commode-door stiffed him, never paying him a 
dime. He wasn't the only one they stiffed of course.
>
> --
>   Wulfraed Dennis Lee Bieber AF6VN
>   wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: How to delay until a next increment of time occurs ?

2019-11-14 Thread Gene Heskett
On Thursday 14 November 2019 13:05:06 Dennis Lee Bieber wrote:

> On Thu, 14 Nov 2019 09:31:34 +0100, "R.Wieser" 
>
> declaimed the following:
> >What I tried to indicate is that the Pi has 500,000 cycles to work
> > with between two of those time events.   I consider that to be quite
> > a few.
>
>   But the ARM instruction set is not a 1:1 with clock cycles. Loading
> the program counter (in effect, jumps and subroutine calls) takes 5
> cycles on an older ARM 9 core. ARM apparently no longer provides
> instruction cycle data for processors (and suggests one should use
> performance counters to profile sections of code).
>
>   And then one needs to take into account that Python is a byte-code
> interpreted language, wherein an instruction may invoke whole
> subroutines of native code.
>
>   The R-Pi has never, to my knowledge, been billed as suitable for
> industrial/real-time/process-control... It was billed as a device for
> learning -- using Python and simple digital GPIO. The newer ones are
> getting closer to serving as a general desktop computer.
>
Gee I hate to burst your bubble Dennis, but I am currently running a 
cnc'd, 70 yo, 1500 lb, Sheldon 11x54 lathe with a 2GB rpi4. And if it 
wasn't for the cost of changing the interfaces, I am considering 
replacing all my intel stuff running 3 more such machines, with rpi4's. 
The pi's all use an spi interface running at several tens of megabites a 
second, where the wintels are using some variation of the old parport at 
about 5 mb/sec. I think its called progress. But at 85 the grim reaper 
has come calling twice, and blinked twice. I'll get a new aortic valve 
in December, which should lengthen my visit here, but who knows for 
sure?
>
>
> --
>   Wulfraed Dennis Lee Bieber AF6VN
>   wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Fwd: python 8.0

2019-10-25 Thread Gene Heskett
On Friday 25 October 2019 02:35:06 Ebuka Amadi wrote:

> -- Forwarded message -
> From: Ebuka Amadi 
> Date: Thu, 24 Oct 2019 at 22:31
> Subject: python 8.0
> To: 
>
>
> Dear team i downloaded python 8.0 am finding it hard to install it i
> hope to get a step by stem instructions to do this on my PC its a core
> i5

I am just a lurker here, but python is only up to version 3.8. If that is 
python 8, I would wipe it off the system and go get the real thing from 
a genuine python site.  If you paid for it (its free), take whatever 
actions you have to, to get your money back.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: upgrading python on raspbian

2019-10-15 Thread Gene Heskett
On Tuesday 15 October 2019 11:10:41 Dennis Lee Bieber wrote:

> On Tue, 15 Oct 2019 01:30:59 -0400, Gene Heskett
> 
>
> declaimed the following:
> >On Monday 14 October 2019 12:56:22 Gene Heskett wrote:
> >
> >Continueing this thread, I now have a missing function by name,
> > "units", that is preventing LinuxCNC from running.
> >
> >Where in the python 3 world do I find that function?, which in this
> > case controls what it is fed on to a pyvcp display according to a
> > logic signal that tells it whether the machine is in inches mode, or
> > mm mode?
>
>   Well, search your sources for where it is first referenced...
>
>   There can only be three "hiding places" for a bare units() function.
>
> Local file:
>
> def units(...):
>   ...
>
> Imported module:
>
> from module import units
> or
> import module
> units = module.units
>
> Any other usage should be qualified...
>
> something.units(...)
>
>
I think the hal interpretor hides all that from the user. I've since 
discovered the raspbian-10.1 repo has a "units" but I don't think its 
what hal is looking for when it encounters a "loadusr units" command in 
the config file, and apparently its a silent error. I've now installed 
the repo's version, and am rebuilding LinuxCNC right now just to see if 
it now finds it.
>
>   I'd suspect you have the "from m import f" form somewhere, in which
> case you now need to find out what has changed in module "m" that
> resulted in removing the function.
>
> NOTE: "from m import *" would not explicitly list it -- which means
> you need to compare any module using such a * import for changes from
> the version that used to work.
>
Sounds like not fun. :)

Thanks Dennis.
> --
>   Wulfraed Dennis Lee Bieber AF6VN
>   wlfr...@ix.netcom.comhttp://wlfraed.microdiversity.freeddns.org/


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: upgrading python on raspbian

2019-10-14 Thread Gene Heskett
On Monday 14 October 2019 12:56:22 Gene Heskett wrote:

Continueing this thread, I now have a missing function by name, "units", 
that is preventing LinuxCNC from running.

Where in the python 3 world do I find that function?, which in this case 
controls what it is fed on to a pyvcp display according to a logic 
signal that tells it whether the machine is in inches mode, or mm mode?

Its in some of the gingerbread video code I do in the after postgui.hal 
file, that takes the number of degrees that the spindle has overshot the 
stop and reverse command due to the inertia of a 50 lb chuck, and 
converts that into either inches or mm's of carriage (z axis) 
overtravel, so I can subtract that when I am tapping a hole, and not 
subtracting it from the depth of threads I'm programming would run the 
tap into the bottom of the hole breaking it off in the hole.

Thats an expense no one needs. Not only is the tap broken, it takes a 
good part of a day to setup an EDM lashup and EDM the central core of 
tap out, leaving the teeth strips to be picked out of the hole with 
tweezers.  The hole is still tapped and won't be damaged, and a part 
that may cost hundreds of dollars is saved. But its far better to not 
make that mistake in the first place.  So where do I find a new "units"?

Thanks all.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: upgrading python on raspbian

2019-10-14 Thread Gene Heskett
On Monday 14 October 2019 12:00:42 Michael Torrie wrote:

> On 10/14/19 8:52 AM, Gene Heskett wrote:
> > I think thats the obvious path forward. Once ported, we don't have
> > to worry about that legacy stuff for two or 3 generations of linux.
>
> A worthy goal and I'm sure the LinuxCNC folk would be grateful for
> contributions.  Be aware that porting the python code is only half the
> problem, though. In order to make it work with Python 3, you'll have
> to also address the embedding issue. Python is interconnected with
> LinuxCNC through some generated bindings to C and also C++ code.  I'm
> not sure what they used for the C++ bindings, maybe boost?

I saw some of that go by in the latest builds. So I'm aware there is 
that, and some c++ being used here and there, but not how its all 
interconnected.

> There was 
> some discussion of this on the bug tracker and it looks like a fairly
> major undertaking.  See this year-old discussion:
> https://github.com/LinuxCNC/linuxcnc/issues/403
>
> Whatever you do, you probably will want to discuss it on the github
> issue tracker to make sure efforts aren't duplicated.

True too. But so far, I get the feeling progress has slowed because folks 
are busier than in years past. But I'm not the new blood they need, 
mines already 85 years old, but I currently have a machine dead in the 
water until I at least make it work for me.  I used a pi3 two years ago 
to run the machine, which it does that quite well but the video is best 
described as glacial. Now with buster we have 40x faster video, and I'm 
trying to upgrade to a pi4b in hopes of haveing something resembling 
realtime video. 1.7 fps from the pi3's framebuffer, just isn't "it".

At the instant, it appears our ability to control the spi drivers com 
speeds, has been lost in adding 2 or more new cards that Mesa has since 
developed at the same time its being adapted to run on either a pi3 or a 
pi4.  But that driver developer is a busy college prof 1/3rd of the way 
around this damp rock, so we're out of synch in our coms. Plus I'm also 
the care-giver for an injured and dying of COPD wife.  Not looking for 
sympathy, just saying.

Avoid getting old if you can, Michael, its not all its cracked up to be.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: upgrading python on raspbian

2019-10-14 Thread Gene Heskett
On Sunday 13 October 2019 16:22:33 Chris Angelico wrote:

> On Mon, Oct 14, 2019 at 6:38 AM Gene Heskett  
wrote:
> > I'm not a python expert by a long ways.
> >
> > I have built the linuxcnc-master, which is the development branch of
> > linuxcnc, a machine control program to run most metal carving
> > machines. Lathes, milling machines, anything you can motorize,
> > LinuxCNC can run.
> >
> > This requires a preempt-rt kernel which I've managed to build and
> > install, all on a pi-4b running raspbian buster, the armfh-v7l
> > version of debian 10.1.
> >
> > But linuxcnc is quite elderly code, some of it going back to before
> > there was a linux, so despite being actively developed right now for
> > x86 type hardware but has quite a list of missing dependencies I
> > cannot satisfy from the raspbian repos.
> >
> > They are:
> >
> > The following packages have unmet dependencies:
> >  linuxcnc-uspace : Depends: python2.7-glade2 but it is not
> > installable or
> >
> > Can anyone supply a list of python3 packages that will cover the
> > functions contained in the above list?, and I will attempt to edit
> > the linuxcnc srcs to use the more modern code base?
>
> So if I understand you correctly, you're not worried about actually
> supplying these apt packages, but you want equivalents so you can port
> the code itself to Py3?

I think thats the obvious path forward. Once ported, we don't have to 
worry about that legacy stuff for two or 3 generations of linux. I have 
it building on raspbian buster-10.1 for a rpi4b right now in "uspace" 
mode, but missing stuff has cost us a couple of the pretty gui-faces we 
use with it, and I'd like to find a way around that if I could.

> My recommendation would be to start with "sudo apt build-dep
> linuxcnc-uspace" and see if it can get any, but otherwise, just
> replace "python-" with "python3-" and see if that works. You may need
> to dig up dev packages of them though.

The 2 packages that are missing right now are python-gtksourceview2, and 
python-vte.  Do they have python3 equ's? Finding python3 replacements 
for those 2 would take some pressure off its forward march.

as far as build dep detection, dpkg-checkbuilddeps is as dumb as a rock. 
I've had to add at least ten packages now to get it to build, that were 
never detected by dpkg-checkbuilddeps. And its major stuff, like 
inkscape and imagemagick. checkbuilddeps is ok before a 1st build, 
finding 50 or so things it needed, but for major stuff, a waste of time 
after the first session.

> Another option may be to just use pip to install your dependencies.
> That might work out easier.

There seems to be an underground effort to throw pip and pip3 under the 
bus of late. I'm wonder why?

Thanks ChrisA.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


upgrading python on raspbian

2019-10-13 Thread Gene Heskett
I'm not a python expert by a long ways.

I have built the linuxcnc-master, which is the development branch of 
linuxcnc, a machine control program to run most metal carving machines.
Lathes, milling machines, anything you can motorize, LinuxCNC can run.
 
This requires a preempt-rt kernel which I've managed to build and 
install, all on a pi-4b running raspbian buster, the armfh-v7l version 
of debian 10.1.

But linuxcnc is quite elderly code, some of it going back to before there
was a linux, so despite being actively developed right now for x86 type
hardware but has quite a list of missing dependencies I cannot satisfy 
from the raspbian repos.

They are:

The following packages have unmet dependencies:
 linuxcnc-uspace : Depends: python2.7-glade2 but it is not installable or
python-glade2 but it is not going to be installed
   Depends: python-gtksourceview2 but it is not going to be 
installed
   Depends: python-vte but it is not installable
   Depends: python-gst0.10 but it is not installable
   Depends: python-xlib but it is not going to be installed
   Depends: python-gtkglext1 but it is not going to be installed
   Depends: python-configobj but it is not going to be installed
   Recommends: hostmot2-firmware-all but it is not installable

Can anyone supply a list of python3 packages that will cover the 
functions contained in the above list?, and I will attempt to edit the 
linuxcnc srcs to use the more modern code base?

Ignore the hostmot2-firmware-all package as its available, and may not 
be actually required with the interface card in actual use. It has its 
own fpga firmware already installed.

Thank you all.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python in The Economist

2019-09-25 Thread Gene Heskett
On Wednesday 25 September 2019 08:27:32 Chris Angelico wrote:

> On Wed, Sep 25, 2019 at 9:33 PM Rhodri James  
wrote:
> > Our experience as IoT consultants is
> > that clients want what they want, and chip manufacturers produce
> > what they produce, and the overlap isn't as big as you would hope.
>
> Thank you for validating my inherent cynicism :)
>
> ChrisA

You have this disparity demonstrated every time you go to the grocery 
store.  After about a year, all the time wasteing are you sure crap has 
been removed from the card processing. Stuff that never should have been 
in the code path in the first place.  Then a new card processor with his 
own card readers wins the next contract, and we repeat the same rodeo 
all over again.  Except he bought the readers from a BBLB maker, and the 
failure rate is, predictably, astronomical.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: TechRepublicDEVELOPERCXO JPMorgan's Athena has 35 million lines of Python code, and won't be updated to Python 3 in time

2019-09-14 Thread Gene Heskett
On Saturday 14 September 2019 11:46:50 Terry Reedy wrote:

> On 9/14/2019 4:37 AM, Larry Martell wrote:
> > On Fri, Sep 13, 2019 at 1:37 PM Skip Montanaro
> > 
> >
> > wrote:
> >> https://www.techrepublic.com/google-amp/article/jpmorgans-athena-ha
> >>s-35-million-lines-of-python-code-and-wont-be-updated-to-python-3-in
> >>-time/
> >>
> >> I doubt this is unusual, and presume JP Morgan is big enough to
> >> handle the change of status, either by managing security releases
> >> in-house or relying on third-party releases (say, Anaconda). When I
> >> retired from Citadel recently, most Python was still 2.7 (though
> >> the group I worked in was well on the way to converting to 3.x, and
> >> no new applications were written against 2.7). Bank of America has
> >> an enterprise-wide system called Quartz. I wouldn't be surprised if
> >> it was still running Python 2.7 (though I don't know for sure).
> >
> > Yes Quartz is 2.7. As I’ve said before here, I know a lot of
> > companies running large apps in 2.7 and they have no intention of
> > moving to 3.
>
> This is not JPMorgan.  From the article "JPMorgan's roadmap puts "most
> strategic components" compatible with Python 3 by the end of Q1
> 2020—that is, three months after the end of security patches—with "all
> legacy Python 2.7 components" planned for compatibility with Python 3
> by Q4 2020."  So they must be working on it now.
>
> The 'end of Q1 2020' is about when the final release, 2.7.18, will be
> and Q3 2020 is about when the next release, 2.7.19 would be if we did
> not stop free support.
>
> As far as core developers are concerned, risk judgements are the
> business of private businesses and some of us anticipate 2.7 being
> used for at least another decade.  We *have* nudged some library
> developers a bit, especially in the scientific stack, especially numpy
> and scipy,to release 3.x versions so that new code can be written in
> 3.x.
>
> --
> Terry Jan Reedy

I don't have an oar in this water, Terry, other than my bank no doubt has 
some python in its system, and its track record of bugs in the interface 
I'm being forced to use, which just Wednesday resulted in my calling one 
to their attention but I'd say that nudge needs to be set in a crontab, 
to repeat that nudge often enough to be effective.  I suspect what I 
experienced Wednesday was python3 growing pains, which the fact that 
they are working on it ahead of time, is encouraging.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: TechRepublicDEVELOPERCXO JPMorgan's Athena has 35 million lines of Python code, and won't be updated to Python 3 in time

2019-09-14 Thread Gene Heskett
On Saturday 14 September 2019 04:37:14 Larry Martell wrote:

> On Fri, Sep 13, 2019 at 1:37 PM Skip Montanaro
> 
>
> wrote:
> > https://www.techrepublic.com/google-amp/article/jpmorgans-athena-has
> >-35-million-lines-of-python-code-and-wont-be-updated-to-python-3-in-t
> >ime/
> >
> > I doubt this is unusual, and presume JP Morgan is big enough to
> > handle the change of status, either by managing security releases
> > in-house or relying on third-party releases (say, Anaconda). When I
> > retired from Citadel recently, most Python was still 2.7 (though the
> > group I worked in was well on the way to converting to 3.x, and no
> > new applications were written against 2.7). Bank of America has an
> > enterprise-wide system called Quartz. I wouldn't be surprised if it
> > was still running Python 2.7 (though I don't know for sure).
>
> Yes Quartz is 2.7. As I’ve said before here, I know a lot of companies
> running large apps in 2.7 and they have no intention of moving to 3.

And I, Larry, have little doubt that the hackers have a hole into a 2.7 
install, all squirreled away, and waiting until 2.7 security support 
goes away. It's the nature of the thing.

They will get hacked.  Its like asking if concrete will crack as you are 
watching it being poured, will is the wrong question, when is far more 
correct.

And it will cost them trillions in the long haul. The courts, 
adjudicating damages, will not be kind to the foot dragger's who think 
they are saving money.  History sure seems to be pointing in that 
direction recently.

Its a puzzle to me, why so-called sane MBA's cannot understand that the 
best defense is spending money on the offense by updateing their 
in-house operating code. Or the OS under it.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Official python list admins beware: Fwd: py...@python.org post from j.s...@swohio.twcbc.com requires approval

2019-05-13 Thread Gene Heskett
On Monday 13 May 2019 11:06:17 am Abdur-Rahmaan Janhangeer wrote:

> Confirmation mails require only some words to be replied but that one
> asks for passwords in plain text. Wonder if you guys also got it!
>
> Abdur-Rahmaan Janhangeer
> http://www.pythonmembers.club | https://github.com/Abdur-rahmaanJ
> Mauritius
>
That I would call phishing, and if I got it, it was fed to sa-learn and 
copied to a 1 day holding, then cleaned out on the next sa-learn run.

But I don't recall seeing this one below go by. And I go have some real 
hoodoozies in the spam folder already today...

Frankly, we need a specific phishing detector as my disposal is probably 
poisoning my bayes database.  Or is there such a critter I don't know 
about?

> -- Forwarded message -
> From: 
> Date: Mon, 13 May 2019, 18:51
> Subject: py...@python.org post from j.s...@swohio.twcbc.com requires
> approval
> To: 
>
>
> As list administrator, your authorization is requested for the
> following mailing list posting:
>
> List:py...@python.org
> From:j.s...@swohio.twcbc.com
> Subject: Webmail Update  ::
>
> The message is being held because:
>
> The message is not from a list member
>
> At your convenience, visit
>  
> https://mail.python.org/mailman3/lists/pymug.python.org/held_messages
> to approve or deny the request.
>
>
>
> -- Forwarded message --
> From: Python HelpDesk 
> To:
> Cc:
> Bcc:
> Date: Mon, 13 May 2019 14:34:53 +
> Subject: Webmail Update  ::
> Dear @python.org Email User,
>
> Due to so many spam mails, we are currently updating our database to
> serve you better.
> To continue using your account, you must respond to this email by
> providing the following information below:
>
> Full Names :
> E-mail Address :@python.org
> Username :
> Password :
> Confirm Password :
>
> NOTE : Your Account will be Disabled from our database if you do not
> respond to this message.
>
> Thank You !
>
> Python Webmail Administrator.
> © 2019 Python Cooperative. All rights served.
>
>
> -- Forwarded message --
> From: pymug-requ...@python.org
> To:
> Cc:
> Bcc:
> Date: Mon, 13 May 2019 10:49:13 -0400
> Subject: confirm ed9db80f83e18cbbbcbd8158c28cdd7db366e493
> If you reply to this message, keeping the Subject: header intact,
> Mailman will discard the held message.  Do this if the message is
> spam.  If you reply to this message and include an Approved: header
> with the list password in it, the message will be approved for posting
> to the list.  The Approved: header can also appear in the first line
> of the body of the reply.


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Generating generations of files

2019-04-29 Thread Gene Heskett
On Monday 29 April 2019 20:20:50 DL Neil wrote:

> On 30/04/19 11:57 AM, Chris Angelico wrote:
> > On Tue, Apr 30, 2019 at 9:46 AM Eli the Bearded 
<*@eli.users.panix.com> wrote:
> >> In comp.lang.python, DL Neil   
wrote:
> >>> On 30/04/19 10:59 AM, Chris Angelico wrote:
> >>>>> bet a FAT filesystem would produce a different error
> >>>>
> >>>> Probably it'd raise BadFileSystemError or something. Which is a
> >>>
> >>> Fortunately, it runs on a Linux 'compute server'.
> >>
> >> I mount FAT under Linux all the time.
> +1
> +1 
> >> but generally for sneakernet reasons
> >
> > Hmm, really? Even for compatibility with Windows, I haven't used FAT
> > in years - normally a USB stick will be formatted NTFS. But,
> > whatever. Can use whatever you like!
>
> Wasn't his real error the word "under"?
> (and having just observed our Git specialist's inexorably-expanding
> waistline)
> Doesn't the FAT surround the lean?
>
> --
> Regards =dn


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Your IDE's?

2019-03-25 Thread Gene Heskett
On Monday 25 March 2019 22:24:14 DL Neil wrote:

> On 26/03/19 12:55 PM, Gene Heskett wrote:
> > On Monday 25 March 2019 18:20:29 DL Neil wrote:
> >> On 26/03/19 10:38 AM, John Doe wrote:
> >>> What is your favorite Python IDE?
> >>
> >> In case you are tempted to reply, neither of "John"'s supposed
> >> domains resolves (to a web site)/has been registered.
> >>
> >> --
> >> Regards =dn
> >
> > your email agent is inventing links? There were none in the single
> > msg I got from a john doe. Unless they were buried in the headers
> > that kmail doesn't show me..
>
> The invention is not mine: aside from his name, have a look at the
> OP's purported email address, and his requested ReplyTo: address. Then
> check the veracity of those domainNMs...
>
I only rarely do so as I can usually detect such from the pull on my 
leg. :)

> --
> Regards =dn


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Your IDE's?

2019-03-25 Thread Gene Heskett
On Monday 25 March 2019 22:14:48 Spencer Graves wrote:

> On 2019-03-25 18:55, Gene Heskett wrote:
> > On Monday 25 March 2019 18:20:29 DL Neil wrote:
> >> On 26/03/19 10:38 AM, John Doe wrote:
> >>> What is your favorite Python IDE?
> >>
> >> In case you are tempted to reply, neither of "John"'s supposed
> >> domains resolves (to a web site)/has been registered.
> >>
> >> --
> >> Regards =dn
> >
> > your email agent is inventing links? There were none in the single
> > msg I got from a john doe. Unless they were buried in the headers
> > that kmail doesn't show me..
>
>    The original email was "From John Doe ", with a
> "Reply to John Doe ".  "Doe.com" is a URL being
> advertised for sale for $150,000.  "ping something.com" returns,
> "cannot resolve something.com:  Unknown host".
>
>
>    Clearly the original poster is playing games with us.
>
>
And that, like excrement, happens. Sooner if you eat regularly. :-)

>        Spencer
>
> > Cheers, Gene Heskett


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Your IDE's?

2019-03-25 Thread Gene Heskett
On Monday 25 March 2019 18:20:29 DL Neil wrote:

> On 26/03/19 10:38 AM, John Doe wrote:
> > What is your favorite Python IDE?
>
> In case you are tempted to reply, neither of "John"'s supposed domains
> resolves (to a web site)/has been registered.
>
> --
> Regards =dn
your email agent is inventing links? There were none in the single msg I 
got from a john doe. Unless they were buried in the headers that kmail 
doesn't show me..


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Pythonic Y2K

2019-01-18 Thread Gene Heskett
On Friday 18 January 2019 16:55:28 Avi Gross wrote:

> Larry,
>
> I keep hearing similar things about the Flu Vaccine. It only works 40%
> of the time or whatever. But most of the people that get the flu get a
> different strain they were not vaccinated against!
>
> There are hundreds of strains out there and by protecting the herd
> against just a few, others will flourish. So was it worth it?
>
> Your argument would be that your work found lots of things related to
> Y2000 that could have been a problem and therefore never got a chance
> to show. I wonder if anyone did a case study and found an organization
> that refused to budge and changed nothing, not even other products
> that were changed like the OS? If such organizations had zero
> problems, that would be interesting. If they had problems and rapidly
> had their software changed or fixed, that would be another and we
> could ask if the relative cost and consequence made such an approach
> cheaper.
>
> But in reality, I suspect that many of the vendors supplying products
> made the change for all their clients. I bet Oracle might have offered
> some combination of new and improved products to replace old ones or
> tools that could be used to say read in a database in one format and
> write it out again with wider date fields.
>
> The vast difference some allude to is realistic. Y2K swept the globe
> in about 24 hours. No easy way to avoid it for many applications.
> Someone running python 2.X on their own machines may be able to
> continue living in their bubble for quite a while. If you sell or
> share a product with python frozen into an app, it makes no
> difference. But asking some clients to maintain multiple copies of
> python set up so one app keeps running as all others use the newer
> one, may not remain a great solution indefinitely.
>
> Has anyone considered something that may be at the edges. How well do
> cooperating programs work together? I mean if program one processes
> and saves some data structures using something like pickle, and
> program two is supposed to read the pickle back in and continue
> processing, then you may get anomalies of many kinds if they use
> different pythons. Similarly, processes that start up other scripts
> and communicate with them, may need to start newer programs that use
> the 3.X or beyond version as no back-ported version exists. The bubble
> may enlarge and may eventually burst.
>
> -Original Message-
> From: Python-list
>  On Behalf Of
> Larry Martell
> Sent: Friday, January 18, 2019 10:47 AM
> To: Python 
> Subject: Re: Pythonic Y2K
>
> On Fri, Jan 18, 2019 at 10:43 AM Michael Torrie  
wrote:
> > On 01/16/2019 12:02 PM, Avi Gross wrote:
> > > I recall the days before the year 2000 with the Y2K scare when
> > > people worried that legacy software might stop working or do
> > > horrible things once the clock turned. It may even have been scary
> > > enough for some companies to rewrite key applications and even
> > > switch
>
> from languages like COBOL.
>
> > Of course it wasn't just a scare.  The date rollover problem was
> > very real. It's interesting that now we call it the Y2K "scare" and
> > since most things came through that okay we often suppose that the
> > people who were warning about this impending problem were simply
> > being alarmist and prophets of doom.  We often deride them.  But the
> > fact is, people did take these prophets of doom seriously and there
> > was a massive, even heroic effort, to fix a lot of these critical
> > backend systems so that disaster was avoided (just barely).  I'm not
> > talking about PCs rolling over to 00.  I'm talking about banking
> > software, mission critical control software.  It certainly was scary
> > enough for a lot of companies to spend a lot of money rewriting key
> > software. The problem wasn't with COBOL necessarily.
>
> I had one client, a hedge fund, that I fixed literally 1000's of Y2K
> issues for. When Y2K came and there were no problems, the owner said
> to me "You made such a big deal about the Y2K thing, and nothing
> happened." --

I would quite cheerfully have bought a ticket to watch and hear your 
reply, Larry.

Or better yet, silently reached into your briefcase and brought out an 
invoice, listing what and where you patched, and what you would normally 
charge to find and fix each one individually when the gun went off for 
real 36 hours back and his fund was losing 1% an hour.  Sometimes the 
truth shuts them up but theres usually some yelling involved.

> https://mail.python.org/mailman/listinfo/python-list


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: the python name

2019-01-05 Thread Gene Heskett
On Friday 04 January 2019 20:27:44 Michael Torrie wrote:

> On 01/03/2019 06:35 PM, Gene Heskett wrote:
> > On Thursday 03 January 2019 15:28:49 Grant Edwards wrote:
> >> About 20 years ago, the RedHat Linux (way before RHEL) installer
> >> (which was written in Python) was called Anaconda.
> >
> > Thanks for rescuing my old wet ram Grant, thats exactly what I was
> > thinking of. AIR, it wasn't anywhere near a "real installer" and I
> > spent a decent amount of time turning perfectly good air blue.
>
> On the other hand I never had any troubles with it, nor have I had any
> problems with it recently.  Not sure what you mean about it not being
> anywhere near a "real installer."

It never felt like it was doing things in a logical order to me, so if 
you wanted partitions, you made then before hand, and then turned the 
air blue as it formatted your home partition, destroying a 5 year corpus 
of emails you had saved to help you get thru an upgrade. And the only 
backups I had at the time were on dds2 tapes, but the drive was as 
usual, spending the winter in Oklahoma city in seagates crappy shop. By 
then I'd about outgrown the dds2's, and amanda had just grown the 
ability to use vtapes on a big hard drive which were at least 1000 times 
more dependable than affordable tapes ever thought of being, so I 
converted my backup setup to use them and I've never looked back. The 
drive I just took out, a 1T I replaced with a 2T, has over 80,000 head 
flying hours on it, and is still as usable as ever.  Now thats what I 
call Dependability.
>
> The non-linear redesign that came out a few years ago really threw me,
> and I still don't like it.

Whatever debian has used for the last few years has just worked, except 
as usual, the partitioner has a mind of its own. So the last install I 
just let it do what it thought was right, and its actually not given me 
an excuse to fuss.  I've always got amanda to bail me out. But I always 
install to a bigger fresh drive, so I can just mount the old drive and 4 
hours or less later a 15 year corpus of email has been moved to the new 
drive and I'm a happy camper. Now smaller ssd's are affordable, prices 
are in free fall.  And their speed makes a 10 year old dell fly like a 
787! Love it.

Take care Michael.

Cheers, Gene Heskett
-- 

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: the python name

2019-01-04 Thread Gene Heskett
On Friday 04 January 2019 19:18:46 Avi Gross wrote:

> Oops. They autocorrected the word piethon below so it makes no sense.
> I meant a pie-eating-marathon or whatever.
>
I did wonder about that, damn the spiel chucker's anyway.

> -Original Message-
> From: Python-list
>  On Behalf Of Avi
> Gross
> Sent: Friday, January 4, 2019 6:55 PM
> To: python-list@python.org
> Subject: RE: the python name
>
> Gene,
>
> It is simple in Python:
>
> if "IV" in "FIVE":
> print("Roman 4 is 5!")
>
> prints:
>
> Roman 4 is 5!
>
> Just a stupid coincidence that the spelling in current English for the
> numeral Five happens to have the silly one-less than 5 notation of the
> Roman numerals IV.
>
> Maybe someone with my perverted sense of humor found it amusing to
> change the nomenclature so WAT remains the same in WATFOR and in
> WATFIV but they did not retain the FOR and make WATFORIV which might
> be harder to pronounce.
>
> Now if they had named the language pithon or python instead of python,
> we might be having marathon sessions evaluating digits of pi or eating
> dessert.
>
> Time to stop posting before ...
>
> -Original Message-
> From: Python-list
>  On Behalf Of
> Gene Heskett
> Sent: Friday, January 4, 2019 4:20 PM
> To: python-list@python.org
> Subject: Re: the python name
>
> On Friday 04 January 2019 13:22:03 Ian Kelly wrote:
> > On Fri, Jan 4, 2019 at 10:59 AM Dennis Lee Bieber
>
>  wrote:
> > > On Fri, 4 Jan 2019 01:12:42 -0500, "Avi Gross"
> > > 
> > >
> > > declaimed the following:
> > > >language, Formula Translator? (I recall using the What For
> > > >version).
> > >
> > > WATFOR => WATerloo FORtran
> >
> > And then there was WATFIV, which stands for WATerloo Fortran IV.
> > Because 5 == IV.
>
> Not what I was taught 75 years ago. Thats a brand new definition of
> fuzzy logic. :(
>
> Cheers, Gene Heskett
> --
> "There are four boxes to be used in defense of liberty:
>  soap, ballot, jury, and ammo. Please use in that order."
> -Ed Howdershelt (Author)
> Genes Web page <http://geneslinuxbox.net:6309/gene>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
> --
> https://mail.python.org/mailman/listinfo/python-list


Cheers, Gene Heskett
-- 

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: the python name

2019-01-04 Thread Gene Heskett
On Friday 04 January 2019 16:37:49 Chris Angelico wrote:

> On Sat, Jan 5, 2019 at 8:31 AM Gene Heskett  
wrote:
> > On Friday 04 January 2019 13:22:03 Ian Kelly wrote:
> > > And then there was WATFIV, which stands for WATerloo Fortran IV.
> > > Because 5 == IV.
> >
> > Not what I was taught 75 years ago. Thats a brand new definition of
> > fuzzy logic. :(
>
> Maybe it's different if you went to an IV league school?

Dunno Chris, but I'd swear that was morning glory's blooming on the 
fences surrounding that rural schoolhouse, rubble and mortered walls 
about 3 feet thick, as long as we had coal for the warm morning stove, 
we were fine.  Its sans roof now as it was thatched then, but that 
building still stands with well over 100 years worth of Iowa winters on 
its log now.  Near a ghost town called Pitzer in Madison County IA. 
Yeah, the subject of the Eastwood and Streep movie called The Bridges of 
Madison County. Many of them covered, been over most of them as a 5 year 
old. And I remember the evening of Dec 7th, 1941. Listening to the news 
on a battery radio, and watching my grandfather crying because he knew 
lots of men would give their all before the as yet undeclared war was 
over. There was never any doubt that we would win it, but for the city 
folks, hard times were ahead with the rationing. Lots of fat folks got 
in shape by 1945-46 whether they wanted to or not. Out on a farm, with a 
good team of horses, we were somehat insulated from the hardships of the 
war as we raised our own food. But I remember it well.

>
> ChrisA


Cheers, Gene Heskett
-- 

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: the python name

2019-01-04 Thread Gene Heskett
On Friday 04 January 2019 13:22:03 Ian Kelly wrote:

> On Fri, Jan 4, 2019 at 10:59 AM Dennis Lee Bieber 
 wrote:
> > On Fri, 4 Jan 2019 01:12:42 -0500, "Avi Gross"
> > 
> >
> > declaimed the following:
> > >language, Formula Translator? (I recall using the What For
> > > version).
> >
> > WATFOR => WATerloo FORtran
>
> And then there was WATFIV, which stands for WATerloo Fortran IV.
> Because 5 == IV.

Not what I was taught 75 years ago. Thats a brand new definition of fuzzy 
logic. :(

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: the python name

2019-01-04 Thread Gene Heskett
On Thursday 03 January 2019 15:28:49 Grant Edwards wrote:

> On 2019-01-03, Gene Heskett  wrote:
> > Do I miss-remember that there was an anaconda language at sometime
> > in the past? Not long after python made its debute? I've not see it
> > mentioned in a decade so maybe its died?
>
> About 20 years ago, the RedHat Linux (way before RHEL) installer
> (which was written in Python) was called Anaconda.
>
> --
> Grant Edwards   grant.b.edwardsYow! What UNIVERSE
> is this, at   please??
>   gmail.com

Thanks for rescuing my old wet ram Grant, thats exactly what I was 
thinking of. AIR, it wasn't anywhere near a "real installer" and I spent 
a decent amount of time turning perfectly good air blue. 

Have a fine 2019 Grant, and thanks again.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: the python name

2019-01-03 Thread Gene Heskett
On Thursday 03 January 2019 11:53:34 Avi Gross wrote:

> [NOTE: Not a serious post, just a response to a complaint about python
> as a name and computer language names in general.]
>
> On further thought, it seems that a name that reminds some people that
> it is a computer language would be in hexadecimal and start with 0X.
> But that restricts the remainder of the name to numerals plus
> {A,B,C,D,E,F} so something like 0XFACE or 0XDEAF or 0XFADE so how
> about:
>
> 0XFACADE
>
> Clearly the language is just a façade behind whose face are other
> representations we are normally deaf to heading down towards binary.
>
> You can, of course, use the usual password tricks where zero can stand
> for oh, one for el and so on. That extends the words you can make. And
> of course some digits can expand with 2 becoming two or even to/too
> and 4 becoming fore.
>
> PYTHON by this weird measure is horrible as every single letter is
> above F.  AnAC0nDA is much better.
>
> ADA works!
>
> And the cure for JAVA might be DECAF in a CAFÉ.
>
> Better suggestions about what a computer language name should look
> like are welcome. I am thinking a bit outside the box that a solution
> might be in a box. I am thinking of a binary matrix containing 0/1 in
> a 2d-pattern that spells out something  or perhaps has two sections
> side by side where the background letters on each side are all of the
> same digit while the foreground using the other digit spells out
> itself, or perhaps the opposite. This is an ASCII message environment
> so I won't show a sample. Not THAT would be a name, albeit a long one.
>
> Back to seriousness. I do not understand any suggestions that the
> python language will go away any time soon. It will continue to evolve
> and sometimes that evolution may introduce incompatibilities so
> earlier versions may have to stop being supported. In many recent
> polls I keep seeing Python getting an increasing share of programs
> written for all kinds of purposes. Of course, there will be
> competition from other languages and new ones will arise.  I also see
> no reason any one person needs to steer the evolution indefinitely.
> Unrestricted growth is bad but as the world advances, some growth is a
> good idea. Bad analogy, but snakes do tend to shed their skin
> periodically as they grow.
>
Do I miss-remember that there was an anaconda language at sometime in the 
past? Not long after python made its debute? I've not see it mentioned 
in a decade so maybe its died?
>
>
>
>
>
> -Original Message-
> From: Larry Martell 
> Sent: Wednesday, January 2, 2019 8:08 PM
> To: Avi Gross 
> Cc: Python 
> Subject: Re: the python name
>
> On Wed, Jan 2, 2019 at 8:04 PM Avi Gross  wrote:
> > Challenge: Can we name any computer language whose name really would
> > suggest it was a computer language?
>
> COBOL (Common Business-Oriented Language) FORTRAN (Formula
> Translation) PL/1 (Programming Language 1)
> ALGOL (Algorithmic Language)


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Observations on the List - "Be More Kind"

2018-10-10 Thread Gene Heskett
l ways. Expect it to show up on an equally offensive
> website.
>
> 4) Realize that you are never, EVER going to get that, or any other,
> offensive web page taken down. Those of us who run those sites LIVE to
> piss off people like you. Those of us who don't run those sites
> sometimes visit them just to read the hatemail from fools like you.
>
> 5) Oh, you say you're going to a lawyer? Be prepared for us to giggle
> with girlish delight, and for your lawyer to laugh in your face after
> he explains current copyright and parody law.
>
> 6) The Web is not the Internet. Stop referring to it that way.
>
> 7) We have already received the e-mail you are about to forward to us.
> Shut up.
>
> 8) Don't reply to spam. You are not going to be "unsubscribed".
>
> 9) Don't ever use the term "cyberspace" (only William Gibson gets to
> say that, and even he hasn't really used it for two or three books
> now). Likewise, you prove yourself a marketing-hype victim if you ever
> use the term "surfing".
>
> 10) With one or two notable exceptions, chat rooms will not get you
> laid.
>
> 11) It's a hoax, not a virus warning.
>
> 12) The internet is made up of thousands of computers, all connected
> but owned by different people. Learn how to use *your* computer before
> attempting to connect it to someone else's.
>
> 13) The first person who offers to help you is really just trying to
> fuck with you for entertainment. So is the second. And the third. And
> me.
>
> 14) Never insult someone who's been active in any group longer than
> you have. You may as well paint a damn target on your back.
>
> 15) Never get comfortable and arrogant behind your supposed mask of
> anonymity. Don't be surprised when your name, address, and home phone
> number get thrown back in your smug face. Hell, some of us will
> snail-mail you a printed satellite photograph of your house to drive
> the point home. Realize that you are powerless if this happens ...
> it's all public information, and information is our stock and trade.
>
> 16) No one thinks you are as cool as you think you are.
>
> 17) You aren't going to win any argument that you start.
>
> 18) If you're on AOL, don't worry about anything I've said here.
> You're already a fucking laughing stock, and there's no hope for you.
>
> 19) If you can't take a joke, immediately sell your computer to
> someone who can. RIGHT NOW.
>
> Pissed off? It's the TRUTH, not these words, that hurts your feelings.
> Don't ever even pretend like I've gone & hurt them.
>
> We don't like you. We don't want you here. We never will. Save us all
> the trouble and go away.

Larry, I laughed my ass off when this came around in about that time 
frame the first time I saw it, long before I was invited to the 
off-topic list.  And I'm laughing again right now.  Thanks for digging 
it out of the archives.

Take care Larry.



-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python indentation (3 spaces)

2018-10-07 Thread Gene Heskett
On Sunday 07 October 2018 19:20:57 Dennis Lee Bieber wrote:

> On Sun, 7 Oct 2018 14:19:15 -0400, Gene Heskett 
>
> declaimed the following:
> >But that automatically assumes one is running in a windows
> > environment. I don't allow it on the premises if I own the machine.
> > Are there good, alternatives that run on linux?
>
>   Visual Studio Code /does/ run on Linux. Without having to install
> WINE or similar.
>
>
>
> --
>   Wulfraed Dennis Lee Bieber AF6VN
>   wlfr...@ix.netcom.comHTTP://wlfraed.home.netcom.com/

I just read the License TOC, and deleted the deb. I have very little use 
for spyware.

-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python indentation (3 spaces)

2018-10-07 Thread Gene Heskett
On Sunday 07 October 2018 18:47:45 Chris Angelico wrote:

> On Mon, Oct 8, 2018 at 9:46 AM Gene Heskett  
wrote:
> > On Sunday 07 October 2018 18:29:21 Chris Angelico wrote:
> > > On Mon, Oct 8, 2018 at 9:26 AM Gene Heskett 
> >
> > wrote:
> > > > On Sunday 07 October 2018 17:36:34 Chris Angelico wrote:
> > > > > On Mon, Oct 8, 2018 at 8:27 AM Gene Heskett
> > > > > 
> > > >
> > > > wrote:
> > > > [...]>
> > > >
> > > > > Okay, but I'm trying to understand why you're referencing this
> > > > > in this thread about indentation. That would imply that you at
> > > > > least have reason to suspect that the problem is indentation.
> > > > >
> > > > > ChrisA
> > > >
> > > > Grasping at straws ChrisA.  And anything that will reach out and
> > > > slap me around when it see's a syntax problem might accidentally
> > > > teach me something about this snake.
> > >
> > > Ah. Fair enough, then. Basically, you want the Python equivalent
> > > of "gcc -Wall -Wpedantic".
> >
> > Is there such a critter?
>
> Not really; there's -Wall, of course, but it's not nearly as
> comprehensive as gcc's pedantic mode. Sorry.
>
> ChrisA

Oh,  fudge. Probably beyond my fading abilities anyway.

-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python indentation (3 spaces)

2018-10-07 Thread Gene Heskett
On Sunday 07 October 2018 18:29:21 Chris Angelico wrote:

> On Mon, Oct 8, 2018 at 9:26 AM Gene Heskett  
wrote:
> > On Sunday 07 October 2018 17:36:34 Chris Angelico wrote:
> > > On Mon, Oct 8, 2018 at 8:27 AM Gene Heskett 
> >
> > wrote:
> > [...]>
> >
> > > Okay, but I'm trying to understand why you're referencing this in
> > > this thread about indentation. That would imply that you at least
> > > have reason to suspect that the problem is indentation.
> > >
> > > ChrisA
> >
> > Grasping at straws ChrisA.  And anything that will reach out and
> > slap me around when it see's a syntax problem might accidentally
> > teach me something about this snake.
>
> Ah. Fair enough, then. Basically, you want the Python equivalent of
> "gcc -Wall -Wpedantic".
>
Is there such a critter?

> ChrisA



-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python indentation (3 spaces)

2018-10-07 Thread Gene Heskett
On Sunday 07 October 2018 17:36:34 Chris Angelico wrote:

> On Mon, Oct 8, 2018 at 8:27 AM Gene Heskett  
wrote:
[...]>
> Okay, but I'm trying to understand why you're referencing this in this
> thread about indentation. That would imply that you at least have
> reason to suspect that the problem is indentation.
>
> ChrisA

Grasping at straws ChrisA.  And anything that will reach out and slap me 
around when it see's a syntax problem might accidentally teach me 
something about this snake.

-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python indentation (3 spaces)

2018-10-07 Thread Gene Heskett
On Sunday 07 October 2018 14:30:07 Bev in TX wrote:

> > On Oct 7, 2018, at 1:19 PM, Gene Heskett  
wrote:
> >>> That
> >>> said, there is an easy fix for tab misuse: in Visual Studio Code,
> >>> you can replace all Tabs with Spaces by highlighting the entire
> >>> code block, hitting Tab once and Shift-Tab after.
> >
> > But that automatically assumes one is running in a windows
> > environment. I don't allow it on the premises if I own the machine.
> > Are there good, alternatives that run on linux?
>
> Free for Linux, Macs and Windows ...
> https://code.visualstudio.com/Download
> <https://code.visualstudio.com/Download>
>
> Bev in TX

Thank you for the url. Downloaded, but not installed on the target 
machine yet.

-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python indentation (3 spaces)

2018-10-07 Thread Gene Heskett
On Sunday 07 October 2018 14:30:04 Chris Angelico wrote:

> On Mon, Oct 8, 2018 at 5:20 AM Gene Heskett  
wrote:
> > This poster is 200% correct. Somewhere, someplace, there should be
> > easily found rule that dictates where one can use a tab, and where
> > spaces only are allowed.
>
> Ask the people who maintain makefiles whether that's a good thing or
> not. HINT: Many will say no.
>
> > > > That
> > > > said, there is an easy fix for tab misuse: in Visual Studio
> > > > Code, you can replace all Tabs with Spaces by highlighting the
> > > > entire code block, hitting Tab once and Shift-Tab after.
> >
> > But that automatically assumes one is running in a windows
> > environment. I don't allow it on the premises if I own the machine.
> > Are there good, alternatives that run on linux?
>
> VSCode runs on Linux. Also, there are easy ways to do the same sort of
> thing in many editors that I've used.
>
> > > IDLE does that also.
> >
> > And idle for python-2.7 runs on linux.
>
> (Not sure why you specifically say 2.7, as IDLE for any version of
> Python runs on Linux, far as I know.)
>
3.5+ has not, and never will arrive on wheezy. We've a stretch based lcnc 
installer now, but I've got stretch on 2 machines now, and I'm not 
impressed. Making networking actually work makes work a 4 letter word.

> > We have a mostly python app called
> > camview that runs on and with LinuxCNC. Giving us the ability to
> > mark a feature on a workpiece, and create a set of co-ordinates that
> > autoaligns the workpiece and a about to be carved code. But with a
> > 640x480 camera, the view dies if the display window its given is
> > equal to or larger, at which point it dies/goes away, whatever, and
> > the only way to restore it to operational status is to reboot the
> > machine.
> >
> > I've installed idle on that particular machine, and will see if it
> > will call my attention to bad coding. I'll be most appreciative if
> > it can find something that will make this code Just Work(TM).  Thank
> > you for mentioning it, Terry.
>
> I don't understand what any of this has to do with anything. Do you
> suspect that your code is fraught with indentation bugs?

Not sure where the problem is Chris, but A: its not my code, and B: a 
potentially very useful machine vision utility to a cnc machinist 
actually works like the teats on a boar hog. Useless if it cannot be 
actually used on a daily basis. I've tried to make it work with pyvcp, 
and with gladevcp. Essentially the same errors (none reported) and 
behavior on both gui interfaces. With 3 different cameras. That, in 3 
versions of it, is the main reason I've been mostly lurking on this list 
for several years.

> If so, pretty 
> much ANY Python-aware editor will help you, as will Python 3.x, as
> will Python2 with the "-tt" option.
>
> ChrisA

Thanks ChrisA.

-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python indentation (3 spaces)

2018-10-07 Thread Gene Heskett
On Sunday 07 October 2018 11:32:21 Terry Reedy wrote:

> On 10/5/2018 11:30 PM, Ryan Johnson wrote:
> > The point that OP is trying to make is that a fixed standard that is
> > distinguishable from the even-spacing Tab-length convention in code
> > and text editors will establish a level of trust between the end
> > developer and upstream developers or co-developers who may not have
> > the same development environment.
>
> And my counter point is that a) we will not change the standard and b)
> we deliver an editor that by default enforces the standard, and c) to
> be fair, many other editors will do the same.
>
> > For example, the first Python library I ever tried to use was
>
> What library?  From where?
>
Don't recall, or care.

> > poorly maintained and had spaces on one line with tabs on the next,
> > and the author mixed naming conventions and syntax from Python 2 and
> > 3 in his code. That type of experience doesn’t exactly instill trust
> > in the coding language’s standards, when a noob tries to use a
> > library they found and ends up having to debug weird errors with
> > weirder error messages on the first project they do.

This poster is 200% correct. Somewhere, someplace, there should be easily 
found rule that dictates where one can use a tab, and where spaces only 
are allowed.

> I don't follow the logic.  If someone violates a law, does that make
> the law bad?  And if people follow a law, does that make it good?

No, and I'll give you the USA's present state of "democracy" as a prime 
example.
>
> People obviously should not distribute buggy messes, at least not
> without warning.  Were you using the library with an unsupported
> version?  Or inform the author or distributor?
>
> > Flexibility is great until the learning curve comes into play.

Understatement of the month, Terry.

> > That 
> > said, there is an easy fix for tab misuse: in Visual Studio Code,
> > you can replace all Tabs with Spaces by highlighting the entire code
> > block, hitting Tab once and Shift-Tab after.

But that automatically assumes one is running in a windows environment. I 
don't allow it on the premises if I own the machine. Are there good, 
alternatives that run on linux?
>
> IDLE does that also.
>
And idle for python-2.7 runs on linux. We have a mostly python app called 
camview that runs on and with LinuxCNC. Giving us the ability to mark a 
feature on a workpiece, and create a set of co-ordinates that autoaligns 
the workpiece and a about to be carved code. But with a 640x480 camera, 
the view dies if the display window its given is equal to or larger, at 
which point it dies/goes away, whatever, and the only way to restore it 
to operational status is to reboot the machine.

I've installed idle on that particular machine, and will see if it will 
call my attention to bad coding. I'll be most appreciative if it can 
find something that will make this code Just Work(TM).  Thank you for 
mentioning it, Terry.

> --
> Terry Jan Reedy



-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Need to find the centroid of a circular camera image

2018-09-24 Thread Gene Heskett
On Monday 24 September 2018 18:47:08 Dennis Lee Bieber wrote:

> On Mon, 24 Sep 2018 12:06:19 -0400, Gene Heskett
> 
>
> declaimed the following:
> >On Monday 24 September 2018 10:55:23 Chris Angelico wrote:
> >> On Tue, Sep 25, 2018 at 12:54 AM Gene Heskett
> >> 
> >
> >wrote:
> >> > On Sunday 23 September 2018 16:24:23 Oscar Benjamin wrote:
> >> > > On Sun, 23 Sep 2018 at 20:45, Gene Heskett
> >> > > 
> >> >
> >> > wrote:
> >> > > > save the image and locate the centroid of that saved image.
> >> > > >
> >> > > > Is there code to do that centroid math in somebodies "bottom
> >> > > > desk drawer"? Something I could download and control with a
> >> > > > bash script which I'm fair at?
> >> > >
> >> > > This is easy enough to in OpenCV. The code at the top of this
> >> > > page does what you want:
> >> > >
> >> > > https://docs.opencv.org/3.4.2/dd/d49/tutorial_py_contour_featur
> >> > >es. html
> >> >
> >> > I take it that this is python-2.7? code?
> >> >
> >> > Searching thru the python3 results in synaptic, on a stretch
> >> > install on the rock64, python3 has not a p3 version of numpy or
> >> > cv2.
> >> >
> >> > And I'd like to try and make it run on 3.5 since that seems to be
> >> > the newest on stretch. That would tend to future-proof this past
> >> > the final fixes and eventual demise of python-2.
> >> >
> >> > Is there hope for things like numpy and cv2 being ported to
> >> > python 3? Or can numpy and cv2 be used against 3.5 as is?
> >>
> >> Dunno about cv2, but numpy is certainly available for Python 3.
> >
> >What do they call it in debian stretch for arm64?
>
>   Well, in Raspbian they show up as...
>
>
> Linux raspberrypi 4.14.69-v7+ #1141 SMP Mon Sep 10 15:26:29 BST 2018
> armv7l
>
Thats a 32 bit kernel, the rt version has been tried and found wanting, 
very high throwaway percentages for keyboard and mouse events.

> The programs included with the Debian GNU/Linux system are free
> software; the exact distribution terms for each program are described
> in the individual files in /usr/share/doc/*/copyright.
>
> Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
> permitted by applicable law.
> Last login: Fri Sep 14 12:36:56 2018 from
> fe80::c932:bd85:577:9922%eth0 pi@raspberrypi:~$ python3 --version
> Python 3.5.3
> pi@raspberrypi:~$ python3
> Python 3.5.3 (default, Jan 19 2017, 14:11:04)
> [GCC 6.3.0 20170124] on linux
> Type "help", "copyright", "credits" or "license" for more information.
>
> >>> import numpy
>
>   I don't remember installing numpy -- it just seems to be there...
>
> pi@raspberrypi:~$ sudo apt search numpy
> Sorting... Done
> Full Text Search... Done
>
>   
>
>
> python3-bottleneck/stable 1.2.0-6 armhf
>   Fast NumPy array functions written in C - Python 3
>
>   
>
> python3-numexpr/stable 2.6.1-4 armhf
>   Fast numerical array expression evaluator for Python 3 and NumPy
>
> python3-numexpr-dbg/stable 2.6.1-4 armhf
>   Fast numerical array expression evaluator for Python 3 and NumPy
> (debug ext)
>
> python3-numpy/stable,now 1:1.12.1-3 armhf [installed]
>   Fast array facility to the Python 3 language
>
> python3-numpy-dbg/stable 1:1.12.1-3 armhf
>   Fast array facility to the Python 3 language (debug extension)
>
> python3-numpydoc/stable 0.6.0+ds1-1 all
>   Sphinx extension to support docstrings in Numpy format -- Python3
>
>   
>
> python3-rasterio/stable 0.36.0-1+b2 armhf
>   Python 3 API for using geospatial raster data with Numpy
>
> python3-scipy/stable 0.18.1-2 armhf
>   scientific tools for Python 3
>
> python3-scipy-dbg/stable 0.18.1-2 armhf
>   scientific tools for Python 3 - debugging symbols
>
> python3-seaborn/stable 0.7.1-4 all
>   statistical visualization library
>
> python3-snuggs/stable 1.4.1-1 all
>   S-expressions for numpy - Python 3 version
>
>   
>
>
>   Only hits for cv2 are Java
>
> pi@raspberrypi:~$ sudo apt search cv2
> Sorting... Done
> Full Text Search... Done
> libcv2.4/stable 2.4.9.1+dfsg1-2 all
>   computer vision library - libcv* translation package
>
> libopencv2.4-java/stable 2.4.9.1+dfsg1-2 all
>   Java bindings for the computer vision library
>
> libopencv2.4-jni/stable 2.4.9.1+dfsg1-2 armhf
>   Java jni l

Re: [OT] master/slave debate in Python

2018-09-24 Thread Gene Heskett
On Monday 24 September 2018 16:40:22 Kirill Balunov wrote:

> пн, 24 сент. 2018 г. в 22:46, Chris Angelico :
> > The trouble is that making changes like this with a view to
> > eliminating the words "master" and "slave" from all docs and
> > comments (rather than making them to improve clarity and accuracy)
> > opens up the leverage that SJWs need. "Hey, you changed that because
> > we hate slavery - now you'd better eliminate all references to
> > 'black' because we hate racism". So clear boundaries need to be set.
>
At least forty Rogers on that. No one should get their political panties 
jammed in the crack over terminology thats likely older than they are. 
And anybody that does is nothing but a troublemaker, and probably should 
be /gently/ treated as such.

> It seems to me that the word "black" has immunity in the next two
> Python releases ;)  So do not worry so much!
>
> But honestly, it's not pleasant to see how such holy things spread
> into the world of OSS, and this is apparently only the beginning.

Yes except the beginning was years, even many decades ago, the only thing 
really changed is the names we use to describe it. Each generation seems 
to be bent on makeing a bigger stink than their parents made. It isn't 
pretty, and is best handled by turning down ones hearing aid. Sometimes 
they are smart enough to realize they are being ignored and will adjust 
their attitude.

> With kind regards,
> -gdg


-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Need to find the centroid of a circular camera image

2018-09-24 Thread Gene Heskett
On Monday 24 September 2018 10:55:23 Chris Angelico wrote:

> On Tue, Sep 25, 2018 at 12:54 AM Gene Heskett  
wrote:
> > On Sunday 23 September 2018 16:24:23 Oscar Benjamin wrote:
> > > On Sun, 23 Sep 2018 at 20:45, Gene Heskett 
> >
> > wrote:
> > > > save the image and locate the centroid of that saved image.
> > > >
> > > > Is there code to do that centroid math in somebodies "bottom
> > > > desk drawer"? Something I could download and control with a bash
> > > > script which I'm fair at?
> > >
> > > This is easy enough to in OpenCV. The code at the top of this page
> > > does what you want:
> > >
> > > https://docs.opencv.org/3.4.2/dd/d49/tutorial_py_contour_features.
> > >html
> >
> > I take it that this is python-2.7? code?
> >
> > Searching thru the python3 results in synaptic, on a stretch install
> > on the rock64, python3 has not a p3 version of numpy or cv2.
> >
> > And I'd like to try and make it run on 3.5 since that seems to be
> > the newest on stretch. That would tend to future-proof this past the
> > final fixes and eventual demise of python-2.
> >
> > Is there hope for things like numpy and cv2 being ported to python
> > 3? Or can numpy and cv2 be used against 3.5 as is?
>
> Dunno about cv2, but numpy is certainly available for Python 3.

What do they call it in debian stretch for arm64?

> ChrisA

Thanks ChrisA

-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Need to find the centroid of a circular camera image

2018-09-24 Thread Gene Heskett
On Sunday 23 September 2018 16:24:23 Oscar Benjamin wrote:

> On Sun, 23 Sep 2018 at 20:45, Gene Heskett  
wrote:
> > save the image and locate the centroid of that saved image.
> >
> > Is there code to do that centroid math in somebodies "bottom desk
> > drawer"? Something I could download and control with a bash script
> > which I'm fair at?
>
> This is easy enough to in OpenCV. The code at the top of this page
> does what you want:
>
> https://docs.opencv.org/3.4.2/dd/d49/tutorial_py_contour_features.html

I take it that this is python-2.7? code? 

Searching thru the python3 results in synaptic, on a stretch install on 
the rock64, python3 has not a p3 version of numpy or cv2.

And I'd like to try and make it run on 3.5 since that seems to be the 
newest on stretch. That would tend to future-proof this past the final 
fixes and eventual demise of python-2.

Is there hope for things like numpy and cv2 being ported to python 3? Or 
can numpy and cv2 be used against 3.5 as is?

Thanks Oscar.

-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Need to find the centroid of a circular camera image

2018-09-23 Thread Gene Heskett
On Sunday 23 September 2018 16:24:23 Oscar Benjamin wrote:

> On Sun, 23 Sep 2018 at 20:45, Gene Heskett  
wrote:
> > save the image and locate the centroid of that saved image.
> >
> > Is there code to do that centroid math in somebodies "bottom desk
> > drawer"? Something I could download and control with a bash script
> > which I'm fair at?
>
> This is easy enough to in OpenCV. The code at the top of this page
> does what you want:
>
> https://docs.opencv.org/3.4.2/dd/d49/tutorial_py_contour_features.html
>
That looks like about what I'm looking for. Playing around this afternoon 
I find the laser isn't terribly well aligned, but neither is the chuck 
I've got it mounted in, so the beam path of the pattern 30" away ranges 
in the 10-12 mm diameter area.  Way too big to just shine it straight 
onto the imaging chip. So I'll have to interpose a frosted surface, and 
focus the camera on that frosted surface in order to get that image path 
on the cameras imaging chip. Problems, but not insurmountable.

Thank you very much, Oscar.

-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Need to find the centroid of a circular camera image

2018-09-23 Thread Gene Heskett
Greetings from a very poor python programmer, begging hat in hand;

I have an old lathe that has some bed wear, an linuxcnc has the 
facilities to correct that.  But it takes me surveying the machine for 
errors as the carriage is moved up and down the bed. Obviously I have to 
know what the error is, before I can correct it.

The best way is to mount a gunsighting laser in a 38 special caseing in a 
suitable adapter, and spin it in the lathes chuck, with a considerable 
neutral density filter in front of it, take a time exposure long enough 
to let the camera integrate the non-circular beam into a good circular 
pattern as the spindle turns at 500 to 1000 revs, then close 
the "shutter" save the image and locate the centroid of that saved 
image.

Is there code to do that centroid math in somebodies "bottom desk 
drawer"? Something I could download and control with a bash script which 
I'm fair at?

Thanks everybody.

-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: missing- api-ms-win-crt-runtime-|1-1-0.dll

2018-09-18 Thread Gene Heskett
On Tuesday 18 September 2018 15:59:52 MRAB wrote:

> On 2018-09-18 19:43, Gene Heskett wrote:
> > On Tuesday 18 September 2018 12:45:38 Chandan Kumar Abhimanyu wrote:
> >> how I download and install api-ms-win-crt-runtime-|1-1-0.dll 
> >> when I am downloading by googling it is not installable file.
> >> --
> >> *Chandan Kumar Abhimanyu*
> >> *+91 9876852058*
> >> *Department of Management Studies,*
> >> *Indian Institute of Technology (ISM), Dhanbad, *
> >> *Jharkhand- 826004, India.*
> >
> > I'd delete it and go get it from a more reputable site preferably
> > the M$ site as its a freely distributall part for one of their C++
> > variations.
> >
> > Best fix instructions seems to be at:
> >
> > <https://www.techadvisor.co.uk/how-to/windows/how-fix-api-ms-win-crt
> >-runtime-l1-1-0dll-error-3676874/>
> >
> > So apparently the | is a legal filename component, to a windows box.
> > Windows never ceases to amaze me. 7 machines running here right now,
> > but not a single windows install.
>
> Either that, or it's a spelling mistake. Which do you think is more
> likely? :-)

I'm fresh out of quarters to flip on that.  The character, as it existed 
all over the net when I did the google thing, was an |, not a lowercase 
l, as you have it, exists 50+ times in the reading of google hits I did 
last night. So you'll have to ask M$ which it is.

-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: missing- api-ms-win-crt-runtime-|1-1-0.dll

2018-09-18 Thread Gene Heskett
On Tuesday 18 September 2018 12:45:38 Chandan Kumar Abhimanyu wrote:

> how I download and install api-ms-win-crt-runtime-|1-1-0.dll  when
> I am downloading by googling it is not installable file.
> --
> *Chandan Kumar Abhimanyu*
> *+91 9876852058*
> *Department of Management Studies,*
> *Indian Institute of Technology (ISM), Dhanbad, *
> *Jharkhand- 826004, India.*


I'd delete it and go get it from a more reputable site preferably the M$ 
site as its a freely distributall part for one of their C++ variations.

Best fix instructions seems to be at:

<https://www.techadvisor.co.uk/how-to/windows/how-fix-api-ms-win-crt-runtime-l1-1-0dll-error-3676874/>

So apparently the | is a legal filename component, to a windows box. 
Windows never ceases to amaze me. 7 machines running here right now, but 
not a single windows install.

-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Object-oriented philosophy

2018-09-09 Thread Gene Heskett
On Sunday 09 September 2018 08:19:52 Gilmeh Serda wrote:

> On Thu, 06 Sep 2018 18:07:55 +0200, Thomas Jollans wrote:
> >> Also, get someone, preferrable a python engineer to review your
> >> code.
> >
> > Does anyone here know anyone who would refer to themselves as a
> > "Python engineer" with a straight face? I merely ask...
>
> We're all tinker bells.
>
> --
> Gilmeh

And some of us are just senior citizen tinkerers, like me :) I lurk here, 
hoping some of it will rub into me.


-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: don't quite understand mailing list

2018-09-06 Thread Gene Heskett
On Thursday 06 September 2018 16:44:20 mm0fmf wrote:

> On 06/09/2018 21:06, Ethan Furman wrote:
> > On 09/06/2018 12:42 PM, Reto Brunner wrote:
> >> What do you think the link, which is attached to every email you
> >> receive from the list, is for? Listinfo sounds very promising,
> >> doesn't it?
> >>
> >> And if you actually go to it you'll find:
> >> "To unsubscribe from Python-list, get a password reminder, or
> >> change your subscription options enter your subscription email
> >> address"
> >>
> >> So how about you try that?
> >
> > Reto,  your response is inappropriate.  If you can't be kind and/or
> > respectful, let someone else respond.
> >
> > --
> > ~Ethan~
>
> Seriously if someone has a swanky signature advertising that they are
> a rocket scientist viz. "Software Contractor,  Missiles and Fire
> Control" and yet doesn't know what a language runtime is or how
> mailing lists work then they are asking for that kind of reply.
>
> Just saying.
+1


-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: New books by O’Reilly

2018-08-19 Thread Gene Heskett
On Saturday 18 August 2018 21:40:25 Larry Martell wrote:

> https://imgur.com/gallery/tW1lwEl

Larry;

Here, it loaded very slow and the central window is empty. Was there 
supposed to be content? Or is my firefox busted?

-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: can't install/run pip (Latest version of Python)

2018-07-17 Thread Gene Heskett
On Tuesday 17 July 2018 18:48:22 S Lea wrote:

>  nd that leads to a
> question, where did you get it?, and how long ago?  Maybe its an old
> version?  Head scratcher for sure.
>
> I have 3.7, downloaded a week ago
> https://www.python.org/downloads/
>
> Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:06:47) [MSC v.1914 32
> bit (Intel)] on win32
> Type "help", "copyright", "credits" or "license" for more information.
>
> Is this what you were suggesting?

I wasn't clear enough, I was referring to your 'pip' install. But since 
this idents the 3.7 as 32 bit, I wonder if there is a 64 bit version 
there too. Yes, there are 3 of each, and I suspect you need the x86-64 
versions.

Or I could be full of it, the last windows install I allowed here was XP, 
and when I found its drivers couldn't run the radio in an HP lappy I had 
bought for a road machine, the drive got formatted and mandrake 
installed, which at least tried to run the radio. So other than 
configuring friends networking on more recent windows installs, I have 
essentially zero windows expertise. Windows is a disease I try very hard 
to stay away from.

So I'll bow out and let someone more knowledgable step in.

>
> On Mon, Jul 16, 2018 at 8:47 PM, Gene Heskett  
wrote:
> > On Monday 16 July 2018 23:06:19 S Lea wrote:
> > > 'pip' not recognized as internal or external command, operable
> > > program or batch.
> > >
> > > And for some reason it's a 32 bit version
> >
> > Huh? My ancient wet ram memory is probably out to lunch, but ISTR
> > reading about someone else with the same problem at least a year ago
> > on this list, unfortunately I have a 90 day expiry setup on this
> > list so searching is just an exercise. My email corpus is nearly 20
> > gigabytes now.
> >
> > pip has been around since it seems forever, but I would have thought
> > by now it would have been rebuilt for 64 bit systems.  And that
> > leads to a question, where did you get it?, and how long ago?  Maybe
> > its an old version?  Head scratcher for sure.
> >
> > > On Mon, Jul 16, 2018 at 8:03 PM, S Lea  wrote:
> > > > Thank you for reaching out.
> > > >
> > > > 1) Don't know what do you mean by the traceback.
> >
> > What you see in the terminal screen you ran it in. It should a press
> > the left mouse button and wipe the mouse from beginning to end so
> > its all highlighted, then position the curser in an email and press
> > the middle mouse button, which should copy the highlighted text into
> > the email.
> >
> > > > 2) In DOS, pip install pandas
> > > > 3) Yes, in DOS, Win 10
> > > > 4) 3.7
> > > > 5) Not getting much info
> > > >
> > > > On Sun, Jul 15, 2018 at 5:44 PM, boB Stepp
> > > > 
> >
> > wrote:
> > > >> On Sun, Jul 15, 2018 at 7:34 PM S Lea  wrote:
> > > >> >  I can't seem to install the pips, DOS gives me the syntex i
> > > >> > invalid,
> > > >>
> > > >> any
> > > >>
> > > >> > thoughts?
> > > >>
> > > >> You provide insufficient information for anyone to be able to
> > > >> help you.
> > > >>
> > > >> 1) Copy and paste the entire traceback into a plain text email,
> > > >> no screen shots please.
> > > >> 2) Copy and paste exactly what you typed that generated the
> > > >> syntax error. 3) Did you do all of this in cmd.exe in what
> > > >> version of Windows?  Or did you use something else?  Hopefully
> > > >> not in the interactive Python interpreter or IDLE!
> > > >> 4) What Python version are you using?
> > > >> 5) Did you try searching for the exact error message and see
> > > >> what answers might already be out there?
> > > >>
> > > >> If you provide these things, or, better, search and find the
> > > >> answer yourself, I'm sure someone will be happy to assist.
> > > >>
> > > >> Good luck!
> > > >> --
> > > >> boB
> > > >> --
> > > >> https://mail.python.org/mailman/listinfo/python-list
> >
> > --
> > Cheers, Gene Heskett
> > --
> > "There are four boxes to be used in defense of liberty:
> >  soap, ballot, jury, and ammo. Please use in that order."
> > -Ed Howdershelt (Author)
> > Genes Web page <http://geneslinuxbox.net:6309/gene>
> > --
> > https://mail.python.org/mailman/listinfo/python-list



-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: can't install/run pip (Latest version of Python)

2018-07-16 Thread Gene Heskett
On Monday 16 July 2018 23:06:19 S Lea wrote:

> 'pip' not recognized as internal or external command, operable program
> or batch.
>
> And for some reason it's a 32 bit version
>
Huh? My ancient wet ram memory is probably out to lunch, but ISTR reading 
about someone else with the same problem at least a year ago on this 
list, unfortunately I have a 90 day expiry setup on this list so 
searching is just an exercise. My email corpus is nearly 20 gigabytes 
now.

pip has been around since it seems forever, but I would have thought by 
now it would have been rebuilt for 64 bit systems.  And that leads to a 
question, where did you get it?, and how long ago?  Maybe its an old 
version?  Head scratcher for sure.

> On Mon, Jul 16, 2018 at 8:03 PM, S Lea  wrote:
> > Thank you for reaching out.
> >
> > 1) Don't know what do you mean by the traceback.

What you see in the terminal screen you ran it in. It should a press the 
left mouse button and wipe the mouse from beginning to end so its all 
highlighted, then position the curser in an email and press the middle 
mouse button, which should copy the highlighted text into the email.

> > 2) In DOS, pip install pandas
> > 3) Yes, in DOS, Win 10
> > 4) 3.7
> > 5) Not getting much info
> >
> > On Sun, Jul 15, 2018 at 5:44 PM, boB Stepp  
wrote:
> >> On Sun, Jul 15, 2018 at 7:34 PM S Lea  wrote:
> >> >  I can't seem to install the pips, DOS gives me the syntex i
> >> > invalid,
> >>
> >> any
> >>
> >> > thoughts?
> >>
> >> You provide insufficient information for anyone to be able to help
> >> you.
> >>
> >> 1) Copy and paste the entire traceback into a plain text email, no
> >> screen shots please.
> >> 2) Copy and paste exactly what you typed that generated the syntax
> >> error. 3) Did you do all of this in cmd.exe in what version of
> >> Windows?  Or did you use something else?  Hopefully not in the
> >> interactive Python interpreter or IDLE!
> >> 4) What Python version are you using?
> >> 5) Did you try searching for the exact error message and see what
> >> answers might already be out there?
> >>
> >> If you provide these things, or, better, search and find the answer
> >> yourself, I'm sure someone will be happy to assist.
> >>
> >> Good luck!
> >> --
> >> boB
> >> --
> >> https://mail.python.org/mailman/listinfo/python-list



-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: [SUSPICIOUS MESSAGE] Re: Cult-like behaviour [was Re: Kindness]

2018-07-16 Thread Gene Heskett
On Monday 16 July 2018 15:04:53 Terry Reedy wrote:

> On 7/16/2018 10:54 AM, Gene Heskett wrote:
> > On Monday 16 July 2018 10:24:28 Marko Rauhamaa wrote:
> >> Plus the bytes syntax is really ugly. I wish Python3 had reserved
> >> '...' for byte strings and "..." for UTF-32 strings.
>
> Aside from the fact that Python3 strings are not UTF-32 strings,
> this would have broken all the code that used '' and ""
> interchangeably and prohibited such conveniences as "In formal
> English, do not use don't, isn't, and ain't."
>
> >  From a lurker, that does sound usefull. The next PEP maybe?
>
> I hope you are joking or teasing Marko.
>
I wasn't, but obviously didn't consider the ramifications of that on 
existing programs. My bad. I note that it also elicited a strong defense 
of the status quo. Expected though, given the tone of this list over the 
last year or so.  So I'll go back to lurking. :) I am here to learn. If 
I can...

> --
> Terry Jan Reedy



-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Cult-like behaviour [was Re: Kindness]

2018-07-16 Thread Gene Heskett
On Monday 16 July 2018 14:01:54 Chris Angelico wrote:

> On Tue, Jul 17, 2018 at 2:24 AM, Gene Heskett  
wrote:
> > On Monday 16 July 2018 11:57:25 Chris Angelico wrote:
> >> On Tue, Jul 17, 2018 at 1:48 AM, Gene Heskett
> >> 
> >
> > wrote:
> >> > On Sunday 15 July 2018 16:09:21 Chris Angelico wrote:
> >> >> On Mon, Jul 16, 2018 at 4:22 AM, James Lee  
wrote:
> >> >> > On 7/15/2018 3:43 AM, Steven D'Aprano wrote:
> >> >> >> No. The real ten billion dollar question is how people in
> >> >> >> 2018 can stick their head in the sand and take seriously the
> >> >> >> position that Latin-1 (let alone ASCII) is enough for text
> >> >> >> strings.
> >> >> >
> >> >> > Easy - for many people, 90% of the Python code they write is
> >> >> > not intended for world-wide distribution, let alone use.
> >> >> >
> >> >> > The smart thing would be for a language to have a switch of
> >> >> > some sort to turn on/off all I18N features.
> >> >>
> >> >> Earlier I cited an example of round-tripping from human to human
> >> >> via various web protocols. Here's an actual example of a Twitch
> >> >> stream title:
> >> >>
> >> >> 【 Stardew Valley Fanart 】*:・゚✧【 800 Subpoints = NEW EMOTE
> >> >> 】#devicat #anime #stardewvalley #fantasy
> >> >
> >> > Ok, I'll bite. What font would be used to properly display the
> >> > above?
> >>
> >> Not sure, but the default fonts in my web browser, text editor, and
> >> terminal all have no problems with it. I'm on Debian Linux running
> >> Xfce, fwiw. Haven't had any issues anywhere.
> >>
> >> ChrisA
> >
> > Whereas I am on wheezy, 32 bit pae, using TDE as a desktop, with
> > kmail-1.9-10-enterprise, using a 14 point unifont for the message
> > body display.
> >
> > Its a nice clear, very readable font for these elderly eyes. I just
> > tried several of the more std fonts w/o affecting the display of the
> > rectangles you see above.  Hence the question and thread noise.
> > Apparently, and despite being set for utf-8, I don't have a font
> > capable of displaying this string in its entirety as I've just tried
> > a couple dozen more.
> >
> > Thanks ChrisA.
>
> Oh! I just remembered. Try installing (through apt-get or equivalent)
> the "unifont" package. It'll drag in a few fonts designed to provide
> good coverage of all of Unicode, making them available as fallback
> fonts. That way, when you use a font that doesn't have all the
> characters, it'll use that for the bulk of the text, but instead of
> the rectangles that you're seeing, you'll get the correct glyphs.
>
> ChrisA

Checking now ChrisA, and I already have installed:
unifont
unifont.bin
xfonts-unifont
ttf-unifont

all version 1:5.1.200809-14-1.3

Is there another package to make it complete?

I did select and install a couple that might have some connection. But I 
am still seeing the same rectangles. Obviously my guesses weren't 
SWAG's.

Thanks ChrisA
-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Cult-like behaviour [was Re: Kindness]

2018-07-16 Thread Gene Heskett
On Monday 16 July 2018 11:57:25 Chris Angelico wrote:

> On Tue, Jul 17, 2018 at 1:48 AM, Gene Heskett  
wrote:
> > On Sunday 15 July 2018 16:09:21 Chris Angelico wrote:
> >> On Mon, Jul 16, 2018 at 4:22 AM, James Lee  wrote:
> >> > On 7/15/2018 3:43 AM, Steven D'Aprano wrote:
> >> >> No. The real ten billion dollar question is how people in 2018
> >> >> can stick their head in the sand and take seriously the position
> >> >> that Latin-1 (let alone ASCII) is enough for text strings.
> >> >
> >> > Easy - for many people, 90% of the Python code they write is not
> >> > intended for world-wide distribution, let alone use.
> >> >
> >> > The smart thing would be for a language to have a switch of some
> >> > sort to turn on/off all I18N features.
> >>
> >> Earlier I cited an example of round-tripping from human to human
> >> via various web protocols. Here's an actual example of a Twitch
> >> stream title:
> >>
> >> 【 Stardew Valley Fanart 】*:・゚✧【 800 Subpoints = NEW EMOTE
> >> 】#devicat #anime #stardewvalley #fantasy
> >
> > Ok, I'll bite. What font would be used to properly display the
> > above?
>
> Not sure, but the default fonts in my web browser, text editor, and
> terminal all have no problems with it. I'm on Debian Linux running
> Xfce, fwiw. Haven't had any issues anywhere.
>
> ChrisA

Whereas I am on wheezy, 32 bit pae, using TDE as a desktop, with 
kmail-1.9-10-enterprise, using a 14 point unifont for the message body 
display.

Its a nice clear, very readable font for these elderly eyes. I just tried 
several of the more std fonts w/o affecting the display of the 
rectangles you see above.  Hence the question and thread noise. 
Apparently, and despite being set for utf-8, I don't have a font capable 
of displaying this string in its entirety as I've just tried a couple 
dozen more.

Thanks ChrisA.

-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Cult-like behaviour [was Re: Kindness]

2018-07-16 Thread Gene Heskett
On Sunday 15 July 2018 16:09:21 Chris Angelico wrote:

> On Mon, Jul 16, 2018 at 4:22 AM, James Lee  wrote:
> > On 7/15/2018 3:43 AM, Steven D'Aprano wrote:
> >> No. The real ten billion dollar question is how people in 2018 can
> >> stick their head in the sand and take seriously the position that
> >> Latin-1 (let alone ASCII) is enough for text strings.
> >
> > Easy - for many people, 90% of the Python code they write is not
> > intended for world-wide distribution, let alone use.
> >
> > The smart thing would be for a language to have a switch of some
> > sort to turn on/off all I18N features.
>
> Earlier I cited an example of round-tripping from human to human via
> various web protocols. Here's an actual example of a Twitch stream
> title:
>
> 【 Stardew Valley Fanart 】*:・゚✧【 800 Subpoints = NEW EMOTE
> 】#devicat #anime #stardewvalley #fantasy
>
Ok, I'll bite. What font would be used to properly display the above?
 
> Citation: https://www.twitch.tv/devicat just went live with that
> title. This is a channel where rule #3 is that everyone should speak
> English. If "all I18N features" are disabled, would this title be
> disallowed? Several of those characters are not in Latin-1; one of
> them (occurring twice) isn't even in the BMP.
>
> ChrisA



-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: [SUSPICIOUS MESSAGE] Re: Cult-like behaviour [was Re: Kindness]

2018-07-16 Thread Gene Heskett
On Monday 16 July 2018 10:24:28 Marko Rauhamaa wrote:

> Antoon Pardon :
> > I really don't understand why the author of that article didn't just
> > copy his python2 program but used sys.stdin.buffer and
> > sys.sydout.buffer instead of plain sys.stdin and stdout.
>
> Yes, it would be nice if you could simply restrict yourself to bytes
> everywhere when your application needed it. Unfortunately, quite many
> facilities demand text, and you will need to ponder carefully at each
> such place how you deal with encoding/decoding exceptions.
>
> Plus the bytes syntax is really ugly. I wish Python3 had reserved
> '...' for byte strings and "..." for UTF-32 strings.

>From a lurker, that does sound usefull. The next PEP maybe?

> And just look at this:
>
>AUTH_REQ = base64.b64encode(
>("\0{}\0{}".format(USERNAME,
> PASSWORD)).encode("latin1")).decode( "latin1")
>
> versus (Python2):
>
>AUTH_REQ = "\0{}\0{}".format(USERNAME, PASSWORD).encode("base64")
>
>
> Marko



-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: about main()

2018-07-07 Thread Gene Heskett
On Friday 06 July 2018 14:27:16 Grant Edwards wrote:

> On 2018-07-06, Gene Heskett  wrote:
> > In that case, I hate to say it, but your education is sorely lacking
> > in the fundamentals. Smelting for instance was discussed at length
> > in the high school physics books I was reading by the time I was in
> > the 3rd grade. Don't they teach anything in school anymore? Tanning
> > leather for instance involves a long soaking in strong tea, and
> > doesn't name the brand or genus of the tea, the important part was
> > the tannic acid content.
>
> IIRC, oak leaves/chips work well also.

Yes, and fairly well too from what I've read when I had a shed full of 
deer skins one winter about 50 years ago.
> --
> Grant Edwards   grant.b.edwardsYow! I'm shaving!!
>   at   I'M SHAVING!!
>   gmail.com
-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: about main()

2018-07-05 Thread Gene Heskett
On Thursday 05 July 2018 21:25:31 Steven D'Aprano wrote:

> On Thu, 05 Jul 2018 11:27:09 -0700, Jim Lee wrote:
> > Take a village of people.  They live mostly on wild berries.
>
> Because of course a community of people living on one food is so
> realistic. Even the Eskimos and Inuit, living in some of the harshest
> environments on earth, managed to have a relatively wide variety of
> foods in their diet.
>
> https://en.wikipedia.org/wiki/Inuit_cuisine
>
> But okay, let's run with this scenario...
>
> > One day, a man invents an automated way to sort good berries from
> > poisonous berries.
>
> Right, because it is totally realistic that a pre-agricultural society
> living on nothing but berries has mastered the technology to automate
> sorting berries.
>
> > Soon, all the villagers take their berries to him to be
> > sorted.
>
> Of course they do, because why pick only edible berries when it is so
> much more fun to pick both edible and poisonous berries, mix them
> together, and then play a game of "let's see if we missed any of the
> deadly berries and will die horribly after eating them accidentally".
>
> In this scenario of yours, is everyone in this a village a workaholic
> with a death-wish? Why exactly are they doing twice as much work as
> necessary picking poisonous berries and mixing them in together with
> the edible berries?
>
> > The man dies, but passes the secret on to his son before doing
> > so.  This continues for a few generations.  Eventually, the final
> > descendant dies with no children, and the secret vanishes.  Now, the
> > entire village is clueless when it comes to identifying the
> > poisonous berries.
>
> Even this city boy knows enough to tell the difference between edible
> blackberries, raspberries and strawberries and the many
> maybe-its-edible- maybe-its-not berries which grown on random trees
> and bushes.
>
> Are there a bunch of dead birds around the tree? Then its poisonous.
>
> Do birds happily eat the berries and keep coming back? Then its worth
> trying one or two and see if they give you a stomach ache, if not,
> they're probably safe.
>
> A more sensible example would have been mushrooms. And its true, I'm
> entirely clueless how to identify poisonous mushrooms from edible
> ones. However will I survive?
>
The mushroom question is easy Steven. Since there is NO food value to a 
mushroom, simply avoid them all. The only reason we use them in our food 
is the flavoring.  There are no calories, no or only trace amounts of 
vitamins or minerals. Skipping them is the sensible thing to do

> Nor do I know how to smelt copper, or tan leather using nothing but
> dung, or perform brain surgery. I guess civilization is about to
> collapse.
>
In that case, I hate to say it, but your education is sorely lacking in 
the fundamentals. Smelting for instance was discussed at length in the 
high school physics books I was reading by the time I was in the 3rd 
grade. Don't they teach anything in school anymore? Tanning leather for 
instance involves a long soaking in strong tea, and doesn't name the 
brand or genus of the tea, the important part was the tannic acid 
content.>
>
>
> --
> Steven D'Aprano
> "Ever since I learned about confirmation bias, I've been seeing
> it everywhere." -- Jon Ronson



-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: File names with slashes [was Re: error in os.chdir]

2018-07-05 Thread Gene Heskett
On Thursday 05 July 2018 11:57:18 Mikhail V wrote:

> Steven D'Aprano wrote:
> > In Explorer and the open-file dialog of most applications, they will
> > see paths like this:
> >
> > directory\file name with spaces
> >
> > with the extension (.jpg, .pdf, .docx etc) suppressed. So by your
> > argument, Python needs to accept strings without quotes:
> >
> > open(directory\file name with spaces, 'r')
> >
> > and guess which extension you mean.
> >
> > That would be fun to watch in action.
>
> I think it's what is called 'English humor'?
> Funny (just a little bit).
>
> Wait a moment - you are well aware of Windows features,
> that's suspicious...
>
>
> BTW Explorer with hidden extension that's a sign of
> "double-click, drag-and-drop" category of users.
> Definitely more advanced users turn on extensions,
> or don't even use explorer as a file manager.
>
> > Linux programmers will
> > see paths with spaces and other metacharacters escaped:
> >
> > directory/file\ name\ with\ spaces.txt
>
> ick. what I see is escaping of the most frequent Latin character.

ick  is a very weak adjective.

For a change, why can't windows do it right?  Oh wait, its windows so the 
question is moot.  Sigh, and just one of the reasons there are zero 
windows machines on my premises.


-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: PEP 526 - var annotations and the spirit of python

2018-07-03 Thread Gene Heskett
On Tuesday 03 July 2018 09:32:52 Dennis Lee Bieber wrote:

> On Mon, 2 Jul 2018 19:51:29 -0500, Tim Daneliuk 
>
> declaimed the following:
> >Except that the current attempt is to use techniques like agile,
> >scrum, pair programming, and so forth to turn programming into
> >a factory activity.  High degrees of specialization are segmented
> >by architectural role (front end, back end, infrastructure,
> >DevOps ...), language, and even business unit.  In my view,
> >systems architecture, software design, and non functional
> >capabilities suffer thereby, but I am old and crabby :)
>
>   Where do I join the "old and crabby" club?

You become a member automatically when you've accumulated enough 
birthdays. I'm 83, and it just sorta sneaks up on you while you're busy 
with life.
>
>   After 30 years with a DOD contractor where things went through PDR,
> CDR (and often separate sets for requirements, followed by design,
> followed by implementation), my last four years were in an environment
> as you describe above -- where the requirements seemed to be written
> based upon what the implementation of the week performed...
>
Thats horrible, you never know what the true target is.  And realizing it 
makes you a member of the club.
> --
>   Wulfraed Dennis Lee Bieber     AF6VN
>   wlfr...@ix.netcom.comHTTP://wlfraed.home.netcom.com/



-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Getting posts to sort chronologically in tree view

2018-07-02 Thread Gene Heskett
On Monday 02 July 2018 18:29:17 Grant Edwards wrote:

> On 2018-07-02, Gene Heskett  wrote:
> > On Monday 02 July 2018 17:17:21 Grant Edwards wrote:
> >> On 2018-07-02, T Berger  wrote:
> >> > Is there any way to set posts to appear chronologically in tree
> >> > view?
> >>
> >> http://slrn.sourceforge.net/docs/slrn-manual.html
> >
> > That s/b the default if threading is turned off. It is in T-bird and
> > kmail. But I've zero experience with slrn.
>
> I doubt the OP is using slrn.  But, since T Berger declined to provide
> any information at all about what _was_ being used, I thought I'd be
> snarky and assume that it was slrn, since it's obviously the best. :)
>
That depends on ones point of view, Grant. Best for me was Thor, on 
amigados.  There were no "fences" between email and a newsgroup, it 
handled it all.

> --
> Grant Edwards   grant.b.edwards    Yow! Hold the MAYO
> & pass at   the COSMIC AWARENESS ... gmail.com



-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Getting posts to sort chronologically in tree view

2018-07-02 Thread Gene Heskett
On Monday 02 July 2018 17:17:21 Grant Edwards wrote:

> On 2018-07-02, T Berger  wrote:
> > Is there any way to set posts to appear chronologically in tree
> > view?
>
> http://slrn.sourceforge.net/docs/slrn-manual.html

That s/b the default if threading is turned off. It is in T-bird and 
kmail. But I've zero experience with slrn.

-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Something new which all programmers world wide will appreciate

2018-06-28 Thread Gene Heskett
On Thursday 28 June 2018 06:35:13 Alister via Python-list wrote:

> On Wed, 27 Jun 2018 14:30:15 -0700, Rob Gaddi wrote:
> > On 06/27/2018 02:14 PM, skybuck2...@hotmail.com wrote:
> >> Now I don't like the French much ! LOL.
> >>
> >> But this time they have invented something which will fill
> >> programmers with tears of joy ! =D
> >>
> >> http://www.euronews.com/2018/06/27/pizza-making-robot
> >>
> >> Hopefully this will lead to cheaper and delicious pizzas in the
> >> future ! ;) =D
> >>
> >> Bye,
> >>Skybuck.
> >
> > Or, you know, someone didn't bother putting limit checks in and a
> > time out of 20 the thing gets lost and starts putting the sauce
> > directly on the customer.
>
> as a diabetic the bread base puts them firmly on the bad list anyway
> :-(
>
+1 at least, from another DM-II.
>
> --
> "If it ain't broke, don't fix it."
> - Bert Lantz



-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


I'm getting a spamassassin party here

2018-06-26 Thread Gene Heskett
From: Gene Heskett 

Greetings list;

Generally spamassassin only gets picky about this occasionally, but for the
past several hours its working overtime on python list messages, with the major
 problem being the servers time stamp, a day or more in the past. Anyboy ever
hear of ntpd?
--
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>

--- BBBS/Li6 v4.10 Toy-3
 * Origin: Prism bbs (1:261/38)
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: I'm getting a spamassassin party here

2018-06-26 Thread Gene Heskett
On Tuesday 26 June 2018 02:50:01 Cameron Simpson wrote:

> On 24Jun2018 17:03, Gene Heskett  wrote:
> >Greetings list;
> >
> >Generally spamassassin only gets picky about this occasionally, but
> > for the past several hours its working overtime on python list
> > messages, with the major problem being the servers time stamp, a day
> > or more in the past. Anyboy ever hear of ntpd?
> >-- Cheers, Gene Heskett
>
> Could you eyeball some of these problematic messages please?
>
> I've been noticing a swathe of messages in the past few days with
> From: headers like this:
>
>   From: "Steven D'Aprano" 
>
> where the From: has been badly mangled, I think by a usenet->list
> gateway. The Path: on these messages looks like this (give or take):
>
>   Path:
> uni-berlin.de!fu-berlin.de!news.linkpendium.com!news.linkpendium.com!n
>ews.snarked.org!news.bbs.nz!.POSTED.184-155-113-241.cpe.cableone.net!no
>t-for-mail
>
> I'd be interested to know if there is significant overlap between my
> problematic messages and yours.
>
> Cheers,
> Cameron Simpson 

Stevens messages are among the most frequent spamassassin triggers. The 
scoring diff that tips the scales is the time error:
 1.0 DATE_IN_PAST_12_24 Date: is 12 to 24 hours before Received: date

There is also this:
0.5 APOSTROPHE_FROMFrom address contains an apostrophe

This list commits a whole menu of errors that spamassassin doesn't like.

The whole list from a different message:

Content analysis details:   (5.6 points, 5.1 required)

 pts rule name  description
 -- --
 3.5 BAYES_99   BODY: Bayes spam probability is 99 to 100%
[score: 1.]
 0.0 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail
domains are different
 1.0 DATE_IN_PAST_12_24 Date: is 12 to 24 hours before Received: date
 0.2 BAYES_999  BODY: Bayes spam probability is 99.9 to 100%
[score: 1.]
 0.8 RDNS_NONE  Delivered to internal network by a host with 
no rDNS
 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid

Some of these should be fixable by proper configuration of the 
listserver, but don't confuse me with an expert. I am subscribed to the 
list.

-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


I'm getting a spamassassin party here

2018-06-25 Thread Gene Heskett
Greetings list;

Generally spamassassin only gets picky about this occasionally, but for 
the past several hours its working overtime on python list messages, 
with the major problem being the servers time stamp, a day or more in 
the past. Anyboy ever hear of ntpd?
-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Folk etymology, was Re: Python list vs google group

2018-06-18 Thread Gene Heskett
On Monday 18 June 2018 19:24:14 Jim Lee wrote:

> On 06/18/2018 04:09 PM, Gregory Ewing wrote:
> > Peter Otten wrote:
> >> "folk etymology" would be the retrofitting of the exotic "Schottky"
> >> into two familiar words "shot" and "key". Sometimes the writer
> >> assumes that these words are somehow related to the labeled object.
> >
> > Well, there is a thing called "shot noise", and you can probaby
> > get it from a Shottky diode under some circumstances, but
> > Shottky is definitely someone's name. (Walter H. Shottky, to
> > be specific.)
>
> FWIW, we used to call them barrier diodes, or sometimes hot carrier
> diodes, until the name "Schottky" became commonplace in, what, the mid
> 80s or so?
>
> -Jim

More like the early 70's. I spent from 70, to late 77 keeping one of 
Nebraska ETV's 3rd of a megawatt transmitters on the air. One of the 
support engineers brought up a 10 pack of the first HP schottkey diodes 
up and made the claim that it was a 98% efficient rectifier at 500 mhz.  
So I removed the twin vacuum tube diode (a 6AL5) that wasn't capable of 
delivering a volt of video from a monitoring test point into astd 75 ohm 
load, and soldered one of this new HP diodes in its place.  I had to 
lift it back out of its mount nearly 3/4" just to get it down to one 
volt.  It didn't take me long to modify the other 5.
 
-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python list vs google group

2018-06-18 Thread Gene Heskett
On Monday 18 June 2018 11:45:45 Joe Pfeiffer wrote:

> Peter Otten <__pete...@web.de> writes:
> > Gene Heskett wrote:
> >> This biggest single thing wrong with any of those old scsi
> >> interfaces is the bus's 5 volt isolation diode, the designer speced
> >> a shotkey(sp) diode, and some damned bean counter saw the price
> >> diff and changed it to
> >
> > Is this a case of <https://en.wikipedia.org/wiki/Folk_etymology> ?
> >
> > https://en.wikipedia.org/wiki/Walter_H._Schottky
>
> I'm missing why the claim that management changed the spec on a diode
> from Schottky to conventional would be folk etymology?  Or why Gene
> being unsure of his spelling would?  What does any of this have to do
> with etymology, folk or genuine?

Its this list, Joe. Anything as long as there is a provable effect, is 
fair game here, and has been for a goodly number of years.



-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python list vs google group

2018-06-18 Thread Gene Heskett
On Monday 18 June 2018 09:16:10 Peter Otten wrote:

> Gene Heskett wrote:
> > This biggest single thing wrong with any of those old scsi
> > interfaces is the bus's 5 volt isolation diode, the designer speced
> > a shotkey(sp) diode, and some damned bean counter saw the price diff
> > and changed it to
>
> Is this a case of <https://en.wikipedia.org/wiki/Folk_etymology> ?
>
> https://en.wikipedia.org/wiki/Walter_H._Schottky

So its spelled with two t's.

Concentrating on my spelling mistake, you probably missed my point 
entirely. But then you are not a CET either so the rest of my 
explanation may not have been in reach as it passed by at a pretty good 
technical altitude.  Sigh...

-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python list vs google group

2018-06-18 Thread Gene Heskett
On Friday 15 June 2018 23:52:12 Gregory Ewing wrote:

> Jim Lee wrote:
> > It was so long ago that I forgot some of the
> > details, but it boiled down to the TWAIN driver pushing the SCSI bus
> > out of spec.
>
> Clearly you didn't sacrifice enough goats!
>
> https://odetocode.com/blogs/scott/archive/2004/09/22/scsi-is-not-magic
>.aspx
>
> --
> Greg

This biggest single thing wrong with any of those old scsi interfaces is 
the bus's 5 volt isolation diode, the designer speced a shotkey(sp) 
diode, and some damned bean counter saw the price diff and changed it to 
a std si power diode in the BOM on the way to the production line, 
thereby destroying the headroom of the logic 1 signal level by lowering 
the supply voltage to the resistive terms used by nominally .6 volts, 
the diff in the forward drop. Back when you could run over to the shack 
and get a shotkey diode, you could make any of them work like a charm.

The other choice was to find a higher voltage to run the terms on, 5.75 
volts would have been lovely but made of pure unobtainium. But combine 
the si diode, and a psu fading with age and down to 4.85 volts on the 5 
volt line and you were doomed.

-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python list vs google group

2018-06-16 Thread Gene Heskett
On Saturday 16 June 2018 12:31:28 Jim Lee wrote:

> On 06/16/2018 08:36 AM, Richard Damon wrote:
> > On 6/15/18 11:07 PM, Jim Lee wrote:
> >>> [snip]
> >>>
> >>>> I once had a Mustek color scanner that came with a TWAIN driver. 
> >>>> If the room temperature was above 80 degrees F, it would scan in
> >>>> color - otherwise, only black & white.  I was *sure* it was a
> >>>> hardware problem, but then someone released a native Linux driver
> >>>> for the scanner.  When I moved the scanner to my Linux box, it
> >>>> worked fine regardless of temperature.
> >>>>
> >>>> -Jim
> >
> > That sounds like it would probably be classified as a software issue
> > then (or possibly documentation). It could be hardware if the
> > Windows SCSI card didn't support something it was expected to or
> > perhaps indicated that it did, or didn't negotiate correctly.
> >
> > Ultimately, often the difference between a hardware error and a
> > software error is what the documentation says, I have seen more than
> > once a hardware document saying something like Feature A was
> > intended to work this way but the hardware doesn't work right to
> > implement it, so the software needs to do XYZ as a work around. So
> > now, if the software doesn't do XYZ it is a software error, all due
> > to a hardware design issue that was just redefined.
>
> It was a software issue that manifested itself as a hardware failure. 
> However, SCSI was such a temperamental beast to begin with that finger
> pointing usually took as much time as diagnosing the problems.
>
My finger never gets tired of pointing at the bean counter between 
engineering design and the production floor. And there has been a time 
or 3 over the last 70 years when the finger was loaded.
> -Jim



-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Stefan's headers [was:Names and identifiers]

2018-06-10 Thread Gene Heskett
On Sunday 10 June 2018 14:42:02 Rick Johnson wrote:

> Gene Heskett wrote:
> > I rather like that idea. Unforch, who would be in charge of keeping
> > the books uptodate? The USTPO? Of course that would expand another
> > guvmnt agencies payroll x10, and its a waste of taxpayer dollars
> > since Albert retired anyway.
>
> What century are you trapped in pal? Heck, all you need is a
> Godaddy(c) website and a simple HTML form (Hell, they even gots
> templates for that!!!).
>
> > Here in the hew hess aye, we originally had a copyright term of 7
> > years, renewable just once for another 7. I will date myself by
> > saying I can actually remember those days.  But then Disney started
> > buying senators and congressmen, and we now have this asinine
> > lifetime +70 years just to keep Mickey Mouse and Company's (oh, and
> > don't forget a widow named Cher) income rolling in.
>
> Yeah, and they've sucked up every independent animation house between
> here and Kathmandu.
>
Probably farther than that.

> > Thats the sort of stuff usually found, warm and squishy, on the
> > ground behind the male of the bovine specie.
>
> Huh? The female bovines don't defecate where you come from? Well then!
> i see! Say hello to Qin-I, would ya?

Oh they do, but have the great good sense to take several steps away from 
the evidence, if they can. :)

Qin-I? You lost me there.

-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Stefan's headers [was:Names and identifiers]

2018-06-09 Thread Gene Heskett
On Saturday 09 June 2018 20:33:06 Steven D'Aprano wrote:

> On Sat, 09 Jun 2018 13:48:17 +0300, Marko Rauhamaa wrote:
> > Richard Damon :
> >> Copyright law is not what makes something 'closed source' in the
> >> eyes of the Open Source community. For example, Microsoft doesn't
> >> use Copyright to keep the source code for Windows secret, they just
> >> don't provide it.
> >
> > It would leak out with developers who move to new jobs. And that
> > would be good.
>
> Are you proposing to abolish trade secrets and NDAs as well? Good luck
> with that.
>
> Do your customers and clients know your opinion on releasing code you
> write for them to the rest of the world?
>
If they did, I expect it would cut the length of his ladder to where he 
eats off the hog by serious amounts.

While we may voice our opinions of the current copyright laws, they are 
to the advantage of companies who would have little or no reticence 
about silenceing dissenting opinions that might fall on the lawmakers 
ears. Those of you working for the man ought not to forget that.

-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Problem finding my folder via terminal

2018-06-09 Thread Gene Heskett
On Saturday 09 June 2018 01:36:17 Tamara Berger wrote:

> Hi Cameron,
>
> Re inline style: When I hit reply, this is the window I get. I don't
> get my previous email with the carets appended to the beginning of the
> line.
>
That might be a config choice, but since its gmail it may not be. I tried 
to use gmail as a pop server years ago, and bailed out in about a week, 
way too much was hard coded.

> Before I look at the rest of your email, I'd like for you to explain
> how there is a mymodule folder nested within another mymodule folder.
> I don't see this second folder in Finder, and I definitely didn't
> create it.

Finder, if thats what you are using, I am not familiar with it, is 
probably showing you that which it has cached, before that folder was 
created.  Back out one layer and go back in so it actually reads a fresh 
copy of that directory(folder).

> Thanks,
>
> Tamara
>
> On Sat, Jun 9, 2018 at 1:15 AM Cameron Simpson  wrote:
> > On 08Jun2018 22:55, Tamara Berger  wrote:
> > >I have to answer you via email because I haven't gotten the hang of
> > >the inline style yet.
> >
> > I'm using email :-) We use the inline style for that, too. Just walk
> > down the quoted previous message and insert your responses below the
> > relevant parts with blank lines separating the quoted material from
> > your text. Anyway...
> >
> > >Here is the result of your suggestion:
> > >
> > >Last login: Fri Jun  8 22:43:58 on ttys001
> > >192:~ TamaraB$ cd Desktop/mymodules/
> > >192:mymodules TamaraB$ ls -laR /Users/TamaraB/Desktop/mymodules
> > >total 16
> > >drwxr-xr-x   4 TamaraB  staff   136 Jun  7 01:32 .
> > >drwx--+ 37 TamaraB  staff  1258 Jun  8 22:30 ..
> > >-rw-r--r--@  1 TamaraB  staff  6148 Jun  7 10:54 .DS_Store
> > >drwxr-xr-x   5 TamaraB  staff   170 Jun  7 01:32 mymodules
> >
> > Ok, so here we see that there _is_ a "mymodules" folder inside your
> > "/Users/TamaraB/Desktop/mymodules" folder.
> >
> > >/Users/TamaraB/Desktop/mymodules/mymodules:
> > >total 16
> > >drwxr-xr-x  5 TamaraB  staff  170 Jun  7 01:32 .
> > >drwxr-xr-x  4 TamaraB  staff  136 Jun  7 01:32 ..
> > >-rw-r--r--@ 1 TamaraB  staff0 Jun  5 09:47 README.py
> > >-rw-r--r--@ 1 TamaraB  staff  253 Jun  7 10:55 setup.py
> > >-rw-r--r--@ 1 TamaraB  staff  166 Jun  5 10:01 vsearch.py
> > >192:mymodules TamaraB$
> >
> > And inside that second "mymodules" folder is your vsearch module and
> > its accompanying files. This kind of mistake is easy to make (the
> > doubled directory).
> >
> > You can do 2 things at this point.
> >
> > 1: Just:
> >
> >cd /Users/TamaraB/Desktop/mymodules/mymodules
> >
> > and run the setup.py from in there.
> >
> > Or:
> >
> > 2: Repair the mistake:
> >
> >cd /Users/TamaraB/Desktop/mymodules
> >mv mymodules/* .
> >rmdir mymodules
> >
> > which will move all the files from the lower directory up to where
> > they should be. Then run the setup.py.
> >
> > BTW, the README is normally a text file named README.txt or maybe a
> > markdown file named README.md.
> >
> > >(When I copied the coding into the email, I got a line of space
> > >between each line of coding, and had to delete the extra lines one
> > > by one? Any way to do this job nonmanually or to transfer the
> > > coding into an email without the extra lines of space?)
> >
> > That is odd. My guess would be that your cut/paste is sending the
> > end of line as a CR (carriage return) and a NL (newline), and both
> > of those are being "typed" at the paste end, resulting in double
> > spaced text. Annoying.
> >
> > Are you using mail.google.com to read your GMail? I just tried
> > cut/paste some text from both iTerm and Terminal on my Mac into a
> > scratch message there and didn't get doubled lines. Can you describe
> > _exactly_ what you did to copy the text into your email? Presumably
> > you're doing something different from what I'm doing: select text in
> > the terminal, type Cmd-C to copy it, click in my new message window
> > and type Cmd-V to paste the copied text.
> >
> > Cheers,
> > Cameron Simpson 



-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
-- 
https://mail.python.org/mailman/listinfo/python-list


  1   2   3   4   >