« first day (4182 days earlier)      last day (52 days later) » 

00:00
possible answer invalidation by Nickotine on question by Nickotine: codereview.stackexchange.com/posts/294082/revisions
@Duga: Rolled back edit w/ comment
possible answer invalidation by Nickotine on question by Nickotine: codereview.stackexchange.com/posts/294082/revisions
possible answer invalidation by Nickotine on question by Nickotine: codereview.stackexchange.com/posts/294082/revisions
possible answer invalidation by Nickotine on question by Nickotine: codereview.stackexchange.com/posts/294082/revisions
REFRESH! There are 5573 unanswered questions (92.8172 answered)
00:25
0
Q: bash script which does error handling on unset variables

NickotineWe have a script at work which fails intermittently. Thes variables are chained together with && by a previous so no errors are given on what went wrong. Devops are complaining about this lack of error handling as they don't know where things are going wrong so they asked us to sort it. I came up...

It is probably asking too much of most people's imaginations to ask us to imagine how the code would work on imaginary input which you have not provided any samples of. If there are more than a couple inputs required, this is probably more of an out-of-scope "code review" question than a specific, narrowly bounded programming question. — Jon Spring 37 secs ago
If your code is working, ignore ChatGPT (useless) and try codereview.stackexchange.com. You should also provide some example input data and the expected output. — jared_mamrot 12 secs ago
 
3 hours later…
03:02
0
Q: Game scenes with std::variant, std::tuple, and pointers

CrisPlusPlusRecently I learned the basics of std::variant and its associated utility function std::visit. I thought it would be a good idea to put this knowledge to practice by writing a short program that runs some game with several scenes in it. Below is some code that compiles with clang++ test.cpp -std=c...

 
3 hours later…
05:39
0
Q: C++ WebServer: Part-1

Loki AstariI think I made a mistake trying to start from the simplest version and working forward. This time I will present the final version, get all the fixes from here and incorperat them into the code, then I can reverse engineer the steps to get there. Notes: I am not looking at the HTTP part (I will ...

0
Q: C++ WebServer: Part-2

Loki AstariI think I made a mistake trying to start from the simplest version and working forward. This time I will present the final version, get all the fixes from here and incorperat them into the code, then I can reverse engineer the steps to get there. The Parts of the server are: NisseServer: EventHa...

06:01
0
Q: C++ WebServer: Part-3

Loki AstariI think I made a mistake trying to start from the simplest version and working forward. This time I will present the final version, get all the fixes from here and incorperat them into the code, then I can reverse engineer the steps to get there. The Parts of the server are: NisseServer: Part-5 ...

0
Q: C++ WebServer: Part-4

Loki AstariI think I made a mistake trying to start from the simplest version and working forward. This time I will present the final version, get all the fixes from here and incorperat them into the code, then I can reverse engineer the steps to get there. The Parts of the server are: NisseServer: Part-5 ...

0
Q: C++ WebServer: Part-5

Loki AstariI think I made a mistake trying to start from the simplest version and working forward. This time I will present the final version, get all the fixes from here and incorperat them into the code, then I can reverse engineer the steps to get there. The Parts of the server are: NisseServer: Part-5 ...

 
2 hours later…
07:53
0
Q: Wraps C Main Function with Rust FFI

BestiebootsThis code transparently wraps a C program. The C code is being compiled and linked to in build.rs with the cmake crate. I am curious if there is a cleaner, more idiomatic way of implementing the interface between languages than done below. Alternatively, if there are core Rust concepts I have mis...

 
3 hours later…
11:15
0
Q: ConverterService: type conversion multitool

SergeyI got sick and tired of type-related errors and decided to write a type conversion service It's not particularly pretty what with those casts and suppressions, but it seems to do what it was designed for A few things to note: I didn't write javadocs: those are to be written in a non-English lang...

12:00
-1
Q: Error handling in shell for variables

NickotineI'm fixing a script which has no error handling for variables. Example snippet # required for other stuff which goes on in the script this is just a snippet set -euo pipefail # split on new line, don't have to worry about word splitting caused by white space # and so don't need to quite everythi...

 
3 hours later…
14:59
0
Q: Mathematical modelling of disease networks

user_436830I am trying to simulate a disease network in R. Basically, I have a network graph of 100 people. Connections represent friendships (i.e. neighbors). In this graph, all people start of healthy except 5 people. From here, neighbors have a certain probability of infecting their neighbors. Once someo...

15:46
At the very least, try to write an implementation, and ask specific questions about a problem you encounter. Feedback on a working implementation is available from codereview.stackexchange.com. — chepner 5 secs ago
16:26
This error could be due to master branch corruption; you could try downloading a different branch, like this: git clone ssh://gerrit.codereview.com:29418/repo/abc --branch another-branch and if download will be successful - you can investigate what happens with the master. — nmishin 56 secs ago
17:05
possible answer invalidation by Nickotine on question by Nickotine: codereview.stackexchange.com/posts/294082/revisions
possible answer invalidation by Nickotine on question by Nickotine: codereview.stackexchange.com/posts/294082/revisions
Locked.
possible answer invalidation by Nickotine on question by Nickotine: codereview.stackexchange.com/posts/294082/revisions
@Mast Why? The question is off-topic
17:20
possible answer invalidation by Nickotine on question by Nickotine: codereview.stackexchange.com/posts/294082/revisions
@Peilonrayz: Go ahead and delete my comment. I can't since the post is locked.
@toolic Done
possible answer invalidation by Nickotine on question by Nickotine: codereview.stackexchange.com/posts/294082/revisions
@Peilonrayz Do you want to delete the current answer?
Have you seen the deleted comments on the answer?
Unless you want to destroy the answer, the content dispute is a valid reason for locking it after repeated misuse from the author of the question.
What does deleting the answer have to do with things?
17:33
Monking
0
Q: Parsing dictionary list from malformed HTTP response in Vim raw channel callback

S0AndS0Questions Are there edge-cases that I've missed? Do HTTP response header values ever contain JSON-like data? Any style pointers related to code readability? Are there other/better Vim (versions 8 or higher) builtins for what I'm attempting to do? Story time Currently I'm working on integrating...

17:54
Monking
0
Q: Restricting users to submit only one expense per day

Nazareth AlvaradoI'm looking for some guidance. I have created an Expense Tracking App, where my custom object is called Expense__c. It has the Submission_Date_c field, which is a Date/time field, and the Status_c picklist field. I wrote this logic to avoid users sending more than one Expense per day, but I'm ne...


« first day (4182 days earlier)      last day (52 days later) »