Reputation
39,115
Next tag badge:
98/100 score
25/20 answers
Badges
7 52 118
Impact
~1.7m people reached

2d
comment Conceptual difference between Linux and (Free)BSD Kernel
@JoshRumbut Existentialism is off-topic here.
Jul
2
comment Current X driver
Okay. Might be nice if you included that kind of detail in the question, rather than having it dragged out of you in comments. ;) Sans a nice command line solution, this is then very XY-ish.
Jul
2
comment Current X driver
This shows kernel drivers, not userspace X drivers, which is what the question is about.
Jul
2
comment Current X driver
Why would you believe /var/log/Xorg.0.log is not trustworthy? That requires root permissions to modify. If someone with root permissions is running around being untrustworthy, you need to solve that as your real problem.
Jul
2
revised Access Point offers itself IP if used as DHCP Server?
edited tags; edited tags
Jul
2
comment Is there a robust way for a child process to signal readyness to its parent?
This is exactly what I was driving at. I don't think Java has standard facilities for sending signals, but it has some for handling them. Unfortunately it doesn't look like getting the process ID is so simple either...so this vs. a pipe is sort of a matter of what style of "robustness" is required.
Jul
1
comment Is there a robust way for a child process to signal readyness to its parent?
In a unix context signals are ideal, but Java throws a bit of a wrench into that...so if both processes are JVM processes, once again this is really a Java question. Your concern about "magic strings" WRT #2 is misplaced -- this makes any and all communication protocols, including IP, TCP, HTTP, etc. a bad practice since protocols do mean hardcoded formats. There is no way around that, which is why there are protocol specifications. By analogy, is speaking in a particular human language a bad "magic string" based practice? What are the alternatives?
Jul
1
comment bash scripting and PS1 prompt
Take a harder look at how color variables are defined on the page you linked under "List of colors for prompt and Bash". It's NOT the way you are doing it, which is bound to screw things up.
Jul
1
comment My raspberry pi 2 can't connect to Internet yet it says it's on
You need to explain the context in which it says "network is unreachable" or this question is unanswerable.
Jul
1
comment How to find the page size of physical memories from userspace?
...Of course it's not clear the OP understands this...or whether it is really just about the block size of a filesystem...
Jul
1
comment How to find the page size of physical memories from userspace?
It says something, but it will just be "512 bytes logical size" which I am pretty sure is really a fiction used by the OS as a sort of placeholder. It's information that just does not apply to flash memory in the same way as it applies to spinning disks. Put another way, flash memory hardware does have a page and block size (referred to in the question), but they are abstracted away and they are neither meaningful to, nor determinable by, the OS.
Jul
1
comment How to find the page size of physical memories from userspace?
Note that you're describing how to get the block size of filesystems, and not the underlying hardware, although it is likely impossible to get the latter from the OS as it is opaque to it. I think you'd have to check the manufacturer's specs, if they publish them.
Jul
1
comment Is there a robust way for a child process to signal readyness to its parent?
I've voted to close this as too broad since IPC is an extensively documented realm with many possibilities (semaphores, pipes, signals, etc), of which you seem to be mostly unaware. But now you know what it is called, you can do some research and if there's any confusion come back with a more specific question (or ask it on Stack Overflow, which is probably more appropriate for cross-platform Java). BTW, I intentionally emphasized signals, although they are a little less cross-platform.
Jun
29
comment How do I program Python so that it outputs to all terminals in Linux
The fact that this method is dependent on syslog configuration is indeed important. Its advantage over writing directly to the tty's/pty's is that you can target everyone without needing root privileges.
Jun
29
comment How do I program Python so that it outputs to all terminals in Linux
Using a syslog interface (I presume python has one) with sufficient priority ("emergency") should get the output posted everywhere including ssh logins on most systems by default (you shouldn't have to configure syslog) -- and it seems you don't even need special privileges to do so...
Jun
29
comment How do I program Python so that it outputs to all terminals in Linux
I migrated this here instead of S.O. because, although it involves programming, I think this particular question will get better answers here.
Jun
29
revised How do I program Python so that it outputs to all terminals in Linux
edited tags
Jun
28
comment How do I create a user bin directory in gentoo
Worth a glance, particularly if you use .bashrc: unix.stackexchange.com/q/124444/25985 Note that which startup files are sourced depends on how the user logs in and there is no singular, universal solution.
Jun
28
comment Impossible to have two network interfaces wifi and ethernet (as a backup) working together
There is a potential complication if you are using Raspbian or another distro which configures ifplugd by default, although it maybe a helpful complication WRT #4, hotplugging ethernet.
Jun
28
revised Impossible to have two network interfaces wifi and ethernet (as a backup) working together
edited tags