« first day (3128 days earlier)      last day (872 days later) » 

12:00 AM
REFRESH! There are 7941 unanswered questions (89.2512 answered)
 
12:26 AM
I’m voting to close this question because this belongs on Code Review Stack Exchange - not StackOverflow — Randy Casburn 8 secs ago
 
1:26 AM
0
Q: Arithmetic progression using Recursion

Elbaseltake an array of two numbers who are not necessarily in order, and then add not just those numbers but any numbers in between. For example, [3,1] will be the same as 1+2+3 and not just 3+1. function sumAll(arr) { let start = arr[0]; let end = arr[1]; if (start > end) { let temp = start;...

 
1:39 AM
This is also something that would be better answered over on Code Review.Skully 5 secs ago
 
 
3 hours later…
4:52 AM
0
Q: Novice seeking project feedback

austenc.mfThis is my first real personal application and I'm just looking for some outside feedback. Completely built in Python, this is a Pokédex for the Pokémon Mystery Dungeon series. I hope to eventually publish to the Android app store. If you choose to check it out... don't be nice. Tell me how bad i...

 
0
Q: When I click on "Ask Question" on codereview.stackexchange, it gives me a form that is filled with my previous question. Why is this happening?

AmitWhen I click on "Ask Question" on codereview.stackexchange.com, it gives me a form that is filled with my previous question. It is not giving me an empty form. Why is this happening? How will I post new question now?

 
5:18 AM
0
Q: Building a Cricket Scoreboard from Python

Anant GuptaSo to check my Python knowledge I am building a cricket scoreboard in Python. My scoreboard could be able to can be used to store previous matches ' scores. A work in progress as of now. But as of now, it is a 50/50 success. I might have done 50% of the work already, but I am can't move forward. ...

 
Monking
 
5:43 AM
0
Q: classifying codes + adding __str__ and exception handling (try~except)

GungangbestMy boss asked me, a Polar researcher whose major is biology (surprise!), to do a coding work which I am NOT really good at, for our satelite data processing module. (I'm not even sure why he asked me to do this in the first place...sigh...corporate culture) He said his codes have methods but no ...

 
 
1 hour later…
6:56 AM
Monking
 
0
Q: Java Swing Library

AmitI have implemented a library which makes Java Swing programming easier. I am just posting the library. There is a program that uses this library to implement examples of many Swing components but I cannot include that program here because the total size will become more than the allowed limit of ...

 
7:52 AM
-1
Q: Can you rate my Python project and provide tips how to optimize it

MK KidThank You in advance for spending your valuable time for me So this is my brief intro, I am a teenager and I learnt coding myself through various platforms , the first language I learnt was Python. I have a intermediate knowledge regarding Python. So after a while I got a idea of creating a simpl...

0
Q: Examples of many Java swing components in one program

AmitThis is in continuation of my previous post for code review of Java Swing Library: Java Swing Library Since the limit on total number of characters is 65K, I split my program in two parts. The first was Java Swing Library and the second one is this one. I have implemented a program that uses my J...

 
8:42 AM
This would be better on the Code Review StackExchange site — canton7 53 secs ago
 
9:27 AM
If you have working code and you're looking for improvements you should post your question on codereview.stackexchange.com instead. — Mike Scotty 7 secs ago
 
0
Q: React - Using the same loop twice

Jonathan MannerBackground: Hello, I'm a student (since 2 months) and I've created a small MVP of a weather application. So now I'm refactoring my code because it looks hideous and it is hard to work with. The problem: In the snippet I will provide you will see that I repeat code for a .map(), which I know is no...

0
Q: Console for Java JAR programs

AmitWhen you run a Java Jar program then you don't get a console. But this program gives a solution of this problem. This program implements a console which can be used to get user input / print output. You can include this program in your software to get a console when you run your software as a JAR...

 
10:01 AM
0
Q: Speeding up bit-to-bit operation on python function

Izabela LeãoI have this function where the entry is a string of size '5376000' chars containing hex values. Len is given in bytes so 2688000. Calculating the start and ending time of the operation it takes about 5 seconds which is a lot considering this function is called thousands times.... def ProcessFrame...

 
10:27 AM
0
Q: Count the numbers in a range in which the sum of the digits in odd places have the same parity of the ones in even places

DarkSkullAs already written in the title I want to count the numbers in a range in which the sum of the digits in odd places have the same parity of the ones in even places. I made this code: def findIntegers(x, y): count = 0 for k in range(int(x)+1, int(y)+1): odd_sum = 0 even_sum = 0 k =...

 
10:46 AM
Maybe code review would be better for your question then. — user438383 22 secs ago
 
 
1 hour later…
12:10 PM
0
Q: Simplified print and input macros in C

LinnyFor a program I'm writing, it requires a lot of printing and receiving user input. I've found it cumbersome to keep specifying the type strings in printf, and having to write another printf before using scanf to receive input. I've decided to write two macros, print and input, that achieve exactl...

 
1:01 PM
0
Q: pseudo-random binary sequence (prbs)

DrakonofModules for FPGAs for generating a pseudo-random bit sequence are presented. The first module generates a bit sequence. The third module speeds up the generation by transferring the bus to, for example, a multiplexer which is controlled by a faster device. Hence this bus is serialized into a bit ...

 
2:28 PM
@MartinM. I'd call that an "accident" -- those constants (KB, MB, GB, etc) just happen to be abbreviations (see github.com/golang/go/wiki/CodeReviewComments#initialisms) to well-known units. — Rodolfo Carvalho 47 secs ago
 
2:44 PM
-1
Q: Can not spot the error

BlobmouHere is my little program (it is supposed to check if a number is a perfect square), but it has an error somewhere, can someone help! import math a=0 def is_square(n): a = math.sqrt(n) if a % n = 0 : return True else: return False

0
Q: how to simplify/neaten code

Ryan KnoxI want to simplify some code I have written but not sure how to go about doing it. When my workbook opens it checks the current date and compares it to dates I have on a sheet. If the current date is <= date on sheet it writes the date range to a cell. My issue is I have 13 If statements and woul...

0
Q: Two field calculated

Pierre DemersGood day. I have to field DtLargeur and DtLongueur and what I want is to have (DtLargeur*DtLongueur)/144 to the field tbxQuantity. What is the right code . It's a custo in Epicor. private void BtCalcul_Click(object sender, System.EventArgs args) { SetValue TbxQuantity = ((DtLargeur*DtLong...

 
 
2 hours later…
4:40 PM
Monking
 
4:53 PM
0
Q: Leap year in python brief code

an1Is this the correct way to calculate leap years in a range of [y,x) ? def bis(y1,y2): mas = max(y1,y2) mini = min(y1,y2) k=0 for i in range(mini,mas): if i % 4 == 0 and i % 100 != 0: if i % 400 != 0: k=k+1 return k print(bis(1904...

 
5:37 PM
Monking
 
 
4 hours later…
9:54 PM
I'm not sure if he/she sleeping but... @Peilonrayz
 
@Fmbalbuena Hey I'm in the process of writing it now :)
 
@Peilonrayz ok thanks.
 
May take a while tho... D:
 
@Peilonrayz ok so... it took me 4 days to bulid with Github copilot.
 
Ah, :) It should take a couple of hours or so... depends on how long a rewrite takes
 
10:02 PM
Ok so, Note: "Find bugs".
 
Just so you know, CR answers can comment on anything
 
@Peilonrayz I have a question: if someone says bugs and still we can fix my CR answers?
 
@Fmbalbuena If you know you have bugs in your code then your question is off-topic. Perhaps I am misunderstanding you?
 
@Peilonrayz I found some bugs but already all are fixed.
like >@>#Hello, World! Runs infinite loop (Without outputting) but i fixed.
 
If you've fixed all the ones you know of then that's fine. :)
 
10:14 PM
@Peilonrayz I'm fine.
 
 
2 hours later…
11:48 PM
0
Q: Basic. Writing out a long for loop

571FanaticI want to write a for loop that make six decks of cards into variables but I cannot figure out how to write the code to determine what number the card is on. for i in range(1, 313): for j in range(1, 53): for k in range(1, 5): if k == 1: color = "clubs" ...

 
11:59 PM
@Peilonrayz What does your code look like?
 

« first day (3128 days earlier)      last day (872 days later) »