« first day (2763 days earlier)      last day (59 days later) » 

12:00 AM
RELOAD! There are 7133 unanswered questions (89.7271% answered)
12:27 AM
@CaptainObvious Where is the code to be reviewed?
Q: Going in a direction, relative to the keys pressed and horizontal camera angle?

user random numbersif you're confused by some parts here, im just treating booleans as integers, 0 being false and 1 being true, but im wondering if theres a way to get rid of (X == 1 && Z == -1)*(float)M_PI, because for some reason without it everything else except for S and D at the same time would go the right d...

1:16 AM
This question can't be passed on to the Code Review Community because it is failing 2 of the 10 test cases. I suggest that it be reopened here. The version on Code Review is on it's way to being closed as off-topic because it is failing 2 test cases and the time limit is not exceeded. — pacmaninbw 36 secs ago
@CaptainObvious This user needs help, the code is failing 2 of 10 test cases so we can't review it here and it was closed on SO. Can someone help get it reopened on SO?
2:04 AM
2 hours later…
3:47 AM
@RMunroe @Peilonrayz This one is for you!!!
4:19 AM
This question is too broad for StackOverflow. If the code works, this would be better asked on Code Review. — Stephen C 40 secs ago
4:53 AM
5:32 AM
Q: Simple chat server in Python

JeremiahDixonI'm new to both Python and socket programming and figured setting up a simple chat server would be good practice. In addition to general critiques of the code, I have specific questions: What are the best practices for network programming in Python? Is the object-oriented style I went with advis...

1 hour later…
6:46 AM
Q: Can I use Regular Expressions to check for valid inputs in this Calculator that finds the area under a curve?

therealjohndoe17The program is meant to collect from the user: The function under which to calculate the area The left and right boundaries of the region The amount and position of rectangles to use to approximate the area Then run the calculation. Finally, the user is given the option to do another calculatio...

7:11 AM
Q: two ways of creating a TcpListener

Serve LaurijssenI've got some C# code here with two ways on creating a TCP server. The first uses async directly and the second has async built on top of the Listen. Is there a functional difference between the 2? 1: _server = new TcpListener(ipAddress, port); public async Task StartAsync() { _server.Start(...

7:36 AM
Q: Chess move simulator

Ford PerfectI was asked to write chess simulation of pieces as a take home interview question and was given this spec: https://pastebin.com/VbgWA5SK This is what I came up with. ChessGenerator.java import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Map; import java.u...

8:20 AM
Anyway, OP, you might also try codereview.stackexchange.com. — Karl Knechtel 47 secs ago
8:51 AM
Q: Python console pong game

Newton KaranuI am writing a pong game in python that uses voice input to move the paddles. I have implemented multithreading so that the google speech recognition module can always run in a separate thread from the main game. However, it doesn't seem to be running on the separate thread and I have no way of f...

9:11 AM
Be aware if you have working code and are looking for general improvements, this seem more appropriate for CodeReview – be sure to check their question guide first, though. — MisterMiyagi 21 secs ago
9:40 AM
Q: Seat Reservation 2D Array Applied to Methods

Jonathan BatemanI have completed my lab assignment for class, but I'm still wondering if there's any ways I could better optimize my code. specifically my methods isSeatAvailable and reserveSeat. Here is my problem: Write a program that displays, examines and manipulates a two dimensional array representing plan...

10:22 AM
If you have working code, and you just want to refactor it, then you should check whether your question would be better suited at Code Review StackExchange. It's not the kind of question we answer here - we tend to deal with more specific, tangible programming problems. — ADyson 28 secs ago
Q: Python: Fill a pandas dataframe (of predetermined size) with results from a similar dataframe (of size less than or equivalent to the original)

fffrostI'd like some feedback/suggestions on how to improve the following.. Specifically I want to know if what I'm doing is reliable and fast, or if there is a better way to accomplish this. The problem: I have some dataset containing counts of sales made at different times throughout the day, across d...

1 hour later…
11:51 AM
The „question“ in this form does not fit StackOverflow. You don’t ask a specific question about one problem of your code but you ask for codereview, if you ask a question here you should already be able to narrow down the problem to a specific part and explain what exact problem you have there, what the expected result is and what actually happens. — t.niese 59 secs ago
12:25 PM
possible answer invalidation by Felixoid on question by Felixoid: codereview.stackexchange.com/posts/252685/revisions
Q: Using array methods inside the method of an objects

