Qi Xiao

Results 250 comments of Qi Xiao

I found out the author is precisely that of Peewee, so I needn't have explained this much. :-) I also identified a problem. A deferred Peewee database still needs to...

@mangrish Build a proxy class. A bit clumsy, though.

@coleifer Seems this has been implemented with f387f73? It has been some time since I used flask-peewee so I'm not quite sure - have been using raw peewee lately... It...

Ah... not quite there yet. You still need to specify the app when initializing the database: ``` python import flask, flask_peewee app = flask.Flask(__name__) db = flask_peewee.Database(app) ``` better make...

Ah, harder than I though... `flask_peewee.Database` needs to have its Model determined _before_ `init_app` is called. Which is not possible without determining the database engine... So better implement deferred engine...

This patch to libtsm should fix this issue: ``` diff --git a/src/tsm/tsm-vte.c b/src/tsm/tsm-vte.c index ec8a936..d2d4776 100644 --- a/src/tsm/tsm-vte.c +++ b/src/tsm/tsm-vte.c @@ -1513,7 +1513,8 @@ static void csi_dsr(struct tsm_vte *vte) }...

> That a leading zero introduces an octal value is for consistency with backlash escape sequences in [double-quoted strings](https://elv.sh/ref/language.html#double-quoted-string), the Go language, and historical practice in many other languages. This...

Among languages that don't recognize a leading 0 as an octal marker, most just ignore them - ML, Haskell, Scheme, and likely other Lisps (except Clojure). I believe leading-0-makes-octal is...

@fennewald your snippet is a good start, but there're more details that need to be handled: * Leading `-` or `+`, and upper-case prefixes * Parsing all numeric types -...

You can prepend a space to the command to prevent it from going into the history, but there is no analog in dir history. An "incognito mode" sounds good.