|
Facebook releases Hermes to improve app performance on low-end Android phones. Because you never know when you might want to bolt a JavaScript engine into something?
|
|
|
|
|
Hermes is the god of, among other things, thieves and trickery.
|
|
|
|
|
Joe Woodbury wrote: thieves and trickery You might have a translation error, there.
I have a feeling that it could translate to "utter bollocks".
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Details of the Cloudflare outage on July 2, 2019[^]
LinkedIn said: July 2 outage that left thousands of websites and services like Shopify, Zendesk, Dropbox and Nest out of commission for part of the day.
CloudFlare said: The CPU exhaustion was caused by a single WAF rule that contained a poorly written regular expression that ended up creating excessive backtracking. The regular expression that was at the heart of the outage is
(?:(?:\"|'|\]|\}|\\|\d|(?:nan|infinity|true|false|null|undefined|symbol|math)|\`|\-|\+)+[)]*;?((?:\s|-|~|!|{}|\|\||\+)*.*(?:.*=.*)))
Q: Now, who'da thought a little ol' RegEx could cause such harm?
A: All the devs who've ever experienced backtracking in a "simple" RegEx.
modified 14-Jul-19 12:05pm.
|
|
|
|
|
Given that this has bitten the bum of any high load application that uses regular expressions (it's hit us, it's hit StackOverflow, it's hit many), I'm surprised there aren't more automated tools to spot this stuff.
The .NET regex library has a timeout option (which can short circuit catastrophic backtracks and at least let you get on with things) but it would be nice to have something a little more specific than merely "this took a long time". A "I'm doing exactly the same thing 100 million times ya great nong!" exception would be great.
cheers
Chris Maunder
|
|
|
|
|
I had a very simple RegEx in a WinForms app that was supposed to simply help the user by letting her know that the field didn’t seem like a valid URL.
It worked great until it didn’t.
I was lucky because mine only bothered one user at a time.
I would be very afraid to have a RegEx in a place where an entire site was dependent upon it. I don’t trust none of them RegExes.
|
|
|
|
|
maybe they did not write any test cases for this regular expression
Caveat Emptor.
"Progress doesn't come from early risers – progress is made by lazy men looking for easier ways to do things." Lazarus Long
|
|
|
|
|
raddevus wrote: .*(?:.*=.*)
Oh no no no
|
|
|
|
|
Jamie Zawinski wrote: Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems.
|
|
|
|
|
Fantastic quote!!! Nailed it!
|
|
|
|
|
Is there such a thing as good regex?
Do no *;?~!
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
|
Researchers have demonstrated that our ability to solve mathematical problems is influenced by non-mathematical knowledge, which results in mistakes. "Math class is tough"
|
|
|
|
|
There comes a point when the desperation to publish becomes silly. Though, maybe someone will get their PhD out of this.
|
|
|
|
|
True experts in any field make mistakes at the simplest levels, because their heads are in the higher levels. Anyone who doesn't know this doesn't know any experts.
So whose tax money paid for this study?
If it was mine, I want my money back.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
We should stop all such searches for understanding and knowledge, and just ask you.
#SupportHeForShe
Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson
You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
|
|
|
|
|
My specialist subject is the bleeding obvious.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
It is true that the examples used are pretty damn simple and obvious. But maybe that was done to help illustrate the idea?
#SupportHeForShe
Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson
You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
|
|
|
|
|
My problem with the Smurf question is if the Smurfs are on the same floor then they have achieved the same height. How tall the Smurf is doesn't change where the bottom of their feet are. That question is thinking like a four year old, "I'm three stairs above you so I am taller."
|
|
|
|
|
The real question is, why did Lazy Smurf climb onto the table if he's so lazy? And Grumpy Smurf is too cantankerous to participate. So the whole enterprise is a no-go.
#SupportHeForShe
Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson
You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
|
|
|
|
|
Message Closed
modified 21-Jul-19 23:51pm.
|
|
|
|
|
Nick Schwertfeger wrote: Probably need to buy research paper... No thanks, toilette tissues are cheaper and softer
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
thy will be done...[^]
Pffft. 85. Barely worth it as a Bachelor's project.
Quote: We recruited 85 adults (50 women, mean age = 23.35 years,
SD = 7.82) in the Paris region. All had attended university
(mean length of university curriculum = 2.85 years, SD =
1.18), but none majored in mathematics
TTFN - Kent
|
|
|
|
|
Hmm, being pedantic, that study is not even correct.
Editing slightly:
Dave takes an Italian dictionary weighing a certain weight
He also takes a French dictionary
In total, he is carrying 14 kg of books
Anna takes Dave's French dictionary and a German dictionary
The German dictionary weighs 2 kg less than the Italian dictionary
How many kilograms of books is Anna carrying?
We know Dave is carrying 14 kg of books, but we do not know whether he is carrying any other books, so all we know is the Italian and French dictionary combined weigh less then or equal to 14 kg.
We also do not know how many books Anna is carrying, so anywhere from grams (dictionaries in microfiche) to however much you can cram into a backpack and still carry.
|
|
|
|
|
Frustrated by programming language shortcomings, Guido van Rossum created Python. With the language now used by millions, Nick Heath talks to van Rossum about Python's past and explores what's next. And now for something somewhat different.
We were going back and forth all day whether to include this (as it's mostly behind a registration wall). However, we decided to post it as some might be interested enough to read the whole thing (plus, I really like to see balanced counts on the two main lists).
|
|
|
|