Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: How to get the PID from a process at first
Post: RE: How to get the PID from a process at first

Therefore the problem is that I am calling the python script from PHP, and because of that I am receiving the PID when the script has finished. I have to figure out how to call the script from PHP to...
mapg General Coding Help 2 3,784 May-24-2021, 04:32 AM
  Question Thread: How to get the PID from a process at first
Post: How to get the PID from a process at first

I have a question about how to get the PID from a process at first, not when the process has finished. This is because I want to be able to kill the FFmpeg process (not the python script) if necessar...
mapg General Coding Help 2 3,784 May-24-2021, 03:00 AM
    Thread: PHP to Python
Post: RE: PHP to Python

This is great! Thank you very much!
mapg General Coding Help 11 4,858 Apr-28-2019, 03:52 PM
    Thread: PHP to Python
Post: RE: PHP to Python

(Apr-27-2019, 02:41 PM)snippsat Wrote: For Python could use itertools combinations(). import itertools as it from pprint import pprint my_dict = {'item1':['A', 'B'], 'item':['C', 'D'], 'item3':['E'...
mapg General Coding Help 11 4,858 Apr-28-2019, 01:14 AM
    Thread: Inclusive (closed) range with float numbers
Post: RE: Inclusive (closed) range with float numbers

Obviously, it's very practical what you mentioned. For now, it's the simplest solution. Thanks Yoriz (Apr-27-2019, 08:47 PM)Gribouillis Wrote: Notice this in the documentation of numpy.arange() [q...
mapg General Coding Help 4 4,015 Apr-27-2019, 08:49 PM
    Thread: Inclusive (closed) range with float numbers
Post: Inclusive (closed) range with float numbers

Hi I need to add range of numbers to some arrays used, but I see that range in Python is not for float numbers and is not inclusive, namely range is not including the last number. Seems that we need...
mapg General Coding Help 4 4,015 Apr-27-2019, 07:49 PM
    Thread: PHP to Python
Post: RE: PHP to Python

I didn't know that this was going to be so complex. I need to add range of numbers to the arrays used in the above mentioned function, but I see that range in Python is not for float numbers and is n...
mapg General Coding Help 11 4,858 Apr-27-2019, 07:19 PM
    Thread: PHP to Python
Post: RE: PHP to Python

Oh. What a change! Thank you very much. Seems that Python has many libraries.
mapg General Coding Help 11 4,858 Apr-27-2019, 02:53 PM
    Thread: PHP to Python
Post: RE: PHP to Python

Hi Gribouillis, You are very kind. The intention of this script is to get all possible combinations between elements in the array. The output is like that ... array (size=8) 0 => array (si...
mapg General Coding Help 11 4,858 Apr-27-2019, 01:16 PM
    Thread: PHP to Python
Post: PHP to Python

Hi All, I learning Python and I see that my knowledge of this language is very poor as I am trying to translate a function from PHP to Python but I cannot get results. This is the code in PHP and be...
mapg General Coding Help 11 4,858 Apr-27-2019, 04:31 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020