

Removed by mod


Removed by mod


Removed by mod


But that’s impossible! Guns are illegal in Australia! Everybody knows, once you ban all the guns, that immediately and permanently stops all gun violence from happening, ever!


Coding on mobile is hard


I’m glad you noticed. That was my favorite part too.


Yeah, it does look like C now that I think about it. You’re right about the end result too. I believe C# will let you do inline declaration and assignment like that, so maybe that’s what we’re looking at? Been a while, could be wrong


I just tested it in PowerShell. Works fine
$i = 1
$x = -$i
$x
Outputs -1


It’s an incoherent hodgepodge of C#/.NET, PowerShell, and JavaScript, each of which I’ve forgotten more about than I currently know


function myFunction() {
try {
x = new Random().nextInt();
if (x != 10) {
throw "not 10";
}
else {
return (10)
}
catch(err) {
myFunction()
}
}
}
x = myFunction()
Commit notes: Added error handling


function foo() {
x = new Random();
case (x = 10):
return (x);
default:
foo()
}


Shit, you’re right. x is declared inside the loop, so it doesn’t exist until the loop begins execution.
Technically, I suppose you could say the compiler will allocate memory for x without assigning a value before the loop is executed and… I’m understanding what you mean now, I think.


Not in this case. First, i is declared and assigned a value of 0. Next, x is declared and assigned a value of -i or -0. On the first loop iteration, i will decrement to -1, perform the conditional check, then execute the loop body which will assign x to -i or -(-1) or positive 1, and so on.
The only time a variable is created without a value is if you declare one without assigning a value like with
[int]i;


If this is JavaScript, it would have a value of -0, which is actually valid and works the same as normal zero thanks to type coercion. I think the only difference is some methods that detect if a number is negative will return true instead of false, but otherwise, JS treats -0 the same way as 0


Now write a function to unroll the while loop to “optimize it for the compiler”
The most i said was he wasn’t entirely wrong. I also called him despicable and a scumbag. It would seem you and I have very different ideas as to the definition of “congratulate”
The weakest link in any system is the user
Correct. No policy is an adequate substitute for security training or phishing awareness training. That doesn’t mean to allow abuse cases though
export sensitive company data onto their own personal machines
Intune can be (and usually is) used to enforce logins only from enrolled devices. Personal devices can be enrolled, then Conditional Access policies can be applied to silo app data from company data, preventing this abuse case
reauth once per hour
No way. One per day, at most. No one should have to re-auth every hour, except maybe Global Admin accounts, which shouldn’t be used for day-to-day tasks anyway.
users who generate service account credentials
To do this in Entra, you need the Application Administrator role assigned, which is a Privileged Role, so it should be controlled by PAM to prevent/detect this abuse case.
When your policy teeters towards aggravating users, many of them will just find clever ways to circumvent it
Not for long. And usually not without leaving an audit trail that indicates violating acceptable use policies, security policies, or access control standards, which then becomes an HR issue, not an IT issue
If your session gets hijacked, max session lengths ensure the attacker doesn’t retain access once the session expires. It’s more likely someone in your company was phished and the attacker retained access to their Outlook for a few days or weeks before anyone noticed.
The glut of US tech workers is due to the excessive number of H1B visas being issued. This year, the number was almost the same, but slightly higher than the total number of US tech graduates. Why hire an expensive American new graduate when you can hire someone from India with 3-5 years of experience at 60% market rate instead?
The “turning the freaking frogs gay” clip is from an episode of… his show (don’t want to support it by naming it), in which he refers to the fact that frogs maturing in waters polluted by certain pesticides don’t reproduce nearly as much as frogs that mature in uncontaminated waters.
Lacking any substantial scientific basis or knowledge, he drew the rather elementary conclusion that the pollution turned the frogs into homosexuals, and that’s why they weren’t reproducing.
Further studies showed the causal link between the chemicals and lower rates of frog reproduction were actually due to the chemicals infiltrating and corrupting tadpole DNA during maturation so that they developed both sets of genitals and had reduced testosterone levels.
So, he was only partially right. But he wasn’t entirely wrong either. Which is a weird thing to say about the statement, “I don’t like them putting chemicals in the water that turn the freaking frogs gay!”
Whang! has a video on his YouTube channel where he goes into depth more on the studies, if you’re interested.
Removed by mod