WhatsApp is controlled by Facebook, and they already centralize a gigantic amount of personnal data. Their moral track record has also been consistently bad. They were part of the PRISM program. They meddle with politics. They are rich and powerful.
The chinese WeChat example shown us how convenient a popular chat app coupled with a payment system can be, and how quickly an entire society can adopt it.
I think this feature should be considered as a threat to users, and be avoided, while actively and strongly, but respectfully, advising people around us to do the same.
This is highly deceptive framing. PRISM was a passive cable tapping program. Companies weren't "participating" in it as much as they were victims of it.
Facebook was targeted by PRISM and rapidly worked to mitigate as soon as they knew about it, just like every other cloud service provider that was victimized by cable tapping under that program.
"Sources challenge reports alleging National Security Agency is 'tapping directly into the central servers.' Instead, they say, the spy agency is obtaining orders under process created by Congress."
My paypal account cannot receive money - send only because of my location. Consequently, I've been shut out of many legitimate opportunities. Got scammed multiple times as a freelancer both by the job providers and the platform.
Can't wait for this to available in my location. "Threat to users" be dammed.
Receiving money as a freelancer can be challenging, but given how dangerous it is to give FB more power, I think it's worth spending a bit of time in finding alternatives.
Last customer was in India, and it was hard for him to wire me money. Stripe made it a breeze, I created an invoice, enter his mail, and he just paid using his credit card.
The fees are a bit high, so the question is more "how much inconvenience do I think is worth this moral stand?".
And there is no universal answer to this question, since moral is arbitrary, and I don't accept the inconvenience in many other avenues.
Facebook is actively hostile to privacy and security, including by building black hat exploits for open-source software and not reporting it to the developers afterwards and quietly shelving E2EE for Messenger (rumor mill says because of LEA influence or pending water down / walk back).
I have no doubt there are innumerable FB employees who will defend privacy and security. Zuckerberg doesn't care, and will sell his users out the second it impacts the bottom line or offends the government FB is in bed with (go listen to the hot mic recording between Zuckerberg and Angela Merkel, for example).
On android, one can use facebook in the firefox mobile browser instead of the app. Firefox mobile does allow ublock origin, and it's trivial to add a home shortcut to any web app.
This has other advantages: facebook web site can't ask for a 1000 permissions or to be updated regularly, won't run in the background eating memory and battery and this will limit the disk space it can eat.
You're paying the price with a less integrated UI, yet given the pros, it may be worth it.
I’m on iOS so this isn’t an option. There are tradeoffs, but I rarely use Facebook and it’s one of the few native apps I’d rather use than the browser interface.
Github is not meant to be fun, it's meant to be like a pen.
A good pen can be enjoyable. Beautiful. You can feel attachement to it.
But it is not built to be played with. By that I mean it's not its primary function, even if a creative or bored mind can use it for that.
A good pen fullfills its intended purpose when it disapears from your mind while you use it, yielding to the writting that should be the center of your attention.
I don't think about github when I code. I just use it.
A lot of people (who may not even be professional programmers) are using GitHub for their hobby, i.e. "for fun". I don't think this is an invalid use case.
So do I, and I dread every second I have to interact with that horrible site. A pen does not spam you with "trending" stuff, rearranges its interface regularly or track your activity for the whole world to see.
Before the usual "just leave" comments: GH is a monopoly and one can be forced to use it, unless leaving includes leaving projects or even jobs.
How much? One of the crypto libraries cited in the comments is about 10x the size of SJSC.
Besides, as an avid use of Signal, Wire, Bitwarden, and other e2e encrypted tools, I would GLADLY download a larger but superior encryption tool that is compiled to WASM instead of relying on JS.
That's a fair point, to some extent. If you're specifically looking to perform symmetric encryption on a string with a string-encoded password, then yes, SJCL is easier to use.
The documentation is centered around that one simple example, and the library doesn't seem to do a lot else (at least through a high-level API). I also have a problem with NaCl/Sodium forcing users to handle nonces, rather than handling that detail internally by default. Besides that, Sodium isn't particularly more difficult to use than SJCL; the whole point is that it's an easy-to-use high-level interface that's hard to misuse.
I would also note that SJCL's defaults are a bit dated (CCM vs GCM, 128-bit vs 256-bit, PBKDF2 vs a memory-hard KDF like scrypt or Argon2). Additionally, being pure JS would raise concerns about side channel attacks more so than WebAssembly (like libsodium.js) or native code (like WebCrypto).
I'm sure there are simple use cases where SJCL provides some value, and I'm not saying data and applications that depend on it out in the wild should necessarily be considered already compromised, but I'd struggle to think of a situation where I would consider using it in a new project today, over either libsodium or nothing at all / just TLS.
TweetNaCl.js is great. I'd go with that if you really need something smaller than libsodium.
Presumably it shares the downsides of TweetNaCl ("doesn't wipe internal buffers [...] [and] has two harmless instances of undefined behaviour"[1]; among, I expect, other shortcuts that may make it less optimal/safe than NaCl), and the fact that it's pure JS adds additional side channel attack surface, but those may be acceptable risks depending on your threat model. They're certainly the least of your concerns if you're just using it in a web page like 0bin.net.
The only low-level thing I noticed about the native Web Crypto APIs is its reliance on typed arrays. The speed difference is night and day as the native stuff can be hardware-accelerated by dedicated CPU instructions.
In terms of "ease of misuse" it's debatable. One of the biggest default security improvements with Web Crypto is that *cryption keys are _not readable by JS_ once instantiated - they can only be used by the cryptographic functions (unless you explicitly make them exportable). This is a subtle but very important defense against certain drive-by attacks that could dump loaded keys from whatever non-native JS crypto library you might be using.
In general I don't think it's safe to be using crypto at all outside of basic stuff like password hashing if you don't have a basic understanding of concepts like salt lengths, block cipher modes, hasher output sizes, etc. so I don't really agree with the "easier to misuse" statement. Some library that holds your hand more isn't going to significantly make things safer.
> One of the biggest default security improvements with Web Crypto is that *cryption keys are _not readable by JS_ once instantiated - they can only be used by the cryptographic functions (unless you explicitly make them exportable). This is a subtle but very important defense against certain drive-by attacks that could dump loaded keys from whatever non-native JS crypto library you might be using.
That's a really nice feature. This should be better advertised. I wasn't aware that Web Crypto was even a thing.
Yes, that kinda HSMish model of non-extractable keys is a very nice touch. I really wish they would add Argon2 though. PBKDF2 is still a valid choice but there are a lot of HW optimized solvers out there for it.
My brother loved this text and offered it to me in the form of a book.
Reading it, I was disapointed. It paints the support from Rike, an experienced and depressed poet, to a young and depressed one.
While I can perceive the moral aid it can bring, I didn't benefit from it. It's full of never desmontrated general advices with no given first step to be applied, and often, not even practical applications.
He is a poet after all, and those lines are not meant to be a self help book.
So sure, they are well written, the author can relate to the human condition, and the particular suffering of the receiver. But no matter how you present it, hearing "follow your passion", "don't listen to critics" and "that's life" once more is not adding anything to my current state of understanding of the world.
One could argue that it's more of an aesthetic exercice, and if you look at it that way, it's a success. The prose is touching and clear.
You could also say that the content will speak more to people struggling with the process of art, or just being true to yourself. However, the author offers descriptions, weak analysis, and no solutions. He admits himself that he is still stuck at the same level.
If one craves empathy, or to ear that somebody shared the same hardship, I imagine it can be therapeuthic.
But I learned little from those letters, didn't enjoy it, and didn't benefit their from support.
Maybe you will. It's a short book, so it's not a big time sink.
If you read the first paragraphs and don't feel like carring on, you don't need to go further. It doesn't transform into something different on the way.
Specific actionable bit: "... as if no one had ever tried before, try to say what you see and feel and love and lose. ... avoid those forms that are too facile and ordinary ... write about what your everyday life offers you; describe your sorrows and desires, the thoughts that pass through your mind and your belief in some kind of beauty. ... use the Things around you, the images from your dreams, and the objects that you remember."
tl;dr "c'est en forgeant qu'on devient forgeron"
Edit: one exercise from soviet education (no idea if this is still done in modern russia) I'd think worth stealing is that the teacher would pick a selection of famous lines out of a poem, and ask the class to write their own verses around one of them.
If I remember the story correctly, the chorus to Leningrad's "In [St.] Peter[sburg] we booze" was inspired by a line "Peter — endure, endure" from a classical russian poem.
https://www.youtube.com/watch?v=1ugivNRYfjc
I found that it works great in programming too: take a very beautifully crafted code, remove some bits, and ask the students to fill in the blanks, or wrap something around it.
The students then gain many things out of it:
- they practice reading someone else code
- they have to understand a problem to solve from context
- they get to craft a solution to that problem
- they don't have to start "from scratch", which is easy to do for simple problems, but hard as soon has you dwelve into advanced concepts
Above all, like the soviet education exercice, one untold benefit is that they get to see the beautiful code itself. It's not only inspiring and driving their efforts, it builds taste.
Simple advices to not take criticism too close to your heart is probably a pretty universial recommendation. Not only for writers, for developers too. Everyone can fail at that and I think reiterating this advice is help itself.
Because of the nature of Python, using importlib.reload() is going to lead to terrible bugs at some point. Use importlib.reload() only in the shell, for convenience.
If you want autoreload for dev (e.g: like django dev server), better restart the entire process.
There is a 7 years old project that can help you with that called watchdog:
https://pythonhosted.org/watchdog/
It's a library that uses the fastest way available (e.g: inotify,kqueue...) to react to file changes (you can filter by types such as create, delete, write, etc) and triggers whatever code you want, passing you the metadata.
If you just want something very simple, you don't have to code, you can install watchdog with its optional watchmedo dependancy:
pip install watchdog[watchmedo]
It will give you the watchmedo command, that lets you do something like this:
Yes but unfortunatly, you have to compile it for many systems yourself. And if you want to use it from Python (not from the command line), you need binding.
On the other hand, it's probably more performant than watchdog if you have a lot of files and need to fallback on manual watching.
Plus, if you are not a Python person, you may not want to use pip.
The chinese WeChat example shown us how convenient a popular chat app coupled with a payment system can be, and how quickly an entire society can adopt it.
I think this feature should be considered as a threat to users, and be avoided, while actively and strongly, but respectfully, advising people around us to do the same.