« first day (3188 days earlier)      last day (812 days later) » 

12:00 AM
REFRESH! There are 8046 unanswered questions (89.1987 answered)
Al Ro, Yes. Similar effort: Formatted print without the need to specify type matching specifiers using _Generic writes via interleaves formatting code and arguments. — chux - Reinstate Monica 33 secs ago
 
 
2 hours later…
1:56 AM
May be a valid question for CodeReviewquaabaam 53 secs ago
 
2:33 AM
Best suggesting I could give is to ask a question that can be answered here. What exactly is wrong with the above code, are you getting exceptions or unexpected results maybe? If you're just looking for improvements you might be better posting on Code ReviewHursey 9 secs ago
 
0
Q: Implementing hash table

BeckerI am implementing a program to interact with hash table, the data to be hashed is just number. It works but I want to know if there is any error like: memory leak,... in my code and how to improve my code. Any help would be appreciated. #include <stdio.h> #include <stdlib.h> #include <math.h> #in...

 
 
3 hours later…
 
2 hours later…
8:18 AM
You may wish to post it at codereview.stackexchange.comSerg 41 secs ago
 
0
Q: Advent of Code 2021 Day 4

presciHere is my attempt at Advent of Code Day 4 using Haskell. A file contains list of number in first line. And subsequent lines have the bingo Cards 7,4,9,5,11,17,23,2,0,14,21,24,10,16,13,6,15,25,12,22,18,20,8,19,3,26,1 22 13 17 11 0 8 2 23 4 24 21 9 14 16 7 6 10 3 18 5 1 12 20 15 19 3...

 
8:49 AM
0
Q: Moving from Entity Framework to Dapper with DTO : Case Study

