programming.dev

wolo, to programmer_humor in Yes

my website’s backend is made with bash, it calls make for every request and it probably has hundreds of remote arbitrary code execution bugs that will get me pwned someday, it’s great

edit: to clarify, it uses a rust program i made to expose the bash scripts as http endpoints, i’m not crazy enough to implement http in bash

it behaves like a static file server, but if a file has the others-execute permission bit set it executes the file instead of reading it

it’s surprisingly nice for prototyping since you can just write a cli program and it’s automatically available over http too

gandalf_der_12te,

you do realize that you can just use Apache instead of writing your own rust program for this, as this is more or less the CGI standard?

wolo,

I know about the CGI standard, but mine does things a little differently (executable files don’t just render pages but also handle logging, access control, etc. when put in special positions within a directory), so I still think it was worth the afternoon i spent making it.

PupBiru,
@PupBiru@kbin.social avatar

who hurt you?

wolo,

i thought it was neat how php lets you write your website’s logic with the same directory tree pattern that clients consume it from, but i didn’t want to learn php so i made my own, worse version

bdonvr,

I designed a chip architecture that runs bash code on silicon.

I reimplemented x86 assembly in purely bash script.

sovietknuckles, to programmer_humor in Bug Thread
@sovietknuckles@hexbear.net avatar

Edit: Nvm, figured it out

keepcarrot,

Haha my first thought

ClamDrinker, to programmer_humor in Fitbit Clock Face

Finally. A human readable format. And pretty too.

Dkarma,

Jesus I hope this is a joke. I hate json 🙄

damnfinecoffee,

yeah for real, let’s see an xml one instead

gornius,

Ah yes, perfect data format, where markup takes more space than the actual data.

curiousaur,

Would you prefer Yaml?

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

somegeek, to programmer_humor in Fitbit Clock Face

Duude this is so cool. Is there a watch like this for galaxy watch?

PMmeYourPenis,
ironcrotch, to programmer_humor in Fitbit Clock Face

My god it’s all strings.

petersr, (edited )

Always has been

datelmd5sum,

disgusting

Strawberry,

not uncommon for data to be displayed on UI

sag, to programmer_humor in Guys! Should I accept the offer? 😂
@sag@lemy.lol avatar

deleted_by_author

  • Loading...
  • sag,

    Stupid alt don’t tell our secrets

    CAPSLOCKFTW, to memes in How i feel on Lemmy

    There were no actual efforts to establish communism in eastern europe. Only autocratic regimes backed by soviet russia.

    Fazoo,
    @Fazoo@lemmy.ml avatar

    Oh here we go with “That wasn’t real communism!” as if any other communist state on this planet is any different.

    LadyAutumn,

    They are though. China, Vietnam and Cuba are all pretty drastically different and they are all communist countries.

    NattyNatty2x4,

    China is state capitalist, not communist

    LadyAutumn,

    The functioning of their government is absolutely unequivocally communist. They have allowed some form of capital interests, which I would not consider communist in definition, but the government retains control over nearly all those interests and the plan they’ve put forward from the beginning is to renationalize industries as they reach a point of competitive development with the western world.

    Hexadecimalkink,

    Give me an example of a capitalist society. Waiting.

    lieuwex,

    In what sense was it not an actual effort? Just because it quickly slid into non-marxism doesn’t say anything about the initial idea of the revolutionaries. Bakunin predicted exactly what would happen with Marxism, and it did every time.

    If you are against an authoritarian state, the only viable way to communism is to skip the dictatorship part directly and just have anarchism.

    ciko22i3,
    @ciko22i3@sopuli.xyz avatar

    Communism fails every time it is tried because it goes against human nature of constantly comparing yourself to others and trying to improve yourself. You will never do harder work if you can get the same reward for easier work, and you will look for other, less moral ways of getting the bigger reward.

    Communism sounds great but it will never work until we have unlimited resources and completely automated labour.

    CAPSLOCKFTW,

    Nah, that’s just wrong. You can compare yourself in other ways than how much fake money you earn. Fun thing is: truly communistic society would mean easier work for most people.

    And communism does work in small scale enviroments. Families, cooperatives, tribes. Sometimes neighborhoods.

    This whole “Sounds great but won’t work” rhethoric is just what the ones that would loose their power in communsim want you to think. If you dig into it you will see, that there were and are a lot of efforts to discredit the idea.

    InternationalBastard,

    It's like saying democracy sucks because look at states like Democratic People's Republic of Korea, Democratic Republic of Congo and German Democratic Republic.

    When people proclaim to be something doesn't make it true.

    sizeoftheuniverse,

    And here comes the guy who thinks he can do it better, this time without mass killings.

    Dasnap, (edited ) to programmer_humor in Guys! Should I accept the offer? 😂
    @Dasnap@lemmy.world avatar

    This reminds me of heart4heart levels in LittleBigPlanet.

    prongs,

    I miss that game. Not much tickles the same creativity and playfulness that I’ve tried since then. I used to spend hours in the level creator doing dumb stuff.

    OurTragicUniverse, to memes in Shout-out-to-mods-posting
    @OurTragicUniverse@kbin.social avatar

    Bingo!

    (Anyone know how long till it kicks in?)

    lugal,

    That’s the neat part: It doesn’t

    BarrelAgedBoredom,

    Have you tried buying the newest product?

    Daxtron2, to programmer_humor in Fitbit Clock Face

    Everything’s a string 😢

    lseif,

    Everythings an object 😰

    Daxtron2,

    lua tables all the way down

    ilovededyoupiggy, to programmer_humor in Fitbit Clock Face
    @ilovededyoupiggy@sh.itjust.works avatar

    Awful lot of strings that should have been integers. It is JavaScript, though, so I guess that tracks.

    topinambour_rex, to programmer_humor in My coding skill V/S My GitHub Repositories
    @topinambour_rex@lemmy.world avatar

    Why the “/” between VS ?

    emptyother,

    Seems like its a common mistake, maybe brought on by its use as a stylistic choice in entertainment. “Myguy vs/ Yourguy” became “MyGuy v⚡s Yourguy” became the abomination that is “v/s”. Probably. I’m no etymolog.

    UnRelatedBurner, to programmer_humor in Fitbit Clock Face

    what does the last 4 mean under stats?

    xanu, (edited )

    distance: how far you’ve traveled if you put all the steps in a line (may also be gps tracked too)

    azm: active zone minutes or how many minutes you’ve spent with your heart rate in the “active zone” where you burn more calories

    floors: how many flights of stairs you’ve climbed

    calories: estimate of how many calories you’ve burnt based on all the other stats

    UnRelatedBurner,

    nice, thx

    blakeus12, to programmer_humor in Fitbit Clock Face
    @blakeus12@hexbear.net avatar

    im confused as to why it doesn’t use variables? this is pretty interesting to see though

    settoloki,

    In JSON the value on the left would be the variable name the value in the right of the pair is the value.

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