|
Except that the basic premise was all the fundamental forces except gravity quit working. Pretty much instant death!
|
|
|
|
|
Overall, new malware samples grew by 11.5 percent for the period. Forget about DevOps, if you want results, go with HackOps
MalOps? BadOps? OK, still working on the name.
|
|
|
|
|
There are lots of cases that you can improve. "I don't believe in modern love"
It was either that or lyrics from "Fashion"
beep beep
|
|
|
|
|
Why do people coming up with examples of how to use a language feature always seem to use awful examples for either the before or after versions?
What I currently do for multiple value checking is generally:
var yes = new List<char> { 'y', 'Y' };
if (yes.Contains(userInput.KeyChar)
Although in this particular case I'd probably do:
if (userInput.KeyChar.ToLower() =='y')
The is notation looks nice for shorter sets of values because it removes the need for a temp array/collection; but I'd still probably use it for testing more than 2 or 3 values because it remains less repetitious and easier to read.
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
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
|
|
|
|
|
Dan Neely wrote:
if (userInput.KeyChar.ToLower() == 'y') Except you're supposed to normalize to uppercase.
CA1308: Normalize strings to uppercase (code analysis) - .NET | Microsoft Docs[^]
I tend to use extension methods - something similar to this:
public static bool IsOneOf<T>(this T value, params T[] options) => options.Contains(value);
public static bool IsNotOneOf<T>(this T value, params T[] options) => !options.Contains(value);
if (userInput.KeyChar.IsOneOf('Y', 'y'))
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
How about:
if ("Yy".Contains(userInput.KeyChar)
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
My understanding was that C# was to be clean, to be understandable without complexity, and above all to be safe.
They seemed to have long ago strayed from this path.
Instead of watering down is to mean "equals" instead of "is of a given type", I would have preferred them to be clear
if (value equals 'Y' or 'y') ...
Except this then means you have equals and == kinda doing the same thing. Way better (and I do not understand why they haven't done this, given the esoteric stuff they've crammed in) would be:
if (value in ['y','Y'])...
The Article Quoth: public bool
ListenToCardIso14443TypeB(TransmitterRadioFrequencyConfiguration transmitter, ReceiverRadioFrequencyConfiguration receiver, out Data106kbpsTypeB? card, int timeoutPollingMilliseconds)
public bool ListenToCardIso14443TypeB(TransmitterRadioFrequencyConfiguration transmitter, ReceiverRadioFrequencyConfiguration receiver, [NotNullWhen(true)] out Data106kbpsTypeB? card, int timeoutPollingMilliseconds)
This is everything wrong with technical writing. Is it so hard to simply post
public bool Method(param1 Type1, out Type2? card, int value)
public bool Method(param1 Type1, [NotNullWhen(true)] out Type2? card, int value)
cheers
Chris Maunder
|
|
|
|
|
Ransomware gangs are increasingly failing to keep their promise to delete stolen data after a victim pays a ransom. You can't trust anyone these days
|
|
|
|
|
|
Microsoft's forthcoming Cloud PC remote Windows experience for Windows 10, macOS, iOS and Android takes shape. "So many things I would have done, but clouds got in my way"
|
|
|
|
|
Kent Sharkey wrote: Microsoft's forthcoming Cloud PC remote Windows experience for Windows 10, macOS, iOS and Android takes shape. As I suppose the shape will be rounded (see thread below)...
One Cloud-PC to rule them all, one Cloud-PC to find them, one Cloud-PC to bring them all and in the darkness bind them
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.
|
|
|
|
|
The three plans alleged to be on offer are:
Medium Useless : Dual core with 4gb of ram
Heavy Pathetic : Dual core with 8gb of ram
Advanced Embarassing : Tri-core with 8gb of ram
Hey Microsoft, FTFY.
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
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
|
|
|
|
|
Not to mention the (presumably a typo) disk storage:
Quote: The Advanced plan includes ... 40GB of SSD storage
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Or is the start point for that price and all the rest is just "pay more" features...
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.
|
|
|
|
|
CERN will walk developers through implementing quantum algorithms on IBM and D-Wave quantum computers. I guess they do know sub-atomic particles
|
|
|
|
|
You’ve probably seen more headlines about COBOL this year than in the last 20 years. You wouldn't want to upset your friend, would you?
Of course it's a coincidence his company sells a COBOL compiler.
And yes, it is a slow news week. Why do you ask?
|
|
|
|
|
You -- and anyone else for that matter -- can't counter his statement that it was the Java-based front-end that caused the inability of the system to process unemployment claims in New Jersey.
So you left the snarky comment that the author said what he said because he is selling COBOL compilers and thus has a financial stake in determining the cause of the problem.
What monumental stupidity! What nauseating lack of logic, in a website supposedly dedicated to the pursuit of logic in computer programs!
modified 8-Nov-20 12:29pm.
|
|
|
|
|
Rumours and references within the preview builds have revealed that Microsoft is in the process of overhauling the Windows 10 interface. Oh...FINALLY! Just what everyone has been begging for!
|
|
|
|
|
Do you think they gave the icons rounded corners as well?
EDIT:
As I recall, XP had rounded corners.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Richard Andrew x64 wrote: As I recall, XP had rounded corners. What goes a-round comes a-round?
TTFN - Kent
|
|
|
|
|
Richard Andrew x64 wrote: As I recall, XP had rounded corners.
If I remember correctly, only on the top edge of the window. It seems that Microsoft has "reached deeply into the innovation bag" (as I imagine Nadella might say) and have rounded all four corners!
This should bring a new level of user experience satisfaction to the Windows blah blah....
|
|
|
|
|
Yes this is truly a spectacular technological achievement!
Microsoft ought to be proud of themselves.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Old memories:
Graphic workstations appeared during my student days. We were taught a method called SSA, Structured System Analysis, were "processes" (not in the software sense!) were drawn as boxes with round corners.
For his thesis work, one of my classmates implemented a tool for SSA development on the brand new PERQ workstations. You could control every single pixel on the screen! But that was all. Not even a library function for drawing a straight line; you had to program that yourself. But that is straightforward.
Then comes the round corners. In those days, the computer graphics course taught us how to map a function to pixels. So that is straightforward. Except that methods for drawing mathematical curves required trigonometric functions. PERQ provided nothing of that sort. We learned to do that in the Numerical Methods course. So that was straightforward. Except that those methods assumed floating point. PERQ had only integer arithmetic. So you had to design a software floating point format and implement the basic mathematical operations on it. Straightforward, right?
My classmate did implement a floating point package. Then a trigonometric library. Then a graphical library for drawing curves defined by trig functions. On top of that, a tool for designing SSA diagrams, with animation of document flow through the model.
I think that classifies as a "spectacular achievement" for a Master thesis. It may come as no surprise that he is now a highly respected professor in the Computer Science department of the Technical University.
|
|
|
|
|
That's a great story!
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Finally - a tangible reason to stop using Linux...
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|