« first day (2450 days earlier)      last day (1568 days later) » 

12:00 AM
RELOAD! There are 6368 unanswered questions (90.0720% answered)
 
12:35 AM
0
Q: C# Rest Client Benchmarking

Melbourne DeveloperI build a C# Rest Client library / framework. I noticed that it seemed to be significantly faster than RestSharp for GET at least. So, I decided to put together some benchmarks comparing it to other clients. I'm a bit new to bench-marking, but I don't want to get hung up on best practice. I'd jus...

 
 
2 hours later…
2:17 AM
0
Q: Possible SQL Injection with redirect to webpage if injected query is correct

JavaScripterUnder the authorization of my friend, I am testing his website against potential vulnerabilities. I was trying to find if I was able to inject a SQL query into a POST request parameter hi' or 1=1 --: query=hi'%20or%201%3d1%20-- I found that the document prints out: <div class="error">index j...

 
 
2 hours later…
4:21 AM
0
Q: Trying to sort text into groups to decrypt alphanumeric codes (Python IDE 3)

 Cari BerryI’m using Python IDE 3. My goal is this: If I have a string of text, ‘ABCDEFGHIJKL’, I want to sort it into groups, like three groups (‘ADGJ’,’BEHK’,’CFIL’). I require input for this, but the prompts aren’t showing up and I can’t type in input. Here’s my code: #data code_text = input('Text: ').l...

 
 
1 hour later…
5:46 AM
sorry I can't do code review for you here. Please ask a more specific question. Get yourself familiar with OAuth 2.0 if you think this is the right authentication standard for your application. Compare the different flows and then pick and implement the one that fits your needs best. — pz90 20 secs ago
 
 
2 hours later…
7:24 AM
0
Q: Manage Recent List Of user and staff type objects

Prashant TukadiyaSo I have a view which shows recent 5 staff users and 5 customers for a restaurant app. I am storing this in user default. I am also managing the currently selected object. Here is my class. //---------------------------------------------------------------------------------------- //----------...

 
7:40 AM
possible answer invalidation by greybeard on question by Brett DeWoody: codereview.stackexchange.com/posts/235801/revisions
 
 
2 hours later…
9:55 AM
Monking
 
10:47 AM
0
Q: Accurately measure ASP.NET Core 3.x actions execution times (Web API project)?

AlexeiI want to be able to log the time spent by a certain Web API action in an ASP.NET Core 3.x application. This is a very old question from ASP.NET which relies on global action filters, but in ASP.NET Core, I think middlewares are more appropriate. From a client's perspective I want to measure a...

 
 
2 hours later…
12:38 PM
Monking
 
1:09 PM
0
Q: java : jumping caterpillar program

learnerLooking for code review, suggestions for improvement, best practices etc. Given N leaves numbered from 1 to N . A caterpillar at leaf 1, jumps from leaf to leaf in multiples of Aj (Aj, 2Aj, 3Aj). j is specific to the caterpillar. Whenever a caterpillar reaches a leaf, it eats it a little bi...

 
 
1 hour later…
2:10 PM
0
Q: A multi-thread Producer Consumer, where a Consumer has multiple Producers (C++17) - Part 2

User12547645This post is based on A multi-thread Producer Consumer, where a Consumer has multiple Producers (C++17). I am trying to build a Consumer that consumes data from multiple Producers in a thread-safe manner. I extended the code in such a way that it is now possible to have an n:m relationship (many ...

 
 
1 hour later…
3:23 PM
Sounds like a candidate for codereview.stackexchange. — domsson 33 secs ago
 
0
Q: optimising two parameter by binary search

user216840I want to do 1076C problem of codeforces by binary search. But it is working of multiplication only and not optimising for addition. I have tried with the limits. here is my code: #include<bits/stdc++.h> using namespace std; typedef long long ll; int main() ...

 
4:02 PM
I'm voting to close this question as off-topic because it should be on codereview.stackexchange.comTân 33 secs ago
@Tân - Doesn't seem like a codereview question to me at all. I also think it's answerable as-is. Fundamentally, what it asks is whether there's any security impact in reusing the connection. — T.J. Crowder 1 min ago
 
4:33 PM
0
Q: Windows function to use NamedTemporaryFile

natter1For my package dealing with pptx-files I need to create a temporary *.pptx file, to open in PowerPoint (e.g. to export as PDF). After some research I found that tempfile.NamedTemporaryFile is broken on Windows (you could have a temporary file, or you could get a filename - but you cannot have bot...

 
4:53 PM
0
Q: C - manually parsing char* into integer

Kied LlaentennI'm trying to parse a char* into an int without using atoi(). I walk through the string, check if it's a valid digit, then add that digit to my integer by multiplying by 10 and adding the digit. I am not accepting negative integers. Here's the code I'm using: #include <stdio.h> #include <stdlib.h>

0
Q: @angular/fire Firestore cached service

Raphael CastroI've written a service for firebase that handles all my Firestore calls. The goal is to only read the database once on app init( load() function) and then keep a copy of the database inside local storage so that we won't be charged for unnecessary database reads every time we write to the databas...

 
 
4 hours later…
8:57 PM
0
Q: Custom Connection Pool Using Java

here4learnI have built this very simple Connection Pool in Java Using Factory pattern, My thought here was to try on 2 connection Type, SQL, NoSQL. Please review and suggest if my approach is fine. I am trying my hands on Java design patterns, so your review will help me to see where I need to improve in ...

0
Q: Retrieve status for a list of FedEx tracking numbers

HorribleBackground If you buy something from our facility, you will get a box with a shipping label on it. The two main numbers it will have are a FedEx tracking number and a carton number. For cartons that are not already in a manifested or invoiced status within our warehouse management system, it is ...

 
 
1 hour later…
10:19 PM
0
Q: Dynamic array class in c++

Person GuySo, as an exercise I wanted to write a dynamic array, like std::vector. I wanted to know if there are any things that could be done better or anything I did wrong. Thank you! template<typename T> class myVector { using size_type = size_t; public: void pop(void) { change...

 
10:41 PM
Questions about codereview should be asked at Code ReviewJens 1 min ago
 
11:05 PM
See: stackoverflow.com/help/on-topic This kind of question is not really appropriate here. Perhaps codereview.stackexchange.com is a better place for this kind of question. — John Szakmeister 23 secs ago
 
11:20 PM
0
Q: Rust Hamming Code Quizzer

john01davI am currently learning Rust. To allow myself to practice, I created the following program that helps the user to practice hamming codes (the goal is for the user to use this program to be able to write the hamming code for a particular code word). I am aware of a very small algorithmic error in ...

0
Q: Android - Simplify ViewModel classes

Allister the HamsterLet's say I have 2 repository classes: public class XRepository { private XDao xDao; private LiveData<List<X>> allXs; public XRepository(Application application) { AppDatabase database = AppDatabase.getInstance(application); xDao = database.xDao(); allXs = xD...

 
11:40 PM
0
Q: Recipe Manager in C

srolei have finished a school project recently which was a recipe manager to be implemented in C. Coming from C# I am really struggling on getting used to the programming style of C. I feel like the code is super clumsy and not really neat. They've taught us that potential errors should always be caug...

 

« first day (2450 days earlier)      last day (1568 days later) »