|
1. The lounge is for the CodeProject community to discuss things of interest to the community, and as a place for the whole community to participate. It is, first and foremost, a respectful meeting and discussion area for those wishing to discuss the life of a Software developer.
The #1 rule is: Be respectful of others, of the site, and of the community as a whole.
2. Technical discussions are welcome, but if you need specific programming question answered please use Quick Answers[^], or to discussion your programming problem in depth use the programming forums[^]. We encourage technical discussion, but this is a general discussion forum, not a programming Q&A forum. Posts will be moved or deleted if they fit better elsewhere.
3. No sys-admin, networking, "how do I setup XYZ" questions. For those use the SysAdmin[^] or Hardware and Devices[^] forums.
4. No politics (including enviro-politics[^]), no sex, no religion. This is a community for software development. There are plenty of other sites that are far more appropriate for these discussions.
5. Nothing Not Safe For Work, nothing you would not want your wife/husband, your girlfriend/boyfriend, your mother or your kid sister seeing on your screen.
6. Any personal attacks, any spam, any advertising, any trolling, or any abuse of the rules will result in your account being removed.
7. Not everyone's first language is English. Be understanding.
Please respect the community and respect each other. We are of many cultures so remember that. Don't assume others understand you are joking, don't belittle anyone for taking offense or being thin skinned.
We are a community for software developers. Leave the egos at the door.
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
modified 16-Sep-19 9:31am.
|
|
|
|
|
I've been using a WD external spinner as a 'data drive' for the last 2 years. Up to now, it's worked great, mostly plugged into my main system, but also travelling with the laptop as needed...such as yesterday. This morning when plugging it in to my main system, Windows complains that it is unreadable or corrupted!
I'm now scanning it with Defender (going on 2 hours now) as a preliminary to trying anything else. The 'Estimated time remaining' got down to < 11 minutes (about an hour in) but has since been increasing as the number of files scans flies past 2.5M.
I intend to try chkdsk once the Defender scan is complete...if it ever does. (time remaining still climbing)
So, back to the subject line. Given the current price/GB, performance, and reliability of SSDs, I highly doubt that I will ever buy another spinner. Even if I'm able to recover the current drive, I don't trust it anymore and will be replacing it asap.
Question: Has anyone here actually experienced a failure with an SSD? Just last year, I retired my first one (64GB Patriot) after 5 years as a server OS drive, not due to failure, but as part of the server upgrade. Personally, I've not had any issues whatsoever with them.
"Go forth into the source" - Neal Morse
|
|
|
|
|
kmoorevs wrote: Question: Has anyone here actually experienced a failure with an SSD? Yo (Yes and No).
No because the laptop continues working as always, no performace lost, no error messages or whatever I would say it is having problems. Several checks successful, diagnostic tools found nothhing...
But yes, because I don't know why (and I have tested a lot of things) I can't do a successfull image anymore. I mean:
Same SSD has been in Lappie, since I gave it to my wife. I have done my standard procedure a couple of years (meaning... restore image once or twice a year, updating what needed to be updated and doing a new image to restore from next time). But somewhen some months ago... it stop restoring from the backups. I can do them, they are OK if I scan with the ghost emulator, but every try I have made to restore has been unsuccessfull.
I now sync the data partition with external drive every X days, but System partition is "in the wild mode"
Same SSD serie (a bigger model) is on my pc and nothing...
kmoorevs wrote: Up to now, it's worked great, mostly plugged into my main system, but also travelling with the laptop as needed...such as yesterday. This morning when plugging it in to my main system, Windows complains that it is unreadable or corrupted! I have had similar messages randomally after using the USB-Drives in other system.
Win 7 offers to "check", "restore" or "do nothing". I select "do nothing", save content to the pc, do a fast format... message is gone next time I plug the stick in.
With tiny USBs, no issue, with bigger ones I just keep hitting the "do nothing" until I have time, mood and space to move the content to another place so I can do a fast format.
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.
|
|
|
|
|
Didn't Richard Nixon once store a sort audio clip on one?
|
|
|
|
|
Okay so I was kind of surprised this compiled:
if (null == default(T)) _array[_head] = default(T);
Where T is a generic type parameter
The reason I thought it wouldn't is because T can be a value type.
It's too bad I don't know if that operation boxes or not. It's kind of important. Now I have to disassemble just to know the spec on it. You should never have to do that, especially for a language that is supposed to be standardized, because if there's no standard for that behavior then different implementations are free to implement it how they like.
Maybe it's in the spec and it got buried, but I can't find it to save my life. Grrr.
Edit: Yes, it causes the default(T) to be boxed (at least in MS's DNF implementation)
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.
modified 3hrs 5mins ago.
|
|
|
|
|
Why would you expect them to document it? Nullable types weren't in the original C# - they arrived at .NET 2.0 - so a value type would have to be boxed to compare it against null since only reference types can contain null values.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
They should be amending, and typically do amend the specs when new versions are released. They have to in order for it to be standards based. The other reason to consider that it might not have been boxed was added optimization for T once they added generic support post 1.x
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.
|
|
|
|
|
Quote: Okay so I was kind of surprised this compiled:
if (null == default(T)) _array[_head] = default(T);
Where T is a generic type parameter Strange, why won't it compile? It just says, "if the default value for this type parameter is null, then set the element at the _head in the _array member as the default value of type T."
To prevent this code from being compiled, you should apply the constraints, that would limit the type that can be used here. C# provides class , struct , notnull and many more as a constraint in this case. To prevent the code from being compiled, you should consider these.
class GenericArray<T> where T : class
{
public void Insert(T parameter)
{
if(default(T) == null)
{
Console.WriteLine("null");
}
}
} This code would not accept a value-type (System.ValueType ) in the parameter, and would prevent the code from building; note that it is not the line you expect to break the build.
But remember, the application of these constraints would also make your if...else blocks less sensible. For example, if you apply the class constraint then the condition is always true, and the value will always be set to null in the head element, which would be repetition as the default value is set to null for you. Similarly, application of struct as a condition would make this line of yours not build.
class GenericArray<T> where T : struct
{
public void Insert(T parameter)
{
if(default(T) == null)
{
Console.WriteLine("null");
}
}
}
I like reading the template programming concepts, although C# is no way near template programming (such as in C++), the promise of template programming is huge.
Template metaprogramming - Wikipedia
Quote: It's too bad I don't know if that operation boxes or not. One of the times when I really miss the old MSDN documentation which was professional, and always accurate. Now, anybody (including peeps like me) can edit the document from one point-of-view and mess it from all other angles. I recommend adding these points to the Microsoft Docs, you can do that with a GitHub account.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
To be clear, I didn't want it to not compile. I actually wanted it to work if it didn't box.
Turns out i don't really need the check there anyway, I was primarily just seeing if it would work before i inserted it into my more complex routines that do batch copies of segments of the array.
What I wanted was to avoid doing things like calling Array.Clear unless it was a reference type but i wanted to check that without boxing. Unfortunately it boxes. That's okay for my methods where i must clear whole segments, but not where I'm clearing an individual item.
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.
|
|
|
|
|
So a friend asked me out to watch some local bands last night.
Sure, I'll go.
Didn't feel like going because it required me to leave the house, but I already said yes so let's get it over with.
When we're there, this girl walks up to my friend and apparently they knew each other.
So my friend asks her "how did it go?" (apparently, she just played on stage).
"I was so nervous. I like a bit of attention, but not like this. I'm never doing this again."
So I thought I'd try to be social and chime in, "try a beta blocker next time, it's a small pill and all your nerves will be gone."
I know because I use them when I have to do presentations.
Apparently, they're popular among students taking exams as well.
She looks me dead in the eye and says "I'd rather sniff something, but I've been clean for one and a half month now so I'm not taking anything."
Not the answer I was expecting.
Next time I'll just stand there and say nothing like I usually do
|
|
|
|
|
You need a reason not to talk to people? I don't. 
|
|
|
|
|
Usually, no
|
|
|
|
|
In the music scene, you didn't expect singers to be snorting?
Such a sheltered life you have led!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I never said she was a singer
I live on an island with the nickname "the white island" (and not because its inhabitants are mainly white), but I've never known anyone who was on (hard) drugs. I think...
We have a lot of farmers who have sheds in the middle of nowhere, great for drug labs.
The musicians are all hobbyists, so they can't live the drugs, sex and rock n roll lifestyle in weekends and be at work/in school on Monday
|
|
|
|
|
Sander Rossel wrote: The musicians are all hobbyists, so they can't live the drugs, sex and rock n roll lifestyle in weekends and be at work/in school on Monday You would be surprised what can be done during the weekend and still be in the school on monday
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.
|
|
|
|
|
Yeah, but as you get older the possibilities become limited
|
|
|
|
|
I wouldn't say that... possibilities don't get limited.
But getting up on the next day gets worst, that's for sure...
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.
|
|
|
|
|
Quote: But getting up on the next day gets worst, that's for sure
But when you reach my age, you jump out of bed just to see the sun rise one more time! 
|
|
|
|
|
If I had a party now as the ones I had 15 years ago... I would not jump out of the bed, I would be more than happy if I could crawl or roll out of it
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.
|
|
|
|
|
Rather than blowing away the nerves with some chemicals I would suggest do expose you again and again and again to an audience. It is something one can train like other stuff
And believe me I was sometimes nearly out of order because of the nerves, but doing it again and again helped me to become familiar with the situation.
It does not solve my Problem, but it answers my question
|
|
|
|
|
Yeah, but no.
When I have to say my name in a group my heartbeat goes to at least 200 bpm.
When I have to tell a bit about myself I forget who I am and what I do.
When I have a presentation about Azure or whatever I do not only forget who I am, but everything I ever knew.
I also start to stutter and sound like a sheep, if I say anything at all.
At school, during a co-presentation, I once hit my knee against a desk because I was shaking so hard I couldn't control my body.
It hurt like hell, and I wasn't even the one doing the talking at the time
It's not just nerves, it's a total shutdown of my brain and a complete meltdown of the rest of my body.
It's hard to talk when your heart is beating like crazy and you forget to breathe
When I have a beta blocker, I talk, make jokes, people listen and I get compliments afterwards.
You can't really practice when people expect you to perform and give a hell of a presentation
It's stupid, I know, but that's just how my body reacts to an audience
|
|
|
|
|
Very similar symptoms I know from my body. And what I mean with training, it is not something like do three or four times to solve it. For me it took more than a decade with very small progress in between.
[Edit]
Btw. did you ever check your thyroid function? Ok, in my case it was not the reason (unfortunately, because if it was it, the solution would have been be more easy).
It does not solve my Problem, but it answers my question
modified 4hrs 20mins ago.
|
|
|
|
|
I don't have that kind of time
I'm also not sure when I react like that.
I had a new job and after two weeks I had to show something to the team.
I already got very nervous during the talk, which was for six coworkers.
When I had a goodbye speech for five coworkers at my last job it was all good.
When I had the same speech a day later for thirty (half of which I didn't know), I cut it short before I collapsed
At another job, for a couple of coworkers, six or seven, that I all knew very well, I had the same problem.
"I had a great... time... and I... uhhh... ... ... ..."
(goddammit, I know all these people!)
"learned... a lot... things..."
(I'VE KNOWN THEM FOR YEARS!)
"and uhhh....."
(OMG SAY SOMETHING, ANYTHING!)
"thanks."
I got nerves when I had to tell my uncle I wanted to quit his company (one on one and he's a relaxed guy so he would never hold it against me).
But during a meeting with a customer, where I had to present Azure to their IT manager and someone else from the IT team, I had no problems whatsoever.
It just makes no sense...
I'm doing pretty good for myself, but I sometimes think that if I were an extravert I'd be making millions by now
|
|
|
|
|
I used to be like that and just avoided situations where I had to talk to more than two or three people. But with advancing age, I somehow grew out of it (no idea how), and now I can talk to a very large crowd with hardly any shaking, and my heart tends to stay fairly normal. I wish I had some better advice to offer ...
|
|
|
|
|
I plan on growing old, so I hope it gets better over time for me too
|
|
|
|
|