Re: [Twisted-Python] [RELEASE] Nevow 0.11.1

2014-06-24 Thread Orestis Markou
Hello, Great news! Are there any docs online? Thanks, Orestis 24 Ιουν 2014, 1:55, ο/η Glyph Lefkowitz έγραψε: > >> On Jun 23, 2014, at 12:43 PM, Brian Warner wrote: >> >> I just closed our ticket[1].. "pip install allmydata-tahoe" now works! >> Thank you! > > WOOHOO! I didn't realize t

[Twisted-Python] [twisted-web] I/O error with twisted.web.wsgi and Django

2014-02-27 Thread Orestis Markou
Hi all, I am using Twisted Web WSGIResource to host a Django site. Here's the code I use to setup the WSGI resource (other boilerplate skipped) def wsgi_resource(): from django.core.handlers.wsgi import WSGIHandler pool = threadpool.ThreadPool() pool.start() # Allow Ctrl-C to g

[Twisted-Python] Deadlocks when launching processes - how to investigate?

2014-02-14 Thread Orestis Markou
Hello, I just filed https://twistedmatrix.com/trac/ticket/6972 The issue I'm facing is a deadlocked Python on OS X when a lot of processes are spawned. In the repro script we do this very aggressively to trigger the deadlock quickly, but the actual program that does this "ticks" every minute.

Re: [Twisted-Python] Twisted Users on Windows XP

2013-10-30 Thread Orestis Markou
On 30 Οκτ 2013, at 12:34 π.μ., Glyph wrote: > > On Oct 28, 2013, at 8:45 AM, Kevin Horn wrote: > >> It's also worth noting that there are a fair number of people (at least I >> know some) who use their old XP licenses for testing Windows software in >> VMs, especially if they're usually wor

Re: [Twisted-Python] Twisted as a full solution for web hosting [WSGI + other]

