programming.dev

TheWanderer, to memes in Shout-out-to-mods-posting

No wonder I’m not happy. I’m still trying to pursue my dreams 🤦

Newguy, to memes in Shout-out-to-mods-posting

Good post

full_on_rapist, to memes in Shout-out-to-mods-posting

Check, check, check, check, check and check.

tdawg, to memes in Shout-out-to-mods-posting

I mean

Gradually_Adjusting, to memes in Shout-out-to-mods-posting
@Gradually_Adjusting@lemmy.world avatar

I’ll work on it

Ghyste, to memes in This needs to be a well-defined psychological principle. I do stuff like this all the time

This isn’t even remotely close to being a meme.

can,

I agree but I think we’re a minority at this point.

Drusas,

Most memes on Lemmy seem not to be. I've given up complaining about it, aside from right now.

Ghyste,

People just dump any garbage because moderators are either non-existent or don’t care, and the bulk of the community mindlessly upvote literally any crap that gets posted here.

Meanwhile other communities lack content that these posts would be a proper fit for, and the same people supporting garbage posts here use that lack of activity in other communities as an excuse to continue the garbage posts here.

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.

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.

    Drusas, to memes in This needs to be a well-defined psychological principle. I do stuff like this all the time

    This is my dog after she discovered she could pick her own blackberries. Too bad blackberry season isn't year round because she sure expects it to come back every day.

    lud,

    I wish. Berry season is the best. I love European blueberries (bilberries).

    Drusas,

    I absolutely love the natives huckleberries we have here in the US Pacific Northwest. They're also related to blueberries but have some tartness to them.

    irmoz, to memes in This needs to be a well-defined psychological principle. I do stuff like this all the time

    This is seen in human society, and is called a Cargo cult

    Nakoichi,
    @Nakoichi@hexbear.net avatar

    More recent scholarship on cargo cults has challenged the suitability of the term for the movements associated with it, with recent anthropological sources arguing that the term is born of colonialism and prejudice and does not accurately convey the nature of the movements to which it refers.

    1950s pseudoscience bullshit.

    verdigris,

    ?

    It wasn’t pseudoscience, it was just given a colonial-centric name that reinforces the view of uncontacted or even just aboriginal peoples as “savage” or “uncivilized”. The described phenomenon is a real thing.

    usernamesaredifficul,

    trouble is people are only familiar with the old name

    verdigris,

    I don’t think there is another agreed upon name? Regardless the idea shouldn’t be attacked because it’s poorly named.

    usernamesaredifficul, (edited )

    no I agree I don’t think it’s racist to reference the fact that people from non industrial societies don’t understand how our supply chains work. Why would they. That’s not them being dumb it’s them not having detailed knowledge without being taught. It’s not reasonable to expect someone to deduce the existence of Bristol from a blue vase

    irmoz,

    Yeah, fair, just figured it was a relevant term

    peyotecosmico, (edited ) to memes in This needs to be a well-defined psychological principle. I do stuff like this all the time

    Us: hahaha silly dog.

    Also us: oh a waterfall, I’ll check behind it.

    Omega_Haxors, (edited )

    Those who do not check behind the waterfall do not deserve to see the fairy wonderland behind it.

    Hexarei,
    @Hexarei@programming.dev avatar

    A vintage meme sir but it checks out

    HiddenLayer5, (edited )
    @HiddenLayer5@lemmy.ml avatar

    Also also us: oh a lottery ticket that I know for a mathematical fact has such a tiny chance of winning that I’m literally more likely to be struck by a shark and eaten by lightning, well I’ll try my odds, who knows?

    nephs, to programmer_humor in :q! to quit the Force

    ci(

    Manmikey, to memes in This needs to be a well-defined psychological principle. I do stuff like this all the time
    @Manmikey@lemmy.world avatar

    My dog once found a biscuit* in a bush near our home, from that day onwards he always checked the bush for a biscuit, there never was another one, the bush became known as "The Biscuit Bush"

    • Cookie if your American 🍪
    cashews_best_nut,

    What type of biscuit was it?

    bingbong,

    Bush biscuit

    nobleshift, to programmer_humor in :q! to quit the Force
    @nobleshift@lemmy.world avatar

    VIM only has two modes. Constantly beeping or destroying everything.

    Fades, to programmer_humor in Works on my machine

    Every time I hear this from one of my devs under me I get a little more angry. Such a meaningless statement, what are you gonna do, hand your pc to the fucking customer?

    1984,
    @1984@lemmy.today avatar

    “my devs under me”

    Lols.

    platypode, (edited )
    @platypode@sh.itjust.works avatar

    doesn’t understand that this is a useful first step in debugging

    reacts with anger when devs don’t magically have an instant fix to a vague bug

    Yep, that’s a manager

    Belzebubulubu,
    @Belzebubulubu@mujico.org avatar

    You are seeing the next CEO of that company

    Baizey,

    …yes? I thought we made that clear with containerization

    FaceDeer,
    @FaceDeer@kbin.social avatar

    It's not actually meaningless. It means "I did test this and it did work under certain conditions." So maybe if you can determine what conditions are different on the customer's machine that'll give you a clue as to what happened.

    The most obscure bug that I ever created ended up being something that would work just fine on any machine that had at any point had Visual Studio 2013 installed on it, even if it had since had it uninstalled (it left behind the library that my code change had introduced a hidden dependency on). It would only fail on a machine that had never had Visual Studio 2013 installed. This was quite a few years back so the computers we had throughout the company mostly had had 2013 installed at some point, only brand new ones that hadn't been used for much would crash when it happened to touch my code. That was a fun one to figure out and the list of "works on this machine" vs. "doesn't work on that machine" was useful.

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