Re: choice of web-framework

2017-10-23 Thread dieter
Patrick Vrijlandt writes: > ... > The project is completely new, there are no histories to take into > account (current solutions are paper-based). The website involves > questionnaires that will be developed, filled out and stored. Users > are not programmers or developers. They should be > authe

Re: Modern website

2017-10-23 Thread dieter
Andrew Z writes: > I realize the following has little todo with python per se. But i hope to > get a guidance on how these types of tasks are done nowadays. > > The task: > Ive been asked to create an integration process. That is a few webpages > with questioneer with the submission to a "mother"

Re: grapheme cluster library

2017-10-23 Thread Steve D'Aprano
On Mon, 23 Oct 2017 05:47 pm, Rustom Mody wrote: > On Monday, October 23, 2017 at 8:06:03 AM UTC+5:30, Lawrence D’Oliveiro > wrote: [...] >> Bear in mind that the logical representation of the text is as code points, >> graphemes would have more to do with rendering. > > Heh! Speak of Euro/Anglo-

Re: right list for SIGABRT python binary question ?

2017-10-23 Thread Karsten Hilbert
On Sun, Oct 22, 2017 at 11:10:33PM +0200, Karsten Hilbert wrote: >> It points to a memory corruption. > > thanks for your guidance. I fear this approach is out of my class. For what it's worth I have run a successful overnight memory stress test (memtest86+) so it shouldn't be a bad bit in hardwa

Re: Compression of random binary data

2017-10-23 Thread danceswithnumbers
Ridiculous? Ludicrous?? Harsh words! First let me clarify before you lump this in with perpetual motion, or cold fusion. It is a mapping solution to compress ANY i repeat ANY random file with numbers of only 0 - 9 such as are in the million rand numbers page. Entirely possible. Since i did it,

Re: Compression of random binary data

2017-10-23 Thread Chris Angelico
On Mon, Oct 23, 2017 at 8:06 PM, wrote: > Ridiculous? Ludicrous?? > > Harsh words! First let me clarify before you lump this in with perpetual > motion, or cold fusion. It is a mapping solution to compress ANY i repeat ANY > random file with numbers of only 0 - 9 such as are in the million rand

Re: Compression of random binary data

2017-10-23 Thread danceswithnumbers
According to this website. This is an uncompressable stream. https://en.m.wikipedia.org/wiki/Incompressible_string 12344321 It only takes seven 8 bit bytes to represent this -- https://mail.python.org/mailman/listinfo/python-list

Re: Compression of random binary data

2017-10-23 Thread Paul Moore
On 23 October 2017 at 10:32, wrote: > According to this website. This is an uncompressable stream. > > https://en.m.wikipedia.org/wiki/Incompressible_string > > 12344321 > > It only takes seven 8 bit bytes to represent this Would you care to provide the seven 8-bit bytes you propose to u

Re: Compression of random binary data

2017-10-23 Thread Chris Angelico
On Mon, Oct 23, 2017 at 8:32 PM, wrote: > According to this website. This is an uncompressable stream. > > https://en.m.wikipedia.org/wiki/Incompressible_string > > 12344321 > > It only takes seven 8 bit bytes to represent this That page says nothing about using a byte to represent each

Re: Compression of random binary data

2017-10-23 Thread Thomas Jollans
On 2017-10-23 11:32, danceswithnumb...@gmail.com wrote: > According to this website. This is an uncompressable stream. > > https://en.m.wikipedia.org/wiki/Incompressible_string > > 12344321 No, it's not. According to that article, that string is incompressible by a particular algorithm.

Re: Compression of random binary data

2017-10-23 Thread danceswithnumbers
I really do not think this has a value besides being a trinket or cute toy. Like i said i can not see how it can be adapted to work as a rand binary compression alg...it only works with 0-9 in any seq. It's taken me six years to solve, but so what. Jon Hutton danceswithnumb...@gmail.com -- htt

Re: Compression of random binary data

2017-10-23 Thread Marko Rauhamaa
Thomas Jollans : > On 2017-10-23 11:32, danceswithnumb...@gmail.com wrote: >> According to this website. This is an uncompressable stream. >> >> https://en.m.wikipedia.org/wiki/Incompressible_string >> >> 12344321 > > No, it's not. According to that article, that string is incompressible

Re: Compression of random binary data

