There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

programmer_humor

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

tsonfeir , in Hate it when that happens
@tsonfeir@lemm.ee avatar

I’m sure I’ll get shit for this, but AI is often a good tool to use for these situations.

alphacyberranger OP ,
@alphacyberranger@sh.itjust.works avatar

Like some other user said, if nobody ever had this problem, it was never answered and AI would have never got the data to train in the first place unless ofcourse it pulls something totally made up out of its ass.

tsonfeir ,
@tsonfeir@lemm.ee avatar

Gotta disagree. Sometimes you’re working with something old, where there is documentation, but very little actual conversation online. Or a topic that no longer has an active community online, but you just need some basic questions answered.

knowing how to get the right info by using the right prompts is a skill that not everyone has, which is why so many people get inaccurate answers.

rufus ,

I’ve tried. And usually the questions I ask are too specific. I mean I can answer the basic questions myself and often I get several result when it’s just that. The AI just mumbles general advice and is always wrong if it’s too specific. Like for example: Why does the graphics driver crap out on any OpenGL ES instruction on the old single board computer I have lying around, despite the SoC being supported?

tsonfeir ,
@tsonfeir@lemm.ee avatar

… is that your prompt?! No wonder you’re getting crap. It’s a computer program, you have to feed it valid data. There is a huge misconception that you can CHAT with it… which was introduced by calling it “ChatGPT,” a horrible name.

You need model numbers, OS versions, driver versions, and any other relevant information like error messages, screenshots, and code if you are developing.

rufus , (edited )

No? I left out the detailed info here as I thought it’s of no concern. I provided it with pretty much the same info I’d write to the Linux Kernel Mailing List. With computer bugs that’s usually steps to reproduce the issue, exact versions of everything, exact error messages and my findings from googling and looking at the code…

That was one of the issues I had that only gave me one or two search results and it’s unlikely that someone comes up with a solution since the hardware is outdated and not many people have that specific board lying around and also the expertise to understand the low level hardware coding involved.

I mean it kind of fits the rest of the picture I have from using ChatGPT and similar stuff. It can do easy stuff. And write boilerplate code pretty alright. With the Arduino code I’m tinkering around as a hobby… not so much. I once asked it to do the inverse kinematics for a small robotics project. And the AI can tell me about what I just read on the Wikipedia article about that topic. But that’s it. Not an idea how to apply that info. And that the complicated part is to come up with the specific Jacobian matrix. And not just tell me that using one is one of the few approaches to that problem. That’s obvious from reading the Wikipedia article or reading any textbook. And it did silly things like write code like equation.solve(parameter1, parameter2, parameter3) … Sure. I mean if I already had a framework that did that and was available on an embedded platform, I wouldn’t have had that problem in the first place…

So my attempts at using AI for the issues I have with computers regularly fail. I can see how that’s not the experience everyone has, but still… It doesn’t really help me with specific problems or rare issues.

And I still have a few I can try to question some AI about… An slow Wireguard VPN tunnel inside if another tunnel that I already fixed the MTU and it’s still unbearably slow… A few obscure webframeworks that don’t tie into things… But I’m pretty sure I’ll get the same results.

Have you ever been lucky with AI and issues that didn’t get you any search results because no one ever did it before? I mean I’d be happy to learn how to use AI properly as a tool. It’s just I’ve tried and I don’t think I’m too stupid to prompt it. It’s just that I’ve given up since it doesn’t seem nowhere near intelligent enough to tackle the real issues I have. I’m not opposed to AI. I use it and it helps me get small stuff done easier/faster.

jjjalljs , in New language

The python code we inherited had some performance issues. One of the guys was like “we should rewrite this in Java”.

Luckily the boss was not an insane person and shut that down. The issue was an entirely stupid “…and then we do one query per project” behavior that worked fine when the company was small but unsurprisingly started to suck as users created more projects.

Instead of a months long complete rewrite, we had a two hour “let’s add profiling… Oh wow that’s a lot of queries” session.

python , in Hilarious

I’ll do you one better

function* sorry() { yield “I’m sorry”; }

Call sorry.next().value as many times as you need to baby, hell you can even use it in a for-of loop because Generator functions are Iterable. I fucking love JavaScript

brian ,

lol that doesn’t work either tho. it yields the string once and then is done. you still need a loop inside

python ,

You’re right! That’s actually a really cool point about Generator functions too, them having while(true) loops is very unproblematic :D

I’m correcting myself to:

function* sorry() { while(true){ yield “I’m sorry”; } }

ridiche , in Should I file a bug report? 😀

Yes

Socsa , in New language

This is super easy, you just fire all the Java devs and hire real engineers.

ridiche , in Aaargh....my eyes......my eyes......

I don’t see the problem

aluminium , in New language

Java is great, the way its (ab)used is terrible.

tengkuizdihar , in Rebase Supremacy
@tengkuizdihar@programming.dev avatar

Please for the love of god don’t use merge, especially in a crowded repository. Don’t be me and suffer the consequences. I mistakenly mention every person with a commit between the time I created the branch until current master.

