Re: txtorcon 23.5.0

2023-05-19 Thread Benjamin Schollnick
> *Top-posting? Really? In that case, yes, because the conversion did not depend on what was originally said. Unlike this conversation. > Actually, a very cursory look through the intarweb would have yielded this - And that’s the point, if you want to me to consider your package, I should

Re: txtorcon 23.5.0

2023-05-19 Thread Benjamin Schollnick
Meejah, Sorry, but, would you please consider adding a short description to this of what txtorcon is. It’s great that your announcing the update, and highlighting the changes…if I used it, I’d be upgrading it. But I have absolutely no idea why I would want to investigate using it, because

Re: HTTP server benchmarking/load testing in Python

2023-01-26 Thread Benjamin Schollnick
> On Jan 26, 2023, at 11:02 AM, Grant Edwards wrote: > > On 2023-01-26, Thomas Passin wrote: >> On 1/25/2023 7:38 PM, Peter J. Holzer wrote: >>> On 2023-01-25 16:30:56 -0500, Thomas Passin wrote: Great! Don't forget what I said about potential overheating if you hit the server with

Re: Automatic Gain Control in Python?

2022-05-29 Thread Benjamin Schollnick
locate it for reference. - Benjamin > On May 29, 2022, at 3:18 PM, Grant Edwards wrote: > > On 2022-05-29, Benjamin Schollnick wrote: > >> Why not just right a 3rd party package to normalize the audio levels >> in the digital file? It’ll be faster, and probab

Re: Automatic Gain Control in Python?

2022-05-29 Thread Benjamin Schollnick
: You have three wishes. > Me: I wish I had more wishes. > Genie: You cannot wish for more wishes. > Me: I wish I could. > > From: Benjamin Schollnick <mailto:bscholln...@schollnick.net>> > Sent: Sunday, May 29, 2022 11:18 AM > To: Steve GS mailto:Gronic

Re: Automatic Gain Control in Python?

2022-05-29 Thread Benjamin Schollnick
Okay, you are capturing the audio stream as a digital file somewhere, correct? Why not just right a 3rd party package to normalize the audio levels in the digital file? It’ll be faster, and probably easier than trying to do it in real time… eg.

Re: Best way to check if there is internet?

2022-02-25 Thread Benjamin Schollnick
>>> Thanks for the in-between. I really like the Python comunity as, >>> even though it's a 'scripting' language, > > And we like you, even though you're only a ... > > In English, a statement like that is considered rather insulting. > >> To me, it's a programming language. In my usage, a

Re: pyinstaller wrong classified as Windows virus

2021-11-29 Thread Benjamin Schollnick
>> Windows Defender has a setting to also use “Reputation Scoring”. >> What that simply means is that WDef will report back a hash to microsoft >> which is then checked to see if it is known. If it is known, then it has a >> reputation and based off that reputation Defender will either allow it

Re: pyinstaller wrong classified as Windows virus

2021-11-29 Thread Benjamin Schollnick
Windows Defender has a setting to also use “Reputation Scoring”. What that simply means is that WDef will report back a hash to microsoft which is then checked to see if it is known. If it is known, then it has a reputation and based off that reputation Defender will either allow it to run or

Re: Why so fast a web framework?

2021-10-29 Thread Benjamin Schollnick
>> Sometimes this group reminds me of a certain large company I worked for. >> If they didn't have a solution addressing a problem, they'd pretend it >> didn't matter and belittle anyone who questioned that version of reality. >> > > That's not strictly true; what's happening here is that

Re: Does loading PDB slow down execution?

2021-10-27 Thread Benjamin Schollnick
> On Oct 27, 2021, at 1:01 PM, Unixnut wrote: > > On 06/10/2021 18:30, Dieter Maurer wrote: >> Unixnut wrote at 2021-10-3 22:03 +0100: >>> If I run a python3 program with "import pdb" in the code, would it >>> execute slower than without loading the debugger? >> Importing `pdb` does not slow

Re: Optimizing Small Python Code

2021-06-22 Thread Benjamin Schollnick
How would you measure the steps that it takes? - Benjamin > On Jun 22, 2021, at 7:04 PM, Greg Ewing wrote: > > On 23/06/21 3:03 am, Kais Ayadi wrote: >> for n in range(1, 7): >> print (n) >> for x in range(0, n): >> print(" ", x) >> can this code be more

Re: neoPython : Fastest Python Implementation: Coming Soon

2021-05-05 Thread Benjamin Schollnick
> Why? The currently extant Python implementations contribute to climate change > as they are so inefficient; That same argument can be made for every triple-AAA video game, game console, etc. Python is more efficient for some problem sets, and Python is less efficient for other problem

Re: not able to download PyAudio

2021-04-02 Thread Benjamin Schollnick
> On Apr 2, 2021, at 4:40 AM, ᗷᑌᑎᑎY wrote: > > Hello everyone > I am not able to download PyAudio. I tried by typing pip install in > PyAudio in cmd but it show's no compatible version availbale. What should > I do? . There seems to be some confusion, which I can understand… “No

