« first day (3143 days earlier)      last day (877 days later) » 

12:00 AM
REFRESH! There are 7969 unanswered questions (89.2363 answered)
 
12:11 AM
0
Q: Calculate a time weighted average of a feature

JossyI'm trying to calculate a time weighted average of a feature (feat) based on previous rows by date for a given class. Below is a sample output: +------------+-------+------+---------------------+ | date | class | feat | time_weight_av_feat | +------------+-------+------+--------------------...

 
 
3 hours later…
3:33 AM
0
Q: How to not clutter intended casts with static_cast<>?

DragonGamerhave the following struct with one method: struct CaveData { int tunnel_radius; int min_cave_edge_points; int max_cave_edge_points; int min_surface_points; int max_surface_points; int min_random_points; int max_random_points; int chunk_seem_connector_cave_range...

 
 
3 hours later…
6:28 AM
0
Q: Validate the user if the feedback for the book already exists or not using django rest framework

Farooque AhmedI have posted the same question on Codeproject kindly review it. https://www.codeproject.com/Questions/5319756/Validate-the-user-if-the-review-for-the-book-alrea class ReviewsSerializer(serializers.ModelSerializer): class Meta: fields = ('id', 'user', 'text', 'created_at','book','rati...

 
 
2 hours later…
8:33 AM
You've posted a question that includes an answer that you believe is correct. I suggest you remove the the working code, which you could post as answer to your question (which is done fairly often). If you are asking how to improve your working code you are in the wrong place. That's the purpose of SO's sister-site Code Review. — Cary Swoveland 55 secs ago
 
9:16 AM
possible answer invalidation by mrkgoh on question by mrkgoh: codereview.stackexchange.com/posts/270733/revisions
 
0
Q: Improving performance of 'Prioritized left shuffle algorithm'

ndsvwI wrote a prioritized left shuffle algorithm (the code is copied from my open source C# project Fluent Random Picker). That means: You've got some values and each of them has a priority (a number). The higher the priority is, the higher are the chances of the value being far on the left after the...

 
9:36 AM
I think this belongs to codereview.stackexchange.com And in any case it lacks detail and clarity that will prevent from answering it anyway. — buran 30 secs ago
 
10:13 AM
0
Q: Median in the list of coprimes

Levon AvetisyanGiven an integer n, find the median of the list of all integers from 1 to n − 1 that are coprime with n. Recall that integers a and b are called coprime if their greatest common divisor is 1. The median of a list L is defined to be the |L| 2 -th element of L if |L| is even, and the |L|+1 2 -th el...

 
10:38 AM
0
Q: Python (TensorFlow) : What can I do to increase the accuracy of this linear regression model

William KayIm fairly new to tensorflow and following a tutorial to make a linear regression model based on a CSV of titanic survivors. Once I had finnished looking through and checking the "correct" version I realised mine only reaches ~0.76 accuracy. Question: What can I do to improve the accuracy of this ...

 
11:09 AM
It's better if you asked this question here: codereview.stackexchange.comMirek Pluta 33 secs ago
 
11:53 AM
0
Q: How to change a function in python for better

RoseI am learning python and i have made a function(get ltxt from a .nfo file) to improve this block of code (i have many equal): # Book Author _author = ["Author:", "Author.."] logger_nfo.info('Searching Author book...') with open(nfofile, "r+", encoding='utf-8') as ...

 
12:44 PM
0
Q: How to properly use a function and it's syntax in python?

AvalancheI am pretty new to Python and programming in general, since I go to a programming school I am learning a lot of things by the book, which personally it doesn't suit me and I am falling behind everyone. Currently I am trying to change that and show that I am capable of doing something with my "kno...

 
 
1 hour later…
1:59 PM
0
Q: Search Engine in PHP having new architecture

AmitI have invented and implemented a new search engine architecture. This search engine has been developed mainly for English Alphabet. This search engine is based on the fact that no letter in English Alphabet has more than 30,000 words starting with it. This search engine works on text/html files ...

 
2:24 PM
0
Q: Could Someone criticize this implementation and explain the reason behind it?

Salem ShehabeddinI am preparing for a coding interview and I have to solve such examples. In this question I have to criticize this implementation and provide a better solution. Here wen want to store different kind of objects using generic storage. We have three classes: 1)Abstract Class 2)Interface 3)Novel clas...

 
Monking
 
 
1 hour later…
3:39 PM
0
Q: Event Dispatching System

ManuBelow you can see my implementation of a simple event dispatcher. I removed the includes from the files to get a better readability. I would like to get some feedback or improvement tips regarding the design and maybe an idea how to get rid of the static_cast. Thank you very much. Classes Event.h...

 
 
1 hour later…
4:40 PM
question of optimizing running code is better asked at Code ReviewJens 34 secs ago
 
4:55 PM
This question probably belongs to codereviewCid 46 secs ago
 
 
2 hours later…
6:41 PM
Some code review: consider refactoring GetNeighbors8 into two nested loops (with variables xOffset and yOffset looping from -1 to +1 inclusive, skipping the case when they are both zero) — Flydog57 31 secs ago
 
 
1 hour later…
7:58 PM
Also just from a code review perspective, why m_? Normally I see l_ (local) or v_ (variable). Also it's worth formatting code (and I don't mean pressing the 'format' button in your IDE). — William Robertson just now
 
 
2 hours later…
9:29 PM
0
Q: 2021 Advent of Code, Day 1 Part 2: Keeping error-handling simple while chaining iterators with Rust

Charles DuffyThis question is with respect to Day 1, Part 2 of the 2021 Advent Of Code challenge, which requires comparing values from a rolling window taken from integers streamed as input. This answer is correct, insofar as it emits the intended output, but I'm unclear as to the quality of the code. (This c...

 
 
1 hour later…
10:33 PM
I’m voting to close this question because as stated in the post, it's not a question. If you're looking for general review and critique of a working piece of code, you could asking on Code Review SE, but be sure to check their question guidelines before posting. — Brian just now
 
 
1 hour later…
11:59 PM
0
Q: Tree for PowerShell

Santiago SquarzonThis Module started as a fun coding exercise designed to emulate the tree command and also calculate the size of each folder based of the files size of that folder (non-recursive). Now, completed and tested on Windows and Linux, I thought it would be nice to have it reviewed to see where it could...

 

« first day (3143 days earlier)      last day (877 days later) »