nialv7 ,

That was you! I remember this.

tengkuizdihar ,
@tengkuizdihar@programming.dev avatar
bear ,

There’s 102 people mentioned in that commit and two of them happen to meet in the comments of a meme thread on Lemmy of all places. I love the Internet.

Atemu ,
@Atemu@lemmy.ml avatar

Merge is not the issue here, rebase would do the same.

tengkuizdihar ,
@tengkuizdihar@programming.dev avatar

really? how come? I thought they are mentioned because of the diffs if compared to master, which merge basically just… merge on top of my branch (?)

Atemu ,
@Atemu@lemmy.ml avatar

They were mentioned because a file they are the code owner of was modified in the PR.

The modifications came from another branch which you accidentally(?) merged into yours. The problem is that those commits weren’t in master yet, so GH considers them to be part of the changeset of your branch. If they were in master already, GH would only consider the merge commit itself part of the change set and it does not contain any changes itself (unless you resolved a conflict).

If you had rebased atop of the other branch, you would have still had the commits of the other branch in your changeset; it’d be as if you tried to merge the other branch into master + your changes.

Bourff ,

Just for the record, I think you’re conflating git and GitHub. They are not the same thing, even if GH would like you to think so.

Atemu ,
@Atemu@lemmy.ml avatar

I am not. Read the context mate.

jaemo ,

Could have been worse. I mean, like, imagine of you were using like CVS and you put a watch on the root! Haha and then like every trivial commit in the repo caused everyone to in the entire org to get an email and it crashed the email servers.

Like who’d even DO that?! Though, I bet if you met that guy he’d be ok. Like not a jerk, and pretty sorry for all those emails. A cool guy.

droans ,

You sent over twenty-two thousand notifications lmao.

And then the bot added about as many tags to the PR.

JayDee , (edited ) in Daylight saving creator left the chat....

I’ve just said ‘fuck it’ and switched all my clocks to UTC. I don’t even care anymore.

uis ,

Why not metric time(TAI)?

Quill7513 ,

Or why not just seconds past the epoch?

nabladabla ,

leap second corrected or not?

uis ,

Metric seconds or UTC seconds?

Quill7513 ,

I’m gonna say SI

JayDee ,
uis ,

Reasons just states difference, but does not answer why.

JayDee ,

There’s literally a section titled ‘why use UTC - not TAI?’.

dukk ,

On the other hand, TAI does not take into account the variations in Earth’s rotation speed, which determines the true length of a day. For this reason, UTC is constantly compared to UT1. Before the difference between the two scales reaches 0.9 seconds, a leap second is added to UTC.

On average, Earth has been slowing down a bit over the past decades, so UTC is currently running 37 seconds behind TAI.

uis ,

So leap seconds is advantage here?

perviouslyiner ,

Is that supported in any common operating systems?

uis ,

Yes, CLOCK_TAI here

arc , in Daylight saving creator left the chat....

I once developed an electronic program guide for a cable TV company in New Zealand and I’d lose my mind if I had to use timezones. The basic rule of thumb was:

a) Internally you use UTC religiously. UTC is the same everywhere on Earth, time always goes forward, most languages have classes that represent instants, durations etc. In addition you make damned sure your server time is correct and UTC.

b) You only deal with timezones when presenting something to a user or taking input from a user

Prior to that I had worked for a US trading company that set all their servers to EST and was receiving trades through the system which expressed time & date ambiguously. Just had to assume everywhere that EST was the default but it was just dumb programming and I bet to this day every piece of code they develop has time bugs.

letsgo ,

Standardising on EST is fine; it’s just UTC plus a constant. If they flipped between EST and EDT, now that’d be insane.

arc ,

Yes as long as the rules are known, but it’s really just better to do things sanely and leave no margin of doubt.

loutr ,
@loutr@sh.itjust.works avatar

Yep, case in point flipping between EST and EDT may be “insane” but that’s the default for systemd-timesyncd. So now you have to be 100% certain that it’s disabled on your servers, and on the remote hosts interacting with them.

BeardedGingerWonder ,

Best I’ve seen is a process scheduled on UK local time (including hour changes) running on a server that maintains Eastern local (including hour changes) but the process logs in EST ( and does not move with the hour)

uis ,

time always goes forward

It not always goes and not always forward. I think you need metric time(TAI) instread.

arc , (edited )

UTC always goes forward regardless of the timezone and local time. That is why you should use it. To take my EPG situation above, I stored program start / end times in UTC so they would render properly even if DST kicked in or not during the middle of the program.

uis ,

Ok, this is more unix time quirk that can’t handle 24:00:00 and skipping 23:59:59.

UTC always goes forward regardless of the timezone and local time

But not unix time.

I stored program start / end times in UTC

If your program finishes in less than one seond it might report negative time.

arc ,

I didn’t say Unix time, I said UTC. And no it won’t report negative time, not unless somehow the system clock was modified while it was running…

uis , (edited )

not unless somehow the system clock was modified while it was running…

Which is how most systems handle leap seconds.

arc ,

