Re: A photo/image/video sharing app in Python

2015-09-21 Thread Chris Angelico
On Tue, Sep 22, 2015 at 3:53 PM, Cai Gengyang wrote: > A piece of software that would let end users easily create gorgeous > real-life, real-time cartoons on the web might not exist yet. But if it were > possible to invent this and get it commercialised , it could indeed become a > great produc

Re: A photo/image/video sharing app in Python

2015-09-21 Thread Cai Gengyang
On Tuesday, September 22, 2015 at 4:34:45 AM UTC+8, Christian Gollwitzer wrote: > Am 21.09.15 um 17:16 schrieb Cai Gengyang: > > 2) A system where where the users can then edit these > > photos/images/videos into short , funny cartoons/videos > > > > This one's a bit open-ended, but more importantl

Re: Sqlite pragma statement "locking_mode" set to "EXCLUSIVE" by default

2015-09-21 Thread Ryan Stuart
On Thu, Sep 17, 2015 at 2:24 PM, sol433tt wrote: > I would like to have the Sqlite pragma statement "locking_mode" set to > "EXCLUSIVE" by default (RO database). Does this need to be compiled in? How > might this be achieved? > You can issue any PRAGA statement you like using the execute method

Re: problem building python 3.5 extensions for windows

2015-09-21 Thread cjgohlke
On Monday, September 21, 2015 at 9:54:51 AM UTC-7, Robin Becker wrote: > . > > > > This also sounds like the C++ stuff just wasn't installed. I'm afraid > > reinstallation is probably your best bet. > > > I used the default installation, but it failed first time around (perhaps a > networ

Re: Sqlite pragma statement "locking_mode" set to "EXCLUSIVE" by default

2015-09-21 Thread Sol T
Is anyone aware of documentation that describes how to compile various sqlite options? On Thu, Sep 17, 2015 at 2:24 PM, sol433tt wrote: > hello > > I would like to have the Sqlite pragma statement "locking_mode" set to > "EXCLUSIVE" by default (RO database). Does this need to be compiled in? H

Re: Problem configuring apache to run python cgi on Ubuntu 14.04

2015-09-21 Thread Chris Angelico
On Tue, Sep 22, 2015 at 7:36 AM, wrote: > Thank you very much. Can I write .py pages like in PHP or should I > use a framework like Django, Web2py or TurboGears? I recommend using WSGI and a framework that uses it (my personal preference is Flask, but the above will also work). Here are a couple

Re: Lightwight socket IO wrapper

2015-09-21 Thread Cameron Simpson
On 21Sep2015 18:07, Chris Angelico wrote: On Mon, Sep 21, 2015 at 5:59 PM, Marko Rauhamaa wrote: Chris Angelico : On Mon, Sep 21, 2015 at 4:27 PM, Cameron Simpson wrote: For sizes below 128, one byte of length. For sizes 128-16383, two bytes. And so on. Compact yet unbounded. [...] It's

Re: Problem configuring apache to run python cgi on Ubuntu 14.04

2015-09-21 Thread tropical . dude . net
On Monday, September 21, 2015 at 10:29:48 PM UTC+2, alister wrote: > On Mon, 21 Sep 2015 12:51:09 -0700, tropical.dude.net wrote: > > > On Monday, September 21, 2015 at 9:47:33 PM UTC+2, tropical...@gmail.com > > wrote: > >> On Monday, September 21, 2015 at 9:41:29 PM UTC+2, John Gordon wrote: > >

Re: A photo/image/video sharing app in Python

2015-09-21 Thread Grant Edwards
On 2015-09-21, Cai Gengyang wrote: > I'll also need the capability to let users edit their photos/images > and videos into great looking real-time cartoons based on themes > (what technologies would I need to learn to create this?) Well, the usual technology for turning some images into greal lo

Re: A photo/image/video sharing app in Python

2015-09-21 Thread Christian Gollwitzer
Am 21.09.15 um 17:16 schrieb Cai Gengyang: 2) A system where where the users can then edit these photos/images/videos into short , funny cartoons/videos This one's a bit open-ended, but more importantly, it needs a lot of front-end work. Editing images in Python code won't be particularly hard;

