« first day (3085 days earlier)      last day (940 days later) » 

12:02 AM
@SᴀᴍOnᴇᴌᴀ In a way, since I've mostly been playing 70s Rock and Roll it makes me want to dance.
 
REFRESH! There are 7879 unanswered questions (89.2728 answered)
 
0
Q: Multiple flatMap style: Nested or sequential?

pandubearThis question applies to any language with flatMap -- e.g. functional languages -- but I'll use an example in JavaScript. I'm working my way through Functional Programming in JavaScript, which is a set of exercise for learning rxjs. Here's a simplified version of Exercise 12, which I have a ques...

 
@SᴀᴍOnᴇᴌᴀ Mozart, Swan Lake or Easy Jazz might be more relaxing.
 
12:29 AM
0
Q: SwiftUI Reusable Login & Register View

xTwisteDxI have this view in SwiftUI, it works as expected, and for the most part, works great. My only concern with it is that it feels extremely clunky. Reading through the view itself is very difficult. Does anyone have recommendations for cleaning this thing up? Effectively, the sign in and register p...

 
 
1 hour later…
1:34 AM
 
 
2 hours later…
3:29 AM
Monking
 
 
2 hours later…
5:25 AM
I’m voting to close this question because this would fit better in codereview.stackexchange.comsushanth 26 secs ago
I’m voting to close this question because code reviews can be requested at Code Review. On Stack Overflow they are off-topic. — Klaus D. just now
 
 
1 hour later…
6:40 AM
0
Q: Refactoring class member initialization C++

