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.
aura-lsprog-86
Auserlesse those difficult topics!
Posts
See all 17 »(Brought over from SE.) The following code implements a simple interface to operate on mutable* Strings in C. It is composed of two files: one for the structure definition and the available oper...
3 answers · posted 5d ago by aura-lsprog-86 · last activity 5d ago by Olin Lathrop
(Brought over from SE.) This is a Bash script that copies files stored inside disk images to a directory, using a defined structure provided via a JSON file. I've included the external programs ...
2 answers · posted 4d ago by aura-lsprog-86 · edited 3d ago by aura-lsprog-86
This question was originally asked in SE. I have a program that draws lines using line drawing algorithms. I use gcc 5.2.1 on Xubuntu 15.10 to compile it. Executing it throws a "Segment violati...
1 answer · posted 4d ago by aura-lsprog-86 · last activity 4d ago by aura-lsprog-86
I answered myself as it can be found here. Silly me! The root of the entire problem was the type used in both point.x and point.y: typedef unsigned int uint; typedef struct { uint x; ...
posted 4d ago by aura-lsprog-86 · edited 4d ago by aura-lsprog-86
I asked this in SE years ago. I'm aware of two methods in order to access all the pixels in a QImage called img. Method 1 for (int y = 0; y < img.height(); y++) { QRgb *line = (QRgb *)...
0 answers · posted 2d ago by aura-lsprog-86 · edited 2d ago by aura-lsprog-86
(Brought over from SE) The problem I'm coding a Java Swing application dealing with XML files, so I'm using JAXB in order to marshal classes into documents and unmarshal the other way around. ...
1 answer · posted 6d ago by aura-lsprog-86 · last activity 6d ago by aura-lsprog-86
(Brought over from SE.) The problem I have followed this procedure in order to run Java applications as root when needed from Eclipse (as I use Xubuntu, for instance, when using jnetpcap to cap...
1 answer · posted 5d ago by aura-lsprog-86 · edited 5d ago by aura-lsprog-86
I've finally managed to get it working without using a wrapper for java. It has to do with filesystem capabilities in Linux. To let java list and select network interfaces, as well as analyse and ...
posted 5d ago by aura-lsprog-86
(User JS1 answered as follows; source.) Unsafe loop This loop in string_find() is unsafe since it could read past the end of your buffer: while (str->data[pos] != c) ++pos; You shoul...
posted 5d ago by aura-lsprog-86 · edited 5d ago by aura-lsprog-86
I asked this question a while ago over SE. When I use a for loop with a uint64_t as a counter, it gets stuck forever, even though the condition seems to be well defined. Offending MCVE #includ...
3 answers · posted 4d ago by aura-lsprog-86 · last activity 1d ago by Lundin
The following answer was given by SE user Edward. The original source can be found here. The other answer gave some really good advice; this is intended as a complementary answer with still more...
posted 4d ago by aura-lsprog-86
SE user M Oehm provided with the following answer, as it can be found here. The condition i >= 0 is always true if i is an unsigned type. Decrementing an unsigned zero will not produce a nega...
posted 4d ago by aura-lsprog-86
SE user DU Jiaen provided the following answer, edited by Martin Zabel and found here. The expression i >= 0 is always true if i is of an unsigned integer type. The alternative and simple way...
posted 4d ago by aura-lsprog-86
I asked this question in SE a while back. TL;DR I need to emulate a timer in C that allows concurrent writes and reads, whilst preserving constant decrements at 60 Hz (not exactly, but approxima...
1 answer · posted 2d ago by aura-lsprog-86 · last activity 2d ago by aura-lsprog-86
I received this answer in SE. Sadly, the user who wrote the answer is no longer in the site. Don't use threads and synchronization primitives (semaphores, shared memory, etc) for this. In fact, ...
posted 2d ago by aura-lsprog-86
Reputation | 96 | |
Number of top-level posts | 8 | |
Number of answers | 9 | |
Sum of received votes (up minus down) | 15 | |
Number of edits made | 8 |
Earned Abilities
Statistics
Posts | ||
---|---|---|
Count | 17 | |
Questions | 8 | |
Answers | 9 | |
Articles | 0 |
Votes cast | ||
---|---|---|
Count | 3 |
Flags raised | ||
---|---|---|
Count | 0 |