2013-10-23 Thread Orestis Markou
On 23 Οκτ 2013, at 11:21 π.μ., Glyph wrote: > On Oct 22, 2013, at 12:41 AM, Orestis Markou wrote: > >> Any pointers on how to best use this in combination with WSGI/Django? In the >> past I had a combination of twisted-web (for /static and /media) and wsgi >> host (f

Re: [Twisted-Python] Twisted as a full solution for web hosting [WSGI + other]

2013-10-22 Thread Orestis Markou
On 22 Οκτ 2013, at 3:38 μ.μ., exar...@twistedmatrix.com wrote: > On 07:41 am, ores...@orestis.gr wrote: >> On 21 Οκτ 2013, at 10:32 μ.μ., Glyph wrote: >>> >>> On Oct 20, 2013, at 2:21 AM, Orestis Markou wrote: >>>> Hello, >>>> >>&

Re: [Twisted-Python] Twisted as a full solution for web hosting [WSGI + other]

2013-10-22 Thread Orestis Markou
On 21 Οκτ 2013, at 10:32 μ.μ., Glyph wrote: > > On Oct 20, 2013, at 2:21 AM, Orestis Markou wrote: > >> Hello, >> >> Short form of the question: >> >> Are people using Twisted to host WSGI applications AND serve static files >> AND replace cele

[Twisted-Python] Twisted as a full solution for web hosting [WSGI + other]

2013-10-20 Thread Orestis Markou
Hello, Short form of the question: Are people using Twisted to host WSGI applications AND serve static files AND replace celery/redis/other? Are there any inherent drawbacks in using Twisted for this use case? Long form of the question: These days to get a reasonably feature-full python web s

Re: [Twisted-Python] Twisted as a House for Sale

2013-08-24 Thread Orestis Markou
I gave a 4-hour training on Twisted a couple of years ago, and tried to capture the essence of it in a written tutorial (as opposed to slides). I haven't touched those notes for ages now, but you can see the result here: https://github.com/orestis/twisted-tutorial Hopefully it will find some u

Re: [Twisted-Python] Replacement for Twisted Tutorial in Europython 2012

2012-06-09 Thread Orestis Markou
Nice. I'll send you the listings as well later tonight. 9 Ιουν 2012, 17:11, ο/η "Thorne, Stephen" έγραψε: > Yep, worked fine, thanks! > > On Sat, Jun 9, 2012 at 4:36 PM, Orestis Markou wrote: >> http://db.tt/Kosw5BxX >> >> Let me know

Re: [Twisted-Python] Replacement for Twisted Tutorial in Europython 2012

2012-06-09 Thread Orestis Markou
http://db.tt/Kosw5BxX Let me know if this works-got the link from an iPhone. 9 Ιουν 2012, 15:52, ο/η "Thorne, Stephen" έγραψε: > Can I get you to send me the original format of this document? I can > open anything. > > On Thu, May 10, 2012 at 12:02 PM, Orestis Markou

Re: [Twisted-Python] Replacement for Twisted Tutorial in Europython 2012

2012-05-10 Thread Orestis Markou
lunteers? Training is very draining and having more than > one person in the room really helps. > > On Thu, May 10, 2012 at 11:02 AM, Orestis Markou wrote: > Hello everyone, > > My proposal for delivering a 4h Twisted training in EuroPython 2012 > (Florence, July 2-8) has been

[Twisted-Python] Replacement for Twisted Tutorial in Europython 2012

2012-05-10 Thread Orestis Markou
Hello everyone, My proposal for delivering a 4h Twisted training in EuroPython 2012 (Florence, July 2-8) has been voted in the community and is set to be delivered on July 5. https://ep2012.europython.eu/conference/talks/twisted-tutorial This turned out to be very popular last year, and had to

Re: [Twisted-Python] Open Position

2012-03-27 Thread Orestis Markou
On 27 Μαρ 2012, at 2:41 μ.μ., Itamar Turner-Trauring wrote: > On 03/27/2012 09:40 AM, Orestis Markou wrote: >> Um, is there a way to kill this annoying spam? >> > Like I said, I'm working on it. Thanks, and sorry, I m

Re: [Twisted-Python] questions about twisted usage

2012-03-22 Thread Orestis Markou
On 22 Μαρ 2012, at 12:34 μ.μ., Uri Okrent wrote: > On Thu, Mar 22, 2012 at 2:17 PM, Itamar Turner-Trauring > wrote: >> On 03/22/2012 08:05 AM, Uri Okrent wrote: >>> This implies that twisted can (and will) switch contexts from one >>> deferred to another even in the middle of execution of the fi

Re: [Twisted-Python] Moving Twisted off Trac and SVN to somewhere nicer

2011-07-05 Thread Orestis Markou
On 5 Jul 2011, at 10:31, Wolfgang wrote: > If you ever want someone contributing under Windows, github with git is not a > good solution. For Windows there are good clients for mercurial and bazzar. > Git is more a Unix only solution. I have no vote on the whole moving off SVN, but as a former win

Re: [Twisted-Python] How to safely stop a chain of deferreds

2011-06-28 Thread Orestis Markou
On 28 Jun 2011, at 20:37, exar...@twistedmatrix.com wrote: > On 01:30 pm, t...@ubilix.com wrote: >> Hi, >> >> in a GUI application I'm using quite a comprehensive chain of deferreds >> and I'm running the mainloop from the glib2reactor. At a certain point >> of my application I need to terminate

[Twisted-Python] New Twisted Tutorial

2011-06-25 Thread Orestis Markou
Hello, I've started porting my training slides into a written tutorial, making changes along the way based on the audience reactions. You can find it here: https://github.com/orestis/twisted-tutorial It's missing a couple of chapters like errbacks or examples on how to use threads for CPU-inte

Re: [Twisted-Python] Question about "starving" the reactor

2011-06-20 Thread Orestis Markou
>> reactor.callLater(0, d.callback, arg) > > That can help in some cases. Specifically if you're receiving datagrams, > you might want to service the read() loop as much as possible before > packets start to get dropped. But if d.callback is going to do a lot of > work, it doesn't solve the pro

[Twisted-Python] Question about "starving" the reactor

2011-06-20 Thread Orestis Markou
Hello, I have a question about the "best practices" on making callbacks and making sure you don't hog the reactor. So you pass a deferred to a client, who attaches a chain of callbacks that might probably do some CPU intensive stuff. How should one guard for that? The obvious solution to me fo

Re: [Twisted-Python] Twisted training slides

2011-06-20 Thread Orestis Markou
blog or they are bound with > the specific training session? > Cheers! > > On 06/19/2011 04:41 PM, Orestis Markou wrote: >> Many thanks to everyone for the feedback. I will continue to work in this as >> much as possible. >> >> This is a 4 hour training, so we s

Re: [Twisted-Python] Twisted training slides

2011-06-19 Thread Orestis Markou
Many thanks to everyone for the feedback. I will continue to work in this as much as possible. This is a 4 hour training, so we should have enough time. I will post the final slides after the training, tomorrow. -- orestis.gr 19 Ιουν 2011, 13:24, ο/η Andreas Hausmann έγραψε: > Andreas Hausma

Re: [Twisted-Python] Real-world but self-contained example?

2011-06-18 Thread Orestis Markou
first, esp for things I'm not sure I understand clearly. On 18 Jun 2011, at 14:24, Jonathan Ballet wrote: > [disclaimer: I'm a twisted newbie :) ] > > On Sat, Jun 18, 2011 at 09:56:51AM +0300, Orestis Markou wrote: >> a) someone looking at the code and pointing out possible

