Iuri de Silvio
Iuri de Silvio
Is it possible to count users in a room? The `socket.io` has `io.sockets.sockets.length`. I'm unable to access `namespace` in `go-socket.io`, because it is not exported. http://stackoverflow.com/questions/9352549/getting-how-many-people-are-in-a-chat-room-in-socket-io
It is really slow to parse templates everytime you call `render_block` and it is a static information, so you can cache it in memory. I did some benchmarking here and...
I had a problem with my upload because I forgot the `enctype` in my form. It is basic stuff, but can be fixed with an working example.
It is difficult to create unit tests because SQLAlchemy maintain some objects in memory for performance reasons. I have to workaround this behaviour to write useful tests.
This is ugly. ``` Model.query_class == CachingQuery db = SQLAlchemy(session_options={'query_cls': CachingQuery}) ``` I want something like `db = SQLAlchemy(query_class=CachingQuery)`. I have to investigate Flask-SQLAlchemy.
Só consegui fazer o dojotools rodar depois de ler o código e procurar na internet por relatos de pessoas usando. Só descobri o que era o .dojoignore e que precisava...
It happens because redirect exception is not handled by Bottle, because it already get an exception (404). ``` import bottle @bottle.error(404) def error_route(code): bottle.redirect('/') bottle.debug(True) bottle.run(reloader=True) ``` I get this...
Improves #3709.
### What problem does this feature solve? The matcher implementation always use path-to-regex lib. It is too much for static paths, where it is possible to just compare strings. Also,...
This is a draft implementation with some new ideas. * Static paths don't need regex match for most cases. * Match don't have to be always linear, it is possible...