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 ghost-in-the-zsh
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Answer | — |
A: Does the location of an import statement affect performance in Python? Summary The location within a module where an `import` statement is found by the interpreter is not expected to cause differences in performance such as speed or memory usage. Modules are singleton objects, which means that they're only ever loaded once and will not be re-imported or re-loaded aga... (more) |
— | over 3 years ago |
Edit | Post #279363 | Initial revision | — | over 3 years ago |
Question | — |
Does the location of an import statement affect performance in Python? When writing Python-based apps (e.g. Django, Flask, etc.), it's often the case that `import` statements can be found all over the place, often more than once for the same module. For example, you can: - have the imports at the top of a module; - place the imports inside the functions where they'r... (more) |
— | over 3 years ago |
Suggested Edit | Post #277511 |
Suggested edit: Fix typo in title. Insecure = no confidence; Unsecure = no security (more) |
helpful | over 3 years ago |
Comment | Post #278207 |
@CharlieBrumbaugh The "doubled" dev time is not true. First, yes, it does take some time to setup an isolated dev environment, but that is a one-time thing. Second, you shouldn't be using your production database to do any dev work. That's what dev environments are for. Third, if you screw up, you'll... (more) |
— | over 3 years ago |
Edit | Post #279081 | Post edited | — | over 3 years ago |
Comment | Post #279304 |
This is really the way to go, IMHO. Just alias the command and done. This is also done in the `oh-my-zsh` project for `zsh` itself, with `gc` = `git commit`, `gst` = `git status`, and so on. (more) |
— | over 3 years ago |
Suggested Edit | Post #279081 |
Suggested edit: Minor typo fix. (more) |
helpful | over 3 years ago |
Edit | Post #279262 | Initial revision | — | over 3 years ago |
Answer | — |
A: Unable to `mount` overlayfs in Docker container when inside a LXC with a ZFS pool Summary The TL;DR is that, as long as ZFS is being used as the underlying file system, `mount` commands on top of that will not work. It's simply not supported. I was also able to confirm this over email with Ubuntu/LXD developer, Stéphane Graber, with him saying, in part, that: > overlay doesn... (more) |
— | over 3 years ago |
Comment | Post #279102 |
@Canina I saw it. In MySQL, if you use InnoDB as the storage engine, then the only things getting locked during write operations are the rows being updated, not the tables themselves as a whole like MyISAM does. (And no one should be using MyISAM as the storage engine nowadays, since it's not even AC... (more) |
— | over 3 years ago |
Comment | Post #279102 |
Another alternative is to try and set up all the SQL statements as a single transaction. Did you look into this? (more) |
— | over 3 years ago |
Edit | Post #279053 | Initial revision | — | over 3 years ago |
Answer | — |
A: The size of the code format window is much too small. I agree. Something that might be more useful is to allow the text boxes to be resizeable by the user. In most places, there's a small tab on the lower-right corner of a text box that allows the user to arbitrarily change the size of the box. That would be very useful not only for the main text box... (more) |
— | over 3 years ago |
Edit | Post #279037 |
Post edited: Add a few more `dmesg` entries from today. |
— | over 3 years ago |
Comment | Post #279037 |
Also, the LXC configs already had `security.nested` set to `true`. (more) |
— | over 3 years ago |
Comment | Post #279037 |
`docker: Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused \"process_linux.go:415: setting cgroup config for procHooks process caused \\\"failed to write \\\\\\\"a *:* rwm\\\\\\\" to \\\\\\\"/s... (more) |
— | over 3 years ago |
Comment | Post #279037 |
If I set LXC's `security.privileged = true`, launching a `--privileged` docker container results in this error: (more) |
— | over 3 years ago |
Edit | Post #279038 | Initial revision | — | over 3 years ago |
Answer | — |
A: Is it possible in MySQL to require each row in a table have at least one foreign key record in a join table? If I understand your question correctly, i.e. > Is it possible to enforce that constraint at the database level? Then the short answer is: No. > In the business logic for the program, every record in the A table must have a relationship to at least one record in the B table Since you alre... (more) |
— | over 3 years ago |
Comment | Post #279034 |
It'd probably be more helpful if you include the SQL you used to create the table, its columns, and then the SQL used to drop the columns, along with the version of MySQL you're using, and so on. It'd also help in clearing up ambiguities. (more) |
— | over 3 years ago |
Edit | Post #279037 | Initial revision | — | over 3 years ago |
Question | — |
Unable to `mount` overlayfs in Docker container when inside a LXC with a ZFS pool Summary/Context I'm currently working to improve performance and throughput of our automation infrastructure, most of which is a combination of Bash/Shell scripts, Python scripts, Docker, Jenkins, etc. We use Yocto to build embedded Linux distributions for specialized hardware and we have a Docker... (more) |
— | over 3 years ago |
Comment | Post #278847 |
Will that include up-voting comments? 🤔 (more) |
— | over 3 years ago |
Comment | Post #278292 |
@Alexei: Did you consider logging in the app, so that you can better correlate what the app is doing and when? That'd be my approach. (more) |
— | over 3 years ago |
Comment | Post #278896 |
*"the single-most expensive software bug ever written"* I think the Mars Climate Orbiter is up there, too (no pun intended). (more) |
— | over 3 years ago |
- ← Previous
- 1
- 2
- 3
- Next →