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 |
---|---|---|---|---|
Edit | Post #284078 |
Post edited: Didn't mean to replace, just add |
— | over 2 years ago |
Edit | Post #284078 |
Post edited: Tag typo |
— | over 2 years ago |
Edit | Post #284078 | Initial revision | — | over 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 |
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) |
— | almost 3 years ago |
Edit | Post #281941 | Initial revision | — | almost 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) |
— | almost 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) |
— | about 3 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) |
— | about 3 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) |
— | about 3 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) |
— | about 3 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) |
— | about 3 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) |
— | about 3 years ago |
Edit | Post #279649 |
Post edited: Update title to better reflect the point of the question - understanding meaning so you can choose correctly |
— | over 3 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) |
— | over 3 years ago |
Edit | Post #277511 |
Post edited: Fix typo in title. Insecure = no confidence; Unsecure = no security |
— | over 3 years ago |
Edit | Post #279789 |
Post edited: Minor wording update and code sample |
— | over 3 years ago |
Edit | Post #279789 |
Post edited: Minor wording update |
— | over 3 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) |
— | over 3 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) |
— | over 3 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) |
— | over 3 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) |
— | over 3 years ago |
Edit | Post #279789 |
Post edited: Minor wording and formatting improvements |
— | over 3 years ago |
Edit | Post #279789 | Initial revision | — | over 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 |
Comment | Post #279762 |
I've found the source of the issue. I'll post an answer when I get some time for it. (more) |
— | over 3 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) |
— | over 3 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) |
— | over 3 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) |
— | over 3 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) |
— | over 3 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) |
— | over 3 years ago |
Edit | Post #279762 |
Post edited: Update title |
— | over 3 years ago |
Edit | Post #279762 |
Post edited: Fix punctuation typo |
— | over 3 years ago |
Edit | Post #279762 |
Post edited: Add update with code and results |
— | over 3 years ago |
Edit | Post #279762 |
Post edited: Update PTY file descriptors with new run results in attempt to make sure I don't have typos |
— | over 3 years ago |
Edit | Post #279762 |
Post edited: Add one remark for the sake of being more explicit |
— | over 3 years ago |
Edit | Post #279762 | Initial revision | — | 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 |
Edit | Post #279649 |
Post edited: Updated title to be more specific and fix a typo |
— | over 3 years ago |
Edit | Post #279649 |
Post edited: |
— | over 3 years ago |
Edit | Post #279650 |
Post edited: Add version updates note |
— | over 3 years ago |
Edit | Post #279650 | Initial revision | — | 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 |
Edit | Post #279649 | Initial revision | — | 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 |
Edit | Post #279483 | Initial revision | — | 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 |
Edit | Post #279364 |
Post edited: Fix another typo |
— | over 3 years ago |
Edit | Post #279364 |
Post edited: Fix typo |
— | over 3 years ago |
Edit | Post #279364 | Initial revision | — | over 3 years ago |
- ← Previous
- 1
- 2
- 3
- Next →