15 karma · joined Jun 21, 2022 (4y ago) · 16 submissions
comment 3y ago · link · parent
The closest equivalent would be using a lock, semaphore or barrier object with a context manager .i.e. the with keyword.
Making the locking and unlocking of data automatically managed for you.
I generally try to stick to a deque in Python if I am doing anything concurrent.
comment 3y ago · link · parent
I believe that has all the features you listed as wants.
I am kind of half joking but people do have very specific ways they want to consume content even if it is the same content.
comment 3y ago · link · parent
Here is a paper on A/B testing that the Bing search team conducted under Microsoft.
https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3171224
Hidden in there in a distribution graph is that 2% of the ideas that were A/B tested resulted in 74.8% of the improvements.
Now you can ask yourself what are they considering improvements which is a valid answer but that really struck me.
Section 4.3 Figure 3a.
comment 3y ago · link · parent
I couldn't find a single reference to where the data set came from that trained the model they are using to do facial recognition.
Someone did theorize that it could be taken from a hypothetical law firm website but IIRC a single photo of someone is not good enough to reliably train a model that is not overfit.
7.
Twitter bots and an $11K cryptocurrency scam(ciaran.dev ↗)
5 points · by contentboot · 4y ago · 1 comment
comment 4y ago · link · parent
You could try a HATEOAS approach if you want to get a bit more fancy.
https://restfulapi.net/hateoas/
If you are following REST strictly there should be only objects, actions and verbs.
comment 4y ago · link · parent
I'd highly recommend quitting your job. 10/10 experience.
Just make sure to check your funds war chest before hand.
comment 4y ago · link · parent
Strong disagree. Extensions and User scripts are an unmapped wild west.
Providing a registry type system to securely vend packages/scripts is a very hard security problem.
https://www.bleepingcomputer.com/news/security/mozilla-block...
comment 4y ago · link · parent
I know this is from the initial paper but it is great to see practical examples of algorithms taught in college/uni.
I always had trouble understanding why we are learning such hard topics to find the number 5 in a sorted list of 10 numbers.
To keep things on topic.
>The patches that MEGA developed to mitigate the original key recovery attack are effective against our improved attack as well, so updated clients are not vulnerable to the techniques presented in this work. However, our optimized cryptanalysis underscores the ongoing risk to unpatched clients
Great to hear that their patches fix the root of the problem but this paper has now significantly reduced the complexity of carrying out the attack.