Re: revisiting the "What am I running on?" question

2019-02-17 Thread MRAB
On 2019-02-18 02:46, songbird wrote: having worked on some other things for a while i didn't put much emphasis on working on this until i had the other bugs taken care of. so now back into it we can go... :) what i came up with (sorry, i hate yet another not invented here thing, but

Re: revisiting the "What am I running on?" question

2019-02-17 Thread Dan Sommers
On 2/17/19 8:46 PM, songbird wrote: simply put. if i'm running on a computer and i don't easily know why kind of computer how can i answer this in a quick way without getting overly complicated that also will cover most of the easy cases? i came up with this: comments? additions? c

Re: revisiting the "What am I running on?" question

2019-02-17 Thread songbird
songbird wrote: ... > result = re.search("^/(tmp)|(var)|(usr)|(opt)|(home)", sysprobetmp) i changed that line to: result = re.search("^/((tmp)|(var)|(usr)|(opt)|(home))", sysprobetmp) just to make sure the leading slash is not just grouped with the first string. i like to be more e

revisiting the "What am I running on?" question

2019-02-17 Thread songbird
having worked on some other things for a while i didn't put much emphasis on working on this until i had the other bugs taken care of. so now back into it we can go... :) what i came up with (sorry, i hate yet another not invented here thing, but this is just where i ended up after some

Access control class?

2019-02-17 Thread Rich Shepard
I'm developing an application which benefits from access control. By searching the web I've found a couple of data-entry-with-password classes yet I've no idea how to evaluate them for security. I'm looking for advice from those of you who have experience with access control. Thanks in advance,

Re: Sum of few numbers by using for and range

2019-02-17 Thread DL Neil
On 18/02/19 8:32 AM, Chris Angelico wrote: On Mon, Feb 18, 2019 at 6:12 AM DL Neil wrote: The reason this course caught my attention (and which is relevant to you, per Chris' and Dennis' recent advice) is that the course revolves around an 'active textbook'. This intersperses learning material

Re: Sum of few numbers by using for and range

2019-02-17 Thread Chris Angelico
On Mon, Feb 18, 2019 at 6:12 AM DL Neil wrote: > > sure you truly understand what is going on. Try to piece together what > > a section of code is doing, step by step. Write down on a piece of > > paper what the variables are at each point in the program. Then, AFTER > > doing the work manually, r

Re: Sum of few numbers by using for and range

2019-02-17 Thread DL Neil
^Bart, Which course are you attempting? What are you using as learning material? (it seems ineffectual) - further comments interspersed, below:- On 18/02/19 5:30 AM, Chris Angelico wrote: On Mon, Feb 18, 2019 at 3:26 AM ^Bart wrote: I need to do what I wrote in the subject but... I don't u

Re: Python threading - event

2019-02-17 Thread MRAB
On 2019-02-17 09:52, Prahallad Achar wrote: Hello Friends, I got an requirement as stated below, 1. main thread will be running and other event should run parallel In more detail One function will be keep dumping data and other event function should trigger at some event but dumping data should

Re: Sum of few numbers by using for and range

2019-02-17 Thread Chris Angelico
On Mon, Feb 18, 2019 at 3:26 AM ^Bart wrote: > > Hello! > > I need to do what I wrote in the subject but... I don't understand how > could I fix my code... :\ > > number1 = int( input("Insert the first number:")) > number2 = int( input("Insert the second number:")) > number3 = int( input("Insert t

Sum of few numbers by using for and range

2019-02-17 Thread ^Bart
Hello! I need to do what I wrote in the subject but... I don't understand how could I fix my code... :\ number1 = int( input("Insert the first number:")) number2 = int( input("Insert the second number:")) number3 = int( input("Insert the third number:")) print("Total amount is:") for x in ra

Python threading - event

2019-02-17 Thread Prahallad Achar
Hello Friends, I got an requirement as stated below, 1. main thread will be running and other event should run parallel In more detail One function will be keep dumping data and other event function should trigger at some event but dumping data should be keep running. Sorry, I can not give any ex