« first day (2887 days earlier)      last day (1429 days later) » 

00:01
RELOAD! There are 7476 unanswered questions (89.4892% answered)
00:17
 
1 hour later…
01:42
If the code works and you're looking for advice on improving it, Code Review is the appropriate place. But see codereview.meta.stackexchange.com/questions/5777/… first. — Barmar 36 secs ago
If the code works and you're looking for advice on improving it, Code Review is the appropriate place. But see codereview.meta.stackexchange.com/questions/5777/… first. — Barmar 33 secs ago
 
3 hours later…
 
2 hours later…
07:13
0
Q: Haskell maxheapify

daydaynatationI'm a Haskell beginner and trying to hone my skill by solving algorithmic problems. Here's what I got for maxheapify from Introduction to Algorithms ixParent :: Int -> Int ixParent = floor . flip (/) 2 . fromIntegral ixLeft :: Int -> Int ixLeft = (*) 2 ixRight :: Int -> Int ixRight = (+) 1 . (*...

07:38
0
Q: Refactor code following modular architecture for readability and maintainability

Sujeet AgrahariI don't know what the title should be, but I am having very hard time to refactor my codes. I need some insight and help. Here is the business requirements: An order needs to be created and processed. Order can have different types of items and their process will be different. There will be some ...

07:58
The CORS error has multiple answers here on SO, and the "best practice" part might get an answer on codereview.stackexchange.comAndreas 17 secs ago
08:45
Nice answer for putting in the effort to refactor the code, but that would leave it at a code review-level answer. I upvoted your answer, but maybe edit it to include what you actually fixed/chanted? :) — Xiddoc 33 secs ago
09:07
Hello and welcome to stackoverflow. Your question so far is quite unclear as it does not actually contain any description of what it is you are trying to achieve, what problems you are encountering and are trying to solve. In case you have a problem and need help, the best thing to do is to create a Minimal, Complete and Verifiable Example. In case you believe that the code is doing what you want but you would like to hear people comment on it and possible improve, you could consider posting this on codereview.stackexchange.comErik 27 secs ago
 
4 hours later…
12:42
I finished my code review ;-) — Peter Seliger 20 secs ago
 
1 hour later…
13:57
0
Q: Making a coffee shop UI

EjehbdI'm making a user interface for an online coffee shop. I need to call methods that have already been created. The user is also able to make customisations to their drink order such as a different choice of milk, brown or white sugar etc. Once the user choice has been made it will add the drink to...

Greetings, Programs.
14:23
0
Q: Reducing running time of creating integration field in flow field algorithm (python)

LisaDThe integration field needs to get recalculated every time the starting or goal coordinates change. I wanted to use the flow field algorithm for a problem that include bigger mazes (= arrays with maze coordinates) with changing starting or ending points every 0.5 seconds. Right now the algorithm ...

14:48
0
Q: Fibonacci sequence array in Javascript

KGEHiii everyone!! This is my third day of learning Javascript through an online class. I learned about arrays and while/for loops today, and to practice all of that stuff the challenge I'm working on is to make a function that produces (n) terms of the Fibonacci sequence in an array. So I'm hoping ...

15:02
For general code improvements, please check if this can fit Code Review. Otherwise, edit the question to focus on a specific coding problem — Tomerikoo 32 secs ago
And as a side note, working code where you're considering potential improvements/refactoring is a better fit for CodeReview. — El_Vanja 35 secs ago
It sounds like you're looking for a code review rather than coding help. I think there's a better website for that: codereview.stackexchange.comTim Randall 1 min ago
15:39
0
Q: Is there a better way to get data from files like that?

NoNameI have to do a program in php that reads files like that and gets records about glider: https://xcportal.pl/sites/default/files/tracks/2020-06-09/069daro396091568.igc For now i came up with something like that: <?php class Pilot { public $name; public $gliderType;...

Nmibging
@skiwi Do you mean Nibjubg?
@SᴀᴍOnᴇᴌᴀ Kind of, but more messed up
16:14
Maybe this post should be here , but you should go deeper into the details — Ivan 40 secs ago
16:51
Note that you're basically asking for a code review here -- which is a different site, StackExchange.CodeReview. However, a simple trace of calls might be within Stack Overflow's charter. Complete your MRE. Insert some basic diagnosis, such as counting function calls -- you should have one call per node in the tree. Then you have a specific question, and we can work on your problem. As it stands, you're leaving us to eye-check your code -- as the posting guidelines tell you, "Make it easy for others to help you." — Prune 15 secs ago
0
Q: How to optimize file reading?

