|
You bloody fool. That table alone gives him a fortnight of potential CCC clues!
If you can't laugh at yourself - ask me and I will do it for you.
|
|
|
|
|
DRHuff wrote: That table alone gives him a fortnight Maybe, he's also got many months before the next partial eclipse[^] passes over his home. Looks to be around the .43 zone.
|
|
|
|
|
I did say "corrupted"
"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!
|
|
|
|
|
I get the and condition for as an anagram indicator, but what's warranty doing in there other than to make it read well?
|
|
|
|
|
Yeah,
Greg Utas wrote: make it read well? Exactly. It's there to make it less Ximenean.
|
|
|
|
|
So the binary length shown in two nibbles indicates that you use two words from the clue?
|
|
|
|
|
Cryptic crossword puzzles have the length of the word at the end. Using binary was my way of making it a bit harder for the non-programmers. There are quite a few here in the Lounge.
Best Wishes,
-David Delaune
|
|
|
|
|
Most probably asked allready hundred time...
VS gives a lot of warnings and hints. Hints like 'put this and that in curly brackets or not', what else.
Why the hell VS can't give me a hint for really important things like 'pay attention you are using a class IDisposable' keep in mind to use it in a using block?
[Edit]
Ok, ok: But maybe then at least if I hover over the class name in VS, at least show me explicitely that it is IDisposable
[/Edit]
Only a noob's question
modified 11-Jan-22 17:21pm.
|
|
|
|
|
Probably because most of the time IDisposable objects are persisted for some time: for example, the Winforms Control class implements IDisposable, and Form is derived from that. You don't want a "Oi!" every time you add a form to your project, or a control to your form!
"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!
|
|
|
|
|
I agree on that. So the next question: Is it really impossible for the compiler to give me a hint when IDisposable is not used in a using block or not disposed explicitely? Most probably very hard, but not sure wheter it is impossible.
[Edit]
I think I found the answer by myself
if (random) obj.Dispose();
[/Edit]
|
|
|
|
|
The compiler can't - it can't keep track of objects that are created at run time and passed into / out of methods.
A simple example: create a disposable class in a method, return it as an object, and the compiler can't trace it any further as an IDisposable instance.
It would probably be possible to work it out within a method if the instance never leaves it, but that's non-trivial as well as the instance could be added to an array or other collection which could be part of a class instance which is returned by the method.
There are a lot of ways for the compiler to get it wrong and be more annoying than mixing tabs and spaces in Python ...
"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: be more annoying than mixing tabs and spaces in Python ...
I didn't think this (annoyance) was possible.
|
|
|
|
|
OTH: GC is able to detect not longer in use objects. Why not the same for IDisp?
|
|
|
|
|
Because it's not important.
Frequently I wrap an IDisposable object in another class and dispose of it when I dispose of the wrapper object, no big deal. I wouldn't want to have a warning I would have to disable to avoid an error when I compile with warnings as errors.
There are bigger bugs to fry.
|
|
|
|
|
But in case you use a class from a library: You really always check wheter it is IDisposable or not?
In my case it was ManagementObjectSearcher from System.Management .
To check you need to go back inhertitance until you end in Object or yes maybe before in IDisposable
|
|
|
|
|
Ah, well, I rarely use third-party rubbish anyway. Or VS.
Put it in a using and see if it compiles.
Or use Intellisense to see if it has a Dispose.
|
|
|
|
|
Intellisense, yes that would be nice. No idea where Intellisense shows it is IDisp.
Btw. third-party rubbish like ManagementObjectSearcher
|
|
|
|
|
P.S. Also consider classes which are IDisposable but which have private constructors, such as Singletons and classes which provide a static Create method.
Sadly, many bloggers pass along misinformation about IDisposable and the using statement.
|
|
|
|
|
Project -> Properties -> Code Analysis: Checked - Enable Code Analysis on Build
Project -> Properties -> Code Analysis: Dropdown Selection - Microsoft All Rules
You want to make sure you are getting warnings for code CA2000 Dispose objects before losing scope
|
|
|
|
|
|
How did you do the upgrade? I used AOMEI Backupper, which includes a specific "upgrade to SSD" option and it worked quickly and didn't give any problems. Apparently partition boundaries need to be aligned differently, so a straight "clone" may not work perfectly.
★ SSD Alignment - SSDs have different structures to HDDs so the partitions will need to be aligned along the SSD block boundaries during the cloning process. With this option, AOMEI Backupper will take over the job, as thus you don't need to worry about the alignment of the SSD and the speed of the cloned SSD.
Don't know how your disk is organised, but it's worth a try (and free).
"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: How did you do the upgrade?
I used Apricorn's SATA Wire and EZ Gig run from the CD drive. Basically, plug up the new drive to a USB, start the software on the CD, do the clone, shutdown, and swap the drives....easy peasy!
I've use it a couple of times previously with no problems whatsoever. I'm betting mostly on an ID10.T error here for the missing files/'differences'. For the speakers though it's entirely possible I pulled a speaker wire so hopefully that's an easy fix.
"Go forth into the source" - Neal Morse
"Hope is contagious"
|
|
|
|
|
For me, Family Tech Support is another source of income $$$. I don't help anyone under the age of 65 for free. Millennials are double the price.
|
|
|
|
|
Slacker007 wrote: Millennials are double the price.
... and boomers are triple. They blame all problems with their computer, pre-existing or otherwise, on your work. It's simply not worth the hassle.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Daniel Pfeffer wrote: and boomers are triple. They blame all problems with their computer, pre-existing or otherwise, on your work. It's simply not worth the hassle. I'm one of those boomers. I'm also the family IT guy.
I don't get complaints.
Software Zen: delete this;
|
|
|
|