« first day (2496 days earlier)      last day (1523 days later) » 

12:00 AM
RELOAD! There are 6404 unanswered questions (90.1387% answered)
 
12:19 AM
0
Q: C pointer based growable stack

NoOdleThis is my first attempt at writing a C program, it a generic stack that can grow accordingly. It appears to work correctly, however I am worried that is just a fluke and I could be doing something very wrong. I would greatly appreciate any feedback/criticism. I am aware I should split this out...

 
 
3 hours later…
2:51 AM
0
Q: Optimizing and making this faster

m2rikI have created the following function for using it in my Data Analysis Tasks where I would use it for applying it to DataFrames and quick formatting of the results. I tried to think of classes but could not get any direction with it. For eg. Class Formatting and then inheriting it in objects etc....

 
 
2 hours later…
5:03 AM
Monking
 
 
2 hours later…
6:59 AM
0
Q: Pipeline with OneHotEncoder & Random Forest Classifier

Cassie.LCan you please review my code to ensure that OneHotEncoder is actually apply in the pipeline? The initial data frame has 7 categorical features, and I need to treat them with OneHotEncoder. The first part is to do it manually without pipeline. Second part is to wrap it up with pipeline and pickle...

 
If this code is functional but you want critique, Code Review is the place. — StoryTeller - Unslander Monica 38 secs ago
 
7:37 AM
0
Q: A simple thread-safe Deque in C++

AndyI am trying to implement a thread-safe deque in C++. This deque will be used by a FileLogger class. When threads call the log() function of FileLogger the messages will be pushed to the back of this deque and return almost immediately. In a separate thread the FileLogger will pop messages and wri...

 
8:24 AM
Monking
If an answer is a low-quality copy of another much older answer we can safely flag it as VLQ, correct?
 
9:03 AM
yeap
 
9:26 AM
If your code works well and there is no issue, please consider posting the question at Code Review. — Wiktor Stribiżew 51 secs ago
I do not push directly to master, I only merge the branch to master when it's ready, so that's not a problem. Making new commits makes history harder to code review. — Joseph Wang 36 secs ago
Just to mention, if your code works, maybe the proper place to ask would be the CodeReview codereview.stackexchange.comJohnPan 58 secs ago
 
9:50 AM
0
Q: Loop through a worksheet and insert a row with layout when value is true

PeteI have a code that does a loop through a worksheets, if there is a value 2 inside a cell in column S, then I want to insert a row with a specific layout. I have the code, but it takes ages to complete. I've tried replacing .select function, but because I need a specific layout, I don't know how t...

-1
Q: Lex code to convert C for and do while loops into while loops

Shantanu ShindeThis is my lex code to convert for and do while loops into while loops, the input program must be in a file called input.c and the output will be saved in a file called out.c. this currently doesn't work if the loop is inside if-else or switch-case statements or any braces. other than it is worki...

 
10:09 AM
-1
Q: Services injected with factories

NoceoI face an issue where I want to inject Entity Frameworks DbContext into a service class, in a WPF application. The problem is that the service classes are instantiated and contained by the view models. That could mean a rather long life time for DbContext, if injected directly into the service. ...

-1
Q: Vue.js + Axion. Difference in performance between async/await and promises

