« first day (2861 days earlier)      last day (47 days later) » 

12:00 AM
RELOAD! There are 7364 unanswered questions (89.5900% answered)
2
 
12:31 AM
 
0
Q: under 100 line Python pynput keyboard + mouse input printer

my_first_c_programI needed to have input shown for some things in a game I play on Linux, but Linux doesn't seem to have any good input display programs. I decided it would be good enough to have python print to a pair of xterm windows (one for keyboard and one for mouse) using pynput. I do this using two differen...

 
1:03 AM
0
Q: Optimize Yahoo Finance Code for Analysis

m2rikI am trying to analyze a number of companies using financial data I gathered from Yahoo Finance. I am also using the yfinance API to get some more details about the company using functions. Since I am trying to do this for a number of companies Each Iteration needs to be quick. Currently, 1 Compa...

 
 
4 hours later…
5:06 AM
Monking
 
 
4 hours later…
9:05 AM
possible answer invalidation by Matty on question by Matty: codereview.stackexchange.com/posts/256670/revisions
 
0
Q: Simple command line parser

user1056837So here's a simple command line parser. Is it safe? I can't use anything but C++14 and standard library. class cli { public: struct parameter { struct help {}; struct single {}; template <typename T = void> struct value { using type = T; }; parameter(const std::s...

0
Q: Best way to store millions of float data in c++

mohamed bousselmiI have processed force data (Float type), The number of data is around 2M -10M of data. which is the best way to store the data? should I use std::vector ? void Calculateforce(uint16 f){ std::vector <float> Forces; /* Do the calculation*/ Forces.push_back(f); } or is there a better way?

 
If this code is working, code review may be a better site for asking. — Damien 39 secs ago
 
9:22 AM
@Duga rolled back
 
0
Q: Matrix Calculator program in C language. How to avoid redundancy

Jaskirat SinghI am trying to make a program for matrix Calculator and have done this so far. I want to avoid iteration or replication of the statements in my code but I want to restrict using the pointers in this. Can you suggest improvement with the code I can do? I know I can use structures as well but seems...

 
9:51 AM
It seems to be a question for Code Review. — Syscall 35 secs ago
 
10:21 AM
I think the question is better suited for codereview so you might want to ask over there. — DerMaddi 31 secs ago
 
 
2 hours later…
12:23 PM
0
Q: c# make synchronization function waitable and cancelable

Squirrel.DownyI need to call some synchronization function and need they running in background and canbe canceled. So I write this: private static async Task WaitSyncFunction(Action syncFunction, int timeoutMilliseconds, CancellationToken token) { var syncFunctionTask = Task.Run(syncFunction); var time...

 
12:49 PM
0
Q: Kattis 'Driver's Dilemma'

AlexThe full problem description can be found here, a slightly trimmed version below: A car driver is travelling on an isolated road (no gas stations, houses, or cell phone coverage). The driver glances at their fuel gauge: there is exactly half a tank left. They stop and see that the fuel tank is l...

 
1:14 PM
1
Q: A byte endian swapper

drakonofThere are both a simple byte endian (little and big) order swapper and its testbench. A data stream inputs to the module and is converted to the other endianness by computational logic. byte_order_swap.v `timescale 1ns / 1ps module byte_order_swap # ( parameter integer DATA_WIDTH = 32 ) ( ...

0
Q: Position Testing, a Snake game

MrLowBotRight now i am trying to make as many different tests as possible to learn as much as possible about testing. I have a game that i made, a snake game, but i need to test it. Right now i am using a class called "Pixel" that has my x/y cordinates. I am trying to add them together as my first test b...

 
@CaptainObvious broken
 
1:51 PM
If the tests are successful and the code works, this would be a better candidate for Code review. — El_Vanja 44 secs ago
 
2:05 PM
0
Q: How to refactor code to make it Unit testing friendlier?

MagePsychoI have a class ParentIdResolver which returns the parent id of the product based on the type. The class looks like this: <?php namespace App\Model; use App\Model\Product\Bundle; use App\Model\Product\Configurable; use App\Model\Product\Downloadable; class ParentIdResolver { /** * @var...

 
2:31 PM
0
Q: Final Testing Of Snake Game

MrLowBotHello! I've been posting here as of recently because i need help with my final update of my code! I know that everything is kinda of a mess but i'll try to explain as best i can. I have three different classes: Starter, GameWorld, TestClass (And an interface). The GameWorld has two methods, one f...

 
2:50 PM
Also, this question is maybe better for codereview.stackexchange.comSomeBody 33 secs ago
 
 
1 hour later…
4:09 PM
Hi there
 
0
Q: Rails Dashboard data wrangling

NathanIn a Rails app I’ve got 1-to-many relationships where I want to summarize on webpage dashboard: Reservation (1) Customer_Name ReservationItem (many) reservation_id item_id quantity out_date_time back_date_time HTML Table Reservation_ID Customer Name Item 1 Quantity (Sum) Item 2 Quantity (Sum) I...

0
Q: Dynamic text rendering from form data, Express proxy server API requests, and validation in React

Kyle WilliamsI've created a Node.js/Express application that accepts personal data in a form on the front end with React (name, address, etc). It's purpose is to take a user's name, address, and some other info and use it to display a formal letter (Dear Mr John Doe...) with the user's info automatically fill...

0
Q: How can I optimize the performance of my php code to read a csv file

Bebert BeberrI've found some ressources about php performance optimization here and there but I don't know how to start. I send 130k csv rows in approximatively 7min. My script read csv file and send $batch_size row per query, while doing some string operations such as changing date to the right format or rep...

 
4:38 PM
0
Q: Reducing allocations in arbitrary precision calculations with Julia

TimoI am new to Julia and have only written in python before which is most likely also reflected by my coding style. Unfortunately, my applications require very high numerical precision which is why I am resorting to BigFloat and BigInt in Julia. For some reason, this leads to a major increase in all...

 
4:55 PM
Monking
 
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. — itprorh66 47 secs ago
 
If anyone happens to be good at VMs and RDP...
0
Q: Using keyboard shortcuts on multliple machines using VM & RDP

MastWe're a bit late to the working-from-home party, but making an effort. I got the following situation: RDP Hyper-V SSL VPN RDP RDP Ordinarily I connect from my workstation (bottom left) to the server (bottom right) by RDP. There are more servers involved, but all those are taken care of by the ...

 
I just noticed the SE cookie acceptance modal...
the cookie looks like a moon
 
5:16 PM
@SᴀᴍOnᴇᴌᴀ Looks like chocolate chip to me, or maybe oatmeal raisin
 
It's abstract enough to look like a lot of things.
 
@Mast Is win+ctrl+-> goes to remote and win+shift+-> goes to local ok? If so you could probably get AHK to listen to win+shift+-> and then call a script that uses the WinAPI. Looks like VirtualDesktop uses the WinAPI rather than sending keys but I'm not sure
 
5:32 PM
@Peilonrayz I never use win+shift+<>, so taking those out of business and replacing them with something useful would work.
 
6:08 PM
It sounds like you would like your "unclean, unclear and unreadable" code reviewed. This is not the place for that sort of thing, but maybe codereview.stackexchange.com is. — martineau 18 secs ago
 
6:20 PM
0
Q: Compliant JSON4 Parser in Typescript

Patrick HollweckContext I may have accidentally gotten a little sidetracked during homeschooling, and wrote a JSON4 parser in Typescript during the down-time. This project started as an idea that I got while discussing something actually school-related and over the past few days grew into something that is somew...

0
Q: Re-throw Exception, after completion of method

タコスI have a worker class that catches uncaught exceptions and logs them for tracking purposes. However, I do NOT want to swallow those exceptions, nor do I want to abstract them (i.e. losing the stack trace). I believe the best practice in the industry is to throw a new exception and set the inner e...

 
 
2 hours later…
8:19 PM
@Peilonrayz Looks promising, but I've ran out of time to try it today. I'll be sure to check back on the weekend.
 
@Mast No problem ^^ I'm just hoping the software isn't calling the send-key WinAPI in the background like every other solution I found (which were more like scripts then applications)
 
0
Q: A tiny threads pool in C

weiShenMy purpose is to isolate the threads management from the service logic. It uses producer-consumer pattern using semaphore to limit the maximum number of threads. recycle_threads() itself is a thread, which automatically waits for previous threads to exit and increments the semaphore. Users can ca...

 
9:18 PM
0
Q: Python Back-end registration validation

Pierre-AlexandreI am working on a personal project (Flask CRUD app) and I am currently building the user service. I am trying to use as less as libraries as possible (that's why I do not use WTF-forms for example, just for learning purposes). I am really not sure about a couple of things. I am aware that form va...

 
9:29 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. — itprorh66 just now
 
9:56 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. — itprorh66 17 secs ago
@itprorh66 when suggesting users post on CR it would be great if there was also a suggestion like "Please read the relevant help center pages like 'What topics can I ask about here?' and 'How do I ask a good question?". The title would need to be updated to describe what the code does instead of review goals... — Sᴀᴍ Onᴇᴌᴀ 20 secs ago
 
10:15 PM
@StephenBoesch You could always do the for <target list> in [<some expression>] trick, but it's the sort of thing that should never pass a decent code review, both options I've pointed above I would not accept if they were in a PR I was reviewing, for example. — juanpa.arrivillaga 27 secs ago
 
10:33 PM
@Mast I finally posted a screenshot with the comments (which I had to recreate - thankfully our transcript saved the day!) to the WIN! section of failblog
 
10:47 PM
What is the problem? This looks more like a code review, which is off-topic for this site. — Nkosi 18 secs ago
 
@Mast Took me a while but I just realized I can now reassign Win+1...n to move to a specific desktop, Virtualdesktop.exe /Switch:0. Thanks :D
 
11:26 PM
0
Q: Trapping focus inside container using pure JavaScript

darkhorseI am trying to write a system where the focus is trapped inside the elements of a container, so that pressing tab or shift + tab just cycles through instead of going outside it. The following is my code: var trapElems = []; var trapActive = false; // Set to true after the initial tabbing var ...

 

« first day (2861 days earlier)      last day (47 days later) »