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.

Dentarthurdent , in I'll just be a quick 3h

Same feel as “how long is this going to take to pull?” Well I don’t know if part of what you’re asking for exists, how clean it is, and if can join the data you’re talking about, so anywhere from 5 minutes to never?

cybersandwich ,

That’s exactly how you should respond. I’ve been on the requester for some of these and if my team gave me that as a response I’d just say “let me know what you find out or when you know more.”

knobbysideup , in GoOn

0.0.0.0/0

::/0

Manifish_Destiny ,

Winrar

Dlayknee ,

Chicken dinrar?

jeffhykin , (edited ) in Oh yea, that's the good stuff **huffs glue**

If you think that’s good, then you’re gonna love this “simplified” real code posted as a real issue on one of my Github repos.

Edit: updated link to address the stack-trace comment

parlaptie ,

That’s not actual code though, it looks like some kind of trace. Notice the filenames at the end of each line.

The actual solution the issue opener there might be looking for is to disable C++ parsing, since it’s not actually C++ code, it’s just some text they pasted into VSCode and they’re wondering why their editor can’t handle it.

jeffhykin ,

Without thinking about it much, my understanding was that each line of the stack trace referred to a real line, even though the block as a whole wasn’t a program.

But! because of this comment I went and checked the lines of those stack traces. And in fact, they’re not real lines, just the C++ type expansion.

That said I’ve got a another half as bad example that is real so Ive edited the comment to point to that example instead.

xantoxis , in JavaScript's days are numbered

Also means you can’t reference anything earlier than the late Pleistocene.

sik0fewl ,

Nothing happens before c. 4000 AD anyway.

NegativeInf ,

Sorry, that’s also wrong. The entire universe, in its current state, popped into existence last Tuesday. It’s been terribly inconvenient tho.

LinuxSBC ,

I thought it was last Thursday.

sik0fewl ,

I wish we would have popped into a better existence.

NegativeInf ,

We should never have coalesced from the quantum foam.

PunnyName ,

GODDAMMIT

r00ty Admin , in They used coding and algorithms
r00ty avatar
function goingToCrashIntoEachother()
{
    // NYI
    return false;
}
odium ,

//TODO: implement logic

ChaoticNeutralCzech ,

<span style="color:#323232;">//tested: 100% working on actual drone
</span>

– You mean drones, right?

nxdefiant ,

unittest 100% complete, story closed.

guycls ,

Ship it!

Feyter , in D or d come on

I don’t get it… “D” is a complete different character than “d” is.

It’s like wondering why “file1” is not opened when I typed in “file2”.

1984 ,
@1984@lemmy.today avatar

People want their computers to magically know what they want these days. :)

This specific problem doesn’t exist in oh-my-zsh config though. It will find the directory even if spelling it like this.

PupBiru ,
@PupBiru@kbin.social avatar

“magically know what they want” aka occasionally set you and your files on fire

i prefer not fire

schnurrito ,

On Windows filenames are case insensitive at least usually, some people are used to that. But that is poor design for so many reasons, Turkish I being one of them.

user224 ,
@user224@lemmy.sdf.org avatar

Now take Android. Files are case-sensitive yet you can’t create 2 files with same name if they only vary in case.

Reil ,

One of the most pointlessly annoying things I’ve had to deal with was trying to move a process made for Linux onto a Windows MINGW/cygwin-type environment where one of the scripts would generate “.filename” AND “.FileName” files. :|

lemmonade ,

You could also say that down should not complete to download since those are completely different strings and you shouldn’t expect one to get you the other.

Feyter ,

Sorry, down is a substring of download I don’t get your point either?

Honytawk ,

Substring is not string.

If they were interchangeable, then “D” & “d” should be too.

Feyter ,

down matches down* because * also includes empty string. Also download matches down*

D matches D* but d is not matching D* because D is a different character than d.

lemmonade , (edited )

but why do we have to match specifically against substr*? it’s not a law of nature, we could also match against the regex (?i)substr(?-i).*

not saying that one option is necessarily better, but I don’t see a good reason for which any one of these options would be terrible

Feyter ,

Because usability. If you have the files down down1 down2 downxyz and download and the user only knows that it was “something with down” it’s best to show the user everything matching “down*” and let the user decide what’s the correct one.

Also I’m not sure but wouldn’t your expression show everything if only one character would be entered?

And again I don’t see this solving anything if the entered string actually contains other characters then what’s in the file (D != d)

Yes one could argue that some form of advanced algorithm or even AI could be used to identify such use case like download and Download but this is programming Humor, not linguisic Humor.

lemmonade ,

would it not be usable to have completion be case insensitive? I seem to be able to use that… if I only remember “something with down”, I could just as easily forget the capitalization of “down”. maybe I have downloads and Down? why not show everything matching case insensitively and let the user decide what’s the correct one?

I didn’t really understand what you thought the regex did incorrectly, but I think the regex works fine, at least for most implementations, anyways what I meant is just a case insensitive version of the regular substring completion, which shouldn’t be too difficult to make.