Ivar MortulevIs there any difference(in performance or any other kind) between code: async fetchAllCategories(){ const response = await this.$axios.get( "https://hplussport.com/api/products/categories" ); console.log(response); }, And code: async fetchAllCategories(){ axios.get("https://hp...

 
10:23 AM
There's right, I've added the OneHotEncoder() in a pipeline before pickle to a file. Can you please review codereview.stackexchange.com/questions/238345/…Cassie.L 34 secs ago
@ali.rezaie: I am not sure what bind would do here, can you provide an example? This is a simple approach to a simple problem, but as I wrote above, it's possible that there would be a better approach altogether if you posted the actual code with the actual problem (it's hard to guess what MyClass.doProcess means). My suggestion would be to create a full working example and post it on codereview.stackexchange.com to get specific suggestions. — Groo 37 secs ago
 
0
Q: React native: Using redux for a couple of components only

Abdullah AsendarI have a mobile app built using react native, the app's core functionality is to process payments. It has some screens to view transactions, merchants and some other stuff. When i started building the app, i was not using redux. The reason is that i was new to react native and felt that redux was...

 
10:49 AM
This question is better suited over at 'Code Review' - codereview.stackexchange.comnopassport1 1 min ago
 
11:06 AM
-1
Q: Code-Splitting in Java

EnissI have been working on code splitting for my implementations and I ended up having 3 different approaches to do it. The reason why I did something like this is that I also worked as a front-end developer and I did code-splitting for a Webpack project because it can create multiple bundles that ca...

 
11:31 AM
This sounds like it may be a better fit for codereview.stackexchange.com, but check their Help Center first. You'll also want to replace this image with actual code as text. — David 57 secs ago
 
11:44 AM
-1
Q: Compile time reducer

user100113I create compile time reducer to create Visitor pattern dummy stubs for domain classes: class IVisitor { virtual void visit(...) = 0; ... }; template <template <typename State, typename T> class Op, typename Start, typename ... Items> class reduce; template <template <typename State, ...

 
11:59 AM
Now that you posted your code, be aware that your question still is no question. Do you ask people "Can you please tell me where the station is?" or do you go with "you, way station"? Also, I heavily recommend that you post your code on codereview.stackexchange.com, has a lot of bad practices. — Aziuth 22 secs ago
 
12:19 PM
Isn't this better suited for codereview.stackexchange.com? — Uwe Keim 30 secs ago
 
12:38 PM
It should work without any issue: are you talking about optimizing the code? Then you might want to look at Code Review. — Terry 34 secs ago
 
1
Q: Master Mind implementation

Martin FrankI have created a Master Mind BoardSolver. To apply the BoardSolver I have created an app (MasterMind) in which I create a Board with ColorPins and CheckPins. ColorPins and CheckPins are associated within a PinRow. A Board represents a given PinRow (code) and a List of PinRows as attempts. Pleas...

0
Q: Replacing inheritance with composition in custom generic classes?

shekitI've been reading a lot about composition and trying to figure how I can refactor my inheritance tree using composition. Currently my class looks like this: public abstract class BaseClass { public abstract string displayText { get; } public abstract List<Parameter> parameters { get; } ...

 
1:14 PM
What you are asking for is a code review and you should be asking such questions on the Code Review Stack ExchangeRob 19 secs ago
 
1:37 PM
0
Q: Implementation of Doubly Linked List with sentinel in C++ trying to replicate the stl std::list

Julian AßmannI am currently trying to replicate the stl std::list interface with my own list implementation (doubly linked list with sentinel) to learn about all the advanced topics (like iterators, allocators, ...). Before I add the methods from the "operations" section in the documentation, I'd love to hea...

 
1:56 PM
-1
Q: Return all pair of two number sum in C++

isiliaI am solving one question in which I need to find two number sum out of an vector input from the terminal. For instance if I input vector of integers - {1,-1,4,6,2,5,8} and my sum is 10 - it should return pairs {4,6} and {2,8} but my code below returns only {4,6}. I am just not able to get how to...

 
2:15 PM
0
Q: Go pig Latin translator

badukerI've been recently fooling around with Go(lang) and ended up doing a (very) simple pig Latin parser. I'm pretty sure this is not the best solution out there (no punctuation and only lowercase letters) but it does its job. However, I'd be delighted to learn how this could be improved, as I'm stil...

-1
Q: Dealing with Future#get and InterruptedException Sonar java:S2142

Quincy BowersIn some legacy code I have inherited, there is a snippet that looks similar to this. List<Callable<String>> callableStrings = Arrays.asList("one", "two", "three").stream() .map(s -> (Callable<String>) () -> s) .collect(Collectors.toList()); List<String> results = someExe...

 
3:09 PM
If your code works well and there is no issue, please consider posting the question at Code Review. — Wiktor Stribiżew 5 secs ago
 
-1
Q: Creating a list of sentences without unwanted '\n' using NLTK

Steve_DobbsI am trying to make a list of sentences using NLTK, however I am still getting '\n' strings dispersed in the list of sentences output. I have tried .split(), .strip() and am still not getting success. import glob from nltk import sent_tokenize path = 'D:\\Yobot_Practice\\**.txt' #this is where ...

 
3:31 PM
-1
Q: A mess of integer types (in Rust)

Daniel MartinI've been trying to do the Project Euler 100 challenge in my free time, and doing it in rust so as to learn rust. I'm still having lots of places where the borrow checker slaps me in the face, but that was expected; generally I just do whatever the compiler says and it's happy. I think I'm slowly...

 
4:16 PM
monking
 
4:32 PM
Medi Madelen Gwosdz on March 04, 2020
We spoke to Alexandre Plennevaux, Head of Pedagogy at BeCode, the coding school on a mission to close the skill gap by providing accessible, seven-month inclusive bootcamps across Belgium and recruiting students through illegal streaming sites.  You run an intense, seven month-long, full-time bootcamp. Students need to be highly motivated. Why are you advertising on…
0
Q: How long should you leave a question before you accept an answer?

K00lmanI don't like to leave questions open for so long it looks dead, but I want people to still think that I want more feedback and I can't find a good middle ground. Any opinions?

 
4:59 PM
does it hang on 200 nodes? and not on 199? that might be a bug in the lib or your code. either way it needs to be added here if your seeking debugging help, or codereview.stackexchange.com if you want to improve it. asking for something different is off topic, kinda sh*teposting that lib without a verifiable example. — Lawrence Cherone 48 secs ago
 
Monking
 
 
1 hour later…
6:05 PM
possible answer invalidation by NoOdle on question by NoOdle: codereview.stackexchange.com/posts/238338/revisions
 
0
Q: Three-way join in Entity Framework Core

EJoshuaS - Reinstate MonicaI'm very new to Entity Framework Core, so I'm concerned about whether I've done this query in the most efficient way possible. The database I'm querying looks like this: Basically, UserRoles is a a "linking table" between the User and the Roles in order to create a one-to-many relationship. I...

0
Q: Parsing a TLV string

liewlThis piece of code is supposed to walk through a TLV string and print out its contents. For this particular example, tag field length is 2, size field lenght is 3. As a mostly C programmer, this is what I came up with. I know I can parametrize the tag and lenght field sizes, but I don't care abo...

 
I'm voting to close this question as off-topic because it belongs on codereview.stackexchange.comTrenton McKinney 43 secs ago
 
@Duga rolled back
 
If you think this code is working correctly, then this is more appropriate for Code Review than for SO. If you think there's a bug in the code, then you need to identify that and show how you know. — Jonathan Leffler 11 secs ago
I'm voting to close this question as off-topic because it belongs on Code ReviewJonathan Leffler 26 secs ago
@TrentonMcKinney The OP wrote "I also want to clarify that this code works" - thus this post would be off-topic on CR. And Please don't use the existence of CR as a reason to VTC Please see Does being on-topic at another Stack Exchange site automatically make a question off-topic for Stack Overflow?, Migration of code questions from Stack Overflow to Code Review and this answer to A guide to Code Review for Stack Overflow usersSᴀᴍ Onᴇᴌᴀ 30 secs ago
Stack Overflow is a good resource for a specific question. It's not a code review site. You might want to narrow the focus a bit to a specific line of code. — Johnny Bones 57 secs ago
@JonathanLeffer The OP must know the code works in order for such a post to be on-topic on CR. And please don't use the existence of CR as a reason to VTC. Please see Does being on-topic at another Stack Exchange site automatically make a question off-topic for Stack Overflow?, Migration of code questions from Stack Overflow to Code Review and this answer to A guide to Code Review for Stack Overflow usersSᴀᴍ Onᴇᴌᴀ 21 secs ago
 
6:31 PM
If the code works, and you'd like a review of all aspects of the code, this question might be on topic on Code Review, but please read their help center first before asking. — Heretic Monkey 57 secs ago
 
6:44 PM
-1
Q: Creating a custom Database of items with unique static ID etc

CDrososHere is the concept of what if trying to do: In an Android project, i have 5 imageview items that are displaying 5 images. For those 5 images, i want to have some templates that when you select a template, the 5 images will change. So i have load in my app about 300 images that will be 80 templa...

1
Q: C pointer based growable stack rev2

NoOdleFollowing on from my previous question: C pointer based growable stack I have made some improvements (hopefully!) based on the very helpful comments and suggestions... I have checked that the stack can push and pop doubles now so hopefully it will also be OK with structs. I have a could of que...

 
7:08 PM
Questions about codereview should be asked at Code ReviewJens 5 secs ago
 
7:42 PM
-1
Q: Elegant solution to find a pair of Strings in a List

WDrgnI'm new to Java8 and I must find an elegant solution to a problem. The problem goes I have a List of letters (of any size) that could contain any letter such as "A", "B", "C", "D", etc. I must check if I have an pair of "A" and "B". So, if I have something like ["A", "A", "C", "Z"], since I don't...

 
 
1 hour later…
8:58 PM
-1
Q: Method is taking 9 seconds to load is there a way to make it load faster

Ramakrishna DBEntities dbEnt = DBConnect.GetInstance(); List<ContactGroup> contactGroups = new List<ContactGroup>(); contactGroups.AddRange(dbEnt.ClientContactGroups.Where(x => x.ClientID == ClientID && x.IsDeleted == false).Select(x => new ContactGroup { ClientID = x.ClientID, Clie...

 
9:17 PM
0
Q: What is the diffirence between urlopen and get in Python3?

SaidbakRI, already, have a simple python3 script on my GitHub Repo. that performs a visit to certain api like URL to update dynamic DNS hosts using urllib.request urlopen method. However, to prevent flooding on the service, I used another third party service to determine the public IP, so if the public ...

 
9:36 PM
0
Q: VBA .Formula property relative reference

NewbieNeed some help on this. I wonder how can I setup .Formula property with a relative reference. Here is my code: Sub Example() Dim Path As String Start = Range("T2").Activate For i = 0 To 3 Path = ActiveCell.Offset(i, 0) With ThisWorkbook.Sheets("FPA") .Range("U2").Formul...

0
Q: C OpenSSL AES-256-GCM Encryption and Decryption of plaintext string

meepRecently, I've been studying encryption and cryptography for educational purposes. I've been using python's Crypto library for a while and due to me learning C too, I decided to try using OpenSSL's suite of tools to try and attempt AES-256-GCM encryption and decryption and would love someone to r...

 
9:48 PM
 
10:03 PM
If this is working code that you think could be improved, see Code Review. — jonrsharpe 38 secs ago
 
10:33 PM
0
Q: Hands of Straights (LeetCode) Arrange the card

presciTried this leetcode question Hands of Straights. https://leetcode.com/problems/hand-of-straights/ Description is Alice has a hand of cards, given as an array of integers. Now she wants to rearrange the cards into groups so that each group is size W, and consists of W consecutive cards. Return ...

 
11:09 PM
Okay. I'm missing here a testing branch that does not require code review. — PaszaVonPomiot 5 secs ago
 
11:32 PM
@CaptainObvious stub code, asked on SO already
 

« first day (2496 days earlier)      last day (1523 days later) »