Re: [Twisted-Python] Building API documentation

2011-06-18 Thread Orestis Markou
ibes building the API docs. > > Regards, > -Jessica > > On Sat, Jun 18, 2011 at 3:09 AM, Orestis Markou wrote: > Apologies for the flood of messages - I'm getting anxious about this training > ;) > > I'm looking for a way to build (or download) the API refer

[Twisted-Python] Twisted training slides

2011-06-18 Thread Orestis Markou
Hi again, I'd greatly appreciate if someone could have a quick look through my slides: http://dl.dropbox.com/u/34284/twisted_training.pdf (64MB PDF) and comment on possible inaccuracies or flat-out wrong things. I have simplified some things in the beginning, but I expand later on. Many thanks

[Twisted-Python] Building API documentation

2011-06-18 Thread Orestis Markou
Apologies for the flood of messages - I'm getting anxious about this training ;) I'm looking for a way to build (or download) the API reference offline, so each trainee would have it locally for faster access. Looks like I should be using t.p._release.APIBuilder, but presumably there's an automa

[Twisted-Python] Real-world but self-contained example?

2011-06-18 Thread Orestis Markou
Hello, I'm trying to come up with a real-world example of performant twisted code to show as the conclusion of the europython training I'll be giving this Monday. After much help in the #twisted channel, I've written a simple "website monitoring service". I'm trying to keep everything as small

[Twisted-Python] Ideas for a Twisted Training

2011-06-16 Thread Orestis Markou
Hello, In a few days I'll be giving a 4h long training on Twisted in Europython 2011 in Firenze, Italy. I have a lot of material covering basic concepts, such as writing servers, writing clients, deferreds etc. I'm now looking for other areas of functionality I should show. I have a bit web, w

Re: [Twisted-Python] Example of re-usable ClientFactories?

2011-06-15 Thread Orestis Markou
On 15 Jun 2011, at 22:19, Glyph Lefkowitz wrote: > On Jun 15, 2011, at 1:03 PM, Orestis Markou wrote: > >> But, for most of the one-shot cases it seems that a ClientCreator (or an >> endpoint) would serve the same purpose, no? > > I am not sure that I understand your

[Twisted-Python] Example of re-usable ClientFactories?

2011-06-15 Thread Orestis Markou
Hello, I've gotten to the point in my tutorial that I'm giving out examples of writing clients. Example: class HTTPGETProtocol(protocol.Protocol): def connectionMade(self): self.buffer = [] self.transport.write('GET %s HTTP/1.0\r\n' % self.factory.path) self.transport

Re: [Twisted-Python] Information on new endpoints API?

2011-06-12 Thread Orestis Markou
> This is really why we introduced endpoints - to make it possible for > applications to listen on (or connect to) an address that is specified > elsewhere. Previously, the "easy thing to do" was to only support > TCP/IPv4. With endpoints, the "easy thing to do" is to work with any > address

[Twisted-Python] Information on new endpoints API?

2011-06-12 Thread Orestis Markou
Hello, I'm curious about the endpoints API that appeared. I've read the documentation, and I think I understand what it does, but I'm curious to see what parts of twisted it replaces. A lot of the documentation on-site is not updated (eg the finger tutorial) and it's not very clear whether one