« first day (3726 days earlier)      last day (588 days later) » 

00:09
REFRESH! There are 7273 unanswered questions (90.5789 answered)
00:44
This is off topic here (opinion-soliciting, asking for a code review). Fits better on Code Review - just be sure to read the guidelines first, and keep your question as detailed as possible (without any of the superfluous stuff - I removed all that) — David Makogon 41 secs ago
 
4 hours later…
04:23
Code Review would be a better suited place for your question then. "I want this type of movement (posts link to a 10 minute video)" is not a direct question enough for Stack Overflow. — doneforaiur 17 secs ago
05:15
0
Q: HackerRank Lower Bound-STL getting TLE

Shakhawat Hossain SHIHAB#include <bits/stdc++.h> using namespace std; typedef long long ll; ll lower_bound(vector<ll> arr, ll tar, ll n) { ll l = 0, h = n - 1; ll ans = n; while (l <= h) { ll mid = l + (h - l) / 2; if (arr[mid] >= tar) { ans = mid; h = mid...

06:05
Monking
06:37
SO is a Q&A site. Use codereview.stackexchange.com for code reviews. There are several ways to improve this anyway, starting from replacing os.listdir(sales_folder) with a search with a pattern. I prefer using pathlib and Path.glob or rglob. All iterations over dataframes should be replaced with series operations - in Pandas data is stored along series, not rows, so iterrows ends up being pretty expensive — Panagiotis Kanavos 44 secs ago
07:21
0
Q: Pandas to combine data files & add new calculated columns to result

NeoI currently have the following python code that adds a few calculated columns to my consol file. Essentially it combines all the sales files into one combined DF and then adds 4 new sales columns with some conditions back to the consol file. The code works, but it takes about an hour to complete....

08:11
0
Q: Is this the right implementation for Linear Programming (puLP) on python?

Kale I have created a LP function to help maximize a set of features. My first time playing with this library and also conducting LP. Variables: Number of features => X Number of Categories => Y Problem function: Maximize the Z(s) given changes in X and Y. If I add more features (X) from specific ca...

08:26
Yes, that's the takeaway. And honestly, at least for myself: Be it two days or two weeks already, it helps me to pick up at such places directly seeing it. If you're using PhpStorm as IDE, you will notice that the false is a bit "in the shadows", so you even see immediately in the editor that this is the default value. We know that strictly speaking we don't need it there (for the code to work), but still it expresses our intention. It helps me for development, maintaining, bug-fixing and refactoring as well as code review, even rubberducking. Use it as a tool, YMMV. — hakre 42 secs ago
09:09
I’m voting to close this question because it belongs on Code Review — Mark 51 secs ago
 
1 hour later…
10:22
I don't think "suitable for code review" has ever implied off-topic here — DavidW 15 secs ago
11:07
This is better asked at Code Review. — InSync 37 secs ago
As a short / blunt answer: Yes, it is both inefficient and can be improved. Perhaps Code Review will be of assistance in explaining the details. — S3DEV 30 secs ago
@InSync "I would like to ask people whether this code is correct". No. Code Review would not accept the question. — Peilonrayz 1 min ago
11:56
0
Q: Is this Python code guessing game written correctly ? Or can it be improved?

JasonThe following Python code is a guessing game in which players have to guess a number between 1 and 10. They only get 3 guesses, and the code will also display if the number is too high or too low, which the player tries to guess. When the while loop exits, because either the number of guessesleft...

12:46
0
Q: Code to save account details and register based on payload

rest_easyI have this flow for registering a user. They send an empty user account no to get a temp account no which then they use for verifying the OTP by email and phone. Both done they should register successfully and then have a permanent account no by external system. Service public Account saveAccoun...

13:06
If you are looking for improvements to working code, the Code Review Stack Exchange is a better place to ask. — Jorn 20 secs ago
13:41
I’m voting to close this question because it belongs on Code Review — Mark just now
14:12
@Mark my "answer" is more to show what the intended output is, rather than being a realistic way of solving my problem. It's a fair point that I didn't make that more explicit. Also, I'm sure I could ask this question on Code Review, but I personally don't see this question as off topic for here (perhaps with better wording). Unless there is something specific about the question means you don't feel it should be here? codereview.meta.stackexchange.com/questions/5777/…. — Chris 45 secs ago
15:00
Just wanted to add that there's a lot of good info in this post on using For-Each with custom classes. RubberDuck links to their Better Collection which seems to check a lot of the boxes you're looking for. I don't know if it was ever rolled out. — Vince 45 secs ago
15:17
0
Q: Background Thread to download / upload data from a server (C++2b)

M. SaintourensI wrote the first post: Get files downloaded asynchronously after double clicking on list item (C++) I described the summer project I am trying to tackle to improve my C++ knowledge. My goal is to write a simple GUI app (using a 3D graphics real-time API for the UI) that displays a list of files ...

15:37
how is everyone doing?
15:49
Monking
16:36
@Malachi You really want to ask this on a Monday?
LOL
yeah, I am trying to brush up on NUnit, C# and Visual Studio for an interview this afternoon, and everybody keeps bugging me in my house!
I'm like, seriously people
I hope you all had a wonderful weekend
@skiwi Monking Monday?
@Malachi My last Monday!
Well, until vacation that is
Vacation is fun!
I might take the boat out tomorrow and go fishing.... there are pros and cons to being unemployed
how has everyone been?
 
1 hour later…
18:20
@Malachi Silent, I think!
Pretty good myself
 
2 hours later…
20:43
0
Q: Recursive macro in Rust to assemble a node tree

bluenote10This is my first time writing a somewhat non-trivial declarative + recursive macro in Rust. I drew inspiration from this answer. The goal is to come up with a recursive macro that allows to assemble some kind of node tree. The general interface function is something like parent.add_child(child). ...

21:33
0
Q: Print Hadamard matrix of order N

x27ca61aProblem statement: The \$n\$-by-\$n\$ Hadamard matrix \$H(n)\$ is a boolean matrix with the remarkable property that any two rows differ in exactly \$\frac{\text{n}}{\text{2}}\$ bits. \$H(1)\$ is a \$1\$-by-\$1\$ matrix with the single entry true, and for \$n > 1\$, \$H(2n)\$ is obtained by align...

 
2 hours later…
23:10
@juanpa.arrivillaga you should post this as an answer! I've responded with basically this advice on code reviews a number of times :) — flakes 32 secs ago

« first day (3726 days earlier)      last day (588 days later) »