|
Just solved an issue without Googling it using AI.
|
|
|
|
|
Kudo's! (it is always the missing constraint)
>64
Some days the dragon wins. Suck it up.
|
|
|
|
|
For a recent birthday I got a new Dell XPS desktop. It is a beautiful machine with fast 64GB DDR5 memory and two M.2 connectors for NMVe drives on the main board. I did not like the somewhat slow NVMe that Dell installed as a systems drive, so I replaced it with a fast Samsung 980 PRO NVMe.
I was doing quite well with a clean install when I got to trying to install a very old cd/dvd application for dvd burning. It had 2 separate plugins for Dell machines that you had to run separately. This app was from the days of Windows 2000 or XP and I should have known beter than to fool with such an old piece of software.
When I tried to run the second plugin, it suddenly reported that there were no drives attached to the machine. Next thing the operating system died and the machine refused to restart. I could get into the BIOS but that was all. Nothing I did in the BIOS did any good. There were no visible drives in the machine (I had previously installed 2 NVMe drives and 2 regular Sata SSDs). It also had no visible USB3 ports so I could not boot from a repair flash drive.
Later it occurred to me that the USB2 ports were still working, so I did have a functional keyboard and a mouse to work the BIOS with
After a couple of hours struggling, and starting to panic big time, in desperation, I decided to uninstall all 4 drives one at a time. But I did not hold out much hope that this will achieve any result. But when I removed the systems drive, the machine suddenly came to life! What a relief!
Hours later, having re-done a clean install on a different drive, I started to figure out what happened. Using Diskpart I inspected the defective systems drive and it reported the drive was "off line". Running the Diskpart command "online disk" on the drive, immediately brought it back to life!
That plugin that killed the machine must have knocked the systems drive off line. When the systems drive went off line, it must have blocked the entire PCI bus to which it was connected. Hence no drives or USB3 ports worked. That will teach me to mess with very old software in a brand new machine! That old software worked like a charm on machines that it was intended for.
My machine is now back and running beautifully on the Samsung 980 PRO!
Get me coffee and no one gets hurt!
modified 18-Apr-23 19:47pm.
|
|
|
|
|
Wow. happy you got it working, but don't even get me started on trying to clone NVME drives. What a boondoggle.
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|
|
Love these Samsung Pro NVMes. I got the 990 Pro which was pricey, but OMG, it's so ridiculously fast.
Because of the cache it's got, my compiler can peg core 0 when dealing with a bunch of tiny C/C++ implementation files. I don't think I'd get nearly the performance otherwise.
So I know where the money went, and I'm happy. Love these drives.
I'm glad you got your machine back online. System drive failures are scary.
To err is human. Fortune favors the monsters.
|
|
|
|
|
I was tempted to get the 990, but I read several reviews that the 990's performance started to degrade soon after deployment. I would love to hear from you in due course, whether you had the same experience!
Get me coffee and no one gets hurt!
|
|
|
|
|
Yeah, I read that too.
I also read the same thing about their 980 drives
So considering how many people on the internet are full of excrement, and get paid to fling said excrement I don't give those reviews much stock.
To err is human. Fortune favors the monsters.
|
|
|
|
|
I will from time to time check the performance of my 980s. I may upgrade to a 990 at a future date. I love the speed of these drives!
Get me coffee and no one gets hurt!
|
|
|
|
|
|
thanks
To err is human. Fortune favors the monsters.
|
|
|
|
|
I also have a year old XPS with a nice RTX 3050 and I'm planning to add additional NVMe drive. The only thing that holds me back is I'm afraid from opening it - so many screws. So far, the only intervention with the BIOS I've done is changing keyboard lights - now the keys are lit indefinitely.
Advertise here – minimum three posts per day are guaranteed.
|
|
|
|
|
I am currently picking up an old project of mine which is basically a parser for a relatively basic code syntax for industrial automation. This is the first time I've used C# for real in many years and I've switched to VC2022, dotnet 4.8
The amount and quality of auto-complete and tab completion suggestions is... scary.
To my surprise, the C# IDE understands what I am doing well enough that it literally suggested this line of code for tab completion after I typed 'if'
if((index >= range.Start) && (index < range.End))
I've been coding all day and it doesn't always make suggestions but when it does, they are almost always very close to what I wanted.
|
|
|
|
|
Yes, it's stunning. And also when I'm manually refactoring (meaning not search & replace) something with a repetitive change, it realizes what I'm doing so when I mouse over the next piece of code I need to change, it's often blocked in red and all I have to do is hit tab to accept the refactoring change.
If you wonder why I don't just do search&replace for this kind of change, it's weird, it give my brain some breathing room to consider the question "does this change actually make sense?" There are times when I realize, nope. Ctrl+Z time, lol.
One amusing note. I type so fast that often the IDE makes the correct suggestion but I'm typing furiously so I see the suggestion flash by. At which point I delete the few extra characters and start over, more slowly, so I can just hit Tab. Not sure that's very productive.
|
|
|
|
|
Get the heck out of my head.
I could have written your post.
To err is human. Fortune favors the monsters.
|
|
|
|
|
Marc Clifton wrote: If you wonder why I don't just do search&replace for this kind of change, it's weird, it give my brain some breathing room to consider the question "does this change actually make sense?" There are times when I realize, nope. Ctrl+Z time, lol. Ditto! Some times a global search-n-replace will do exactly what is needed, but other times? In carpentry the rule is "measure twice, cut once". In IT it should be "think twice, change once".
Ctrl-Z works ... IF the problem is caught soon enough.
|
|
|
|
|
Marc Clifton wrote: I type so fast that often the IDE makes the correct suggestion Interesting, Marc. My typing habits have altered to wait the ½ second or so for the auto-complete to appear and use it if appropriate. I've even had to disable some of the auto-completions since they were disruptive. If you have a seizure disorder the number of popups, tooltips, and other visual gewgaws in Studio these days are more than enough to trigger a grand mal episode.
I develop in both C# and C++, and the C++ auto-complete is still poor in comparison. Switching to a C++ project is irritating for a while when my fingers are thinking "c'mon, you know this crap, pop up the name already" .
Software Zen: delete this;
|
|
|
|
|
Quote: it give my brain some breathing room to consider the question "does this change actually make sense?
Doing that gives my brain time to think through - contemplate - the ramifications of the change. Almost like a meditation.
Also it let’s me see/verify exactly where the change is applied.
Time is the differentiation of eternity devised by man to measure the passage of human events.
- Manly P. Hall
Mark
Just another cog in the wheel
|
|
|
|
|
Yes, but ... it missed the "<=" for the range end. It lulls us.
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
Yeah I had to correct that. But still impressive. Especially since when I opened the curly bracket after the if statement, id autocompleted the actual code I was going to type there, and then autocompleted the return statement. That was spooky.
|
|
|
|
|
That sort of subtle error is why I disabled the fancier auto complete stuff after a week or two.
Checking for them and fixing the ones I saw took as long as manually entering the code.
Debugging the ones I missed often took a lot longer because the code that was failing wasn't the same as the code I thought I'd created; and those problems normally take me longer to find than ones where it's a logic error.
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
|
|
|
|
|
Sort of like self driving cars? It catches even ones that you might miss but the ones it does miss can be real killers?
|
|
|
|
|
Some libraries use a “fake” end of list, so you would want < on those. Trying to access the end would throw an exception.
Like EOF with some DB record sets.
|
|
|
|
|
How did it "miss" that? That might've been the correct choice.
Working with inclusive begin exclusive end ranges is the only method that works consistently without getting gaps or overlaps when using not just integers but also floats or date-times.
You'll find this in many libraries, e.g. std c++ containers.
|
|
|
|
|
I was thinking of C++ std library as well.
I am not sure if newer C# libraries follow C++ or not.
|
|
|
|