Unix / linux programs

2023-01-28 Thread Weatherby,Gerard
The Unix convention is 0 means everything went well, and non-zero means something else happened. Here’s a contrived example of a bash wrapper around GNU tar. By contrived I mean it works but I would not use it in practice … I’d just use tar directly or use the Python tarfile module if I wanted f

Re: venv and executing other python programs

2022-02-17 Thread Martin Di Paola
That's correct. I tried to be systematic in the analysis so I tested all the possibilities. Your test results were unexpected for `python3 -m venv xxx`. By default, virtual environments exclude the system and user site packages. Including them should require the command-line argument `--system-

Re: venv and executing other python programs

2022-02-15 Thread Eryk Sun
On 2/15/22, Martin Di Paola wrote: > > That's correct. I tried to be systematic in the analysis so I tested all > the possibilities. Your test results were unexpected for `python3 -m venv xxx`. By default, virtual environments exclude the system and user site packages. Including them should requi

Re: venv and executing other python programs

2022-02-15 Thread Martin Di Paola
n. On Tue, Feb 15, 2022 at 06:35:18AM +0100, Mirko via Python-list wrote: Hi, I have recently started using venv for my hobby-programming. There is an annoying problem. Since venv modifies $PATH, python programs that use the "#!/usr/bin/env python" variant of the hashbang often fail si

Re: venv and executing other python programs

2022-02-15 Thread Peter J. Holzer
On 2022-02-15 06:35:18 +0100, Mirko via Python-list wrote: > I have recently started using venv for my hobby-programming. There > is an annoying problem. Since venv modifies $PATH, python programs > that use the "#!/usr/bin/env python" variant of the hashbang often > fail

Re: venv and executing other python programs

2022-02-15 Thread Barry Scott
activate script being run. Barry > > Do you have a particular context where you are having troubles? May be there > is something else going on... > > Thanks, > Martin. > > On Tue, Feb 15, 2022 at 06:35:18AM +0100, Mirko via Python-list wrote: >> Hi, >> >&g

Re: venv and executing other python programs

2022-02-15 Thread Barry
> On 15 Feb 2022, at 14:30, Mirko via Python-list > wrote: > > Well, it's not that I activate the venv *for* those troubling > programs. I activate it to work on the particular project. ;-) It is not necessary to activate the venv to use the python in it. So your solut

Re: venv and executing other python programs

