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 tripleeeā€­

Type On... Excerpt Status Date
Comment Post #290489 "Security professionals" are generally only trying to implement the minimum required hassle, but this generally means more hassle than many users will readily tolerate. However, the opposite would obviously be even worse; not enforcing the requirements would make security even worse for everyone. ...
(more)
3 months ago
Comment Post #290682 Should this also cover the use of a [`package_data` specification](https://setuptools.pypa.io/en/latest/userguide/datafiles.html) in the packaging files? It's slightly out of scope for the actual question, but arguably the "correct" solution for anything which gets properly packaged and distributed.
(more)
3 months ago
Comment Post #289655 Unreproducible; see comment
(more)
8 months ago
Comment Post #289655 Out of the box, your commands should work if everything in your exposition is true. There's something you are not telning us.
(more)
8 months ago
Edit Post #289575 Post edited:
Wording tweak
8 months ago
Comment Post #289575 Perhaps that's a temporary problem. As it gains popularity, I'd expect it to become available via Apt / Yum / Pacman / Emerge / Conda / what have you. The Mac instructions already defer to Homebrew. (On the other hand, can't blame the maintainers if they don't want to have separate instructions for m...
(more)
8 months ago
Edit Post #289575 Post edited:
Shared servers scenario
8 months ago
Edit Post #289575 Post edited:
More directly address the question whether pipx could replace pip
8 months ago
Edit Post #289575 Post edited:
8 months ago
Edit Post #289575 Post edited:
Final corollary
8 months ago
Comment Post #289575 Thanks for the feedback. I removed the parentheses and expanded slighty on what exactly `pipx` does. The AWS example seems sufficient to me as an illustration; did you have some other type of example in mind?
(more)
8 months ago
Edit Post #289575 Post edited:
Updated based on comments
8 months ago
Comment Post #280700 I think you are missing the point of this answer, which explains specifically why _demanding_ something is problematic. You too would probably at the very least explain - perhaps even politely - to someone who thinks they deserve your time **now** that right now, you prioritize walking with your kid...
(more)
8 months ago
Comment Post #289464 How did you install `gh`? In particular, did you use Snap? [This answer](https://stackoverflow.com/a/69047397) on the question you link to alleges that this is problematic.
(more)
8 months ago
Edit Post #289575 Initial revision 8 months ago
Answer A: What is the point of pipx?
They are tools for different audiences. `pipx` does not replace `pip`. In some more detail, `pip` answers the question "As a Python developer, how can I install Python packages and their dependencies" whereas `pipx` answers the question "As a user, how can I conveniently install a tool which is av...
(more)
8 months ago
Edit Post #280694 Post edited:
Weird punctuation
8 months ago
Suggested Edit Post #280694 Suggested edit:
Weird punctuation
(more)
helpful 8 months ago
Comment Post #289514 `systemd-run` obviously requires `systemd`, which is pretty much ubiquitous on modern desktop Linux distros, but much less so on "real" Unix, embedded systems, etc.
(more)
8 months ago
Comment Post #289514 The generic text `split()` will work fine here; but in the general case, you should prefer `shlex.split()` which copes correctly with quoting, backslash escaping, etc.
(more)
8 months ago
Edit Post #289009 Post edited:
Typo in title
10 months ago
Suggested Edit Post #289009 Suggested edit:
Typo in title
(more)
helpful 10 months ago
Comment Post #288753 ... and I mention as much in the answer ("zero or more")
(more)
11 months ago
Edit Post #288753 Initial revision 11 months ago
Answer A: How to configure Python pip to look for packages in a private index first?
The `pip` command accepts an option `--index-url` to specify the primary index (defaults to PyPI) and zero or more `--extra-index-url` options to specify secondary indices. So for your use case, try ```sh pip install --index-url https://pypi.bar.com/simple --extra-index-url https://pypi.org/simpl...
(more)
11 months ago
Edit Post #288677 Post edited:
11 months ago
Edit Post #288677 Post edited:
Wording tweak
11 months ago
Edit Post #288677 Post edited:
Bullet formatting
11 months ago
Edit Post #288677 Post edited:
Bullet formatting
11 months ago
Edit Post #288677 Post edited:
Bullet formatting
11 months ago
Suggested Edit Post #278809 Suggested edit:
Bullet formattin,
(more)
declined 11 months ago
Edit Post #288677 Initial revision 11 months ago
Answer A: For scripting what are the pros and cons of command line arguments versus capturing input at the start?
I'm coming down strongly in favor of command-line arguments or options over interactive I/O for a number of reasons: Providing arguments on the command line is vastly superior for programmatic invocation (for scripts calling scripts, including but not limited to the tool's own test suite, othe...
(more)
11 months ago
Edit Post #282558 Post edited:
English fixes
11 months ago
Suggested Edit Post #282558 Suggested edit:
English fixes
(more)
helpful 11 months ago
Comment Post #288549 The question is slightly unclear. The OP _seems_ to want to find files where the matches can be on separate lines, but the `grep` example in the question would only find occurrences on the same line.
(more)
11 months ago
Comment Post #288339 If that works, I would expect a here string to also work: ``` $ psql -v foo=bar -f <<<"SELECT :'foo' AS foo;" ``` ... but I don't have a `psql` instance to quickly test with. The here string syntax is Bash-only, though I hear it's slated to be included in POSIX eventually.
(more)
11 months ago
Edit Post #288549 Initial revision 11 months ago
Answer A: grep AND search for multiple words in files
An alternative to `grep` is Awk, which makes this pretty easy. To find lines which contain both: ``` find . -type f -exec awk '/foo/ && /bar/' {} + ``` (Maybe add `{ print FILENAME ":" FNR ":" $0 }` before the closing quote if you want the filename and the line number.) To find files wh...
(more)
11 months ago
Comment Post #288510 Explicitly comparing the result code in `$?` is a bit of a code smell, although I can vaguely see why you might prefer that syntax here. To avoid it, `if { STDERR="$( { ${@}; } 2>&1 1>&3 3>&- )"; } 3>&1; then` ...
(more)
11 months ago