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
Comment Post #285218 This looks more like a "please, do my homework" type of post than an actual actionable question...
(more)
over 2 years ago
Edit Post #286696 Post edited:
Add first update with Wireshark packet capture image
over 2 years ago
Edit Post #286696 Post edited:
Make title more accurate
over 2 years ago
Comment Post #286697 Did you check the [Porting to Python3](https://docs.djangoproject.com/en/1.11/topics/python3/) docs? If not, then you should start there.
(more)
over 2 years ago
Edit Post #286696 Initial revision over 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)
over 2 years ago
Comment Post #284596 For those who think the post is too long, here's a **TL;DR:** `HEAD` is a *pointer* to the most recent commit within the branch that's currently checked out (default `master`) whenever `git checkout <branch-or-sha1>` is used. The `HEAD` target can be altered, sometimes destructively, with other comma...
(more)
over 2 years ago
Comment Post #286588 > option 1 is not possible You *could* simply sign your email and send it without encrypting it. That would at least allow you to prove that you really did send the email. > how do I know the emails come from who says is the sender, without a PGP signature on the email? You don't, in the sen...
(more)
over 2 years ago
Edit Post #286588 Post edited:
Rephrase points and last sentence
over 2 years ago
Edit Post #286588 Initial revision over 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)
over 2 years ago
Comment Post #286190 I don't think this is enough for a full-fledged answer, but I think adding debug `assert`s for testing, that get removed on release builds is a good approach. In general, clear documentation about what functions expect and leaving it to the caller should be fine.
(more)
over 2 years ago
Edit Post #279789 Post edited:
Replace account with placeholder
about 3 years ago
Edit Post #279762 Post edited:
Replace account for placeholder
about 3 years ago
Edit Post #277340 Post edited:
Fixing a typo re plural/singular terminology
about 3 years ago
Suggested Edit Post #277340 Suggested edit:
Fixing a typo re plural/singular terminology
(more)
helpful about 3 years ago
Comment Post #284078 *> First off, what is the scope of your signing keys?* Not sure what you mean there *> How many are there?* We expect to have 2 keys, but I don't know what the future holds. *> Is there a different one for each of your devices, or is there a single one for all?* We don't put keys o...
(more)
over 3 years ago
Comment Post #284078 @#8176 I've added PGP to the question's tag to (hopefully) prevent confusion. As @#8049 explained, it really makes no difference in the context of my question.
(more)
over 3 years ago
Edit Post #284078 Post edited:
Didn't mean to replace, just add
over 3 years ago
Edit Post #284078 Post edited:
Tag typo
over 3 years ago
Edit Post #284078 Initial revision over 3 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 3 years ago
Comment Post #282728 I'm not familiar with nannou, but can you verify the parameter types for your function and the one you're calling? Shouldn't you be using `&model.my_line` instead?
(more)
over 3 years ago
Edit Post #281941 Initial revision over 3 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)
over 3 years ago
Comment Post #281058 Did you check the Apache server logs to confirm whether the server is even receiving the request itself? What happens when you access it directly from your browser - even if it's a `GET` instead of a `POST`? Under Ubuntu, they'd be under `/var/log/apache2/{access | error}-log` by default.
(more)
almost 4 years ago
Comment Post #279834 It'd be nice to see the author answer their own question - *especially* if they managed to figure out and fix the problem.
(more)
almost 4 years ago
Comment Post #280767 @Estela: Well, the question title itself asking about whether it's "correct to run code inside a method whose object has been destroyed" first makes me wonder why someone would like to, e.g., get object A to destroy some other object B and then try to run object B's code after instance B no longer ex...
(more)
almost 4 years ago
Comment Post #280767 Legal does not mean moral. Just because you can does not mean you should. This is like asking if playing Russian Roulette with all chambers loaded is ok b/c you keep "assuring" yourself that you have taken "precautions"... in this case, it looks like the code in question shouldn't even be part of the...
(more)
almost 4 years ago
Comment Post #280658 @PeterTaylor: I guess I must've misread that as CPython for some reason. My bad. Also, I didn't get a notification... I just happened to check and see your comment.
(more)
almost 4 years ago
Comment Post #280658 There're some inaccuracies in the examples given. E.g., "Python vs CPython" is incorrect b/c Python is basically a language *specification*. CPython is *not* a "compiler" for Python; it's the reference runtime implementation - but it's still an interpreter, not a compiler. Another example includes Ir...
(more)
almost 4 years ago
Edit Post #279649 Post edited:
Update title to better reflect the point of the question - understanding meaning so you can choose correctly
almost 4 years ago
Comment Post #279364 @luser: I think that is likely worse than the problem it's trying to solve as that usually indicates some other kind of problem that would be best solved in some other way - e.g., reorganizing modules and/or dependencies, etc.
(more)
almost 4 years ago
Edit Post #277511 Post edited:
Fix typo in title. Insecure = no confidence; Unsecure = no security
almost 4 years ago
Edit Post #279789 Post edited:
Minor wording update and code sample
almost 4 years ago
Edit Post #279789 Post edited:
Minor wording update
about 4 years ago
Comment Post #279834 Why not `ANY-SCP` like the first or at least `ECHOSCU`? Why ECHOSC**P**? In the non-working one, things seem "ok" until packet 8, which causes the remote end to give you an `ABORT ECHOSCU --> ECHOSCP`. Do `ECHOSCP` and `ANY-SCP` have the same message sequence? Is this the right sequence for `ECHOSCP`...
(more)
about 4 years ago
Comment Post #279834 @FractionalRadix: I took a brief look at your network code, but it was a bit difficult to follow - especially your 'byte' manipulations in `String`s, etc. I think if you spend some time cleaning up and simplifying the code, it might be easier to verify for correctness. Also, in the screenshots, the w...
(more)
about 4 years ago
Comment Post #279834 @FractionalRadix Have you tried using the values from the working request in the failing request? How did you confirm that they're really arbitrary and not meaningful in some way? One of the first things I'd try is sending an *exact* copy of the working message/packet thru the app just to rule that o...
(more)
about 4 years ago
Comment Post #279834 I'm not familiar with DICOM, but I have a few questions: Your app is *not* sending the exact same bytes as the successful request (e.g. `VR value = 0001` that works vs your app's `VR value = 0xfeca`). What's the significance of the different bytes? Why are they even different if you're (apparently) ...
(more)
about 4 years ago
Edit Post #279789 Post edited:
Minor wording and formatting improvements
about 4 years ago
Edit Post #279789 Initial revision about 4 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)
about 4 years ago
Comment Post #279762 I've found the source of the issue. I'll post an answer when I get some time for it.
(more)
about 4 years ago
Comment Post #279762 @MartinBonner Also, if I comment out the `remove_file` line, the dangling symlink can be seen in the file system after program execution has ended, suggesting that the `panic!` is from the expected 2nd `drop`, but caused by an unexpected 1st `drop` for some reason. (There're more weird observations, ...
(more)
about 4 years ago
Comment Post #279762 @MartinBonner: BTW, I found the double-`drop` thing when the debugger unexpectedly hit the same breakpoint twice in the `drop` implementation, and also with this line, which ended up showing 2 files in the directory, instead of 1: `std::process::Command::new("mktemp").arg("drop.XXXXXXXX").output().ex...
(more)
about 4 years ago
Comment Post #279762 @MartinBonner: The behavior is the same if I use `std::process::Command::new("ln").args(vec!["-s", slave_path.as_str(), symlink_path]).output().expect("ln command failed");` instead of `symlink`. The symlink is getting destroyed quickly during execution of the process -and we're talking about a progr...
(more)
about 4 years ago
Comment Post #279762 @MartinBonner: I'm following a few different leads, but to try and quickly answer your questions: I already had a separate test program and it works normally. The `.exists` check works immediately after the `symlink` call and printing directory contents from within the program shows the link there. S...
(more)
about 4 years ago
Comment Post #279762 I also tried adding this line, as a test replacing the `symlink` function call, but the observed result was the same as what's already documented in the update: ```rust std::process::Command::new("ln").args(vec!["-s", slave_path.as_str(), symlink_path]).output().expect("ln command failed"); ```
(more)
about 4 years ago
Edit Post #279762 Post edited:
Update title
about 4 years ago