« first day (3344 days earlier)      last day (666 days later) » 

12:03 AM
REFRESH! There are 8109 unanswered questions (89.3073 answered)
@P.Campbell if a forum like that existed, then you likely wouldn't get the answer you were looking for. In any case, pointing out when there is something stupid or pointless in the code, is not hostile at all. It is simply making an observation, nothing more and nothing less. Try not to take all things as personal, especially on a site such as this where code review is quite prevalent. — rv.kvetch 24 secs ago
 
 
2 hours later…
2:18 AM
-1
Q: Transpose and Paste VBA

JacksonCurrently from my sheet2, I wanted to copy the column C36-N36. However, each of these cells has one formula that is generated from the numbers within sheet2, i.e. C36 = A1+A2/2 something like this. Therefore, simply copy & paste code cannot work well when I transfer to sheet 1, as the specific li...

 
 
2 hours later…
4:24 AM
Code review is part of what I do for a living, and I am paid well. This looks like quite a decent sized project, so you're asking someone to do quite a bit of unpaid work for you. I don't think you'll get any takers here. — Dawood ibn Kareem 23 secs ago
 
Monking
 
 
3 hours later…
7:54 AM
0
Q: Converting ASCII code of a number to its Binary equivalence

Mohammadsadeq BorjiyanI want to extract the temperature value from the following string and display it as 2 separate numbers in 2 LCDs of BCD type. For example, if the temperature is 27, the number 2 in one LCD and 7 in another LCD. I wrote the following code, this returns the temperature value in two separate numbers...

0
Q: Random number generator repeats issue?

JoelSo essentially, I am trying to make a program where you enter three numbers between 1-10 and the bot will spit back a corresponding seed which matches the values of your inputs (I am bored, that's why I am doing this if you are wondering). So in the code below 'num1', 'num2', and 'num3' are the i...

 
8:20 AM
0
Q: Matching corresponding masks of objects between 2 images

Clement BrilletHere is a program that processes 2 grayscale images. Both represent the position of objects, in the form of multiple masks per image. Each mask is a shape with one color delimiting it, with 0 (or black) for the background. Each object uses the color available in order when created, so if there ar...

 
8:43 AM
It's not about information. Your code works as you want it to, so it's off-topic for this site. CodeReviewSE is where it should be asked. — matszwecja 53 secs ago
 
0
Q: Print a list of license plate numbers of all cars that went over the speed limit, as well as the average speed of each of those cars

tryingitoutI wrote a working code and was wondering if it could be shortened as I saw a lot of similaities in my loop and if statements. I hope it's possible as I want to make it a bit cleaner. I had to print a list of license plate numbers of all cars that went over the speed limit, as well as the average ...

0
Q: Using DI in C# workier with combination of

Wojciech SzabowiczI have a c# worker, in a console application, that looks something like this. Constructor (of course I added all dependencies in program.cs): public Worker (IConfiguration configuration, ILogger<Worker> logger, IServiceProvider provider) { _configuration = configuration; // get object from DI...

 
9:31 AM
Stack overflow is not a code review or debug service. You should learn to use a debugger and step through your code. Or better: learn techniques like rubber ducking — JHBonarius 22 secs ago
 
0
Q: Prints the license plate numbers of all cars that are still between the two sensors

tryingitoutI made a code that prints the license plate numbers of all cars that are still between the two sensors. The first line contains the maximum speed (in km/h) for the road that the detectors are placed on. All other lines start with the number of the detector that was passed (1 or 2), followed by th...

 
 
2 hours later…
11:17 AM
If your code works, your question is off-topic on SO, but might be a better fit for codereview.stackexchange.com. Nonetheless, the main advice was already given: don't do that, use a dict or maybe better, if you just want to index your lists, a list of lists. — Thierry Lathuille 9 secs ago
 
11:38 AM
@ThierryLathuille And this on Code Review meta actually explicitly argues against what you said. — Kelly Bundy 6 secs ago
 
 
2 hours later…
1:16 PM
Anyone get an email from Microsoft with a link to a whole new legal section?
Monking
 
@pacmaninbw no
 
0
Q: Faster Mathematical Calculation in List Comprehension

MichaelI have a cost function Cost_Func(pt,STRING) that calculates value in a specific way based on the pattern string pt and main string STRING. A mathematical expression ( y := y-11*int(STRING[i-length]))/6+ int(STRING[i])*pow(11,length), this is the main calculation ) is used, and the intuition is, i...

0
Q: Nodejs binary utility functions library interface design

Lewis FarnworthAs part of my current employment, I've been working with TCP/TLS in NodeJS for about 2 years. My colleagues and I are using a proprietary binary protocol, for communication between a proprietary hardware device and servers. Throughout my time working on this project, I wrote functions that handle...

 
Monking
 
@pacmaninbw They update their ToS every so often, but I haven't seen anything past week.
 
1:30 PM
Seems to be for the USA, but I think it is based on a settlement with the EU.
 
It only applies to USA.
I don't know if mandatory arbitration can be enforced under EU law if the company has no arbitrator in EU.
 
1:55 PM
0
Q: Simple websocket chat app, security and efficiency concerns

