« first day (3557 days earlier)      last day (457 days later) » 

12:08 AM
REFRESH! There are 7476 unanswered questions (90.2346 answered)
 
 
5 hours later…
4:57 AM
0
Q: loop input: controls adding to array

JeffersonI am collecting all the inputs and looping all the items. I check if the index is 0 and if it is I create the {} . I then create another {} adding the data from the input control. Once I am at the end I push the an array. The problem I see is it there are 2 items in the list this will not add the...

 
 
1 hour later…
6:13 AM
0
Q: Parenthesis is reported missing after argument list in my Ajax API callback function

CodeForGoodI'm making a Shopify Ajax API call to update quantity of a product in the cart whose handle is add-a-custom-logo. I will need to refresh the page on sending the post request and knowing that this API request returned SUCCESS. I'm getting the error in the post title. Browser console shows the erro...

 
 
2 hours later…
7:54 AM
0
Q: Jetpack Compose: Items-list with Item-Details-view

michael.zechThe app is based upon an exercise from a Udemy-course. The purpose is to become familiar with LazyColumns. I've enhanced the exercise with a Details-view and a navigation between LazyColumn and Details. Here are the essential code-snippets: // MainActivity with the definition of the navigation cl...

 
 
2 hours later…
9:35 AM
0
Q: School assignment: Determining the winning bingo from a set of bingo boards and sequence of draws

JikkeI have a school assignment and it's the same as one thats standing on this platform. I only learnt the basis of python so I don't really understand the answer that is given. Till now I have this. In the firts definition if a nummer is called then it will by the carts, when the nummer is the same ...

 
10:26 AM
0
Q: C++ Lock-free deque

davidhighThe following class is my stupid attempt to write a lock-free deque. People say lock-free programming is complicated, but not for me -> take this, compiler! Only problem is, that it doesn't work and quickly runs into assertions which are likely caused by race conditions. Here is the code: #include <

 
 
2 hours later…
12:20 PM
If you don't have a specific problem and just looking for (general) improvements, maybe Code Review is a better fit (do make sure to read their help center before posting) — Tomerikoo 44 secs ago
 
12:39 PM
@Tomerikoo : Thank you for the suggestion. I just reposted the question on Code Review. Should I delete it from here? — Serge Hulne 8 secs ago
 
12:58 PM
1
Q: I am developing a custom web component using Svelte (a "tabs" component), I would like to know is my code is idiomatic Svelte

Serge HulneI am developing a custom reusable web component using Svelte (a "tabs" component), I would like to know is my code is idiomatic Svelte and also any suggestion for improvement is welcome. Illustration: I believe that component can be useful. It can be used as a menu widget which is very easy to u...

 
1:14 PM
possible answer invalidation by Serge Hulne on question by Serge Hulne: codereview.stackexchange.com/posts/282915/revisions
possible answer invalidation by Serge Hulne on question by Serge Hulne: codereview.stackexchange.com/posts/282915/revisions
 
@Duga Image was made slightly smaller.
 
possible answer invalidation by Serge Hulne on question by Serge Hulne: codereview.stackexchange.com/posts/282915/revisions
 
 
1 hour later…
2:33 PM
Monking
 
0
Q: Command-line Tower of Hanoi game

Mode77Compiled with g++ 9.4.0. makefile included. Any critisism welcome. main.cpp /* Author: Jared Thomas Date: Tuesday, August 4, 2020 */ #include <iostream> #include <string> #include <vector> #include <cstdlib> #include <cstring> #include <cmath> #include "parse.h" #include "move_parser.h"...

 
3:29 PM
0
Q: Text to image steganography

チーズパンThis simple implementation hides text secrets (S) in images by manipulating the least significant bits (lsb) on Pixels. How it works When encrypting I take a three pixel "chunk" for each byte. Each bit of the byte is hidden in the RGB (lsb) values of the pixels. The last blue value in the last pi...

 
3:53 PM
@KaziAfrozAlam If you're asking for a code review, then codereview.stackexchange.comglenn jackman 54 secs ago
 
 
3 hours later…
6:39 PM
@glennjackman You might want to provide a link to shellcheck.net. Code that isn't working as intended is not ready for the Code Review site. — pacmaninbw 20 secs ago
 
