|
Fie upon thee! I would not give even a fig of Spain for a fig of Newton!
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
I don't even own a Hawk.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Yet, in the future, I may Tur. After which, I will be Turd.
|
|
|
|
|
Don't ask meow.
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
I'm not sure who needs a USD126 WiFi-enabled ear wax removal kit, but someone thinks someone needs one:
This WiFi-equipped smart ear wax remover could literally save your hearing[^]
Quote: The Spade is stored inside the 3-in-1 charger, dock and storage unit, which can help keep the 350mAh battery in there working for up to 60 days on a single charge. Phew! I'd be worried it would run out before then.
TTFN - Kent
|
|
|
|
|
|
Hurry it's on sale just $80.99, Just use the code CLEAN13.
|
|
|
|
|
Now I'm thinking all the possibilities after hacking the WiFi...
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
|
|
|
|
|
<sarcasm>
What a wonderful idea! You could also use the same basic tech for DIY root canal, colonoscopies, ...
The possibilities are endless!
</sarcasm>
This (literally!) belongs in the Insider News!
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Whew. For a moment I thought they'd beaten me to market with my WiFi-equipped Smart Self-Open Heart Surgery kit.
|
|
|
|
|
BinarySerializer is a very useful tool, with much less "ceremony" (annotations) required than DataContract. It does have its own brutal ways: it will serialize private Fields.
The fact my WinForm app created an instance of another project (generic 'ctor) separate from the Form, and then called its internally defined Serialize/Deserialize methods ... that in turn used BinarySerializer ...
Well I didn't expect it to break trying to serialize with an error saying the Form must be marked as Serializable: after all, a WinForm is a Control, and you can't serialize Controls.
I went back over every part of the code: external Class project has parameterless 'ctor: check.
There were some properties of Type Action in the external project that had code injected into them at run-time in the Form Load event: I recalled that BinarySerializer ignored Properties being said somewhen by Marc Gravell.
After much gnashing of teeth, I finally let go of fantasizing that some new Framework version had screwed things up, and, went in and added [NonSerializable] attributes on the Action Property definitions.
Whoops: that's illegal: with BinarySerializer, that Attribute works only on Fields. Changed Actions to Fields, and voila, things save and restore as expected.
And now, I'm going to go outside and cry, because I have proven to myself, again, that my tendency toward certainty is my relentless enemy, and I burn with shame.
«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
|
|
|
|
|
I've never really liked the way the serializers work, but I understand why they work that way. I just wish there was a less ... kludgy way to do it.
Real programmers use butterflies
|
|
|
|
|
There are some very interesting serializer projects on CP including Mehdi Gholam's epic (10 years of development !) FastJSON [^], and SuperLloyds Galador serializer [^] .
@superlloyd where's your CP article on Galador ?
cheers, Bill
«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
|
|
|
|
|
You can add attributes to the backing field for auto properties / events by prefixing the attribute with field: - for example:
[field:NonSerialized]
public Action Foo { get; set; }
[field:NonSerialized]
public event EventHandler Bar; Attributes (C#) | Microsoft Docs[^]
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Once again you have proved your eagle-eyes see all, know all
Why the devil didn't I come across that in poring over the docs on BinarySerializer (again), and related threads on SO ?
The "field" prefix is mandatory on Properties of Type Action and Func ... and, I assume Predicate ... you don't want serialized, but, optional on Func and Action Fields you don't want serialized, where [NonSerialized] works fine.
«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
modified 1-Jun-21 9:43am.
|
|
|
|
|
... Version 91.0.4472.77 (Official Build) (64-bit)
Well, apparently it runs JS 25% faster than V90.x.y.z
And ... I have no way to measure it, but yes, it does seem faster to load CP pages on my Surface.
That may be me expecting to see improvement, but ... who knows?
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
OriginalGriff wrote: And ... I have no way to measure it, but yes, it does seem faster to load CP pages on my Surface. Are you sure that is really due to it? Maybe the hamster got a redbull this morning
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.
|
|
|
|
|
... that you can explain the purpose of in one (reasonable) line, say a sentence or two brief ones.
Mine is implementing a 2D polygon fill algorithm on a write only display device.
I know how in theory - vaguely - to do it, but it's mind bending to attempt in practice, and I say that as someone who writes old-school table based LR parsers.
UPDATE: Randor humbled me. There's an easy way to do this. I even knew about it at one point but blanked on it here. I am very grateful, despite feeling a little foolish.
My most complicated algo... probably GLR parsing. In terms of ones I haven't solved - there's one that should be simple but I can never get it right -> converting an NFA or DFA state machine into a regular expression.
Real programmers use butterflies
modified 31-May-21 10:18am.
|
|
|
|
|
|
a sentence or two brief ones.
or say, a tweet if I'm being generous. If you can put it in one tweet.
Real programmers use butterflies
|
|
|
|
|
Something bounded by two points.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Technowockally, that a line _segment_.
|
|
|
|
|
That must be the H.264 video encoding and decoding algorithm, I don't even want to look at the newer H.265 algorithm!
|
|
|
|
|
I've never tackled that one, I just punt that kind of thing to ffmpeg
Real programmers use butterflies
|
|
|
|
|
Many (~ 500) moons ago, I had to write a line "fitting" program with some unusual constraints. None of the usual "least squares", "cubic spline" etc. methods did exactly what was wanted, so I had to roll my own.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|