• 4 Posts
  • 43 Comments
Joined 8 months ago
cake
Cake day: March 4th, 2024

help-circle
  • Well cron is “really easy” as long as your requirements are really easy too.

    Run a task at specific hour or minute or weekday or whatever? Easy peasy.

    Run a task at complex intervals? What the fuck is this syntax. How do I get it right even. Guess I’ll come back next week and see if it ran correctly.

    Actually have to look at the calendar to schedule this stuff? Oh lawd here come the hacks, they’re so wide, they’re coming

    Run a task at, say, granularity of seconds? Of course it’s not supported, who would ever need that, if you really need that just do an evil janky shellscript hack


  • Well, systemd developers made one of the classic blunders a software developer can do: make a program that has to deal with time and dates. Every time I have to deal with timestamps I’m like “oh shit, here we go again”.

    Anyway, as I understood it the reason this is in systemd is because they wanted to replace cron, and it’s fine by me because cron has it’s own brain-hurt. (The cron syntax is something that always makes me squint real hard for a while.)


  • umbraroze@lemmy.worldtoProgrammer Humor@programming.devLanguages
    link
    fedilink
    arrow-up
    16
    arrow-down
    1
    ·
    1 month ago

    Yeah, I was about to say.

    Perl 5 is like Esperanto: borrowed neat features from many languages, somehow kinda vaguely making a bit of sense. Enjoyed some popularity back in the day but is kind of niche nowadays.

    PHP is like Volapük: same deal, but without the linguistic competence and failing miserably at being consistent.

    Raku (Perl 6) is like Esperanto reformation efforts: Noble and interesting scholarly pursuits, with dozens of fans around the multiverse.


  • umbraroze@lemmy.worldtolinuxmemes@lemmy.worldLinux rule
    link
    fedilink
    arrow-up
    14
    arrow-down
    1
    ·
    2 months ago

    Free Software is Leftism because it has got us great software and maybe the only bad thing I can say is that release schedules aren’t a thing

    Open Source is Capitalist Friendly because, ummmmm, extremely shitty Community Editions and putting everything cool in proprietary side, uhhhhh, random license changes to shit that isn’t actually OSD compliant, unghhhhhh, need of constant vigilance against license violations.

    Like I am happy cheap hardware vendors have adopted OSS components but why are they frequently so shitty about everything










  • Like I said this was in the Vista era. Or possibly before the Vista release, part of the Longhorn hype train (Longhorn got some super hyped features, such as an epic next-generation filesystem to replace NTFS, which Microsoft ultimately canned, and Vista ended up, you know, being Vista).

    This was so long ago that I unfortunately don’t remember what exact feature this was about, but it was about some new Windows component.


  • I can’t remember it, but I read one Microsoft blog post (in Vista era?) about how one team at Microsoft would develop some amazing new Windows component. They’d proudly name it AmazingNewService.dll. And then the operating system team would come in and say “that’s all fine and good, but you have to conform to the naming convention.” 8+3 filenames. First two letters probably “MS”, because of reasons. …and 15 years later, people still regularly go “What the fuck is MSAMNSVC.DLL?”



  • This was so long ago that I can’t actually remember the actual reason why things had to be done by hand. Part of it may have been a conversion snag, but there were probably some other reasons why it wasn’t as simple as writing a script to do the job. Because I distinctly remember I wrote some scripts to help with other data conversion jobs.


  • Flashback to my first job. Coworker designed a giant complex web app with bazillion UI messages. Another coworker (in the Management) sent me the UI messages. As an Excel file.

    I was tasked to manually convert the messages to a PHP data structure of some description (because this was 2002 and Excel files didn’t exactly lend themselves to scripting in Linux). Surprisingly, the management person did acknowledge my complaint that the conversion process was far more painful than necessary. Not that this helped, because soon after the startup got acquired and as far as I know the tech currently only exists in conceptual level in some big corporate vault or other.



  • A “hbox” in TeX is a horizontal box. In 99% cases when laying out text, it’s a line of text. “Underfull hbox” means “I couldn’t stretch the content of this line far enough, so it will look janky as f due to the increased spacing”. “Overfull hbox” means “Well, I tried my best to hyphenate and line-terminate, but this word will stick out of the margin and will look stupid as f.”

    Most of the time this is caused by a word that auto hyphenation can’t deal with. You need to add a manual hyphenation exception. I can’t remember how to do that, sorry, because it’s been a while and also I’m mildly drunk, sorry.


  • Back in 1997 I was like “Ooh, Debian is mildly easy to install (compared to Slackware). Just need to engage my brain a few times maybe.”

    (The first Slackware guide I read in 1996 had an ominous warning about getting the ModeLines right in XFree86 or the monitor will catch fire. This, fortunately, was a little bit of exaggeration. Over/under refresh frequency protection was already a thing.)

    Now? “Oh no I fucked up my password shit and can’t login. I’ll need 5 more minutes to completely reinstall this Raspberry Pi image. I should have engaged my brain!”

    Shit, we’ve gotten to the point that your average desk jockey can probably install freaking FreeBSD on the first try. If that’s not a good sign I don’t know what is.


  • Not exactly boned but it probably doesn’t make practical difference to store “local time + tzinfo timezone” than just UTC time.

    • You record an event occurring at local time
    • You store it as UTC
    • Local time zone definition changes
    • Well whoop de loo, now you need to go through tzinfo to make sense of the past data anyway rather than relying on a known offset

    Even if you store everything in UTC, you may be safe… but figuring out the local time is still convoluted and involves a trip through tzinfo.