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 Quasímodo
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Answer | — |
A: What guarantees does Bash make about order of :- Parameter Expansion when it is not in POSIX mode? > The documentation seems to me to hint that WORD will be expanded whether I want it to be, or not. I don't agree, because as quoted: > (1) If PARAMETER is unset or null, the expansion of WORD is substituted. > (2) Otherwise, the value of PARAMETER is substituted. Case 2 is the one at han... (more) |
— | about 2 months ago |
Question | — |
Qt Button changes drastically when setting its `border-radius`. In a Qt application I have nothing more than a window with a button as its direct child. I set its background color and all is fine: ``` Window::Window(QWidget parent) : QWidget(parent) { button1 = new QPushButton(this); button1->setText("1234"); button1->setStyleSheet("{backg... (more) |
— | over 1 year ago |
Answer | — |
A: How to manage user-specific application data on Linux? Indeed, the `$HOME/.application-name` is the old way. Doing that nowadays is frowned upon (this is an example of what happens if you try), mostly because, as you said, it clutters the home directory. Instead, stick to the XDG Base Directory Specification. The most important points are: > - Ther... (more) |
— | over 1 year ago |
Answer | — |
A: Keep local branch changes to resolve all remaining conflicts in a merge ```none git checkout --ours -- ``` `--theirs` would do the opposite, i.e. keep the changes from `branch-y`. Don't forget to `git add` later! (more) |
— | over 1 year ago |
Question | — |
Keep local branch changes to resolve all remaining conflicts in a merge On branch-x, I do ```none git merge branch-y ``` Now there are some conflicts, and `git status` shows ```none Changes to be committed: new file: a new file: b Unmerged paths: (use "git add ..." to mark resolution) both added: w both modified:... (more) |
— | over 1 year ago |
Answer | — |
A: Vim: how to search for all instances of a string, except for those that are between two specific strings Alternating between the two patterns seems to work! \(abc.\)\@<!bird\|bird\(.xyz\)\@! As a bonus, you can enable the very magic mode with `\v` to avoid backslashes! The resulting expression is equivalent but easier to type. \v(abc.)@<!bird|bird(.xyz)@! For reference: `:help /bar` ... (more) |
— | almost 2 years ago |
Question | — |
console.readline tag does not look good to me The console.readline tag has been created for Q: How to read lines into an array in Bash, which uses a `while read` loop. That tag is inappropriate because Readline, the console and the `read` built-in are mostly unrelated concepts, and only the latter is part of the question. Please consider ... (more) |
— | over 2 years ago |
Answer | — |
A: How to read lines into an array in Bash 1st issue As others have said, `echo "$array"` only prints the first element of the array; I suggest printf '%s\n' "${array[@]}" to print each element on a line. 2nd issue More importantly, the loop is partially incorrect. Consider this file: ``` pear yellow apple \\ red ... (more) |
— | over 2 years ago |
Question | — |
Warn of implicit cast in a function's arguments with GCC? In the C program below, I make a mistake and call the function with `(ld, ld)` instead of `(d, ld)`. ```c #include #include void printintlong(int n, long l){ printf("%+d %+ld\n", n, l); } int main(){ int d = 0; long ld = INTMAX + 1L; printintlong(ld, ld); retu... (more) |
— | about 3 years ago |