Jiry_XDI'm coding a simple websocket chat app. I was wondering if my code is secure and efficient. I also have a question about the way how I'm sending objects and then checking the type, is there anything better/efficient I can do? Such as making my own events? Please tell me any improvements I can do....

 
2:20 PM
0
Q: Nodejs - Javascript buffer that takes in uint64, enum and string data as input

Barney ChambersI am writing a nodejs program that adds some data into a buffer, before it is streamed. The data types are listed in the comments of the code, and there are fixed places in the buffer that these data-types will appear. Is there any way I can optimise this code to run faster, or for the buffer to ...

 
2:46 PM
0
Q: Smallest interval whose sum exceeds a threshold

OverLordGoldDragonIn a non-negative 1D array x, we wish to find the shortest slice such that x[start:end] > threshold, with constraint that start <= argmax(x) < end. Must work with floats and integers. Below is my approach, validated using a greedy search. Can it be improved in terms of speed? My approach A sort o...

 
3:12 PM
0
Q: Common interface for fixed-length and variable-length lists in C#

shjeffI am working on library project in which I am reading and writing binary files that have own file format structure. In that structure there are variable-length and fixed-length elements. My approach is to parse byte stream of such files, create corresponding objects, and then get current byte str...

 
3:38 PM
0
Q: Commented Parser Combinators in C

luser droogI've attempted to remedy the issues outlined in the answer to my previous question. I've added several hundred blank lines to better illustrate the grouping of functions and generally make thing look less dense. I've trimmed all the lines to 80 columns except for 1 83 character line in ppnarg.h w...

 
4:04 PM
0
Q: Function that get 3 word for strings, than combine them to 1 string and finally print the string in reverse

Alfa HoresIm learning C and I got a task to make 3 function. The first get 3 addresses of string, get 3 words from the user, and enter into the addresses. The second get the 3 addresses of string and combine them to a new large string. The last should get the new address and print in reverse the string. I ...

 
4:25 PM
Monking
 
4:51 PM
possible answer invalidation by Andre Adrian on question by Andre Adrian: codereview.stackexchange.com/posts/277609/revisions
possible answer invalidation by Andre Adrian on question by Andre Adrian: codereview.stackexchange.com/posts/277609/revisions
 
5:21 PM
0
Q: Trying to deal with duplicate entries on the same day in a calendar

Martin MuellerSome Background I’m at sorry not being able to handle javascript but maybe some kind soul can help me out of my predicament? I need to upgrade my website and I don’t manage to transfer a custom written js-function (originally based on https://github.com/Paul-DS/bootstrap-year-calendar) from the f...

 
5:35 PM
@Duga Rolled back and commented.
 
5:47 PM
0
Q: Program for monitoring file in Combined Log Format

Noctis SkytowerAfter encountering a suggestion that monitoring a log file for a webserver could allow for the implementation of automatically analyzing and handling of certain events (that might require altering firewall rules etc.), the following example application was written as a simple beginning point for ...

0
Q: Is this PDO query okay to use in PHP OOP?

kviktor1230Im new in PHP OOP so if anything is wrong I apologize. If I want to do a simple SQL query, do you think this code is good? Is it safe to use? Or am i doing something wrong? class DBconnection { private $dbusername = "testtest"; private $dbpassword = "testtest"; protected $conn; pu...

 
possible answer invalidation by Michael on question by Michael: codereview.stackexchange.com/posts/277761/revisions
If your code works but you are seeking advice on how to improve it, then you should probably post your question on Code Review, but be sure to read their rules of engagement first. — Jonathan Leffler 51 secs ago
 
 
2 hours later…
7:40 PM
I’m voting to close this question because this belongs in codereview stackexchange. — julealgon 35 secs ago
 
8:00 PM
Welcome to Stack Overflow! If the code works and you're looking for advice on improving it, Code Review is the appropriate place. But see codereview.meta.stackexchange.com/questions/5777/… first. — Barmar 7 secs ago
 
 
1 hour later…
9:13 PM
0
Q: Rewriting multi-condition logic

DrezioI have this function on my code, this way i validate if a new movie session can be inserted, it works, but I wanted to find a better way to do it. public static function validateSession($newSession) { $sessions = Sessions::get(); foreach($sessions as $session){ //Validates if the...

 
10:05 PM
0
Q: Best way validate object in c# with "Manager" class

Heitor GiacominiIn my project I have an class named Precatorio public class Precatorio : Pesquisa.Pesquisa { public int FornecedorId { get; set; } public Fornecedor Fornecedor { get; set; } public int FundoId { get; set; } public Fundo Fundo { get; set; } public int DestinacaoRecursoId { get...

 
10:27 PM
I start my BSCS Aug 29
 
0
Q: Unit testing brevity when capturing a variable and having its innerHTML changed (via state)

user8758206Take this basic component using state: export const InputChild = () => { const [count, setCount] = useState(0); const updateCount = () => setCount((prev) => prev + 1); return ( <> <h1>Count: </h1> <h2>{count}</h2> <button onClick={updateCount}>Click</button> </> ...

 
@DerKommissar Good luck, I hope you don't get too bored.
 
First four classes include Discrete Math, Intro to Scripting, and Intro to Database Systems
 
You are already a proficient contributor.
 
As well as a History class
 
10:33 PM
History is good, computer or general history?
 
"Perspectives in History"
 
Intro to Database systems, hmm.
General history. Good, I think you might like that.
 

« first day (3344 days earlier)      last day (666 days later) »