Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

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 Estela‭

Type On... Excerpt Status Date
Answer A: Cast uninitialized variable to (void)
Yes, it is safe unless the variable is volatile. The term used in the C99 standard for the value of an "uninitialized" variable is indeterminate. From C99 standard: Section 6.2.4 Storage durations of objects (emphasis mine): > 5 For such an object that does not have a variable length ar...
(more)
over 1 year ago
Question Cast uninitialized variable to (void)
Is it undefined behaviour to cast an uninitialized variable to (void)? Example: ``` int main() { int x; (void)x; return 0; } ```
(more)
over 1 year ago
Answer A: Etiquette for posting comments
Proposal: > Can Include > A link to a chat room related to the question or answer. Even if tangentially. I've always found SO to be too dry. Sure, pleasantries are as helpful in a question or answer as finding them in each page of an encyclopedia. But some times you find someone with a com...
(more)
almost 3 years ago
Answer A: Do we need more specific up/down vote reasons for Software Development community?
I prefer the current way. Regarding tooltips Experience shows that tooltips can survive a lot of time being obsolete. In SO in meta they have "This answer is useful" and "This answer is not useful". But that is not really what it means in meta there. It is ok to downvote if you disagree while t...
(more)
almost 3 years ago
Question Tools for debugging coredumps
For debugging running programs I often use whatever is integrated with the IDE I am using. QtDeveloper right now, but also used Eclipse, Netbeans and others. Most of them just use gdb under the hood though. Or I use gdb directly if working through a ssh connection or in an embedded system. For de...
(more)
almost 3 years ago
Answer A: How to copy a PostgreSQL database to another machine.
On the server I dumped to a file using these commands ``` user@server:$ sudo -i -u postgres postgres@server:$ pgdump databasename > dumpfile ``` Then I copied dumpfile to my machine and executed these commands in my machine ``` estela@mymachine:$ sudo -i -u postgres postgres@mymachine:$ psq...
(more)
almost 3 years ago
Question How to copy a PostgreSQL database to another machine.
I have to debug an error which seems to only happen with some set of data present in our PostgreSQL []()database. I'd like to copy said database to my local machine so I can perform tests without affecting real production servers.
(more)
almost 3 years ago
Answer A: Is it OK to use abusive content on code?
Yes, that particular post should be marked as abusive and the code replaced by. ``` if(a==b){ print("We have a problem, a is equal to b") } ``` Assuming that indeed the code is dealing with a situation where a==b is a problem. Would need the whole question and answer to know for sure. I d...
(more)
almost 3 years ago
Answer A: How do I get the error message out of a requests exception?
The documentation for requests.RequestException > requests.exceptions > > > This module contains the set of Requests' exceptions. > from urllib3.exceptions import HTTPError as BaseHTTPError > > > class RequestException(IOError): > """There was an ambiguous exception th...
(more)
almost 3 years ago
Answer A: How to break infinite loop in CTE
I have not managed to make an answer with standard SQL. I've had to resort to using arrays. And I don't have a Microsoft SQL Server RDBMS at hand. So I've done it instead in PostgreSQL. You'll just need to use whatever equivalent array functions sql-server has. ARRAY(SELECT XX) : constructs an arra...
(more)
about 3 years ago
Question How to inhibit auto link generation?
I have a post where I mention a script named dead.sh Ok... now I have two posts like that. But that is not a website. It is a filename, and not one reachable through an URL. How can I inhibit auto link generation? I'd like to display it just like normal non-link text. If it is already possible ...
(more)
about 3 years ago
Answer A: How can I find git branches where all branch-local commits are from specific people?
Let's consider the following git graph. The initial commit is 1. The colors identify the authors of each commit. Orange has left the project. Green, Blue and Pink are still active. chat, master and tags are the branches. master is to be kept. tags is to be kept because Pink is w...
(more)
about 3 years ago
Question SQL timestamp for daylight saving day when clock goes 1 hour back.
On 25th October 2020 in Europe/Berlin clocks where set back from 03:00 AM to 02:00 AM to change from summer time (CEDT) to winter time (CET). Which means there is a 1 hour separation between 02:30 AM CEDT and 02:30 AM CET. And, more confusing, 1 hour separation between 02:30 AM Europe/Berlin (s...
(more)
about 3 years ago
Question Multiple catches with almost the same code.
I find myself often writing code like this. ```C++ try { // code } catch( FailedReadException const & ex) { file.close(); std::cerr lock(mutexFile); errorState = true; } catch( std::runtimeerror const & ex) { file.close(); std::cerr lock(mutexFile); errorState = true; } ...
(more)
about 3 years ago
Question Is it correct to run code inside a method whose object has been destroyed?
Consider an object for which a method is invoked. Beyond certain point the method no longer accesses `this` at all. No read/writes of non-static members. No invocation of non-static methods. Is it safe to destroy such object in another thread after being sure the method has gone beyond such point e...
(more)
about 3 years ago
Question Destroy std::mutex referenced but not owned by std::unique_lock?
Is it correct to destroy a mutex which is referenced but not owned by an uniquelock as in this code? ```c++ { std::uniqueptr mutex = std::makeunique(); std::uniquelock lock(mutex); lock.unlock(); mutex.reset(); } // Here lock is destroyed while holding an invalid reference to mutex ...
(more)
about 3 years ago
Question Static and thread_local initialization order
Is there any guarantee regarding initialization of static and threadlocal objects? In example, is there any guarantee about the value printed by the following program? #include static int a=3; []() int b=a; int main(void) { std::cout << b << std::endl; } For thr...
(more)
over 3 years ago
Question Generate SIGSEGV without undefined behaviour.
In order to test that coredumps are generated and that they contain useful information which can be retreived with gdb I need to generate a SIGSEGV. Or anything else which causes a coredump. The code I am using is: int p = nullptr; p = 0; Which works fine but is undefined behaviour....
(more)
over 3 years ago