The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
i have this one piece of code, and it is Bad Code(TM)
it certainly would not survive code review.
It deals with over a half dozen corner cases for disambiguating a parse of a field vs a type reference in C#
it keeps failing and I keep going back and adding another corner case.
such an anti-pattern
my hand rolled parser didn't try to handle this at all. it didn't like open typerefs with generic or array params so like
Console.WriteLine(int.Maxvalue); // ok but thinks it's a field ref of a variable
Console.WriteLine(System.Int32.MaxValue); // okay but same as above
Console.WriteLine(MyGenericType<int>.MaxValue); // won't parse
This parser is supposed to handle it but it's causing it to fail on field references. sometimes.
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.
No wonder the parser can't disambiguate it. They look the same. I can't see how to do it without first resolving names. Within C#, it looks like a type attribute (Maxvalue) masquerades as a field. So for C#, you could probably just treat it that way and get on with life. But if you want to generate the equivalent code in another language, I can see how it would be a PITA.
Have you got a slideshow running for your desktop background? I found that if the 'change picture' setting was set to the 1 minute interval, then every minute the mouse/keyboard/pretty much everything froze. Setting it to 10 minutes seems to either fix the problem or I don't notice it so much now.
Anything that is unrelated to elephants is irrelephant Anonymous - The problem with quotes on the internet is that you can never tell if they're genuine Winston Churchill, 1944 - Never argue with a fool. Onlookers may not be able to tell the difference. Mark Twain
I was having a similar problem. I could right click on an item -- and it could take 30 seconds for the popup menu. All sorts of things like that. It was not every time, but frequent. It started after an upgrade and upgrading to 1909 fixed it. So, I suspect it was one of the mitigation fixes that was causing the problem -- even after Microsoft supposedly fixed the problems.
So, if you haven't upgraded to 1909 -- and it went very smoothly for all four machines here -- I would recommend it. The problem might not be with the USB ports.
You actually take every piece out of the Mac Mini case (main board, power supply, everything!) to get the old HDD so you can replace the SSD. It is insane!
I am very happy to report that I was able to re-assemble the thing with the new SSD. I've rebooted the machine and it is 20 times faster. Everything is so much better!!!
I'm not exaggerating here --> Previoulsy I would run a command like ls -al in a dev directory and the prompt would blink for 3 seconds before it even started to do something. XCode (iOS dev IDE) runs quite nicely now and the iphone emulator runs well too. Amazing.
This was a great New Years Day project! I like the ones that end in success, the best.
Posted via FireFox on my Mac Mini (wouldn't have even tried this before).