Call for Participation: Python devroom @ FOSDEM 2025

2024-10-28 Thread Marc-Andre Lemburg via Python-list
ed software * Scaling Python applications Volunteers We will also call for volunteers to help us run the event and help us with the devroom operation. Please email the organizers, in case you are interested. Organizers You can reach out directly to the organizers, if you have a specific request

How to check whether audio bytes contain empty noise or actual voice/signal?

2024-10-25 Thread marc nicole via Python-list
Hello Python fellows, I hope this question is not very far from the main topic of this list, but I have a hard time finding a way to check whether audio data samples are containing empty noise or actual significant voice/noise. I am using PyAudio to collect the sound through my PC mic as follows:

How to check whether lip movement is significant using face landmarks in dlib?

2024-10-05 Thread marc nicole via Python-list
I am trying to assess whether the lips of a person are moving too much while the mouth is closed (to conclude they are chewing). I try to assess the lip movement through landmarks (dlib) : Inspired by the mouth example ( https://github.com/mauckc/mouth-open/blob/master/detect_open_mouth.py#L17),

Re: [Tutor] How to stop a specific thread in Python 2.7?

2024-09-25 Thread marc nicole via Python-list
Could you show a python code example of this? On Thu, 26 Sept 2024, 03:08 Cameron Simpson, wrote: > On 25Sep2024 22:56, marc nicole wrote: > >How to create a per-thread event in Python 2.7? > > Every time you make a Thread, make an Event. Pass it to the thread > worker funct

Re: How to stop a specific thread in Python 2.7?

2024-09-25 Thread marc nicole via Python-list
How to create a per-thread event in Python 2.7? On Wed, 25 Sept 2024, 22:47 Cameron Simpson via Python-list, < python-list@python.org> wrote: > On 25Sep2024 19:24, marc nicole wrote: > >I want to know how to kill a specific running thread (say by its id) > > > >for

How to stop a specific thread in Python 2.7?

2024-09-25 Thread marc nicole via Python-list
Hello guys, I want to know how to kill a specific running thread (say by its id) for now I run and kill a thread like the following: # start thread thread1 = threading.Thread(target= self.some_func(), args=( ...,), ) thread1.start() # kill the thread event_thread1 = threading.Event() event_thread

Re: [Tutor] Getting a Process.start() error pickle.PicklingError: Can't pickle : it's not found as __builtin__.module with Python 2.7

2024-09-03 Thread marc nicole via Python-list
reading the console DID display the messages correctly! Thanks. Le mar. 3 sept. 2024 à 10:48, Alan Gauld via Tutor a écrit : > On 02/09/2024 15:00, marc nicole via Python-list wrote: > > Hello, > > > > I am using Python 2.7 on Windows 10 > > Others have pointed out th

Getting a Process.start() error pickle.PicklingError: Can't pickle : it's not found as __builtin__.module with Python 2.7

2024-09-02 Thread marc nicole via Python-list
Hello, I am using Python 2.7 on Windows 10 and I want to launch a process independently of the rest of the code so that the execution continues while the started process proceeds. I am using Process().start() from Python 2.7 as follows: from multiprocessing import Process def do_something(text):

Re: Predicting an object over an pretrained model is not working

2024-07-31 Thread marc nicole via Python-list
You invitation to read on machine is not helping, if you wanna enlighten us on this specific case otherwise pls spare me such comments which i know On Wed, 31 Jul 2024, 16:00 Grant Edwards via Python-list, < python-list@python.org> wrote: > On 2024-07-31, marc nicole via Python-li

Re: Predicting an object over an pretrained model is not working

2024-07-31 Thread marc nicole via Python-list
and a sheep wont have any target position or any probability whatsoever in the image weirdobject.jpg On Wed, 31 Jul 2024, 00:19 dn via Python-list, wrote: > On 31/07/24 06:18, marc nicole via Python-list wrote: > > Hello all, > > > > I want to predict an object by given as in

Re: Predicting an object over an pretrained model is not working

2024-07-30 Thread marc nicole via Python-list
OK, but how's the probability of small_ball greater than others? I can't find it anyway, what's its value? Le mar. 30 juil. 2024 à 21:37, Thomas Passin via Python-list < python-list@python.org> a écrit : > On 7/30/2024 2:18 PM, marc nicole via Python-list wrote: > >

Predicting an object over an pretrained model is not working

2024-07-30 Thread marc nicole via Python-list
Hello all, I want to predict an object by given as input an image and want to have my model be able to predict the label. I have trained a model using tensorflow based on annotated database where the target object to predict was added to the pretrained model. the code I am using is the following w

How to install tensorflow on Python 2.7 in Windows?

2024-06-26 Thread marc nicole via Python-list
Browsing the available version of tensorflow for the dates before January 2021 (date when Python 2.7 stopped being supported) I can't find a tensorflow version for Python 2.7 that works under Windows. The reference site I use is https://pypi.org/project/tensorflow/ Anybody can point out a compati

Re: [Tutor] How to go about a simple object grabbing in python (given coordinates of arms and objects)

2024-06-24 Thread marc nicole via Python-list
Tutor a écrit : > On 22/06/2024 13:41, marc nicole wrote: > > > So, given the x,y,z coordinates of a target object and the offset x,y,z > of > > arms of a robot, what is a good algorithm to perform to grab the object > > between the hands (either from both sides o

How to go about a simple object grabbing in python (given coordinates of arms and objects)

2024-06-23 Thread marc nicole via Python-list
Hello to all of this magnificent community! I have this problem I had already spent a few days on and still can't figure out a proper solution. So, given the x,y,z coordinates of a target object and the offset x,y,z of arms of a robot, what is a good algorithm to perform to grab the object betwee

Re: [Tutor] How to go about a simple object grabbing in python (given coordinates of arms and objects)

2024-06-22 Thread marc nicole via Python-list
y and then do some fine coordinated motions to capture the object and then presumably move it." seems to be a good approach indeed, The grabbing with both hands code should be more precise. Thanks for the help anyways! Le sam. 22 juin 2024 à 23:04, ThreeBlindQuarks a écrit : > Marc, >

Couldn't install numpy on Python 2.7

2024-06-12 Thread marc nicole via Python-list
I am trying to install numpy library on Python 2.7.15 in PyCharm but the error message I get is: ERROR: Could not find a version that satisfies the requirement numpy (from > versions: none) > ERROR: No matching distribution found for numpy > c:\python27\lib\site-packages\pip\_vendor\urllib3\util\s

Re: Can you help me with this memoization simple example?

2024-03-31 Thread marc nicole via Python-list
? Which tuple I should use to refer to the underlying list value as you suggest? Anything else is good in my code ? Thanks Le dim. 31 mars 2024 à 01:44, MRAB via Python-list a écrit : > On 2024-03-31 00:09, marc nicole via Python-list wrote: > > I am creating a memoization example with

Can you help me with this memoization simple example?

2024-03-30 Thread marc nicole via Python-list
I am creating a memoization example with a function that adds up / averages the elements of an array and compares it with the cached ones to retrieve them in case they are already stored. In addition, I want to store only if the result of the function differs considerably (passes a threshold e.g.

How to create a binary tree hierarchy given a list of elements as its leaves

2024-01-28 Thread marc nicole via Python-list
So I am trying to build a binary tree hierarchy given numerical elements serving for its leaves (last level of the tree to build). From the leaves I want to randomly create a name for the higher level of the hierarchy and assign it to the children elements. For example: if the elements inputted are

Re: How to replace a cell value with each of its contour cells and yield the corresponding datasets seperately in a list according to a Pandas-way?

2024-01-21 Thread marc nicole via Python-list
It is part of a larger project aiming at processing data according to a given algorithm Do you have any comments or any enhancing recommendations on the code? Thanks. Le dim. 21 janv. 2024 à 18:28, Thomas Passin via Python-list < python-list@python.org> a écrit : > On 1/21/2024 11:54

Re: How to replace a cell value with each of its contour cells and yield the corresponding datasets seperately in a list according to a Pandas-way?

2024-01-21 Thread marc nicole via Python-list
1/2024 7:37 AM, marc nicole via Python-list wrote: > > Hello, > > > > I have an initial dataframe with a random list of target cells (each cell > > being identified with a couple (x,y)). > > I want to yield four different dataframes each containing the value of > one

How to replace a cell value with each of its contour cells and yield the corresponding datasets seperately in a list according to a Pandas-way?

2024-01-21 Thread marc nicole via Python-list
Hello, I have an initial dataframe with a random list of target cells (each cell being identified with a couple (x,y)). I want to yield four different dataframes each containing the value of one of the contour (surrounding) cells of each specified target cell. the surrounding cells to consider fo

best tool to extract domain hierarchy from a dimension in an OLAP dataset (csv)

2024-01-13 Thread marc nicole via Python-list
Hi all, I have a csv OLAP dataset that I want to extract the domain hierarchies from each of its dimensions. Anybody could recommend a Python tool that could manage this properly? Thanks -- https://mail.python.org/mailman/listinfo/python-list

FOSDEM 2024: Call for Proposals - Python Devrooom

2023-11-23 Thread Marc-Andre Lemburg via Python-list
azoni and Marc-Andre Lemburg -- https://mail.python.org/mailman/listinfo/python-list

cubes library docs are not accurate, first example failing unexpectedly

2023-06-08 Thread marc nicole via Python-list
Hello to All, I want to create a cube from csv data file and to perform and aggregation on it, the code is below: from sqlalchemy import create_enginefrom cubes.tutorial.sql import create_table_from_csvfrom cubes import Workspace, Cell, browser import dataif __name__ == '__main__': engine = c

combinations of all rows and cols from a dataframe

2023-03-29 Thread marc nicole
Hello everyone, Given a dataframe like this: 2 6 8 5 I want to yield the following list of lists: [ [[2],[6,5]], [[2],[6]], [[2],[5]], [[8],[6,5]], [[8],[6]], [[8],[5]], [[6],[2,8]], [[6],[8]], [[6],[2]], [[5],[2,8]], [[5],[2]], [[5],[8]], [[6,5],[2,8]] ] I have written the following (which d

Re: Subtracting dates to get hours and minutes

2022-12-12 Thread Marc Lucke
hould be /very/ easy to do. - Marc On 12/12/2022 5:01 pm, Steve GS wrote: How do I subtract two time/dates and calculate the hours and minutes between? Steve -- https://mail.python.org/mailman/listinfo/python-list

EuroPython 2021: All edited videos now available

2021-10-12 Thread Marc-Andre Lemburg
We’re happy to release another batch of 41 cut videos of EuroPython 2021 covering the third day sessions of the conference and a number of edited videos for the previous days. In total, we now have 118 videos waiting for you. You can watch them on our YouTube channel. We have created a EuroPython 2

EuroPython Society: Launching the EuroPython Society Fellow Grant

2021-10-08 Thread Marc-Andre Lemburg
We are excited to announce the new EuroPython Society Fellow Grant. The grant is intended to honor and show gratitude towards members of the EuroPython Society (EPS) and the EuroPython Workgroups who have contributed significantly towards our mission, the EuroPython conference and the Society as a

EuroPython 2021: Edited videos of the second day available

2021-10-04 Thread Marc-Andre Lemburg
We’re happy to release another batch of 35 cut videos of EuroPython 2021 covering most of the second day sessions of the conference. Together with the first day videos, we now have 77 videos waiting for you. You can watch them on our YouTube channel: * EuroPython 2021 Playlist

EuroPython 2021: Edited videos of the first day available

2021-09-27 Thread Marc-Andre Lemburg
We’re happy to release the first 42 cut videos of EuroPython 2021 covering the first day sessions of the conference. You can watch them on our YouTube channel: * EuroPython 2021 Playlist * https://www.youtube.com/playlist?list=PL8uoeex94UhHgMD9GOCbEHWku7pEPx9fW Over the next

Re: c extension finding the module in object initialization

2021-09-27 Thread Marc-Andre Lemburg
Hi Robin, seeing that no one replied to your question, I'd suggest to ask this on the Python C-API ML: https://mail.python.org/mailman3/lists/capi-sig.python.org/ That's where the experts are, including the ones who implemented the mutli-phase logic. Cheers, -- Marc-Andre Lemburg

EuroPython Society: General Assembly 2021

2021-09-25 Thread Marc-Andre Lemburg
As last year, we are holding the General Assembly (GA) of the EuroPython Society (EPS) online for this year. General Assembly In accordance with our bylaws, we are calling for the EuroPython Society General Assembly to be held on Sunday, October 10th 2020, from 19:00 - 21:00 CEST

EuroPython 2021: Data Science Mini-Conference

2021-07-22 Thread Marc-Andre Lemburg
It has become a tradition at EuroPython to include a special data science track. * EuroPython 2021 Data Science Mini-Conference * https://ep2021.europython.eu/events/data-science/ This year, we have expanded on the theme and included more data science related content than ever be

EuroPython 2021: Full-Day Workshops

2021-07-20 Thread Marc-Andre Lemburg
This year's edition of EuroPython begins with two days of training sessions as outlined in the schedule. Many of these last 3 hours, however, we would like to highlight two specific workshops available to those who want a deeper dive. They are most valuable for people new to the Python language and

EuroPython 2021: Keynotes and Booklet

2021-07-19 Thread Marc-Andre Lemburg
EuroPython 2021 begins next week. We are proud to present the keynote speakers and our conference booklet. Keynotes The following keynotes will take place on Wednesday, Thursday and Friday. Tickets are still available. If you want to find out more about our keynote speakers, please head

EuroPython 2021: Conference Organisers & Community Discounts

2021-07-16 Thread Marc-Andre Lemburg
The EuroPython Society (EPS) exists not only to run the EuroPython Conference, but also to support the wider Python community in Europe. It accomplishes this in many ways; here are two of them! * EuroPython Society supporting the community * https://blog.europython.eu/europython-202

EuroPython 2021: Opening our Merchandise Shop

2021-07-08 Thread Marc-Andre Lemburg
We’re very happy to announce our merchandise shop for EuroPython 2021, with a fabulous new design for the attendee t-shirts: * EuroPython 2021 Merch Shop * https://ep2021.europython.eu/europython/europython-merchandise-shop/ You can find the shop under the "EuroPython

EuroPython 2021: Trainings and Workshops

2021-07-06 Thread Marc-Andre Lemburg
Have you ever wanted to build an image search system, take a deep dive into pytest or learn about algorithmic trading? Then we have a treat for you! The EuroPython conference will start with two full training and workshop days on Monday, July 26th, and Tuesday, July 27th: * Eu

EuroPython 2021: Volume Discount for Company Teams

2021-06-29 Thread Marc-Andre Lemburg
EuroPython 2021 offers special discounts on business tickets for company teams. * EuroPython Volume Discounts * https://ep2021.europython.eu/sponsor/packages/#Volume-Discount If you are going to attend the conference as a team, we offer the following volume discounts

EuroPython 2021: Free tickets for Python Core Developers

2021-06-25 Thread Marc-Andre Lemburg
In 2019, we have set up the Guido van Rossum Core Developer Grant, to make it easy for Python Core Developers to attend EuroPython, but also to give something back to the core team and add a perk to make core development more attractive. If you are a core developer, please check our grant page for

EuroPython 2021: Schedule published

2021-06-17 Thread Marc-Andre Lemburg
After two weeks of hard work by our program workgroup, we are very excited to announce the EuroPython 2021 schedule: * EuroPython 2021 Schedule * https://ep2021.europython.eu/schedule/ Seven full days of Python - EuroPython 2021 will

EuroPython 2021: Session List Available

2021-05-31 Thread Marc-Andre Lemburg
Our program work group (WG) has been working hard over the last week to select sessions for EuroPython 2021, based on your talk voting and our diversity criteria. We’re now happy to announce the initial list with more than 100 sessions, brought to you by more than 100 speakers.

EuroPython 2021: Talk Voting is Open

2021-05-17 Thread Marc-Andre Lemburg
Talk voting is your chance to tell us what you’d like to see at EuroPython 2021. We will leave talk voting open until: Sunday, May 23, 23:59:59 CEST In order to vote, please log in to the website and navigate to the talk voting page: * EuroPython 2021 Talk

clusters of numbers

2018-12-15 Thread Marc Lucke
hey guys, I have a hobby project that sorts my email automatically for me & I want to improve it.  There's data science and statistical info that I'm missing, & I always enjoy reading about the pythonic way to do things too. I have a list of percentage scores: (1,11,1,7,5,7,2,2,2,10,10,1,2,2

could use some help with this problem! I've been working on it for days but cant seem to get it right !

2018-02-19 Thread Marc Cohen
USING PYTHON 2: Write a program to play this game. This may seem tricky, so break it down into parts. Like many programs, we have to use nested loops (one loop inside another). In the outermost loop, we want to keep playing until we are out of stones. Inside that, we want to keep alternating p

Sharing credentials between multiple interactive processes

2017-12-15 Thread Marc Aymerich
uting the exact same code (peers)? any thoughts? -- Marc -- https://mail.python.org/mailman/listinfo/python-list

Re: Choosing a Python IDE. what is your Pythonish recommendation? I do not know what to choose.

2017-01-02 Thread Marc Brooks
I'd recommend you be willing to put in the time and effort to learn the tools you want to use, if you want to do professional software development. Pick one, use it for a month (at least 100+ hours of hands on keyboard coding). Sublime, Vi are great for Python, since Python doesn't require as muc

Re: Indentation example?

2016-06-12 Thread Marc Dietz
tation would be considered to be only 8 spaces wide. I hope this helped a little. :) Cheers Marc. -- https://mail.python.org/mailman/listinfo/python-list

Re: i'm a python newbie & wrote my first script, can someone critique it?

2016-06-11 Thread Marc Brooks
Look into docstrings. They will make your code much more readable to a Python reader. On Sat, Jun 11, 2016 at 2:16 PM mad scientist jr wrote: > For those who don't want to have to wade through comments, here is a > version without so many comments: > > # For Python 3.x > # This script creates mul

Re: i'm a python newbie & wrote my first script, can someone critique it?

2016-06-10 Thread Marc Brooks
The structure of your program is really not that Pythonic. I'd recommend you take a look at PEP 8. https://www.python.org/dev/peps/pep-0008/ It's not perfect, but it's a good start to get a feel for how to structure your Python work. Marc On Fri, Jun 10, 2016 at 7:05 PM, Chr

Re: Python on Windows with linux environment

2016-06-02 Thread Marc Brooks
that it was sometimes a bit more annoying to get libraries installed, since it couldn't use any pre-compiled binaries for Windows. I don't know if that's still the case, since this was a few years back and I'm doing my dev work on a mac nowadays. Marc On Thu, Jun 2, 2016 at 7

Re: How to create development Python environment on Linux.

2016-06-02 Thread Marc Brooks
I am pretty sure (but not 100%) that the pip that virtualenv installs when it first creates the virtualenv is the version of pip installed on the system. Here's the process I used to bootstrap a new Python 2.7 dev environment. 1. Download and install the latest version of pip as sudo so it's syst

Re: Futex hang when running event loop on a separated thread

2015-11-25 Thread Marc Aymerich
On Tue, Nov 24, 2015 at 9:17 PM, Marc Aymerich wrote: > On Tue, Nov 24, 2015 at 8:41 PM, Zachary Ware > wrote: >> On Tue, Nov 24, 2015 at 12:37 PM, Marc Aymerich wrote: >>> still it appears to work only if the main thread is in the foreground >>> (as of calling

Re: Futex hang when running event loop on a separated thread

2015-11-24 Thread Marc Aymerich
On Tue, Nov 24, 2015 at 9:17 PM, Marc Aymerich wrote: > On Tue, Nov 24, 2015 at 8:41 PM, Zachary Ware > wrote: >> On Tue, Nov 24, 2015 at 12:37 PM, Marc Aymerich wrote: >>> still it appears to work only if the main thread is in the foreground >>> (as of calling

Re: Futex hang when running event loop on a separated thread

2015-11-24 Thread Marc Aymerich
On Tue, Nov 24, 2015 at 8:41 PM, Zachary Ware wrote: > On Tue, Nov 24, 2015 at 12:37 PM, Marc Aymerich wrote: >> still it appears to work only if the main thread is in the foreground >> (as of calling Thread() with deamon=True), I don't get why it behaves >> differen

Re: Futex hang when running event loop on a separated thread

2015-11-24 Thread Marc Aymerich
On Tue, Nov 24, 2015 at 7:11 PM, Zachary Ware wrote: > On Tue, Nov 24, 2015 at 9:46 AM, Marc Aymerich wrote: >> if __name__ == '__main__': >> loop_container = {} >> handler = threading.Thread(target=run_loop, args=(loop_container, )) &g

Re: Futex hang when running event loop on a separated thread

2015-11-24 Thread Marc Aymerich
definitive solution I'll be doing a os.kill(os.getpid(), signal.SIGKILL) inside the finally block. [1] https://docs.python.org/3.5/library/threading.html#threading.Thread.daemon On Tue, Nov 24, 2015 at 4:46 PM, Marc Aymerich wrote: > On Tue, Nov 24, 2015 at 4:29 PM, Marc Aymerich wrote: >&

Re: Futex hang when running event loop on a separated thread

2015-11-24 Thread Marc Aymerich
On Tue, Nov 24, 2015 at 4:29 PM, Marc Aymerich wrote: > Hi, > > I have to run the asyncio.loop on a separated thread because the main > thread is running FUSE. Apparently fuse needs to run on the main > thread because it uses signal(): > > > File "/usr/loca

Futex hang when running event loop on a separated thread

2015-11-24 Thread Marc Aymerich
lly kill the program each time :( -- Marc -- https://mail.python.org/mailman/listinfo/python-list

Re: Most space-efficient way to store log entries

2015-10-29 Thread Marc Aymerich
; can I get my files out faster? Usually I use my home router (which has an attached HDD) for downloading movies and stuff (big files) from the WAN... it has a 800Mhz mips cpu... anyway my experience with it is that: rsync tops at ~400Kbps apache+wget tops at ~1.1Mbps netcat tops at ~1.4Mbps -- Marc -- https://mail.python.org/mailman/listinfo/python-list

Re: Most space-efficient way to store log entries

2015-10-29 Thread Marc Aymerich
On Thu, Oct 29, 2015 at 11:52 AM, Chris Angelico wrote: > On Thu, Oct 29, 2015 at 9:35 PM, Marc Aymerich wrote: >> 1) Each node on the cluster needs to keep track of *all* the changes >> that ever ocurred. So far, each node is storing each change as >> individual lines on a

Re: Most space-efficient way to store log entries

2015-10-29 Thread Marc Aymerich
On Wed, Oct 28, 2015 at 11:30 PM, Marc Aymerich wrote: > Hi, > I'm writting an application that saves historical state in a log file. > I want to be really efficient in terms of used bytes. > > What I'm doing now is: > > 1) First use zlib.compress > 2) A

Most space-efficient way to store log entries

2015-10-28 Thread Marc Aymerich
e64 is far from ideal: adds lots of bytes to the compressed log entry. So, I wonder if perhaps there is a better way to remove new lines from the zlib output? or maybe a different approach? Anyone? Thanks!! -- Marc -- https://mail.python.org/mailman/listinfo/python-list

Copy polygonal subset of an image

2015-08-28 Thread Marc Camacho Cateura
Hi all, For a project, I need to copy a polygonal subset of an image. I have eight points of panoramic image, and I want to copy this subset onto another panoramic image. I find ways to do this with PIL but only with a box mask. And I need a polygonal subset from the eight points... I'm new i

Re: Get off the list

2015-06-18 Thread Marc Lucke
there is no way. You are trapped forever. Resistance is futile. On 17/06/2015 5:09 PM, Deogratius Musiige wrote: > Hi, > > How can i get off this mailing list? > > > > Best regards / Med venlig hilsen > > Deogratius Musiige > Software Development Engineer > > *Sennheiser Communications A/

Re: Ghost vulnerability

2015-02-03 Thread Marc Aymerich
e other test proposed on stackechange correctly reports that I'm not vulnerable ;) root@web:/tmp# wget https://webshare.uchicago.edu/orgs/ITServices/itsec/Downloads/GHOST.c root@web:/tmp# gcc GHOST.c -o GHOST root@web:/tmp# ./GHOST not vulnerable -- Marc -- https://mail.python.org/mailman/listinfo/python-list

Re: Communicating with a PHP script (and pretending I'm a browser)

2014-11-11 Thread Marc Aymerich
On Tue, Nov 11, 2014 at 6:26 PM, Larry Martell wrote: > On Tue, Nov 11, 2014 at 12:18 PM, Marc Aymerich wrote: >> On Tue, Nov 11, 2014 at 5:43 PM, Larry Martell >> wrote: >>> On Tue, Nov 11, 2014 at 11:00 AM, Marc Aymerich wrote: >>>> On Tue, No

Re: Communicating with a PHP script (and pretending I'm a browser)

2014-11-11 Thread Marc Aymerich
On Tue, Nov 11, 2014 at 5:43 PM, Larry Martell wrote: > On Tue, Nov 11, 2014 at 11:00 AM, Marc Aymerich wrote: >> On Tue, Nov 11, 2014 at 4:48 PM, Larry Martell >> wrote: >>> >>> I have a PHP app that I want to convert to django. But I want to do it >>&g

Re: Communicating with a PHP script (and pretending I'm a browser)

2014-11-11 Thread Marc Aymerich
#x27; 'SERVER_PROTOCOL=HTTP/1.1 ' 'REQUEST_URI=/nl/page ' 'HTTP_HOST=site.tld ' '/usr/bin/php-cgi' ) subprocess.Popen(cmd, stdout=subprocess.PIPE) -- Marc -- https://mail.python.org/mailman/listinfo/python-list

Re: detect mouse pointer type

2014-11-05 Thread Marc Aymerich
sed to have desktop applications other than the web browser. But this was even before cloud computing began to emerge ;) > -- > Marc -- https://mail.python.org/mailman/listinfo/python-list

Re: Unable to run print('Réussi') on windows and on linux

2014-08-14 Thread marc . vanhoomissen
; print('R\xe9ussi') > > > UnicodeEncodeError: 'ascii' codec can't encode character '\xe9' in position > > 1: ordinal not in range(128) > > > > > > What should i do to let the same program run on both OS, without changes

Re: Unable to run print('Réussi') on windows and on linux

2014-08-14 Thread marc . vanhoomissen
Hello YBM, I tried your suggestions, without improvement. Further, see my answer to Vincent Vande Vyre Thanks anyway. -- https://mail.python.org/mailman/listinfo/python-list

Unable to run print('Réussi') on windows and on linux

2014-08-14 Thread marc . vanhoomissen
ussi') UnicodeEncodeError: 'ascii' codec can't encode character '\xe9' in position 1: ordinal not in range(128) What should i do to let the same program run on both OS, without changes? Thank you for your answer Marc Vanhoomissen -- https://mail.python.org/mailman/listinfo/python-list

Re: lxml and namespaces

2014-07-29 Thread Marc Aymerich
On Tue, Jul 29, 2014 at 8:19 PM, Marc Aymerich wrote: > Hi, I'm desperately trying to construct an XML with the following document > declaration: > > xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”> > > I'm using LXML, and what I'm doing is

lxml and namespaces

2014-07-29 Thread Marc Aymerich
ot;; xmlns="urn:iso:std:iso:20022:tech:xsd:pain.008.001.02"/> I've tried everything I can imagine and this is the best I can do :( Any idea on how to get the xmlns and xmlns:xsi attributes correctly? Thanks!! -- Marc -- https://mail.python.org/mailman/listinfo/python-list

Re: [OFF-TOPIC] How do I find a mentor when no one I work with knows what they are doing?

2014-04-08 Thread Marc Lucke
ething that is beyond your skill level. Short of that you'll always be Bubba's "female dog". Good day! "Teach and learn twice". I love teaching people. It makes me better. Marc -- https://mail.python.org/mailman/listinfo/python-list

Re: Ordering in the printout of a dictionary

2014-03-18 Thread Marc Christiansen
le "", line 1, in > File "", line 2, in display > TypeError: unorderable types: str() < bool() > > But for strings, this is the easiest way to get what you're looking for. I would say using pprint.pprint is even easier and it works with your failing example: >>> pprint.pprint({True:1,"Hello":2}) {True: 1, 'Hello': 2} Ciao Marc -- https://mail.python.org/mailman/listinfo/python-list

Re: Why this throws an UnboundLocalError ?

2014-01-31 Thread Marc Aymerich
On Thu, Jan 30, 2014 at 11:53 PM, Chris Angelico wrote: > On Fri, Jan 31, 2014 at 9:46 AM, Marc Aymerich wrote: >> GLOBAL = 0 >> >> def update(): >> GLOBAL += 1 > > If you assign to a name, Python makes it local, unless you explicitly > tell it that you

Why this throws an UnboundLocalError ?

2014-01-30 Thread Marc Aymerich
credits" or "license" for more information. >>> import globalstate >>> globalstate.update() Traceback (most recent call last): File "", line 1, in File "globalstate.py", line 4, in update GLOBAL += 1 UnboundLocalError: local variable 'GL

Re: Templating engines that work very well with Python/Django

2014-01-17 Thread Marc Aymerich
good comparatives between both. -- Marc -- https://mail.python.org/mailman/listinfo/python-list

Re: Graph or Chart Software for Django

2014-01-17 Thread Marc Aymerich
a JS library called highcharts, the django-side are only views that dump some data in json format perhaps in django-users mailing list you'll be able to find better answers than here :) -- Marc -- https://mail.python.org/mailman/listinfo/python-list

Re: Highest performance HTTP REST microframework?

2014-01-04 Thread Marc Aymerich
@route and > app.merge(app2) extra features. The biggest performance gains on HTTP architectures are usually made by doing proper HTTP caching. Without knowing anything about your architecture is hard to tell something more specific :) -- Marc -- https://mail.python.org/mailman/listinfo/python-list

RE: Cracking hashes with Python

2013-11-25 Thread Marc
Hashes, by definition, are not reversible mathematically. The only way to figure out what they represent is to take plaintext that might be the plaintext based on anything you might know about the original plaintext (which is often nothing) and hash it; then see if the hash matches the one you hav

Re: Implement logic on object.attribute and object.attribute()

2013-11-24 Thread Marc Aymerich
On Sun, Nov 24, 2013 at 3:37 PM, Chris Angelico wrote: > On Mon, Nov 25, 2013 at 1:16 AM, Marc Aymerich wrote: >> ... def do_get(self): >> ... # Do a HTTP GET request. >> ... return "Get stuff" >> ... def do_put(self): &

Re: Implement logic on object.attribute and object.attribute()

2013-11-24 Thread Marc Aymerich
ET call will not be a problem since this objects will be used in just a few particular places and the workflow is always something like: # Initiate firmware building node.ctl.firmware() # wait until finished while node.ctl.firmware.progress < 100: time.sleep(1) Thanks for sharing your knowledge guys !! -- Marc -- https://mail.python.org/mailman/listinfo/python-list

Re: Implement logic on object.attribute and object.attribute()

2013-11-24 Thread Marc Aymerich
On Sun, Nov 24, 2013 at 2:45 PM, Steven D'Aprano wrote: > On Sun, 24 Nov 2013 05:04:16 -0800, Devin Jeanpierre wrote: > >> On Sun, Nov 24, 2013 at 4:52 AM, Marc Aymerich >> wrote: >>> Hi, >>> I'm playing with python internals to make ob

Implement logic on object.attribute and object.attribute()

2013-11-24 Thread Marc Aymerich
lf, name): return HTTPAttribute(name) But I'm stuck implementing the HTTP GET request when accessing "object.attribute", Any idea ?? Thanks!! -- Marc -- https://mail.python.org/mailman/listinfo/python-list

RE: Parsing multiple lines from text file using regex

2013-11-03 Thread Marc
ed: outfile.write("Banner type: %s Banner Delimiter: %s\n" % (banner[0][0], banner[0][1])) outfile.write("Banner Text:\n") outfile.write(banner[0][2]) Probably not the prettiest, most concise code, but it gets the job done. Thanks again, Marc -- https://mail.python.org/mailman/listinfo/python-list

RE: Parsing multiple lines from text file using regex

2013-10-28 Thread Marc
>Hi Marc, did you actually subscribe to the tutor list or did you just >send an email there? Peter replied to you and you can see the reply >here: >https://mail.python.org/pipermail/tutor/2013-October/098156.html > >He only sent the reply back to the tutor list and didn'

RE: Parsing multiple lines from text file using regex

2013-10-28 Thread Marc
>Hi Marc, did you actually subscribe to the tutor list or did you just >send an email there? Peter replied to you and you can see the reply >here: >https://mail.python.org/pipermail/tutor/2013-October/098156.html > >He only sent the reply back to the tutor list and didn't em

RE: Parsing multiple lines from text file using regex

2013-10-27 Thread Marc
>What was wrong with the answer Peter Otten gave you earlier today on the >tutor mailing list? > >-- >Python is the second best programming language in the world. >But the best has yet to be invented. Christian Tismer > >Mark Lawrence > I did not receive any answers from the Tutor list, so I tho

Parsing multiple lines from text file using regex

2013-10-27 Thread Marc
since it is already done, if possible. Any help in pointing me in the right direction would be most appreciated. Thank you, Marc -- https://mail.python.org/mailman/listinfo/python-list

Re: Cutting a deck of cards

2013-05-26 Thread Marc Christiansen
What does "list(range(13 * 4 * decks))" returns in Python 3? > A list of course. But Py3 range is very similar to Py2 xrange, it returns a range object. Adiaŭ Marc -- http://mail.python.org/mailman/listinfo/python-list

Re: Cutting a deck of cards

2013-05-26 Thread Marc Christiansen
Thanks, RVic, >> python newbie >> >> -- >> http://mail.python.org/mailman/listinfo/python-list > > > list(range(13 * 4 * decks)) == range(13 * 4 * decks) > > ;) Not in Python3.x >>> decks = 6 >>> list(range(13 * 4 * decks)) == range(13 * 4 * decks) False Adiaŭ Marc -- http://mail.python.org/mailman/listinfo/python-list

Re: CrazyHTTPd - HTTP Daemon in Python

2013-05-26 Thread Marc Christiansen
ting a project right now that is limited to Python 2 is about as > much use as a chocolate teapot. I.e. not very useful, but slightly more so than you would expect: http://www.thenakedscientists.com/HTML/content/kitchenscience/exp/how-useless-is-a-chocolate-teapot/ Adiaŭ Marc -- http://mail.python.org/mailman/listinfo/python-list

RE: Awsome Python - chained exceptions

2013-02-20 Thread J. Marc Edwards
ronic application. Regards, Marc J. Marc Edwards, Lead Architect Semiconductor Design Portals Nimbis Services, Inc. Cell - (919) 345-1021 Fax - (919) 882-8602 Skype - (919) 747-3775 jmarcedwa...@gmail.com marc.edwa...@nimbisservices.com -Original Message- From: Python

Re: Generate 16+MAX_WBITS decompressable data

2013-02-12 Thread Marc Christiansen
ack (most recent call last): >>File "", line 1, in >> zlib.error: Error -3 while decompressing data: incorrect header check Try using a compressobj with 24 <= wbits < 32. It should work, but I didn't try. Marc -- http://mail.python.org/mailman/listinfo/python-list

Re: Loading a PKCS#1 public key using M2Crypto

2013-01-18 Thread Marc Aymerich
On Fri, Jan 18, 2013 at 12:10 AM, Piet van Oostrum wrote: > Marc Aymerich writes: > >> Thank you very much Piet, >> I'm just starting to grasp these cryptography related concepts and your code >> is helping me a lot to understand how to handle these keys in a low

  1   2   3   4   5   6   7   8   9   10   >