|
Pull out a bottom card and watch them all crash down.
Just kidding, but figuratively you should try something like that. Try some unexpected inputs and see how it handles the perturbation.
"They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"
modified 18-Aug-19 19:03pm.
|
|
|
|
|
That's rather the point
I even have a test where it takes erroneus inputs and even with errors its expected to be able to complete the parse *AND* reconstruct the entire document based on the nodes therein. I compare that reconstruction with the original input so it's very demanding in terms of precision. Everything has to be reported even in worst case scenarios.
The LALR(1) parser does not pass these tests, but the LL(1) parser does.
Still, I'm satisfied enough with it for now. The error handling in the LALR(1) parser is going to be dodgy until i get my copy of the dragon book and can look at what they recommend.
This isn't standard error handling. This is being able to handle a situation where the input does not meet the expected format, and yet you have to continue parsing. It can be challenging.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
honey the codewitch wrote: This isn't standard error handling. This is being able to handle a situation where the input does not meet the expected In the automation world we say, you are so good as your "home run".
To program the "automatic mode" step chain is the easy part, no matter how exigent is the process. The most difficult part is mostly the "home run" (bring the machine, production line back to the "ready to start" or "ready to continue" after an error)
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.
|
|
|
|
|
pretty much exactly this.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
This could be a valuable tip/trick or article. cheers, Bill
«Where is the Life we have lost in living? Where is the wisdom we have lost in knowledge? Where is the knowledge we have lost in information?» T. S. Elliot
|
|
|
|
|
Well, basically there are a whole bunch of security holes in software that we all write where we do not parse inputs. And to top that off, even if you don't have an internet connection, you can still mess up parsing enough to crash your own computer. I have done it so I know it's possible. There was even an old way for mac users to secure their passwords relying on bad parsing, they would put control-alt-delete in their password which would cause a PC using hacker to reboot their computer if they tried to use the password.
|
|
|
|
|
AnotherKen wrote: software that we all write where we do not parse inputs That's the point, this one DOES parse the input, it's the whole point of the software.
I'm assuming this was written in C++.
Getting an AccessViolation in C# like that requires an advanced level of incompetency.
But the parsing would basically just be "Line starts with H? Get first eight characters, then get the next 11, then 11 after that, etc. until you're out of characters."
If the line starts with a V it's a bit trickier since the length of the groups depends upon a value in the nearest H line above it, but still not very difficult.
It should be really easy to check if you've got enough characters for both lines.
You always know how many characters you'd expect and how many you've got left.
This isn't rocket science, especially since it's just a service doing "get input, parse input, do something with input", no system level functionality
|
|
|
|
|
So ... does anyone know how to transfer the panes layout from one to the other? I'd really like them both the same, but it's a frustrating process getting the right, and although I can save the layouts, I can't find where they are saved to copy them to the new machine ... and the VS settings dialog is getting less helpful with each iteration.
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Ok, I get this question a lot, so here's what you do...
Take both machines and place them next to each other.
Then, with all the strength you can muster, slam them together really hard so that data from one machine can jump into the other.
Be careful though, if you slam too hard, or in a wrong angle, or even just time it wrong, your machines will break and you'll lose all your data.
It's tricky but it can be done.
If really all you want is to transfer the screen layout, simply unplug your monitor and plug it into the other machine while leaving your monitor in front of the machine that you want to copy.
Hope this helps
|
|
|
|
|
Damn! I need to transfer from the desktop to the surface and you method only works the other way.
I tried feeding the surface into the DVD slot, but the door wouldn't close. Help!
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
OriginalGriff wrote: but the door wouldn't close Just push harder
|
|
|
|
|
|
Salt-N-Pepa was always one to rap about modern IT problems.
Their lyrics have helped a generation of IT nerds and helped shape the modern IT landscape
|
|
|
|
|
A little dwarf just walked around a corner, saw you, threw a little axe at you (which missed), cursed, and ran away.
You are in the Hall of the Mountain King, with passages off in all directions.
There is a little axe here.
A huge green fierce snake bars the way!
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
|
|
OriginalGriff wrote: or preferably, a less "muddy" version, where you can hear the singers properly There are no singers in that song
And I'm pretty sure Grieg has been SOTW at some point (although I can't find it).
My favorite Grieg piece is a little less well known though... Grieg Lyric Pieces Book VIII, Op.65 - 6. Wedding-day - YouTube[^]
I find it quite calming, like a flower field on a nice spring day
OriginalGriff wrote: Trans Siberian Orchestra Carmina Burana - YouTube[^] I prefer the original[^] or the techno version[^]
Fun fact, that piece is O Fortuna, which is the opening of Carmina Burana, a cantata written around 23 medieval poems that aren't all as majestic (they also deal with booze, gluttony and lust).
O Fortuna is so well known and popular, and the rest isn't, that Carmina Burana is now mostly used interchangeably with O Fortuna.
OriginalGriff wrote: why isn't that SOTW? There's classical music in the SOTW from time to time
|
|
|
|
|
I visited Grieg's house in Norway, does that count too ?
Strange thing was that I was immediately unmasked as being Dutch, the guy that did the tour turned out to be a Dutchman too
|
|
|
|
|
RickZeeland wrote: I visited Grieg's house in Norway, does that count too ? Cool, must've been nice!
We Dutch are usually unmasked pretty quickly... "Kijkeh kijkeh nie kopeh" is a phrase mockingly said throughout the world
|
|
|
|
|
free bird (that was captured in the cage on your way to the Hall of the Mountain King)
The bird drives the snake away.
You are in the Hall of the Mountain King.
I still remember N-N-N-U-D to escape one of the mazes.
(Search for Colossal Cave Adventure on your phone's app store)
|
|
|
|
|
To date both it and me, I used to have the FORTRAN source code for the game on microfiche.
I used far, far too much processing time on a Prime 400 playing that, to the point I got complaints from the operators.
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
the export * import settings doesn't do that for you?
I've imported my exported settings into a few VM's (including from 2013 to 2017) and the panes came out the same after that.
Message Signature
(Click to edit ->)
|
|
|
|
|
No, like a fool I used "Window ... Save Window Layout" and gave it a name.
Then I looked for a file with that name, or that name in the settings file, or ... As I said, I hate the VS Settings dialog.
Thank you for that, it worked.
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Quote: Why do fools fall in love?
Why do birds sing so gay
And lovers await the break of the day
Why do they fall in love?
|
|
|
|
|
I was in my double digits, yet not quite a teen, and 8000 miles away from Bethel, NY. Saw glimpses of Woodstock in Life magazine (my lifeline to a world half a planet away), and felt a magical connection that I couldn't express to most people at the time. About a year later, watching the film by the same name on the silver screen, I knew some day, one day, somehow, I would find myself in the land of CSNY and Apollo 11. That didn't happen until I turned 20. Making music (and writing code) have brought me so much joy, I sometimes have to pinch myself.
Assuming you existed at the time, where were you, pray tell?
/ravi
|
|
|
|
|