2022-02-15 Thread Mirko via Python-list
you want to use a tool like jq (let's call it > pjq as an example) to process that output, by piping the output of > your program to it: ... and this. Am 15.02.2022 um 08:21 schrieb Reto: > Don't activate the venv for those programs then? > The point of a venv is that y

Re: venv and executing other python programs

2022-02-15 Thread Martin Di Paola
Python-list wrote: Hi, I have recently started using venv for my hobby-programming. There is an annoying problem. Since venv modifies $PATH, python programs that use the "#!/usr/bin/env python" variant of the hashbang often fail since their additional modules aren't install inside

Re: venv and executing other python programs

2022-02-15 Thread Chris Angelico
On Tue, 15 Feb 2022 at 21:19, Roel Schroeven wrote: > > Op 15/02/2022 om 8:21 schreef Reto: > > On Tue, Feb 15, 2022 at 06:35:18AM +0100, Mirko via Python-list wrote: > > > How to people here deal with that? > > > > Don't activate the venv for those programs

Re: venv and executing other python programs

2022-02-15 Thread Roel Schroeven
Op 15/02/2022 om 8:21 schreef Reto: On Tue, Feb 15, 2022 at 06:35:18AM +0100, Mirko via Python-list wrote: > How to people here deal with that? Don't activate the venv for those programs then? The point of a venv is that you only enter it when you actually want that specific python sta

Re: venv and executing other python programs

2022-02-14 Thread Barry Scott
> On 15 Feb 2022, at 05:35, Mirko via Python-list > wrote: > > Hi, > > I have recently started using venv for my hobby-programming. There > is an annoying problem. Since venv modifies $PATH, python programs > that use the "#!/usr/bin/env python" variant

Re: venv and executing other python programs

2022-02-14 Thread Reto
On Tue, Feb 15, 2022 at 06:35:18AM +0100, Mirko via Python-list wrote: > How to people here deal with that? Don't activate the venv for those programs then? The point of a venv is that you only enter it when you actually want that specific python stack. Get yourself a terminal that ca

venv and executing other python programs

2022-02-14 Thread Mirko via Python-list
Hi, I have recently started using venv for my hobby-programming. There is an annoying problem. Since venv modifies $PATH, python programs that use the "#!/usr/bin/env python" variant of the hashbang often fail since their additional modules aren't install inside in venv. How to p

A picture book written with Python programs

2020-12-02 Thread Shari Eskenas
A Day in Code: Python is an educational book that tells a story through Python programs that represent real-life situations. Each program introduces a new Python programming concept. It is currently a Kickstarter project: https://www.kickstarter.com/projects/914595512/a-day-in-code-python

Re: python programs to track bitcoins

2020-04-10 Thread Abdur-Rahmaan Janhangeer
ature is so ugly. On Fri, 10 Apr 2020, 11:04 , wrote: > Hello > I`m looking if there any programs out there to track bitcoins and those > programs were made by python > if you know any? > please let me know > it`s kinda urgent > thank you very much > -- > https://

Re: python programs to track bitcoins

2020-04-10 Thread Michael Torrie
On 4/9/20 11:16 PM, dreamyladyg...@gmail.com wrote: > I`m looking if there any programs out there to track bitcoins and those > programs were made by python You can use Google search as well as any of us, or some other search engine. What have you found so far? > > > it`s kinda

Re: python programs to track bitcoins

2020-04-10 Thread Souvik Dutta
This should do your job. https://github.com/rgho/bitcoinTicker.py On Fri, 10 Apr, 2020, 12:35 pm , wrote: > Hello > I`m looking if there any programs out there to track bitcoins and those > programs were made by python > if you know any? > please let me know > it`s kinda urgen

python programs to track bitcoins

2020-04-10 Thread dreamyladygirl
Hello I`m looking if there any programs out there to track bitcoins and those programs were made by python if you know any? please let me know it`s kinda urgent thank you very much -- https://mail.python.org/mailman/listinfo/python-list

Re: Issue with running programs in Python and imports, probably directories messed up

2019-11-03 Thread dieter
Vladyslav Verteletskyi writes: > I have stuck upon a problem with all of my attempts to import libraries to > Python. Find the > screenshots enclosed. This is a text only list: we (at least most of us) do not see attachments (such as attached screenshots). Use functions of your (windows) sys

Issue with running programs in Python and imports, probably directories messed up

2019-10-31 Thread Vladyslav Verteletskyi
Dear developers, I have stuck upon a problem with all of my attempts to import libraries to Python. PyCharm and Anaconda both fail, as well as terminal. Find the screenshots enclosed. I have tried reinstalling both several times, of no help. All of the libraries I tried to import are already downl

Re: problem occurring in operating python , after typing only 5-6 programs only is causing problem it has stoped working

2019-09-03 Thread Calvin Spealman
You will need to provide more information: What version of Python are running? What sort of error message you receiving (paste the entire error)? What code are you attempting to run which causes this problem (paste the failing code)? On Sun, Sep 1, 2019 at 3:01 PM best web site wrote: > > > S

problem occurring in operating python , after typing only 5-6 programs only is causing problem it has stoped working

2019-09-01 Thread best web site
Sent from Mail for Windows 10 -- https://mail.python.org/mailman/listinfo/python-list

Re: "Programs" folder not found.

2018-02-15 Thread Andre Müller
Look in %localappdata%\Programs\Python Enerel Amgalan via Python-list schrieb am Do., 15. Feb. 2018 um 14:05 Uhr: > > Hello! So I downloaded “Python” program in C:>Users>(my > name)>AppData>Local>Programs>Python.And then in “Local” folder I can’t find > “P

"Programs" folder not found.

2018-02-15 Thread Enerel Amgalan via Python-list
Hello! So I downloaded “Python” program in C:>Users>(my name)>AppData>Local>Programs>Python.And then in “Local” folder I can’t find “Programs” folder,but it says it downloaded in “Programs”.So can you help me. -- https://mail.python.org/mailman/listinfo/python-list

Re: Sockets but calling from different programs

2017-10-25 Thread Cameron Simpson
On 23Oct2017 05:33, T Obulesu wrote: I'm new to python3 and scratching my head to write a program for this logic: The tutor list might be a better place for such questions, but since we're here... classA.py Class A: # class for socket communication basic init method that

Sockets but calling from different programs

2017-10-23 Thread T Obulesu
I'm new to python3 and scratching my head to write a program for this logic: classA.py Class A: # class for socket communication basic init method that initializes port, address, connection method send(message): # for sending any message through the given por

Re: Using python to start programs after logging in

2017-01-23 Thread Cecil Westerhof
On Thursday 19 Jan 2017 20:08 CET, Cecil Westerhof wrote: > I am writing a python program to start the programs that need to be > started after logging in. I published what I have until now at: https://github.com/CecilWesterhof/PythonScripts/blob/master/startPrograms.py I do not min

Re: Using python to start programs after logging in

2017-01-20 Thread John Gordon
In <878tq6hi0s@equus.decebal.nl> Cecil Westerhof writes: > > I think using your window manager's built-in facilities for starting > > programs would be better. Why are you using Python instead? > Because when you use the window managers builtin facilities t

Re: Using python to start programs after logging in

2017-01-19 Thread Cecil Westerhof
On Friday 20 Jan 2017 00:36 CET, Cecil Westerhof wrote: > I wrote a function for switching to the correct virtual desktop and > starting all the commands. I am also using with now: > def do_desktop(desktop, commands, seconds_to_wait = 10): > desktop_command = ('wmctrl -s ' + desktop).split() > che

Re: Using python to start programs after logging in

2017-01-19 Thread Cecil Westerhof
On Friday 20 Jan 2017 01:24 CET, MRAB wrote: >> I wrote a function for switching to the correct virtual desktop and >> starting all the commands. I am also using with now: >> def do_desktop(desktop, commands, seconds_to_wait = 10): >> desktop_command = ('wmctrl -s ' + desktop).split() >> check_cal

Re: Using python to start programs after logging in

2017-01-19 Thread MRAB
On 2017-01-19 23:36, Cecil Westerhof wrote: On Thursday 19 Jan 2017 22:21 CET, Cecil Westerhof wrote: On Thursday 19 Jan 2017 21:12 CET, MRAB wrote: On 2017-01-19 19:08, Cecil Westerhof wrote: I am writing a python program to start the programs that need to be started after logging in. I

Re: Using python to start programs after logging in

2017-01-19 Thread Cecil Westerhof
On Thursday 19 Jan 2017 22:21 CET, Cecil Westerhof wrote: > On Thursday 19 Jan 2017 21:12 CET, MRAB wrote: > >> On 2017-01-19 19:08, Cecil Westerhof wrote: >>> I am writing a python program to start the programs that need to >>> be started after logging in. >&g

Re: Using python to start programs after logging in

2017-01-19 Thread Cecil Westerhof
On Thursday 19 Jan 2017 21:12 CET, MRAB wrote: > On 2017-01-19 19:08, Cecil Westerhof wrote: >> I am writing a python program to start the programs that need to be >> started after logging in. >> >> I have the following imports: >> from subprocess import check

Re: Using python to start programs after logging in

2017-01-19 Thread Cecil Westerhof
On Thursday 19 Jan 2017 20:29 CET, John Gordon wrote: > In <878tq6amvj@equus.decebal.nl> Cecil Westerhof > writes: > >> I am writing a python program to start the programs that need to be >> started after logging in. > >> Is this a good way to do thin

Re: Using python to start programs after logging in

2017-01-19 Thread MRAB
On 2017-01-19 19:08, Cecil Westerhof wrote: I am writing a python program to start the programs that need to be started after logging in. I have the following imports: from subprocess import check_call, Popen, STDOUT from time import sleep, strftime And use the following code

Re: Using python to start programs after logging in

2017-01-19 Thread John Gordon
In <878tq6amvj@equus.decebal.nl> Cecil Westerhof writes: > I am writing a python program to start the programs that need to be > started after logging in. > Is this a good way to do things, or could I do it in a better way? I think using your window manager's bui

Using python to start programs after logging in

2017-01-19 Thread Cecil Westerhof
I am writing a python program to start the programs that need to be started after logging in. I have the following imports: from subprocess import check_call, Popen, STDOUT from time import sleep, strftime And use the following code: check_call(tuple('wmctrl -s 10&#

Re: Where to store finalized python programs

2016-09-09 Thread Python
Le 09/09/2016 à 15:32, ast a écrit : hi Is there a web site to store python programs in order to make them accessible for every boby ? I know pypy, but I understood that it is for modules only. Not only, it is for programs too, for instance: pip install weboob -- https://mail.python.org

Re: Where to store finalized python programs

2016-09-09 Thread Chris Angelico
On Fri, Sep 9, 2016 at 11:32 PM, ast wrote: > hi > > Is there a web site to store python programs > in order to make them accessible for every boby ? > > I know pypy, but I understood that it is for modules > only. I would recommend source code hosting sites - g

Where to store finalized python programs

2016-09-09 Thread ast
hi Is there a web site to store python programs in order to make them accessible for every boby ? I know pypy, but I understood that it is for modules only. -- https://mail.python.org/mailman/listinfo/python-list

Guys, can you please share me some sites where we can practice python programs for beginners and Intermediate.

2016-06-28 Thread Umar Yusuf
Websites to learn python programming? Try these links:- http://umar-yusuf.blogspot.com.ng/2016/03/70-free-python-programming-language.html http://www.sololearn.com/Course/Python/ http://www.afterhoursprogramming.com/tutorial/Python/Overview/ http://www.pyschools.com/ -- https://mail.python.or

Re: Guys, can you please share me some sites where we can practice python programs for beginners and Intermediate.

2016-06-24 Thread Sayth Renshaw
On Tuesday, 21 June 2016 21:03:28 UTC+10, Pushpanth Gundepalli wrote: > Guys, can you please share me some sites where we can practice python > programs for beginners and Intermediate. Here are some good beginner projects https://knightlab.northwestern.edu/2014/06/05/five-mini-progr

Re: Guys, can you please share me some sites where we can practice python programs for beginners and Intermediate.

2016-06-23 Thread Cousin Stanley
DFS wrote: > On 6/23/2016 11:11 AM, Cousin Stanley wrote: >> DFS wrote: >> >>> Here's a fun one: scraping data off a website, >>> and storing it in a SQLite database file. >>> >> >> After testing your example code here I found >> that the length of the categories list >> was 1 less th

Re: Guys, can you please share me some sites where we can practice python programs for beginners and Intermediate.

2016-06-23 Thread Cousin Stanley
DFS wrote: > Here's a fun one: scraping data off a website, > and storing it in a SQLite database file. > After testing your example code here I found that the length of the categories list was 1 less than the terms list after applying dropwords in the terms list comprehensio

RE: Guys, can you please share me some sites where we can practice python programs for beginners and Intermediate.

2016-06-23 Thread Joe Gulizia
From: Python-list on behalf of Pushpanth Gundepalli Sent: Thursday, June 23, 2016 12:35 AM To: python-list@python.org Subject: Re: Guys, can you please share me some sites where we can practice python programs for beginners and Intermediate. On

Re: Guys, can you please share me some sites where we can practice python programs for beginners and Intermediate.

2016-06-22 Thread Pushpanth Gundepalli
On Tuesday, June 21, 2016 at 4:33:28 PM UTC+5:30, Pushpanth Gundepalli wrote: > Guys, can you please share me some sites where we can practice python > programs for beginners and Intermediate. Thank you for ur valuable suggestions.. Actually i have done practising the exercises on codea

Re: Guys, can you please share me some sites where we can practice python programs for beginners and Intermediate.

2016-06-22 Thread John Wong
On Wed, Jun 22, 2016 at 4:45 AM, Nick Sarbicki wrote: > On Wed, Jun 22, 2016 at 9:42 AM Miki Tebeka wrote: > > > IMO you can do that at https://www.codecademy.com/learn/python > > > > Some people might think differently but I wouldn't recommend a python > course which teaches 2.7 over 3.x. > > p

Re: Guys, can you please share me some sites where we can practice python programs for beginners and Intermediate.

2016-06-22 Thread Nick Sarbicki
On Wed, Jun 22, 2016 at 9:42 AM Miki Tebeka wrote: > IMO you can do that at https://www.codecademy.com/learn/python > Some people might think differently but I wouldn't recommend a python course which teaches 2.7 over 3.x. It bugs me that learnpythonthehardway and codecademy - probably 2 of the

Re: Guys, can you please share me some sites where we can practice python programs for beginners and Intermediate.

2016-06-22 Thread Miki Tebeka
On Tuesday, June 21, 2016 at 2:03:28 PM UTC+3, Pushpanth Gundepalli wrote: > Guys, can you please share me some sites where we can practice python > programs for beginners and Intermediate. IMO you can do that at https://www.codecademy.com/learn/python -- https://mail.python.org/m

Re: Guys, can you please share me some sites where we can practice python programs for beginners and Intermediate.

2016-06-21 Thread jfong
Pushpanth Gundepalli at 2016/6/21 7:03:28PM wrote: > Guys, can you please share me some sites where we can practice python > programs for beginners and Intermediate. Is this you want? http://pythontutor.com/ --Jach -- https://mail.python.org/mailman/listinfo/python-list

Re: Guys, can you please share me some sites where we can practice python programs for beginners and Intermediate.

2016-06-21 Thread Rick Johnson
On Tuesday, June 21, 2016 at 6:03:28 AM UTC-5, Pushpanth Gundepalli wrote: > Guys, can you please share me some sites where we can practice python > programs for beginners and Intermediate. Have you tried googling for "python interactive tutorial"? Someone had created one simila

Guys, can you please share me some sites where we can practice python programs for beginners and Intermediate.

2016-06-21 Thread Pushpanth Gundepalli
Guys, can you please share me some sites where we can practice python programs for beginners and Intermediate. -- https://mail.python.org/mailman/listinfo/python-list

Re: Python programs and relative imports

2016-04-08 Thread Ian Kelly
On Fri, Apr 8, 2016 at 11:50 AM, Rob Gaddi wrote: > Sort of. If I've got a directory full of files (in a package) > that I'm working on, the relative import semantics change based on > whether I'm one directory up and importing the package or in the same > directory and importing the files locall

Re: Python programs and relative imports

2016-04-08 Thread Chris Angelico
On Sat, Apr 9, 2016 at 3:50 AM, Rob Gaddi wrote: > Sort of. If I've got a directory full of files (in a package) > that I'm working on, the relative import semantics change based on > whether I'm one directory up and importing the package or in the same > directory and importing the files locally

Re: Python programs and relative imports

2016-04-08 Thread Rob Gaddi
Chris Angelico wrote: > On Sat, Apr 9, 2016 at 2:59 AM, Rob Gaddi > wrote: >> Rob Gaddi wrote: >> >>> Does anyone know the history of why relative imports are only available >>> for packages and not for "programs"? It certainly complicates life. >

Re: Python programs and relative imports

2016-04-08 Thread Chris Angelico
On Sat, Apr 9, 2016 at 2:59 AM, Rob Gaddi wrote: > Rob Gaddi wrote: > >> Does anyone know the history of why relative imports are only available >> for packages and not for "programs"? It certainly complicates life. >> > > Really, no one? It seems like

Re: Python programs and relative imports

2016-04-08 Thread Rob Gaddi
Rob Gaddi wrote: > Does anyone know the history of why relative imports are only available > for packages and not for "programs"? It certainly complicates life. > Really, no one? It seems like a fairly obvious thing to have included; all of the reasons that you want to be

Python programs and relative imports

2016-04-04 Thread Rob Gaddi
Does anyone know the history of why relative imports are only available for packages and not for "programs"? It certainly complicates life. -- Rob Gaddi, Highland Technology -- www.highlandtechnology.com Email address domain is currently out of order. See above to fix.

Re: Best programs written completly in Python

2016-02-12 Thread mentificium
On Sunday, August 5, 2007 at 3:14:38 AM UTC-7, Franz Steinhäusler wrote: > Hello NG, > > wWhat are the best programs in your opinion, written entirly > in pyhton, divided into categories like: Maybe such a list of categories should include a) Artificial Intelligence > a) Games

Re: Best programs written completly in Python

2016-02-11 Thread zubvit
On Sunday, August 5, 2007 at 1:14:38 PM UTC+3, Franz Steinhäusler wrote: > Hello NG, > > wWhat are the best programs in your opinion, written entirly > in pyhton, divided into categories like: > a) Games > b) Utilities/System > c) Office > d) Web/Newsreader/Mail/Browser &g

