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: python corrupted double-linked list error

2017-01-19 Thread Michael Torrie
On 01/19/2017 05:53 PM, Xristos Xristoou wrote: > > > how to understand that ?solution ? Well the problem is likely in the gdal or/and qgis modules. You'll probably want to talk to the qgis folks about this problem. It's not a bug in Python itself. If you can reproduce the problem with a minim

Re: python corrupted double-linked list error

2017-01-19 Thread Xristos Xristoou
how to understand that ?solution ? -- https://mail.python.org/mailman/listinfo/python-list

Re: python corrupted double-linked list error

2017-01-19 Thread MRAB
On 2017-01-20 00:03, Xristos Xristoou wrote: i am a python 2.7 and ubuntu 16.04 user and i have unexpected error when try to excute some python scripts . i use pycharm and i have the some error when i try to run python script from the ubuntu terminal. the error : *** Error in `/usr/bin/python2

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 ha

python corrupted double-linked list error

2017-01-19 Thread Xristos Xristoou
i am a python 2.7 and ubuntu 16.04 user and i have unexpected error when try to excute some python scripts . i use pycharm and i have the some error when i try to run python script from the ubuntu terminal. the error : *** Error in `/usr/bin/python2.7': corrupted double-linked list: 0x0b83c880 *

Re: ipython2 does not work anymore

2017-01-19 Thread Steve D'Aprano
On Fri, 20 Jan 2017 02:06 am, Cecil Westerhof wrote: > I did not work with ipython2 for a long time. Most of my work is done > with python3. I just tried to start ipython2 and got: > Traceback (most recent call last): [...] > ImportError: No module named path > > > What could be the problem here

Re: Odd message while building Python from tip

2017-01-19 Thread Chris Angelico
On Fri, Jan 20, 2017 at 10:09 AM, INADA Naoki wrote: > Hi, Chris. > > They are "builtin" module. > python executable contains the modules already. > > But I don't know it's safe to remove them from setup.py. > There are so many platforms and special build of Python. I haven't changed the code in

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. >>> >>> I have the following imports: >>

Re: Odd message while building Python from tip

2017-01-19 Thread INADA Naoki
Hi, Chris. They are "builtin" module. python executable contains the modules already. But I don't know it's safe to remove them from setup.py. There are so many platforms and special build of Python. $ ./python Python 3.7.0a0 (default:9f7d16266928, Jan 18 2017, 23:59:22) [GCC 6.2.0 20161005] on

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_call, Popen, STDOUT >> from time

Re: ipython2 does not work anymore

2017-01-19 Thread Cecil Westerhof
On Thursday 19 Jan 2017 21:08 CET, MRAB wrote: > On 2017-01-19 15:06, Cecil Westerhof wrote: >> I did not work with ipython2 for a long time. Most of my work is >> done with python3. I just tried to start ipython2 and got: >> Traceback (most recent call last): File "/usr/bin/ipython2", line >> 7,

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 things, or could I do it in a better way? > >

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: ipython2 does not work anymore

2017-01-19 Thread MRAB
On 2017-01-19 15:06, Cecil Westerhof wrote: I did not work with ipython2 for a long time. Most of my work is done with python3. I just tried to start ipython2 and got: Traceback (most recent call last): File "/usr/bin/ipython2", line 7, in from IPython import start_ipython File "/usr/lib

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 built-in facilities for startin

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'.split()))

Odd message while building Python from tip

2017-01-19 Thread Chris Angelico
I don't think I've ever seen this message before. This is just after 'hg pull -u' to get to the latest CPython (my previous build was about a month ago). 'make' succeeded, but concluded with this message: running build_ext The following modules found by detect_modules() in setup.py, have been buil

ipython2 does not work anymore

2017-01-19 Thread Cecil Westerhof
I did not work with ipython2 for a long time. Most of my work is done with python3. I just tried to start ipython2 and got: Traceback (most recent call last): File "/usr/bin/ipython2", line 7, in from IPython import start_ipython File "/usr/lib/python2.7/site-packages/IPython/__init__.py",

Re: Python for WEB-page !?

2017-01-19 Thread Johann Spies
It might be worth while to look at web2py (http://web2py.com). Here is a good tutorial: http://killer-web-development.com/ Regards Johann -- Because experiencing your loyal love is better than life itself, my lips will praise you. (Psalm 63:3) -- https://mail.python.org/mailman/listinfo/pytho

Is "two different input map to one unique target called nonlinear case " or "one unique input map to two different target called nonlinear case"? Which learning method can train these two cases or no

2017-01-19 Thread Ho Yeung Lee
Is "two different input map to one unique target called nonlinear case " or "one unique input map to two different target called nonlinear case"? Which learning method can train these two cases or no method to train one of case? -- https://mail.python.org/mailman/listinfo/python-list

Must target be only one bit one such as 0001,0010,0100,1000 In supervised neural learning f(w*p+b) with perceptron rule w = w + e for linear case?

2017-01-19 Thread Ho Yeung Lee
Must target be only one bit one such as 0001,0010,0100,1000 In supervised neural learning f(w*p+b) with perceptron rule w = w + e for linear case? with neural network design does it means that can not use two or more one as target such as 0011,0110,1100,1010, 0111,1110,1101, etc when training w