Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

Activity for ghost-in-the-zsh‭

Type On... Excerpt Status Date
Answer A: How to programmatically get current wallpaper file path?
This answer will use Python 3 for code examples. I encourage people to post other answers for other languages. I'll continue to update this answer, as I'm able, based on comments with tested/verified recommendations/code/etc. Checking OS ```python import platform sys = platform.system().lo...
(more)
over 1 year ago
Question How to programmatically get current wallpaper file path?
I have written a screensaver program that, in part, uses the current wallpaper for some visual effects. However, finding the current wallpaper in different operating systems and environments is less than straightforward. I've made some progress, but what I've found during searches has not been ver...
(more)
over 1 year ago
Answer A: How to correctly daemonize a Rocket-based app?
I did not find a way to get Rocket and Daemonize to work together without problems. However, I was able to get a more recent version of `start-stop-daemon` installed in the system (v1.20.11), and was able to get an `init` script working. (The old version did not recognize some options such as PID fil...
(more)
almost 2 years ago
Question How to correctly daemonize a Rocket-based app?
Summary I'm refactoring a Rust-based service/daemon to move away from gRPC and use a Rocket-based API instead. I'm also using the `daemonize` crate to turn the foreground process into a background process. The problem I've run into is that when I get the `rocket`-based service to successfully d...
(more)
almost 2 years ago
Answer A: PGP sign emails sent with git-send-email(1)
> How can we use git-send-email(1) to sign patches (emails) with the gpg(1) keyring? The `git-send-email` command does not have any CLI options to perform cryptographic operations, so, to the best of my knowledge, you cannot really tell it to sign anything. What you can do is sign commits with ...
(more)
almost 2 years ago
Question How to properly manage PGP signing key storage, access, and usage for dev and automation?
I work for an IoT company. We recently got secure boot to work for a customer-visible product. For secure boot to work, the images we generate must be signed. Obviously, we want customer-visible system releases to be signed. However, we need to make sure our signing keys are stored, accessed, and use...
(more)
over 2 years ago
Answer A: Why content delivery networks often require a www. redirect?
Other than their preferred configuration options, nothing really "requires" that a particular resource be behind a particular subdomain. Content Delivery Networks (CDNs) are often just setup as separate sites (e.g., a CDN for example.org could be hosted at examplecdn.org or cdn.example.org, etc.) ...
(more)
almost 3 years ago
Answer A: Why is this symlink() call returning successfully while apparently failing to create the sym-link?
Summary I've fixed the issue and what follows is the best explanation I have so far. What I had described in the OP were some of the observations, but I'll be including more detail so that it's (hopefully) easy to follow. This includes `fork`s, COWs, and dead children. Additional Observations ...
(more)
over 3 years ago
Question Why is this symlink() call returning successfully while apparently failing to create the sym-link?
Summary I'm building an internal system (hardware simulator, using Rust) to help test some Python-based services that talk to hardware. (The services talk to hardware via TTYs.) To trick the Python services into "believing" they're talking to the hardware they expect, I create some PTYs, where the...
(more)
over 3 years ago
Answer A: How do I choose the correct Perl module from these variations?
Perl modules sometimes have different implementations. The `::PP` suffix means it's a "Pure Perl" implementation, where portability is the goal. The `::XS` suffix is for the C-based implementation, where speed is the goal. Finally, `JSON` is just the top-level module itself, i.e. the one you actually...
(more)
over 3 years ago
Question How do I choose the correct Perl module from these variations?
When looking for Perl modules to handle JSON strings and/or documents, I found `JSON::PP` and `JSON::XS`. The documentation of `JSON::PP` says it is compatible with `JSON::XS`. 1. What do these suffixes mean? 2. Which one should I use and why?
(more)
over 3 years ago
Answer A: Jenkins failed to delete a file - why? How to prevent?
I think you have the answer to your question within your own question, but let me make it a bit more explicit. You said: > The problem is, sometimes downloading from Perforce fails If P4 fails to download the file, then it follows that the task will fail to delete the (non-existent) file(s). ...
(more)
over 3 years ago
Answer A: Does the location of an import statement affect performance in Python?
Summary The location within a module where an `import` statement is found by the interpreter is not expected to cause differences in performance such as speed or memory usage. Modules are singleton objects, which means that they're only ever loaded once and will not be re-imported or re-loaded aga...
(more)
over 3 years ago
Question Does the location of an import statement affect performance in Python?
When writing Python-based apps (e.g. Django, Flask, etc.), it's often the case that `import` statements can be found all over the place, often more than once for the same module. For example, you can: - have the imports at the top of a module; - place the imports inside the functions where they'r...
(more)
over 3 years ago
Answer A: Unable to `mount` overlayfs in Docker container when inside a LXC with a ZFS pool
Summary The TL;DR is that, as long as ZFS is being used as the underlying file system, `mount` commands on top of that will not work. It's simply not supported. I was also able to confirm this over email with Ubuntu/LXD developer, Stéphane Graber, with him saying, in part, that: > overlay doesn...
(more)
over 3 years ago
Answer A: The size of the code format window is much too small.
I agree. Something that might be more useful is to allow the text boxes to be resizeable by the user. In most places, there's a small tab on the lower-right corner of a text box that allows the user to arbitrarily change the size of the box. That would be very useful not only for the main text box...
(more)
over 3 years ago
Answer A: Is it possible in MySQL to require each row in a table have at least one foreign key record in a join table?
If I understand your question correctly, i.e. > Is it possible to enforce that constraint at the database level? Then the short answer is: No. > In the business logic for the program, every record in the A table must have a relationship to at least one record in the B table Since you alre...
(more)
over 3 years ago
Question Unable to `mount` overlayfs in Docker container when inside a LXC with a ZFS pool
Summary/Context I'm currently working to improve performance and throughput of our automation infrastructure, most of which is a combination of Bash/Shell scripts, Python scripts, Docker, Jenkins, etc. We use Yocto to build embedded Linux distributions for specialized hardware and we have a Docker...
(more)
over 3 years ago