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 matthewsnyderâ€
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Comment | Post #289891 |
How am I going to `mv` or `cat` the stuff that comes out of that? (more) |
— | about 1 year ago |
Comment | Post #289985 |
True. But remember I am proposing that instead of answers like "you have a typo in line 4", we should favor answers like "here is how you can find that a typo caused your bug...".
Anyway, why the preoccupation with typos? There is a lot more to debugging than finding typos. (more) |
— | about 1 year ago |
Edit | Post #289985 |
Post edited: |
— | about 1 year ago |
Comment | Post #289985 |
Like many here, most of my experience with QA sites indeed comes from SO.
I know it is not against the rules here per se. However, I have often observed people in meta discussions to suggest various types of "overly localized" questions are undesirable. There does not seem to be much gained by pro... (more) |
— | about 1 year ago |
Edit | Post #289985 | Initial revision | — | about 1 year ago |
Question | — |
Suggested special feature: Clinic/case study We have special features/sections on Codidact, so maybe this is a nice use for them. What if we had a section named something like "clinic" or "case study" or "debugging"? (name suggestions welcome) The point of this section would be specific debugging or troubleshooting help questions. The for... (more) |
— | about 1 year ago |
Edit | Post #289914 | Initial revision | — | about 1 year ago |
Question | — |
Can you run Python code on text in VS Code? In VS Code, is it possible to run Python code on the text being edited? I realize that I can save my text, create a `.py` file, switch to a terminal (including VS Code's own terminal) and run the `.py` file. However, some other editors like Gedit support running ad-hoc Python scripts to process th... (more) |
— | about 1 year ago |
Comment | Post #289909 |
I know there are standalone programs for working with regexes specifically. I am not asking for those, I want a VSC extension specifically.
Posting those programs probably **will** be useful to someone, so they should go in a separate question. However, I don't want to create yet another unanswere... (more) |
— | about 1 year ago |
Edit | Post #289909 | Initial revision | — | about 1 year ago |
Question | — |
Advanced Regex extension for VS Code VS Code supports regex search, but the search/replace is UI is just a tiny dialog box. It's okay if you know regex well and the expression is not complex, but when trying to apply complicated expressions the usability is not good. I often end up having to "develop" the regex in regexr.com, which mean... (more) |
— | about 1 year ago |
Edit | Post #289907 |
Post edited: |
— | about 1 year ago |
Edit | Post #289907 |
History hidden: Detailed history before this event is hidden because of a redaction. |
— | about 1 year ago |
Edit | Post #289907 |
Post edited: |
— | about 1 year ago |
Edit | Post #289907 | Initial revision | — | about 1 year ago |
Question | — |
How to overwrite lines of STDOUT in Python? `print()` normally adds text to STDOUT, it does not erase existing text. https://linux.codidact.com/posts/289869 describes various ways of doing the overwrite in shell scripts. How can you do this in Python? (more) |
— | about 1 year ago |
Edit | Post #289906 |
Post edited: |
— | about 1 year ago |
Edit | Post #289906 | Initial revision | — | about 1 year ago |
Question | — |
How to open VS code with a particular path expanded? When you do: ```sh cd /some/path code . ``` VS Code opens with that location shown in the "Explorer" sidebar. However, the state of the file tree and the currently open files will be the same as what was remembered from the last session. Let's say that last time I was editing `/some/path/fo... (more) |
— | about 1 year ago |
Edit | Post #289891 | Initial revision | — | about 1 year ago |
Question | — |
How to provide meaningful names for emails in Maildir? I am writing some scripts that operate on emails in Maildir format. A lot of things are easy in this format, but the filenames are absolutely incomprehensible. For example, one script moves mails between folders based on some rules. It has a dry run mode which simply says which mails would be move... (more) |
— | about 1 year ago |
Edit | Post #289889 | Initial revision | — | about 1 year ago |
Question | — |
Regex for simplifying Amazon product URLs Amazon product URLs are often very long, but on experimentation it is revealed that the following pattern is sufficient: ``` https://www.amazon.com/{dp|gp}/$ID ``` `ID` is a 10-char string, which I'm guessing is the ASIN. I want to parse out the long URLs into the minimal form. What exactly is ... (more) |
— | about 1 year ago |
Edit | Post #289887 | Initial revision | — | about 1 year ago |
Question | — |
Determine which script is slowing the page down in Firefox A page is very slow and laggy in Firefox. I am certain it's one of the many Javascripts slowing it down. Out of curiosity, I'd like to figure out which script is creating the heaviest load. Note that I also have some blocked with uBlock origin, and I don't want to unblock those - I want to see whi... (more) |
— | about 1 year ago |
Edit | Post #289884 |
Post edited: |
— | about 1 year ago |
Edit | Post #289884 | Initial revision | — | about 1 year ago |
Answer | — |
A: Shortcut for inserting today's date in VS Code You can use snippets for this. In the example below, when you type `today` and trigger completion (usually Ctrl+Space) you will see an option to insert the date by pressing Enter. Snippet code: ```json "today ISO": { // applies everywhere "scope": "", "prefix": "today", "body": [ "$CU... (more) |
— | about 1 year ago |
Edit | Post #289883 | Initial revision | — | about 1 year ago |
Question | — |
Shortcut for inserting today's date in VS Code Is there a way to easily insert today's date when editing a file in VS Code? (more) |
— | about 1 year ago |
Comment | Post #289860 |
This works also, and is better. It doesn't open files that were open in the previous session, which I like. (more) |
— | about 1 year ago |
Edit | Post #289858 | Initial revision | — | about 1 year ago |
Answer | — |
A: VS Code: How to open a file and folder in a new window? Best I could do was: ```shell cd /foo/bar && code --new-window . && code baz.txt ``` The `cd` is not necessary but makes the command cleaner. I would still like to know if there's a cleaner way. (more) |
— | about 1 year ago |
Edit | Post #289857 | Initial revision | — | about 1 year ago |
Question | — |
VS Code: How to open a file and folder in a new window? I've figured out that `code --new-window /foo/bar/baz.txt` will open `baz.txt` in a new window. But when I do this, it says "no folder opened" in the file explorer pane. That makes it hard to work with other files in the same directory. How can I also set the folder when opening a file like this? ... (more) |
— | about 1 year ago |
Comment | Post #289828 |
I don't disagree that poorly made batteries can be dangerous, but I think that maybe an extended discussion of battery discharge related hazards can be moved to a more appropriate site, like electrical engineering, rather than a question about boolean operators in programming.
This appears to have... (more) |
— | about 1 year ago |
Comment | Post #289828 |
I know, I just think you're hamming it up a little too much :)
Decades ago it might have been like you describe, but not anymore really. Especially in electronics, where you work with low voltages, it's hard to make things explode.
Battery packs these days do have intelligence with built in cir... (more) |
— | about 1 year ago |
Edit | Post #289837 |
Post edited: |
— | about 1 year ago |
Edit | Post #289837 |
Post edited: |
— | about 1 year ago |
Edit | Post #289837 |
Post edited: |
— | about 1 year ago |
Edit | Post #289837 |
Post edited: |
— | about 1 year ago |
Comment | Post #289828 |
Usually cables don't blow up from a short, especially if you're doing layman things. Shorts will allow electricity to be consumed rapidly. With grid AC (as in house wiring) there are already circuit breakers that will automatically turn off when current goes too high. With batteries, the battery will... (more) |
— | about 1 year ago |
Edit | Post #289837 |
Post edited: |
— | about 1 year ago |
Edit | Post #289837 | Initial revision | — | about 1 year ago |
Answer | — |
A: What is the meaning of "short circuit" operators? It means the program can give up early if checking the rest of a boolean expression is pointless. For example, naively to evaluate `p and q` you must check the value of both `p` and `q`, and then do the `and` operation. However, if you are a bit more clever, you'll see that when `p` is `False`,... (more) |
— | about 1 year ago |
Edit | Post #289804 | Initial revision | — | about 1 year ago |
Answer | — |
A: How should open source forks, with a mix of upstreamable and non-upstreamable commits, be maintained? The ideal way is to separate the upstreamable and non-upstreamable changes. For example you could maintain two branches: `public` and `private`. All upstreamable changes are cherry picked to public and this is what you send back to the upstream. All your non-upstreamable changes would be in privat... (more) |
— | about 1 year ago |
Edit | Post #289748 | Initial revision | — | about 1 year ago |
Answer | — |
A: Alternatives to `EXPLAIN ANALYZE` for queries that won't complete You can try to break up the query into CTEs, and then see if any of the individual CTEs are unusually slow. I am guessing the query is not just one select, but probably has subqueries, window functions, aggregations, joins and so on. All of these can be split into CTEs pretty easily (if you have q... (more) |
— | about 1 year ago |
Edit | Post #289725 | Initial revision | — | over 1 year ago |