« first day (3142 days earlier)      last day (868 days later) » 

12:00 AM
REFRESH! There are 7967 unanswered questions (89.2373 answered)
@mklement0 Mike Q has already posted on Code Review. — Peilonrayz 49 secs ago
 
0
Q: Manhattan distance calculation between two images in C++

JimmyHuThis is a follow-up question for Two dimensional gaussian image generator in C++ and Image pixelwise operation function with multiple inputs in C++. I am attempting to implement a function manhattan_distance for calculating Manhattan distance between two images input. The foumula of Manhattan dis...

 
12:56 AM
Yes - and this programmer came here for a code review and was told that anything they decided, as long as they were careful, was correct. I fundamentally disagree with that. — David Ljung Madison Stellar just now
If your code works, and you're looking to improve your code, codereview.stackexchange.com might be more appropriate. — 9769953 44 secs ago
 
1:21 AM
If you've working code and you're looking for something more of a code review then I suggest codereview.stackexchange.com. — Drew Reese just now
Thanks. I wasn't aware codereview.stack... existed. — watr 17 secs ago
 
 
4 hours later…
monking
 
possible answer invalidation by Alf on question by Alf: codereview.stackexchange.com/posts/270848/revisions
possible answer invalidation by Alf on question by Alf: codereview.stackexchange.com/posts/270848/revisions
 
6:26 AM
0
Q: can optimised following code ? it's program for finding wether two string are anagrams of each other of not

