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 #286588 > Re: big targets: Hmmm, I would reconsider that after the xz backdoor. Well, given that xz is/was(?) a widely-used piece of software, yes, they had a significant amount of attack surface area (i.e. thousands, even millions, of users). That's a big target. You as an individual? Not so much.
(more)
5 days ago
Comment Post #287783 @#63752 I think using `open` makes more sense b/c it implicitly checks for your ability to read the file, which is necessary for the program to work correctly, among other things. For example, in GNU+Linux, you could remove all permissions from the wallpaper file, including read, and `os.path.exis...
(more)
8 months ago
Comment Post #287851 I'd suggest that you overload the `<<` operator instead of having a `print` method. That way, you should be able to take your `Car c;` and write `std::cout << c << std::endl;`, and so on. This is what the `std::string` class does.
(more)
about 1 year ago
Comment Post #287783 After looking around the registry with the Registry Editor, I couldn't find anything else that seemed to indicate the *current* path to the current wallpaper or anything. So, it's very possible for the user to set an image as a wallpaper and then (re)move it, causing the Windows registry entry to end...
(more)
over 1 year ago
Comment Post #287783 @#53177 It would be and that's what I was doing earlier today. Unfortunately, what I found is potentially unreliable. On Win7, had to use Python 3.7 (latest release that will work there). This code seems to work: ```python >>> import winreg as w >>> key = w.OpenKeyEx(w.HKEY_CURRENT_USER, 'Control ...
(more)
over 1 year ago
Comment Post #287783 @#53177 No harm no foul. The way I got it to work from Python in Windows 10 was as follows (had to use a list for the commands, unlike in GNU+Linux): ```python command = [ f'{env["SystemRoot"]}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe', 'Get-ItemPropertyValue', '-Path', ...
(more)
over 1 year ago
Comment Post #287783 I found a way to make it work in Python3 (in Windows 10). I'll be updating the post later. Also, while PowerShell *is* installed in Windows 7, the `Get-ItemPropertyValue` command returns an error message, suggesting the command is not implemented.
(more)
over 1 year ago
Comment Post #287783 @#53177 Your method shows error messages when attempted via Python3's `subprocess` module. For example, `sp.run(f'{os.environ["SystemRoot"]}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe Get-ItemPropertyValue -Path "Registry::HKEY_CURRENT_USER\Control Panel\Desktop" -Name Wallpaper', capture_out...
(more)
over 1 year ago
Comment Post #287785 Please, be sure to post error messages, log messages, configs, and other relevant data. Also, please do that as text, not images.
(more)
over 1 year ago
Comment Post #287783 @#53177 Does your Windows 10 recommendation work in the Home edition or does it really require the Enterprise version of it? Does Windows 10 Home even have Powershell available? (Not something I'm able to check right at this moment.) Also, are you aware of something in the Windows 32 API that could b...
(more)
over 1 year ago
Comment Post #286697 OP appears to have ghosted the question. No response to questions, etc.
(more)
almost 2 years ago
Comment Post #285218 This looks more like a "please, do my homework" type of post than an actual actionable question...
(more)
almost 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)
almost 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)
almost 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)
almost 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)
about 2 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 2 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 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
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
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
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
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
Comment Post #278207 @CharlieBrumbaugh The "doubled" dev time is not true. First, yes, it does take some time to setup an isolated dev environment, but that is a one-time thing. Second, you shouldn't be using your production database to do any dev work. That's what dev environments are for. Third, if you screw up, you'll...
(more)
over 3 years ago
Comment Post #279304 This is really the way to go, IMHO. Just alias the command and done. This is also done in the `oh-my-zsh` project for `zsh` itself, with `gc` = `git commit`, `gst` = `git status`, and so on.
(more)
over 3 years ago
Comment Post #279102 @Canina I saw it. In MySQL, if you use InnoDB as the storage engine, then the only things getting locked during write operations are the rows being updated, not the tables themselves as a whole like MyISAM does. (And no one should be using MyISAM as the storage engine nowadays, since it's not even AC...
(more)
over 3 years ago
Comment Post #279102 Another alternative is to try and set up all the SQL statements as a single transaction. Did you look into this?
(more)
over 3 years ago
Comment Post #279037 Also, the LXC configs already had `security.nested` set to `true`.
(more)
over 3 years ago
Comment Post #279037 `docker: Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused \"process_linux.go:415: setting cgroup config for procHooks process caused \\\"failed to write \\\\\\\"a *:* rwm\\\\\\\" to \\\\\\\"/s...
(more)
over 3 years ago
Comment Post #279037 If I set LXC's `security.privileged = true`, launching a `--privileged` docker container results in this error:
(more)
over 3 years ago
Comment Post #279034 It'd probably be more helpful if you include the SQL you used to create the table, its columns, and then the SQL used to drop the columns, along with the version of MySQL you're using, and so on. It'd also help in clearing up ambiguities.
(more)
over 3 years ago
Comment Post #278847 Will that include up-voting comments? 🤔
(more)
over 3 years ago
Comment Post #278292 @Alexei: Did you consider logging in the app, so that you can better correlate what the app is doing and when? That'd be my approach.
(more)
over 3 years ago
Comment Post #278896 *"the single-most expensive software bug ever written"* I think the Mars Climate Orbiter is up there, too (no pun intended).
(more)
over 3 years ago