[-] [email protected] 2 points 6 hours ago

Solving puzzles is fun, but I can count on one hand the amount of times that the solution to a real world problem was some novel algorithm and not just throwing another hash map at it.

I have used a couple recursive DFS solutions to things, feeling all clever, then it breaks as the search depth increases so I switch to just memoizing in a hash map and it removes the recursion issue and gives major speedup.

Elegant solutions pretty frequently give away to messy, practical ones that don't feel as clever.

[-] [email protected] 2 points 14 hours ago

That's what I meant, you can modify the behavior of code by directly over riding the operator implementation for base types. What it really reveals is that Python int is not at all a C int or really any other int.

Directly translating syntax without knowing that the Python type is so vastly different from say, the C type is a recipe for latent disaster.

[-] [email protected] 1 points 20 hours ago

Python also allows you to override what operators do meaning I can write

int.__add__ = lambda self, other: print("hello world")

>>> 1 + 2
'hello world'

And that's totally valid code. Don't think many other languages allow that, and translating that would be a mess.

[-] [email protected] 2 points 21 hours ago

It's homeopathic bath water. Belle I think actually sells jars...

[-] [email protected] 3 points 21 hours ago

I think that was a PsychicPebbles animation, the same guy that does Smiling Friends now.

[-] [email protected] 1 points 2 days ago

That's what it runs on, just makes it easy to spool up tunnels remotely. It's Traefick and Wireguard rolled into one

[-] [email protected] 4 points 2 days ago

You can use something like Pangolin and a local machine on your home network to set up a tunnel.

[-] [email protected] 3 points 2 days ago

This is the best one yet

[-] [email protected] 5 points 4 days ago* (last edited 4 days ago)

Depending on the situation just roast back. You can also just call someone out for being a dickhead in a crowd.

Just say "Why do you have to be such a dick?" and don't back down, if they keep going, just keep asking the question. If you do that in a crowd, you'll get them to either acknowledge them being a dick or back down.

If the bullying is isolated, start with leaving and trying to get to a crowd so you can pull off step one, or just leaving. If that's not an option and they're being aggressive, pop them with a sucker punch or a kick to the genitals then ask them again.

If you're able to get them to bite on the "Why are you being a dick" approach, just maintain a jovial demeanor and laugh at their responses until they stop. You having that attitude puts them on the backfoot in a social setting because people naturally side with the more calm/laughing person.

Basically turn their bullying into a weakness and take the high road.

[-] [email protected] 18 points 4 days ago

I try to be as nice as possible whenever I get through to a call center person, but also didn't tie them up unless they choose to be tied up. Had a ton of actually nice conversations with call center people even when the reason I'm calling is because I got fucked by the company they're answering for.

[-] [email protected] 12 points 5 days ago

At least the male pronouns aren't directed at the reader and instead at a fictional male character.

[-] [email protected] 43 points 5 days ago* (last edited 5 days ago)

It's only genocide if it comes from the genocide region of Germany, otherwise it's sparkling Ethnic Cleansing.

28
submitted 1 month ago* (last edited 1 month ago) by [email protected] to c/[email protected]

32
submitted 5 months ago by [email protected] to c/[email protected]

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.

52
submitted 5 months ago* (last edited 5 months ago) by [email protected] to c/[email protected]

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.

24
submitted 5 months ago* (last edited 5 months ago) by [email protected] to c/[email protected]
7
submitted 5 months ago by [email protected] to c/[email protected]
10
submitted 7 months ago by [email protected] to c/[email protected]

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.

79
submitted 8 months ago* (last edited 8 months ago) by [email protected] to c/[email protected]

I just now got service back. The whole region has been totally wrecked by this storm. Every 500 year flood line was surpassed by a large margin.

There's currently no way on or out for a lot of people right now

Edit: Live updates here this is being broadcast on FM to the whole region. The only way a lot of people can get info

Also Here

53
submitted 8 months ago* (last edited 8 months ago) by [email protected] to c/[email protected]

They brought a local trans girl on stage and signed her dress, then had everyone chanting fuck the king and viva Palestine. Overall 10/10 will see them again

21
submitted 9 months ago by [email protected] to c/[email protected]

The SMF poop to video essayist pipeline claims another victim

35
submitted 1 year ago by [email protected] to c/[email protected]

Do we have to remind the NAFO guys that Leningrad no longer exists?

208
submitted 1 year ago by [email protected] to c/[email protected]
4
submitted 1 year ago by [email protected] to c/[email protected]
view more: next ›

invalidusernamelol

0 post score
0 comment score
joined 4 years ago
MODERATOR OF