King _ AJlist1 = input("Enter words =").split() list2 = input("Enter words =").split() def twincheck(l): if sorted(l[0])==sorted(l[-1]): st=True print(True) else: st=False print("\nFalse") if st==True: for i in range(len(l[0])): for j in range(len(l[-1])): if l[0...

 
6:46 AM
This might be better suited for the Code Review SE. — Some programmer dude 49 secs ago
 
7:16 AM
0
Q: Create a more efficient and performant csv import function with Python Django

RossI am creating a website for users to track their Magic the Gathering inventory. I have created some functionality to import a csv to easily add cards to their inventory. The functionality works as expected however when you start to get to the larger amounts of records, in the tens of thousands, i...

 
7:31 AM
Monking
 
7:45 AM
possible answer invalidation by Manya Garg on question by Manya Garg: codereview.stackexchange.com/posts/270823/revisions
 
 
2 hours later…
9:19 AM
I would recommend writing a basic example of what you're considering, and asking on codereview.stackexchange.com you'll get some more general feedback over there. — JeffUK 48 secs ago
 
9:42 AM
Monking
 
10:05 AM
possible answer invalidation by Manya Garg on question by Manya Garg: codereview.stackexchange.com/posts/270823/revisions
 
10:37 AM
0
Q: CPU Scheduling: Shortest Job First Non Pre Emptive GUI

Picca booI am having problem on how to integrate my code for CPU Scheduling: Shortest Job First using java eclipse. I have finished my source code for the algorithm using Java and the design for my GUI. My brain literally locked when it comes to the GUI interface where I have to solve for the completion t...

 
 
1 hour later…
11:52 AM
0
Q: SkiaSharp.SKCanvas – Can I draw this faster or at least with less CPU effort?

DanielI built a VB.NET WinForms application. I integrated ‘SkiaSharp’ into my program because Visual Basic's own graphics class is slower in terms of performance. Nevertheless, I have slight performance problems when the timer fires every 83 ms (≈ 12 times per second). I would like to improve this now ...

 
 
1 hour later…
1:08 PM
0
Q: c# - Calculate offset and fetch values

RamjiThe calculatePage function - Calculates if a parent and child comment have more than 15 comments then consider it as page. The next 15 comments should be moved into the next page. The logic works fine. The reason i posted here is there any better naming convention for variables. Any improvement i...

0
Q: Is my e-commerce app's code compliant with MVC

FaigHi I have spent few days reading about various architectures and decided to use MVC (Model-View-Controller). But I had hard time applying all the theory to my node.js code. I've wrote some minimal backend code as close to MVC architecture as I could. (note: it hasn't "View" part at all, but I pla...

 
1:58 PM
0
Q: Software for taking backup of files and folders in Java language

AmitSoftware for taking backup of files and folders in Java language. This software can also save backups in a network folder. Please review. The code is below. Backup_Files_And_Folders.java import java.io.*; import javax.swing.*; import javax.swing.event.*; import java.awt.*; import java.awt.event...

 
2:23 PM
0
Q: Simplify mini max python algorithm

Leon0402I've written a mini max algorithm, which I would like to simplify. I call the function like this: board.push(move) score = minmax(board, depth, tree) board.pop() And the actual function: def minimax(board: chess.Board, depth: int, tree: MinMaxTree = None) -> int: if finished(board) or depth ...

0
Q: How to convert a Double to a string with a fixed length

OrbitI am converting a double to a string with a fixed length (6 digits in this case). This seemed like a very simple task in the beginning, but I ran in to many issues. The double can be a large value, a small value, positive or negative or in scientific notation. This made the function grow much big...

 
isBean should return a boolean, not an int for starters. If this runs correctly then you could try Code Review to get advice on how to improve. — Maarten Bodewes 48 secs ago
I’m voting to close this question because this probably belongs to Code Review Stack Exchange. — MC Emperor 26 secs ago
 
3:13 PM
0
Q: Parallel Breadth First Traversal in Rust

jkoskelaOverview I have been writing my own graph API for Rust and one thorny problem I wished to tackle was a parallel breadth first traversal of the graph. The API itself will have different graph flavours, but the one I have built for these tests is an undirected variant without double edges. I have c...

 
possible answer invalidation by Mike Q on question by Mike Q: codereview.stackexchange.com/posts/270856/revisions
possible answer invalidation by Mike Q on question by Mike Q: codereview.stackexchange.com/posts/270856/revisions
 
3:54 PM
@Duga Looks okay to me - adding required context, probably not AI.
 
4:09 PM
Monking
 
4:41 PM
Since you're just asking whether your code can be improved at all, this might be on-topic at Code Review. But it's not on-topic here. — TylerH 19 secs ago
 
5:00 PM
Without further code review and besides that the result comes not close to what the OP has asked for I want to mention that in my opinion an approach with 3 nested forEach loops already is heading into the wrong direction. — Peter Seliger 51 secs ago
 
5:28 PM
0
Q: How to create field with Mines in Minesweeper game

RikolayaI'm a beginner in Java and would like to create a field with Mines in a Minesweeper game. import java.util.*; class Minesweeper { // A two-dimensional array of Boolean values. The value True at a // coordinate indicates that there is a mine at this position. boolean[][] boolMines; // Saves the o...

0
Q: Word vectors code not work with OneHotEncoding

graceMy project it's about steps before modeling. And my code aproximetly like this maximalSequence_length = 200 class SequenceIterator: def __init__(self, dataset, seq_length): self.dataset = dataset self.translator = str.maketrans('', '', string.punctuation + '–') self....

0
Q: C# Setting all class members to null to destroy strong references

Frederik HoeftAt work we are using Xamarin.iOS for our apps. We frequently have to fight it's disadvantages, namely it's memory leak issues where strong cyclic references keep objects alive and prevent them from being GC'ed just because someone somewhere forgot to set a property to null before discarding a vie...

0
Q: Grade Calculator Tool Code Improvement

Zain Wilson - WCH StudentI am just looking for code improvements as I believe that it is done, and would like to see it expanded. I mainly want code improvements to make it more efficient, but any and all constructive criticisms are enjoyed If the snippet is broken the link to the fiddle is here: https://jsfiddle.net/BOS...

 
5:53 PM
0
Q: Optimization suggestions for my Stack

Jaysmito Mukherjeestack.hpp class Stack { public: Stack(float incFactor = 1.5f); ~Stack(); template<typename T> inline void push(T value) { validate(sizeof(T)); *(reinterpret_cast<T*>(top)) = value; top += sizeof(T); size += sizeof(T); } void push(c...

 
6:49 PM
Hi Problemat1c, this might be a question that more appropriate for codereview.stackexchange.comChris Happy 18 secs ago
Seems to me this is more suited for code review SE (codereview.stackexchange.com). If you have basic questions regarding functions, there are plenty of good resources available online. — DocDriven 5 secs ago
 
I think someone might lock this question for a day to prevent edits.
 
7:05 PM
Log4j remote code execution exploit: lunasec.io/docs/blog/log4j-zero-day
 
@pacmaninbw I don't think there's a question only lock. I can only see one AI, so I think leaving the question unlocked (and keeping an eye on the question) would be best here
 
7:30 PM
@pacmaninbw Hmm, I just noticed... the post has more answers than upvotes, and even is a HNQ
 
@Peilonrayz it has one DV... potentially leftover from the initial versions when there were errors (see versions before 6)
 
Even if we go by any votes, there are more answers :)
By 1... but still
 
This type of question doesn't really fit the guidelines of StackOverflow as it's largely opinion based. I'd recommend posting over on Code Review Stack Exchangemascoj 51 secs ago
Code review is only good if there are no known bugs and the posting requirements are quite particular. Read the Asking help pages thoroughly before asking your first code review question to make sure your question complies. — user4581301 21 secs ago
 
 
1 hour later…
9:14 PM
0
Q: How would I go about optimizing this code?

Jason CameranI've removed any unnecessary new variables however there are still a handful which I'm not sure if I could cut further. I need the code to output a value in under 5 seconds when a is a list of over 100 elements. I'm certain that the function erase numbers isn't bottlenecking the code so this code...

 
 
1 hour later…
10:21 PM
 
11:20 PM
0
Q: Python program that encrypts/decrypts strings in French

Sal SmithI have a Python program that encrypts/decrypts the English alphabet perfectly fine, but as soon as I try replacing it with the French alphabet (which includes letters with accent marks and such), I run into errors when debugging. Attached below is my code: import sys def read(a): encrypted_me...

 
11:40 PM
@Peilonrayz Yes, only the first 3 answers voted it up.
There are also to votes to close, or there were the last time I looked, but that was before I edited the question.
 
I see now OP has self-answered, and henceforth I have commented about it
 
@SᴀᴍOnᴇᴌᴀ I saw your comment.
It would be nice if the OP had applied the observations from their first question.
 
@pacmaninbw yeah it happens with php OPs too 😏
 

« first day (3142 days earlier)      last day (868 days later) »