Nader.BhrThis is a piece of code from a github repo I am trying to understand const quotient = { numbers: [1, 2, 3, 4, 5, 6, 7], results: [ ], divideFn: function (divisor) { return this.numbers.map(function (divident) { if (divident % divisor === 0) { return this.results.push(divi...

12:50 PM
possible answer invalidation by Felixoid on question by Felixoid: codereview.stackexchange.com/posts/252685/revisions
1:15 PM
possible answer invalidation by Marc on question by Jonathan Bateman: codereview.stackexchange.com/posts/252701/revisions
@Duga Rolled back.
Q: Using postgres SQL in Python

ProtractorNewbieI have been trying to improve python combined with Postgres. At this moment im only sending two values to database which are etc: link = "https://www.mathem.se/varor/vegetarisk-fars/vegofars-fairtrade-1000g-anamma" store = "mathem" and I do have few options that I want to be able to do with Pos...

@Duga Rolled back
1:37 PM
Working solutions that need refactoring might be a better fit for Code Review. — El_Vanja 59 secs ago
1:49 PM
Q: Shuffle a deck of cards and draw 2

AnnoyinCI recently came across a coding challenge on some sort of technological basket weaving forum, where you had to pick 2 cards from a shuffled deck. I believe the challenge can be interpreted 2 ways: Generate random deck, pick first 2 Generate sequential (or any) deck, pick 2 random cards I went f...

Hi! Welcome to Stack Overflow! Your question would be better received at SO's sister site: codereview.stackexchange.com — Alex Shirley 1 min ago
2:08 PM
@ADyson It is working code. I didn't know about Code Review, thanks. — Alex P 37 secs ago
possible answer invalidation by IEatBagels on question by Jonathan Bateman: codereview.stackexchange.com/posts/252701/revisions
2:28 PM
If anyone is curious, my acoustic is here: pbs.twimg.com/media/EnwCDqSXYAAzKz4?format=jpg&name=large
2:57 PM
Welcome to Stack Overflow. Congratulations on your first post. SO is for asking questions about: a specific programming problem, a software algorithm, or software tool commonly used by programmers. It should be a practical, answerable problem that is unique to software development. Your question may be better suited to another Stack Exchange site such as Code Review. — DaveL17 39 secs ago
3:28 PM
Q: Segment tree and queries

piyush shendeI studied segment tree recently and I made this code of segment tree and its queries. Is my code correct in terms of time complexity? class segmentTree{ private: vector<int> mini; vector<int> tree; vector<int> maxi; int n; Here in the constructor I passed the dynamic array. publi...

3:45 PM
Thank you @Steven, I didn't knew Code Review, will move it there — JPabloFuenzalida 18 secs ago
3:58 PM
@DerKommissar steel strings and a lefty setup? nice
not sure about that "Thermo Aged" sticker
it looks really nice, I must say :)
4:34 PM
For code review questions, please ask on Code Reviewtrincot 49 secs ago
5:08 PM
Q: C++ multi-threaded determination of curling numbers in vectors

StevenCellistfor a thesis I am creating a program that constructs curling sequences. The curling number of a sequence is defined as 'the largest frequency of any period at the end of the sequence'. (For example, 11232323 has curling number 3, because 23 is repeated three times) Currently, I am mostly interest...

5:36 PM
Just learned that I can enable Linux for Windows and run CentOS8.1 or Ubuntu on my new Dell Laptop running Windows 10. Yeehaw!!!!
6:22 PM
Q: How to get the indexes of smallest value per row in a DF, as column index and not column name?

azroI'd like, from a DataFrame, to retrieve a Series which contains the index of the minimal value per row (so axis=1). From the documentation it seems idxmin may be useful Let' take import pandas as pd import numpy as np df = pd.DataFrame({ 'col1': [0, 10, 2, 30, 4], 'col2': [2, 3, 4, 5, 6...

6:47 PM
Q: Noob's First Ever Python Program 😬

RoadBadgerI am new to Python but I aspire to become a 'proper' Python coder, (maybe even one day help the noobs on CodeReview :). Therefore I want to get into good habits early, and would really appreciate some feedback. Notes: The code deals cards for a game. The game rules aren't important here, just kn...

1 hour later…
8:02 PM
Would someone else try to figure out how to communicate with the author of this question, obviously I'm not doing so well.
8:22 PM
@pacmaninbw let's see whether my attempt works...
Q: I am trying to get pandas to populate a cell using data from another cell in the same row and a for loop

dooasssimport pandas as pd import csv from datetime import datetime import random pf = pd.read_csv(path, delimiter=',') # for tests with original file df = pd.read_csv('new_log.csv', delimiter=',') for index, row in df.iterrows(): # iterate through rows in dataframe i = random.randint(0, 9) # sel...

9:14 PM
This is not on topic for this forum. Try: codereview.stackexchange.com — Ted Klein Bergman 27 secs ago
9:41 PM
Q: Starting with asynchronous JS and promises

MinskyI've learn to code almost alone, so I really need some ideas/advice, as it started to get really difficult to advance. Because this is mostly server side, I can't provide a running snippet, but yet it's a short snippet. Code When I press a UI button, it fetches a resource, and this should create ...

10:16 PM
Nevermind, but I did. Haven't heard of Code Review, all new to this. Will have a look there. Thanks. — timson 33 secs ago
10:31 PM
Q: Struct Serialization using Unsafe Field

FatalSleepI want to use structs as a container for data packets for asynchronous networking in C#. Found out that you can create a union style struct without the need to mark the struct itself as unsafe--instead marking the field as unsafe. Example: [StructLayout(LayoutKind.Explicit, CharSet = CharSet.Ansi...

11:16 PM
@Vogel612 You can lead a horse to water, but you can't make them drink.
Q: An arithmetic_mean Function For Various Type Arbitrary Nested Iterable Implementation in C++

JimmyHuThis is a follow-up question for A recursive_count Function For Various Type Arbitrary Nested Iterable Implementation in C++ and A Summation Function For Boost.MultiArray in C++. I am trying to implement an arithmetic_mean template function for calculating the arithmetic mean value of various typ...


« first day (2763 days earlier)      last day (59 days later) »