Unable to activate Python once installed, as far I am aware i have full permission. The download is in programs but does not show when i use run in windows start menu, any suggestions would be helpful

2016-01-31 Thread Haydn James
-- https://mail.python.org/mailman/listinfo/python-list

Re: Unable to activate Python once installed, as far I am aware i have full permission. The download is in programs but does not show when i use run in windows start menu, any suggestions would be hel

2016-01-31 Thread Terry Reedy
On 1/30/2016 10:32 AM, Haydn James wrote: Please repost with a short subject line, about 40 chars. Put your messages in the body of the post, with adequate detail. What version of Windows. What version of Python. Where did you get it. How did you install it. How did you try to run it. 'run in

Good things come in small packages -Choose AWA s pay per click training programs!

2014-05-07 Thread AWA Hyd
Effective marketing lies in understanding the behavior of an average user as he uses the internet. Since most users access the internet with a purpose which is in most cases to look for information, search engines revolve around the most likely key phrases or words used by the user to launch suc

Re: Running programs on mobile phones

2014-04-22 Thread Miki Tebeka
> I have seen by chance a number of years ago a book on Python programming > for running on mobile phones (of a certain producer only). What is the > current state of the art in that? Could someone kindly give a few good > literature references? Thanks in advance. I'm not an expert, but take a look