Simone Spagnasp_name return a Dictionary(Of Integer, DTO) using the passed params. I attach VB.NET code. I have to convert the call using dapper. Can you give me some suggestions? _dbHelper.ExecReader( "sp_name", parameters, Function(reader) ...

0
Q: Clear MainViewModel

AarnihautaI make WPF application and I need start "subprograms" (scan directory & send to the API for now, in future - accept incoming files) in MainViewModel, but my solution wrong and ugly. I want to take out some code to the classes, rename methods/properties, structure all members, but I don't know wha...

 
9:15 AM
0
Q: Stamp Combination Kattis

Dat LeI tried to solve Stamp Combination problem on Kattis, which basically gives an integer array and a target number. The problem asks whether we can find a contiguous subarray which starts at either end of the array or a combination of both subarrays (also start at either end and must not overlap) a...

 
9:42 AM
0
Q: MySQL exact time difference with 3 shifts

Memo HaldanMy previous question here is still same but i was working on it now i have a solution for it. if any of you has a better solution, it will benefit everyone. Same question but my own solution is different. Code below will run as intended but may need some improvements. drop table if exists ...

 
10:26 AM
aight. another zombie on the ropes
 
10:53 AM
possible answer invalidation by pee2pee on question by pee2pee: codereview.stackexchange.com/posts/273325/revisions
 
11:03 AM
possible answer invalidation by pee2pee on question by pee2pee: codereview.stackexchange.com/posts/273325/revisions
 
@Duga Was looking to remove the question from the close queue and in my haste mistook Python: select n of each type from ordered dict as the other post. Whilst I do believe the question is on-topic, I shouldn't have voted to leave open. Can y'all check if you think the question should be closed? Thanks.
 
11:28 AM
0
Q: Python: functions vs methods vs classes for simple cases

pee2peeI have the following file that is included in others. I realise I need to put in try/except but for the purposes of this question, the below should suffice Function Already done in the example below. Except for try/except am I missing anything obvious? Class I was looking at https://stackoverflow...

 
11:55 AM
0
Q: Round Robin algorithm implementation

user254535I wrote a program that implements the Round Robin planning algorithm. The total number of processes is read directly from the input standard, and for each process the arrival time and execution time are specified. The time interval of each process (quantum) is read from the standard input. I calc...

 
 
1 hour later…
1:07 PM
Is it not working as expected? If you just want a review please see Code Review. — Calculuswhiz 2 mins ago
 
0
Q: How to create a dictionary using keys from another dictionary and values from a numpy array

Sparsh GargI am trying to create a dictionary such that the new dictionary's keys come from an old dictionary X and its values come from a numpy array Y. My current code assigns all the keys in X to just one value in Y. import os, json,codecs from collections import OrderedDict import numpy as np def rea...

 
1:26 PM
@GuruStron "...and can be missed even by responsible, dedicated and knowledgeable..." Well if according to the docs docs.microsoft.com/en-us/dotnet/api/… We get easily the knowledge that it should be called, but will be called regardless. All dedicated resources, even juniors will quickly learn on their own because they consume classes that is and use code review from seniors. Not to be splitting hairs but IMHO one can expect this quality rom developers, and I do with my team and it was never a problem. — T. Nielsen 20 secs ago
 
2:01 PM
possible answer invalidation by Rose on question by Rose: codereview.stackexchange.com/posts/273322/revisions
 
@Duga Dueling moderator comments. I have rolled back the edit because it does AI for one answer, but perhaps it would be better the my rollback was rolled back.
 
2:19 PM
Oh my
Am I the only one that thinks codereview looks terrible now?
 
@pacmaninbw I did a partial rollback, partial cleanup. Duga's not noticed, you wanna check?
 
Still AI, but this is just going to be one of those messes on a question that should have been cleaned up before it got answers.
@konijn Don't understand the question.
 
The blurbs are gone on my front page
 
@pacmaninbw You're probably right. What's the AI? Richard Neumann's first bullet?
 
2:27 PM
@Peilonrayz Yes
 
This looks terrible
 
@konijn I think quite a few people do... got released some time yesterday D:
@pacmaninbw Ok, ty
 
@Peilonrayz Where can I can upvote a rage thread to make CR or SO know?
 
-269
Q: New post summary designs on site home pages and greatest hits now; everywhere else eventually

Ben Kellytl;dr We’re starting a rollout of the new post summary design to many existing screens, starting with greatest hits. This will be a slow rollout, with only one set of related screens changing at a time. What we’re shipping now We’ve built a new component to replace the existing post summary imple...

Wow that was at 35 yesterday
 
@Peilonrayz positive or minus 35?
 
2:33 PM
Net score of positive 35, I didn't look at the up or down votes, so didn't put +35
 
I for one don't care about bookmarks, but who am I to judge.
Don't really like the change.
I miss the most recent edits.
 
I miss the blurbs
I realize now that the blurbs determine whether or not I open a question
 
@konijn The blurbs could be important, especially with badly titled questions.
 
s/could be/are
 
2:59 PM
This question woudl be better asked at Code Review Stack Exchange. At Stackoverflow we generally deal more with actual problems, rather than people wanting cosmetic changes to their code. Check their on-topic guidance before posting though, obviously. — ADyson 58 secs ago
 
3:41 PM
@Vogel612 VIM fan?
 
@pacmaninbw sed fan
 
3:55 PM
0
Q: Laravel 5.4 getting default values of Model attributes

HmanA6399I'm using this function in a Model to get a list of default values of all attributes its attributes right from the database. // MyModel.php public function getDefaultValues() { $cols = $this ->getConnection() ->getDoctrineSchemaManager() ->

0
Q: Optimize PHP code for Wordpress shortcode (Star-Rating)

TorstenI am using WP with the Avada theme and the built in Star Rating element as well as ACF Pro. Unfortunately I found out that the Star-Rating element adds a rating scheme to the footer of the website without asking. There is also no way to disable this. This is annoying So I created my own shortcode...

 
 
1 hour later…
5:14 PM
2
Q: Is this implementation of the `mv` command the most appropriate? It can be improved?

TheBigManI wrote a program that implements the same function as the mv command. I know this is not the best implementation, so I would like some suggestions for improvement, possible problems. What you should change? code: #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #incl...

 
Since no one seems to want to answer my VBA question even though there is a bounty on it, I am considering deleting the question since it is over a month old. Need to help with the statistics on this site.
 
Monking
 
@pacmaninbw nah, keep it up, Mat will get around to it at some point
and IIRC you shouldn't be able to delete it while it has a bounty anyways :)
 
@Vogel612 He told me it was daunting in the Rubber Ducking chat room. :)
 