Tan NguyenHave this code do what I want: If there is argument pass to constructor, initialize; otherwise, set it to default value? class Node { public: Node(string id, bool isNum, int level, string data, bool duplicate, Node *next) : id(id), isNum(isNum), level(level), data(data), duplicate(d...

 
7:02 AM
Monking
 
0
Q: C# handling timestamps

EmaborsaI am developing a WebApp which is going to be deployed on Azure. Because it has to be server indipendent, I think I have to store the DateTime as UTC, so my Postgres column is configured as timestamp without time zone and when I save a date I put the utc value, let say e.g 2021-10-14 06:16:33.813...

 
@pacmaninbw Yikes
 
7:29 AM
0
Q: View of submatrix, in const and non-const form, preserving const-correctness

frozencaHere are implementations of both non-const and const view of submatrices, which is a subclass of my toy C++ matrix project: (C++20 : N-dimensional minimal Matrix class) MatrixView.h template <std::semiregular T, std::size_t N, bool Const> class MatrixView final : public MatrixBase<MatrixView<T, N...

 
 
2 hours later…
9:17 AM
I’m voting to close this question because it is more appropriate for Code Review. You should delete this question here and ask it there. — Stephen Ostermiller 45 secs ago
 
 
2 hours later…
11:31 AM
@Mast Really doesn't help when the doctor is on a week long vacation.
 
 
1 hour later…
12:51 PM
0
Q: What is the best practice to resolve optimize cluster numbers for ODKM in Python?

MarioI'm experimenting with an unsupervised statistical-based outlier detection so-called ODKM on top of the KMeans clustering algorithm. During my experiments I noticed that there is a limit for number of clusters which results in following error either in bigdata or small datasets with more than cer...

 
1:29 PM
codereview.stackexchange.com would be a more appropriate place to post this type of question. — David Peden 15 secs ago
 
 
1 hour later…
2:30 PM
0
Q: Is my approach to bubble sort correct?

SaurabhFollowing is bubble sorting code. I tried bubble sort after reading theory. Please let me know if my solution is correct and if so anyway I can make it more efficient? static int[] BubbleSort(int[] arr) { int count = arr.Length; while (count > 0) { ...

 
2:55 PM
0
Q: Target Sum array using Dynamic Programming

HarryI'm learning Dynamic Programming and trying to solve this Target Sum array problem. I've used memoization technique but still getting TLE. Can somebody help what I might be doing wrong. This is my code: #include <iostream> #include <vector> #include <optional> std::optional<std::vector<int>> can...

 
Monking
@Mast doh!
In one week I'm doing a mini-vacation- heading to Ventura for a college friend's wedding (actually in Ojai - which sounds like OHAI :) )
 
3:23 PM
@SᴀᴍOnᴇᴌᴀ Watch out for Forest Fires on the way. The 101 is currently closed in Santa Barbara, or it was yesterday.
Ojai can be very noce.
 
@pacmaninbw doh! thanks for the heads up
 
Are you planning on staying in Ventura or Ojai?
 
Ojai... but driving down from Arroyo Grande Friday... so might have to go over the hills...
 
There is a back way in, take the 5 to the 118, then to I think the 27, you might be able to get the 27 near Magic Mountain.
 
@pacmaninbw I see - that is a bit longer so hopefully we don't have to do that but might have to if things worsen
 
4:01 PM
Monking
 
0
Q: Increase performance of Drug Analyzer code

Manassés G.Drug Analyzer What do I need help with? Hi guys, I hope you're alright. I'm doing the challenge below, in which I need to increase code performance, it's currently at 63% and I need to increase it to at least 71% however I can't optimize more than the current one. could you help me? Introduction ...

 
ngl I think your implementation would be what most smarties would go for I'm afraid, simplest is often best ;) That said, try posting on CodeReview though - that's where you can get feedback and improvements on working code — Greedo just now
 
4:53 PM
Welcome to StackOverflow! Please read How to Ask. Unfortuntaly your question isn't a good fit here: we're here to help with specific programming problems, and noone is likely to do a code review of a third-party codebase for free. There is a StackExchange site for code reviews, but they're unlikely to handle this question either, as they're focussed on reviewing code which the asker has written themselves. — canton7 17 secs ago
 
@Arcanis-TheOmnipotent Please don't spam chat.
 
0
Q: using boolean or setTimeout id , which is better to utilize in HOF?

diEchoI have used below method for throttling which is a Higher Order Function (HOF), but find some difficulties to choose which one is better way to write it. below are both method return of the setTimeout() assigned in a variable const throttle = (fn, delay) => { let timerId; if (timerId) { ...

0
Q: Web scraping playlist from website and writing to CSV

Noob_warning2I have very recently learned some Python and found out about web scraping. This is my first bash at writing some code to get a playlist from a site I had previously been copying and pasting. I would love it if someone could have a look at the code and review it for me. Any advice, tips, suggestio...

 
5:09 PM
I suspect many questions of this sort already exist on CodeReview.SO, but that may not bar it from being asked there. However, see also "Get JSON object by attribute". — outis 26 secs ago
 
5:34 PM
For questions about improving code (as opposed to fixing issues), CodeReview.SE is the appropriate site. SO is for non-working code. — outis 51 secs ago
 
 
1 hour later…
6:38 PM
if there are no issues with your code, my suggestion is to ask in codereview.stackexchange.com — blurfus 7 secs ago
 
7:25 PM
0
Q: How to speed up the search by patterns matching and modifying a DataFrame

drkwngI need to classify URLs from a DataFrame and modify it by exact match and contains conditions: class PageClassifier: def __init__(self, contains_pat, match_pat): """ :param match_pat: A dict with exact match patterns in values as lists :type match_pat: dict :pa...

 
7:42 PM
At a glance, can see a memory stream object that doesn't seem to be getting cleaned up but aside from that nothing is really jumping out at me. As the code is working though, its a little out of scope for this forum. Maybe try codereview.stackexchange.comHursey 20 secs ago
 
7:53 PM
I’m voting to close this question because it's better-suited for codereview.stackexchange.comblurfus 7 secs ago
 
8:42 PM
This is what codereview.SE is for. — David Conrad just now
I’m voting to close this question because it belongs on codereview.stackexchange.comDavid Conrad 55 secs ago
@DavidConrad While this may be on-topic on CR, in the future, please don't use the existence of the Code Review site as a reason to close a question. Evaluate the request and use a reason like Needs more focus (as Slaw and I have done), primarily opinion-based, etc. Then you can mention to the OP that it can be posted on Code Review if it is on-topic. Please see Does being on-topic at another Stack Exchange site automatically make a question off-topic for Stack Overflow?Sᴀᴍ Onᴇᴌᴀ 52 secs ago
 
9:29 PM
0
Q: Java - Can you give me an opinion on this implementation for this exercise?

GiuseppeRealize the Radio and Channel classes that represent radio and a radio station. The radio class offers an argumentless constructor and the following methods: addChannel: stores and returns a new station, characterized by name, frequency. Attempting to store a station that has the same frequency ...

 
I believe this question may work better on Software Engineering or Code Review, due to how questions about code design tend to draw in opinionated answers, which are not allowed here. See meta.stackoverflow.com/questions/256663/…spicy.dll 38 secs ago
 
 
2 hours later…
11:08 PM
0
Q: Function to create single linked-list

4d4143Given the following data struct: typdef struct lista { int num1, num2; struct lista* sig; } nodoNum ; and a declared nodoNum pointer variable, the following function will take said variable and create nodes, link them and stop when the user inputs "0" as the first number and return NULL or the f...

 

« first day (3085 days earlier)      last day (940 days later) »