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 user253751
| Type | On... | Excerpt | Status | Date |
|---|---|---|---|---|
| Comment | Post #296506 |
I fear you may have misunderstood why state machines are used when receiving from USART. See how you call `usart_rx` twice, even if only one byte is available - what does the second call return, if no more bytes are available? And what is the point of cmd_switch being its own state, if it always ... (more) |
— | about 1 month ago |
| Edit | Post #296524 | Initial revision | — | about 1 month ago |
| Answer | — |
A: How do I type something different at each cursor when using multi-cursor editing in VS Code? You click on the first place and type `blue`. Then you click on the second place and type `green`. Then you click on the third place and type `lightblue`. Multi-cursors are useful when you are typing the same thing in several places. If you are not typing the same thing, you don't have to use them. (more) |
— | about 1 month ago |
| Comment | Post #291194 |
I mostly agree with this but one nitpick: it's usually not that hard to find where a global variable is used. If your IDE doesn't have a button for it, there's always "grep". (more) |
— | about 1 month ago |
| Edit | Post #294061 | Initial revision | — | over 1 year ago |
| Question | — |
How can I unmount a filesystem hidden behind another? Let's say I mount a filesystem and then mount another filesystem over it the same location: (sshfs for example) ``` sshfs foo@server1:/path /mnt/path sshfs foo@server2:/path /mnt/path ``` The contents of /mnt/path will reflect server2. How can I unmount server1 without unmounting and ... (more) |
— | over 1 year ago |
| Comment | Post #284565 |
Java has one big problem with Optional: Optional values are also nullable. So you have null, Optional.empty(), and Optional.of(whatever). Instead you could write `@Nullable Whatever` and simply have null and whatever. And this would work even if the compiler doesn't understand the @Nullable annot... (more) |
— | over 1 year ago |
| Comment | Post #293717 |
Isn't that library called... Jupyter? (more) |
— | over 1 year ago |
| Comment | Post #293539 |
This can simplify your networking design (which packets go where), but you still have to understand all the communications between microservices, not just between each microservice and the gateway. (more) |
— | over 1 year ago |
| Edit | Post #293129 |
Post edited: |
— | over 1 year ago |
| Edit | Post #293129 |
Post edited: |
— | over 1 year ago |
| Edit | Post #293129 | Initial revision | — | over 1 year ago |
| Answer | — |
A: Is it a bad idea to block proxies/vpns for interacting with my app? If you block proxies and VPNs it will stop real users. reCAPTCHA also stops real users, often blocks proxies and VPNs, and isn't very good at stopping bots. You can try a custom CAPTCHA. It can be a simple question. For example, if your site is about LEGO, you can ask how many studs are on ... (more) |
— | over 1 year ago |
| Edit | Post #292718 | Initial revision | — | almost 2 years ago |
| Question | — |
Why not call nullptr NULL? In C++11 the `nullptr` keyword was added as a more type safe null pointer constant, since the previous common definition of `NULL` as `0` has some problems. Why did the standards committee choose not to call the new null pointer constant `NULL`, or declare that `NULL` should be `#define`d to `... (more) |
— | almost 2 years ago |
| Comment | Post #290289 |
Google gives special privileges to Stack Overflow and other sites, like Reddit. There's nothing you can do about that until the site is actually big enough that everyone comes here instead of SO, which won't happen as long as Google hard-codes a boost to SO. And even then, sometimes they don't ch... (more) |
— | almost 2 years ago |
| Comment | Post #289709 |
There's nothing you can do about the fact that Google ranks Stack Overflow highly. It's hard-coded into Google because Google staff like the content on Stack Overflow. (more) |
— | almost 2 years ago |
| Edit | Post #292692 |
Post edited: |
— | almost 2 years ago |
| Edit | Post #292692 |
Post edited: |
— | almost 2 years ago |
| Edit | Post #292692 | Initial revision | — | almost 2 years ago |
| Answer | — |
A: How can we grow this community? Broaden the scope (slightly) I noticed https://software.codidact.com/posts/292660 was closed due to being off-topic. That's fine on a site the size of Stack Overflow, where there are too many questions and filtering keeps it focused, but a site with too few questions that wants more activity s... (more) |
— | almost 2 years ago |
| Comment | Post #292394 |
This works, but it makes a hash out of the reasons it works, since commits aren't added or removed to branches, but rather branches are pointers to their latest commits. It might mislead someone trying to understand git better. (more) |
— | about 2 years ago |
| Comment | Post #292334 |
An example: a test database. The fixture may create a test database, delete it when the test finishes, and pass the database address as a parameter to the tests. All of this can happen fully automatically for all tests that have a `db_address` parameter if `db_address` is defined as a fixture. (more) |
— | about 2 years ago |
| Comment | Post #292312 |
I would normally use 'git reflog' to see the branch name, then check out the branch by name. (more) |
— | about 2 years ago |
| Comment | Post #292142 |
I don't think that "use a static site generator" and "use a static site generator in GitHub Pages" are really two different solutions. I was expecting the second one to be server-side includes. (more) |
— | about 2 years ago |
| Comment | Post #290815 |
OK, but asker is not asking how long it would take, just what the steps would be. A good answer is: You would have to do this, this, this, this and this. But that will probably take a very long time, so consider taking these shortcuts. (more) |
— | over 2 years ago |
