« first day (4067 days earlier)      last day (237 days later) » 

00:15
REFRESH! There are 6139 unanswered questions (92.1056 answered)
 
2 hours later…
02:34
 
2 hours later…
04:42
You are asking for way too many things in one post. You seem to be asking for 1. a code review, which is not on-topic for Stack Overflow, 2. the difference between the two ways of consuming a task group, and 3. the difference between the two ways of measuring time. — Sweeper 46 secs ago
 
6 hours later…
10:23
0
Q: Simple C++ Packet Class for Sending and Receiving Data

sdlkfjcxvCurrently learning C++ and needed a way to send data from one place to another, so I wrote this simple packet class which does the following: Create a packet with a key and some data Convert that packet into a byte buffer that I can send somewhere Parse that buffer back to the key and data main...

10:44
0
Q: Python Simple checking string function

Tamagil Tamagilthe task was: Enter a list of keys with different meanings (numbers, words, symbols). You need to check if there are two words in a row in this list and display them on the screen. If there are no such pairs, then you say the phrase “Not enough words!” code: def solution(): x = input().split(...

11:05
0
Q: RTK Query with Firestore onSnapshot not updating in real-time

AndrianI'm using RTK Query to fetch cart items from a Firestore collection. My goal is to get real-time updates using Firestore's onSnapshot method. However, I don't get real-time data after its changes by adding items to cart or deleting for instance instead I need ot refresh the page. Here is the code...

11:29
@SᴀᴍOnᴇᴌᴀ I've waking up between 3AM and 4AM every day this week.
 
1 hour later…
12:49
0
Q: A web page for running AI vs. AI Connect Four matches with selection of algorithms and search depths

coderoddeThis time, I have prepared this page where a user may select what AI bots will be run in the game of Connect Four. The entire repository is here. Code index.html: <!DOCTYPE html> <html> <head> <title>AI vs. AI playing Connect 4</title> <meta charset="UTF-8"> <meta name="...

 
2 hours later…
14:56
If it's working, you should probably ask for a code review at codereivew.com - One optimization would be to only make one allocation instead of rows + 1 allocations. — Ted Lyngmo 44 secs ago
You could improve the part that deletes the files, but apart from that this method seems fine. Did you have something in mind? Like, what specifically do you want to improve? Stack Overflow is for specific questions; if you want a code review, there's a separate site for that: Code Review, but first read their How to Ask page since they work a bit differently. — wjandrea 39 secs ago
I was thinking about avoiding the use of the array. -- Yeah, I started with Code Review, but couldn't post my question, as I was stopped by a message asking to answer a captcha, but without any captcha in view. — macxpat 37 secs ago
 
3 hours later…
18:27
Monking
18:41
0
Q: Auth0 Credentials Manager in Android app

KevinI am building an Android app that communicates with a REST API using Retrofit2 and uses Auth0 for authentication. The Android app needs to store access token from Auth0 and use it to authorize its requests. For storing, refreshing and retrieving credentials I am using Secure Credentials Manager f...

 
2 hours later…
20:22
If you were looking for feedback on the code you've written, you might want to check out code review. — Steve Summit 22 secs ago
20:47
0
Q: Tic Tac Toe CLI in Clojure

cgoatesI wrote a command line tic tac toe game in Clojure. I've broken this post into three sections: Feedback Requests, Gameplay, and Code Feedback Requests I'm looking for feedback on: How "idiomatic" my code is How I can make the error-checking code in -main less deeply nested (sort of like a "guard...

 
1 hour later…
22:04
General code review questions should not be asked here, they may fit on codereview.stackexchange.com. — Chayim Friedman 2 mins ago
 
2 hours later…
23:37
0
Q: "Polite" internet connectivity check on separate thread

Jason CI wrote this class that checks for internet connectivity on a background thread. Targeting Python 3.10. It has two main design goals: Minimize the time get_state() (gets connectivity state) takes to run. Be polite to the test server (8.8.8.8 in this case): Stop hitting it if nothing appears inte...


« first day (4067 days earlier)      last day (237 days later) »