• 2 Posts
  • 427 Comments
Joined 3 years ago
cake
Cake day: September 13th, 2023

help-circle





  • Plot twist: he doesn’t decide this because “oh no there’s porn” or whatever. He decides this because he sees how angry everyone is at each other all the time and despite having access to more information than any group in history, we believe more lies than our parents did, and then he digs a bit more and finds out that people with money made the internet that way on purpose.





  • Okay, but that’s not what the phrase “integrated graphics” means and you know it. You might as well say your PC gaming setup has an integrated monitor.

    Also the fact that a dGPU is physically separate from both the motherboard and the CPU, and can be separated from both down the road, is an argument against calling it integrated. An iGPU cannot be used separately from the CPU (or motherboard, as the case may be, as it was for older systems and still is for some embedded ones) that it is integrated into, whereas a dGPU can be put in a system with a different CPU and motherboard.





  • it won’t… do anything

    it’ll wait for you to type ten lines (the default for head without arguments), buffer them (bc tail must buffer its input), then spit them back at you, and exit

    • head takes the first N lines of its input (if -n <number> is not specified, the default is 10 lines, and default reading from stdin, which in this case is your terminal) and prints them to its stdout (which thanks to the pipe, goes directly to cat’s stdin), then signals end-of-file.
    • cat accepts any number of filenames and conCATenates them (hence the name), writing their contents one after the other to stdout. with only one file as argument (the most common case in practice) it will simply write that file’s contents to stdout. with no arguments (as in this case) it will simply copy everything from its stdin (in this case head’s stdout) to its stdout (in this case tail’s stdin). the cat command could be completely omitted from this invocation (leaving simply head | tail) and it would work exactly the same.
    • tail reads its entire input (like head, it defaults to reading from stdin unless a filename is specified) and buffers it, then, when the end of the file is reached, it prints the last N lines is read (again defaulting to 10 unless -n <number> is specified) to stdout (in this case your terminal).

    put all together, head will wait for you to type a line, then will pass it on to cat, which will then immediately pass it on to tail, which will add it to a buffer and wait for another line. rinse and repeat until you have typed 10 lines, and then head will exit and the pipe between it and cat will close. cat, noticing the closed pipe, will exit in turn, causing the pipe between it and tail to close. tail, seeing an end of file signal on its input pipe, will cough up the last 10 lines in its buffer and then exit. since head only sent it 10 lines, this is the entirety of its input. so it will spit back everything you typed.

    If you press Ctrl+D to send head an end-of-file signal before you have typed 10 lines, head will exit immediately, causing cat to exit, causing tail to output everything it had in its buffer so far.






  • okay i am on the owala hype train not because they are the current thing but because they are simply good bottles

    they have a straw and a big enough air inlet that the straw is actually usable, plus you can drink from them the normal way if you want.

    the one thing i hate is that they don’t have a locking mechanism. the only way to “lock” them closed is to push the carrying handle down over the release button, which you can’t do if it’s clipped to something and even then you can still easily get it open if you jam your fingernail in there. if there was a bottle with all three features I’d buy it in a heartbeat.