« first day (3436 days earlier)      last day (573 days later) » 

12:05 AM
REFRESH! There are 8051 unanswered questions (89.4700 answered)
 
 
4 hours later…
4:21 AM
0
Q: HttpClient Digest Authentication in VB.Net ERROR Remote server returned an error: (403) Forbidden

tenmaI'm writing an .NET application that uses HttpClient to connect to the API and retrieve video. The Documentation provided for "Cookie-based authentication" details the following to login: Call GET /api/getNonce In response you'll get a JSON object with realm and nonce (nonce is a session key for...

 
5:38 AM
0
Q: Mathematical expression evaluator (C++) Using Flex and Yacc Attempt2

Martin YorkAttempt 2: First Try here. Usage: ./expression Then you can either type expressions that are evaluated when you hit <enter>. 10 + 2 ^ 2 Value = 40 Or you can assign value to variables: data = 10 + 14 / 2 data + 1 Value = 18 Note: It is a feature of the language that all variables are always va...

 
6:13 AM
@Mast Added, thanks!
 
6:29 AM
0
Q: Refactoring into generic methods for other services layer, so instance can be pass on runtime

jackI have written a code which fetched the S3 objects from AWS s3 using S3 sdk and stores the same in our DB, the only problem is the task is repeated for three different services, the only thing is changed is the instance of service class. I have copy and pasted code in each service layer just to c...

 
 
1 hour later…
7:40 AM
@tung Thanks, reopened.
 
8:38 AM
0
Q: optimze code for entropy based binning algorithm

ignace decocqCan somebody have a look at my code for an entropy-based binning algorithm? I follow the idea of this website. The code with some test data can be found here. I think there is definitely some room for improvement w.r.t. readability and speed. I hope someone can help me find optimization solutions...

 
9:04 AM
0
Q: Implementation of Hashtable in C99

Jaysmito MukherjeeI tried implementing a general purpose hashtable in C99. The basic structure is i have a huge array of hashtable entries and each entry is the entry point to a doubly linked list so that in case there are hash collisions due to a poor hash function the data is automatically appended to the linked...

0
Q: rustymines - a mine sweeping game with a shenanigan

Richard NeumannI am learning Rust for about a week now. I just finished my first little working project, a mine sweeping game. The game comes with a little extra feature, namely old, broken (rusty) mines, that will not explode if you step on them. I'd like to have feedback on the general code style, since I'm ...

 
 
1 hour later…
10:14 AM
This is not on-topic for Stack Overflow. It might be on-topic at codereview.stackexchange.com but before posting there, check their help to see if it's both on-topic and not something to avoid, and to see how to post. — T.J. Crowder 50 secs ago
 
11:13 AM
@CaptainObvious looking forward for suggestion! Thanks!
 
0
Q: Rendering performances on a Minecraft-like game, in JavaScript and Three.js

WixonicI'm making a Minecraft-like game but I've a lot of performances problems... I analyzed my code and I realized that what took 98% of the time was my function which allows to take only a few blocks which are visible to the player. This function saves a colossal amount of time for rendering (I go fr...

 
11:42 AM
I think such questions are more suitable here: codereview.stackexchange.comRafael 58 secs ago
I’m voting to close this question because it belongs on codereview.stackexchange.com not stackoverflow.com — hanshenrik 38 secs ago
 
 
1 hour later…
12:58 PM
0
Q: This is a rock , paper , scissors bot , however is there a way to make this code cleaner and more advanced

Akshaltzimport random tries = 0 while tries <= 2: user_input = input("Enter your Symbol => ") possible_actions = ["Rock", "Paper", "Scissors"] computer_action = random.choice(possible_actions) score = 0 print(f"Computer Chose {computer_action}") if user_input.lower() == "rock" ...

 
1:24 PM
1
Q: Serving Laravel public/ contents when all Laravel files are in the same server directory

IchiI have a Laravel 8 project hosted at xxx/laravel/ on an Apache server, where xxx is the domain. I want to serve the contents of xxx/laravel/public/ when users access xxx/laravel/. However, I need to prevent access to other files at xxx/laravel/, e.g. xxx/laravel/.env. Normally, I would host the p...

 
2:12 PM
@CaptainObvious MRC like the users first question.
 
It's like, having a box of stuff, and instead of comparing the stuff inside the box, you are trying to compare the box as is, and not what is inside of it. I think the last posts mean well. this isn't a code review site, the goal should always be to learn. — Ilya Nazarchuk 57 secs ago
Please consider using codereview.stackexchange.com as this is not safe nor modern C++ and the community will be able to help you improve your code. Generally, for example, you should not be using "new". Read up on the STL and especially std::set. Also there is a mixture of integral and floating point data types, which looks wrong. — T33C 54 secs ago
 
2:40 PM
@Mast what can I do, if my post didn't get any comment or reply
 
@tung Be patient. It can take days, weeks.
 
3:07 PM
0
Q: Using a decorator for init in Python3+Pyside6, to avoid writing boilerplate code

sunyataI'm building a GUI application with Python3+Pyside6 and have many QDialog classes that are similar, and i was looking for a way to avoid having to rewrite the same code when initializing them. The code below is one solution to this This code creates a python decorator modal_dialog_init to avoid h...

 
3:33 PM
0
Q: Pattern for javascript string replacement

David542Does the following look like acceptable code to replace some escaped regex characters? export function parseString(s: string): string { // TODO : Fix it !!! (escaped characters...) let r : string; if ( s[0] === 'r' || s[0] === 'R' ) { r = s.substring(1); // no escape } els...

 
@Mast thank you
 
3:48 PM
Monking
 
4:16 PM
 
 
2 hours later…
6:10 PM
0
Q: Split strings with Windows paths

LetMeSOThat4UI have strings like this: "C:\Program Files\PostgreSQL\11\bin\psql.exe" -h localhost -U postgres -d postgres -p 5432 I need to split this string on whitespace, but retaining Windows paths as a whole, i.e. I need to preserve "C:\Program Files\PostgreSQL\11\bin\psql.exe". Apologies for asking ques...

 
7:02 PM
0
Q: I wrote this python script to take advantage of the xstack filter in ffmpeg, and I'm looking for improvements

jokoon The xstack filter allows to build a mosaic video file with ffmpeg. https://ffmpeg.org/ffmpeg-filters.html#xstack To automate its usage, I wrote a script that takes video files with unmatched resolutions, durations and ratios, and used letterboxing to fit them and encode it with only 2 stages, fo...

 
7:30 PM
IMHO should have been posted at codereview.stackexchange.comRand Random 30 secs ago
 
 
1 hour later…
8:33 PM
possible answer invalidation by Alex on question by Alex: codereview.stackexchange.com/posts/280090/revisions
possible answer invalidation by Alex on question by Alex: codereview.stackexchange.com/posts/280090/revisions
 
0
Q: About theme in winform

AurélienI implemented a theme "manager" that is currently working. Yet I'm totally not happy with. Here is the ctor public Theme(Color color1, Color color2, ....) { } I have a couple of themes public static Theme Test => new(...); public static Theme Light => new(...); public static Theme Dark => new(.....

 
9:37 PM
Once you have working code, you can get help with improving it on Code Review. — outis 43 secs ago
 
10:29 PM
0
Q: Javascript to create a rectangle of clickable buttons

Carla only proves trivial propconst num_rows = 4; const num_cols = 5; var rows = []; var buttons = []; for(var i = num_rows; i>0; i--) { rows[i] = document.createElement('div'); rows[i].id = "row" + [i]; document.body.appendChild(rows[i]); buttons[i] = []; for(var j = 1; j<=num_cols; j++) { buttons[i][j] = do...

 
11:21 PM
0
Q: Single header geometric mesh library in C

TristenI'm writing a simple physics and rendering demo for my senior capstone class, using GLFW, OpenGL, and GLM. I decided to begin writing a simple geometric mesh creation library in C to make meshes without worrying about vertex attributes or buffer objects. You can create any mesh and create quad or...

 
11:47 PM
0
Q: Selenium Wrapper class improvements needed

Avrigeanu LaurianSo I wrote this class which is supposed to be a Selenium wrapper to simplify and increase the resilience of Selenium as a whole. Is there anything I can do to improve performance and optimize the code? A better view of it here: https://paste.mod.gg/xywpnjodlujt/0 using System.Data; using Syst...

 

« first day (3436 days earlier)      last day (573 days later) »