|
Gift-Giving - the Festival of Janus if I recall. Certainly Roman festivals - Wikipedia[^] a good way to drum up membership.
As things have turned out, Janus is the prototype/template for the modern politician.
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 seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Typical exclusionary behaviour, totally biased against Australians and New Zealanders!
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Richard MacCutchan wrote: So does Google think that mentioning the C word will offend people?
It'll offend their own staff.
|
|
|
|
|
I tried to implement unicode matching in my DFA based regex engine.
The trouble is that the ranges are huge (ranges of characters that are letters for example, for matching \p{L} and the like)
Keep in mind, below performance is related to time it takes to *generate the code* not time it takes the code to run (which is pretty constant.)
Most of my engine is optimized for ranges so this is usually fine, but I just learned that it's pretty much impossible? (i never like to use that word but there it is) to optimize a powerset construction to work with ranged data better, because computing the optimization takes longer than the time the optimization would save!
So to transform an NFA to a DFA with unicode could take an hour.
This means I can't use the algorithm i've been using for years (due to its simplicity and runtime performance characteristics)
I now know *why* modern regex engines are almost always NFA, not DFA, and I think it's because of unicode. This despite the engine being less internally efficient than DFA.
So now I need to learn to make an NFA based runtime matching engine efficiently and there is very little I can find online.
I did find a tutorial on building it that's rather nice, but it's in Swift which is a really weird language and I'm not sure I'm up for the learning curve just for this one bit of code. I guess I'll have to be though. Funny, because I'll only ever use it to learn how to do this particular thing, probably.
I feel kind of embarrassed for not knowing this for years, until I ran face first into it. I always thought I could optimize the powerset construction for ranges, and I planned to eventually but nope. You have to do it a character at a time.
Time for rolex 2.0 so i can build slang a proper tokenizer.
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.
|
|
|
|
|
I said "QUIET DAY TODAY, ISN'T IT?"
... tumbleweed blows slowly past ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
|
RELAX[^]
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
|
the piano -among the other- is so what great
It does not solve my Problem, but it answers my question
modified 19-Jan-21 21:04pm.
|
|
|
|
|
It's Saturday dude, chill.
|
|
|
|
|
Plus Christmas is around the corner so everyone is enjoying their holidays
|
|
|
|
|
I DIDN'T HEAR YOU! SAY AGAIN!
|
|
|
|
|
Forget your hearing aids?
If you can keep your head while those about you are losing theirs, perhaps you don't understand the situation.
|
|
|
|
|
Pardon? Could you repeat that?
|
|
|
|
|
|
No longer The Force with Code Project today.
|
|
|
|
|
Well, Darth Vader always knew what Obi Wan was getting for Christmas because he felt his presence...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
And it will be that way until the new year...
But you can call me if you are afraid alone...
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
|
|
|
|
|
Tell me when I am all alone. I want to remove the plugs from my ears!
|
|
|
|
|
|
OriginalGriff wrote: ... tumbleweed blows slowly past ... Vic must have told a joke, again.
(I'm curious to see how many people will get that)
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Well it was the shortest day, so everyone was probably up late, and back to bed early.
|
|
|
|
|
|
Mr. Cthulhu, please pick up a white courtesy phone in the Lounge.
Sooo... as part of my problem dealing with a "bad" internal web site (PHP donthaknow) -- Ignoring certificate errors with HTTPS[^] -- I spent much of the last week Parsing Html The Cthulhu Way[^] .
It turned out that by using a System.Windows.Forms.WebBrowser and retrieving the Document, I was actually getting a sanitized version of the HTML (and only the body). This is a problem, because when common sense breaks out, there will be no certificate error, no reason to use the System.Windows.Forms.WebBrowser , and I expect that I will then receive the entire nasty pile of HTML in its raw form (fingers crossed).
So, this week I looked into accessing the raw HTML from the System.Windows.Forms.WebBrowser ... I accessed its privates, and grabbed it by the primary Interop assembly. And, by gum, it worked.
"What did you find?" I hear you ask. It's more what I didn't find. The page contains most of a TABLE (as expected), but a few start tags are missing -- unimportant ones, like THEAD, TR, and TH.
Can you then fault me for summoning Cthulhu? What self-respecting HTML parser will deal with such a mess? (Other than IE, of course).
(Deep breath.) I spent today wrestling with HtmlAgilityPack , which dealt pretty well with the errors (TagNotOpened ) and I managed to use the errors to insert the missing start tags where they logically belong. Nifty. Perfect effort for the last day before a week off.
So, provided I can deploy HtmlAgilityPack to the server, I may be able to cancel my summons. In the meantime, I have the RegEx version on the server.
Now, at the risk of asking a Programming Question... does anyone know how to get HtmlAgilityPack to report TagNotClosed errors as well? It has an error type for it, but I haven't gotten it to report any.
|
|
|
|
|
upvoted for eloquent expression of misery
ยซOne day it will have to be officially admitted that what we have christened reality is an even greater illusion than the world of dreams.ยป Salvador Dali
|
|
|
|