Re: Problem configuring apache to run python cgi on Ubuntu 14.04

2015-09-21 Thread alister
On Mon, 21 Sep 2015 12:51:09 -0700, tropical.dude.net wrote: > On Monday, September 21, 2015 at 9:47:33 PM UTC+2, tropical...@gmail.com > wrote: >> On Monday, September 21, 2015 at 9:41:29 PM UTC+2, John Gordon wrote: >> > In <44e870a7-9567-40ba-8a65-d6b52a8c5...@googlegroups.com> >> > tropical.du

Re: Problem configuring apache to run python cgi on Ubuntu 14.04

2015-09-21 Thread tropical . dude . net
On Monday, September 21, 2015 at 9:47:33 PM UTC+2, tropical...@gmail.com wrote: > On Monday, September 21, 2015 at 9:41:29 PM UTC+2, John Gordon wrote: > > In <44e870a7-9567-40ba-8a65-d6b52a8c5...@googlegroups.com> > > tropical.dude@gmail.com writes: > > > > > print("Content-Type: text/html;c

Re: Problem configuring apache to run python cgi on Ubuntu 14.04

2015-09-21 Thread tropical . dude . net
On Monday, September 21, 2015 at 9:41:29 PM UTC+2, John Gordon wrote: > In <44e870a7-9567-40ba-8a65-d6b52a8c5...@googlegroups.com> > tropical.dude@gmail.com writes: > > > print("Content-Type: text/html;charset=utf-8") > > print("Hello World!") > > As I recall, you must have a blank line betw

Re: Problem configuring apache to run python cgi on Ubuntu 14.04

2015-09-21 Thread tropical . dude . net
On Monday, September 21, 2015 at 9:30:11 PM UTC+2, Albert Visser wrote: > On Mon, 21 Sep 2015 20:41:13 +0200, wrote: > > > Hello everybody, > > > (...) > > > > I created index.py: > > #!/usr/bin/env python > > # -*- coding: UTF-8 -*-# enable debugging > > import cgitb > > > > cgitb.enable() > > p

Re: Problem configuring apache to run python cgi on Ubuntu 14.04

2015-09-21 Thread John Gordon
In <44e870a7-9567-40ba-8a65-d6b52a8c5...@googlegroups.com> tropical.dude@gmail.com writes: > print("Content-Type: text/html;charset=utf-8") > print("Hello World!") As I recall, you must have a blank line between the headers and the content. But that may or may not be your problem, as you ha

Re: Problem configuring apache to run python cgi on Ubuntu 14.04

2015-09-21 Thread tropical . dude . net
On Monday, September 21, 2015 at 9:20:22 PM UTC+2, sohca...@gmail.com wrote: > On Monday, September 21, 2015 at 11:41:54 AM UTC-7, tropical...@gmail.com > wrote: > > Hello everybody, > > > > I installed the LAMP stack on in Ubuntu, but I am having > > problems configuring Apache to run python CGI

Re: Problem configuring apache to run python cgi on Ubuntu 14.04

2015-09-21 Thread Albert Visser
On Mon, 21 Sep 2015 20:41:13 +0200, wrote: Hello everybody, (...) I created index.py: #!/usr/bin/env python # -*- coding: UTF-8 -*-# enable debugging import cgitb cgitb.enable() print("Content-Type: text/html;charset=utf-8") print("Hello World!") But it is still not working. Can anybody

Re: Problem configuring apache to run python cgi on Ubuntu 14.04

2015-09-21 Thread sohcahtoa82
On Monday, September 21, 2015 at 11:41:54 AM UTC-7, tropical...@gmail.com wrote: > Hello everybody, > > I installed the LAMP stack on in Ubuntu, but I am having > problems configuring Apache to run python CGI scripts. > > I ran: > sudo a2enmod cgi > > I added to apache2.conf > > Options

Problem configuring apache to run python cgi on Ubuntu 14.04

2015-09-21 Thread tropical . dude . net
Hello everybody, I installed the LAMP stack on in Ubuntu, but I am having problems configuring Apache to run python CGI scripts. I ran: sudo a2enmod cgi I added to apache2.conf Options +ExecCGI AddHandler cgi-script .py I created index.py: #!/usr/bin/env python # -*- coding: U

Re: problem building python 3.5 extensions for windows

2015-09-21 Thread Robin Becker
. This also sounds like the C++ stuff just wasn't installed. I'm afraid reinstallation is probably your best bet. I used the default installation, but it failed first time around (perhaps a network thing) and I stupidly assumed 'repair' would work. After a full reinstallation at lea

Re: Getting PyCharm to import sklearn

2015-09-21 Thread edanmizrahi
On Monday, September 21, 2015 at 9:12:43 AM UTC-7, edanm...@gmail.com wrote: > On Monday, September 21, 2015 at 9:00:16 AM UTC-7, Joel Goldstick wrote: > > On Mon, Sep 21, 2015 at 11:27 AM, wrote: > > Beginner here. > > > > > > > > I'm trying to use sklearn in pycharm. When importing sklearn I

Re: Getting PyCharm to import sklearn

2015-09-21 Thread edanmizrahi
On Monday, September 21, 2015 at 9:00:16 AM UTC-7, Joel Goldstick wrote: > On Mon, Sep 21, 2015 at 11:27 AM, wrote: > Beginner here. > > > > I'm trying to use sklearn in pycharm. When importing sklearn I get an error > that reads "Import error: No module named sklearn" The project interpreter

Re: Getting PyCharm to import sklearn

2015-09-21 Thread Joel Goldstick
On Mon, Sep 21, 2015 at 11:27 AM, wrote: > Beginner here. > > I'm trying to use sklearn in pycharm. When importing sklearn I get an > error that reads "Import error: No module named sklearn" The project > interpreter in pycharm is set to 2.7.10 (/anaconda/bin/python.app), which > should be the ri

Getting PyCharm to import sklearn

2015-09-21 Thread edanmizrahi
Beginner here. I'm trying to use sklearn in pycharm. When importing sklearn I get an error that reads "Import error: No module named sklearn" The project interpreter in pycharm is set to 2.7.10 (/anaconda/bin/python.app), which should be the right one. Under default preferenes, project interpre

Looking for a Database Developer with 2-3 years Python experience

2015-09-21 Thread liannebloemen
Looking for Database Developer - London (up to £30k) The Database Developer requires a wide set of database development and data integration skills, along with demonstrated excellence in problem solving and communication. Experience with Python is highly essential, as we will be developing a be

Re: A photo/image/video sharing app in Python

2015-09-21 Thread Cai Gengyang
Hi ChrisA, 1) A system where users can upload photos/images/videos of their loved ones and family onto the web-based app (It's going to be web-based website) Creating a web site using Python is pretty easy. Grab Flask, Django, etc, and off you go.Uploading files isn't difficult, although since

Re: Hello

2015-09-21 Thread Zachary Ware
On Thu, Sep 17, 2015 at 10:10 AM, moon khondkar wrote: > Hello I have problem with python installation.I downloaded python 3.5 but I > cannot use it on my computer.I can not open the idle. I get something like > saying "users\local settings\Application > data\programs\python\python35-32\pythonw

Re: problem building python 3.5 extensions for windows

2015-09-21 Thread Zachary Ware
On Mon, Sep 21, 2015 at 7:55 AM, Robin Becker wrote: > I have installed VS2015; this is the full version and was a great deal of > trouble to install. First time out it started whining and I had to 'repair' > it. > > Anyhow after the 'repair' it said all was OK and no complaints. > > However, when

Re: problem building python 3.5 extensions for windows

2015-09-21 Thread Phil Thompson
On 21 Sep 2015, at 3:00 pm, Robin Becker wrote: > > >> >> The most reported problem trying to build anything on Windows that is Python >> related. >> > . >> >> I'd be inclined to go for the reinstall, painful as that might be. I've >> tried >> finding the batch file as a sep

Re: problem building python 3.5 extensions for windows

2015-09-21 Thread Mark Lawrence
On 21/09/2015 15:00, Robin Becker wrote: The most reported problem trying to build anything on Windows that is Python related. . I'd be inclined to go for the reinstall, painful as that might be. I've tried finding the batch file as a separate download but there's just too

Re: problem building python 3.5 extensions for windows

2015-09-21 Thread Robin Becker
The most reported problem trying to build anything on Windows that is Python related. . I'd be inclined to go for the reinstall, painful as that might be. I've tried finding the batch file as a separate download but there's just too many hits about "download Visual Studio".

Re: Postscript to pdf

2015-09-21 Thread Christian Gollwitzer
Am 20.09.15 um 20:27 schrieb Baladjy KICHENASSAMY: Hello, I'm using macosx, ps2pdf version i don't know :/ sorry ok actually i found what is the problem... There is no problem with the ps file every thing is fine =) You could try ps2pdf -dEPSCrop input.ps output.pdf that should create