7:05 PM
the downvote may be because this kind of question ("My code works, can anyone help me make it more efficient?") is arguably off-topic on SO. Many consider it a better fit for "codereview.stackexchange.com" — GuedesBF 6 secs ago
If you've solved a problem I think Code Review is a better place for your question, on Stack Overflow we're more concerned with problems encountered while trying to implement a solution. — cafce25 53 secs ago
If you've solved a problem I think Code Review is a better place for your question, on Stack Overflow we're more concerned with problems encountered while trying to implement a solution. I think all of the solutions look reasonably idiomatic and hence have voted to close this question as opinion based. — cafce25 19 secs ago
 
0
Q: How can I group data faster?

NmghI am trying to group uncorrelated variables into subsets. So, using the correlation matrix, I check each variable to see the correlation. If correlation is more then a threshold I will create a new list, else I will add it to the current list. At the end, in each subset the variables are not corr...

 
7:32 PM
That makes sense, sorry for the confusion, I will delete this post here and post it in Code Review — Kyle Price 10 secs ago
 
0
Q: rust sort numbered directories (non-lexicographical)

Kyle PriceI am very new to rust and have been reading up and playing around to get a better understanding. I was trying to replicate a small task that I have done via bash scripting before, as a way to continue learning. The task involves getting the sub-directories of some base directory, where all sub-...

 
8:08 PM
-1
Q: Capturing a variable from radio button input in Python

JBSI'm very new to Python or any programming and need to set a variable based on user selection from radio button and use that var later in the code. This is the test code I'm using until I can get the correct value to pass. As you will see I'm getting a value like ('A',) in the variable vs the A I...

0
Q: Improvint C# code with tasks

renathyHere is the code. It calls two methods in parallel. Waits when both ends. And then combines results of both calls into one Class. I believe this code could be improved. Espacially at then end of the class when we want to return "default" if result of first task doesn't meat our requirements. priv...

 
8:58 PM
0
Q: express js how to structure

user266203I am trying to understand what is the best way to do this I am trying to build a mangement system and my file structure is like the following. With every comment a notification operation in datebase should happpen. My question is for scalability and better code how should implement this? should i...

 
If it works, but the style makes you sick. First, don't be so hard on yourself, then post your script on Code Review. — mickmackusa 37 secs ago
 
9:24 PM
0
Q: Understanding the MIPS Assembly Language Instruction

MichaelI am trying to understand a MIPS assembly program and I wanted to confirm if I have understood the task correctly. Can someone please help me out with this? Here are the instructions I have received: The task is to write a subroutine 'time2string' to convert the value stored at memory location po...

 
9:49 PM
0
Q: Abundant number implementation

Toby HarnishI have implementted a simple JavaScript function to find the list of abundant numbers and print them on the screen. The function printAbundantNumbers, takes an argument, which is a range that tells the function how many abundant numbers that it should find and print out on the screen. The functio...

 
10:14 PM
0
Q: Is this a Merge Sort with Minimum Sufficient Variables, Verbosity and better Space Complexity?

Thomas MathewThe majority of merge sort implementations searched online are provided with unnecessary variables and code lines. Here is an attempt to reduce that. However, does passing back the subArray as return types around cause any extra overhead on space complexity due to the temporary auxiliary space r...

 
10:40 PM
0
Q: Merging 2 Dataframes with repetition of rows from 1st dataframe in Pandas

access_nashI have one dataframe in the form - Max Date Stock 28-09-2026 A 22-03-2024 B 17-10-2023 C 17-05-2025 D I have another dataframe with only a list of dates. For each date in the 2nd dataframe, I want to create a repeat of each stock and each "max date" from 1st dataframe in order t...

 
11:15 PM
Probably better suited to Code Review. — madreflection 53 secs ago
 

« first day (3557 days earlier)      last day (457 days later) »