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 #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
Edit Post #287783 Post edited:
Modify emphasis
about 1 year ago
Edit Post #287782 Post edited:
Replace tag
about 1 year ago
Edit Post #287783 Post edited:
Add note for gnome
about 1 year ago
Edit Post #287783 Post edited:
about 1 year ago
Edit Post #287782 Post edited:
Remove TBD from Windows 7/10 sections
about 1 year ago
Edit Post #287783 Post edited:
Add sections for Windows 7 and 10
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)
about 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)
about 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)
about 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)
about 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)
about 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)
about 1 year ago
Edit Post #284872 Post edited:
Word change for readability
about 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)
about 1 year ago
Edit Post #287783 Post edited:
Add note on GNU distro.
about 1 year ago
Suggested Edit Post #284872 Suggested edit:
Word change for readability
(more)
helpful about 1 year ago
Edit Post #287782 Post edited:
Remove "(TBD)" mark from Gnome
about 1 year ago
Edit Post #287783 Post edited:
Add Gnome section
about 1 year ago
Edit Post #287782 Post edited:
Add emphasis on question
about 1 year ago
Edit Post #287782 Post edited:
about 1 year ago
Edit Post #287783 Post edited:
about 1 year ago
Edit Post #287783 Post edited:
about 1 year ago
Edit Post #287783 Initial revision about 1 year ago
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)
about 1 year ago
Edit Post #287782 Initial revision about 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)
about 1 year ago
Edit Post #286800 Initial revision 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)
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
Edit Post #286696 Post edited:
Add first update with Wireshark packet capture image
almost 2 years ago
Edit Post #286696 Post edited:
Make title more accurate
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
Edit Post #286696 Initial revision 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
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
Edit Post #286588 Post edited:
Rephrase points and last sentence
almost 2 years ago
Edit Post #286588 Initial revision 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
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)
almost 2 years ago
Edit Post #279789 Post edited:
Replace account with placeholder
over 2 years ago
Edit Post #279762 Post edited:
Replace account for placeholder
over 2 years ago
Edit Post #277340 Post edited:
Fixing a typo re plural/singular terminology
over 2 years ago
Suggested Edit Post #277340 Suggested edit:
Fixing a typo re plural/singular terminology
(more)
helpful over 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
Edit Post #284078 Post edited:
Didn't mean to replace, just add
over 2 years ago