invalidusernamelol

joined 5 years ago
MODERATOR OF
[–] invalidusernamelol@hexbear.net 6 points 10 hours ago (1 children)

We're already seeing the community come together, not just at protests, but in normal every day life.

When you see a community operate with one mind like that, it really is a different thing. I was in WNC during Helene and we had that kind of solidarity going on where people just weren't afraid of the police and the police were afraid of us. No violence was even needed, just sheer "we're doing this and you can't stop us".

As this situation escalates, the ICE occupation is becoming parallel to a natural disaster and as it continues to disrupt people's daily lives, that slumbering beast will wake up.

[–] invalidusernamelol@hexbear.net 7 points 10 hours ago* (last edited 10 hours ago)
    def on_xlim_changed(self, ax):
        """Handle external xlim changes (e.g. from Toolbar). Unconstrained load."""
        if self.navigating: return
        self.navigating = True
        try:

NO! ONE STATMENT PER LINE! NO INLINE RETURNS!

But for real, if this is the kind of code that Torvalds puts out with AI slop generator I'm not worried. This is pretty trash.

Now I'm tempted to rewrite this without AI and make a pull request lol

[–] invalidusernamelol@hexbear.net 1 points 11 hours ago* (last edited 11 hours ago)

All my Python code is written this way and has been for about 3 years now. I do sometimes feel like I'm writing a different language than devs who just kinda use Python as a tool.

Having properly typed systems allows you to have surprisingly complex libraries of code that become zero headache to use since the linter immediately tells you what you need to give and what you get. If anything in that chain is broken, it tells you exactly where.