The only thing it solves is the frustration of having to look for a file/directory twice because you didn’t remember it’s capitalization. again, those are different characters just like a do and downloads are different strings, but it can be easier for users if they can just press tab and let the computer fill the part of the name the don’t remember (or don’t want to type).

you don’t need an advanced algorithm or and AI, there are many easy ways to make completion case insensitive (like that regex for example). Issues involving names are inherently somewhat linguistic, but either way interactive shells are meant to be (at least somewhat) usable to humans, and as seen by the post, some people would prefer completion to be case insensitive.

Swedneck ,
@Swedneck@discuss.tchncs.de avatar

that’s not how language works though, in human language (i know this can be confusing) d and D are the same letter just in different forms.

It’s one thing to have case sensitivity in programs doing data manipulation, that makes sense because you don’t want the program to accidentally use the wrong files without supervision.

But when you have an interactive prompt you know what you’re doing, you can see if you entered the wrong directory, and you’re generally going to be working in directories that you have yourself organized.

4am ,

Doesn’t tab completion solve this if there are no alternatives with matching case? sounds like a PBKAC

MBM , in Programming Languages as Essays

Brainfuck: it’s technically an essay, but who in their right mind would write it using only the first eight letters of the alphabet?

Nioxic ,

++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++++.–…++++++.

min_fapper , in Always commit

The most common advice for git is

commit early. commit often

Do not however, follow the same advice for relationships.

Blamemeta , in Which side are you? Javascript or Typescript

Typescript is great for catching long standing bugs in old legacy JS.

RandomVideos , in This one goes out to the sysadmins in the crowd.

Why did it change from 64 gb of ram to 1.268869321 E+89(64!) gb of ram

Also, 2.092278988 E+13(16!) gb is a lot more than 64 gb

AeonFelis ,

Said app is Chrome

stoicmaverick ,

Came here to say this. Nerd…

Hupf ,

What you said makes 0! sense

RandomVideos ,

What does 1(0!) sense mean?

TehPers ,

It means it made 100% sense.

huginn , in This one goes out to the sysadmins in the crowd.

Meanwhile I’m given a 16gb of ram laptop to compile Gradle projects on.

My swap file is regularly 10+ gigs. Pain.

lemmyvore ,

That reminded me about trying to compile a rust application (Pika Backup) on a laptop with 4 GB of RAM (because AUR).

That was a fun couple of attempts. Eventually I just gave up and installed a flatpak.

huginn ,

God bless flatpack in times of need

NatoBoram , in Golang be like

And I fucking love it. Thank you Go!

stebo02 ,
@stebo02@lemmy.dbzer0.com avatar

lol what’s wrong with you

NatoBoram ,

“Other people” are what’s wrong with me. People don’t use linters/formatters/type annotations when it’s optional and produce dogshite code as a result. Having the compiler itself enforce some level of human decency is a godsend.

stebo02 ,
@stebo02@lemmy.dbzer0.com avatar

sure but unused variables are no biggie

tungah , in Linux Best Practices

Is sudo even necessary? I bet the command would execute without any resistance.

pomodoro_longbreak ,
@pomodoro_longbreak@sh.itjust.works avatar

Boooo 🏳️

oce ,
@oce@jlai.lu avatar

Bush wants its Irak War II joke back.

mikyopii , in How much firmware is initializing???
@mikyopii@programming.dev avatar

When you make a potentially system breaking change and forgot to make a snapshot of the VM beforehand…

MystikIncarnate ,

There’s always backups… Right?

… Right?

WhyJiffie ,

oh there is. from 3 years ago, and some

msage ,

And no one ever tried to restore it.

Happened to me as well, after a year I learned incremental DB backups were wrongly offset by GMT diff, so we were losing hours every time. Fun.

Luckily we never needed them.

And now we have Postgres with WAL archiving and I sleep so much better.

Buddahriffic ,

Someone set up a script to automatically create daily backups to tape. Unfortunately, it’s still the first tape that was put in there 3.5 years ago, every backup since that one filled up failed. It might as well have failed silently because everyone who received the email with the error message filtered them to a folder they generally ignored.

nick , in How much firmware is initializing???

Just had to restart our main MySQL instance today. Had to do it at 6am since that’s the lowest traffic point, and boy howdy this resonates.

2 solid minutes of the stack throwing 500 errors until the db was back up.

xmunk ,

If you have the bandwidth… it is absolutely worth it to invest in a maintenance mode for your system, just check some flat file on disk for a flag before loading up a router or anything and then, if it’s engaged, just send back a static html file with ye olde “under construction” picture.

dondelelcaro ,

Bonus points if your static site sends a 503 with a retry after header.

nick , (edited )

That’s not really… possible at this point. We have thousands of customers (some very large ones, like A——n and G—-e and Wal___t) with tens or hundreds of millions of users, and even at lowest traffic periods do 60k+ queries per second.

This is the same MySQL instance I wrote about a while ago that hit the 16TiB table size limit (due to ext4 file system limitations) and caused a massive outage; worst I’ve been involved in during my 26 year career.

Every day I am shocked at our scale, considering my company is only like 90 engineers.

MystikIncarnate ,

Is that the same database my user couldn’t connect to today?

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