101 entries in 0.667s
ossabot: Logged on 2019-12-29 18:13:10 diana_coman: re paster though tbh this attempt (coming as it does on top of the previous mess with
python and its flask) left me looking again for not using either.
diana_coman: re paster though tbh this attempt (coming as it does on top of the previous mess with
python and its flask) left me looking again for not using either.
mp_en_viaje: so how about instead of trying to shoehorn sql into supporting your idealism, you just "<a href=
http://trilema.com/2016/poor-women/>bang python like a cheap whore</a>. use it, but ~don't expect~ it knows what to do with ifs ; give it tasks, but short and narrow, measurable and ~do not confide in it~. let it write against apache, not import its
flask, let her do the dishes not invite her mother over to stay.
mircea_popescu: (ftr, this being a purely apache job, i do expect to see
flask and crap taken out ; but othrweise no problem having actual channel sitting bot in python, doesn't hafta be rewritten or anything like that.)
snsabot: Logged on 2019-08-29 22:51:04 lobbes: For clarity, on testbed I got the eater.py and the reader.py working fine. Was able to view loglines and search with no issue (on localhost only, didn't test port forwarding). Did *not* test the bot.py, however. For reference, my version info:
Flask 0.12.2; psycopg2 2.7.4; Python 2.7.15
snsabot: Logged on 2019-08-29 18:38:11 asciilifeform: ( mp is fond of old php , but it suffers from 100% of same headaches , and in fact even slower , esp. if the job is even slightly moar complicated than wp ; he arrived at it same way i did at '
flask' -- picked up decade ago and 'it worx, i'ma pour cement on this' )
snsabot: Logged on 2019-08-29 18:27:23 diana_coman: to cite from
flask's description, for full allergy-triggers: A micro-framework for Python based on Werkzeug, Jinja 2 and good intentions
diana_coman: re logger atm I am undecided as my options so far seem to be: 1. do another round of madness with
flask until it works on this old (but stable at least) centos 2. replicate environment aka burn down centos and have fun installing remotely on the machine cuntoo 3. simply run irssi (as I'm otherwise running this code anyway as my client) with logging to db into an mp-wp database and be done with it (possibly each line a one comment - will end
spyked: tuff, which I suspect would make the result no different than either
flask or hunchentoot
lobbes: For clarity, on testbed I got the eater.py and the reader.py working fine. Was able to view loglines and search with no issue (on localhost only, didn't test port forwarding). Did *not* test the bot.py, however. For reference, my version info:
Flask 0.12.2; psycopg2 2.7.4; Python 2.7.15
diana_coman: the full list of stuff pulled in by
flask seems to be:
flask Werkzeug itsdangerous Jinja2 MarkupSafe
diana_coman: I have python 2.7.16
flask 1.1.1 and werkzeug 0.15.5 from what I see and the reader.py fails complaining that there is no
flask.ext.cache , which seems to be again some version-shenanigans
diana_coman: asciilifeform: mind giving the exact versions for
flask, werkzeug and whatever other shit is used in there?
diana_coman: myeah, I quietly barfed in my notes re
flask before but this time it just spilled in here.
snsabot: Logged on 2019-08-14 02:58:26 mp_en_viaje:
Flask is a lightweight WSGI web application framework. It is designed to make getting started quick and easy, with the ability to scale up to complex applications. It began as a simple wrapper around Werkzeug and Jinja and has become one of the most popular Python web application frameworks." << really makes me want to be sober, reading that thing.
diana_coman: to cite from
flask's description, for full allergy-triggers: A micro-framework for Python based on Werkzeug, Jinja 2 and good intentions
diana_coman: for clarity re python 2.6 it's quite clear that it's not worth it - all sorts of breakings in
flask & co really.
diana_coman: ah, yes, I'm sure 2.6ism would break 2.7, it's more this "fun" of code reuse; and I can ofc install python 2.7 on top; I seriously wonder though what's really the fastest route; because also, above it doesn't even seem to be print, it barfs when importing
flask, a few layers deep in werkzeug and whatever
snsabot: Logged on 2019-08-19 16:52:17 asciilifeform: this experiment also reveals that asciilifeform's logotron will in fact stand up, with no modifications, on a python,
flask, pg, etc. plucked out of arbitrary rubbish bin.
snsabot: Logged on 2019-08-16 08:00:13 mp_en_viaje: the only possible conclusion is that unicode support is actually broken on either the
flask, the python outright, or some other library asciilifeform is using there. it's true that it was coincidentally discovered by cp1252 translation failure, but it is not limited to that. things missing from nsa log like the micron above are plain unicode and correctly quoted as such by my terminal.
mp_en_viaje: the only possible conclusion is that unicode support is actually broken on either the
flask, the python outright, or some other library asciilifeform is using there. it's true that it was coincidentally discovered by cp1252 translation failure, but it is not limited to that. things missing from nsa log like the micron above are plain unicode and correctly quoted as such by my terminal.
phf: also znc is incidental, i have a trivial
flask (or maybe "bottle") server that parses znc logs and gives the result out in the log-format
mp_en_viaje: yes, you can use "
flask" instead of apache. it's shitty, they know is shitty, the reason they "dont recommend" you put it naked on #80 is precisely that they know it's shit.
mp_en_viaje:
Flask is a lightweight WSGI web application framework. It is designed to make getting started quick and easy, with the ability to scale up to complex applications. It began as a simple wrapper around Werkzeug and Jinja and has become one of the most popular Python web application frameworks." << really makes me want to be sober, reading that thing.
mp_en_viaje: dispose with
flask dependency and all that.
mp_en_viaje: asciilifeform, you know, you can prolly get
flask bind to 80 ?
diana_coman: asciilifeform: it turns out I don't even usually have
flask and psycopg2 on my machines
diana_coman had no idea what
flask was and barely got an idea after looking it up when it popped up in stan's logger
diana_coman: lmao; I puzzled when first saw there "
flask" - but then again, not sure one can bake www-anything quickly without importing any mess
douchebag: Well, the web application would just be for viewing purposes, the PGP operations will still be done via command line. I am quite comfortable writing web apps using Python's
Flask web framework
a111: Logged on 2017-05-30 18:11 asciilifeform: ( everyone who has cultured something -- knows this. exhausted culture soup goes into vacuum
flask, which gotta be killed before you can empty into waste drum, and often this proves harder than expected )
mircea_popescu: what the fuck is so hard about making a surgical steel
flask rather than obscure zamaks
mircea_popescu: this is the third fucking
flask i buy, set some alcohol in, and it rots.
Framedragger: btw, i once screwed around with memoization in
flask. iirc something can be done here as well, asciilifeform (it may be as trivial as adding a decorator before the function which handles GET request)
Framedragger: asciilifeform: have you profiled an
http request to a permalinkable phuctor page? where's the bottleneck? curious if you could insert a thing into
flask which crawls through everything and stores locally.
Framedragger: asciilifeform: and the permalink pages identifiable via fingerprint, are they generated by the
flask backend, too?
PeterL:
http://btcbase.org/log/2016-08-18#1524494 << If you want something standard, like a round bottom
flask or a condenser, then yes it is much cheaper to get mass produced stuff. But sometimes you want something unique, like a round bottom
flask with a condenser coming off at a particular angle and connected by a frit to another chamber and a couple gass line nipples, then it is much cheaper to build yourself
☝︎ PeterL: yeah, in college I compromised a couple vacuum manifolds by forgetting to add a stirbar to the
flask before opening to the vacuum line
Framedragger: mircea_popescu: ah!
flask is useful and quick to prototype on, fwiw
JusticeRage: I just came to mention that the Phuctor
Flask app is running in debug mode
phf:
flask is not standalone though, it's a wsgi service, which in turn is a python standard for doing "web application". there are competing servers for wsgi, uwsgi being most popular. i actually had to patch it for my work production, and it's not a fits in head by any means
mircea_popescu: anyway, the other point being that there's no requirement for any actual heavy lifting work be done - take
flask, read through it once, snip idiocies, put it in v and voila, official tmsr boost.
phf:
flask is definitely live, is considered "alternative to bloated blahs like django"
mike_c:
flask isn't ancient? it's still maintained and updated afaik
mats: most complicated machinery is
flask and a postgres wrapper
danielpbarron: speaking of which, is the leaky treebark
flask design supposed to be blank?
Pierre_Rochard: doing the conversion to sum up debits and credits, can’t wait to release :). It’s written in python with
flask + sqlalchemy
bitstein: mircea_popescu: I've just been playing with gpg authentication in
flask, and I'm trying to better understand how the WoT (in its current implementation) mitigates various risks.
pankkake: what I would see is NSA, with the A being a
flask Chaang-Noi: i mean with the guy and the
flask with the necklace