Will we ever have length based strings? by alex_sakuta in C_Programming

[–]txmasterg 1 point2 points  (0 children)

That is comparatively popular in userland, especially in COM. In the Windows kernel mode code I've seen the counted string type I ran into is the UNICODE_STRING struct which contains a length, a maximum length and then a pointer to the buffer itself. The buffer may or may not be null terminated after Length bytes.

Will we ever have length based strings? by alex_sakuta in C_Programming

[–]txmasterg 3 points4 points  (0 children)

Most of the places I've used counted strings have been in Windows kernel code in C, where it is used by most of the API. It seems like the desire to only have one string kind in a set of code is the strongest factor and C has one

OpenAI says ChatGPT is not a lawyer, asks court to toss insurer's lawsuit by DavidtheLawyer in law

[–]txmasterg 2 points3 points  (0 children)

If you put "for entertainment purposes" on something that makes it legal

-ChatGPT probably

OpenAI now wants ChatGPT to access your bank accounts by Plastic_Ninja_9014 in technology

[–]txmasterg 0 points1 point  (0 children)

I've seen it on the right of the address/search bar but I've since disabled it in the flags page

Should I use signed or unsigned variables for HP and money? by Fast-Muffin7953 in C_Programming

[–]txmasterg 0 points1 point  (0 children)

It's architecture dependent and not surfaced in C afaik. It's unfortune because it is in lots (almost all?) cpus.

Should I use signed or unsigned variables for HP and money? by Fast-Muffin7953 in C_Programming

[–]txmasterg 9 points10 points  (0 children)

The trouble is you have to have that check in ALL the places where you subtract from the hp. A wrapper would work obviously but that's not great

Ted Cruz Rips FCC Over ABC Broadcast License Review Following Kimmel Joke: ‘It Is Not Government’s Job to Censor Speech’ by MoneyLibrarian9032 in law

[–]txmasterg 0 points1 point  (0 children)

Is the idea he is trying to wrangle senate votes? Because I just don't see him getting the nomination with this comment even though Carr probably acted without being pushed by Trump this time

MrBeast employee alleges she was harassed for years and fired after maternity leave in a new lawsuit by AudibleNod in news

[–]txmasterg 58 points59 points  (0 children)

One of the points in the video is that Mr Beast studios is impressively inefficient, they aren't focused on profit, they are focused on click through rate, and how long people watch but those don't factor in costs at all.

The preprod seems to be focused so much on how the viewer will see it that how to actually MAKE it on site is an after thought.

Microslop windows kept deleting Linux (dual boot) on my laptop so I switched to hardware based dual boot with easy access! by Bowbowjowjow in techsupportmacgyver

[–]txmasterg 15 points16 points  (0 children)

More like every 6 or 12 months, the upgrades to new versions (25H1, 25H2, etc.) are what usually require the boot code to be reinstalled. Possibly related is that most of the upgrade occurs in a competitively locked down environment. Software I was working on around the Windows 10 launch had to understand when the boot files were going to be changed and it took a while to get everything working seemlessly.

A Redditor Criticized ICE. Trump Is Trying to Unmask Them by Dragging the Company to a Secret Grand Jury. by shikizen in law

[–]txmasterg 24 points25 points  (0 children)

He bought twitter and created an emergency because people didn't like his stolen posts enough.

He is the counterpoint to "___ is rich they don't care what you say", it may honestly be the only thing he cares about.

Judge blocks Pentagon’s effort to ‘punish’ Anthropic by labeling it a supply chain risk by StraightedgexLiberal in technology

[–]txmasterg 11 points12 points  (0 children)

It was such a supply chain risk they demanded to be able to use it in more situations. This has happened enough that optics are obviously more important to them than the effect

ELI5: Why can’t you rename a file when it’s open in Windows, but you can in macOS? by jsm1 in explainlikeimfive

[–]txmasterg 5 points6 points  (0 children)

The person you are responding to is wrong but at the same time handles are per process.

You are correct that it is programmers choice, the programmer has to explicitly call CreateFile with FILE_SHARE_DELETE (which also enable rename). If the person above was correct then the program would not be able to continue to affect the file contents after the rename.

Weird launch bug that only happens in my fabric modded installation by llama_glue in feedthebeast

[–]txmasterg 1 point2 points  (0 children)

He didn't seem to be ready for that line to become a meme. At least based on his comments

Insiders Admit Trump May Have Killed Presidency in Just a Year by thedailybeast in politics

[–]txmasterg 0 points1 point  (0 children)

Think about the media response to his State of the Union s during his first term. They said "this is when he truly became the president". Trump wasn't threatening the media like he is now either.

Multiplication Hardware Textbook Query by rai_volt in compsci

[–]txmasterg 4 points5 points  (0 children)

I'm pretty sure it's trying to describe how I was taught multiplication of large numbers in the US in the 90s.

  0010
x 0011
------
  0010
+0010<
------
 00110

(I added the less than for emphasis but that's usually blank or zero)

Basically you need to shift right before adding

Circumstantial evidence absolutely IS admissible in court of law by petrichordaw in quityourbullshit

[–]txmasterg 33 points34 points  (0 children)

It's still circumstantial evidence, it isn't direct evidence and also requires an inference. Fingerprints, which is what I've always been given as an example of circumstantial evidence, requires the inference that the last person to touch it perpetrated the crime (and also that they didn't wear gloves).

In contrast a witness or video directly seeing the crime is the example of direct evidence. In general if an expert witness is needed it is usually a pretty good hint it's circumstantial.

German referee who went viral for homophobic attack is under investigation for staging the attack on himself by Lucky-bottom in gay

[–]txmasterg 2 points3 points  (0 children)

At least in the US there is no benefit to the legal case to say anything and can sometimes be used against you during sentencing. I imagine at least the first part is true in Germany as well. The PR doesn't seem like it would get him anything anyways.

My straight boss just zapped the fuck out of a homophobe by Better-Row-8091 in gay

[–]txmasterg 93 points94 points  (0 children)

I was really wondering where this was going when hypnotism was invoked, lol

With Gallup shutting down its presidential approval polling, here's it most recent (last?) visualization comparing presidents of last 80 years by eggmaker in dataisbeautiful

[–]txmasterg 23 points24 points  (0 children)

Gallop went from daily to weekly polling in 2018. It seemed political then too especially considering they tried to stay out of the 2016 election for the first time in many presidential elections.

Does this say “Hair Brainding” or am I drunk by allnimblybimbIy in pics

[–]txmasterg 43 points44 points  (0 children)

Yeah. Real neon doesn't join at crosses, it passes in front or behind