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 #290786 |
While indeed bash is code, bash discussion tends to happen on linux.codidact.com/ so perhaps this question is better move there so it can get better answers. (more) |
— | 10 months ago |
Comment | Post #290788 |
This is surely explained at https://developers.google.com/identity? (more) |
— | 10 months ago |
Edit | Post #290816 |
Post edited: |
— | 10 months ago |
Edit | Post #290816 |
Post edited: |
— | 10 months ago |
Edit | Post #290816 | Initial revision | — | 10 months ago |
Answer | — |
A: What is the difference between hashing and encryption? Hashing is lossy compression. You can't recover the input of a hash from the result. This would obviously not work as an encryption. How would you decrypt it, if half the message is destroyed :) Consider the SHA hash. You can hash a 1 GB file into a 0.1 kB string. Wow! Why don't we just sen... (more) |
— | 10 months ago |
Comment | Post #290747 |
IMO, the downvotes are inappropriate here. The question is well-written and easily answerable - in the negative, as I tried to do.
Asking how to do an impossible thing shouldn't be downvoted. Someone trying to learn about a topic may be unaware of what's possible or not, but there's nothing wrong ... (more) |
— | 10 months ago |
Edit | Post #290815 | Initial revision | — | 10 months ago |
Answer | — |
A: Building a language model completely from scratch This is not feasible as described. To learn LLMs, you can look at models like 3B WizardLM. These are open source and should be possible to just train and run as is. The build may be very complex, and consumer hardware may be insufficient (but the easy solution is to run it on the cloud). You ca... (more) |
— | 10 months ago |
Edit | Post #290502 |
Post edited: |
— | 11 months ago |
Comment | Post #290526 |
It sounds like your problem isn't really about Chatty or speech recognition, you just have a simple import error. See if you can follow the answer in https://software.codidact.com/posts/290550 (more) |
— | 11 months ago |
Edit | Post #290551 | Initial revision | — | 11 months ago |
Answer | — |
A: How to troubleshoot ModuleNotFoundError? `ModuleNotFoundError` means that in running your program, Python attempted to import some module `xyz` but it was not present on your system. It could be that you forgot to install the module (forgot to `pip install -r requirements.txt`), misspelled the module name, or tried to import a module tha... (more) |
— | 11 months ago |
Edit | Post #290550 | Initial revision | — | 11 months ago |
Question | — |
How to troubleshoot ModuleNotFoundError? I ran some Python code and it crashed with `ModuleNotFoundError`. What is the general approach for dealing with these situations? (more) |
— | 11 months ago |
Comment | Post #290502 |
I think people make a new rainbow table in that case. (more) |
— | 11 months ago |
Edit | Post #290502 |
Post edited: |
— | 12 months ago |
Edit | Post #290502 |
Post edited: |
— | 12 months ago |
Edit | Post #290502 | Initial revision | — | 12 months ago |
Answer | — |
A: Are "strong passwords" at all meaningful? The assumption of 1k attempts/s is wishful thinking, as is the idea that a hacker will go on mail.google.com and try to guess your login (they would get a captcha after like 5 failed attempts). Password security comes into play when someone steals the whole table of all accounts and password hashe... (more) |
— | 12 months ago |
Comment | Post #290343 |
Fair enough. I know that this is one of your self-answer canonicals. I think the question is interesting, but I noticed all the answer you posted are quite long. So I decided to post a shorter one for people who are in a hurry, and also as an example for how it can be made more succinct. I operate un... (more) |
— | about 1 year ago |
Edit | Post #290327 |
Post edited: |
— | about 1 year ago |
Edit | Post #290327 |
Post edited: |
— | about 1 year ago |
Edit | Post #290344 | Initial revision | — | about 1 year ago |
Answer | — |
A: Does Python have a "ternary operator" (conditional evaluation operator like "?:" in other languages)? The Python ternary "operator" is `if` and `else`: ``` x = 1 if somecondition else 0 ``` In Python, this is called a "conditional expression" rather than an operator, and the documentation explains it: https://docs.python.org/3.12/reference/expressions.html?highlight=ternary#conditional-expressi... (more) |
— | about 1 year ago |
Comment | Post #289753 |
This is a good question, but IMO it mixes too many things together, so it's hard to write a good answer. In my own answer, I try to call out the specific things I think should be a separate question. (more) |
— | about 1 year ago |
Edit | Post #290343 |
Post edited: |
— | about 1 year ago |
Edit | Post #290343 |
Post edited: |
— | about 1 year ago |
Edit | Post #290343 |
Post edited: |
— | about 1 year ago |
Edit | Post #290343 |
Post edited: |
— | about 1 year ago |
Edit | Post #290343 |
Post edited: |
— | about 1 year ago |
Edit | Post #290343 | Initial revision | — | about 1 year ago |
Answer | — |
A: Understanding mutable default arguments in Python Everything you put on the line with `def` is global (global to the file, not as in the `global` keyword), so the (initially empty) list you create with `param=[]` persists and gets reused between calls to `example()`. You probably want to create a local list for each invocation instead. For that, you... (more) |
— | about 1 year ago |
Edit | Post #290342 | Initial revision | — | about 1 year ago |
Question | — |
PEP20 on namespaces: What exactly is it saying to do? PEP20 aka the Zen of Python has a statement: >Namespaces are one honking great idea -- let's do more of those! What exactly are we supposed to "do" according to this? Is it saying we should have more "honking great ideas" like namespaces and add them to the language as PEPs? Is it saying ... (more) |
— | about 1 year ago |
Edit | Post #290327 |
Post edited: |
— | about 1 year ago |
Edit | Post #290327 | Initial revision | — | about 1 year ago |
Answer | — |
A: What is the point of triggering CI/CD with an empty git commit? The reason this practice exists is because CIs suck. The frameworks/services themselves suck, and the way people write the configs also suck, and the two combine to create a mega-suck. A CI is supposed to trigger as you make changes so you automatically have an up-to-date indicator on whether the ... (more) |
— | about 1 year ago |
Edit | Post #290317 |
Post edited: More reflective of the self-answer |
— | about 1 year ago |
Comment | Post #290301 |
If we're going to have "what is the default setting X in Y program" questions, they should give some version range ("at least in version x.y.z") to avoid becoming less than useful a few years later. (more) |
— | about 1 year ago |
Suggested Edit | Post #290317 |
Suggested edit: More reflective of the self-answer (more) |
helpful | about 1 year ago |
Edit | Post #290084 |
Post edited: |
— | about 1 year ago |
Suggested Edit | Post #290084 |
Suggested edit: (more) |
helpful | about 1 year ago |
Edit | Post #290050 | Initial revision | — | about 1 year ago |
Question | — |
Get list of all variables from Jinja template Suppose you have a jinja template like this: ```lang-none I am going to {{ foo }} to get some {{ bar }}. I hope I can find: {% for i in baz %} - {{i}} {% endfor %} ``` This template will require you to pass variables `foo`, `bar` and `baz` when rendering it. If any are missing, it will ret... (more) |
— | about 1 year ago |
Comment | Post #290043 |
There's several questions here:
1. How to make hotkeys run a bash command in Ubuntu?
2. How to make keybindings still work with Ubuntu in Hyper-V?
3. Workarounds for setting keyboard layout.
I think you might get better answers if you ask each one separately. Also, as the other comment says, ... (more) |
— | about 1 year ago |
Comment | Post #290007 |
I agree with both points in this. In particular, SO sometimes permits a very narrow range of discussion about "best" if you lock the criteria down very tightly. But to provide comprehensive evaluation criteria, you have to be pretty expert to begin with. When you get a total noob asking things like "... (more) |
— | about 1 year ago |
Edit | Post #290001 | Initial revision | — | about 1 year ago |
Answer | — |
A: What software architecture are available for developing an application with multiple business domains that only share some common aspects? If I ignore the example and answer the title generally: You would put the common logic into a third piece of software that becomes the dependency of both domains. For example, let's say you are writing software for a company that has two domains of business: They sell construction tools and materi... (more) |
— | about 1 year ago |
Comment | Post #289948 |
I think the question uses "program" in the sense of "service product offered to humans", not "piece of software". It also sounds like a lot of the question is about databases (I know there's parts that mention apps as potential solutions).
This makes it a bit confusing which type of "program" you'... (more) |
— | about 1 year ago |