I know, I saw
he also said he'd try to get it done over the weekend
 
5:22 PM
Yes he did
 
pretty sure he got sidetracked by the Rubberduck Website for a bit
 
Is he Rubber Duck?
Or is that another user?
 
nah, that is/was Chris
Rubberduck203 (Chris McClellan) is much more active in the Rust and Woodworking space these days
quite active on twitter, funnily enough
 
6:08 PM
0
Q: What are the issues with implementing the Shortest Job First algorithm?

TheBigManI wrote a program that implements the Shortest Job First (SJF) scheduling algorithm. The total number of processes is read directly from the standard input, following that for each process to specify the execution time. The average waiting time is also calculated and the order of execution of the...

 
6:34 PM
0
Q: greedy coloring in python

EmilioI made a script where I generate a graph and then color it with four colors. The colorate graph is then drawn using networkx. The program should not put two colors adjacent to oneanother but when you run the program, you can see it does. I really dont know what the issue is, my best guess is that...

0
Q: Tips to Finetuning to increase the GFLOPS of a SIMD kernel

Atharva DubeyGiven an Image I with dimensions as {rows, columns}, for every pixel in the image, the following needs to be computed - calc1 = image[i][j - 1] - image[i][j]; calc2 = image[i-1][j] - image[i][j]; calc3 = image[i][j-1] - 2 * image[i][j] + image[i][j + 1] calc4 = image[i-1][j] - 2 * image[i][j] ...

 
Please read How to Ask, where one of the bullets is "If it is possible to create a live example of the problem that you can link to (for example, on sqlfiddle.com or jsbin.com) then do so - but also copy the code into the question itself." Also, "better" is an inherently opinion-based question. If you want a review of the code you have written, check the help center of Code Review to see if your question can be made on topic for that site. — Heretic Monkey 46 secs ago
 