Running programs on mobile phones

2014-04-22 Thread Mok-Kong Shen
I have seen by chance a number of years ago a book on Python programming for running on mobile phones (of a certain producer only). What is the current state of the art in that? Could someone kindly give a few good literature references? Thanks in advance. M. K. Shen -- https://mail.python.org/m

Re: [OT] Migrating from non-free programs to LibreOffice

2014-01-07 Thread Chris Angelico
On Wed, Jan 8, 2014 at 8:54 AM, Ben Finney wrote: > Chris Angelico writes: > >> Sad. This is yet another of those politically-charged distinctions >> that, quite frankly, I have no interest in. > > I raised the point because you're giving advice to others on which > software to use. If you have n

Re: [OT] Migrating from non-free programs to LibreOffice

2014-01-07 Thread Ben Finney
Michael Torrie writes: > On 01/05/2014 04:30 PM, Ben Finney wrote: > > In short: Everything that was good about OpenOffice is now called > > LibreOffice, which had to change its name only because the owners of > > that name refused to let it go. > > Your information is a year or two out of date.

Re: [OT] Migrating from non-free programs to LibreOffice

2014-01-07 Thread Michael Torrie
Apologies to the list for the noise! Should have replied off-list. -- https://mail.python.org/mailman/listinfo/python-list

