• Hacker News
  • new|
  • comments|
  • show|
  • ask|
  • jobs|
  • NSPG911 50 minutes

    always shove it to `%LOCALAPPDATA%/Temp`, or `~/AppData/Local/Temp`, and don't think otherwise

  • xg15 1 hours

    I didn't know it was such a chaos.

    So I guess the moral of the story is: Ensure they always point to the same path, or else...

  • Semaphor 58 minutes

    > My recollection is that most CP/M programs were configured via patching. At least that’s how I configured them. I remember my WordStar manual coming with details about which bytes to patch to do what. There was also a few dozen bytes of patch space set aside for you to write your own subroutines, in case you needed to add custom support for your printer.

    Huh. That is interesting, it was before my time, and I never heard of this :D

    zabzonk 53 minutes

    Yes, it was definitely a thing. The patching code had to be in Z80/8080 machine code. I wrote higher performance keyboard and display routines for my copy of Wordstar using this feature.

  • Jedd 1 hours

    1995-ish. Telstra (Australia Telecom). Probably about 50k desktop computers across the organisation. One day a small file turned up in everyone's network home directory called null. A *nix person had evidently had a go at writing a .bat file.

    Why do we need to adopt extant standards? (I was going to ask, why standardise? But realised that might confound the North Americans. : )

    cachius 12 minutes

    What text was in there that he tried to discard?

    lelanthran 1 hours

    >One day a small file turned up in everyone's network home directory called null. A *nix person had evidently had a go at writing a .bat file

    I assume that they first tried /dev/null which failed, so then moved onto just plain null?

    Otherwise it would not make sense that a unix programmer did this. More likely ula dos programmer misspelled NUL as null.

    3form 30 minutes

    Unix programmer remembered that in there's no /dev/null in DOS and that it's something shorter, and tried null which worked. Didn't check the directory contents afterwards. So basically your first sentence - doesn't seem at all unlikely to me. (I mean, I think it happened to me at least once too)

    jtoledo 49 minutes

    I've already created a 'NULL' file, but it was not a Unix thing... It was just because I got confused if it was NULL as in the programming languages I usually use.

  • QuantumNomad_ 53 minutes

    > My recollection is that most CP/M programs were configured via patching.

    I honestly would have liked that better for a lot of programs than the dotfiles they litter all over my home directory.

    mort96 7 minutes

    You would've preferred binary patching of the executable? Really?

    PunchyHamster 13 minutes

    Well, they are supposed to be all in .config, problem is many app developers think they are special little boys that deserve its own directory

    ozlikethewizard 50 minutes

    Yea this is something I'd love to see standardised, a distro that was able to enforce a .config folder somehow would be a winner for me. Think weve probably missed the boat though.

    9dev 38 minutes

    As these things go, there obviously is a standard for this called the XDG Base Directory Specification[0], which elegantly solves almost all configuration path needs—and has been ignored, violated, or only partially implemented, since forever.

    [0]: https://specifications.freedesktop.org/basedir/latest/

    fredoralive 42 minutes

    Part of the philosophy of the slightly odd suckless people is their projects are mostly configured by changing the source code and recompiling. This is I suppose a similar approach in a modern open source vein. Although their general asceticism makes their projects a bit of an acquired taste I suspect.

    analog_daddy 4 minutes

    Ohh acquired taste it is.. I had two stints with suckless software. First, when i was in early twenties when I had a lot of time in the world, and thought the manliest way to talk to a machine is all through low level C code. Had a whole flow to patch it and heck the code is so well written and commented, i was able to understand it. Then, i guess life happened and i discovered more interesting stuff to spend time on.

    And now in my late twenties, suckless terminal is the only one that would work reliably on a shitty old enterprise linux system at work. Yeah, we got xterm and konsole (the older one). I am seeing them in a whole different light now. I did not read the source code now and it is effectively a foreign language to me, but just being able to have modern features in it without too many dependencies is a different level of bliss. This time, I am glad I have the flexi patch to the rescue since, i passed on suckless terminal as a real alternative since I don’t want to patch it manually or solve merge conflicts!

    Even though I don’t like the elitist attitude of the project, can’t deny they got a point. Why does a terminal emulator need to be so complicated!

    https://github.com/bakkeby/st-flexipatch