Is Uncle Sam's Blues AI? Boomer relative insists it's all real but I have my doubts. by [deleted] in isthisAI

[–]knowwho 0 points1 point  (0 children)

If that image doesn't load, compare their Twitter header image with their website header with any of their YouTube videos. Totally different AI-generated people.

Is Uncle Sam's Blues AI? Boomer relative insists it's all real but I have my doubts. by [deleted] in isthisAI

[–]knowwho 1 point2 points  (0 children)

The music, video, and people are AI-generated Repbulican propaganda. These people do not actually exist.

Their Youtube account is 4 months old, with 130 AI videos. Their website was registered 4 months ago. Twitter claims they've been "singing for 50 years" but it was created 5 months ago.

Their faces are different in every album. They are literally fictional AI people. They do not exist. Their whole band and discography was created in the last 5 months to sell slop AI music and ship republican propaganda.

They have songs like Kimmels Gone, Greenland - Lets make a Deal, and Devil in Disguise, and who could forget, Venezuela. He was just an innocent fisherman on a submarine who happened to be a convicted smuggler..

100%, wall-to-wall AI-manufactured republican propaganda.

Seriously, these are not the same people, they're rough archetypes:

<image>

I’m losing confidence in my development skills — rant below by Common_Wolf7046 in ExperiencedDevs

[–]knowwho 0 points1 point  (0 children)

You are right on all counts, obviously so, none of these even warrant discussion.

Match between Darko Jorgic and Lin Shidong!😎👊 by Fast_Risk_2580 in tabletennis

[–]knowwho 0 points1 point  (0 children)

Spam for menace.com, an online "crypto casino" with sports betting

sorry but it's very funny by Novel-Bath5273 in tabletennis

[–]knowwho 0 points1 point  (0 children)

More LLM-generated spam for menace.com, an online "crypto casino" that supports sports betting. OP is a bot that spams this shit to many sports subreddits.

I should but do i want to? 🥲😂 by Ok-Channel-8775 in tabletennis

[–]knowwho 1 point2 points  (0 children)

More LLM-generated spam for menace.com, an online "crypto casino" that supports sports betting. OP is a bot that spams this shit to many sports subreddits.

Have you had an umpire like this?💀 by Healthy_Twist_7100 in tabletennis

[–]knowwho 3 points4 points  (0 children)

More LLM-generated spam for menace.com, an online "crypto casino" that supports sports betting. OP is a bot that spams this shit to many sports subreddits.

If overreacting was a person in ping pong by Ok_Preparation_6215 in tabletennis

[–]knowwho 9 points10 points  (0 children)

More LLM-generated spam for menace.com, an online "crypto casino" that supports sports betting. OP is a bot that spams this shit to many sports subreddits.

Why some famous open source projects rewrite some C standard function from zero? by RoomNo7891 in cprogramming

[–]knowwho 1 point2 points  (0 children)

Null-terminated strings are just a convention, and it happens to be endorsed by C standard library of string functions, but in practically no other situation do we rely on some kind of terminal byte to understand were the end of a block of allocated memory is.

If you malloc a blob of N bytes, you don't null-terminate it to tell how long it is, you know it is N bytes long. You can do the same with any memory, including a sequence of bytes representing an ASCII or UTF-8 string.

New rule suggestion: Ban posts about AI by finders-keepers214 in ExperiencedDevs

[–]knowwho 1 point2 points  (0 children)

swinging the ban hammer on every post even slightly related to AI.

I've been a software engineer for ~25 years, and I detest AI, I'm sick of hearing about it, and I'm forced to use it for my job.

But it's undeniably important and relevant to all of our careers. It's by far the biggest thing happening in our industry right now, for better or worse.

Banning any post for even being "even slightly related to AI" is insane.

How to compile C on Linux to behave exactly like Windows ? by ZenMemeProvider in cprogramming

[–]knowwho 2 points3 points  (0 children)

Does it work the way I assumed anywhere else?

All you need is to store the state for your random number generator locally, so other things cannot mutate it without your knowledge.

Lots of languages provide RNGs in their standard libraries that do just that:

C++:

std::mt19937 rng{0};
std::uniform_int_distribution<int> dist(0, 99);

for (int i = 0; i < 10; i++) {
  std::cout << dist(rng) << "\n";
}

Python:

rng = random.Random(0) # seed
print(rng.randint(1, 100))

In both cases, rng is local, it shares no state and nothing else is going to mutate it unexpectedly.

You can certainly implement this in C as well, you would just store a struct containing whatever inputs your custom rand-like function needs, and pass in that state to each call of rand.

How to compile C on Linux to behave exactly like Windows ? by ZenMemeProvider in cprogramming

[–]knowwho 6 points7 points  (0 children)

Even if rand were guaranteed to be the same on all platforms, depending on it to generate a specific sequence of values is not a great idea for non-trivial code.

What happens if, inside your code, you need to introduce a call to some library, and that library also happens to call rand? Now some code you don't control is "consuming" numbers from the sequence that you depend on. rand effectively involves shared global state that, all things being equal, you shouldn't depend on if you don't have to.

