« first day (3737 days earlier)      last day (577 days later) » 

00:09
REFRESH! There are 7279 unanswered questions (90.5787 answered)
0
Q: Is there a way to speed up python while loop without numpy or pypy or cython

Kimi MI'm trying to solve the USACO problem Censoring(Bronze), which was the 1st problem for the 2015 February contest. My solution works for some test cases, but then times out for the rest. How do I speed up the code? I tried to use Numba, but Numba doesn't work in USACO IDE. https://ide.usaco.guide/...

 
4 hours later…
04:19
0
Q: Click temporization on user interface elements

user275176Implementation to accommodate different behaviours based on how often an user interface element is clicked. It supports number of click and number of clicks in a time frame. var thresholder = (function() { return { supply : (betweenShifts) => { return { ...

 
3 hours later…
07:03
Monking
 
3 hours later…
09:52
0
Q: How to implement calling an instance out of the DI system in C#? Using constructor injection vs GetRequiredService()

karwenzmanDuring my online courses I have received the idea to let the DI system do its work. And to make dependencies visible in my code. This, i want to apply here. This thread is about how to implement the call of SettingView in a reasonable way. You can find the code on GitHub Issue. First version The ...

10:17
0
Q: How to move builder to different parts?

AnthonyI have builder for creating schema. Let's see how it looks and usage. public class UISchemaBuilder { private readonly string _groupName; private readonly UISchemaBuilder _schemaBuilder; private readonly UISchemaSpecification UiSchemaSpecification; public UISchemaBuilder() ...

Monking
10:42
0
Q: Could this verbose-but-functional code be tightened using modern Python best practices?

Phil SheardI have a workflow which gathers social media posts from an API then stores metadata about them in a (Supabase) Postgres database. This section of code checks the db for existing post IDs, so that we can add them to the records before performing an upsert to either update existing or add new rows....

 
2 hours later…
12:23
-1
Q: The code below it is a Sticky Note App, please tell me how can I make it better or more advanced or features that make it advanced

Shraddha Shettyimport sqlite3 as sql from tkinter import messagebox from tkinter import * from tkinter.ttk import * from tkinter.font import Font from ttkthemes import ThemedStyle import logging logging.basicConfig(filename='app.log', level=logging.INFO, format='%(asctime)s - %(levelname)s ...

12:49
Monking
13:01
probably you can find working qt version before this merge codereview.qt-project.org/c/qt/qtmultimedia/+/…Lishen 7 secs ago
14:00
Monking
14:30
0
Q: An immutable class that contains Dictionary properties and needs a distinct hash code based on those Dictionaries

J.K.I have a Job class that represents jobs in a manufacturing system. The idea is that a job requires some quantity of certain materials, and it outputs some quantity of materials as well. It also has an amount of time it takes in minutes. I'm representing the material requirements/outputs using Dic...

14:46
@Etemon Open-ended review & suggestion questions are off-topic on Stack Overflow. If you'd like a review of your working code, you could try posting on Code Review SE, but be sure to check with their content guidelines before asking. — Brian61354270 1 min ago
15:10
Stack Overflow is for specific programming questions. If you want to get feedback on working code, there's a separate site for that: Code Review. Please be more specific on exactly what you want to improve or how you want to improve it. — MrFlick 28 secs ago
0
Q: Parallel handling Redis events is very slow in C#

Szyszka947I have SignalR app that publishes sent messages to Redis. My console app subscribe to channel where these messages are sent, deserializes it and saves in database. Problem is with handling these events, as I want to make it in parallel. If many events are published, then the code crashes on openi...

 
2 hours later…
17:47
possible answer invalidation by apaderno on question by Kimi M: codereview.stackexchange.com/posts/286290/revisions
possible answer invalidation by apaderno on question by Kimi M: codereview.stackexchange.com/posts/286290/revisions
possible answer invalidation by apaderno on question by Kimi M: codereview.stackexchange.com/posts/286290/revisions
18:43
0
Q: Middle-outwards alternating iterator

Seanny123I have a use-case where I want to iterate from the middle of an array outwards, so I generate a list of indices as follows: def array_indices_from_middle(array_len: int, num_indices: int = 16) -> list[int]: """ Create indices for an array starting from the middle and then appending indice...

 
2 hours later…
20:24
0
Q: Rand() function giving same number

ChristineThe random number generator always outputs the same integer. How do I solve it? #include <iostream> #include <random> using namespace std; int randint(int x) { int n = rand() % x; return n; } int main() { int x; cin >> x; cout << randint(x); return 0; } I tried to use the rand() funct...

20:53
@CaptainObvious CNI how to question.
 
1 hour later…
22:42
@RMunroe I just got lost in XKCD world for at least 15 minute.... thank you... I think
@RMunroe 404 not found?

« first day (3737 days earlier)      last day (577 days later) »