Leap seconds still make time go forwards, not backwards. NTP clients would also resolve small time discrepancies while still advancing forwards prior to the next time sync.

uis ,

Leap seconds can make time go both ways, but adding them makes time stop/go back because 24:00:00 cannot be represented as 1/86400 part of day N instead of day N+1 on major OSes. And they were only added so far.

arc , (edited )

It doesn’t work like that. UTC goes forward always. Leap seconds are scheduled and known in advance. NTP time services will just smear time advancement a little to account for an additional second. Time never has to go backwards. This is how Google does it.

uis ,

This is how Google does it in their datacenters, but not major OSes by default

AeonFelis , in Has this ever happened to you?

KISS and YAGNI in a nutshell.

Rozauhtuno , in Hate it when that happens
@Rozauhtuno@lemmy.blahaj.zone avatar

Had this happen but I wasn’t the only one; one lonely soul before me had the same issue and never got a solution. In the end it stayed unsolved and I just used a workaround.

SturgiesYrFase ,
@SturgiesYrFase@lemmy.ml avatar

I’ve had this happen too, except that one poor soul had one reply in the forum…it was OP saying “Nevermind, I fixed it”

But they didn’t share the fix…

xor ,

🏆

Rozauhtuno ,
@Rozauhtuno@lemmy.blahaj.zone avatar

I love when that happens 🙃

soulfirethewolf , in kno.wled.ge

Aside from the fact that it’s owned by alphabet, what’s so bad about .xyz?

SpaceMan9000 ,

Insanely bad reputation, one hosting provider decided to sell .XYZ domains for 1 dollar per year.

This resulted in people with malicious intent buying up domains en masse to use it for malware delivery/phishing/whatever.

bisby ,

I didn’t realize that. I use a .xyz for a lot of my personal stuff and didn’t realize this. I wanted basically .website … i didnt want .com or .org or anything with tld that meant something, so xyz felt nice. Also, the domain I wanted with any popular tld was insanely expensive and i got my xyz for cheap when it was brand new (not for 1 dollar though).

Maybe I need to look into new domains, but I probably will just stick with it since its primarily for personal use anyway.

JohnEdwa ,

Alphabet uses it for abc.xyz because it’s funny, but the .xyz registrar is the British Team Internet/CentralNic.

Just like how they use youtu.be and goo.gl, but Alphabet doesn’t own Belgium or Greenland either. At least, not yet.

MargotRobbie , in Rebase Supremacy

I think this is a fake quote that somebody made up for an Internet comedy bit, since it seems unlikely for Hollywood actress Sydney Sweeney to have such uncharacteristically strong opinion on software version control, of all things.

Because she of all people would know that there isn’t anything wrong with using git merge, and it ultimately comes down to personal preference to what you are used to.

Conyak , (edited )

I mean, it’s posted in programming humor so yeah.

archomrade ,

Fair point, Margot Robbie

MargotRobbie ,

That’s esteemed Academy Award nominated character actress Margot Robbie to you!

sundray ,

And successful Hollywood film producer – props on getting into the stakeholder end of the business so early in your career!

errer ,

She’s modest too!

Jax ,

But esteemed Academy Award nominated character actress and film director, Margot Robbie, if it’s unlikely that Hollywood actress Sydney Sweeney said this… wouldn’t it be just as unlikely that Margot Robbie would be here? Adding her own comment?

… are you projecting? Is there something you want to tell us esteemed Academy Award nominated character actress and film director Margot Robbie?

hactar42 ,

I think this is a fake quote that somebody made up for an Internet comedy bit

You can tell by the pixels

tja ,
@tja@sh.itjust.works avatar

No, the tweet is real. Just not the quote.

beeng ,

"Don’t always trust what you read on the internet."

  • Benjamin Franklin
ManniSturgis ,

Wait a second, there wasn’t even any social media sites back when Benjamin Franklin lived. Did he write that in his newsletter or something?

masterofn001 ,

I think he was a senior contributor for the underground cracker mag 1600 back in the late 80s.

They called em zines.

Klear ,

Truly he was ahead of his time.

Artyom ,

Margot Robbie, I was about to agree with you and thought that was a very reasonable take, until you tried to argue that git merge is better than git rebase, then I simply had to disregard the whole thing.

MargotRobbie ,

This is why Sydney Sweeney isn’t on Lemmy.

Klear ,

She probably is, just anonymous. It would be crazy to expect anyone to post on lemmy under their real name.

DudeDudenson ,

But they were arguing that it’s personal preference not that one is better than the other

renedescartes ,

A bit of the old on the internet no-one knows you’re a dog, I think. Therefore I am a webdev dog too.

dylanTheDeveloper , (edited ) in Has this ever happened to you?
@dylanTheDeveloper@lemmy.world avatar

“Oh I fixed your code because you did it wrong”

Later:

“Hey the application no longer compiles, I re-wrote a huge chunk of your code and now I don’t know whats wrong”

Passerby6497 ,

“Here are my emergency ‘I broke production’ rates, the bill will be in the mail.”

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines