|
Don't worry I'm sure you'll get them next time.
Simon Lee Shugar (Software Developer)
www.simonshugar.co.uk
"If something goes by a false name, would it mean that thing is fake? False by nature?" By Gilbert Durandil
|
|
|
|
|
Ohh yes - I've come across this many times before.
My particular beef are cyclists who wear black jeans, black jumper and a black hat (not a helmet) with no lights.
It's as if they want to die.
"Benjamin is nobody's friend. If Benjamin were an ice cream flavor, he'd be pralines and dick." ~ Garth Algar
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." ~ Paul Neal "Red" Adair
|
|
|
|
|
1.21 Gigawatts wrote: My particular beef are cyclists ... with no lights.
Even worse are those who have a flashing light on the front that strobes and completely f***s your vision and ability to respond properly.
Some men are born mediocre, some men achieve mediocrity, and some men have mediocrity thrust upon them.
|
|
|
|
|
Agreed - I tend to find it's those, dare I say it, 'Nazi' cyclists who use two of the fit inducing flashy lights just to piss of motorists.
(Cue the Godwins Law posts...)
"Benjamin is nobody's friend. If Benjamin were an ice cream flavor, he'd be pralines and dick." ~ Garth Algar
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." ~ Paul Neal "Red" Adair
|
|
|
|
|
|
Nice!
"Benjamin is nobody's friend. If Benjamin were an ice cream flavor, he'd be pralines and dick." ~ Garth Algar
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." ~ Paul Neal "Red" Adair
|
|
|
|
|
You want to try cycling mate, I wear reflective jackets and lights, but my bugbear is cars failing to dip their headlights for cyclists - I'm typically blinded for a couple of minutes while my eyes readjust.
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
Rob Grainger wrote: cars failing to dip their headlights for cyclists
Not just cyclists - some of them don't bother dipping their headlights for anyone. And they usually have their fog-lights on as well.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
This annoys me as well, but to be fair, you don't see a cyclist in the dark (even one with a decent headlight) more than maybe 50-100m away, at which point not dipping has already dazzled them.
I do dip when I see a cyclist but I know (as I cycle as well) that it's probably too late to avoid 90% of the annoyance already.
|
|
|
|
|
Last night I almost totalled a Mod on a scooter[^] - his bike was covered in lights, but none of them were switched on. If it wasn't for the fairly faint glow of some LEDs he had fitted under the chassi, I would not have seen him.
=========================================================
I'm an optoholic - my glass is always half full of vodka.
=========================================================
|
|
|
|
|
With that many lights, I suspect if they actually turn them on the scooter won't start.
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
RegEx clue of the day.
There is a string formatted like asdf=237462 123 xdec\=123 xdc=12344. The answer to this clue is the RegEx which eventually puts out
asdf
237462 123 xdec\=123
xdc
12344
Hint: ([^\s]*(?key1=234 SDF\=1234 asd=1233 xyz\=asdf supplies
key1
234 SDF\=1234
asd
1233 xyz\=asdf
as output
I will never again mention that Dalek Dave was the poster of the One Millionth Lounge Post, nor that it was complete drivel.
modified 20-Mar-14 6:28am.
|
|
|
|
|
Did you mean?
asdf
237462 123 xdec\=123 xdc
12344
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
|
No.
The trick is that you have a key-value pair KEY=VALUE, but the value can contain a "=", too (if it is escaped as ("\=").
I will never again mention that Dalek Dave was the poster of the One Millionth Lounge Post, nor that it was complete drivel.
|
|
|
|
|
Well, it's probably cheating, but:
(asdf)(?:\=)(237462\s123\sxdec\\\=123)(?:\s)(xdc)(?:\=)(12344)
will do it...
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
It is not probably cheating, it is cheating.
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
Entropy isn't what it used to.
|
|
|
|
|
Matches the input, supplies the output!
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
It's probably still cheating, but you can "generalize" my last "solution" to this:
(\w+)(?:\=)([\w\s\\]+\=\w+)(?:\s)(\w+)(?:\=)(\w+) Which also works. It depends what the "important factors" in your input are, and one example isn't really enough...
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
Looking at your answer my brain just exploded, coffee and screws scattered everywhere. Always knew I had a screw loose, but so many?
Along with Antimatter and Dark Matter they've discovered the existence of Doesn't Matter which appears to have no effect on the universe whatsoever!
Rich Tennant 5th Wave
|
|
|
|
|
One of the things I like about Expresso [^] is that you can tell it to ignore whitespace in the input string, so you can break the input into "phrases" - each on a signle line. If you do that:
(\w+)
(?:\=)
([\w\s\\]+\=\w+)
(?:\s)
(\w+)
(?:\=)
(\w+) It all looks easier:
(\w+) Any alphanumeric, one or more
(?:\=) Match an equals, but ignore it
([\w\s\\]+\=\w+) One or more alphanumeric, whitespace or '\' characters, a single equals sign,
then one or more alphanumeric again
(?:\s) Match whitespace, and ignore it
(\w+) Any alphanumeric, one or more again
(?:\=) Ignore another equals
(\w+) And finally any alphanumeric, one or more
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
Awesome thanks, I learned a few things from your explanation I hadn't known.
For what little RegEx I used to do I loved Expresso, it was a life saver in many instances.
Along with Antimatter and Dark Matter they've discovered the existence of Doesn't Matter which appears to have no effect on the universe whatsoever!
Rich Tennant 5th Wave
|
|
|
|
|
Glad to be of help!
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
I added another example, which blew your solution. Nevertheless, close you are.
I will never again mention that Dalek Dave was the poster of the One Millionth Lounge Post, nor that it was complete drivel.
|
|
|
|
|
Hey don't change the rules in the middle of the game, this is not Calvinball !
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
Entropy isn't what it used to.
|
|
|
|
|
Well if you are going to change the rules!
It's just a replacement of "\w" with "." in the final group:
(\w+)(?:\=)([\w\s\\]+\=\w+)(?:\s)(\w+)(?:\=)(.+)
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|