1337 h4x0r

cross-posted from: https://lemmy.dbzer0.com/post/51544482

212 points · 54 comments · view on lemmy.world

54 Comments

slazer2au@lemmy.world · 92 pts · 352d (2 replies)

or at least build instructions right?

afk_strats@lemmy.world · 62 pts · 352d (1 reply)

This is so on point.

I get not wanting to compile your code. Its extra work and, if you're already catering to a very thech-savvy crowd, you can let them deal with the variance and extra compile time.

BUT if you're releasing your code for others TO USE and you don't provide reproducible instructions, what's the point?!?

slazer2au@lemmy.world · 26 pts · 352d

BUT if you’re releasing your code for others TO USE and you don’t provide reproducible instructions, what’s the point?!?

CV padding?

meme_historian@lemmy.dbzer0.com · 78 pts · 352d

install.sh


#!/bin/sh
echo "compiling and running this mess is left as an  exercise to the reader."

thelittleerik@lemmy.world · 61 pts · 352d (4 replies)

I DONT GIVE A FUCK ABOUT THE FUCKING CODE! i just want to download this stupid fucking application and use it https://github.com/sherlock-project/sherlock#installation

WHY IS THERE CODE??? MAKE A FUCKING .EXE FILE AND GIVE IT TO ME. these dumbfucks think that everyone is a developer and understands code. well i am not and i don't understand it. I only know to download and install applications. SO WHY THE FUCK IS THERE CODE? make an EXE file and give it to me. STUPID FUCKING SMELLY NERDS

wizardbeard@lemmy.dbzer0.com · 48 pts · 352d (2 replies)

Shame that it seems like people don't realize you're using a real issue someone opened on github as a copypasta.

tal@lemmy.today · 28 pts · 352d

Can be hard to tell.

https://en.wikipedia.org/wiki/Poe%27s_law

Poe's law is an adage of Internet culture which says that, without a clear indicator of the author's intent, any parodic or sarcastic expression of extreme views can be mistaken by some readers for a sincere expression of those views.[1][2][3]

Origin

Poe's law is based on a comment written by Nathan Poe in 2005 on christianforums.com, an Internet forum on Christianity. The message was posted during a debate on creationism, where a previous poster had remarked to another user: "Good thing you included the winky. Otherwise people might think you are serious".[4]

The reply by Nathan Poe read:[1]

Without a winking smiley or other blatant display of humor, it is utterly impossible to parody a Creationist in such a way that someone won't mistake for the genuine article.

Apparently this was the original post:

https://old.reddit.com/r/github/comments/1at9br4/i_am_new_to_github_and_i_have_lots_to_say/

And then someone saw it on Reddit and created an issue on the sherlock project over it:

https://github.com/sherlock-project/sherlock/issues/2011

possiblylinux127@lemmy.zip · 8 pts · 352d

You are forgetting the death threats

mic_check_one_two@lemmy.dbzer0.com · 6 pts · 351d

Also probably worth noting that this is the exact type of person who should never be allowed to use Sherlock.

17lifers@sopuli.xyz · 45 pts · 352d (2 replies)

bold of you to assume linux users run installers lol

miss_demeanour@lemmy.dbzer0.com · 12 pts · 352d (1 reply)

Heard.
Sounds far too windowish but there are only a couply techie-meme comms, so I figured I'd drop it here anyway.

alsaaas@lemmy.dbzer0.com · 3 pts · 351d

It would fit in c/Programmerhumor too, I think.

possiblylinux127@lemmy.zip · 38 pts · 352d (2 replies)

People here are so entitled. Developers have zero obligation to do anything. If you don't like that you can do it yourself. Don't expect people to drop everything to help you.

Most devs are pretty chill and will even help you if you are nice. Don't be a jerk.

tal@lemmy.today · 25 pts · 352d (1 reply)

Padmé may not realize that it's not Anakin's job if Padmé is coming off Windows, because if Padmé uses Windows, Padmé's user workflow is "go to developer's website, download binary installer", and it'd be really weird for the developer to not provide a binary installer. Windows doesn't have distros that distribute software (well, okay, I guess Windows has an app store or something these days and Steam, and that's a bit analogous, but that's not how things work traditionally).

