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 matthewsnyder‭

Type On... Excerpt Status Date
Edit Post #288982 Post edited:
10 months ago
Comment Post #288623 I think the discussion of how to implement a comprehensive tax calculator is a separate issue from this question. Unless I've missed something, OP does not say that he is specifically trying to build a TurboTax alternative. The examples he gave sound like some kind of billing/transaction processing s...
(more)
10 months ago
Edit Post #289047 Post edited:
10 months ago
Comment Post #289047 I thought it was freeware, not FOSS! I would still like to find a solution for VSC, though.
(more)
10 months ago
Comment Post #289091 Why exactly do you find it clumsy? Is it just because there are 2 steps and you would have expected 1?
(more)
10 months ago
Comment Post #289092 Does this also delete tag and create it again at another commit?
(more)
10 months ago
Comment Post #289085 The question is a bit confusing because the requirement is not clearly stated and the code examples are complex and hard to follow. Can you edit the question and say what arguments exactly the function should take, and what it is expected to return? We can then provide an implementation.
(more)
10 months ago
Edit Post #289047 Post edited:
10 months ago
Edit Post #289047 Initial revision 10 months ago
Question "Move symbol" refactor for Python in Visual Studio Codium
Is there a way to add support for "move symbol" in Python code for VS Codium? PyCharm can do this, but I am looking for a VSC solution. PyLance can do this, but PyLance itself is closed source, and does not work in Codium after version 2023.6.40. VS Codium supports Jedi, but from what I coul...
(more)
10 months ago
Comment Post #288843 What about software that works on top of existing AIs via their API, but implements a bunch of prompt engineering to extend their functionality? A good example is https://github.com/Significant-Gravitas/Auto-GPT. Do you think questions about a tool like AutoGPT would be more suited for Power Users...
(more)
10 months ago
Edit Post #289024 Initial revision 10 months ago
Answer A: To transfer, or not to, that is the question: whether 'tis nobler to let it stay or to take arms against Stack Overflow's dominance of FAQ canonicals
Hi and welcome to the site. :) I think the idea of a canonical like the one you linked is great. A lot of newbies have too little understanding of their topic to identify common patterns. So they keep asking many trivial variations of the same handful of basic questions. People with even intermedi...
(more)
10 months ago
Edit Post #289009 Post edited:
10 months ago
Edit Post #289009 Post edited:
10 months ago
Edit Post #289009 Post edited:
10 months ago
Comment Post #289009 My goal here is to get an answer that is maybe 1-5 paragraphs, that outlines the main elements of such a setup, and drops enough specific keywords that I can figure out the rest by searching online. So while the question sounds broad, I'm not asking for a lot of *depth*. Edit suggestions welcome!
(more)
10 months ago
Edit Post #289009 Initial revision 10 months ago
Question How do I use an existing AI model to classify pornographic images?
In the last few months, AI has advanced considerably, notably in the area of generating images. We now have powerful models like DALL-E, Stable Diffusion, etc. These are quite competent at generating an image based on a text prompt. Can any existing models be used as a simple binary classifier of ...
(more)
10 months ago
Edit Post #288982 Initial revision 10 months ago
Question Does Snowflake NATURAL JOIN support outer-style join?
I like using `NATURAL JOIN` in Snowflake, because I find it more elegant than explicit join clauses. However, it appears that the natural join behaves similar to an inner join, in that null values of the join key(s) are dropped. In some cases, I want to do a natural join, but I want to include col...
(more)
10 months ago
Comment Post #288920 Hmm. Well, I would solve the concurrency issue by something like a [semaphore](https://en.wikipedia.org/wiki/Semaphore_(programming)) (I assume you have multiple threads here). SQLite also supports [write-ahead logging](https://www.sqlite.org/wal.html) to deal with concurrent writes (I haven't used W...
(more)
10 months ago
Comment Post #288920 @#63591 Is enforcing types the only problem, or are there others?
(more)
11 months ago
Comment Post #288920 Embedding Postgres/MySQL is a bad idea, they're huge and designed specifically not to be embedded. There are other *embedded* databases besides SQLite, but you should state exactly what your issue is with SQLite.
(more)
11 months ago
Comment Post #288884 Worth saying that ORMs are very complex, advanced things. They require advanced knowledge of both SQL and Python. If either is lacking, things will be very confusing. Moreover, unless you are doing some very complicated stuff (eg. large codebase maintained over years), the ORM often creates more b...
(more)
11 months ago
Edit Post #288893 Initial revision 11 months ago
Answer A: Can pandas be used as a database backend for persistent storage?
SQL is as good as it gets, generally speaking. The best engine for a small project is SQLite. If you need more, the next step is Postgres. Postgres is very capable and it's unlikely that you'll need more even as a medium sized company. But it sounds like you're asking about small personal projects. ...
(more)
11 months ago
Comment Post #288764 Aha, I see. That does sound like a good reason to do multiple local copies.
(more)
11 months ago
Edit Post #288765 Post edited:
Used mainstream mathematical term for the concept being asked about
11 months ago
Edit Post #288068 Post edited:
Converted example data to CSV for easy copy/paste, rearranged for readability. Deleted "what I tried": In this case, the question is simple enough so I think it's better to keep it short.
11 months ago
Comment Post #288764 Isn't this exactly what branches are meant to take care of? What specifically would not work if you simply used a branch here? Are you worried about accidentally pushing commits to the `upgrade` branch without meaning to?
(more)
11 months ago
Suggested Edit Post #288765 Suggested edit:
Used mainstream mathematical term for the concept being asked about
(more)
helpful 11 months ago
Edit Post #288862 Initial revision 11 months ago
Answer A: Prevent vscode from inserting new lines in the middle of my code on format.
It sounds like you have a Java formatter configured (by default?) and VSC is applying it to your code automatically (on save?). How code is formatted If your only gripe is these specific stylistic choices, but you do want auto-formatting for other things, you must figure out what formatter is bei...
(more)
11 months ago
Suggested Edit Post #288068 Suggested edit:
Converted example data to CSV for easy copy/paste, rearranged for readability. Deleted "what I tried": In this case, the question is simple enough so I think it's better to keep it short.
(more)
helpful 11 months ago
Edit Post #288861 Initial revision 11 months ago
Answer A: Remove entries by two-column ID everywhere, that meet a condition somewhere
This is solved in 2 steps: Find rows matching remove conditions Do anti-left-join on the the composite key `(Die, Cell)` To filter out the rows: ``` Read in the data df = pd.readcsv("data.csv") Identify cells with low current b100 = df[(df["Resistance"] < 100000) & (df["Current"] == 1...
(more)
11 months ago
Edit Post #288842 Initial revision 11 months ago
Question Are AI prompt engineering questions on topic?
Recently, AI models like ChatGPT have shown themselves capable of generating content and even source code. Just like with human helpers, clear and precise communication is key (especially when asking for big tasks) to avoid being misunderstood and receiving a response different from what was desired....
(more)
11 months ago
Comment Post #288841 This is very similar to the existing answer, but I didn't want to suggest edit because I wasn't sure the OP meant to write it that way. I thought I'd add it as a "ELI5" version, though.
(more)
11 months ago
Edit Post #288841 Initial revision 11 months ago
Answer A: When using the compare function in Array.prototype.sort, how to avoid an element to be processed more than once?
Create a hash map and precalculate the sort key in it: ```js // Set up: Create mock input let u = ['4', '16', '8', '2', '6']; function expensivekeyfn(x) { console.log("Doing expensive operation on: " + x) return String(x); } // Create an optimized sort function let sortKey = {} u....
(more)
11 months ago
Comment Post #285715 Obviously C pointers can do everything references do. Indeed, what other languages call "references" are just locked down pointers. So do these alleged C++ programmers have an actual point? Aren't they just splitting hairs?
(more)
11 months ago
Edit Post #288787 Initial revision 11 months ago
Answer A: How do I find disjoint sets in a dataset
Your example is a bipartite graph in adjacency list format. The cars are nodes on the left, the people are nodes on the right. When a person "has" a car, there is an edge between the car and person. Your question is equivalent to asking for the connected components of the graph. This can be done w...
(more)
11 months ago
Comment Post #288753 This is what I was looking for. But does this restrict you to one `extre-index-url`, or can you also specify multiple?
(more)
11 months ago
Edit Post #288735 Initial revision 11 months ago
Question How to configure Python pip to look for packages in a private index first?
When I run `pip install foo`, pip looks for `foo` in PyPi. I want it to look for it first in a private repo, let's say `pypi.bar.com`. Only if `foo` cannot be found in `pypi.bar.com`, should `pip` then look for it in PyPi. How can I configure pip to do this?
(more)
11 months ago
Edit Post #288668 Post edited:
11 months ago
Edit Post #288685 Initial revision 11 months ago