why and how to run forever and debug when error in for proc in psutil.process_iter()?

2017-03-25 Thread Ho Yeung Lee
expect below to run forever and keep running a fixed number of thread in python would like to kill tasks when process connect internet except chrome and explorer.exe i do this because MalwareBytes can not disconnect these existing trojan when my notebook connect internet after run a few minutes

should i kill these two process with python?

2017-03-25 Thread Ho Yeung Lee
TCP127.0.0.1:1663 127.0.0.1:28091ESTABLISHED 9900 TCP127.0.0.1:28091127.0.0.1:1663 ESTABLISHED 9532 above two process connect to itself, named ismagent and updateui.exe are they the malware software? TCP127.0.0.1:1663 127.0.0.1:2

Re: should i kill these two process with python?

2017-03-25 Thread Chris Angelico
On Sat, Mar 25, 2017 at 7:41 PM, Ho Yeung Lee wrote: > TCP127.0.0.1:1663 127.0.0.1:28091ESTABLISHED 9900 > TCP127.0.0.1:28091127.0.0.1:1663 ESTABLISHED 9532 > > above two process connect to itself, named ismagent and updateui.exe > > are they the

Re: Python question

2017-03-25 Thread dieter
Abdul Abdul writes: > I hope you are doing fine. I have added a question on StackOverflow and > thought you might have an idea on it. This is the question > I do not want to go into the detail

Re: Python question

2017-03-25 Thread Steve D'Aprano
On Sat, 25 Mar 2017 10:09 am, Cameron Simpson wrote: > On 24Mar2017 18:08, Abdul Abdul wrote: >>I hope you are doing fine. I have added a question on StackOverflow and >>thought you might have an idea on it. This is the question >>

Re: Who are the "spacists"?

2017-03-25 Thread Ian Kelly
On Tue, Mar 21, 2017 at 7:28 PM, Ben Finney wrote: > Grant Edwards writes: > >> Question: is it still successfull trolling if we all knew that was the >> intent and are just playing along for the entertainment value? > > Yes, it creates more noise and drives away signal from people who don't > wa

Re: Python question

2017-03-25 Thread Terry Reedy
On 3/25/2017 6:50 AM, Steve D'Aprano wrote: On Sat, 25 Mar 2017 10:09 am, Cameron Simpson wrote: On 24Mar2017 18:08, Abdul Abdul wrote: I hope you are doing fine. I have added a question on StackOverflow and thought you might have an idea on it. This is the question

Re: Python question

2017-03-25 Thread MRAB
On 2017-03-25 20:10, Terry Reedy wrote: On 3/25/2017 6:50 AM, Steve D'Aprano wrote: On Sat, 25 Mar 2017 10:09 am, Cameron Simpson wrote: On 24Mar2017 18:08, Abdul Abdul wrote: I hope you are doing fine. I have added a question on StackOverflow and thought you might have an idea on it. This i

Re: syntax error in first-time user script

2017-03-25 Thread john polo
I had a misconception of how the Python interpreter works. If I have a script, call it example.py, in order to run it, I shouldn't be in the interpreter? In other words, I should be at the Windows command prompt, for example C:/test> python example.py and not >>> python example.py ? So, if

Re: PEOPLE! PLEASE! [ WAS: Re: Who are the "spacists"? ]

2017-03-25 Thread Joel Goldstick
On Sat, Mar 25, 2017 at 3:40 PM, Gilmeh Serda wrote: > >>> So Python supports both spaces and tabs for indentation. > > People! > > This is as far from normal conversation about Python as it gets! > > Keep this shit to yourselves, PLEASE! > > Using an editor worth the name, makes it a non issue (s

Re: PEOPLE! PLEASE! [ WAS: Re: Who are the "spacists"? ]

2017-03-25 Thread Michael Torrie
On 03/25/2017 01:40 PM, Gilmeh Serda wrote: > >>> So Python supports both spaces and tabs for indentation. > > People! > > This is as far from normal conversation about Python as it gets! > > Keep this shit to yourselves, PLEASE! > > Using an editor worth the name, makes it a non issue (since

Re: Python question

2017-03-25 Thread Erik
On 25/03/17 20:26, MRAB wrote: On 2017-03-25 20:10, Terry Reedy wrote: On 3/25/2017 6:50 AM, Steve D'Aprano wrote: they BCC or CC me without a good excuse. As I was in this case: the OP BCCed me in his post. I'm not *that* special, so my guess is that he did a mass BCC of many regulars here, wh

Re: PEOPLE! PLEASE! [ WAS: Re: Who are the "spacists"? ]

2017-03-25 Thread Mikhail V
On 26 March 2017 at 00:01, Michael Torrie wrote: > On 03/25/2017 01:40 PM, Gilmeh Serda wrote: >> So Python supports both spaces and tabs for indentation. >> >> People! >> >> This is as far from normal conversation about Python as it gets! >> >> Keep this shit to yourselves, PLEASE! >> >> Usi

Re: Python question

2017-03-25 Thread Abdul Abdul
Hi Cameron, Thanks for your kind reply and suggestion. Sure, please find my question below. I also show the different edits made and what errors emerged after those edits. Thanks for your support! I have the following code portion for a convolutional neural network: import numpy as np im

RE: syntax error in first-time user script

2017-03-25 Thread Deborah Swanson
john polo wrote, on March 25, 2017 2:45 PM > > I had a misconception of how the Python interpreter works. If > I have a > script, call it example.py, in order to run it, I shouldn't be in the > interpreter? In other words, I should be at the Windows > command prompt, > for example > > C:/tes

RE: should i kill these two process with python?

2017-03-25 Thread Deborah Swanson
Chris Angelico wrote, on Saturday, March 25, 2017 1:53 AM > > On Sat, Mar 25, 2017 at 7:41 PM, Ho Yeung Lee > wrote: > > TCP127.0.0.1:1663 127.0.0.1:28091 > ESTABLISHED 9900 > > TCP127.0.0.1:28091127.0.0.1:1663 > ESTABLISHED 9532 > > > > above

RE: why and how to run forever and debug when error in for proc in psutil.process_iter()?

2017-03-25 Thread Deborah Swanson
Someone here can probably help you, but they'll need your Python version, operating system, and full traceback. They get tired of saying so. In this case, the full traceback is needed to see what went wrong and when (after which statements). Ho Yeung Lee wrote, on Saturday, March 25, 2017 1:38

Re: Python question

2017-03-25 Thread cs
On 26Mar2017 00:11, Erik wrote: On 25/03/17 20:26, MRAB wrote: On 2017-03-25 20:10, Terry Reedy wrote: On 3/25/2017 6:50 AM, Steve D'Aprano wrote: they BCC or CC me without a good excuse. As I was in this case: the OP BCCed me in his post. I'm not *that* special, so my guess is that he did a

Re: Who are the "spacists"?

2017-03-25 Thread Wildman via Python-list
On Tue, 21 Mar 2017 15:15:14 +0100, Mikhail V wrote: > And on linux console, by default one does not even have good > possibilities for text-mode pseudographics, it was more relevant > in DOS where one had rich possibilities and programmable > binary fonts. > > Mikhail Nonsense. -- GNU/Linux

C-Python and Endianness

2017-03-25 Thread Ganesh Pal
Hello Team , I want to write the hexadecimal string that is passed from python as it is on disk in C , my problem is that the values are getting stored in little endian and the values are swapped it has been quite a pain for me to fix this , any suggestion on how to fix this (I am on