« first day (2931 days earlier)      last day (71 days later) » 

12:02 AM
RELOAD! There are 7569 unanswered questions (89.4435% answered)
 
 
1 hour later…
2:20 AM
 
0
Q: Python script to parse XML file into Json

Patricio CaboHow are you doing? I have to make a script to parse an xml input file to a json file. I tried to do my best, but it will be nice if you could check it and help me to improve it. The idea is that I don't have use objectify of libraries that converts files directly. import json import xml.dom.minid...

 
 
3 hours later…
6:28 AM
0
Q: How to easily call functions in order with Kotlin?

user242161If the conditions are right, I'll call the next function. I want to make it. The source doesn't look good, so I want to change it efficiently. Do you have a good idea? example) fun A() { if (network not available) { dialog...show() retry -> A() cancel -> ... } els...

 
7:16 AM
0
Q: Why isn't working this while with char in C?

UriI want to make a program that writing a character line (for exemple: 2 a * sin) saves each character in a stack differencing if is a number, letter. I've tried: #include<stdio.h> #include <stdlib.h> #include<math.h> #include<ctype.h> int main () { char cadena[20]; printf ("Write line of...

 
7:28 AM
This question might be better suited for CodeReview. — Turing85 49 secs ago
 
7:40 AM
0
Q: Loss function in python is a bit cumbersome

El_LocoThis is my first post here. I seek to improve my way of writing Python and C++ code. I hope I can also contribute to others when I have increased my skill. Here is a python function I have for a neural network I have implemented. I feel it become a bit cumbersome. The intention is to weight posit...

 
possible answer invalidation by sapristi12 on question by sapristi12: codereview.stackexchange.com/posts/260428/revisions
possible answer invalidation by sapristi12 on question by sapristi12: codereview.stackexchange.com/posts/260428/revisions
 
monking
@Duga Meta rules say you can't AI when your post is closed.
 
8:02 AM
This question is best discussed on codereview.stackexchange.comAbsinthe 36 secs ago
 
0
Q: Why my code is not working

jiten mandweI had written a code for testing the winner of Tic-Tac-Toe game, if game has drawn or it is invalid. My code is passing all the testcases that came in my mind but online judge is not accepting it . Can you please point out the mistake? #include <bits/stdc++.h> using namespace std; int main() { ...

 
8:18 AM
I didn't know CodeReview, next time I'll ask there — Diego Marcolungo 15 secs ago
 
8:28 AM
0
Q: Execute .NET Core 3.1 background worker tasks simultaneously

leroyI have following code: public class Worker : BackgroundService { public Worker() { } protected async override Task ExecuteAsync(CancellationToken stoppingToken) { while (!stoppingToken.IsCancellationRequested) { var task1 = Task.Run(() => ...

 
8:53 AM
1
Q: Load filter from localStorage performance

Simone RossainiI've created a way to load filters for this plugin (link). System: On load page, see if exist localStorage with specific name connected to table: If doesn't exist, forEach all dropdowns from the page that contain filter and save it into localStorage for the next load. If exist, check if lenght ...

1
Q: Add rows to a table in rust (code may not be safe?)

EzraI'm trying to implement a sql-like in-memory database. Here is my code: #[derive(Debug)] enum DataPoint { Int(i32), Float(f64), Text(String), Null, } #[derive(Debug)] struct Table { name: String, rows: Vec<Vec<DataPoint>>, cols: Vec<(String, DataPoint)>, } impl Table...

 
9:15 AM
I’m voting to close this question because it is more suitable for: codereview.stackexchange.comNetwave 51 secs ago
 
0
Q: Simple Win32 API Calculator in C

rieger60I've been learning C as my first language and recently I decided to learn how to create Win32 apps written in C. I Quickly realized, though, that my biggest challenge wasn't writing the Win32 app itself, but more how to implement logic and design into the program. I would therefore really appreci...

 
9:55 AM
(An entirely similar question came up on codereview@SE.) Please provide more context - e.g., if the square roots are used for comparison with other values, only, consider comparing the original value to the square of the other. — greybeard 31 secs ago
 
10:05 AM
0
Q: Reading big file in parallel C#

Noisy88I need to implement parallel reading of a file (it might be very big e.g. 50 or 100 GB) with C#: user puts a filename and a size of the block algorithm must use as little RAM as possible (it will be able to process a large file. Bigger than RAM capacity.) read a file in parallel and calculate SH...

 
"One problem we occasionally see is that developers will new up an object of a class that really should have been injected as an interface." Might the source of the problem be a lack of training, mentoring, and missing code reviews? — Steven 31 secs ago
Post this at Code ReviewJens 31 secs ago
 
10:29 AM
0
Q: How to get Eclipse and IntelliJ working together (changes in source directly transferred)

K Schubertin another forum there this theme is already started, but I am not allowed to ask or post something... There is written: Eclipse and IntelliJ can work together, because they store their project data and configuration in different files: Eclipse stores its files in .project, .classpath, .settings ...

 
10:49 AM
well, you are trying to get all possible cominations. which most likely is a huge amount. so expect it to be slow. but maybe you could share that code at code review and get help in increasing its performance. — Franz Gleichmann 35 secs ago
 
0
Q: My Blackjack Game in Python

darrancebehI am a beginner programmer ( just recently picked it up ). I just completed my first ever project, that is creating a Blackjack game in Python. I would like to know your opinions about it and how it can be improved! Thanks in advance. This code is original and I made it myself without any externa...

 
11:23 AM
Monking, long weekend!
 
12:19 PM
A better place to post this would be on codereview.stackexchange.comKevin just now
I would suggest Code Review. Check their on topic. Dam @Kevin, u fast — Cleptus 59 secs ago
 
0
Q: Code of Using AbstractFactory

Danijel BoksanI'm working on some project on which need to track final product of specific Animal. There is much more in background, like feeding, vaccines etc... In that project for keeping the code clean and easy for understanding and maintenance I had got idea to use Abstract Factory as solution. I had prep...

 
12:54 PM
0
Q: Password Generator with injected password model

ZeroBased_IXI'm getting started with Python and one of the beginner projects to learn the language was a password generator (one of the dozens already in CodeReview). I have a C# and JS background so I want to make sure I'm doing things the Python way. Technically the include_punctuation and include_digits p...

 
1:09 PM
It could be a number of things, including: docker (not R) limits on memory/resources; or inefficient R code. The first is likely better-suited for superuser.com or similar. The second would require an audit of your code. You might get away with it here on SO if the code is not egregious, but once the code block starts paging, it becomes a visual deterrence and flies in the face of minimal reproducible example, in which case perhaps Code Review would be a better place. — r2evans 32 secs ago
 
1:26 PM
@GustavoDuarte you might try codereview.stackexchange.com as a place where people will give you feedback on code. Stackoverflow tends to be for solving specific problems. — Paul Hankin 50 secs ago
We've been catching this in code review, and it only happens a few times with new hires. But we' — Jeff Dege 10 secs ago
 
1:43 PM
0
Q: Code optimization. How to make the process run faster?

Ahmed MujtabaI'm trying to write code that reads data from a CSV and pushes it to a Salesforce application using the API. My code processes the data in a for loop, but it takes a long time (3 hours) to run the function. What can I do to optimize my code to run faster? Here's an example of my code which reads ...

 
2:07 PM
0
Q: Made a monster array for a text based game with a class constructor C++

NisI created a class in a separate .h and .cpp file with the idea of having an array of 3 monsters with each monster having different stats( name; health; damage). The problem is that the constructor should change the properties but when I try to call them in the main file only the 3rd monster's pro...

 
Ben Popper on May 13, 2021
We’ve talked about the software that flies SpaceX rockets, the team that tests the code to ensure it’s airtight, and the code that helps Starlink satellites communicate with customers and one another. For our last piece, we’re diving into the work of a team that helps the vehicles get built.
 
2:23 PM
@CaptainObvious Not asking for a code review, question was banned on the site it should have been asked on.
 
possible answer invalidation by JDługosz on question by Nis: codereview.stackexchange.com/posts/260706/revisions
 
@Duga JDlugosz is the author of the answer as well as the editor.
 
2:55 PM
0
Q: Where do I apply the force to make two engine rocket?

John D.I'm working in a rocket with two engines, one at the right, and one at the left, and I want to manage them with two keys. But If I put the RigidBody to the engines, it broke when I apply the force and the engine, flying away alone without the rocket. If I put the RigidBody to the rocket, I can't ...

 
3:13 PM
Monking
 
0
Q: Is there any better/ improved/optimised way to use vector

jerry00For huge values how can I optimise this code? Is it possible to use two pointer for iteration? I tried using long long instead of cpp_int but it doesn't worked well. int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cpp_int t,ans; std::cin >> t; while...

 
3:33 PM
Monking
 
I can see some syntax issues which, if sorted, will get you closer. This might be better on a code review site though since you're kinda asking "What's wrong with my code". — doctorlove 21 secs ago
 
0
Q: Create 'classical' visitor from lambdas

StefanKssmrI've watched this talk of Fedor Pikus on design patterns held at CppCon 2019. Motivated by this, I wrote my own visitor implementation and some helpers which allow me to create a visitor from a couple of lambdas. My goal is to reduce the amount of boilerplate code but still use the classical visi...

 
3:52 PM
possible answer invalidation by Aditya Vikas Devarapalli on question by Aditya Vikas Devarapalli: codereview.stackexchange.com/posts/32322/revisions
 
4:05 PM
This would likely be better asked on codereview.stackexchange.com . — computercarguy 45 secs ago
 
4:36 PM
@computercarguy This post would not be on-topic for Code review, because the code is not working as expected, and the OP is asking for an explanation of why that is the case. — Sᴀᴍ Onᴇᴌᴀ 55 secs ago
 
4:53 PM
Please read the help center to make sure your question is on-topic before asking on Code Review. — Heretic Monkey 15 secs ago
 
5:19 PM
I’m voting to close this question because it belongs on Code ReviewSuperStormer 27 secs ago
 
@Duga rolled back
 
5:42 PM
possible answer invalidation by rieger60 on question by rieger60: codereview.stackexchange.com/posts/260699/revisions
 
5:55 PM
@Duga Hmm... OP removed header and resource files though I don't see those explicitly mentioned in the one answer.... any opinions on that one?
 
6:12 PM
possible answer invalidation by Alex l. on question by Alex l.: codereview.stackexchange.com/posts/260674/revisions
Have you run a profiler? And also this will probably get closed since code reviews of working code aren't really in the scope of StackOverflow. The Code Review Stack Exchange might be appropriate, as long as you make a post that fits the rules of that site. — Random Davis 38 secs ago
 
 
1 hour later…
7:31 PM
0
Q: Could I provide a url to my git repository and ask someone to review my project?

RichI recently had to write a program with unit tests as a coding assignment for a job. I didn't get the job and didn't get much feedback about my program. Would it be appropriate to explain what the program does and post instructions on how to clone it from github so that it could be reviewed and cr...

 
7:44 PM
0
Q: Java Pong Paddle Bot

Cats1337I'm newer to Java coding so I'm not exactly sure how to implement this. I'm trying to make player2 into a bot, so the player has a challenge because I don't have friends to play against. My idea is to make the paddle go up if the ball is above it, and down if it's below it. But I have no idea how...

 
8:25 PM
Welcome to Stack Overflow. Please take the tour to learn how Stack Overflow works and read How to Ask on how to improve the quality of your question. Then check the help center to see what questions you can ask. You might want to delete this question and ask it on codereview.stackexchange.com instead, but check the help pages there first. — Progman 7 secs ago
 
9:02 PM
Please repeat on topic and how to ask from the intro tour. Where is the code slow? What does it do? What problems do you have with the speed? Stack Overflow fixes broken code; Code Review works with improvement of working code ... but you have to upgrade this to their posting guidelines (or ours). — Prune 29 secs ago
possible answer invalidation by exceptionerror on question by exceptionerror: codereview.stackexchange.com/posts/260517/revisions
possible answer invalidation by exceptionerror on question by exceptionerror: codereview.stackexchange.com/posts/260517/revisions
 
9:46 PM
0
Q: Storing a copy of unique_ptr

sashidhar gunturyWhen one writes c++ code to manipulate LinkedLists, Trees, etc. one creates a tmp pointer that points to the start/root and changes that pointer as one traverses along. What would be the equivalent way of doing that in smart pointers? For example, I wrote a Trie code using unique_ptrs to understa...

 
@SuperStormer, this is not complete enough for CodeReview. It isn't working code; all it does is define a class. — hpaulj 37 secs ago
 
10:22 PM
0
Q: Are responses to specific interview questions on-topic?

ReinderienTangentially related to the unanswered Can I legally post my solution to a company's coding test? I realize that generic interview prep questions are on-topic - that's why we have the interview-questions tag. But for real questions arising from an application to a specific job at a company, are a...

 
 
2 hours later…
11:55 PM
First, please edit your question when providing clarifications. The comments are for us to ask for clarification, not for you to provide them. Second, does the code you posted do what you want? If so, it's not a real Stack Overflow question. Consider posting it on the codereview.stackexchange.com site, if you can make sure it fits their requirements. If it doesn't do what you want, please be more clear about that: explain exactly what the code does now, how that's different from what you want, and what specifically you need help with. — Peter Duniho 41 secs ago
 

« first day (2931 days earlier)      last day (71 days later) »