My assumption would be that it's not that Padmé's being entitled, just that Padmé doesn't know how this works and is confused and thus frustrated.

possiblylinux127@lemmy.zip · 7 pts · 352d

You clearly haven't been on the receiving end

WalnutLum@lemmy.ml · 34 pts · 352d (3 replies)

"here is a checksum of my /usr/lib folder, if yours differs from mine I can't provide installation support"

tal@lemmy.today · 13 pts · 352d (2 replies)

here is a checksum of my /usr/lib folder

That's actually not as trivial as it seems, because you need a canonical representation of that directory to generate such a thing in the same way on each side.

You need to encode the metadata in a standard way, encode new data that shows up in a standard way, and various people can add more metadata to files: think like Posix ACLs or the immutable flag or whatever.

Then there is maybe some metadata that you probably want to exclude, like atime (though not if you're something like rsync -U!), and some metadata that you almost-certainly want to exclude, like inode number.

The OS's file APIs won't have a defined order in which they return entries in a directory. Like, they'll normally just return it in whatever order things come back from the filesystem, which is probably whatever is most-efficient for the filesystem in question, given how things are encoded on disk. If you sort the directory entries, then it can't be --- as is the case for most things on the system --- done in a locale-dependent fashion. Utilities like tar don't impose a canonical ordering, so you can't just dump the problems on tar by checksumming a tarball of the directory.

EDIT: tar does appear to have a canonical ordering option today, though it also probably doesn't have the constraint of being backwards-compatible with metadata included, another thing that one would need for such a checksum if one were to leverage tar.

WalnutLum@lemmy.ml · 10 pts · 351d

You need to encode the metadata in a standard way, encode new data that shows up in a standard way, and various people can add more metadata to files: think like Posix ACLs or the immutable flag or whatever.

Nix actually invented a fork of tar specifically for this called "normalized archive" or "Nix Archive" or nar. Guix uses this too:

https://releases.nixos.org/nix/nix-2.22.0/manual/protocols/nix-archive.html

FishFace@lemmy.world · 1 pts · 350d

You need to

Given it was a joke, I don't think you need to do anything...

The OS’s file APIs won’t have a defined order in which they return entries in a directory

Sorting is a thing :)

cosmicrose@lemmy.blahaj.zone · 27 pts · 352d (2 replies)

It’s called cargo install duh

KazuchijouNo@lemy.lol · 26 pts · 352d (1 reply)

Car no go install, car go vrr vrr

kubica@fedia.io · 19 pts · 352d

cargo b -r

tal@lemmy.today · 23 pts · 352d (1 reply)

The correct response here is: I'm upstream. The distro guys do that.

possiblylinux127@lemmy.zip · 10 pts · 352d

Or just a plain no

I sometimes will write something but I don't provide free support for random people on the internet. Just because I publish some code doesn't mean I'm actively working on it. I'm not about to drop everything for some jank program I made years ago.

alsaaas@lemmy.dbzer0.com · 20 pts · 351d (6 replies)

Here is an Appimage and Flatpak, go bug your distro maintainers if you want it packaged

lime@feddit.nu · 9 pts · 351d (5 replies)

that's far preferable tbh. i'm much more likely to try out some piece of software if it does not require sudo to install.

alsaaas@lemmy.dbzer0.com · 2 pts · 351d

If I ever publish a desktop programme, it will probably be like that TBH.

Also IIRC Bottles only supports bug reports if they are reproducible in the Flatpak, which I think is a very reasonable way of handling it and would probably copy it.
Chances are if the same version only has a bug when installed traditionally, you should be writing in Launchpad or something instead of the repo issue tracker.

jcb20165@kbin.melroy.org · 1 pts · 347d (2 replies)

Like windows?

lime@feddit.nu · 2 pts · 346d (1 reply)

windows asks for admin access for everything. using a windows box as an unprivileged user is a nightmare

jcb20165@kbin.melroy.org · 2 pts · 346d

Yep

alsaaas@lemmy.dbzer0.com · 1 pts · 351d

Well, sudo installing random .deb/.rpm packages is really bad practice. But I assume you trust the maintainers of the distro you are using.

30p87@feddit.org · 19 pts · 352d (4 replies)

Installer? What? Just do cmake .

b_tr3e@feddit.org · 13 pts · 352d (1 reply)

And ./autoconf.sh? What' about autoconf.sh? Doesn't anyone think of autoconf.sh anymore?

Nevertheless, why all the pointless speculations if we still don't know if he uploaded an installer or not? We still don't know! Why didn't OP tell us? Why does noone instist on him telling us? The internet is for the exchange of knowledge, isn't it? So did he, or did he not? I am waiting on an answer!

corsicanguppy@lemmy.ca · 4 pts · 352d

And ./autoconf.sh? What' about autoconf.sh? Doesn't anyone think of autoconf.sh anymore?

Just the pros.

But they'll be the ones delivering real, sound, packages, that install cleanly and upgrade perfectly. Anything less is unprofessional.

Steve@startrek.website · 9 pts · 352d (1 reply)

Fatal error: G:/code/old/bak/important/extra/include/driver/etc.h not found

30p87@feddit.org · 1 pts · 349d

Just offer downloading the dependencies explicitly as well as the system ones lol

socsa@piefed.social · 12 pts · 352d (10 replies)

There's a dockerfile figure it out yourself.

FlexibleToast@lemmy.world · 9 pts · 352d (9 replies)

If you have a dockerfile, take the extra step of making the workflow that builds the container and pushes it to a registry somewhere.

socsa@piefed.social · 9 pts · 352d (1 reply)

Best I can do is a script that wgets the container from Google drive. Ain't nobody got money for proper docker hosting.

FlexibleToast@lemmy.world · 5 pts · 352d

For the free docker hosting?

bier@lemmy.blahaj.zone · 4 pts · 352d (1 reply)

No U!

FlexibleToast@lemmy.world · 1 pts · 352d

I do

possiblylinux127@lemmy.zip · 0 pts · 352d (4 replies)

That is way harder for little benefit

FlexibleToast@lemmy.world · 2 pts · 352d (2 replies)

Way harder? It's one little file to create.

nickwitha_k@lemmy.sdf.org · 1 pts · 351d (1 reply)
#!/bin/bash
# Build image and push to registry
docker build -t myproj:latest . && docker push myproj:latest
FlexibleToast@lemmy.world · 2 pts · 351d

You could almost literally do that with buildah in an action.

nickwitha_k@lemmy.sdf.org · 1 pts · 351d

In my experience often detriment. Most of the images for projects that I have been encountering as of late - hell, most Dockerfiles that I've been encountering - have hardware-specific config and packages. I just want a Dockerfile or maybe a docker-compose.yaml that is hardware neutral by default and doesn't use the shitty throttled Dockerhub for its base image.

jkercher@programming.dev · 10 pts · 352d
gcc main.c

- unity build gang

h4x0r@lemmy.dbzer0.com · 6 pts · 352d (3 replies)
./configure
make -j$(nproc)
sudo make install
tal@lemmy.today · 3 pts · 352d (2 replies)

So, from a technical standpoint, that's the correct answer (well, I'd use ionice -c3 nice -n20 make -j$(nproc)).

But...I kind of feel that most of the time, if someone is likely to be asking an upstream project for a binary installer, it might not be a great idea for them to be installing non-package-managed stuff systemwide. I don't know if they'd be in a good position to diagnose or fix issues arising from that. Maybe use something like alien.

I'd be less-concerned about compiling to and invoking locally from the compilation directory, something that most packages permit for.

h4x0r@lemmy.dbzer0.com · 6 pts · 352d (1 reply)

might not be a great idea for them to be installing non-package-managed stuff systemwide

./configure
make -j$(nproc)
./build/bin/app
tal@lemmy.today · 5 pts · 352d
corsicanguppy@lemmy.ca · 4 pts · 352d

So many supply chain sploits. Opaque dockers, toxic crates, curl/sh victims; the list is endless.

lena@gregtech.eu · 4 pts · 352d

go build .