Eugenos_ProgramosI have a code that does a deyster algorithm for an adjacency list. The data is taken from a file. In the file, the first line contains the number of vertices and edges, and the remaining lines contain three elements each (the first 2 are the numbers of the vertices and 3rd are the weight of the e...

0
Q: Excel VBA code midStr() function using left and right position instead of length used with mid()

Mark MainIn the early days of Basic (1970's when i started coding) the midStr() function used left and right positions directly rather than left and length we now use with mid(). I always found it more efficient in my mind to code using the old midStr() method, so I finally just created some code to do it...

17:20
0
Q: GLSL atomic float add for architectures with out atomic float add

whn//MEM = initial memory, INDATA, the actual floating point value #define atomicAddFloatX(MEM, INDATA)\ {\ float data = INDATA;\ float prev_mem = uintBitsToFloat(MEM);\ float exchange_mem = prev_mem;\ float input_mem = (data + prev_mem);\ //initially this is what we assume we want ...

17:46
0
Q: Bank database program

SimonTI have been trying to improve my Python coding and was just wondering if there was a more pythonic way to perform what I have done so far, namely around the date in the main() function. import datetime import sybase account_list = [] def get_date(): # Date -1 day unless Monday then -3 days ...

0
Q: Linked Lists in C

BethI'm fairly new to coding in c and have stumbled upon a problem. The code below is what I have so far. We have two nodes, the first one creates a basic job post with a reference number (an integer) and job name (a string - an array of characters) as parameters, and the second is a list that holds ...

0
Q: Get the two instances with the most number of items in common

uberI'm analysing 2 big spreadsheets and I wonder if my analysis is the most efficient. I need to find out which two origins have the most number of same trucks. The spreadsheets look like this: items.csv # item | origin 511 | 123993 14 | 63 152 | 5 998 | 155 213 | 563 66 | 563 ...

17:56
there's a flood!
possible answer invalidation by daydaynatation on question by daydaynatation: codereview.stackexchange.com/posts/258862/revisions
0
Q: Enumerating all fixed-length paths from a vertex in a graph

JansthcirlUEnumerating all fixed-length paths from a vertex in a graph Graph-related classes Base implementations of the relevant classes in my graph library. I'm using C#9 in a .NET 5 project. I opted to use structs for my Vertex and Edge types to disallow null, which simplifies the equality and comparison...

 
1 hour later…
19:18
I'm not really sure what exactly you want here. Implement the functionality of FromRequest.from_response() with requests? If both scripts work, as you say, specklessly, why don't you just go for the version that has all you need? Also, since this is a working code example, in other words, there's really no obvious issue, you might want to consider posting this on codereview. — baduker 40 secs ago
19:28
0
Q: Array member set its own index in the array

JackI'm writing a code where a class member, if != -1, set its own position at array. If the value is == -1, the next free index (whose range is 0 too array's length) is used. In this review, I'm more interested in the algorithm, making it faster, accurate and readable than anything else. despite I'm...

19:51
possible answer invalidation by Linny on question by jrbobdobbs83: codereview.stackexchange.com/posts/258806/revisions
1
Q: Python discord bot

Lucifer UchihaSo in my free time, I made a discord bot to play around with and learn a bit of python. I'm mainly a java developer. The bot has a few commands that allow it to find and output recipe for cocktails and a few other things revolving around cocktails. In the background, there are 2 JSON files. My bo...

possible answer invalidation by Linny on question by jrbobdobbs83: codereview.stackexchange.com/posts/258806/revisions
This might also be a good question for codereview.stackexchange.comAni 28 secs ago
20:12
@Duga :57494106 Thats okay - just removal of an excess code fence
20:27
Ben Popper on March 30, 2021
In this session, Cassie Tarakajian joins us to talk about all things p5.js, the Processing Foundation, and open source software.
21:10
0
Q: .Net core string symmetric encryption

SsssI need to store sensitive strings in DB, so decided to encrypt it in a DB and decrypt it at the application layer. And noticed that it is not so easy to find ready to use an example. Please check my code below. It is based on this damienbod's topic, but I included IV to the string itself and als...

 
1 hour later…
22:12
Possibly better for codereview.stackexchange.com — max pleaner 31 secs ago

« first day (2887 days earlier)      last day (1429 days later) »