|
W∴ Balboos wrote: HTML, it's essentially a subset of XML
Technically, they're both subsets of SGML[^]. It's quite possible to have perfectly valid HTML that doesn't even come close to being valid XML.
XHTML[^] was a subset of XML, but we all know how well that worked out.
That's why you can't use an XML parser to read HTML. You need tools that were designed for HTML, like AngleSharp[^] or the Html Agility Pack[^].
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
OriginalGriff wrote: But the HTML / Jabascript "solution" is well past it's sell by date, methinks.
Oh nos, even the Hutts use Javascript!
No wonder they couldn't capture Han without help, he's strongly typed and throws a casting error
|
|
|
|
|
I have been tinkering for the last week trying to swap out the spinning disk in my laptop with a new SSD. After a couple of failed attempts at cloning with Acronis True Image, I got some great advice from members here in the lounge. Following that advice, I tried again, this time moving the new drive to the 0 main bay before cloning, and removing the spinner afterward. This time, something different happened...just a few seconds after powering on it just powered off...no beeps, just off.
OK, maybe I've just got a bad SSD...good thing I bought 2! So I start all over and clone to the second new drive. After an hour, give it a go and...same thing...it just powers off with no indication that there is a problem. I decide to get out a Win7 installation disk and see if I can launch a repair utility or something...Well, that's strange, I can't boot to the DVD...some kind of error that the software image couldn't be verified...hmmm, here's a hint!
I go back to the bios again and find a setting named 'Secure Boot'. Turn this off and the machine boots up no problems! (and much, much faster!!!) I'm still not sure why the Secure Boot function was triggered if the drive was cloned...unless it looks at the original disk size???
"Go forth into the source" - Neal Morse
|
|
|
|
|
its interesting to read on the net what some of the features of Secure Boot are, but yes, you can live without it
well done
|
|
|
|
|
Number one troubleshooting rule - always look for a simple solution first, then get complicated after that.
|
|
|
|
|
|
Send me $100,000 and I'll try it for you
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.
|
|
|
|
|
What your bank account number?
Bryian Tan
|
|
|
|
|
|
I'm always searching for authors who explain things clearly.
When I'm trying to learn something I try to find angles on subjects from various sources.
I've often tried to really understand Big O notation and have never seen it really clearly explained until now in this book:
Amazon.com: Essential Algorithms: A Practical Approach to Computer Algorithms eBook: Rod Stephens[^]
He explains each format of Big O such as O(N^2) by displaying a very small algorithm in code which would result in the notation's form. It's really fantastic. Totally makes Big O notation useful in respect to classifying an algorithm.
Haven't gotten through much of the book but it's great so far. Very good read.
Anyone else read this book?
|
|
|
|
|
I will check it out, thanks. I had trouble with the same subject.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
raddevus wrote: Big O notation The Story of O[^]
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Caution: I think the Wikipedia link is a different "O". Nice bait and switch
|
|
|
|
|
WORKS LIKE AN ANT
There is a meter long rope tight between two poles.
An ant starts running at the speed of 1 cm/s from one end of the rope to the other. At same time the poles are moving back a 1/2 m/s each, stretching the rope (the rope is magical and can be stretched infinitely).
Will the ant ever arrive?
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
The poles are moving away from each other at 500 cm/s?
|
|
|
|
|
Yes (that what I meant by 'back')...
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
50cm I take it, though for some reason I think he meant .5cm/s.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
1/2 m = 50 cm...
And I meant that and not 0.5 cm...
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
That's why I said 'I think' and not 'I correctly think'.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
Durp! Said cm but gave the number for mm.
|
|
|
|
|
My mistake...
I somehow stopped at the 'each other' part and cleared the '500 cm/s'...
It is away - yes, but only at 50 cm/s... (but that's probably irrelevant anyway)
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
SO, each second the ant moves 1cm closer to his goal, which moves approx 50cm further away from him in the same second.(actually, I think in the first second it move 99.5cm away).
So, no, he's never going to reach it.
Truth,
James
|
|
|
|
|
Yes. The actual speeds are irrelevant to the solution as well. Each time the ant moves, more of the rope expands behind the ant than the previous move and less in front. Eventually when the ant reaches the mid-way point the rope is expanding equally in front and behind. As it moves closer to its destination more and more of the rope is expanding behind the ant. This means that eventually the ant will reach its destination because eventually less rope will expand in front of the ant than the ant can travel which will land the ant at his destination
|
|
|
|
|
Or in other words - it will be a very-very old ant when getting off the rope...
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
Approximately 8.547e+35 years if my math is correct
|
|
|
|