2017-10-23 Thread Ben Bacarisse
danceswithnumb...@gmail.com writes: > ... First let me clarify before you lump this in with > perpetual motion, or cold fusion. It is a mapping solution to compress > ANY i repeat ANY random file with numbers of only 0 - 9 such as are in > the million rand numbers page. Entirely possible. Of cour

Re: choice of web-framework

2017-10-23 Thread Kevin van Keeken
Greetings, while reading through this topic i would like to know, if cherrypy is a viable web-framework as well? I stumbled upon this project a while ago, but didn't read through it in detail and would like to hear something about it, especially in regards to the project requirements. Kind regar

Re: Compression of random binary data

2017-10-23 Thread alister via Python-list
On Mon, 23 Oct 2017 10:41:55 +0100, Paul Moore wrote: > On 23 October 2017 at 10:32, wrote: >> According to this website. This is an uncompressable stream. >> >> https://en.m.wikipedia.org/wiki/Incompressible_string >> >> 12344321 >> >> It only takes seven 8 bit bytes to represent this >

Re: right list for SIGABRT python binary question ?

2017-10-23 Thread Karsten Hilbert
On Sat, Oct 21, 2017 at 09:31:54AM +0200, dieter wrote: > It points to a memory corruption. While running valgrind and friends is beyond my capabilitis I have run the problem through gdb to at least obtain a stack trace to see what gives: ... ==> verifying target database schema

Sockets but calling from different programs

2017-10-23 Thread T Obulesu
I'm new to python3 and scratching my head to write a program for this logic: classA.py Class A: # class for socket communication basic init method that initializes port, address, connection method send(message): # for sending any message through the given por

Re: Compression of random binary data

2017-10-23 Thread Chris Angelico
On Mon, Oct 23, 2017 at 11:18 PM, alister via Python-list wrote: > On Mon, 23 Oct 2017 10:41:55 +0100, Paul Moore wrote: > >> On 23 October 2017 at 10:32, wrote: >>> According to this website. This is an uncompressable stream. >>> >>> https://en.m.wikipedia.org/wiki/Incompressible_string >>> >>>

Re: right list for SIGABRT python binary question ?

2017-10-23 Thread Thomas Jollans
On 2017-10-23 14:23, Karsten Hilbert wrote: > On Sat, Oct 21, 2017 at 09:31:54AM +0200, dieter wrote: > >> It points to a memory corruption. > > While running valgrind and friends is beyond my capabilitis I > have run the problem through gdb to at least obtain a stack > trace to see what gives:

Re: right list for SIGABRT python binary question ?

2017-10-23 Thread Karsten Hilbert
On Mon, Oct 23, 2017 at 03:26:18PM +0200, Thomas Jollans wrote: > >> It points to a memory corruption. > > > > While running valgrind and friends is beyond my capabilitis I > > have run the problem through gdb to at least obtain a stack > > trace to see what gives: > > I wouldn't read too much i

Re: Compression of random binary data

2017-10-23 Thread Neil Cerutti
On 2017-10-23, Chris Angelico wrote: > On Mon, Oct 23, 2017 at 11:18 PM, alister via Python-list > wrote: >> On Mon, 23 Oct 2017 10:41:55 +0100, Paul Moore wrote: >> >>> On 23 October 2017 at 10:32, >>> wrote: According to this website. This is an uncompressable stream. https://en

Re: Compression of random binary data

2017-10-23 Thread alister via Python-list
On Mon, 23 Oct 2017 13:40:59 +, Neil Cerutti wrote: > On 2017-10-23, Chris Angelico wrote: >> On Mon, Oct 23, 2017 at 11:18 PM, alister via Python-list >> wrote: >>> On Mon, 23 Oct 2017 10:41:55 +0100, Paul Moore wrote: >>> On 23 October 2017 at 10:32, wrote: > According to th

Re: Compression of random binary data

2017-10-23 Thread danceswithnumbers
I'm really not trolling, and even though some are sarcastic i sm learning from your comments. Dec to bin is not bad at removing wasted space, but there is a better way. Here is an example. How would you compress these numbers. If you look for redundancy and then code to a bulky dictionary or cha

Re: grapheme cluster library