Re: [way OT] Migrating from non-free programs to LibreOffice

2014-01-07 Thread Michael Torrie
On 01/07/2014 10:14 AM, Chris Angelico wrote: > On Wed, Jan 8, 2014 at 4:10 AM, Michael Torrie wrote: >> LO does reference images if you would like. But I find embedding the >> whole works is just more self-contained. And with multiple file >> documents the chances of losing data or messing with

Re: [way OT] Migrating from non-free programs to LibreOffice

2014-01-07 Thread Chris Angelico
On Wed, Jan 8, 2014 at 4:10 AM, Michael Torrie wrote: > LO does reference images if you would like. But I find embedding the > whole works is just more self-contained. And with multiple file > documents the chances of losing data or messing with pagination are > contained to individual sections.

Re: [way OT] Migrating from non-free programs to LibreOffice

2014-01-07 Thread Michael Torrie
On 01/07/2014 09:58 AM, Chris Angelico wrote: > On Wed, Jan 8, 2014 at 3:45 AM, Michael Torrie wrote: >> I tend to add my own [styles] >> for quotes, captions, etc. After composing the document, >> then you modify the styles to set the spacings, fonts, indentations, >> border lines, etc. The wor

Re: [OT] Migrating from non-free programs to LibreOffice

2014-01-07 Thread Chris Angelico
On Wed, Jan 8, 2014 at 3:38 AM, Michael Torrie wrote: > [OpenOffice v4] is mostly feature identical to > LibreOffice 4, and even has a couple of features that LibreOffice lacks. > They really need to merge back into one project again, but I suspect > they won't either for ideological or legal rea