Step 1: throw your desktop computer out of the window and start using a mobile device (apparently, designing a layout that only works for mobile phones is more welcoming and more inclusive nowadays ¯\_(ツ)_/¯). Step 2: turn your mobile phone screen into grayscale mode so you don't get blinded by all the yellow labels. Mission accomplished. — 41686d6564 1 hour ago
@41686d6564 Step 1: glue mobile device to desktop computer. Step 2: find keyboard/mobile device interface (it's gotta exist somewhere) and mouse/mobile device interface. Step 3: Browse stackexchange with new "desktop"! — Phoenices 39 mins ago
 
7:27 PM
0
Q: priority-based algorithm - how can I make it better?

user254559I have developed a program that implements a Priority Scheduling algorithm (Priority Scheduling). The total number of processes is read directly from the input standard, each process specifying the arrival time and the execution time, respectively its priority. I calculated the average response t...

 
@SᴀᴍOnᴇᴌᴀ Step 4: buy a second 'computer' which is a desktop just for SE chat.
2
 
one of my former development leads used to want a separate computer just for team chat
 
Oh, how come? I've not seen anything that bad with it, except when it breaks my graphics drivers when I screenshare, the ridiculous latency and has a terrible chat preview.
 
Monking.
 
Monking
 
7:34 PM
@Peilonrayz Sharing my screen in Teams makes my notebook's fans spin faster than compiling our complete codebase.
 
:O Ok yeah something doesn't seem right there...
 
@Peilonrayz I believe it was when he got a second monitor and rotated the two vertically - he liked having one screen for his IDE and the other screen for the browser to test the web app we were working on
IIRC later he went back to just one screen
I've become accustomed to my wide screen, with having two side-by-side sets of tabs in my IDE
 
@SᴀᴍOnᴇᴌᴀ Oh, I've not come across that workload.
Interesting, I have a widescreen and have my IDE take up 2/3s and have another window (FF/notepad) take up the other 1/3. When I need to I do the same as you when I need to compare code or something. Nice Win+Up
 
8:01 PM
@gunr2171 This question asks if a specific code implementation violates a specific programming theory rule. That's on-topic enough here, not a request for a general code review. — TylerH 5 secs ago
 
8:20 PM
1
Q: Python: token request, SQL user fetch and API calls (version 2)

pee2peeMy original question is here Python: token request, SQL user fetch and API calls and as per the comments, I have since refactored as much as code as I think is sensible so was looking for feedback on that I have the files as below. What I'm looking for is some feedback with regards to security, r...

0
Q: C implementation of a minimal shell

Otto von BismarckI wrote a program that implements a minimal shell and reads from standard input commands and executes them. Is my implementation ok? I admit that I helped myself a lot with google. Could I have written a better implementation? Also, I tried to check the program with the dash command, because they...

 
possible answer invalidation by Toby Speight on question by TheBigMan: codereview.stackexchange.com/posts/273367/revisions
 
@Duga ```
 
8:44 PM
It seems to me this question is more suited to be asked in the Code Review Forum. Code Review is a question and answer site for peer programmer code reviews. Please read the relevant guidance related to how to properly ask questions on this site before posting your question. — itprorh66 25 secs ago
 
9:10 PM
Questions about improving otherwise working code may be better suited for Code Review, but be sure to follow their content guidelines and How to Ask to ensure an on-topic question. — jmoerdyk 53 secs ago
 
0
Q: Collect values from an api more quickly

Brondby IFTo collect the values of an api, I use three loopings, I would like to know if it is possible to improve this method that I use. a = 9625897 def graph(a): url = f'https://api.sofascore.com/api/v1/event/{a}/graph' response = requests.get(url, headers=headers, timeout=1).json() if 'gra...

 
9:25 PM
What is your question? Are you asking for a code review? — Drew Dormann just now
 
10:07 PM
0
Q: Python: Algorithm for fast boundings box collision between two large sets of m and n rectangles

BriofitAABB: Axis Aligned Bounding Box ALGORITHM: Compare m number of AABB to n number of AABB to find if there is a collision between m and n sets. PROBLEM: Slow implementation for large number of rectangles (m>1000)(n>100000) POSSIBLE SOLUTION/QUESTION Is there any algorithm such that bounding boxes a...

 
10:33 PM
0
Q: Iterators and tuples: overdone, underdone or just on the spot

AlwaysLearningThe code below is my solution to the following problem (problem #5 on LeetCode): Given a string s, return the longest palindromic substring in s. I wonder whether my use of iterators is an overkill. They seem to be convenient for calculating the length of the ranges and for constructing the str...

 
11:26 PM
0
Q: A prime iterator in JavaScript

thstThis is an implementation of a Sieve of Eratosthenes as [Symbol.iterator] in JavaScript. Comments welcome, my JS is a bit rusty. Making a class of this is mainly the reason to have fun with the iterator. I will build a generator of it next. UPDATE: inverting the sieve flags removes the need to i...

0
Q: Decoding audio encoded with LDAC codec

Anonymix321The full code (works on x86_64) is available on GitHub: https://github.com/anonymix007/libldacdec/tree/fixedpoint At first I used just original floating-point version, but it turned out to be too slow, because used DSP (32 bit, 120 MHz max, 112kB program and 448kB data RAM) does not have FPU. Rew...

 

« first day (3188 days earlier)      last day (812 days later) »