running reset in your terminal can fix it
probably a process send the ANSI control code to change the newline mode on the terminal, without intending to
Anyone with a brain knows that it's commented out and is harmless
however, it's in a field that's meant to be machine-parseable, as in removed from the comment. Given the right (or very wrong, depending on your point of view) circumstances, bash or perl, for examples, could mistakenly interpret those backticks and execute the subshell
The chances of this happening in reality are remote, but intentionally putting injection attacks into things, even as a joke, is still irresponsible at best, and arguably even violates the submission guidelines.
Fair enough. I mainly brought up POSIX signals in response to the person I was responding to directly, but then it felt like we may have been going off the rails, so I just wanted to be sure
I lightly tested /u/katie-is-gay's wmctrl solution and it's a good starting point. It looks possible to "trick" the script into waiting possibly forever if you open new programs while firefox or libreoffice are waiting for you to click confirm, but it shouldn't be too hard to either avoid that situation entirely, or flesh the script out a little more to account for that.
the system sends the kill signal to all the processes.
actually, by default it sends the terminate signal (SIGTERM) so that everything can exit gracefully if possible. SIGKILL is reserved for special circumstances, e.g. stubborn system processes that are taking too long to exit after receving SIGTERM, or services specifically configured to be shut down with SIGKILL
SIGINT is actually what CTRL+C sends to the foreground process in a terminal, and for the most part cli programs handle it gracefully. It's not a "something bad happened" it's a "you are being interrupted". It usually gets handled the same as SIGTERM, which is to say, either no handling and process death, or a basic graceful quit, but some GUI toolkits handle this poorly by default.
However, systemd shouldn't ever send SIGINT so we can ignore that for these purposes
The "something has gone horribly wrong" signal you're thinking of is probably SIGABRT or SIGSEGV, depending on if it was invalid memory access or something else.
You should generally be able to rely on decent software shutting down gracefully upon receiving SIGTERM and if it doesn't, the maintainer should be informed so they can fix it. Indeed, glancing at the i3 source code, they handle SIGTERM, SIGINT, and SIGHUP by gracefully shutting down, and attempting to gracefully shutdown its child processes as well.
A forceful quit implies that SIGKILL is sent, and systemd only resorts to SIGKILL under certain circumstances.
So, in the end I'd say this is probably totally unnecessary, your software is likely all shutting down gracefully already, even if it might not look like it.
/u/k-o-x are you experiencing any issues with your software that are leading you to believe that something isn't exiting gracefully?
it's a novelty, it's somewhat unusual, there's a little magic in there for some
most of the time a result like this would have been caused by a problem with the machine, but as this was caused by an earthquake, there's a specific event, a moment in time, that is basically tied to this item. It's symbolic as a physical memory of the event, like a souvenir. Some people care, others not so much, it's fine
RAM access is significantly faster than disk access, and you only have to read from the disk device (not read and write), so it's a lot faster to copy partition-to-RAM
a quick way to check this on linux is to use dd to copy a file into /dev/shm/ or /tmp/; that should show you roughly how fast you can copy from disk into RAM
I assume you mean "user session" stuff as system services are still userspace processes
cgroups can apply to any processes, not just system or service ones, though! unfortunately, I don't think there's much good tooling for using it that way right now without a bunch of manual work, or at least I'm not aware of any
ZBrush doesn't print to anything by itself, you'd use it to create a model and export it as an STL, and then use another program to slice it and generate gcode to tell the printer how to print it. This method should work for just about any combination of 3D software and printer.
My printer started life as an Original Prusa i3 MK2S and I've upgraded it over time to a MK2.5 with a full bear frame and some other things. So it's kind-of a custom printer at this point.
I would suggest that if you want an i3, you should look at the Original Prusa i3 MK3S rather than a clone like the Anycubic. Most of the more inexpensive clones do so by cheaping out on parts, instructions, firmware, and support. If you can't justify the expense for that, the Creality Ender 3 Pro is a solid starter printer that can easily be improved and upgraded over time
Looks like in the first one, she converted $0.39 NZD to $0.27 USD for some reason (which is the correct conversion for that according to xe.com) and then converted that total back to NZD.
I've got no idea what happened the second time, there doesn't seem to be a way to get to $1.66 from $1.39 through partial or double convesion between just USD and NZD
Yeah, I was going to suggest trying "a dollar thirty-nine US" (or "one dollar and thirty-nine cents US" if she wants to be super formal) which might be worth a shot if Siri gets confused by "buck"
running
resetin your terminal can fix itprobably a process send the ANSI control code to change the newline mode on the terminal, without intending to
aptitude is actually a separate frontend for the apt libs and isn't included in that package
zsh with grml-zsh-config runs great on my raspberry pis so I'm not sure "bloat" is valid criticism here
doesn't matter that it's a python script, it's treated the same by the shell. Here's a C program showing the same result:
one way to change that is to use quotes or otherwise escape the
*another is to disable shell globbing:
I even tried it in an archlinux docker container, as you insisted, and it did exactly what I told you it would do lol
just ran this on my machine from bash, zsh, and sh, and they all produced the same results, expanding the
/*before executingtest.pyhowever, it's in a field that's meant to be machine-parseable, as in removed from the comment. Given the right (or very wrong, depending on your point of view) circumstances, bash or perl, for examples, could mistakenly interpret those backticks and execute the subshell
The chances of this happening in reality are remote, but intentionally putting injection attacks into things, even as a joke, is still irresponsible at best, and arguably even violates the submission guidelines.
no you don't,
/*gets expanded by the shell,rmonly complains if you put in/I think they meant "reducing the count of machines that currently have OSX installed" by installing a different OS
there's no e-waste in that
in that case, it sounds like something in your gui session isn't quitting nicely during the shutdown for some reason
what happens if you try it not inside X?
Fair enough. I mainly brought up POSIX signals in response to the person I was responding to directly, but then it felt like we may have been going off the rails, so I just wanted to be sure
I lightly tested /u/katie-is-gay's
wmctrlsolution and it's a good starting point. It looks possible to "trick" the script into waiting possibly forever if you open new programs while firefox or libreoffice are waiting for you to click confirm, but it shouldn't be too hard to either avoid that situation entirely, or flesh the script out a little more to account for that.Good luck!
actually, by default it sends the terminate signal (
SIGTERM) so that everything can exit gracefully if possible.SIGKILLis reserved for special circumstances, e.g. stubborn system processes that are taking too long to exit after recevingSIGTERM, or services specifically configured to be shut down withSIGKILLSIGINTis actually what CTRL+C sends to the foreground process in a terminal, and for the most part cli programs handle it gracefully. It's not a "something bad happened" it's a "you are being interrupted". It usually gets handled the same asSIGTERM, which is to say, either no handling and process death, or a basic graceful quit, but some GUI toolkits handle this poorly by default.However, systemd shouldn't ever send
SIGINTso we can ignore that for these purposesThe "something has gone horribly wrong" signal you're thinking of is probably
SIGABRTorSIGSEGV, depending on if it was invalid memory access or something else.You should generally be able to rely on decent software shutting down gracefully upon receiving
SIGTERMand if it doesn't, the maintainer should be informed so they can fix it. Indeed, glancing at the i3 source code, they handleSIGTERM,SIGINT, andSIGHUPby gracefully shutting down, and attempting to gracefully shutdown its child processes as well.A forceful quit implies that
SIGKILLis sent, and systemd only resorts toSIGKILLunder certain circumstances.So, in the end I'd say this is probably totally unnecessary, your software is likely all shutting down gracefully already, even if it might not look like it.
/u/k-o-x are you experiencing any issues with your software that are leading you to believe that something isn't exiting gracefully?
it's a novelty, it's somewhat unusual, there's a little magic in there for some
most of the time a result like this would have been caused by a problem with the machine, but as this was caused by an earthquake, there's a specific event, a moment in time, that is basically tied to this item. It's symbolic as a physical memory of the event, like a souvenir. Some people care, others not so much, it's fine
that might work, I don't know that I would rely on it, though
molly guards!
so, looks like you have to disable ramroot and reboot in order to make changes
RAM access is significantly faster than disk access, and you only have to read from the disk device (not read and write), so it's a lot faster to copy partition-to-RAM
a quick way to check this on linux is to use dd to copy a file into
/dev/shm/or/tmp/; that should show you roughly how fast you can copy from disk into RAMI assume you mean "user session" stuff as system services are still userspace processes
cgroups can apply to any processes, not just system or service ones, though! unfortunately, I don't think there's much good tooling for using it that way right now without a bunch of manual work, or at least I'm not aware of any
ZBrush doesn't print to anything by itself, you'd use it to create a model and export it as an STL, and then use another program to slice it and generate gcode to tell the printer how to print it. This method should work for just about any combination of 3D software and printer.
My printer started life as an Original Prusa i3 MK2S and I've upgraded it over time to a MK2.5 with a full bear frame and some other things. So it's kind-of a custom printer at this point.
I would suggest that if you want an i3, you should look at the Original Prusa i3 MK3S rather than a clone like the Anycubic. Most of the more inexpensive clones do so by cheaping out on parts, instructions, firmware, and support. If you can't justify the expense for that, the Creality Ender 3 Pro is a solid starter printer that can easily be improved and upgraded over time
Scene kid hairdo
I have a Brother HL-3170DW that works great from everywhere - I have printed to it from windows, osx, linux, ios, android
Siri
Looks like in the first one, she converted $0.39 NZD to $0.27 USD for some reason (which is the correct conversion for that according to xe.com) and then converted that total back to NZD.
I've got no idea what happened the second time, there doesn't seem to be a way to get to $1.66 from $1.39 through partial or double convesion between just USD and NZD
Yeah, I was going to suggest trying "a dollar thirty-nine US" (or "one dollar and thirty-nine cents US" if she wants to be super formal) which might be worth a shot if Siri gets confused by "buck"