I see heavily typed and type reliant Python code as essentially instant unit testing. Especially if you just pepper in a bunch of assert statements (for simple checks it's faster and easier that getargs or reveal type).

If you type guard using asserts you also have runtime enforcement (that can be disabled with an interpreter flag).

There's also the benefit of being allowed to be a duck when you want. Your typing system shouldn't be thought of as part of your code, but as part of your test suite. If you have a situation that isn't reconcilable in it, you have a possible failure point and you'll be forced to add a #type: ignore tag hopefully with a description of why you're allowing a type inconsistency, but your code won't care that the defined types are wrong.

You can also use Protocol definitions to create duck type consistency that defines an interface kinda like C or Rust. A class/object will match the protocol as long as it has the methods and attributes required by the protocol.

You'll see a lot of that in the standard library type sheds and pyi files.

[–] invalidusernamelol@hexbear.net 21 points 12 hours ago

I think they wouldn't make it because it's dumb as fuck and only makes sense to people with literal mud for brains.

[–] invalidusernamelol@hexbear.net 3 points 13 hours ago

its the most affordable gun that will send a bullet downrange every time you pull the trigger and is capable of destroying your target.

I can't think of a better description of "decent" than that lol

[–] invalidusernamelol@hexbear.net 8 points 15 hours ago (2 children)

I only know because a bunch of people here have mentioned them as decent starter weapons lol

[–] invalidusernamelol@hexbear.net 21 points 16 hours ago (4 children)

It's a Hi Point, famously cheap manufacturer

[–] invalidusernamelol@hexbear.net 10 points 1 day ago (3 children)

Bro wasn't even taking a hard-line stance beyond "hey, we don't need another fell-for-it-again-award "

[–] invalidusernamelol@hexbear.net 17 points 1 day ago* (last edited 1 day ago)

It's one of those things that just feels like it's not only literally stealing from everyone, but also stealing something from everyone. There's this whole "good enough" mentality that surrounds it that takes away from the hard work required by real people to both create the training data and label it.

It's something that calcifies learning and limits our ability to interact with both technical and artistic creativity on so many levels.

My cousin today was showing me a pitch deck that was sent out by his company where the graphs all had hallucinated numbers and their company logo was re-designed on every slide because whoever made it just clicked "generate slide" 40 times.

Ironically, AI writing is actually worse than just sharing the prompt. Since all it does is fill out words that say what you prompted but in 1000 words instead of 50. Meaning now I have to parse out 950 words of fluff to see what you actually meant.

It all started with the West Wing Thing... World famous TV writer Dave Anthony broke me ground by talking with famous Screenwriter and David Cronenberg affiliate Josh Olsen. It gave so much confidence to the TV crowd

 

Anyone here have experience with arcpy? I've been working on a wrapper library that tries it's best to bring in into compliance with the Python data model and would like some testers.

I'll dm you a link to the repository if you have any interest. It's still pretty barebones and focused mainly on simplifying interaction with file databases and project files.

 

So I'm helping a local tech non-profit refurbish some old Chromebooks for distribution to halfway houses and immigrants that need computer access for legal stuff. The current need is basically a rock solid platform for getting to websites, reading email, and editing mostly shared Google docs.

Issue is that the hardware is no longer supported by Google.

We've gone ahead and got Coreboot flashed on all 40 devices and have settled on using Fedora-Onyx (Atomic distro with a Budgie UI).

We need to install some flatpaks on each machine and set up a base configuration. Easy enough with rpm-ostree and some manual configuration, but I was wondering if anyone here has had more experience with managing the atomic distros.

Basically I want to have it so the volunteers just need to plug in a USB installer stick and get a fully setup instance. Is there an easy way to take a tree and transfer it to another machine that isn't using something like clonezilla? I'm assuming we could just maintain an image and rebase to thatafter installing, but I'm not fully aware of the easiest way to accomplish that.

 

Which shells do you guys tend to use the most?

I've been trying to get into fish lately, have also used xonsh because I'm really comfortable with python so why not use that instead of bash and just inject subshells into my python scripts

14
Typopy (github.com)
submitted 5 months ago* (last edited 5 months ago) by invalidusernamelol@hexbear.net to c/programming@hexbear.net
 

I got bored today and made a little python script that takes text and spits out a version of it with typos that maintains readability.

The algorithm is really simple (shuffle all runs of ASCII letters and maintain the first and last letter). Added some options to preserve double letters and prevent the shuffling from moving letters to the other side of the word.

I don't think this has any real world applications beyond maybe messing with text on your site when you detect a bot. ChatGPT can pretty easily decode the typos from my initial testing, but I'm not sure if it would do as well if it's training data was polluted with this type of text obfuscation.

28
submitted 9 months ago* (last edited 9 months ago) by invalidusernamelol@hexbear.net to c/art@hexbear.net
 

 

I've been having to occasionally do interviews for the past couple years at my job since I'm one of the most senior developers/engineers. I try to allow people to utilize direct experience first, but our industry is pretty niche, so we've only had maybe 1 or 2 people ever apply that had any knowledge about what we do.

My tactic tends to be just showing people how to do things and making it clear that they can ask questions, then asking them to do what I just did. It seems to work pretty well, at least at finding people who have good communication skills and are comfortable asking questions. My only real requirement is that you at least attempt to figure it out.

Is that a bad way to do it? So far we've become a weird little engineering shop that's staffed mainly by underemployed local service workers. That's what I was before I started here, so I think my process might be a bit biased.

 

30 minutes = 1800 seconds

There are 8.2 Billion people

That means there are about 4.5 million farts per second across the globe. And that's just for humans.

 

118th CONGRESS

2d Session

H. R. 5349

AN ACT To develop and disseminate a civic education curriculum and oral history resources regarding certain political ideologies, and for other purposes.

Be it enacted by the Senate and House of Representatives of the United States of America in Congress assembled,

SECTION 1. Short title.

This Act may be cited as the “Crucial Communism Teaching Act”.

SEC. 2. Purposes.

The purposes of this Act are the following:

(1) To help families, civic institutions, local communities, local educational agencies, high schools, and State educational agencies to prepare high school students to be civically responsible and knowledgeable adults.

(2) To ensure that high school students in the United States—

(A) learn that communism has led to the deaths of over 100,000,000 victims worldwide;

(B) understand the dangers of communism and similar political ideologies; and

(C) understand that 1,500,000,000 people still suffer under communism.

SEC. 3. Development and dissemination of civic education curriculum and oral history resources.

The independent entity created under section 905(b)(1)(B) of the FRIENDSHIP Act (40 U.S.C. 8903 note; 107 Stat. 2331 note), also known as the “Victims of Communism Memorial Foundation”, shall—

(1) develop a civic education curriculum for high school students that—

(A) includes a comparative discussion of certain political ideologies, including communism and totalitarianism, that conflict with the principles of freedom and democracy that are essential to the founding of the United States;

(B) is updated periodically to ensure the curriculum includes both past and present communist and totalitarian regimes, with a focus on—

(i) ongoing human rights abuses by such regimes, such as the treatment of Uyghurs in the Xinjiang Uyghur Autonomous Region (XUAR) by the People’s Republic of China; and

(ii) aggression by such regimes against democratic nations and democracy, such as actions taken by the People’s Republic of China to deter pro-democracy protests in Hong Kong and the increasingly aggressive posture by the People’s Republic of China toward Taiwan, a democratic friend of the United States.

(C) is accurate, relevant, and accessible, so as to promote the understanding of such political ideologies; and

(D) is compatible with a variety of courses, including social studies, government, history, and economics classes;

(2) develop oral history resources that may be used alongside the curriculum described in paragraph (1) and that include personal stories, titled “Portraits in Patriotism”, from diverse individuals who—

(A) demonstrate civic-minded qualities;

(B) are victims of the political ideologies described in paragraph (1)(A); and

(C) are able to compare the political ideologies described in paragraph (1)(A) with the political ideology of the United States; and

(3) engage with State and local educational leaders to assist high schools in using the curriculum described in paragraph (1) and the resources described in paragraph (2).

SEC. 4. Definitions.

The terms in section 8101 of the Elementary and Secondary Education Act of 1965 (20 U.S.C. 7801) shall apply to this Act.

Passed the House of Representatives December 6, 2024.

 
 

This is the region that produces 100% of the quartz silica used in all electronics.

The region is now gone. There is no immediate way in or out and the primary rail line for export has been evaporated. Not only that, but the workforce and community that worked the mines is underwater.

view more: next ›