888 karma · joined Feb 5, 2013 (13y ago) · 406 submissions
comment 10y ago · link · parent
comment 10y ago · link · parent
If you think "golly gosh, maybe some abstraction between the database and the code, hell, maybe even one of those wonderful Model View Controller things, whatever they are, would be great fun" then probably go for django or any other MVC framework
Flask can do all that, but it requires your help to achieve it. You get control over what ties with what. Django is already set up for usage, just put your code in one of three boxes, and done, but you can't decide what those boxes are or how to use them. It brings a standard structure but you lose control.
comment 10y ago · link · parent
https://www.reddit.com/live/x99pqdwudg0l/updates/b7a15982-4a...
What do we know so far?
A white truck have Thursday evening, driven through a police cordon and into a big group of people, who were celebrating, France national day, (Independence Day) in Nice.
The truck driver is dead and shot by the french police. According to french media and local charges, there is at least 70+ dead and 100+ injured.
Authorities have cordoned off the crime scene, rescue workers have arrived and helicopters in the air. The local prefecture has urged people in the area to remain indoors.
Several media sources reports guns and grenades have been found inside the truck, that drove over the crowd. Police are still determining if he worked alone. Eiffel Tower covered in smoke has nothing to do with the attack, it was just fireworks. French officials call it "Accidental".
French President Francois Hollande was returning back to Paris for crisis talks in the capital, his office said. Mr Hollande was in the southern city of Avignon on a private visit.
Some reports spoke of shots being exchanged between police and the occupants of the lorry but these have not been confirmed.
Remember to follow the authorities instructions, and notify relatives if you are okay. If it is not important, please use WiFi instead of Mobile Data if you are in Nice.
comment 10y ago · link · parent
If we go with defined behavior, then wget using the server-provided name just like a web browser does (resolving the redirects, and then explicitly noting that the file is being saved with that new file name), is completely expected, no?
comment 10y ago · link · parent
e.g. if the url was along the lines of
http://example.com/dl/f3ct4t3c4c3/
what do you expect the file name to be?comment 10y ago · link · parent
a) don't want to provide nice tools to windows users because then they'll no longer have the need to switch to a libre system
b) do want to provide nice tools to windows users because then they'll get a taste of how liberating freedom is
obviously there is a balance there, and I think GNU/NT might be a bit too far into entrenching-the-user for his tastes, though I can't speak for him obviously.
It seems there is no political note on his site for the announcement of ubuntu-on-windows.
comment 10y ago · link · parent
https://gngr.info/ comes to mind
comment 10y ago · link · parent
It isn't up to the browser to stop people shooting themselves in the foot, "Why is your web app's download verifier so slow?" "Oh because some person's blog demanded that only cryptographic functions he liked should be allowed, so I had to use a javascript-based one instead" sounds like a pain in the ass, but totally possible (mega, mediafire, etc), hypothetical
And browsers at this point in time are getting far better at making an approximate "standard" for these kinds of things
> However, this approach just doesn’t work in a browser, as illustrated by the MEGApwn utility
Yes, this approach doesn't work in a system where you can't generate a number on the other side of the sandbox. Hence, we should not try to make a system that would allow putting/creating a number on the other side of the sandbox? That logic is a bit daft, isn't it?
comment 10y ago · link · parent
Nope, its still a fully fledged client, because being a capable client is not /that/ dependant on the UI rendering method, believe it or not.
> but it still has all the disadvantages that you incur when your client is just a web page in a browser.
No? Do you think electron exposes absolutely nothing? There is code being executed with access to the rest of your computer, this has the same access as any other language to the rest of your computer, I mean, hell even if you wanna do something weird, you could write some stuff in C (or use the pythonesque ctypes module), and then run that in turn, once again with access to the rest of your computer.
I could understand these complaints if this was an important critical thing, but its a chat client, its only job is to display text nicely with formatting, browsers are pretty good at that
comment 10y ago · link · parent
https://github.com/kennethreitz/requests/releases as an example
comment 10y ago · link · parent
This, (plus the fact that ABP was harder to exploit than others via the researchers methods), made me giggle a bit considering the pasts of the two extensions