Re: problem building python 3.5 extensions for windows

2015-09-21 Thread Chris Angelico
On Mon, Sep 21, 2015 at 11:27 PM, Mark Lawrence wrote: >> There is a folder "C:\Program Files (x86)\Microsoft Visual Studio >> 14.0\VC", but it doesn't contain any batch scripts. Document >> https://msdn.microsoft.com/en-us/library/x4d2c09s.aspx claims to be >> about VS2015, but has as example >>

Re: problem building python 3.5 extensions for windows

2015-09-21 Thread Mark Lawrence
On 21/09/2015 13:55, Robin Becker wrote: I have installed VS2015; this is the full version and was a great deal of trouble to install. First time out it started whining and I had to 'repair' it. Anyhow after the 'repair' it said all was OK and no complaints. However, when I try to use it I don'

Re: A photo/image/video sharing app in Python

2015-09-21 Thread Chris Angelico
On Mon, Sep 21, 2015 at 10:53 PM, Cai Gengyang wrote: > Ok, so basically these are the features I want the app to have : > > 1) A system where users can upload photos/images/videos of their loved ones > and family onto the web-based app (It's going to be web-based website) > 2) A system where whe

Re: Postscript to pdf

2015-09-21 Thread Nobody
On Sun, 20 Sep 2015 23:11:20 +0200, Baladjy KICHENASSAMY wrote: > i tried this > > def save(): > Canevas.update() > Canevas.postscript(file=tkFileDialog.asksaveasfilename(), > colormode='color') > subprocess.call(["ps2pdf", "-dEPSCrop", "test.ps", "test.pdf"]) > > > i got the ps

problem building python 3.5 extensions for windows

2015-09-21 Thread Robin Becker
I have installed VS2015; this is the full version and was a great deal of trouble to install. First time out it started whining and I had to 'repair' it. Anyhow after the 'repair' it said all was OK and no complaints. However, when I try to use it I don't see options for starting C++ projects,

Re: A photo/image/video sharing app in Python

2015-09-21 Thread Cai Gengyang
On Monday, September 21, 2015 at 7:38:21 PM UTC+8, Great Avenger Singh wrote: > On Monday, 21 September 2015 15:08:53 UTC+5:30, Cai Gengyang wrote: > > Hello, > > > > > > So, I want to use Python to design a photo/image/video sharing app that i > > can >test on users. > > One Example is DropBo

Re: Lightwight socket IO wrapper

2015-09-21 Thread MRAB
On 2015-09-21 09:47, Marko Rauhamaa wrote: Michael Ströder : Marko Rauhamaa wrote: Michael Ströder : Marko Rauhamaa wrote: I recommend using socket.TCP_CORK with socket.TCP_NODELAY where they are available (Linux). If these options are not available are both option constants also not avai

Re: True == 1 weirdness

2015-09-21 Thread jmp
On 09/16/2015 02:53 PM, Jussi Piitulainen wrote: But now I expect to see a long thread about whether chained comparisons are a natural thing to have in the language. Nice forecast by the way. JM -- https://mail.python.org/mailman/listinfo/python-list

Re: A photo/image/video sharing app in Python

2015-09-21 Thread Great Avenger Singh
On Monday, 21 September 2015 15:08:53 UTC+5:30, Cai Gengyang wrote: > Hello, > > > So, I want to use Python to design a photo/image/video sharing app that i can > >test on users. One Example is DropBox doing this at very large extent. ;) > I have Python 2.7.10, 3.3.2 and 3.3.4 downloaded a

