« first day (2870 days earlier)      last day (1445 days later) » 

00:00
RELOAD! There are 7406 unanswered questions (89.5493% answered)
00:53
@CaptainObvious yay, OP deletes question after getting an answer -_-
For some reason your reply reminded me of the "Grunt Birthday Party Skull" in Halo... Head shotting grunts made confetti blast out, and a "yay!" sound be played.
 
5 hours later…
06:29
The code you extracted doesn't seem to contain the problem in the full code / the problem you are describing. But here is the fixed version: play.rust-lang.org/… You may wish to post it on Code Review stackexchange because it could be a lot more idiomatic. — Prime_Aqasix 18 secs ago
06:52
Thanks @Prime_Aqasix I will give a try to code review, however I still believe my problem is due to the scope issue. — Antonin GAVREL 46 secs ago
 
2 hours later…
08:55
possible answer invalidation by Toby Speight on question by Jack: codereview.stackexchange.com/posts/257068/revisions
 
2 hours later…
10:56
0
Q: Encrypted text - C# SHA256, implementation

RemarkLimaI have a C# application which needs to encrypt string and save the key as a hash. The key is saved as a hash to check the right key has been input before trying to decrypt the message. First, I have these method to generate the hash string - hopefully "off the shelf" and ready to go publi...

 
1 hour later…
12:09
Looks like Code Review would be the better site for your question... — Scheff 9 secs ago
0
Q: Add an edge to a directed acyclic graph such that it stay acyclic

H. SalehMy code doesn't actually do that per se, but rather it find every possible edge that can be added without creating a cycle. The return value of the function FindNodesToConnect is a map, where the key is a node and the value is a list of all the nodes we can direct an edge to from the key without ...

12:38
0
Q: Login page using MVC [No Framework involved]

PankajAbout I am using PHP 7.4. There is no framework involved in below code. All functions used are inbuilt. Purpose of writing this code is to understand the MVC patters in depth. Below example contains code for Login page only. Please let me know if you need further clarifications about the below co...

13:08
Although I do that tags shouldn't be abused, I don't agree to close this question and refer the questioner to Code Review. Instead, you might simply have edited the question and suggest a different tag list and/or answer it with some suggestions to prevent the redundant AD queries. — iRon 34 secs ago
Monking
13:55
0
Q: Stop Watch class in C++ using chrono

Aryan ParekhI have written a class that acts like a stopwatch using C++11's std::chrono library. I wrote this because I find it difficult to benchmark my cpp code properly, this class just combines chrono's functionality and gives it a nice interface I have two classes, stopwatch.h and lapwatch.h. The second...

14:20
0
Q: re-implementation of std::vector

NethiusI've implemented a simple vector-like structure. I would appreciate all criticism relevant to code. I have also published code under github. Here is the link to source code + unit test for most functions: https://github.com/Nethius/mystd const double_t expansion_ratio = 1.5; namespace mystd { ...

 
1 hour later…
15:35
By the way, there is a whole StackExchange web site devoted to code reviews, where this question might be better received: codereview.stackexchange.comjoanis 56 secs ago
 
2 hours later…
17:19
0
Q: Recursive function to find missing entries

ÁlvaroI am trying make this code run a bit more functional. I want to filter a set of data, and based on the ReportsTo string I am recursively finding the line managers but only if the Rank is not less than 3. This works, but if I try to run it with a map, I can not flatten out the results from the fin...

17:34
IDK if anyone here uses WSL. However I noticed my programs, like nox, were taking ages to run. Turns out access to /mnt/c/ is super slow.
17:45
0
Q: Idiomatic Go Lexer

Brent PappasI have written some Go code that produces the output I would like, but I am unsure if the code itself "smells" good. I would like to know if it contains any anti-patterns, exemplifies bad practices, or lacks the proper idioms one would expect to see in a program written in Golang. Details of the ...

0
Q: Looking for more simple one liner or lamda for environment variable check with default value in csharp

GenadyLooking for more simple one liner for environment variable check with default value in csharp public static string GetEnvironmentVariable1(string envName, string defaultValue) { var ret = defaultValue; var env = Environment.GetEnvironmentVariable(envName); if(!string.IsNullOrEmpty(env)) {...

18:36
0
Q: Slow render of a graph path using python matplotlib animation

RichardI am computing shortest paths of graphs using Python Networkx and Matplotlib to animating paths. I'm focused on animating path for the route inspection problem in particular here. My goal is to smoothly render such animation to visually verify the path and ultimately save the animation in mp4 via...

 
2 hours later…
20:19
-1
Q: What is wrong with the code below for Parenting Partnering Returns - Code Jam 2020 Qualification Round?

hunterexI am trying to solve a problem called Parenting Partering Returns in Google Code Jam. You can see the details here I have written a solution in C# & it works with the samples. You can refer to my code in here However, the Code Jam shows Wrong Answer for the Test Set 1. I have investigated other w...

20:44
0
Q: Machine Learning Program

Ultimate CreeperI've written a program that finds the difference between data and gives output. Here's the code: import json import numpy as np print("This is a basic machine learning thing.") baseData = {"collecting":True,"x":[],"y":[]} while baseData["collecting"]: baseData["x"].append(float(input("X:"))) ...

0
Q: Playing with unsafe code

Antonin GAVRELFirst of all, I am here to explore unsafe features of Rust, if you are the kind of guy who likes "safe" Rust and will start nagging about using safe features of Rust I will still happily read your comment and learn about the safe alternatives. That said, I am looking to enhance my knowledge about...

Or maybe it's a linker thing: codereview.chromium.org/1816333002 ?? — Adrian Mole 1 min ago
21:35
0
Q: n-th Fibonacci number with memoization

user4035I am learning Rust and decided to create a simple program to calculate n-th Fibonacci number. It uses a vector for memoization. The program works, but what would you suggest to improve here? Maybe store memo inside fib function as a static variable? I tried to use u32 everywhere, but 48-th fib nu...

 
1 hour later…
22:54
Please read How to Ask. You seem to be asking for 2 things: You want us to write the calculate() method for you, and you want us to restructure your code. The former is not something we can do for you, you need to do your own homework. The latter would be better on code review. — Charlie Armstrong just now
23:43
0
Q: Simple 1D Chess Console Game - Looking for improvements (Python)

HydrazerI just finished making a simple 1D Chess Game and I was wondering if I could make any improvements to my code to make it run faster or to make it look cleaner I included descriptions of what each file does on the README section of the github repo and I also included comments so as to inform you o...


« first day (2870 days earlier)      last day (1445 days later) »