2017-10-23 Thread Rustom Mody
On Monday, October 23, 2017 at 1:15:35 PM UTC+5:30, Steve D'Aprano wrote: > On Mon, 23 Oct 2017 05:47 pm, Rustom Mody wrote: > > > On Monday, October 23, 2017 at 8:06:03 AM UTC+5:30, Lawrence D’Oliveiro > > wrote: > [...] > >> Bear in mind that the logical representation of the text is as code poi

IDLE doesn't recognise installed packages

2017-10-23 Thread Daniel Tangemann
hi, I've recently downloaded and installed python 3.6. (I had already also 2.7 and 3.2 on my computer) Initially pip was looking in the wrong directory to install to, so I changed that. then it had trouble installing matplotlib, so I decided to get rid of the older versions of python, which srew

Re: Compression of random binary data

2017-10-23 Thread Paul Moore
On 23 October 2017 at 15:29, wrote: > I'm really not trolling, and even though some are sarcastic i sm learning > from your comments. I'm willing to believe that, but if you're trying to claim you have "compressed" data (in a way that satisfies the technical, information-theoretic meaning of th

Re: Compression of random binary data

2017-10-23 Thread danceswithnumbers
Just trying to find a practical application for this alg. Not real useful as it stands now. Jon Hutton -- https://mail.python.org/mailman/listinfo/python-list

Re: Compression of random binary data

2017-10-23 Thread danceswithnumbers
Thanks Paul...blunt to the point. My 8 year old can decode this back into base 10, i still have to help him a bit going from base 10 to 8 bit bytesit's incredibly simple to decode. No dictionary, can easily be done with pencil and paper, does not rely on redundancies. Jon Hutton -- https

Re: Compression of random binary data

2017-10-23 Thread Thomas Jollans
On 2017-10-23 07:39, Steve D'Aprano wrote: > By the way: here is a very clever trick for hiding information in the file > system: > > http://www.patrickcraig.co.uk/other/compression.php > > > but as people point out, the information in the file, plus the information in > the file system, ends up

I used list, def. why li += [100, 200] , and li = li + [100, 200] is different

