« first day (2874 days earlier)      last day (1157 days later) » 

12:00 AM
RELOAD! There are 7419 unanswered questions (89.5397% answered)
 
 
2 hours later…
1:31 AM
This is off-topic here. You might have better luck at codereview.stackexchange.comuser1558604 29 secs ago
This question is appropriate for codereview.stackexchange.com and you will probably get better answers there. Take a look at the topic descriptions for the sites: stackoverflow.com/help/on-topic, codereview.stackexchange.com/help/on-topic. — Michael Ruth 31 secs ago
 
1:45 AM
0
Q: QT/QML Signal updating list model for listview

AaronIs there a better way to write this? I'd rather not need to declare ListModel. I can't seem to just do log.model.append(msg) in my connections block of code. ListView { id: log anchors.left: parent.left anchors.right: parent.right height: 300 visible: f...

 
 
1 hour later…
3:01 AM
0
Q: Fastest / most efficient way to invoke a list if delegates in parallel in .NET Core 5

Sean ThorburnHere are 2 examples: List<Func<Reference>> referenceDelegates = new List<Func<Reference>>(); foreach (string url in urls) { // not async as I need to add this to a list without invoking it. // making it async would require a return type of Task<Reference> and // force the task to ex...

0
Q: How to refine coding skills?

HectorSo, I code sometimes but I'm always bored with my code and I felt I have a lack of python skills and I see some piece of code when I finished it. This below is a piece that I did today and I want to share with you to take some advice in how I can improve this and so my Python proficiency. The ide...

 
 
2 hours later…
4:32 AM
@chalatum I see, hope you got it now. > was curious about how others would be able to solve this This is why codereview.stackexchange.com exist. Post your solution there and ask for feedback — Martin Seeler 5 secs ago
 
5:04 AM
@pacmaninbw MRC
@pacmaninbw Don't forget to take care of yourself first. The site will survive for at least a day without you, we'll take up the slack.
3
 
5:49 AM
I’m voting to close this question because improving working code is better handled by Code Review. — Ken Y-N 51 secs ago
 
6:48 AM
0
Q: Design a parking lot

Vivek kumarI have tried to design the parking lot problem. Here is the problem statement. Design a parking lot with multiple floors where customers can park their cars. Each parking floor will have many parking spots. The system should support multiple types of parking spots such as Compact, Large, Handicap...

0
Q: Newsletter Subscription Functionality in Codeigniter 3

Razvan ZamfirI am working on a online newspaper/blogging application with CodeIgniter 3.1.8 and Twig. The application is meant to offer developers and designers the possibility to very easily turn their HTML templates into database-powered websites. To achieve this, I used the Twig template engine, for the fr...

0
Q: Boto3 and DynamoDB - How to mimic Aggregation

RgkI have a table in DynamoDB in the below format: I am pulling the data from this table using boto3 and want to create a new table basis user input ( DeviceId, Date Range).This table will have sensortype wise data - Max,min and avg grouped by minute. Iam making some basic error which is causing the...

 
7:31 AM
@pacmaninbw I've added a comment explaining what is desirable in the context. It's an interesting bit of code, and could become a great question with a little work.
 
7:51 AM
Maybe this question is better placed in codereview.stackexchange.comDominik 43 secs ago
This looks like a request for someone to test and debug (and code review) your code. Or something. That's not a Question. If you want assistance with debugging, you work out what specific problem you want help with solving. Then you need to formulate a Question; i.e. "This program is intended to solve the problem of <explanation or requirements>. When I provide input X, I get output Y but I think the answer should be Z. Can you explain what is going wrong?" — Stephen C 25 secs ago
 
8:28 AM
0
Q: Use async code in class constructor

Cristian FlórezI have some situations where I run async code inside class constructor: 1. Run async code that returns a response I execute some async code that returns a response, then I apply then and catch inside class constructor: class MyClass { constructor( someParameter, anotherParameter, ) {...

 
 
1 hour later…
9:44 AM
0
Q: Azure Face Identification example

MrWaffelXDI want to use the Azure face API to identify persons from an image. Last week I copied the example code found in the MS documentation. But somehow I get wrong Results. The confidence seems to be always the same, but the name of the detected person is different nearly every time. My Code: using Sy...

 
possible answer invalidation by shorif2000 on question by shorif2000: codereview.stackexchange.com/posts/231972/revisions
 
 
2 hours later…
11:43 AM
codereview.stackexchange.com seems more appropriate for working code. — Jarod42 59 secs ago
 
12:16 PM
0
Q: Return For each of my compagny the results of my function and insert them in a table

Ana KellyI have a subroutines and in this subroutines i call functions with different parameters.The only problem is that since I don't know VBA that much I get stuck fast. Right now i'm printing the results of my function but I wish to return for each compagnyname: (the compagnyname the amountpaid and th...

 
12:41 PM
0
Q: Insert an array[4] to an array[8] (C++, SSE)

Juha PI have this code to get audio output levels in dB to an array (peak_dB[8]: ... float peak_dB[8] = { 0 }; // eight channel audio ... __m128 lin2db(__m128 x){ ... } ... getPeaks_dB(channelCount); ... static void getPeaks_dB(int cCount) { __m128 s1 = _mm_setzero_ps(); s1 = _mm_set_ps...

0
Q: Python RPC Design Pattern - is bidrectional coupling a good idea?

nz_21I want to build a barebones fault-tolerant distributed system according to the following spec: Given a setup of n computers, if the ith computer receives an operation to update a given key-value pair, it should perform the update, and propagate it to all other nodes. I'd like communication betwee...

 
@Duga rollbacked
 
@TobySpeight Thank you.
 
1:43 PM
If you're looking to improve code that already works, the best place to ask is codereview.stackexchange.com. — jaco0646 56 secs ago
 
Greetings, Programs.
 
2:05 PM
Teresa Dietrich on March 17, 2021
I’m excited to announce the launch of our Free plan on Stack Overflow for Teams starting today. What you need to know Our private knowledge sharing and collaboration platform, Stack Overflow for Teams, is now free for up to 50 users.  No credit card is required to start your Team, and it’s free forever. Our…
 
2:22 PM
0
Q: Improvement of Mancala Game

Dahiben Kumarhttps://www.mastersofgames.com/rules/mancala-rules.htm I am trying to create a working Mancala Game in scala, Currently, I have 3 Classes, Board.scala, Mancala.scala and Player.scala Here is a copy of my Board Class /** * The board of an ongoing game of mancala * @param player1: The number of ...

 
3:07 PM
This would be a good candidate for codereviewC.Nivs just now
 
Happy St. Patty’s Day 🍀 ☘️
@pacmaninbw Hopefully your luck will improve... or at least your Quality of Life
maybe that mechanic was a nihilist
 
3:37 PM
0
Q: Read created files in a folder

ProtractorNewbieI have been working with where I use watchdogs to be able read whenever I have created a file by the name -> kill_.flag and it contains: *kill_*.flag contains: hello;https://www.google.se/;123 and my script is then going to read the created file, split the ";" between each other and give each a...

0
Q: How to change for loop to work efficiently python

ApexI have stuck with this script it would be great if you could help me with your inputs. My problem is that I think the script is not that efficient - it takes a lot of time to end running. I have a fasta file with around 9000 sequence lines (example below) and What my script does is: reads the fi...

 
3:51 PM
If you have working code and you're looking for improvements, consider to post your question on codereview.stackexchange.com instead. — Mike Scotty 46 secs ago
If your code works properly, you should ask this in code review. — M-Chen-3 32 secs ago
 
@CaptainObvious @pacmaninbw The OP is unregistered and there is a suggested edit from an anonymous user ... I approved it based on @Vogel612's meta answer to a similar scenario
 
4:22 PM
@SᴀᴍOnᴇᴌᴀ If you read the latest comment by @TobySpeight it explains the why the question is still MRC. Since this is C++ we need to see the declarations of the variables and it would be better to see the lin2db() function. The edit did fix part of the problem.
If I was reviewing, one of my points would be global variables.
 
me too! ... if I spotted them that is...
 
@SᴀᴍOnᴇᴌᴀ I think the mechanic doesn't like working on very old cars (2003). The service engine soon dummy light was on and he didn't want to track down the problem. He also thought all the parts in the cooling system needed to be replaced, but when he did the inspection only half the parts needed to be replaced.
 
0
Q: c# input keyboard

AAAI use this code to do the calculator. Simple calculator in C# WPF 1. How to change all dot to comma? E.g. 21.22 but I need it always to be like 21,22 2. How to add keyboard input? Best regards, AA using System; using System.Globalization; using System.Windows; using System.Windows.Controls;

 
@SᴀᴍOnᴇᴌᴀ There is also a short in the driver side power window that makes it difficult to make it go up or down, but I didn't ask him to fix that, more of a body shop issue. I can make the driver side window go down using the key in the door. I can make it go up by cycling the headlights. ;)
 
You should ask this on codereview.stackexchange.com as you don't have an issue, but you would like the code to be simpler or more performant. — evolutionxbox 42 secs ago
Welcome to Stack Overflow! If you want help improving working code, you should post this on CodeReview.SE. If you do decide to do so, please delete the question here. — NathanOliver 38 secs ago
 
4:45 PM
@pacmaninbw Yes, agreed. We can infer that the variables are global, but I would prefer to get the code ready for review before we let the answers in.
 
@pacmaninbw I think our 4 year old Outback has a leak on the passenger side - the floor mat have been most lately :/
 
Monking
 
0
Q: Render multiple SSRS reports in parallel

Usman KhanThis service takes in a report request object that can contain multiple reports that need to be rendered. This code works but I'm not sure if I've implemented anything wrong. Note the exportedImage.Result makes this synchronous but when I tried adding async and await to the Parallel.ForEach it do...

0
Q: Simple way to loop through a JavaScript object array?

aboutjqueryI have an object array and i am using gulp 4. libs: { a: { js: [ { src: 'path/from/a1.js', dest: 'path/to/a1.js',, }, { src: 'path/from/a2.js', dest: 'path/to/a2.js',, }, ...

0
Q: Error in reading nrrd images in python

Vikram R SI am working on a image segmentation question. I am trying to load the nrrd format images and getting the following errors. What am I doing wrong? My code is shown below. mylist =[] laendo_nrrdextns = ['*laendo.nrrd'] for file in [glob.glob('D:/Training Set' + '/**/'+ ...

 
@CaptainObvious wow FGITW (at least in CR speed)
 
5:24 PM
Please don't delete and repost questions that have been closed. If your current code works, you may be better off at codereview.stackoverflow.com (as I was writing to say when you deleted your other question). — T.J. Crowder 54 secs ago
 
5:45 PM
This looks like it belongs on CodeReview, since it is not definitively answerable. — Will B. 14 secs ago
 
5:58 PM
Oups, sorry I didn't know CodeReview. I created a post on it: codereview.stackexchange.com/questions/257312/…Mythix 53 secs ago
 
0
Q: Use symfony/rate-limiter to build a GuzzleRateLimiter (middleware) - Need feedbacks

MythixBy reading this post https://symfony.com/doc/current/rate_limiter.html I had an idea to use the Symfony rate_limiter as a GuzzleRateLimiterMiddleware. What do you think about it? Do you think it is a good idea or not at all? I had the idea to use that because existing rate limiter middleware for ...

 
6:25 PM
 
6:52 PM
I would avoid using !important. It just causes issues later down the road. It would be better to architect your system to better handle font sizes. You set a convention with your developers to only set font-sizes using these classes. If you want to use utility classes like these you can't set font-sizes any other way. Then use code reviews to enforce the rule. — Michael Turnwall 44 secs ago
 
7:04 PM
I’m voting to close this question because it should go to codereview.stackexchange.comMarkus Zeller 50 secs ago
 
 
1 hour later…
8:14 PM
0
Q: Markdown table strings to two dimensional array converter implementation in C#

JimmyHuI am attempting to implement a converter which can convert List<string> type markdown table into two dimensional array string[,]. The experimental implementation public static class Converter { public static string[,] ToTwoDimArray(in List<string> input) { return ConcatenateVertic...

 
8:40 PM
0
Q: Generate a find command with pruned directories based on a config file

chalybeumThe idea is to perform indexing of filetrees while excluding certain directories. I want to give the user a simple conf file instead of having to edit the script itself. This is what I came up with: conf.file: cache home/files program: #!/usr/bin/env bash function get_opts { while read ...

0
Q: How to refactor this code properly and make it more readable?

datboiI have the following PHP function, that takes in two variables, checks their values using multiple if/else statements and manipulate their values. How can I make this piece of code more readable and easy to understand, i.e. refactor it? $myarr = somevalue(); public function messy($var, $n...

 
9:14 PM
Welcome to SO and welcome to the wonderful world of coding! This question is off-topic for SO and more suitable for codereview.stackexchange.com. You will receive better answers on codereview. stackoverflow.com/help/on-topicMichael Ruth 53 secs ago
 
9:30 PM
0
Q: React - Handle Click Logic

FamousAv8erI have a React component to demonstrate an outside click handler. I have been playing around with the demo and would like to improve the logic to handle clicking on a header. Here is the component import React, { useState } from 'react'; import OutsideClickHandler from './OutsideClickHandler.js';...

0
Q: Responsive pseudo-tables

Razvan ZamfirI have been looking for a way to display tabular data in a way that is optimal both for large (desktop) and small (smartphone) devices. I use divs instead of tables. class ResponsiveTableComponent { constructor() { this.responsiveTable = document.querySelector(".responsiveTable"); t...

 
9:40 PM
possible answer invalidation by ferada on question by user239206: codereview.stackexchange.com/posts/257260/revisions
 
@Duga that's okay - superfluous closing code fence removed
 
Please take the tour and read How to Ask. If you're just looking for a code review then go hither: codereview.stackexchange.comjwdonahue 45 secs ago
 
9:58 PM
@CaptainObvious hmm... isn't this too hypothetical for CR??
I'm surprised there are three answers
henceforth it went hot
 
@RufusL, See DRY principle. You wind up repeating yourself, everywhere you need to test for Treasure, and typing out the full logic expression is far more error prone than t1.isLocationMatch(x,y). It's also easier on your code reviewers eyes. — jwdonahue 1 min ago
 
10:46 PM
I’m voting to close this question because this post seems more like a CodeReview kind of question. — jwdonahue 15 secs ago
@jwdonahue Not a code review, I'm just looking for the best approach to handing tile based systems. Is it best to have a grid of gameObjects where each object is a tile, or is there a better approach. — Khakis7 58 secs ago
 
11:38 PM
0
Q: OpenGL Hello Triangles

tric2Here is my OpenGL "Hello, Triangles" program. I tried to avoid all the deprecated functions and put the triangles in a buffer. Even in two different ways. It is a bit bloated by the shader compile status checking. But this error info is very helpful. It is why I mention the original author whose ...

 

« first day (2874 days earlier)      last day (1157 days later) »