Re: .title() - annoying mistake

2021-03-22 Thread Benjamin Schollnick
>> That's not true for digraphs where there is a third, distinct and >> different "title" case. I think the doc should state that the initial >> character is converted to titlecase. A parenthentical statement that >> titlecase is usually but not always equal to uppercase would be nice, >> but the

Re: .title() - annoying mistake

2021-03-22 Thread Benjamin Schollnick
>> I guess it depends on what you mean by "character". In my mind, the >> first character of string s is s[1], and I would then expect that >> >> s.title()[1] == s[1].upper() >> > > I presume you mean [0], but no, that's not the case. A single > character can titlecase to two characters, or to

Re: .title() - annoying mistake

2021-03-22 Thread Benjamin Schollnick
Robert, I certainly see your point. > My only issue is that I completely fail to see how this function would be > useful enough to warrant the inclusion into the *core* of a general-purpose > language, including its misleading name. But that’s where we have to disagree. Sure, the name cold

Re: .title() - annoying mistake

2021-03-21 Thread Benjamin Schollnick
>> Heck, how do we prevent it from titlecasing abbreviations? (This is plain >> text not XML…. If it was XML it would be easy!) > > We haven't managed to teach humans how to do that, so I doubt we'll > ever teach a simple standard library function to do it. > > *cough*XMLHttpRequest*cough*

Re: .title() - annoying mistake

2021-03-21 Thread Benjamin Schollnick
> I agree with everything you say. Especially the open source part. But wouldn't > you agree that .title() with all its arbitrary specificity to appear in the > very core of a general purpose language is quite an oddity? No, because it book ends the issue. Upper - Converts everything to

Re: .title() - annoying mistake

2021-03-21 Thread Benjamin Schollnick
>> The problem is that you haven't read the documentation :) It very carefully >> does NOT define itself by language, and its behaviour is identical regardless >> of the language used. > > The documentation says: "The algorithm uses a simple language-independent > definition of a word as groups

Re: How do I read .csv files

2021-03-16 Thread Benjamin Schollnick
The best answer is to use the CSV library, but there are wrappers around it. For example, I use a wrapper of my own creation (csv_common.py) @ https://github.com/bschollnick/bas_Utilities . The main benefit is that I can create variant CSV’s by just

Re: New Python implementation

2021-02-19 Thread Benjamin Schollnick
>> that method was borrowed from or vice versa. Being a rich language has pro's >> and cons. LISP only had cons. Now, Now. That’s certainly not correct. LISP does have a few Pros. Namely Job security. You’ll have a hard time replacing a experienced and professional LISP programmer.

Re: Managing plug-ins

2020-05-25 Thread Benjamin Schollnick
Did you ever find anything that met your requirements? If not, I have a prototype that I need to build out some more… https://github.com/bschollnick/PyPlugInMgr I use it for some home grown utilities, but it needs to be fleshed out some more… If

[issue37709] CSVReader ignores dialect.lineterminator

