|
But an assert means the program is crashing and this is extrem bad when I want to debug that issue.
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
Put a breakpoint on the assert() statement.
The debugger is your friend.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
and so it explodes one step later.
Maybe I should tell you that I work with XCode in which moving the next call with the mouse doesnt work
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
Despite having \\SGNAS in my Hosts file, my desktop is fine, but my Surface keeps losing SMB1 devices completely, via IP or domain name.
This was getting frustrating ...
Then I found this - ProviderFlags ([Samba] Re: msdfs root problems even after a reboot?[^]) and it seems to be working so far:
1) Open Regedit and accept UAC.
2) Navigate to HKEY_CURRENT_USER\Network
You should see a list of mapped drives as individual keys:
A
B
M
P
S
V
W
X
3) Open each drive twig and add a new DWORD32 Key named "ProviderFlags".
3) Set the value to 1 (you can just press ENTER to open the edit box once it's highlighted)
4) Reboot.
With the domain / IP mapped in Hosts*, all seems fine and indeed considerably faster than it was before the 2004 upgrade!
* Easy to do:
1) WINKEY, then type "notepad" - right click and select "Run as Administrator"
2) Accept UAC
3) Open the file "%systemRoot%\System32\Drivers\etc\hosts"
4) Add your mapping: "192.168.0.11 \\SGNAS #Seagate BlackArmour 16TB" is mine
IP first, then at least one space
Domain next, I use the \\ prefix but I'm not sure it's needed. (If it ain't broke ...)
Anything after "#" is a comment.
[edit]
I've written this up as a tip: Finding my network shares on SMB1 drives after the Windows 10 2004 update.[^] so it survives a little longer than this thread will!
[/edit]
"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!
modified 23-Aug-20 8:12am.
|
|
|
|
|
Given that SMB2 has been around since 2006, there is no excuse for NAS providers not to support it. Given the known security flaws, supporting only SMB1 is IMO criminally irresponsible.
For that matter, even SMB3 has been out for over 8 years.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
While it is true for new devices - let say after 2008-2010, MS has no excuse to drop them just like that...
(We gave 20 years of support, so we still have some Novel-area servers from the 2nd century... In case...)
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
|
|
|
|
|
Unfortunately, that doesn't mean NAS manufacturers will update older devices, even f it is probably just a case of loading new drivers into the kernel.
Too many companies assume that nothing needs maintenance or updates once they have your money ...
"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!
|
|
|
|
|
Checked on my VM and the connection is stable, however do not know about speed (maybe these devices are too old for that)...
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
|
|
|
|
|
When I opened a file from the NAS, there was always a couple of seconds delay before Excel, Word, or VLC opened and began loading it - I always assumed it was the NAS spinning up disks from the "power saving" state.
But now it's pretty much instantaneous. Noticeable difference!
"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 had never such delay... I do not think that theses old disk can go to sleep (or they sleep always anyway)
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
|
|
|
|
|
Until just now I believed negative integers were just a flip of the first bit. Wow, how wrong I was, for MANY years! Are there some architectures where that is the case, to make myself feel a little better?
|
|
|
|
|
There are two ways to represent negative numbers: "sign & magnitude" and "two's-complement" - the "flip the top bit" approach is the former, and was used extensively by IBM until around the 70's bby which time it was clear that two's complement was a "better" solution (i.e. easier to implement in hardware, and didn't have a "negative zero" which is a odd concept all on it's own).
"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!
|
|
|
|
|
OTOH, two's complement has an oddity that -MINVALUE == MINVALUE, which for some use cases is even worse than "negative zero".
(e.g. in a 16-bit system, MINVALUE = -32768 == 0x8000, and -MINVALUE == (~MINVALUE + 1) == 0x8000)
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
That depends, some systems have a "negative space" that is one larger than the positive space (or consider 0 to be a positive number, which is also an odd idea)
We'd need to move away from binary computers to sort all this crap out!
Can I suggest trinary? "True", "False", and "Dunno"?
"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!
|
|
|
|
|
If you have a "negative space" that is one larger than the "positive space", then you must either have the anomaly that I discussed, or raise a flag/generate an exception when calculating -MINVALUE. Both are bad solutions, but the latter is safer, in the sense that you won't get bad results without knowing about them.
We could avoid the anomalies and use any base we wished, if we didn't insist on encoding the sign as part of the number. For example, we could use a trinary value (positive, zero, negative) to represent the sign, and whatever base was convenient to represent the magnitude. If the sign is zero, the magnitude would be ignored. The problem, as you stated in your original answer, is that this is much more difficult to implement in hardware.
EDIT: IIRC, the Zuse Z3 (?) actually had a trinary sign bit.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
And can you imagine the fun of explaining XOR in a trinary system in QA?
It makes my head hurt to think what a XOR b would actually work out as in trinary ...
"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!
|
|
|
|
|
In a trinary-sign computer, there would be a much bigger difference between logical and arithmetic operations.
One way to do so would be to enforce that only non-negative values may be used in logical operations.
A better solution IMO would be to ignore positive or negative signs, performing the logical operation only on the magnitudes. A zero sign would indicate that the magnitude must be "normalized" to zero before performing the operation. The result of the operation would either have a positive sign (if non-zero) or a zero sign (if zero).
I leave the design of the hardware as an exercise to our hardware colleagues...
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
The Russian Setun computer (1958) was a base 3 computer, but I have no idea how it represented negative numbers
|
|
|
|
|
Ger2001 wrote: The Russian Setun computer (1958) was a base 3 computer
Ah, so it could represent the thesis, the anti-thesis, and the synthesis in a single digit.
My proposal was for a CPU that has a signed-magnitude representation, but with a sign indicator that has three possible states - positive, zero, and negative. The magnitude might be in binary or any other convenient base.
To my knowledge, this has never been tried, presumably because the hardware would be more complex than the currently popular twos-complement implementation. OTOH, my proposal would eliminate the anomalies of "signed zero" and of a negative range larger than the positive range. It would also be more consistent - unary minus would operate properly on all numbers in the range, which does not apply to the minimum value in a twos-complement implementation.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Save us all our pain: just use a unary system of 'Dunno'! All our problems would be solved, and none of them could be! How very Schrödinger-ish!
|
|
|
|
|
OriginalGriff wrote: Can I suggest trinary? "True", "False", and "Dunno" "Null"?
As in SQL null, not C# null
Wrong is evil and must be defeated. - Jeff Ello
Never stop dreaming - Freddie Kruger
|
|
|
|
|
You've got 1's complement as well, which I believe was far more common in the '60s and '70 than sign-magnitude. Wasn't the Univac 1100 series all 1's complement? Some CDC mainframes as well, I believe. I believe that you have to go back to designs from the '50s to find sign-magnitude integer representation.
For floating point, I have never seen anything but sign-magnitude, though.
|
|
|
|
|
The Univac 1100 was indeed 1's complement. As was its mid-80s successor the 2200.
|
|
|
|
|
Along with the odd concept that the genitive of it is it's. It isn't it's, it's its.
|
|
|
|
|
The longest programming misconception that I have held?
That one day I will understand asynchronous functions in javascript.
Seriously, despite having worked often and in different javascript frameworks with asynchronous functions and await calls to those functions, I keep getting tripped up by the asynchronous nature of javascript.
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
|
|
|
|