« first day (3324 days earlier)      last day (991 days later) » 

00:03
REFRESH! There are 8094 unanswered questions (89.3053 answered)
00:49
If you already have working code that does that, you could try posting it in codereview.stackexchange.com to get suggestions on making it more efficient — Kevin 8 secs ago
 
4 hours later…
05:42
Welcome to Stack Overflow. Code review questions really belong to the CodeReview stack exchange. — ewong 51 secs ago
 
1 hour later…
06:50
0
Q: Snake problem: I need to change the shape of head and I need to change the head of the snake to be always a triangle which changes with the direction

JohnTHIS IS THE MOST IMPORTANT THING RIGHT NOW, PLEASE ANYONE HELP I need to change the head of the snake to be always a triangle which changes with the direction. https://codesandbox.io/s/naughty-pascal-42ucln?file=/index.html game.js import { update as updateSnake, draw as drawSnake, SNAKE_SPEED, ...

07:15
0
Q: Login required decorator in re-frame app

Andrew KravchukI have a plethora of views in my Luminus/re-frame app that require user's authentication. I've devised the following "decorator" function for those: (defn login-required [{:keys [name view] :as route-data}] (merge route-data (letfn [(trampoline [] (let [authenticated @(rf/sub...

 
3 hours later…
10:30
Monking
0
Q: I need to generate new column based on two columns of dataframe, how can it be faster?

jariedI need to generate column a_b based on column a and column b of df, if both a and b are greater than 0, a_b is assigned a value of 1, if both a and b are less than 0, a_b is assigned a value of -1, I am using double np.where . My code is as follows, where generate_data generates demo data and get...

Have you run a comparison ? You can also post on codereview.stackexchange.comou_ryperd 46 secs ago
10:55
@ou_ryperd This question contains hypothetical code and is not welcome on Code Review. — Mast 12 secs ago
 
2 hours later…
13:06
there is no name for this particular use of the comma operator because one would not write it like this. The line should not pass a code review. — 463035818_is_not_a_number 25 secs ago
Whoa, the first time in a month when there weren't any items in any queues for me to look at/review.
Monking
@pacmaninbw Yay this September is almost over
14:00
What about second September?
14:12
May 16 at 14:28, by Toby Speight
Is it September already?
hehe
Aug 31, 2015 at 19:37, by rolfl
Eternal September.
0
Q: How to print accelerometer and compass readings simultaneously with Adafruit using Arduino?

TheMather96I tried combining the two example codes given here of the compass and accelerometer but I think something with the setting of the following lines of code is what gives me issues: sensors_event_t event; accel.getEvent(&event); mag.getEvent(&event); What's happening is when printing the values for...

14:57
Blame it on the monkey. :)
You shouldn't require that people navigate away from Stack Overflow to see information necessary to answering a question, so you should also include anything relevant as plain text in the body of the question (the link to github is nice to have, but it is not sufficient by itself). If such code is very long, then remember that you should be providing a minimal reproducible example with only the code necessary to answer a version of the question that other people could have also. SO isn't a code review service, it's more like a FAQ. Frankly your original example code was more appropriate for an SO question. — jcalz 59 secs ago
Which leads me to ask again whether my suggestions in your original comment address you question or if I'm missing something. I shouldn't need much more context, unless the issue is so incredibly specific to your particular code base that you'd really be better off getting someone to do code review. There is a codereview stackexchange site, which has its own rules but it could turn out that you might be looking for that kind of resource instead (again, if you do go that route, please make sure to adhere to their guidelines before posting). — jcalz 10 secs ago
15:25
None of the issue update was for code review. I would not want this to be touched by anyone at the moment. It was for a informed suggestion. I just wanted to know how do I represent complex nested closure returns in types? Any suggestions are welcome — Gary 43 secs ago
16:00
So we have an "infrastructure team" that provides all of our basic cloud platforms (Kubernetes, etc.), they provide some bash extensions to help with accessing/managing those resources, but ONLY provide bash extensions and only document how to do things on MacOS, not on Windows. I pushed a repo last night with some PS Core versions of their same scripts, the CTO and my boss just congratulated me because 2 other teams are already using them, and I only announced the repo around 8am today.
I also made some helper-scripts for our NuGet CodeArtifact interactions, and none of that was documented by the infra team, but we were all expected to use it
Turns out every team had been making different shell extensions and no one shared them with each other, I am absolutely baffled
At least now there's progress.
We even had a conversation early last year about this issue, because I requested to swap my Windows Laptop out with a Mac laptop, because NONE of the stuff they documented worked on Windows.
Now, all of it does, because I rewrote it
@Mast Yeah, I've had one team manager say thanks this morning because they had some hacks going on, and they said my Powershell Core module was super easy
Literally you clone the repo, run ./Install-Module.ps1, and it installs EVERYTHING it needs to run in PS Core
I put a Grant-Mfa that runs our MFA script to auth to AWS, a Grant-NuGet that runs the codeartifact commands to authenticate to NuGet (12-hour tokens, so you need to do it daily), and a Grant-K8s that runs the commands to auth to EKS (again, 12-hour tokens).
You can also specify a Business Unit during installation which is the default BU that it uses to authenticate to Kubernetes. It also has a function to verify that your environment has all the tools it needs for each command to work.
This is all low-hanging fruit, I maybe spent 3 hours on it, there's no reason they couldn't have
16:21
Monking
 
3 hours later…
19:23
0
Q: DB Class extending PDO w/ other useful functions

Crimin4LI have this DB class that extends PDO, that also has useful functions for certain tasks; I was wondering how well it's coded, and if so, what I could maybe improve on. I tried commenting in PHPDoc to explain each functions usage, but if any are confusing, don't hesitate to let me know so I can tr...

19:41
Is there a question here? If you are looking for techniques to optimize running code I would suggest submitting your question to Code Review Forum. Code Review is a question and answer site for peer programmer code reviews. Please read the relevant guidance related to how to properly ask questions on this site before posting your question. — itprorh66 33 secs ago
Stack overflow is not a code review service. You should review, test and debug your own work. — JHBonarius 30 secs ago
0
Q: Refining: Adding String to a Txt File Without Duplicates

JackI have a function below "store_in_matchid_file", and It adds certain strings to a .txt file as long as that string doesn't already exist. However that file is getting millions of lines long and the process of checking is becoming too long. I was hoping someone would be able to indicate a way I co...

 
2 hours later…
21:21
possible answer invalidation by Peter Mortensen on question by truejesusTTV: codereview.stackexchange.com/posts/277223/revisions
possible answer invalidation by Peter Mortensen on question by truejesusTTV: codereview.stackexchange.com/posts/277223/revisions
 
2 hours later…
23:04
This is off-topic on Stack Overflow since it doesn't contain a question. It would be a better fit on Code ReviewJohn Coleman 37 secs ago
I’m voting to close this question because there is no actual question. I second the suggestion of Code Review. — btilly 55 secs ago

« first day (3324 days earlier)      last day (991 days later) »