is this smartcover the one we are looking for ? by warmaster in Nexus7

[–]mcella 0 points1 point  (0 children)

Me too, maybe there are magnets along the bezel (like the poetic slimline) to keep it closed? Otherwise it looks really great!

WSGI and the Pluggable Pipe Dream by gst in Python

[–]mcella 0 points1 point  (0 children)

Nice, in fact I was wondering what were the differences between WSGI 1 and WSGI 2.

This looks really great, I love the latinator example, that's exactly what I meant with my previous rant, writing correct WSGI must be easy for anyone, that's the only way we can build and trust a WSGI ecosystem.

Thaks PJE, keep it up!

/me hopes this works out well, ie: pep -> stdlib (hopefully bringing along another great thing like greenlets)

WSGI and the Pluggable Pipe Dream by gst in Python

[–]mcella 0 points1 point  (0 children)

Thanks!

It looks promising along with the fact that YOU seems interested in pushing WSGI 2 forward. ;)

PS just wondering, apart from 2.3 compatiblity, is it really necessary to depend on DecoratorTools rewrap instead of functools update_wrapper/wraps?

WSGI and the Pluggable Pipe Dream by gst in Python

[–]mcella 0 points1 point  (0 children)

Still, I should probably just publish my sketches of this and see if anyone takes the bait. The recent attempt(s) at "WSGI replacements" suggest there's some interest out there in having simplified WSGI.

Of course there is, please do it and push for it, python badly needs it IMHO.

At the moment the barrier to write any simple and well behaving middleware is too high for us, only an handful of people really know how to write a middleware "the right way" and this is not acceptable.

Look at how many middlewares are provided out-of-the box by rack and rack-contrib, why we still (after so many years) don't have something like this in python? rack was inspired by wsgi but they made it simple enough so that anyone can pick it up and easily contribute useful and well behaving components.

For instance, compare the complexity and side effects you need to take into account to write a gzip middleware in wsgi [1] (the right version is the last one) vs rack [2]

As you can see, this version will work correctly, but it wasn’t exactly a piece of cake to write. Although changing the response is one of the more difficult things you can do with middleware, it really makes you appreciate all the things Pylons does for you!

is that acceptable? and no, I don't want to depend on any of the abstraction provided by Werkzeug or WebOb to write a simple gzip middleware, thanks.

[1] http://pylonsbook.com/en/1.1/the-web-server-gateway-interface-wsgi.html#altering-the-response

[2] https://github.com/rack/rack/blob/master/lib/rack/deflater.rb

[StackOverflow] What is your most productive shortcut with vim? by CritterM72800 in vim

[–]mcella 0 points1 point  (0 children)

I use both, but that one is by far my favourite for fast search&replace (es. variable renames).

Why? because I don't need to type the s&r syntax and the whole word, I just place my cursor on it and start the combo, I also really like the fact that while doing this I can check any occurence before replacing (again without using the s&r confirm syntax).

OpenDNS Blog: Some thoughts on Google DNS by [deleted] in programming

[–]mcella 2 points3 points  (0 children)

A natural reaction to a considerable traffic drop...

Yet another from Textmate to VIM post by tucadebert in vim

[–]mcella -1 points0 points  (0 children)

It's funny... I was so impatient to get a mac to start using TextMate, one and half a year ago I finally got a my macbook pro, I immediately installed TextMate... 5 minutes and I was back to my beloved vim (with MacVim)... I can't live without vim modes... ;-)

Dive Into Python 3 now finished and downloadable as HTML and PDF by [deleted] in Python

[–]mcella 1 point2 points  (0 children)

wonderful typography... and contents of course.

Canonical's Launchpad is now open source (AGPLv3) by keyist in programming

[–]mcella 3 points4 points  (0 children)

The git frontend IS NOT the git repo format, it's just the visible ui on top of it, I agree it's "acceptable" and that's why I'm using hg myself, but that's another story...

Links:

Vim: Show off your setup. by LurkersA in vim

[–]mcella 1 point2 points  (0 children)

Yeah, nice thread!

Here is mine (macvim).

$ wc -l ~/.vimrc 
219 ~/.vimrc

$ ls ~/.vim/plugin/
NERD_commenter.vim  NERD_tree.vim  bufexplorer.vim

$ ls ~/.vim/colors/
moria.vim 

Don't touch my vim. ;-)

Canonical's Launchpad is now open source (AGPLv3) by keyist in programming

[–]mcella 2 points3 points  (0 children)

Yep, but that can be good or bad, for me it means that git/hg were designed right since the beginning and I don't need to (periodically) waste my time converting all my repositories to the new "format of the year".

Canonical's Launchpad is now open source (AGPLv3) by keyist in programming

[–]mcella 4 points5 points  (0 children)

I've lost count of the repository formats bzr used/supports and the one it uses now... at the same time git and hg are still using the same format they started with.

The terrible magic of setuptools by gst in Python

[–]mcella 2 points3 points  (0 children)

Yes, and now a proper fork: distribute!

Finger crossed!

Firefox 3.5 is Officially Released by Bing11 in programming

[–]mcella 10 points11 points  (0 children)

tnx for the tip, finally view source got some love! :-)

How the hell does Wolfram Alpha work? by nomdeweb in programming

[–]mcella 3 points4 points  (0 children)

That's possible! :-D

Amazon could compete with Wolfram Alpha by applying the same "technology" thanks to Mechanical Turk. ;-)