Re: [OT] Migrating from non-free programs to LibreOffice

2014-01-07 Thread Chris Angelico
On Wed, Jan 8, 2014 at 3:45 AM, Michael Torrie wrote: > I tend to add my own [styles] > for quotes, captions, etc. After composing the document, > then you modify the styles to set the spacings, fonts, indentations, > border lines, etc. The workflow is very similar to using LyX, or even a > plai

Re: [OT] Migrating from non-free programs to LibreOffice

2014-01-07 Thread Michael Torrie
On 01/06/2014 08:53 AM, Grant Edwards wrote: > Yea, I think laying out a book with something like MS Word or > LibreOffice is nuts. Depending on her formatting needs, a > lighter-weight mark-up language (something like asciidoc) might suite: I've laid out a book with LibreOffice and it actually

Re: [OT] Migrating from non-free programs to LibreOffice

2014-01-07 Thread Michael Torrie
On 01/05/2014 04:30 PM, Ben Finney wrote: > In short: Everything that was good about OpenOffice is now called > LibreOffice, which had to change its name only because the owners of > that name refused to let it go. Your information is a year or two out of date. OpenOffice.org is alive and well, u

Re: [OT] Migrating from non-free programs to LibreOffice

2014-01-06 Thread Ethan Furman
On 01/06/2014 07:53 AM, Grant Edwards wrote: Yea, I think laying out a book with something like MS Word or LibreOffice is nuts. Depending on her formatting needs, a lighter-weight mark-up language (something like asciidoc) might suite: http://asciidoc.org/ http://en.wikipedia.org/wiki/A