2019-07-30 Thread Benjamin Schollnick
Benjamin Schollnick added the comment: This is tested under python 3... filename = "csv_Sample.csv" from csv import DictReader datafile = open(filename, 'r') data = csv.DictReader(datafile, lineterminator = '\x07', delimiter='\x06') print(next(data)) OrderedDict([('Field1', 'A')

[issue37709] CSVReader ignores dialect.lineterminator

2019-07-29 Thread Benjamin Schollnick
New submission from Benjamin Schollnick : I've run into a situation where the CSV input file is very unusual. The Delimiter is "\x06" and the lineterminator is "\x07". While I've written code to work around this, it would be significantly nicer if the CSV Reader code act

RAR functionality

2018-11-30 Thread Benjamin Schollnick
Folks, Can anyone explain to me why RAR support isn’t available natively in python? We have the zipfile and tarfile modules… Yes, there is rarfile and PaTools but they both rely on RAR being available to shell out to… What is it about RAR files that makes it unreasonable to handle in

Re: pypi submission?

2015-04-07 Thread Benjamin Schollnick
On Apr 6, 2015, at 6:47 PM, Dylan Evans dylanlee.evan...@gmail.com wrote: On 6 April 2015 at 23:21:02, Benjamin Schollnick (bscholln...@gmail.com) wrote: And I’ve been messing around with different config files, etc, trying to solve the problem myself. Can anyone point out what I

pypi submission?

2015-04-06 Thread Benjamin Schollnick
Folks, I’m having issues with submitting to pypi. I can register and upload my package. nerv:~ Benjamin$ pip search directory_caching Directory_Caching - A Caching library for Directories Files nerv:~ Benjamin$ but, if you try to install it using pip: pip install directory_caching

Directory Caching, suggestions and comments?

2014-05-15 Thread Benjamin Schollnick
Folks, I am going to be using this code as part of a web system, and I would love any feedback, comments and criticism. Just as a side note, I'm not completely PEP 8. I know that, I use a slightly laxer setting in pylint, but I'm working my way up to it... I am using scandir from benhoyt to

Re: Cookie issue(cant fix it with anyhting)

2013-10-27 Thread Benjamin Schollnick
Nikos, Hello i having the following code to try and retrieve the visitor's saved cookie form the browser. [CODE] # initialize cookie and retrieve cookie from clients browser try: cookie = cookies.SimpleCookie( os.environ['HTTP_COOKIE'] ) cookieID = cookie['name'].value except:

Code suggestions?

2013-09-21 Thread Benjamin Schollnick
Folks, I am re-writing an image gallery application that I wrote in Twisted. As part of this rewrite, I am attempting to simplify the process of managing the directory listings. Would anyone have any suggestions on streamlining or optimizing this code? The raw version of this file, is

Re: Why 'files.py' does not print the filenames into a table format?

2013-06-15 Thread Benjamin Schollnick
Nick, at this point, you need to hire someone to do your work for you. The code is completely ready. Some detail is missing and its not printing the files as expected. Then the code is not completely ready, it has bugs, and your trying to have the list debug and fix it for you for free.

Re: A few questiosn about encoding

2013-06-15 Thread Benjamin Schollnick
Nick, The only thing that i didn't understood is this line. First please tell me what is a byte value \x1b is a sequence you find inside strings (and byte strings, the b'...' format). \x1b is a character(ESC) represented in hex format b'\x1b' is a byte object that represents what?

Re: Apache and suexec issue that wont let me run my python script

2013-06-04 Thread Benjamin Schollnick
On Jun 4, 2013, at 6:12 AM, Νικόλαος Κούρας nikos.gr...@gmail.com wrote: Checking the permissions of /var/log/httpd directory itself: ni...@superhost.gr [~/www/cgi-bin]# ls -ld /var/log/httpd/ drwx-- 2 root root 4096 Jun 1 02:52 /var/log/httpd// Is that a problem? http != Apache ?

Re: This mail never gets delivered. Any ideas why?

2013-03-11 Thread Benjamin Schollnick
Nagia, Thank you Thomas but that simple line as i have it now its capable of sending mail successfully wven with greek letters two in subject or in message variables. Now need to dad additional extra code for it to work. Your code as it is, isn't working. They just sent you several

Re: Python Makefiles... are they possible?

2013-02-13 Thread Benjamin Schollnick
One thing we do in our Makefiles is find . -name '*.pyc' | xargs rm. It avoids all sorts of nasty and hard to track down bugs (consider what happens if you move a .py file from one place in your source tree to another and leave the old .pyc behind). How often do you move files around in the

Re: sorting 1172026 entries

2012-05-06 Thread Benjamin Schollnick
On May 6, 2012, at 11:57 AM, J. Mwebaze wrote: I have several lists with approx 1172026 entries. I have been trying to sort the records, but have failed.. I tried lists.sort() i also trired sorted python's inbuilt method. This has been running for weeks. Any one knows of method that can

Need advice on Web / Database framework...

2011-09-03 Thread Benjamin Schollnick
Folks, I need some advice on a python web database framework to use...? I have handcrafted a sqllite3 python script, that is a basic web application, interfacing with a sqlite3 database... But I am concerned at the thought of handcrafting a administration interface, and so forth. Are there

Small Problem with Weather Underground XML API...

2011-06-05 Thread Benjamin Schollnick
I am working scraping the Weather Underground using the XML interface... I am hoping to to add this into the pywapi, but that looks like it's been abandoned? I haven't seen any updates in ages to it... And I'm using the Weather Underground XML API

Has anyone seen any updated versions of pywapi? (Python Weather API)

2011-06-05 Thread Benjamin Schollnick
The Google Code site is at http://code.google.com/p/python-weather-api/ And it's powerful, but I don't see any updates since late 2010... Does anyone know of a different pre-built API for accessing weather information? - Benjamin -- http://mail.python.org/mailman/listinfo/python-list

Re: Has anyone seen any updated versions of pywapi? (Python Weather API)

2011-06-05 Thread Benjamin Schollnick
. - Ben -- Sent from my Mobile Communication Device. On Jun 5, 2011, at 10:31 PM, Brian Curtin brian.cur...@gmail.com wrote: On Sun, Jun 5, 2011 at 19:27, Benjamin Schollnick bscholln...@schollnick.net wrote: The Google

Perl conversion to python...

2009-11-23 Thread Benjamin Schollnick
Folks, I'm having some issues here with pyserial trying to translate a perl script to python... It's probably my inexperience with PySerial perl that is troubling me... Can anyone assist? I'm concerned, since I can't seem to receive the data in any reliable manner.. I've tested multiple

SSL via Proxy (URLLIB2) on Windows gives Unknown Protocol error?

2005-04-20 Thread Benjamin Schollnick
Folks, With Windows XP, and Python v2.41 I am running into a problem The following code gives me an unknown protocol error And I am not sure how to resolve it... I have a API written for DocuShare for a non-SSL server, and I wanted to update it to support the SSL/S3 login So here's