299 karma · joined July 9, 2022
To summarize, the law is extremely simple. Remove the line "the government and public institutions cannot discriminate against or grant preferential treatment to persons on the basis of race, sex, color, ethnicity, or national origin in public employment, public education, and public contracting." from the California constitution.
It was a No vote with 57.23 % and yes with 42.77. Now, that's not to interesting. Until you look at who supported the bill! It's to many to list! But you have Pelosi, Sanfrancisco, LA, San Jose, Oakland, Stockton Mayors. Pretty much every D reprsentative, Pete Buttigieg, former state senators, the CA Democratic Party, multiple government entities. AirBnb, Blue Shield of California, Facebook, Instacard, Kaiser Permanente, PG&E(Local Power company), Uber, Twitter, 49er's, Giants, Reddit, United Airlines, Oakland A's, Multiple unions, daughter of MLK. And there list goes on for people who supported it.
Now, here's who opposed it. Two republican State Senators, 3 former representatives, the Republican Party of California, Ward Connerly(Who got the anti discrimination line added in 1996, and 5 organizations you've never heard of. Financing was 25.13 million for Yes, and 1.7 million for no. With only a asingle donor on the No above 50,000, while the Yes vote had Kaiser donating 1.5 million, ACLU with 1.331 million, California Teachers assocation with 3.5 million. And multiple others above a million.
So with over 20 million more in funding, or almost 200%, a long list of who's who fortune 500 and politicians, it still got struck down. I think we can have more faith in the voter and stuff like this shows it.
For a big example of substandard coding, see this thread for an egregious wireguard module in BSD. Countless other examples. https://news.ycombinator.com/item?id=33381949
BUT, the fact they have multiple goto locations in one function violates this! Only one goto locations ! That goto is goto cleanup, or goto exit. What you do is then check state of each variable you cleanup. Every function should be some variable of this. If anyone writes C in any other style than SESE, you can consider them a subpar C programmer. There's variations like using BOOL and in and out variables. I like them, but there are different styles. But anyone not using a single AND ONLY A SINGLE goto in every function is 100% a subpar C programmer who you should not trust.
BOOL foo()
{
int *allocation;
char *allocation2;
BOOL bRet = FALSE;
const int BUFFSIZE = 10; //NO MAGIC NUMBERS
allocation = resourceallocation(BUFFSIZE); // Malloc, file.open, network open, etc
if(!allocation)
{
DEBUGPRINT("ALLOCAITON FAILED");
bRet = FALSE; //Redundent, but protect against intern
goto cleanup;
}
allocation2 = resourceallocation2(BUFFSIZE); // Malloc, file.open, network open, etc
if(!allocation2)
{
DEBUGPRINT("ALLOCAITON FAILED");
bRet = FALSE; //Redundent, but protect against intern
goto cleanup;
}
...
bRet = TRUE;
cleanup:
//Add error handling if allocation fails
if(allocation)
resourcefree(allocation);
if(allocation2)
resourcefree(allocation2);
return bRet;
}I more meant that even from a style standpoint, I never had that happen when I drove a Honda. There’s also features like making the engine “purr” which works really well on dates. There’s just a lot of integrated features they can control, to the point that not only is it useable and I like it better than CarPlay. It also has tangible benefits and genuinely helps me score. With features that wouldn’t be possible with a CarPlay based os and not having everything super integrated.
But the OS(MBUX 2) is actually really good, at first I was a bit negative on it. But the way they have everything integrated that isn't really possible with apple play is nice. The dash is customizable, I have my setup with speed, an array right in the center on when to turn, and the right is a mini map so I can see the road. On top of that the screen in the center is amazing and has a few views.
The voice assistant is really nice, does everything I want, they have it baked in so each seat can activate it and it knows based off a mic. Can't do that with apple play. So when a girl in my car says "Turn on the massage" or "Turn the temperature to 70", it only does for their side. And honestly, besides the map not having police checkpoints, it's a bit better than apple maps or google maps. And on top of that, I can lookup the location on apple maps on my phone, then send it to the car.
And according to my dealer, most people forgo using carplay for anything other than music in alot of the benzes.
Enterprises are massive machines that move EXTREMELY slow. And the risk of not being able to catch something in time is there, and since Cloudflare has now done it once, that means they could be pressured into it in the future. And would the media or Twitter be defending a poor Oil and Gas company if their source code had obscene things in it from a malicious developer, or would they push for Cloudflare to remove them?
Even if the odds of this are so low. I would be doing a disservice to my clients and enterprises if I didn't advise them of this possible risk that could cripple a company. Anything that can be easily stopped by using another vendor, so essentially free, when compared to a risk of something that could result in a company losing hundreds of millions or billions of dollars is an easy choice to make.
Corporations are risk averse, and this plays into both sides. Activists abuse this to pull advertisers of people they don't like. But they also have to understand that services which can cause risk are avoided like the plague.
As an example of stuff you can do with types. I was trying to teach a buddy how to program from a non CS background and I explored it a bit to make it as modular as possible so he could literally just change the structure and types and the code would all work for him. And it's really easy using some reflection
For example, to mimic a struct, you can use.
@dataclass
class CSVStruct:
x: int = 0
y: int = 0
foo: int = 0
bar: int = 0
Then you can typecast dynamically and generate random data(assuming you can go from int -> datatype) to fille in the data. arg_list = []
# Generating argument list dynamically
for field in dataclasses.fields(self.CSVStruct):
arg_list.append(field.type(randint(0, 100)))
Or to get all the names of a struct (In this case to print out any structure with headers into a CSV file. Can also be done with their values) # Getting column names
row_names = {field.name: field.type for field in dataclasses.fields(self.CSVStruct)}This is going to lead to decades of crime, most major cities in America are like this. And it's going to get worse and worse. The future is scary, and I wonder what the outcome will be. These are also largely black schools, what happens when these communities can't read and stay illiterate due to DEI in the school system?
Think of it like a resume pitch on a resume.
So for example, a single file can actually contain two different "files"(File data).
So, foo.exe, actually will effectively open the file foo.exe:DEFAULT. You could also add a piece of malware to the foo file in place of a datastream. So foo.exe is legit, but if you open foo.exe:MALWARE , it will open up the malware datastream.
So tldr, how Windows does this, it when you get a file from a third party source(Internet, USB Drive, etc), it adds a new datastream in the form of a textfile. And the textfile contains info about the source. Namely, a number for location it came from(3? for web), and then some more info.
Here's how to build a simple "bot" for any game in about 30 seconds.
Step 1, Scan memory for Hp using a tool like cheat engine. Step 2. Since you know simple C programming, you know HP is kept in a structure, most likely the player structure. Look at surrounding memory and you'll have something like this.
struct LocalPlayer { INT32 CurHP; INT32 MaxHp; INT32 CurMana; INT32 MaxMana; Position Pos; }
Step 3. Now you have a basic structure, how do you find what uses it? Well, you know what a getter setter is from your CS 101 class. So you set a HW breakpoint on Read for the hp, and a HW Breakpoint on Write for the hp. Now you have GetHp(); And SetHp();
Step 4. You also remember how linkers work from your Compilers class, so knowing this, just like the structure has similar variables in memory, the binary will also have similar functions next to eachother(Or you can use class/variable passing from your struct.). So Right below GetHp, is 99 % of the time going to be GetMana.
Step 5. Now you have your structures, and know what functions use it, so find the global variable or scrape how these functions get the address to update.
Step 6. Repeat for other players using exact same steps, congrats, you now have all you need for a wallhack, bot, or whatever you want.
So as we can see, no code is needed, no big brain hacks are needed. A cs 101 student can do this(And alot do, this is why cheats are filled with skids). And it's all done through super simple dynamic analysis. Games are different, since in a regular application, you won't be able to memory scan as easily.