Re: Compression of random binary data

2017-10-26 Thread Thomas Jollans
On 2017-10-25 23:22, danceswithnumb...@gmail.com wrote: > With every transform the entropy changes, That's only true if the "transform" loses or adds information. If it loses information, that's lossy compression, which is only useful in very specific (but also extremely common) circumstances. I

Re: Compression of random binary data

2017-10-26 Thread Peter J. Holzer
On 2017-10-24 22:30, Steve D'Aprano wrote: > On Wed, 25 Oct 2017 07:09 am, Peter J. Holzer wrote: > >> On 2017-10-23 04:21, Steve D'Aprano wrote: >>> On Mon, 23 Oct 2017 02:29 pm, Stefan Ram wrote: >>> If the probability of certain codes (either single codes, or sequences of >>> codes) are n

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

2017-10-26 Thread Stephan Houben
Op 2017-10-23, Thomas Jollans schreef : > You might wait in a thread > and somehow (no idea what the best way to do this is in tkinter) pass a > message to the GUI thread when it's done. AFAIK, this is a real problem in Tkinter on Windows. On Posix you can use the self-pipe trick. But on Windows,

read_table € symbol

2017-10-26 Thread Davide Dalmasso
Dear all, I'm trying to read a txt file with read_table but in the file there are some string that contain the € symbol and the procedure returns me an error. I tried with encoding='utf-8' but the problem is still there: pd.read_table('filename.txt', sep=';', encoding='utf-8') Anyone can help me?

Re: read_table € symbol

2017-10-26 Thread Thomas Jollans
On 2017-10-26 17:04, Davide Dalmasso wrote: > Dear all, > I'm trying to read a txt file with read_table but in the file there are some > string that contain the € symbol and the procedure returns me an error. > I tried with encoding='utf-8' but the problem is still there: > pd.read_table('filename

Re: read_table € symbol

2017-10-26 Thread Michael Torrie
On 10/26/2017 09:04 AM, Davide Dalmasso wrote: > Dear all, > I'm trying to read a txt file with read_table but in the file there are some > string that contain the € symbol and the procedure returns me an error. > I tried with encoding='utf-8' but the problem is still there: > pd.read_table('filen

Re: Test Bank for Entrepreneurship The Practice and Mindset 1st Edition by Neck

2017-10-26 Thread salaboud
On Saturday, July 1, 2017 at 1:36:10 PM UTC-4, Test Banks wrote: > Greetings, > > You can get Test Bank for " Entrepreneurship The Practice and Mindset 1st > Edition by Neck " at very reasonable price. Our team is available 24/7 and > 365 days / year to respond your requests. Send us an email a

Re: IDLE doesn't recognise installed packages

2017-10-26 Thread Terry Reedy
On 10/26/2017 12:37 AM, Daniel Tangemann wrote: ok, I did that. I noticed that this path: 'C:\\Users\\Daniel86\\AppData\\Local\\Programs\\Python\\Python36\\Lib\\idlelib' is missing when I run the python.exe without IDLE. how do I fix this? Having idlelib on the path or not should not make any

Re: Compression of random binary data

2017-10-26 Thread danceswithnumbers
Thomas Jollans On 2017-10-25 23:22, danceswi...@gmail.com wrote:  > With every transform the entropy changes,  That's only true if the "transform" loses or adds information.  If it loses information, that's lossy compression, which is only useful  in very specific (but also extremely common) ci

Re: Compression of random binary data

2017-10-26 Thread Ben Bacarisse
Gregory Ewing writes: > Ben Bacarisse wrote: >> The trouble is a pedagogic one. Saying "you can't compress random data" >> inevitably leads (though, again, this is just my experience) to endless >> attempts to define random data. > > It's more about using terms without making sure everyone agree

Sequence MIDI events from python.

2017-10-26 Thread Tobiah
I know that there are a few good MIDI libraries out there. The examples that I've seen for real-time triggering of events rely on a sleep function to realize the timing. This is not accurate or precise enough for musical applications. What options do I have if I want to write a MIDI sequencer in

