|
Rob Grainger wrote: the password should at the very least be encrypted. Why? It wasn't a big secret. Just some local configuration...
Rob Grainger wrote: should it become necessary to change the password That was the beauty of it, the password was always the same!
Rob Grainger wrote: There are many, many better alternatives I know, I'd actually never use such a solution. I'm just saying it did the job of keeping users out and letting admins in
My blog[ ^]
public class SanderRossel : Lazy<Person>
{
public void DoWork()
{
throw new NotSupportedException();
}
}
|
|
|
|
|
In the following chunk of code:
service.SetClosingResultOfAtePolicy(this, terminationType);
The suggestion was "Add argument name 'terminationType' (Alt+Enter)", yielding:
service.SetClosingResultOfAtePolicy(this, terminationType: terminationType);
Because that really helps improve clarity, right?
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
But of course! Not it is twice as clear as was before!
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
What's the full signature of SetClosingResultOfAtePolicy(...) though?
How do you know so much about swallows? Well, you have to know these things when you're a king, you know.
modified 31-Aug-21 21:01pm.
|
|
|
|
|
Er, not sure how that is relevant, but...
public void SetClosingResultOfAtePolicy(AtePolicy policy, TerminationType terminationType)
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
It's relevant if you have optional parameters
In this case though, it looks like overkill.
How do you know so much about swallows? Well, you have to know these things when you're a king, you know.
modified 31-Aug-21 21:01pm.
|
|
|
|
|
Was that a suggestion, or just a context action?
If you hit Alt+Enter, R# will usually list everything you might want to do with the code under the cursor. That doesn't necessarily mean it thinks you should do it.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I wouldn't mind, but it consistently puts up a squiggly line under the code, and I've conditioned myself to treat those as warnings - i.e. something to be eliminated.
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
In an Excel spreadsheet, enter the following two dates:
01-Feb-1900
01-Mar-1900
In another cell, subtract the first from the second and set the formatting to general,
Look at the result.
In VBA (just because you're in Excel anyway), from the immediate window enter:
? datediff("d","01-Feb-1900","01-Mar-1900")
Check the result.
The VBA result is correct...
This goes back to my college days.
|
|
|
|
|
I think it's down to the problem mentioned here[^] - for compatibility's sake they replicated a bug in Lotus 123, which thought that 1900 was a leap year.
=========================================================
I'm an optoholic - my glass is always half full of vodka.
=========================================================
|
|
|
|
|
Backward compatibility is the cause of numerous problems in computing, I believe.
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
It's even documented here[^].
|
|
|
|
|
The sad thing is I immediately knew when I saw the subject and the dates.
|
|
|
|
|
Excel is horrible at a number of things. What causes me much trouble is that there are some string values, e.g. 1DEC , that I am supposed to get from a database, but because along the way from their point of origin to my source they pass through Excel, they come in as 12/1/2013 (whatever the current year is). So then my ETL process has to detect these and correct them.
|
|
|
|
|
|
Ian Shlasko wrote: it won't be wrong again for 85 more years...
Only if your computer's clock gets reset:
NOTE: Microsoft Excel correctly handles all other leap years, including century years that are not leap years (for example, 2100). Only the year 1900 is incorrectly handled.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I am not a coder, just a person that doesn't know where to turn. I was downloading some software, and a virus encrypted all my files. I can't read any of my files, and don't know where to turn. the virus sends me to a web site where I have to pay to take the encrypting off. this is like kidnapping my files for ransom. can anyone point me to some software that would take away the encrypting. I am so frustrated that I don't know what to do. please send any information to xxxxxxxxxxxxx@msn.com. anything is greatly appreciated....
|
|
|
|
|
First you have to run an antivirus program - probably from boot disk - to clean the virus and identify it...
After that you may find a solution to that specific virus on the web, but it is also possible that you will not be able to recover the file ever, so if you have any backup of the important files, you may better to start over with a clean install...
(Please remove your email - it only will invite spams, you will be notified of any response you may get here)
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
You just caugth a Cryptolock Ransomware attack.
Normally the attackers send you the key to decrypt the files if you pay, in case they are important files and you don't have a backup it's your only way out. If you have a backup, run antivirus to detect were you did catch the infection, then clean your PC and restore a backup.
Geek code v 3.12
GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- r++>+++ y+++*
Weapons extension: ma- k++ F+2 X
|
|
|
|
|
Isnt this one of those 'shell overwrite' viruses?
Try to get a second machine and search on line how to fix this, normally, its something like putting back an original system file or some such.
|
|
|
|
|
Use System Restore point facility of operating system. It will take you to last Restore point. You may loose some of your files. But I think its good to have something rather than nothing.
|
|
|
|
|
|
More like wrong site. While there may be some of us that know how to deal with a virus etc. there are probably many sites/fora that are dedicated to helping solve issues with that kind of thing
|
|
|
|
|
Numbered lists have annoyed me in office for years, they seem to do all sorts of unpredictable things. To the extent I prefer not to use them and manually number things.
Just got a document from an acceptance tester. He included a numbered list, with a number (identifier) in the first "word" of one item in the list. Like this (underscore is my text, 14. is the numbered item in the list)
14. 472995 more text here.
So I thought "I'll copy that ID and paste it into a query window". My selection exactly matched the underlined portion of text above. Imagine my joy when a copy/paste into SQL window (or anything else) yields...
14. 472995
So, magically, the first word of a paragraph invisibly carries along the list item number. Genius.
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
Yes, annoying that. Nobody seems to get this right.
If your actions inspire others to dream more, learn more, do more and become more, you are a leader.-John Q. Adams You must accept one of two basic premises: Either we are alone in the universe, or we are not alone in the universe. And either way, the implications are staggering.-Wernher von Braun Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.-Albert Einstein
|
|
|
|