Re: [OT] Migrating from non-free programs to LibreOffice (was: "More About Unicode in Python 2 and 3")

2014-01-06 Thread Chris Angelico
On Tue, Jan 7, 2014 at 2:53 AM, Grant Edwards wrote: > Yea, I think laying out a book with something like MS Word or > LibreOffice is nuts. Depending on her formatting needs, a > lighter-weight mark-up language (something like asciidoc) might suite: > > http://asciidoc.org/ > http://en.wikip

Re: [OT] Migrating from non-free programs to LibreOffice (was: "More About Unicode in Python 2 and 3")

2014-01-06 Thread Grant Edwards
On 2014-01-06, Chris Angelico wrote: >> Right. I think shifting people to LibreOffice is an excellent and >> realistic step toward imcreasing people's software and data freedom. > > Yeah. Which is why I do it. But the other night, my mum was trying to > lay out her book in LO, and was having some

Re: [OT] Migrating from non-free programs to LibreOffice (was: "More About Unicode in Python 2 and 3")

2014-01-05 Thread Chris Angelico
On Mon, Jan 6, 2014 at 10:30 AM, Ben Finney wrote: > Chris Angelico writes: > >> Maybe it's the better way, but like trying to get people to switch >> from MS Word onto an open system, it's far easier to push for Open >> Office than for LaTeX. > > If you're going to be pushing people to a free so

[OT] Migrating from non-free programs to LibreOffice (was: "More About Unicode in Python 2 and 3")

2014-01-05 Thread Ben Finney
Chris Angelico writes: > Maybe it's the better way, but like trying to get people to switch > from MS Word onto an open system, it's far easier to push for Open > Office than for LaTeX. If you're going to be pushing people to a free software system, OpenOffice is no longer the one to choose; its

Re: howto check programs and C libraries

2013-10-04 Thread Ravi Sahni
On Fri, Oct 4, 2013 at 3:00 PM, David Palao wrote: > Hello, > I'm in charge of preparing a computer room for the practices of > "introduction to programming". > One of the tasks is checking that from all the computers in the room > one can execute some programs and l

Re: howto check programs and C libraries

2013-10-04 Thread Dave Angel
On 4/10/2013 05:30, David Palao wrote: > Hello, > I'm in charge of preparing a computer room for the practices of > "introduction to programming". > One of the tasks is checking that from all the computers in the room > one can execute some programs and link (and com

Re: howto check programs and C libraries

2013-10-04 Thread Oscar Benjamin
On 4 October 2013 10:30, David Palao wrote: > Hello, > I'm in charge of preparing a computer room for the practices of > "introduction to programming". > One of the tasks is checking that from all the computers in the room > one can execute some programs and l

howto check programs and C libraries

2013-10-04 Thread David Palao
Hello, I'm in charge of preparing a computer room for the practices of "introduction to programming". One of the tasks is checking that from all the computers in the room one can execute some programs and link (and compile) against some libraries. My first idea was using Autotools

Re: building an online judge to evaluate Python programs

2013-09-23 Thread Larry Hudson
On 09/23/2013 06:20 AM, Ned Batchelder wrote: If you want to run untrusted Python code and prevent malice (or stupidity) from harming you, you need OS-level protection. --Ned. That reminds me of the quote from Albert Einstein, (paraphrased): "There are only two things that are infinite,

Re: building an online judge to evaluate Python programs

2013-09-23 Thread Modulok
> > > If you want to run untrusted Python code and prevent malice (or stupidity) > from harming you, you need OS-level protection. > > Agreed. Just for fun here's a simple example of what could be an honest mistake that consumes all physical memory and swap. A well behaved kernel will kill the proc