Re: Sequence MIDI events from python. (Posting On Python-List Prohibited)

2017-10-26 Thread Tobiah
On 10/26/2017 4:30 PM, Lawrence D’Oliveiro wrote: On Friday, October 27, 2017 at 12:02:40 PM UTC+13, Tobiah wrote: I know that there are a few good MIDI libraries out there. The examples that I've seen for real-time triggering of events rely on a sleep function to realize the timing. This is no

Re: Compression of random binary data

2017-10-26 Thread Ian Kelly
On Thu, Oct 26, 2017 at 2:38 PM, wrote: > > Thomas Jollans > > On 2017-10-25 23:22, danceswi...@gmail.com wrote: >> With every transform the entropy changes, > > That's only true if the "transform" loses or adds information. > > If it loses information, that's lossy compression, which is only use

Re: IDLE doesn't recognise installed packages

2017-10-26 Thread Daniel Tangemann
hi, I had tried typing: "path-to-binary -m pip Terry Reedy hat am 26. Oktober 2017 um 21:35 geschrieben: > > > On 10/26/2017 12:37 AM, Daniel Tangemann wrote: > > ok, I did that. I noticed that this path: > > 'C:\\Users\\Daniel86\\AppData\\Local\\Programs\\Python\\Python36\\Lib\\idlelib' > > is

Re: Compression of random binary data

2017-10-26 Thread danceswithnumbers
It looks like that averages my two examples. H by the way that equation is really coolwhy does it return a high bit count when compared to >>>dec to bin? -- https://mail.python.org/mailman/listinfo/python-list

Python noob having a little trouble with strings

2017-10-26 Thread randyliu17
If s1 = "Welcome students", what is the output when you print the following: 1. s4 = 3 * s1 2. s1[3 : 6] 3. 'W' in s1 4. S1[-1] 5. S1[:-1] Any help would be great, thanks! -- https://mail.python.org/mailman/listinfo/python-list

Re: Python noob having a little trouble with strings

2017-10-26 Thread boB Stepp
On Thu, Oct 26, 2017 at 9:25 PM, wrote: > If s1 = "Welcome students", what is the output when you print the following: > > 1. s4 = 3 * s1 > > 2. s1[3 : 6] > > 3. 'W' in s1 > > 4. S1[-1] > > 5. S1[:-1] > > Any help would be great, thanks! Why not find out for yourself and print these in the Pytho

Re: Compression of random binary data

2017-10-26 Thread danceswithnumbers
Shouldn't that be? py> 16 * (-7/16 * math.log2(7/16) - 6/16 * math.log2(6/16)) = -- https://mail.python.org/mailman/listinfo/python-list

Re: Python noob having a little trouble with strings

2017-10-26 Thread randyliu17
On Thursday, October 26, 2017 at 7:41:10 PM UTC-7, boB Stepp wrote: > On Thu, Oct 26, 2017 at 9:25 PM, wrote: > > If s1 = "Welcome students", what is the output when you print the following: > > > > 1. s4 = 3 * s1 > > > > 2. s1[3 : 6] > > > > 3. 'W' in s1 > > > > 4. S1[-1] > > > > 5. S1[:-1] > >

How to plot

2017-10-26 Thread Andrew Z
Hello, i'd like to create a graph/plot based a DB table's data, but not sure where to start. I also would like to have the following functionality: a. i'd like to have it in the separate window ( xwindow to be precise). b. and i'd like to have the graph updating with every record added to the

Re: Let's talk about debuggers!

2017-10-26 Thread Paul Rubin
Terry Reedy writes: > On Windows, [IDLE] uses native widgets when possible... > In summary, I think debugger should rate at least 'good' rather than > fail' when it comes to showing you the next line. I actually like how the Tk widgets look. I've done some semi-industrial applications with tkint

Re: Compression of random binary data

2017-10-26 Thread Marko Rauhamaa
Ben Bacarisse : >> In this context, "random data" really means "uniformly distributed >> data", i.e. any bit sequence is equally likely to be presented as >> input. *That's* what information theory says can't be compressed. > > But that has to be about the process that gives rise to the data, not