Re: Problem installing pip

2015-09-21 Thread Mark Lawrence
On 18/09/2015 06:54, Stephan wrote: Good Morning, I’ve tried ten times to install pip with no success in windows 10 using python 64bit version. Is there a solution available? I’m looking forward hearing you soon. The obvious solution is to get a version of Python like 3.4.3 or 3.5.0 which

Re: Lightwight socket IO wrapper

2015-09-21 Thread Jorgen Grahn
On Mon, 2015-09-21, Dennis Lee Bieber wrote: > On Sun, 20 Sep 2015 23:36:30 +0100, "James Harris" > declaimed the following: ... >>I thought UDP would deliver (or drop) a whole datagram but cannot find >>anything in the Python documentaiton to guarantee that. In fact >>documentation for the sen

Problem installing pip

2015-09-21 Thread Stephan
Good Morning, I've tried ten times to install pip with no success in windows 10 using python 64bit version. Is there a solution available? I'm looking forward hearing you soon. -- https://mail.python.org/mailman/listinfo/python-list

A photo/image/video sharing app in Python

2015-09-21 Thread Cai Gengyang
Hello, So, I want to use Python to design a photo/image/video sharing app that i can test on users. I have Python 2.7.10, 3.3.2 and 3.3.4 downloaded and am using a Mac OS X Yosemite Version 10.10.2 laptop and having gone through the Python course on CodeAcademy a while ago (though I probably

Re: Lightwight socket IO wrapper

2015-09-21 Thread Chris Angelico
On Mon, Sep 21, 2015 at 6:38 PM, Marko Rauhamaa wrote: > Chris Angelico : > >> On Mon, Sep 21, 2015 at 5:59 PM, Marko Rauhamaa wrote: >>> You can read a full buffer even if you have a variable-length length >>> encoding. >> >> Not sure what you mean there. Unless you can absolutely guarantee that

Re: Lightwight socket IO wrapper

2015-09-21 Thread Marko Rauhamaa
Chris Angelico : > On Mon, Sep 21, 2015 at 6:38 PM, Marko Rauhamaa wrote: >> Only one reader can read a socket safely at any given time so mutual >> exclusion is needed. >> >> If you read "too much," the excess can be put in the application's read >> buffer where it is available for whoever wants

Re: Lightwight socket IO wrapper

2015-09-21 Thread Marko Rauhamaa
Michael Ströder : > Marko Rauhamaa wrote: >> Michael Ströder : >> >>> Marko Rauhamaa wrote: I recommend using socket.TCP_CORK with socket.TCP_NODELAY where they are available (Linux). >>> >>> If these options are not available are both option constants also not >>> available? Or does th

Re: Lightwight socket IO wrapper

2015-09-21 Thread Marko Rauhamaa
Marko Rauhamaa : > Chris Angelico : > >> On Mon, Sep 21, 2015 at 6:38 PM, Marko Rauhamaa wrote: >>> Only one reader can read a socket safely at any given time so mutual >>> exclusion is needed. >>> >>> If you read "too much," the excess can be put in the application's read >>> buffer where it is

Re: Lightwight socket IO wrapper

2015-09-21 Thread Chris Angelico
On Mon, Sep 21, 2015 at 6:38 PM, Marko Rauhamaa wrote: > Chris Angelico : > >> On Mon, Sep 21, 2015 at 5:59 PM, Marko Rauhamaa wrote: >>> You can read a full buffer even if you have a variable-length length >>> encoding. >> >> Not sure what you mean there. Unless you can absolutely guarantee that

Re: Lightwight socket IO wrapper

2015-09-21 Thread Marko Rauhamaa
Chris Angelico : > On Mon, Sep 21, 2015 at 5:59 PM, Marko Rauhamaa wrote: >> You can read a full buffer even if you have a variable-length length >> encoding. > > Not sure what you mean there. Unless you can absolutely guarantee that > you didn't read too much, or can absolutely guarantee that yo

Re: Lightwight socket IO wrapper

2015-09-21 Thread Michael Ströder
Marko Rauhamaa wrote: > Michael Ströder : > >> Marko Rauhamaa wrote: >>> I recommend using socket.TCP_CORK with socket.TCP_NODELAY where they >>> are available (Linux). >> >> If these options are not available are both option constants also not >> available? Or does the implementation have to look

Re: Lightwight socket IO wrapper

2015-09-21 Thread Chris Angelico
On Mon, Sep 21, 2015 at 5:59 PM, Marko Rauhamaa wrote: > Chris Angelico : > >> On Mon, Sep 21, 2015 at 4:27 PM, Cameron Simpson wrote: >>> For sizes below 128, one byte of length. For sizes 128-16383, two bytes. And >>> so on. Compact yet unbounded. >> >> [...] >> >> It's generally a lot faster t

Re: Lightwight socket IO wrapper

2015-09-21 Thread Marko Rauhamaa
Michael Ströder : > Marko Rauhamaa wrote: >> I recommend using socket.TCP_CORK with socket.TCP_NODELAY where they >> are available (Linux). > > If these options are not available are both option constants also not > available? Or does the implementation have to look into sys.platform? >>> impo

Re: Lightwight socket IO wrapper

2015-09-21 Thread Marko Rauhamaa
Chris Angelico : > On Mon, Sep 21, 2015 at 4:27 PM, Cameron Simpson wrote: >> For sizes below 128, one byte of length. For sizes 128-16383, two bytes. And >> so on. Compact yet unbounded. > > [...] > > It's generally a lot faster to do a read(2) than a loop with any > number of read(1), and you g

Re: Lightwight socket IO wrapper

2015-09-21 Thread Chris Angelico
On Mon, Sep 21, 2015 at 4:27 PM, Cameron Simpson wrote: > I don't like embedding arbitrary size limits in protocols or data formats if > I can easily avoid it. So (for my home grown binary protocols) I encode > unsigned integers as big endian octets with the top bit meaning "another > octet follow

Re: Postscript to pdf

2015-09-21 Thread Baladjy KICHENASSAMY
well one more question :/ i tried this def save(): Canevas.update() Canevas.postscript(file=tkFileDialog.asksaveasfilename(), colormode='color') subprocess.call(["ps2pdf", "-dEPSCrop", "test.ps", "test.pdf"]) i got the ps file but i didn't get the pdf file :/ 2015-09-20 21:52 GM

Re: Lightwight socket IO wrapper

2015-09-21 Thread Michael Ströder
Marko Rauhamaa wrote: > I recommend using socket.TCP_CORK with socket.TCP_NODELAY where they are > available (Linux). If these options are not available are both option constants also not available? Or does the implementation have to look into sys.platform? Ciao, Michael. -- https://mail.python

Re: Lightwight socket IO wrapper

2015-09-21 Thread Marko Rauhamaa
Chris Angelico : > On Mon, Sep 21, 2015 at 2:39 PM, Marko Rauhamaa wrote: >> Chris Angelico : >> >>> If you write a packet of data, then write another one, and another, >>> and another, and another, without waiting for responses, Nagling >>> should combine them automatically. [...] >> >> Unfortun

Re: Dummy Decoder Example (was Re: Parallel decoding lesson for you.)

2015-09-21 Thread Skybuck Flying
Just to be clear on this, the code you have to write doesn't need to be truely parallel. It must be parallel in potential, so it should be able to execute independenlty from each other and out of order. Bye, Skybuck. -- https://mail.python.org/mailman/listinfo/python-list