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) |
— | 9 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) |
— | 9 months ago |
Comment | Post #289655 |
Unreproducible; see comment (more) |
— | about 1 year 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) |
— | about 1 year ago |
Edit | Post #289575 |
Post edited: Wording tweak |
— | about 1 year 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) |
— | about 1 year ago |
Edit | Post #289575 |
Post edited: Shared servers scenario |
— | about 1 year ago |
Edit | Post #289575 |
Post edited: More directly address the question whether pipx could replace pip |
— | about 1 year ago |
Edit | Post #289575 |
Post edited: |
— | about 1 year ago |
Edit | Post #289575 |
Post edited: Final corollary |
— | about 1 year 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) |
— | about 1 year ago |
Edit | Post #289575 |
Post edited: Updated based on comments |
— | about 1 year 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) |
— | about 1 year 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) |
— | about 1 year ago |
Edit | Post #289575 | Initial revision | — | about 1 year 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) |
— | about 1 year ago |
Edit | Post #280694 |
Post edited: Weird punctuation |
— | about 1 year ago |
Suggested Edit | Post #280694 |
Suggested edit: Weird punctuation (more) |
helpful | about 1 year 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) |
— | about 1 year 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) |
— | about 1 year ago |
Edit | Post #289009 |
Post edited: Typo in title |
— | over 1 year ago |
Suggested Edit | Post #289009 |
Suggested edit: Typo in title (more) |
helpful | over 1 year ago |
Comment | Post #288753 |
... and I mention as much in the answer ("zero or more") (more) |
— | over 1 year ago |
Edit | Post #288753 | Initial revision | — | over 1 year 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) |
— | over 1 year ago |
Edit | Post #288677 |
Post edited: |
— | over 1 year ago |
Edit | Post #288677 |
Post edited: Wording tweak |
— | over 1 year ago |
Edit | Post #288677 |
Post edited: Bullet formatting |
— | over 1 year ago |
Edit | Post #288677 |
Post edited: Bullet formatting |
— | over 1 year ago |
Edit | Post #288677 |
Post edited: Bullet formatting |
— | over 1 year ago |
Suggested Edit | Post #278809 |
Suggested edit: Bullet formattin, (more) |
declined | over 1 year ago |
Edit | Post #288677 | Initial revision | — | over 1 year 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) |
— | over 1 year ago |
Edit | Post #282558 |
Post edited: English fixes |
— | over 1 year ago |
Suggested Edit | Post #282558 |
Suggested edit: English fixes (more) |
helpful | over 1 year 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) |
— | over 1 year 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) |
— | over 1 year ago |
Edit | Post #288549 | Initial revision | — | over 1 year 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) |
— | over 1 year 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) |
— | over 1 year ago |