On Jul 26, 2012, at 11:49 AM, Tobias Oberstein
wrote:
>>> On Thu, Jul 26, 2012 at 1:51 PM, Tobias Oberstein
>>> wrote:
>>> With Twisted, a Deferred can have it's callback only triggered once.
>>>
>>> With Deferreds in popular JavaScript libraries (when.js, jQuery Deferred,
>>> upcoming JS Prom
nts on
that front).
Reza
--
Reza Lotun
mobile: +44 (0)7521 310 763
email: rlo...@gmail.com
work: rlo...@twitter.com
@rlotun
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
used it?
Thanks,
Reza
--
Reza Lotun
mobile: +44 (0)7521 310 763
email: rlo...@gmail.com
work: rlo...@twitter.com
@rlotun
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
?
>
Sure. It's one approach. You can also use Redis and txRedis -
https://github.com/rlotun/txRedis. Redis has pub-sub functionality that's
much simpler than AMQP (but not as powerful - for example you can't do
something like ACK a task). But for basic pub-sub it's awesome.
We
to be
txWebsocket of course - it'd be great if the core of Autobahn could be
contributed...)
Thanks,
Reza
--
Reza Lotun
mobile: +44 (0)7521 310 763
email: rlo...@gmail.com
work: rlo...@twitter.com
@rlotun
___
Twisted-Python mailing list
Twisted-
thread, the thread isn't
actually "killed", there just isn't a join() called, so it gets claimed by
the OS. This may be no different to what you want, but it's useful to keep
it in mind.
Reza
--
Reza Lotun
mobile: +44 (0)7521 310 763
e
I had no idea calls weren't cached locally. Let that
be a lesson, I guess.
Thanks,
Reza
--
Reza Lotun
mobile: +44 (0)7521 310 763
email: rlo...@gmail.com
work: rlo...@twitter.com
@rlotun
___
Twisted-Python mailing list
Twisted-Pytho
ake a lot of DNS calls in a Twisted server running
this code, you too could experience problems if you're not running a local
caching nameserver.
Thanks,
Reza
--
Reza Lotun
mobile: +44 (0)7521 310 763
email: rlo...@gmail.com
work: rlo...@twitter.c
y to maintain high quality code though - isn't Combinator just
tool over subversion to make branching easier? At least with most DVCS's
branching is cheap, so there wouldn't need to be yet another tool to setup
to get the development process started for new developers.
Rez
b hosted website,
which itself would be a repo. Oh, and the wikis are git repos too.
Given all these tools, I see mappings for all of Twisted's bits and pieces
(unless I'm missing something).
Cheers,
Reza
--
Reza Lotun
mobile: +44 (0)7521 31
; Web: http://www.hybrid-cluster.com/
>> Hybrid Web Cluster - cloud web hosting
>>
>> Phone: +447791750420
>>
>>
>>
>> ___
>> Twisted-Python mailing list
>> Twisted-Python@twistedmatrix.com
>> http://twist
criptors number gets reached the system
> becomes unstable. It also has been launche using '-r epoll' option. Any other
> idea?
--
Reza Lotun
mobile: +44 (0)7521 310 763
email: rlo...@gmail.com
work: r...@tweetdeck.com
twitter: @rlotun
__
', or permanently by
editing /etc/security/limits.conf and rebooting/opening a new login shell.
Hope that clears it up.
Reza
--
Reza Lotun
mobile: +44 (0)7521 310 763
email: rlo...@gmail.com
work: r...@tweetdeck.com
twitter: @rlotun
___
Tw
Also, I'd be happy to contribute a TCP tuning note to the Twisted docs.
These are absolutely essential for any production deploy.
Thanks,
Reza
--
Reza Lotun
mobile: +44 (0)7521 310 763
email: rlo...@gmail.com
work: r...@tweetdeck.com
twitter: @rlotun
__
about 99 - it's just some big number
conveniently bigger than 1024. Enjoy.
Reza
--
Reza Lotun
mobile: +44 (0)7521 310 763
email: rlo...@gmail.com
work: r...@tweetdeck.com
twitter: @rlotun
___
Twisted-Python mailing list
Twisted-Python@twistedm
CP connection to your twisted
server. This is similar to the above idea, except HTTP isn't involved
and you have to come up with your own client-server protocol
Cheers,
Reza
--
Reza Lotun
mobile: +44 (0)7521 310 763
email: rlo...@gmail.com
work: r
against that regarding Twisted WebSocket support. As
soon as the spec settles down we can bring the discussion back to the
ticket for proper review etc.
Thanks,
Reza
--
Reza Lotun
mobile: +44 (0)7521 310 763
email: rlo...@gmail.com
work: r...@tweetdeck.com
twit
s comments it seems that while
his patch may contain a more elegant implementation (to be honest, I
haven't looked carefully at it yet), my patch seems to work against
the dev version of chromium.
Is there any way we can work to combine the patches, and extend the unit tests?
Cheers,
Reza
st?
Reza
--
Reza Lotun
mobile: +44 (0)7521 310 763
email: rlo...@gmail.com
work: r...@tweetdeck.com
twitter: @rlotun
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
tely
resolved via socket.gethostbyname. I think you really want the support
provided by socket.gethostbyname_ex
(http://docs.python.org/library/socket.html#socket.gethostbyname_ex).
It's a good question though. I'm sure a core dev will come along and
give a proper answer soon ;-)
Cheers,
Reza
--
Reza Lo
ol. Coming from the perspective of a Twisted
*user* I'd love to see a small snippet of how to use deferred
cancellation or endpoints without necessarily having to hunt down the
full documentation.
Anyway, good job everyone on this release!
Thanks,
Reza
--
Reza Lotun
mobile: +44 (0)7521 31
On 24 Jun 2010, at 23:39, Glyph Lefkowitz wrote:
> On Jun 24, 2010, at 7:21 AM, Reza Lotun wrote:
>
>> It appears that the twistedmatrix.com domain has expired!
>
> I think it's pretty funny that you sent this to a twistedmatrix.com address
> :).
Heh, right. Forgot
It appears that the twistedmatrix.com domain has expired!
--
Reza Lotun
mobile: +44 (0)7521 310 763
email: rlo...@gmail.com
work: r...@tweetdeck.com
twitter: @rlotun
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http
-)
Hi Laurens,
You'll notice we're already listed on the Sucess Stories page ;-)
Reza
--
Reza Lotun
mobile: +44 (0)7521 310 763
email: rlo...@gmail.com
work: r...@tweetdeck.com
twitter: @rlotun
___
Twisted-Python mailing list
Twis
consumed by our desktop and mobile
clients, and Django for our web site.
Send your CV to Reza Lotun (j...@tweetdeck.com) with the subject
"Backend Engineer".
Web: http://www.tweetdeck.com/jobs
Thanks,
Reza
--
Reza Lotun
mobile: +44 (0)7521 310 763
email: rlo...@gmail.com
ystem
off the core svn repo, all development actions could be automated and
unified.
I'm fairly confident that such a system could be implemented - again,
I'd enjoy helping out on this if the core devs think this would be
useful.
Chee
oint and took the path of least resistance.
Cheers,
Reza
--
Reza Lotun
mobile: +44 (0)7521 310 763
email: rlo...@gmail.com
work: r...@tweetdeck.com
twitter: @rlotun
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatri
hon -c. Any ideas on how I could do this?
You don't have to write it to disk - you can use cStringIO.
--
Reza Lotun
mobile: +44 (0)7521 310 763
email: rlo...@gmail.com
work: r...@tweetdeck.com
twitter: @rlotun
___
Twisted-Python mailing li
a python piece of code
> in a new process?
Well, the only way to run Python code is to run the Python interpreter
in a process and feed it the python code you want to run (using the -c
option).
Cheers,
Reza
--
Reza Lotun
mobile: +44 (0)7521 310 763
email: rlo...@gmail.com
work: r...@tweet
e that their clients connect to. Not that the P2P
problem isn't fun ;-)
Here's one of many solutions: get one or more publicly available
servers, and stick some XMPP software (twisted.words, Punjab,
ejabberd, whatever). Turn on SSL. Now you have a secure, centralized
communications system.
avily JITed and optimized Javascript VM).
> Very cool, I hadn't seen that before.
Yes, very neat. Haven't done much with it, but I think it's a real
winner when you're doing something simple like long-polling/
broadcasting from a queue.
Cheers,
Reza
--
Reza Lotun
mobile: +
er *in
general*, I highly suggest nginx_http_push - an addon module for the
popular C-based asynchronous web server nginx
(http://pushmodule.slact.net/).
Start with Orbited though, and see where it takes you ;-)
Cheers,
Reza
--
Reza Lotun
mobile: +44 (0)7521 310 763
email: rlo...@gmail.com
work: r.
On Mon, Mar 15, 2010 at 6:03 PM, gary clark wrote:
> Yeh I have to install them and create a setup.py to find the path.
You only need to set your PYTHONPATH environment variable.
e.g.
$ export PYTHONPATH=/path/to/dir/containing/code
--
Reza Lotun
mobile: +44 (0)7521 310 763
email:
ce = get_service()
service.setServiceParent(application)
Also, keep in mind you might want to use twistd in conjunction with a
process runner (http://dustin.github.com/2010/02/28/running-processes.html).
That is, if you're using something like Ubuntu, you probably want to
run twistd using upstart
mewhere. When a client connects, you issue a task, and return
the task id back to the client. By and by the job is picked up by some
worker, and the result is stored in some persistent database, like
MySQL or Redis. Celery also has excellent integration with Django.
Hope that helps you out.
Cheer
7;re going to have to be very careful about calling code in the
Twisted thread from other threads as Twisted isn't threadsafe. To do
this properly take a look at reactor.callFromThread.
Cheers,
Reza
--
Reza Lotun
mobile: +44 (0)7521 310 763
email: rlo...@gmail.com
work: r...@tweetdeck.co
Hi Kevin,
> Thanks to a quick patch from Michael Thompson, the current output of
> the Sphinx conversion [1] now matches the color scheme and
> typographic style of the main twisted site. It's using the layout
> of the 'default' sphinx theme (previously was using the 'sphinxdoc'
> theme).
by looking at request.content
which exposes a File-like API (that is, threat it like you would an
open file in Python).
If you want to *send* a file via Twisted, take a look at:
http://twistedmatrix.com/documents/current/core/howto/producers.html
and
http://twistedmatrix.com/documents/9.0.0/api/tw
ash function. If I were integrating with other apps
sharing the same memcached pool - like a Django web app - I would use
the python-memcache server hash for sure.
Cheers,
Reza
--
Reza Lotun
mobile: +44 (0)7521 310 763
email: rlo...@gmail.com
work: r...@tweetde
Hi,
You might want to take a look at the txmemcache project:
https://launchpad.net/tx.memcache
Keep in mind that it might be more useful to use the server hash
function used in python-memcache/cmemcache:
http://www.tummy.com/Community/software/python-memcached/
Reza
--
Reza Lotun
mobile: +44
ed) and nginx and the
plugin take care of pushing out the message to clients.
Cheers,
Reza
--
Reza Lotun
mobile: +44 (0)7521 310 763
email: rlo...@gmail.com
work: r...@tweetdeck.com
twitter: @rlotun
___
Twisted-Python mailing list
Twisted-Python@t
ome_initial_arg)
rpc_res = yield xmlrpc_call(res)
db_res = yield db_call(rpc_res)
In the above example, it's all still asynchronous (if not parallel),
but it looks like it's synchronous, using the magic of decorators and
Python 2.5+'s ability to retrieve results from yield statemen
o you roll the whole thing out in Twisted. As time progresses, you
may rewrite certain systems in, say, erlang or something and move
forward.
So, it's hard to say, really. At least, I'd like to know myself ;-)
That's what makes the wheel field so interesting - there's a certain
c
4 settings (google is your friend on
the best settings, coupled with testing)
Cheers,
Reza
--
Reza Lotun
mobile: +44 (0)7521 310 763
email: rlo...@gmail.com
work: r...@tweetdeck.com
twitter: @rlotun
___
Twisted-Python mailing list
Twisted-Python@tw
ny examples of
reverse proxying servers all over the place - google "nginx reverse
proxy" for many examples.
Hope that helps.
Reza
--
Reza Lotun
mobile: +44 (0)7521 310 763
email: rlo...@gmail.com
work: r...@tweetdeck.com
twitter: @rlotun
__
n twistd processes, one per core and have a reverse proxy
process listening on a port and distributing connections to each
twistd process. Of course, you can extend this architecture to
multiple machines.
Cheers,
Reza
--
Reza Lotun
mobile: +44 (0)7521 310 763
email: rlo...@gmail.com
work: r...@twee
out and web is *the* web project of
twisted (as it should be ;-).
Cheers,
Reza
--
Reza Lotun
mobile: +44 (0)7521 310 763
email: rlo...@gmail.com
work: r...@tweetdeck.com
twitter: @rlotun
___
Twisted-Python mailing list
Twisted-Pytho
ojects/core/documentation/howto/process.html#auto2
Cheers,
Reza
--
Reza Lotun
mobile: +44 (0)7521 310 763
email: rlo...@gmail.com
work: r...@tweetdeck.com
twitter: @rlotun
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatr
r sync example, you're wrapping everything up in
deferreds and starting a reactor - it's definitely going to be a bit
slower than the pure synchronous version for this case.
Hope that makes sense.
Cheers,
Reza
--
Reza Lotun
mobile: +44 (0)7521 310 763
email: rl
ed, but all the information is there to debug, etc.
> Thanks for your help.
No problem.
Cheers,
Reza
--
Reza Lotun
mobile: +44 (0)7521 310 763
email: rlo...@gmail.com
work: r...@tweetdeck.com
twitter: @rlotun
___
Twisted-Python mailing list
On Fri, Oct 9, 2009 at 10:53 AM, Reza Lotun wrote:
> won't return returns. What you have to do is create your own slightly
I meant won't return headers ;-)
Reza
--
Reza Lotun
mobile: +44 (0)7521 310 763
email: rlo...@gmail.com
work: r...@tweetdeck.com
twi
e (i.e. it could be as
simple as going 'print result.getTraceback()').
Cheers,
Reza
--
Reza Lotun
mobile: +44 (0)7521 310 763
email: rlo...@gmail.com
work: r...@tweetdeck.com
twitter: @rlotun
___
Twisted-Python mailing list
Twisted-Python@twistedmatri
sted services over the Amazon cloud - specifically, we
use EC2 and SimpleDB. Writing a REST api service used by hundreds of
thousands active users was a snap with Twisted. We'll continue to use
Twisted as we broaden our server-side processing goals.
-- Reza Lotun, Software Engineer, TweetDeck Inc.
I just post the blurb to the list, or
email you personally?
Thanks,
Reza
--
Reza Lotun
mobile: +44 (0)7521 310 763
email: rlo...@gmail.com
work: r...@tweetdeck.com
twitter: @rlotun
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
k user and ever thought about
organizing tweets maybe check it out? Just to let you know - it's
available in two client favours, one for iPhone and one a
cross-platform Adobe AIR client.
http://www.tweetdeck.com/
Ok, that's all ;-)
Thanks,
Reza
--
Reza Lotun
mobile: +44 (0)7521
of the *running* of it has to be made in that file
- that is, you shouldn't have to explicity choose what reactor you're
using since that's more of a deployment question.
I don't really know of a more comprehensive source for twistd and .tac
files - I suppose if you fancy dong
[guard.BasicCredentialFactory('yoursite.com')])
reactor.listenTCP(8080, server.Site(
resource = wrapper))
reactor.run()
if __name__ == '__main__':
main()
This should basically run (though I haven't tes
able to *verify* credentials.
Anyway, to each their own.
Reza
--
Reza Lotun
mobile: +44 (0)7521 310 763
email: rlo...@gmail.com
work: r...@tweetdeck.com
twitter: @rlotun
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://
8080, server.Site(resource=wrapper))
I'll probably contribute the Htaccess style checker to twisted at some
point, as I've found it useful in the past and others may too.
Cheers,
Reza
--
Reza Lotun
+44 (0)7521 310 763
rlo...@gmail.com
___
Hi,
> is there any significant reason/advantage to run the Twisted Framework
> on Linux or on FreeBSD?
On Linux you can use the epoll reactor. FreeBSD's equivalent is kqueue
and I don't think that reactor is as stable as the epoll one. I could
be wrong though.
Cheers,
Reza
--
vin (plus I want to learn it :P).
I haven't yet looked at lore or sphinx, but is there a way to support
sphinx via lore?
Reza
--
Reza Lotun
+44 (0)7521 310 763
rlo...@gmail.com
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
e a repository of
various tips and tricks we happen to find, and maybe it can even be a
staging ground for documentation that makes it into Twisted proper.
Reza
--
Reza Lotun
+44 (0)7521 310 763
rlo...@gmail.com
___
Twisted-Python mailin
>> .seek(0,0).
>
> You should probably do the seek/read instead, since I don't believe
> this is guaranteed to be a cStringIO; it might be an actual file on
> disk, or something else.
If that's true then there really should be a .get_body() method on the
request ob
seek(0,0).
Cheers,
Reza
--
Reza Lotun
+44 (0)7521 310 763
rlo...@gmail.com
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
)
>
> Of course noone would complain about a community edited book like what
> the Django project has, either. :)
>
> Robert
>
> ___
> Twisted-Python mailing list
> Twisted-Python@twistedmatrix.com
> http://twistedmatrix.com/cgi-bi
you can just write 'asserts'. However,
there are some caveats - namely that twisted is actually started in
another thread. So, if you plan to run a server to test calls against
(say in your setup_module) you need to make a wrapper around any
connection maker to use reactor.callFromThread.
Hope
take a look
at your kernel settings in sysctl and check that your fs.file-max
setting is something suitably high (this is assuming you're using
linux...).
Reza
--
Reza Lotun
+44 (0)7521 310 763
rlo...@gmail.com
___
Twisted-Python mai
ate
for this. "
So, I really should have mentioned that because HAProxy doesn't
currently support persistent connections, I want to force them to be
off.
Cheers,
Reza
--
Reza Lotun
+44 (0)7521 310 763
rlo...@gmail.com
___
Twis
> I noticed in the documentation for _epoll.pyx that the corresponding
> .c file was generated using pyrex 0.9.4.1. On a whim I downloaded
> 0.9.8.5 and regenerated the file and rebuilt python. I'm currently
Sorry, meant to say "rebuilt twisted".
--
Reza Lotun
of which seemed marked with "bug fix" and "more
efficient code"
- I'm currently stress testing my server and wanted to see what sort
of changes could be induced by modifying different parts of the
system.
Anyway, just wondering.
Cheers,
Reza
--
Reza Lo
ricks people could offer? ;-) I'm
particularly concerned with squeezing some performance out of the
web.server and also web.client.
Thanks!
Reza
--
Reza Lotun
+44 (0)7521 310 763
rlo...@gmail.com
___
Twisted-Python mailing list
Twisted-Python@twisted
itions *without* anything extraneous creeping in. What are the
idioms and best practices?
Thanks,
Reza
--
Reza Lotun
+44 (0)7521 310 763
rlo...@gmail.com
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin
Hi,
Just curious, but what's the roadmap for the new web client
(http://twistedmatrix.com/trac/ticket/886)? As I understand it only
the finalization of a public api remains?
Cheers,
Reza
--
Reza Lotun
+44 (0)7521 310 763
rlo...@gmail.com
___
Tw
e following useful in trying to understand task
Cooperator:
http://oubiwann.blogspot.com/2008/06/async-batching-with-twisted-walkthrough.html
It really helped me out when I was learning how to use it.
Good luck,
Reza
--
Reza Lotun
+44 (0)7521 310
still have to test if it's
> caused by the signal redefinition at all or not.
>
> Thank you,
> Gabriel Rossetti
>
> ___
> Twisted-Python mailing list
> Twisted-Python@twistedmatrix.com
> http://twi
t; problems with windows event)? Is there such a mechanism, something like
> setDefaultSig("SIGINT, mySigIntHandler)?
One easy way to do it is to reactor.run(installSignalHandlers=False)
and then manually install your own signal handlers in the usual way
(using the python signal libr
et example should have been:
reactor.callFromThread(reactor.callInThread, someCall)
Cheers,
Reza
--
Reza Lotun
Senior Software Engineer
Peer Technologies Limited
r...@getpeer.com
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http:
> Twisted-Python mailing list
> Twisted-Python@twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
--
Reza Lotun
Senior Software Engineer
Peer Technologies Limited
r...@getpeer.com
___
Twisted-Python mailing lis
Sorry, the latest version is
http://pypi.python.org/pypi/bbfreeze/0.96.5
On Mon, Dec 1, 2008 at 1:52 PM, Reza Lotun <[EMAIL PROTECTED]> wrote:
> Hi Alessio,
>
> I've found bbfreeze to work quite well for this:
>
> http://pypi.python.org/pypi/bbfreeze/0.95.4
>
>
ted (and not even GCC).
>
> Thank you in advance for any suggestion.
>
> Regards,
> Alessio Pace.
>
> ___
> Twisted-Python mailing list
> Twisted-Python@twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/
80 matches
Mail list logo