2017-10-23 Thread 임현준
I am a Korean student, and I am a beginner in English and Python.;( I can't understand about this def If I want to print [1,2,3,4,5] [1,2,3,4,5,100,200] I will make code like this, and I can understand code. def modify(li): li += [100,200] list = [1,2,3,4,5] print(list) modify(list) pr

Re: Compression of random binary data

2017-10-23 Thread Thomas Jollans
On 2017-10-23 17:39, danceswithnumb...@gmail.com wrote: > Thanks Paul...blunt to the point. > > My 8 year old can decode this back into base 10, i still have to help him a > bit going from base 10 to 8 bit bytesit's incredibly simple to decode. No > dictionary, can easily be done with pencil

Re: I used list, def. why li += [100,200] , and li = li + [100,200] is different

2017-10-23 Thread Rob Gaddi
On 10/23/2017 09:29 AM, 임현준 wrote: I am a Korean student, and I am a beginner in English and Python.;( I can't understand about this def If I want to print [1,2,3,4,5] [1,2,3,4,5,100,200] I will make code like this, and I can understand code. def modify(li): li += [100,200] list = [1

Re: I used list, def. why li += [100, 200] , and li = li + [100, 200] is different

2017-10-23 Thread MRAB
On 2017-10-23 17:29, 임현준 wrote: I am a Korean student, and I am a beginner in English and Python.;( I can't understand about this def If I want to print [1,2,3,4,5] [1,2,3,4,5,100,200] I will make code like this, and I can understand code. def modify(li): li += [100,200] list = [1,2,

Re: Compression of random binary data

2017-10-23 Thread danceswithnumbers
Good point I hope it has a use, other than a cute toyi don't see it yet. -- https://mail.python.org/mailman/listinfo/python-list

Re: I used list, def. why li += [100, 200] , and li = li + [100, 200] is different

2017-10-23 Thread Rhodri James
On 23/10/17 17:29, 임현준 wrote: I am a Korean student, and I am a beginner in English and Python.;( I can't understand about this def If I want to print [1,2,3,4,5] [1,2,3,4,5,100,200] I will make code like this, and I can understand code. def modify(li): li += [100,200] > list = [1,2,3

Re: I used list, def. why li += [100,200] , and li = li + [100,200] is different

2017-10-23 Thread Bill
Rob Gaddi wrote: On 10/23/2017 09:29 AM, 임현준 wrote: I am a Korean student, and I am a beginner in English and Python.;( I can't understand about this def If I want to print [1,2,3,4,5] [1,2,3,4,5,100,200] I will make code like this, and I can understand code. def modify(li): li += [1

Re: Compression of random binary data

2017-10-23 Thread Neil Cerutti
On 2017-10-23, alister via Python-list wrote: >> 12344321 >> >> It only takes seven 8 bit bytes to represent this > > Would you care to provide the seven 8-bit bytes you propose to use? > Paul I would suspect he is using BCD & storing 2 values in reach >>>

Windows alternative: multiprocessing.connection.wait on Pipe, Tkinter File Handlers

2017-10-23 Thread Josh Jacobson
The two functions in the subject are not fully implementable on Windows, and so I am looking for an alternative. Relevant SO postings including full code and description, with bounty: Freezes

Re: Searching For Old Posts On Python

2017-10-23 Thread Cai Gengyang
Right ... I am going to continue learning Python then ... On Thursday, October 19, 2017 at 3:39:44 AM UTC+8, Ian wrote: > On Mon, Oct 16, 2017 at 10:42 PM, Cai Gengyang wrote: > > https://duckduckgo.com/html/?q=%22Cai%20Gengyang%22%20python This > > seems to be the only method that works,

Re: choice of web-framework

2017-10-23 Thread John Black
In article , ros...@gmail.com says... > For the database, I generally use PostgreSQL, unless the job's so > simple it can be done with flat files. Using Flask with SQLAlchemy is > a popular option, but you can also dive into psycopg2 directly (the > "2" doesn't mean "Python 2.7 only", it's fine).

Re: Compression of random binary data

2017-10-23 Thread danceswithnumbers
Wow, do programmers actually use zscii. That is huge. So much wated space. -- https://mail.python.org/mailman/listinfo/python-list

Re: choice of web-framework

2017-10-23 Thread Chris Warrick
On 23 October 2017 at 21:37, John Black wrote: > Chris, thanks for all this detailed information. I am confused though > with your database recommendation. You say you teach SQLAlchemy but > generally use PostgreSQL yourself. I can maybe guess why there seems to > be this contradiction. Perhap

Re: Compression of random binary data

2017-10-23 Thread Ian Kelly
On Mon, Oct 23, 2017 at 1:42 PM, wrote: > Wow, do programmers actually use zscii. That is huge. So much wated space. Not really. ZSCII is only relevant if you're writing Z-code or a Z-code interpreter. Those in turn are only relevant if you're writing Infocom games. -- https://mail.python.org/m

Re: Windows alternative: multiprocessing.connection.wait on Pipe, Tkinter File Handlers

2017-10-23 Thread Thomas Jollans
On 23/10/17 18:34, Josh Jacobson wrote: > The two functions in the subject are not fully implementable on Windows, > and so I am looking for an alternative. > > Relevant SO postings including full code and description, with bounty: > Freezes >

Re: grapheme cluster library

2017-10-23 Thread Thomas Jollans
On 23/10/17 16:25, Rustom Mody wrote: > On Monday, October 23, 2017 at 1:15:35 PM UTC+5:30, Steve D'Aprano wrote: >> >> and more. Many linguists also include digraphs (pairs of letters) like the >> English "th", "sh", "qu", or "gh" as graphemes. >> >> >> https://www.thoughtco.com/what-is-a-grapheme

Installing tkinter on FreeBSD

2017-10-23 Thread Dick Holmes
I am trying to use tkinter on a FreeBSD system but the installed versions of Python (2.7 and 3.6) don't have thinter configured. I tried to download the source (no binaries available for FreeBSD) and build a new version of Python but the build reported that it couldn't install _tkinter. Despite

Re: Sandsifter software finds hidden instructions inside processors.

2017-10-23 Thread skybuck2000
Question: What do the letters # v l s c Stand for in this source code ? v = not valid/valid l = length s = ? c = ? If somebody with lots of python experience could dive into this code and then tell me I'd be most gratefull ! :) # # ./sifter.py --unk --dis -

Re: Sandsifter software finds hidden instructions inside processors.

2017-10-23 Thread MRAB
On 2017-10-23 23:50, skybuck2...@hotmail.com wrote: Question: What do the letters # v l s c Stand for in this source code ? v = not valid/valid l = length s = ? c = ? If somebody with lots of python experience could dive into this code and then tell me I'd b

Re: Sandsifter software finds hidden instructions inside processors.

2017-10-23 Thread skybuck2000
Idea of this software is basically: Generate random bytes and feed them to processor. Observe result of processor if good or bad (error codes). If good check docs. If bad adjust and retry. Somebody wrote a nice short explanation of what SandSifter does to give you an idea (it's a new algorithm

Re: Sandsifter software finds hidden instructions inside processors.

2017-10-23 Thread skybuck2000
On Tuesday, October 24, 2017 at 1:13:22 AM UTC+2, MRAB wrote: > On 2017-10-23 23:50, skybuck2...@hotmail.com wrote: > > Question: > > > > What do the letters > > > > # v l s c > > > > Stand for in this source code ? > > > > v = not valid/valid > > l = length > >

Re: Installing tkinter on FreeBSD

2017-10-23 Thread Thomas Jollans
On 24/10/17 00:16, Dick Holmes wrote: > I am trying to use tkinter on a FreeBSD system but the installed > versions of Python (2.7 and 3.6) don't have thinter configured. I tried > to download the source (no binaries available for FreeBSD) and build a > new version of Python but the build report

Re: Compression of random binary data

2017-10-23 Thread danceswithnumbers
Finally figured out how to turn this into a random binary compression program. Since my transform can compress more than dec to binary. Then i took a random binary stream, changed it to a decimal stream 0-9 tranformed it into a compressed/encrypted binary stream 23.7% smaller. Yes! Decode revers

Re: Compression of random binary data

2017-10-23 Thread Steve D'Aprano
On Tue, 24 Oct 2017 01:27 pm, danceswithnumb...@gmail.com wrote: > Finally figured out how to turn this into a random binary compression > program. Since my transform can compress more than dec to binary. Then i > took a random binary stream, changed it to a decimal stream 0-9 tranformed > it into

Re: Compression of random binary data

2017-10-23 Thread danceswithnumbers
I did that quite a while ago. 352,954 kb. -- https://mail.python.org/mailman/listinfo/python-list

Re: Compression of random binary data

2017-10-23 Thread Steve D'Aprano
On Tue, 24 Oct 2017 03:13 pm, danceswithnumb...@gmail.com wrote: > I did that quite a while ago. 352,954 kb. Sure you did. Let's see the code you used. -- Steve “Cheer up,” they said, “things could be worse.” So I cheered up, and sure enough, things got worse. -- https://mail.python.org/ma

Re: Compression of random binary data

2017-10-23 Thread Chris Angelico
On Tue, Oct 24, 2017 at 2:28 AM, Paul Moore wrote: > Hope this helps put the subject into context. Compression is a very > technical subject, to "do it right". Special cases can be worked out, > sure, but the "hidden assumptions" in a method are what make the > difference between a "compression al

Re: Compression of random binary data

2017-10-23 Thread Gregory Ewing
danceswithnumb...@gmail.com wrote: 12344321 It only takes seven 8 bit bytes to represent this This is not surprising. The theoretical minimum size for 16 arbitrary decimal digits is: log2(10) * 16 = 53.15 bits = 6.64 bytes I think you misunderstand what is meant by the phrase "random

Re: Compression of random binary data

2017-10-23 Thread Gregory Ewing
danceswithnumb...@gmail.com wrote: I did that quite a while ago. 352,954 kb. Are you sure? Does that include the size of all the code, lookup tables, etc. needed to decompress it? But even if you have, you haven't disproved the theorem about compressing random data. All you have is a program t

Re: IDLE doesn't recognise installed packages

2017-10-23 Thread Terry Reedy
On 10/23/2017 10:23 AM, Daniel Tangemann wrote: I've recently downloaded and installed python 3.6. (I had already also 2.7 and 3.2 on my computer) Initially pip was looking in the wrong directory to install to, so I changed that. then it had trouble installing matplotlib, so I decided to get ri

Re: Compression of random binary data

2017-10-23 Thread Marko Rauhamaa
Gregory Ewing : > What you *can't* do is compress 16 random decimal digits to less than > 6.64 bytes. More precisely: Regardless of the compression scheme, the probability of shortening the next bit sequence is less than 0.5 if the bits are distributed evenly, randomly and independently