[Tutor] CPU Scheduling

2015-04-27 Thread alex gonsalez
Need help trying to implement a CPU scheduling algorithm.I am not even sure where to start on this. Can someone please guide me and walk me through the steps for this? Assignment: The Simulation. Simulating the scheduling of a single CPU is a type of discrete event simulation in which you iterate

Re: [Tutor] CPU Scheduling

2015-04-27 Thread Alan Gauld
On 27/04/15 02:18, alex gonsalez wrote: Need help trying to implement a CPU scheduling algorithm.I am not even sure where to start on this. Can someone please guide me and walk me through the steps for this? Your assignment gives a pretty thorough description of what needs to be done. Maybe yo

[Tutor] plz help me

2015-04-27 Thread Gebrekirstos G/meskel
Hi guys: I need help for consume .NET web service in python code from Ubuntu OS thanks alot G/kirstos ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

[Tutor] Adding consecutive numbers

2015-04-27 Thread Whom Isac
Hi, I am trying to build a python mini program to solve a math problem . I wanted my program to ask two number from the operator and it can add those number as a integer but as consecutive number in range. For example, if num1 entry =1 & num2 entry = 100 , the program should be adding number from 1

Re: [Tutor] plz help me

2015-04-27 Thread Alan Gauld
On 27/04/15 10:32, Gebrekirstos G/meskel wrote: Hi guys: I need help for consume .NET web service in python code from Ubuntu OS OK, But to help you we need you to help us. What does this web service look like? What version of Python are you using? What have tyou tried so far , if anything? W

Re: [Tutor] Adding consecutive numbers

2015-04-27 Thread Alan Gauld
On 27/04/15 11:37, Whom Isac wrote: num1 entry =1 & num2 entry = 100 , the program should be adding number from 1 to 100 together(which should equal to 5050). I have uploaded my code file below. Infortunately we can't see it. Since it is presumably quite short please just send it in the bod

Re: [Tutor] Adding consecutive numbers

2015-04-27 Thread Dave Angel
On 04/27/2015 06:37 AM, Whom Isac wrote: Hi, I am trying to build a python mini program to solve a math problem . I wanted my program to ask two number from the operator and it can add those number as a integer but as consecutive number in range. For example, if num1 entry =1 & num2 entry = 100 ,

Re: [Tutor] Adding consecutive numbers

2015-04-27 Thread Mark Lawrence
On 27/04/2015 13:41, Dave Angel wrote: On 04/27/2015 06:37 AM, Whom Isac wrote: But if you really have to do the sum, then you need to build a list, and sum it. That's not very hard either, since range() returns a list, and the sum() function is built-in. range() only returns a list in Pytho

Re: [Tutor] Adding consecutive numbers

2015-04-27 Thread Steven D'Aprano
Hi, and welcome! My answers are below. On Mon, Apr 27, 2015 at 08:37:54PM +1000, Whom Isac wrote: > Hi, I am trying to build a python mini program to solve a math problem . I > wanted my program to ask two number from the operator and it can add those > number as a integer but as consecutive numb

Re: [Tutor] plz help me

2015-04-27 Thread Steven D'Aprano
On Mon, Apr 27, 2015 at 12:32:16PM +0300, Gebrekirstos G/meskel wrote: > Hi guys: > > I need help for > > consume .NET web service in python code from Ubuntu OS Show us the code you have, and the error it is producing, and well try to help. -- Steve __

Re: [Tutor] CPU Scheduling

2015-04-27 Thread Danny Yoo
> On 27/04/15 02:18, alex gonsalez wrote: >> >> Need help trying to implement a CPU scheduling algorithm. Hi Alex, Unfortunately, this is way out of scope for Python-tutor; I think you'll be better off discussing with your classmates and professor. You'll get more productive answers that way. On

Re: [Tutor] CPU Scheduling

2015-04-27 Thread WolfRage
On 04/27/2015 01:13 PM, Danny Yoo wrote: On 27/04/15 02:18, alex gonsalez wrote: Need help trying to implement a CPU scheduling algorithm. Can I recommend that you read this: http://www.dabeaz.com/coroutines/Coroutines.pdf About half way through it has a Excellent example of how an OS schedule

[Tutor] MTIE calculation

2015-04-27 Thread Durrayshehwar Farooqi
Hello, Need help with how to calculate MTIE using Python. I have imported numpy and allantools, please help. Thanks -- Kind Regards; *Durray * ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.

Re: [Tutor] MTIE calculation

2015-04-27 Thread Alan Gauld
On 27/04/15 19:10, Durrayshehwar Farooqi wrote: Need help with how to calculate MTIE using Python. I have imported numpy and allantools, please help. You probably need to tell us exactly what MTIE is and how it works. You also need to tell us which Python version, which OS and show us any code

Re: [Tutor] Python tkinter. Opening another script from main window stop main window from functioning. Looking for Help

2015-04-27 Thread Oscar Benjamin
On 26 April 2015 at 04:23, Spencer For Friends wrote: > Hi all. I'm new to Python and I'm trying my best to learn, but I'm really > struggling with some problems. > > I'm using a tkinter window with a button on it to open another Python > script. When the button is clicked and the new script loads

[Tutor] pip install M2crypto

2015-04-27 Thread Juanald Reagan
Good Evening, I am trying to install the M2crypto package via pip and receive an error. Python version is 2.7.4, any ideas on how to fix the SWIG error? Jon$ sudo -H pip install M2crypto /Library/Python/2.7/site-packages/pip-6.1.1-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:79: