programming.dev

Vlyn, to memes in Because customers don't need to easily filter away some stuff from their searches

Sacrilege! You broke the template, third and fourth slide should be the same :)

ICastFist,
@ICastFist@programming.dev avatar

I shall commit sudoku to atone for my sin

TerrificTadpole,

Can you also atone for my sins while you’re at it? Thanks.

Albbi,

Ooh, do we have another Jesus situation going on here? I’ll hop on on this.

grue,
Mossheart,

We talking sudo rm-rf /* sudoku here or the kind that you’d find in the newspaper?

ICastFist,
@ICastFist@programming.dev avatar

That sounds like a command that could work, sudo KUUUUUUUUUU, the more Us the slower it details the important files being deleted, without allowing you to cancel the command

blanketswithsmallpox,

Repent ye sinner and post three socially awkward socially awesome penguins, NOT one thing other thing penguin and ye shall be redeemed!

ICastFist,
@ICastFist@programming.dev avatar

Are we talking penguins that represent different linux distros? Because most sure match “socially awkward” and awesome

RedditRefugee69,

Memes are art and this works

OpenStars, to programmer_humor in ifn't
@OpenStars@startrek.website avatar

Please God let this be a humorous post that somehow does not also find a way to manage to come true…

DiabloD3, to programmer_humor in Release notes of an open source app. Someone is pretty mad at Canonical for Snap

Good on them. Snap is a plague.

pkill,

Why are they even still pushing that nonsense when flatpak at least somewhat gets closer to getting bwrap implemented right?

hunger,
@hunger@programming.dev avatar

To be fair: snaps can work for all kinds of things all over the stack from the kernel to individual applications, while flatpak just does applications. Canonical is building a lot around those abilities to handle lower level things, so I guess it makes sense for them.

IMHO flatpak does the applications better and more reliably and those are what I personally care for, so I personally stay away from snaps.

pkill,

Fair point. For instance one thing that sucks about flatpaks is that you can’t torsocks them

Dirk,
@Dirk@lemmy.ml avatar

Why are they even still pushing that nonsense

It’s a for-profit corporation. They only have one goal.

backhdlp, to programmer_humor in We're not the same! (period)
@backhdlp@lemmy.blahaj.zone avatar

I don’t open source my code bc I don’t understand git

xigoi,
@xigoi@lemmy.sdf.org avatar

You can open source your code just by uploading it on some kind of cloud storage and setting it as publicly available.

frezik,

There’s a guy out there who made a reversible NES emulator, meaning it can run games backwards and come to the correct state. He made a brilliant post on Reddit /r/programming linking his ideas for the emulator to quantum mechanics.

Then he was asked why he didn’t distribute his program in git. He said that he didn’t know git.

To me, that’s a pretty good example of the difference between computer science and software engineering.

jack,

It’s perfectly fine to just make a zip available

gratux,
@gratux@lemmy.blahaj.zone avatar

it’s just linked lists of commits (except when merging)

xx3rawr, (edited )

I don’t understand linked lists

QuazarOmega,

In internet terms: It’s just a soyjak holding a box with data who is pointing at another soyjak holding a box with data who is pointing at another {insert N-3 of the same soyjaks} soyjak with a box with data without an arm to point with

ibk,
@ibk@lemmy.world avatar

I don’t understand what a soyjak is.

QuazarOmega, (edited )

soyjaks pointing linked list

Kourtesy of Krita

sheepishly,
@sheepishly@kbin.social avatar

I still don't understand Git but I like this image

gratux,
@gratux@lemmy.blahaj.zone avatar

each commit points to the one before. additionally a commit stores which lines in which files changed compared to the previous commit. a branch points to a particular commit.

Denvil,

It’s just a thingie

philm,

Almost… To be precise it’s a Merkle DAG

HangingFruit,

We are the same

shaked_coffee,

Branchophobic

ImplyingImplications,

git good

nastyyboi,

So, you don’t “git it”?

I’ll escort myself out.

HamBrick,

Git push yourself out* to make the obvious joke

bappity, (edited ) to programmer_humor in ifn't
@bappity@lemmy.world avatar

cap () {

}
nocap () {

}

runner_g, (edited )

nocap(frfr){

}

neurospice, to programmer_humor in Bug Thread

Gets linked to a reddit post with someone having the exact same bug as me.

Comment 1: This comment has been deleted because of Reddit’s api change, here is a link to lemmy lol

OP replying: OMG THIS FIXED IT THANKS!!

wahming,

Sorry not sorry

Octopus1348,
@Octopus1348@lemy.lol avatar

That’s why I whitelisted the comment editing from subreddits where it might be helpful. Even r/linuxmemes, I left some helpful comments there too.

jherazob,
@jherazob@beehaw.org avatar

As one of the very likely commenters that falls into this i’m sorry, but fuck the reddit administration, i left them nothing. Hopefully you might find an archived version of the answer.

XEAL,
ummthatguy, to memes in Appreciate all the content though
@ummthatguy@startrek.website avatar
superduperenigma, to memes in This needs to be a well-defined psychological principle. I do stuff like this all the time

When I was a kid I pressed the “return coin” button on a vending machine at a rest stop and 50¢ came out. Gotta check every single vending machine now.

tigeruppercut,

My dad said when they were kids they’d check the payphones for coins in the change slot, so sometimes kids would spit in them to fuck w people

SuddenDownpour,

Have you found many?

yokonzo,

I do this too, and yeah you’d be surprised how many times there’s money in the coin slot

IndiBrony, (edited )
@IndiBrony@lemmy.world avatar

Can confirm. Coin slot returns saved me from bankruptcy! Sadly much less common now with the advent of contactless card payments.

glibg10b,

Technically, any amount of money would save you from bankruptcy

LesserAbe,

If you owed $1k then $1 wouldn’t save you

registrert,
@registrert@lemmy.sambands.net avatar

deleted_by_author

  • Loading...
  • jaybone,

    This isn’t 1980s Hollywood rich guy poor guy rules.

    AcesFullOfKings, to programmer_humor in The Perfect Solution

    deleted_by_author

  • Loading...
  • rimu,
    @rimu@piefed.social avatar

    gpt3.5 is faster though. You can tell they really thought about performance while writing this code because they used 3.5 instead. /s

    fartsparkles,

    3.5e was so much better than 4e tho /d20

    angelsomething, to programmer_humor in Works on my machine

    Literally why docker was invented

    SpeakinTelnet,
    @SpeakinTelnet@sh.itjust.works avatar

    I have a love/hate relationship with docker. On one side it’s convenient to have a single line start for your services. On the other side as a self-hoster it made some developers rely only on docker meaning that deploying the stack from source is just an undocumented mess.

    Also following the log4j vulnerability I tend to prioritize building from source as some docker package were updated far later than the source code was.

    kratoz29,
    @kratoz29@lemm.ee avatar

    I love Docker because it is the only sane method to selfhost shit with my Synology NAS, and I love my Synology NAS because it is the only Linux interaction that I have (from my old MacBook Pro).

    Zikeji,

    The Dockerfile is essentially the instructions for deploying from scratch. Sure, they most likely only exist for one distro but adapting isn’t a huge chore.

    You can also clone the repo and build the container yourself. If you want to update say, log4j, and then attempt to build it, that’s still entirely possible and easier than from scratch considering the build environment is consistent.

    SpeakinTelnet,
    @SpeakinTelnet@sh.itjust.works avatar

    If I’m updating the source code already I might as well build my service from it, I really don’t see how building a docker container afterward makes it easier considering the update can also break compatibility with the docker environment.

    Also adapting can be a pita when the package is built around a really specific environment. Like if I see that the dockerfile installs a MySQL database can I instead connect it to my PostgreSQL database or is it completely not compatible? That’s not really something the dockerfile would tell me.

    evranch,

    I really don’t see how building a docker container afterward makes it easier

    What it’s supposed to make easier is both sandboxing and reuse / deployment. For example, Docker + Traefik makes some tasks so incredibly easy and secure compared to running them on bare metal. Or if you need to spin up multiple instances, they can be created and destroyed in seconds. Without the container, this just isn’t feasible.

    The dockerfile uses MySQL because it works. If you want to know if the core service works with PostgreSQL, that’s not really on the guy who wrote the dockerfile, that’s on the application maintainer. Read the docs, do some testing, create your own container using its own PostgreSQL or connecting to an external database if that suits your needs better.

    Once again the flexibility of bind mounts means you could often drop that external database right on top of the one in the container. That’s the real beauty of Docker IMO, being able to slot the containers into your system seamlessly due to the mount system.

    adapting can be a pita when the package is built around a really specific environment

    That’s the great thing about Docker, it lets you bring that really specific environment anywhere and in an incredibly lightweight manner compared to the old days of heavyweight VMs. I’ve even got Docker containers running on a Raspberry Pi B+ that otherwise is so old that it would be nearly impossible to install the libraries required to run modern software.

    kurwa,

    Now we just need to run docker inside the browser

    eatyourglory,

    Ah-ah! Now that’s progress!

    ohlaph,

    Docker has been a savior.

    takeda, (edited )

    Yeah, it “solved” the “it works on my machine” by bundling the machine with the code.

    youtu.be/0uixRE8xlbY

    Opafi,

    Man, I really was interested in that topic, but that guy really can’t do talks.

    takeda, (edited )

    What about this? youtu.be/5XY3K8DH55M

    Also I created this repo to create a reproducible sec environment for myself. I added other languages, but personally work mostly with python. It is basically resonating for handling all the boiler plate:

    github.com/takeda/nix-cde

    For packaging in docker I started to use nix2container project as it gives me a greater control over layers. So for example when I package my phyton app I typically use 3 layers:

    • python and it’s dependencies
    • my application dependencies
    • my application, which is very tiny compared to other two, so there is great reuse of the layers

    The algorithm mentioned in the video also helps a lot with reuse, but the above is more optimized by frequency of how things typically change.

    BTW: today I discovered this github.com/astro/microvm.nix I haven’t play with it yet, but in theory it would let me generate a microvm image (in similar fashion to generate a docker container) which would let me to run my app natively as a tiny VM on EC2 for example, and use only minimum necessary of a typical OS to run it.

    Prunebutt, to memes in 6÷2(1+2)

    If you are so sure that you are right and already “know it all”, why bother and even read this? There is no comment section to argue.

    I beg to differ. You utter fool! You created a comment section yourself on lemmy and you are clearly wrong about everything!

    You take the mean of 1 and 9 which is 4.5!

    /j

    SpaceNoodle,

    Right, because 5 rounds down to 4.5

    Lionel,

    …Because 4 rounds up to 4.5

    wischi,

    @Prunebutt meant 4.5! and not 4.5. Because it’s not an integer we have to use the gamma function, the extension of the factorial function to get the actual mean between 1 and 9 => 4.5! = 52.3428 which looks about right 🤣

    Prunebutt,

    Not sure if sarcastic and woosh, or adding to the joke ಠ_ಠ

    Redjard,
    @Redjard@lemmy.dbzer0.com avatar

    The mean of 1 and 9 is 5

    Prunebutt,

    woosh

    Sidhean,

    Stop it Patrick, you’re scaring them!

    stu,

    I think you got hit hard by Poe’s Law here. Except it’s more like people couldn’t tell if you were jokingly or genuinely getting your math wrong… Even after you explained you were joking lol

    Prunebutt,

    I thought the “/j” tone-tag was enough ;_;

    Redjard,
    @Redjard@lemmy.dbzer0.com avatar

    If one doesn’t realize you’re op, the entire thing can be interpreted very differently.
    Then “Not sure if sarcastic and woosh, or adding to the joke ಠ_ಠ” could be interpreted as something like “I’m not sure if you are adding to the joke and I’m not understanding it”.

    SpaceNoodle,

    jarcasm?

    Prunebutt, (edited )
    wischi,

    🤣 I wasn’t even sure if I should post it on lemmy. I mainly wrote it so I can post it under other peoples posts that actually are intended to artificially create drama to hopefully show enough people what the actual problems are with those puzzles.

    But I probably am a fool and this is not going anywhere because most people won’t read a 30min article about those math problems :-)

    Prunebutt,

    I did (skimmed it, at least) and I liked it. 🙃

    relevants, (edited )

    Actually the correct answer is clearly 0.2609 if you follow the order of operations correctly:

    6/2(1+2)
    = 6/23
    = 0.26

    wischi,

    🤣 I’m not sure if you read the post but I also wrote about that (the paragraph right before “What about the real world?”)

    relevants, (edited )

    I did read the post (well done btw), but I guess I must have missed that. And here I thought I was a comedic genius

    MrVilliam, (edited )

    Nah man, distribute the 2.
    6/2(1+2)
    = 6/2+4
    = 3+4
    = 7

    This is like 4st grayed maff.

    Th4tGuyII,
    @Th4tGuyII@kbin.social avatar

    @relevants you truly are the smartest of all men

    demesisx, to piracy in aaron swartz day
    @demesisx@infosec.pub avatar

    Aaron would be appalled at the state of the world of today if he, like so many brave, selfless defenders of human rights, hadn’t been murdered by the capitalist cadres of yesterday.

    Flax_vert,

    Didn’t he co found reddit? Which recently closed it’s API

    ook_the_librarian, (edited )
    @ook_the_librarian@lemmy.world avatar

    Yes

    Saltycracker, (edited )

    Reddit it took him off there website.

    demesisx, (edited )
    @demesisx@infosec.pub avatar

    Yes. He also helped create RSS which is basically where content needs to be moving. He had exactly the same principles in mind as Lemmy/Mastodon creators and would have been a vocal opponent of what Reddit became. I mean, perhaps he could have eventually been corrupted, but judging by his record of hacktivism, he probably would have become a “problem” for the powers that seek to control/centralize, advertise to, and study our browsing habits.

    makuus, to programmer_humor in Fitbit Clock Face

    That’s something I think I’d like to use, but I don’t know if could get over the fact that neither the date nor the time are in ISO 8601 format.

    dep,
    @dep@lemmy.world avatar

    Lol I came here to say this

    spader312,

    The date format isn’t even human readable (at least in American). It should be Sun, Jan 14th

    TheGrandNagus, (edited )

    Considering it uses day then month, 24hr clock, and distance in km, I’m guessing the reason why it’s not “human readable in American” is because it’s intended to be “human readable for pretty much everybody else”

    The date format isn’t incorrect at all

    neutron,

    I still think YYYY-MM-DD should be more apt for an international release.

    MystikIncarnate,

    IMO, that format is best for all releases.

    You want to talk about sorting releases, ISO 8601 works with sorting and it’s still human readable.

    My homies all start their date time stamped files with ISO 8601.

    spader312,

    I always start my files with iso8601, except on s3 it doesn’t like the colon. Gotta replace the colons lol

    tgxn,
    @tgxn@lemmy.tgxn.net avatar

    They should put it as Unix epoch instead!

    dejected_warp_core,

    I once worked in a software shop where all release packages had the Unix epoch timestamp in the filename. Yes, these sorted brilliantly making it trivial to find the last one. But good luck finding a build from a specific date/time.

    datelmd5sum,

    just wildcard for n digits

    Duke_Nukem_1990, to memes in Skyrimposting

    Ah, treating people affected by adiction like subhumans. The american way!

    velox_vulnus,

    Shh, don’t give any ideas to these prank YouTubers!

    HubertManne, to memes in Reddit be like
    @HubertManne@kbin.social avatar

    not just reddit. any site like that is a no go.

    spiderman,

    especially the sites that have academic questions and solutions for that but they are locked behind an account and then a subscription.

    HubertManne,
    @HubertManne@kbin.social avatar

    I assume those are just straight up virus factories.

    soggy_kitty,

    The worst is when companies and resutrants use “Instagram” or “Facebook” as their official webpage.

    There’s a restaurant where I live that I’ve never gone to because I can’t book it without giving fuckerburg my data

    Someology,
    @Someology@lemmy.world avatar

    Call them on the telephone, and tell a human you would like to make a reservation. Telephone voice calls still work at every restaurant in my region. Also, get this, you can place take out orders that way at most places! It’s an amazing technology!

    LostWon,

    I’ve found it can also be cheaper to place the order by phone than by an online ordering (middleman) service.

    HubertManne,
    @HubertManne@kbin.social avatar

    even worse is any deals are on downloaded apps. F that. The only good effect for me with that is its an effective way to identify and avoid corporate type institutions as they are top in using it.

    hiramfromthechi,
    @hiramfromthechi@lemmy.world avatar

    You should vocalize it to the owner (or at least management) if you can. You’d be surprised what comes of it.

    I did this once with a restaurant/bar owner, and she was very understanding. Once I took the time to explain how I didn’t wanna be subjected to everything that a setup like that brings, she empathized and actually got a standalone website.

    Many people aren’t aware until you make em aware. And whether they feel the same or not from a consumer standpoint, at least they’ll know that there’s people out there who do care, and it affects business. And usually, if it affects business, it doesn’t matter what their personal feelings towards it are. A good business owner will be sure to adjust because they learned something new about the market.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4198400 bytes) in /var/www/kbin/kbin/vendor/symfony/http-kernel/Profiler/FileProfilerStorage.php on line 171

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 868352 bytes) in /var/www/kbin/kbin/vendor/symfony/error-handler/Resources/views/logs.html.php on line 38