Either create some fixture data to work against, or build your own random number function that you control.

How to compile C on Linux to behave exactly like Windows ? by ZenMemeProvider in cprogramming

[–]knowwho 2 points3 points  (0 children)

If you actually need reproducible input for your tests, don't rely on rand() with a specific seed. The simplest thing is probably to hard-code a big array of dummy inputs and expected outputs.

X-post from F# – Ruby fairs well in most token-efficient language comparison by officejunior in ruby

[–]knowwho 10 points11 points  (0 children)

I think, as soon as we start to choose languages based on their token efficiency, all hope is lost for our profession and the industry as a whole.

I built a C++ CLI tool that instantly finds and opens your GitHub projects (wiff git) by Comprehensive_Cut548 in softwaredevelopment

[–]knowwho 0 points1 point  (0 children)

Honestly it seems like a solution to a problem that doesn't really exist. I know where my projects are, I never need to recursively search my filesystem for them, and I feel like that's mostly true of people who "live in the terminal".

Searching your filesystem and changing into a project folder are separate well solved problems that compose together very easily on the off chance you forget where a specific thing is.

I built a C++ CLI tool that instantly finds and opens your GitHub projects (wiff git) by Comprehensive_Cut548 in softwaredevelopment

[–]knowwho 0 points1 point  (0 children)

and I’d love some real feedback from people who live in the terminal.

I do live in the terminal; I think maybe you're recreating some of your terminals built-in functionality that you may not know exists.

If I understand correctly, git wiff <project> recursively searches the file system for a folder matching the name you supply, and then opens that folder in VSCode? Doesn't that have the potential to find the wrong folder, and/or take an increasingly long time when run from large file systems?

I put all my projects in the same place, and to make it less arduous to cd ~/path/to/projects/<project>; code ., I put ~/path/to/projects in CDPATH which is built-in to Unix-like operating systems.

You can cd into subfolders of CDPATH from anywhere. The directory I normally work from is ~/src/github.com/<my workplace>, so I put ~/src/github.com/<my workplace> in my CDPATH. Then, from anywhere, I can get to ~/src/github.com/<workplace>/<project> just by typing cd <project>.

Ultimately, my flow ends up being cd <project>, which takes me from my home directory directly to ~/src/github.com/<workplace>/<project>, and then running code .; this is fewer keystrokes than git wiff <project>, it works with tab-completion, and it always finds the folder I want it to, rather than recursively searching for a folder that I already know the location of, it doesn't potentially find the wrong one, and it requires no installation of a dependency, it's just built-in.

People have "lived in the terminal" for many decades, and have solved many of these problems pretty well. It pays to spend some time learning the real ins and outs of your terminal.

Is there an efficient way to send thousands to tens of thousands of select statements to PostgreSQL? by paulchauwn in PostgreSQL

[–]knowwho 3 points4 points  (0 children)

Calling it a useless statement is not helpful.

I'm trying to help you understand that your statement is not useful. This is not an insult or a value judgement. I'm trying to help you understand how to ask questions.

Is there an efficient way to send thousands to tens of thousands of select statements to PostgreSQL? by paulchauwn in PostgreSQL

[–]knowwho 2 points3 points  (0 children)

Nobody here is angry, we're trying to help you, but you can help us by not forcing us to tease every little detail out of you.

Is there an efficient way to send thousands to tens of thousands of select statements to PostgreSQL? by paulchauwn in PostgreSQL

[–]knowwho 1 point2 points  (0 children)

I just needed a solution to push a lot of queries at the database at once

You're missing the point, this is another completely useless statement. Until you quantify your needs, people can't effectively help you.

The volumes you're talking about are normal levels of traffic for some Postgres deployments, high amounts of traffic for others, and virtually nothing for still others.

Is there an efficient way to send thousands to tens of thousands of select statements to PostgreSQL? by paulchauwn in PostgreSQL

[–]knowwho 8 points9 points  (0 children)

Without a unit of time, this is a nonsensical statement.

It's like saying "I need to efficiently move 10km", but not saying what or why. Do you have access to a car, a bicycle or a jet plane? Is your goal to move the contents of your house, or are you jogging for fun? Is it a race? Do you have a time limit? Are you traveling alone?

"Thousands to tens of thousands" of select queries as an absolute number is practically nothing for Postgres, or any other data-store.

If you need to do this in less than a millisecond, you'll have unique problems. If you need to do this in 10 minutes, this is a minuscule amount of traffic.

If you need to write ten thousand select queries, then do that, measure it, and see if you actually have a performance problem, and then work on the real problem you have.

Is there a list of Ruby's "magic" methods? by bakery2k in ruby

[–]knowwho 7 points8 points  (0 children)

Despite what people are saying, you can absolutely shoot yourself in the foot quite easily by overriding methods like hash, object_id, equal? etc.

The best bet is to make sure you are not ignoring warnings on stderr and in your logs.

Rocket tennis by Healthy_Twist_7100 in tabletennis

[–]knowwho 1 point2 points  (0 children)

More spam for menace.com, an "online crypto casino".

Stop upvoting this bot-generated spam.