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 . .
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Edit | Post #286023 | Initial revision | — | almost 3 years ago |
Answer | — |
A: DST disrupting rsync twice a year Solved this æons ago actually... [Assumes Bash shell]. If the DST difference is for instance an hour (or 60 minutes, or 3600 seconds), change: --modify-window=3 To: --modify-window=$((3 + 60 60)) This might save the day, with the only undesirable consequence that you now n... (more) |
— | almost 3 years ago |
Edit | Post #281164 | Initial revision | — | over 3 years ago |
Question | — |
cpulimit and sensors I'm using GNU/Linux. I'd need some program or script or solution which would wrap `make` so that it would launch `cpulimit` on `g++` processes in order to be nice to `sensors` output. Or, more generically, know how to use `cpulimit` so that it intelligently limits processes in order to be nice ... (more) |
— | over 3 years ago |
Comment | Post #278983 |
it is a USB stick, FAT32 or exFAT one of those two for sure (more) |
— | almost 4 years ago |
Comment | Post #279712 |
What a beauty post. :D (more) |
— | about 4 years ago |
Edit | Post #278983 | Initial revision | — | about 4 years ago |
Question | — |
DST disrupting rsync twice a year I'm facing `rsync` full syncs every once upon a time, I think it's because DST, notice an hour of difference: ``` $ ls -l tier2/VIDEO-2020-06-17-15-10-27.mp4 /Volumes/KINSTON2/dat/laptopkinstones/tier2/VIDEO-2020-06-17-15-10-27.mp4 -rwxrwxrwx 1 staff 3992777 Jun 18 09:57 /Volumes/KINSTON2/d... (more) |
— | about 4 years ago |
Comment | Post #278982 |
What's the size for indexes and tables before and after the operations? (more) |
— | about 4 years ago |
Comment | Post #278868 |
Use `$('pre').css('max-height', 2000);` while it's broken. (more) |
— | about 4 years ago |
Edit | Post #277422 |
Post edited: |
— | about 4 years ago |
Edit | Post #278738 | Initial revision | — | about 4 years ago |
Answer | — |
A: What would the pros and cons of storing the compiled CSS output of SASS in version control? This is as old as the ages, and the problem existed in the Yacc world long before CSS was invented. > Keep both the SASS and the resulting CSS files in version control. Good: More predictable, easier to handle deployment. Less toolchain is necessary for building. Fewer dependencies for certain ... (more) |
— | about 4 years ago |
Edit | Post #278064 |
Post edited: start a line before makes it clearer |
— | over 4 years ago |
Edit | Post #278064 | Initial revision | — | over 4 years ago |
Answer | — |
A: How can I fill in tag information? There is a privilege to add the information to the tags: https://github.com/codidact/qpixel/blob/047a8d92073559fb10ebead89df8ce686f1a3dc4/app/views/tags/show.html.erb#L36-L39 https://github.com/codidact/qpixel/blob/047a8d92073559fb10ebead89df8ce686f1a3dc4/app/views/tags/show.html.erb#L49-L52 (more) |
— | over 4 years ago |
Edit | Post #278032 | Initial revision | — | over 4 years ago |
Answer | — |
A: Is concatenation a logical AND? It is OR. Assimilate FALSE to the empty string, and TRUE to any other string: ε CONCATENATE ε = ε ε CONCATENATE something = something something CONCATENATE ε = something What about both sides at TRUE: something CONCATENATE something = somethingsomething But because an... (more) |
— | over 4 years ago |
Edit | Post #277903 |
Post edited: |
— | over 4 years ago |
Edit | Post #277903 | Initial revision | — | over 4 years ago |
Answer | — |
A: How to protect the git respository for a public_html folder on a Linux server? If you can, have the repository locally and/or in a Git server. Use `rsync` to deploy updates to `publichtml`. If the repository still needs to live in that same server, same applies (`rsync`, just locally and not remotely), but the repository lives under `$HOME`, not in `publichtml`. You might... (more) |
— | over 4 years ago |
Edit | Post #277456 |
Post edited: clarifies |
— | over 4 years ago |
Edit | Post #277470 |
Post edited: honor bold style in original post |
— | over 4 years ago |
Edit | Post #277470 | Initial revision | — | over 4 years ago |
Answer | — |
A: Can renaming a MySQL column be sped up by dropping indexes or foreign keys? > I need to rename one column in 170 tables in a MySQL database and its going really slow. > > [...] Doesn't make much sense. A column name should be easy to rename and somewhat independent of the data the column stores. Table data, index data, belong in physical ANSI-SPARC level, while enti... (more) |
— | over 4 years ago |
Edit | Post #277456 |
Post edited: |
— | over 4 years ago |
Edit | Post #277456 | Initial revision | — | over 4 years ago |
Answer | — |
A: What are the pros and cons of a composite primary key versus a unique constraint? > One could either do a unique constraint on those foreign keys or a composite primary key on those columns. For elegance, canonicity, a primary key is necessary. You would initially have a primary key on those columns. However, for sortability reasons, you would eventually use just a primary k... (more) |
— | over 4 years ago |
Edit | Post #277430 |
Post edited: purge double 'signed' word |
— | over 4 years ago |
Edit | Post #277430 | Initial revision | — | over 4 years ago |
Answer | — |
A: Does using an Integer have any speed/performance benefits over a string in JSON Let's start with this perl at https://www.json.org/json-en.html: > A number is very much like a C or Java number, except that the octal and hexadecimal formats are not used. That's an extremely imprecise sentence. There are no numbers in C or Java. C provides `signed` and `unsigned` `short`, `i... (more) |
— | over 4 years ago |
Edit | Post #277422 |
Post edited: +retina |
— | over 4 years ago |
Edit | Post #277423 | Initial revision | — | over 4 years ago |
Answer | — |
A: Should I cast to (void) when I do not use the return value > I saw at least one compiler (Codewarrior for HC12) warn me if I use a function without using it's return value. [...] Ye, for that's the right choice. > [...] Other compilers (clang/gcc) do not issue a warning though, even when using the std=90 argument. It will, provided that the function... (more) |
— | over 4 years ago |
Edit | Post #277422 | Initial revision | — | over 4 years ago |
Question | — |
Xcode, SDL app showing in a single quarter of the window. Why SDL (the Simple Directmedia Layer) apps are showing in a single quarter of the window, while the other three are blacked out, and what can I do about it? I'm using Xcode. I think this started happening since some upgrade. I believe it can be entirely fixed without writing code. Of course I'... (more) |
— | over 4 years ago |