|
That's because Mavis doesn't know anything about security, or "best practices". They just know, well, typing.
|
|
|
|
|
Wowww... terrible software. They clearly don't CR their work, or their company is run by kids. Regarding that setting file though, I believe there are 3rd party file lock tools, but its probably not your biggest concern at the moment.
|
|
|
|
|
Does it require R/W access to that file for students? if not, you can always set individual file permissions.
I'm brazilian and english (well, human languages in general) aren't my best skill, so, sorry by my english. (if you want we can speak in C# or VB.Net =p)
"Given the chance I'd rather work smart than work hard." - PHS241
"'Sophisticated platform' typically means 'I have no idea how it works.'"
|
|
|
|
|
1215drew wrote: if pw = "gnipyt"
I always find with these sorts of issues that it is best to gnipyt in the bud...
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
|
|
|
|
|
int i = 0;
int m = 1;
while ( i < m){
Print i
Print m
i = i + 1;
m = i;
}
nananaanananan code man!
|
|
|
|
|
This code can be simplified with
m = i++;
No memory stick has been harmed during establishment of this signature.
|
|
|
|
|
how about we change "i" to a "C" huh
|
|
|
|
|
Unless my remaining braincell is taking the day off, shouldn't that be
m = ++i; ?
Cheers,
Peter
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
Should it?
No memory stick has been harmed during establishment of this signature.
|
|
|
|
|
Yes, it should. And this little change makes the diffrence between a loop that runs once and a loop that runs forever.
The good thing about pessimism is, that you are always either right or pleasently surprised.
|
|
|
|
|
We place change notes in our source files that are marked with a date. An automated tool extracts these notes and correlates the dates to version numbers, producing a change list document for each build. I just noticed an odd entry that kept popping up at the head of the list of changes, even though it describes an issue that was fixed last year.
The date marker on the entry was "07/02/2112" . Cue Rush[^]...
Software Zen: delete this;
|
|
|
|
|
Oh there's no bread, let 'em eat cake!
There's no end to what they'll take.
Whoo Yeah!
Opps, That's Bastille Day - wait I know this one........
We adopted a dog Monday.
The lady of our age or older said "What password would you two like to access your dogs's microchip record?"
Without hesitation I said 2112.
She said "Is that 2-1-1-2?"
....sigh... yes.
|
|
|
|
|
Oops!
Keep Clam And Proofread
--
√(-1) 23 ∑ π...
And it was delicious.
|
|
|
|
|
Did you feel the Rush when the DeLorean hit 88 mph?
Soren Madsen
"When you don't know what you're doing it's best to do it quickly" - Jase #DuckDynasty
|
|
|
|
|
Just call me a workin' man... that's what I am.
Software Zen: delete this;
|
|
|
|
|
Are you sure you have fixed it already? That's a time travelling entry reminding you that sometime in the future you will have fixed it. But you must still wait some 99 years before you can do so.
|
|
|
|
|
Evidently I came back in time, and just got stupid with the date, because the described fix is in the code.
Software Zen: delete this;
|
|
|
|
|
String D = "Danger";
String R = "Response";
String S = "Send For Help";
String A = "Air Way";
String B = "Breathing";
String C = "CPR";
String D = "Defibrillator";
String StayingAlive = D + R + S + A + B + C + D;
Print(StayingAlive);
|
|
|
|
|
Nope - you don't start and end with a Defibrillator...
Plus, it's not going to compile anyway!
This message is manufactured from fully recyclable noughts and ones. To recycle this message, please separate into two tidy piles, and take them to your nearest local recycling centre.
Please note that in some areas noughts are always replaced with zeros by law, and many facilities cannot recycle zeroes - in this case, please bury them in your back garden and water frequently.
|
|
|
|
|
|
((Func<int?, int?>)(x => ++x))(default(int));
|
|
|
|
|
((Func<int?, int?>)(x => ++x))(default(int));
Can 0 be casted to a function delegate? Also, is "++x" legal if x is nullable? Weird.
Greetings - Jacek
|
|
|
|
|
read the parenthesis, it is clearer this way:
var f = (Func<int?, int?>)(x => ++x);
f(default(int));
it's pointless code, but it works.
I'm brazilian and english (well, human languages in general) aren't my best skill, so, sorry by my english. (if you want we can speak in C# or VB.Net =p)
"Given the chance I'd rather work smart than work hard." - PHS241
"'Sophisticated platform' typically means 'I have no idea how it works.'"
|
|
|
|
|
so basically all this expression does is return a nullable int with the value "1"?
|
|
|
|
|
yep, that's why i said it's pointless, it's probably test code someone forgot to erase, at least i hope so.
I'm brazilian and english (well, human languages in general) aren't my best skill, so, sorry by my english. (if you want we can speak in C# or VB.Net =p)
"Given the chance I'd rather work smart than work hard." - PHS241
"'Sophisticated platform' typically means 'I have no idea how it works.'"
|
|
|
|