Re: building an online judge to evaluate Python programs

2013-09-23 Thread Ned Batchelder
On 9/23/13 8:33 AM, Fábio Santos wrote: On 20 Sep 2013 21:14, "Jabba Laci" > wrote: > > > That last seems to me to be the biggie. Several times in the past few > > years, people in this mailing list have tried to build a safe sandbox. > > And each one was a big fa

Re: building an online judge to evaluate Python programs

2013-09-23 Thread Fábio Santos
On 20 Sep 2013 21:14, "Jabba Laci" wrote: > > > That last seems to me to be the biggie. Several times in the past few > > years, people in this mailing list have tried to build a safe sandbox. > > And each one was a big failure, for a hacker of sufficient interest. > > Some of them were spectacul

Re: building an online judge to evaluate Python programs

2013-09-21 Thread Jabba Laci
s >> sandboxing could be done with this easily. > > > At edX, I wrote CodeJail (https://github.com/edx/codejail) to use AppArmor > to run Python securely. > > For grading Python programs, we use a unit-test like series of challenges. > The student writes problems as function

Re: building an online judge to evaluate Python programs

2013-09-21 Thread Ned Batchelder
just found Docker ( http://docs.docker.io/en/latest/faq/ ). It seems sandboxing could be done with this easily. At edX, I wrote CodeJail (https://github.com/edx/codejail) to use AppArmor to run Python securely. For grading Python programs, we use a unit-test like series of challenges. The student write

Re: building an online judge to evaluate Python programs

2013-09-21 Thread Modulok
wikipedia.org/wiki/Online_judge ). At the moment I have a > very simple web application that is similar to Project Euler: you > provide the ID of the exercise and the output of the program, and it > tells you if it's correct or not. However, it can only be used with > programs that produc

Re: building an online judge to evaluate Python programs

2013-09-20 Thread Dave Angel
ne_judge ). At the moment I have a > very simple web application that is similar to Project Euler: you > provide the ID of the exercise and the output of the program, and it > tells you if it's correct or not. However, it can only be used with > programs that produce an output

Re: building an online judge to evaluate Python programs

2013-09-20 Thread Ned Batchelder
On 9/20/13 6:26 PM, Jabba Laci wrote: I just found Docker ( http://docs.docker.io/en/latest/faq/ ). It seems sandboxing could be done with this easily. At edX, I wrote CodeJail (https://github.com/edx/codejail) to use AppArmor to run Python securely. For grading Python programs, we use a

Re: building an online judge to evaluate Python programs

2013-09-20 Thread Jabba Laci
I just found Docker ( http://docs.docker.io/en/latest/faq/ ). It seems sandboxing could be done with this easily. Laszlo On Fri, Sep 20, 2013 at 10:08 PM, John Gordon wrote: > In Jabba Laci > writes: > >> There are several questions: >> * What is someone sends an infinite loop? There should b

Re: building an online judge to evaluate Python programs

2013-09-20 Thread Terry Reedy
On 9/20/2013 4:04 PM, Jabba Laci wrote: That last seems to me to be the biggie. Several times in the past few years, people in this mailing list have tried to build a safe sandbox. And each one was a big failure, for a hacker of sufficient interest. Some of them were spectacular failures. If yo

Re: building an online judge to evaluate Python programs

2013-09-20 Thread John Gordon
In Jabba Laci writes: > There are several questions: > * What is someone sends an infinite loop? There should be a time limit. You could run the judge as a background process, and kill it after ten seconds if it hasn't finished. > * What is someone sends a malicious code? The script should be

Re: building an online judge to evaluate Python programs

2013-09-20 Thread Jabba Laci
> That last seems to me to be the biggie. Several times in the past few > years, people in this mailing list have tried to build a safe sandbox. > And each one was a big failure, for a hacker of sufficient interest. > Some of them were spectacular failures. > > If you have to be safe from your use

Re: building an online judge to evaluate Python programs

2013-09-20 Thread John Gordon
In Jabba Laci writes: > Let's take this simple exercise: > "Write a function that receives a list and decides whether the list is > sorted or not." > Here the output of the function is either True or False, so I cannot > test it with my current method. Make a master input file and a master o

Re: building an online judge to evaluate Python programs

2013-09-20 Thread Jabba Laci
rote: >>However, it can only be used with programs that produce an output > > Just interested, what else are you thinking of checking? > -- > https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list

  1   2   3   4   5   6   7   8   >