« first day (2383 days earlier)      last day (32 days later) » 

12:00 AM
RELOAD! There are 6244 unanswered questions (90.0785% answered)
You are correct that this is not a good question for Stack Overflow and will likely be closed because of that. Additionally, code under review must be in the question itself, not only on an external site. If there is too much code, that is an indication that you are asking a question that is too broad in scope. Finally, if you want a review of all aspects of the code, and the code works as is, you might have better luck on Code Review, but I implore you to read their help center first before asking. — Heretic Monkey 11 secs ago
 
12:54 AM
@rolfl @410_Gone Profiling is a good time to get lunch or more coffee. Used to be that doing builds was a good time to get lunch, but compilers are so much faster today.
 
Obligatory XKCD is ... obligatory @pacmaninbw
 
@rolfl Thank you!
lol
 
1:20 AM
1
Q: String helper functions in NASM Win16 Assembly

T145Environment DosBox is required to run this program. I'd recommend installing the Scoop Package Manager and using it to install DosBox. Feel free to ignore install statements for programs you have installed already. iwr -useb get.scoop.sh | iex scoop install git scoop install dosbox scoop insta...

 
1:48 AM
There is a sister site for code reviews that might be a better fit for your question: codereview.stackexchange.comparktomatomi 39 secs ago
 
 
1 hour later…
3:02 AM
0
Q: find longest common substring in space O(n)

jacobcan118I am working on the class question find the longest common substring from 2 strings but I would like to return the longest common substring instead of just size of longest common substring.like s1 = 'abcdex', s2 = 'xbcdey' => 'bcde' s1 = 'abcxyx', s2 = 'xbcydey' => 'bc' The way I do it is usi...

 
3:18 AM
Monking
 
 
2 hours later…
4:55 AM
Monking
 
5:20 AM
possible answer invalidation by jacobcan118 on question by jacobcan118: codereview.stackexchange.com/posts/232224/revisions
 
5:37 AM
Ben Popper on November 12, 2019

This week on the podcast, we sit down with Jess Lee, one of the co-founders of Dev.To, a social network where programmers come to learn, chat, and share ideas with a community of other coders. She explains her strange journey from working as a tour manager for Kidz Bop to building one of the fastest growing and most progressive online platforms for software developers.

Paul and Sara chat about what language is best to choose as your first when you’re just getting started on your journey as a programmer. Probably not Mathmatica, but it’s a neat one. …

 
You are missing “naïve” for instance. Also, this is an offtopic on this site, you’d better post it somewhere on codereview.stackexchange.com or like. — Aleksei Matiushkin just now
Thanks.I was not aware. I will post such questions in future in codereview platform — Soumyajeet Nayak 14 secs ago
 
@Duga rolled back
 
 
1 hour later…
7:29 AM
I'm voting to close this question as off-topic because it belongs on Code Review. — Ken Y-N 43 secs ago
 
0
Q: I need help making this python pygame menu responsive and simple

Chris BitneyI'm new to python and newer still to pygame. In my attempt to learn, I set to make a basic menu with buttons. Here's my code: (note, ui_plate, is a system that the buttons are based on, it keeps all the ui in the same relative positions and sizes, no matter the size of the window.) #===Setup====...

 
 
1 hour later…
8:31 AM
@Duga Wot
 
8:48 AM
This turns into a code review but still: For a real program it is indispensable to check whether scanf("%i",&i); was successful. the scanf family of functions returns the numbers of items read successfully. In this case it must be 1, or else i will have an arbitrary value (and the program formally exposes undefined behavior, even though it will "work" on PCs, but with some unknown value for i). You should also check the input for values which seem to large or <= 0. — Peter - Reinstate Monica 31 secs ago
 
0
Q: Increase the efficiency of these nested IFs

HeavenlyThe following code is building a menu from a large list of menu items (Joomla, but no Joomla specific stuff required here, just general improvement). The code is trying to filter out, by continuing over, items that shouldn't be displayed on the page. This is because the menu should only be displa...

 
9:44 AM
I'm voting to close this question as off-topic because it belongs to codereview.stackexchange.com. — JosefZ 35 secs ago
 
0
Q: Best DatePicker Implementation When Working in HTML?

IzacchSorry if this is a broad question, but its one I feel I need some guidance with. I am writing web applications using ASP.NET, with Bootstrap and AngularJS. Usually I'd use the following HTML implementations for simplicity: <input type="date" ng-model="date1" class="form-control"/> <input type=...

 
10:12 AM
0
Q: Retrieving HKLM nodes of Windows10 Registry

Sankar SI have used below code, code is working fine, also retrieved the data, but there are performance issues. Retrieving the HKLM registry nodes is taking around 6 mins time. Please suggest any solution. Private Function f_AddNodes(ByVal WindowsRegistryKey As RegistryKey, ByVal TreeNode As TreeNodeCo...

0
Q: Design Debugger

user3760100This is a popular interview question. I see it posted everywhere but no solution to it. I know its a bit open ended but could someone explain what could be an acceptable solution in the scope of an interview where time is limited. An answer with class diagrams would be great. I have no clue how t...

 
10:27 AM
@AlekseiMatiushkin thanks for commenting, I didn't realize there was a code review site. I'm not sure how to move a post though. — Scripticated 31 secs ago
 
0
Q: Defining constants in the original standard of C

MartinI'm learning C using Mike McGraths 1st edition (1956). I know the book is old but I want to have a better appreciation for the changes made to C through its timeline. The compiler error is, error: ‘SYSTEM’ undeclared (first use in this function). #include <stdio.h> #define LINE "________________...

 
10:55 AM
possible answer invalidation by Haliax on question by Haliax: codereview.stackexchange.com/posts/232013/revisions
 
11:13 AM
0
Q: Nested for loop and if condition pandas replacement

Nestoras ChalkidisI have two different pandas data frames where in the first data frame (price), I have two columns. The first column named value has some values in it and the second column amount has the available amount for each price. The second data frame (bins) has as index some price intervals which are prod...

 
possible answer invalidation by Haliax on question by Haliax: codereview.stackexchange.com/posts/232013/revisions
 
11:48 AM
 
12:14 PM
0
Q: app.js file for Node JS Express Application

Tom HoskerThis is the app.js file of a Node JS web application which I've built within the Express framework. I patched together the below from a few different tutorials; no single tutorial seemed to meet my needs. The resulting code works exactly as intended, but it feels a bit untidy. Is this just how J...

 
12:55 PM
0
Q: <y code is executing out of order

stevefThis is my code please excuse the bad layout. I am teaching my self/learning from youtube. I am trying to alter the you tubers code at times but in this instance I have not but the code is executing incorrectly. it should ask for a number , user input, asks for an operator, user inputs, again ask...

 
1:51 PM
@Duga That's a manual rollback of the invalidation before.
 
2:11 PM
This "question" might be a better fit for codereview.stackexchange.com . Ask here when your programs behave in ways that you don't understand or, won't compile for reasons that you don't understand, etc. — Solomon Slow 17 secs ago
 
0
Q: Binary Heap module in Typescript/Javascript supporting min-heap and max-heap

Eli LivshitzAbout binary heaps: https://en.wikipedia.org/wiki/Binary_heap The purpose of this module is to allow quick and efficient priority queue management, compared to linked list. Efficiency: insert: O(log(n)), pop: O(log(n)). export enum BinaryHeapType { min = 1, max = 2, } export default c...

 
If the code is generally working well, you could ask to review it on Code Review. Maybe it turns out there is a better approach to solve the problem to begin with, which makes the code better readable. Please see codereview.stackexchange.com/help/on-topic before you decide to do that. — mkrieger1 42 secs ago
It seems that your code currently works, and you are looking to improve it. Generally these questions are too opinionated for this site, but you might find better luck at CodeReview.SE. Remember to read their requirements as they are a bit more strict than this site. — Paul Roub 14 secs ago
It does. My code review post with similar code is correct though — Oscar Smith 55 secs ago
 
2:28 PM
@Mast I'm pretty sure it is gone now, I think it got at least 4 flags.
 
0
Q: Snake Game C++ Improvements?

TarunAny suggestions or improvements you would suggest to improve this code? In particular, any code to make the snake move more smoothly and make the cursor disappear. #include <iostream.h> #include <conio.h> #include <stdlib.h> #include <dos.h> unsigned long int score, high_score = 0; const int n...

 
2:58 PM
0
Q: Binary digit display structure: Are there major/minor bugs in this code - and what are they?

DaniloI am doing a larger project independent, so I wish to make sure that my prior code is stable and that it will not make any issues along the way. Structure definition hpp #include <iostream> struct bin_data{ bool b0:1,b1:1,b2:1,b3:1,b4:1,b5:1,b6:1,b7:1; bin_data(int); ...

 
3:18 PM
0
Q: restaurant rating

jessps41994hi all im brand new to this and found this site to be very helpful i just wanted to know if im headed in the right direction. this is my scenario A program is required to prompt users to rate a single restaurant using a number in the range 1 –5, where 1 is very poor and 5 is very good.The data ...

0
Q: Two input file string comparison. Large dataset 800+k. Harsh criticism welcomed

DanSo I had a similar problem to this: https://stackoverflow.com/questions/39749430/import-huge-dataset-into-access-from-excel-via-vba/57995602#57995602 Although it was already answered, I provided a different solution on that thread if anyone else stumbled on it looking for something similar. If...

 
3:39 PM
0
Q: Single Player Python Battleship Game

K00lmanI made a battleship game for a programming class, where I only had about a week to get it done. Under this time crunch, and the fact that I don't know python very well, I made some of the code in very roundabout ways, and probably far more complicated than it needs to be. """ This is my program ...

0
Q: Java Swing applicaion gif animation leaving a trail

StealthRTHey all I am wondering if I can fix my animation issue. Currently it does animate just fine but with one issue - it seems to leave training images behind as it animates. This is my code I am using: import java.awt.BorderLayout; import java.awt.Color; import java.awt.Font; import java.awt.Gra...

 
Code that works well but leaves you with a bad taste is likely better of posted on Code Review. That said, AH:AN looks like contiguous ranges, why not do AH3:AN" & lastrow? What is the Interior.Color you're copying over? Is it the same for all these cells? Consider including a screenshot of your worksheet, and give reviewers as much context as possible. — Mathieu Guindon 58 secs ago
 
3:59 PM
0
Q: Given an array of positive numbers, find the maximum subsequence sum <= given sum, such that no two elements are adjacent to each other

MohitThis is my code It passes for few cases but not for all, for eg. number of elements n = 6 elements a[n] = {5,5,10,100,10,5} and sum = 25 the output is 15, but output should be 25 (5 + 10 + 10) click here to see its working in IDE #include<bits/stdc++.h> #define ll long long int using name...

 
4:40 PM
0
Q: Code to print even and Odd number using two threads

Arghya PalBelow I am giving you my code which I wrote to print even number using even thread and odd number using odd thread. Could anyone please validate my code whether it is correct way of doing it or not? I am getting correct result, but I just want to make sure whether I am doing it in correct way or...

 
4:51 PM
Monking
 
5:16 PM
Here is a keylogger. Don't know if it works on modern Windoes. codereview.stackexchange.com/questions/46980/…klutt 1 min ago
 
5:27 PM
Another syntax would be to treat LetSet as a (parametric) property, allowing you to do LetSet(v) = SomeMethod() - see here for the code — Greedo 21 secs ago
 
Greetings, Programs.
 
5:41 PM
0
Q: Rolling dice in a method chain

Wim ten BrinkI've been writing code for nearly 40 years now and am still not too old to learn and understand new things. Right now, my focus is a bit of OO with functional programming combined and C# with Linq is an excellent way to fool around with this. I'm also practicing deferred execution and aggregating...

 
possible answer invalidation by AlexV on question by Ryan : codereview.stackexchange.com/posts/232200/revisions
 
6:02 PM
-1
Q: text based adventure game

Elisabeth Kay McAdooI am new to coding and don't really know how to do much but its a requirement for a general education class so i was wondering if someone could help me build and text based adventure game. i need help on creating attacking and killing an npc. description = { "Rotunda" : "You are standing...

0
Q: compile time logical operations for web framework in c++

moisrexI'm working on a web framework in c++ and there's this part that I need to do something like this: using valves; App app; app.on( (get or head) and "/home"_path ) , [] (auto &req, auto& res) { // ... }); (The code above is not a semi-code, it'll be like that exactly) In order to implemen...

 
6:12 PM
Julia Silge on November 12, 2019

Welcome to November’s installment of Stack Overflow research updates! This month marks one year since my colleagues in UX research and I started sharing bite-size updates about the quantitative and qualitative research we use to understand our communities and make decisions.

In recent months, we have invested time and energy in improving the question-asking experience on Stack Overflow, one of the most fundamental interactions on our site. In August, I outlined what we learned from the question wizard, our first major change to the question-asking workflow in a decade. In September, Lisa  …

 
7:03 PM
-1
Q: Multi-threaded LinkedList Implementation

MFCDevI am learning to write a multi-threaded linked list class implementation. I could come up with below implementation: #include <iostream> #include <thread> #include <mutex> std::mutex m; template<class T> class Node{ public: T data; Node* next; Node(T data):data(data),next(NULL){}...

 
7:19 PM
@IgorRivin ThisWorkbook is indeed a class, and I never said you don't need any state. In fact nothing prevents you from adding a class module to your project and making it expose 50 public fields (that compiles down to 50 read/write properties on the class' default interface). Careful not to confuse state for data: VBA code hosted in an Excel document has the opportunity to leverage worksheets to persist data; state in code is fine, data in code isn't. I'd suggest posting your finished, working code to Code Review if you want feedback on any/all aspects of it. Cheers! — Mathieu Guindon 30 secs ago
 
0
Q: Import/Export data from/to json using python

ABAI developed a code in python that: add name, age and Id information for each person, search a person by name, if it exists then display a message "Found" and fill "age" and "Id" with the corresponding information, else display "not found" and fill "age" and "Id" with "---". In case of more tha...

-2
Q: prints two integers, root and pwr, such that 0 < pwr < 6 and rootpower is equal to the integer entered by the user

LifeBeyondTheCloudsIs my function giving the right output for the given problem? I am not sure if this program works correctly. Can you help me out with this? Did I satisfy these requirements? (MIT OCW Intro to Comp Sci Textbook - Finger Exercise) Write a program that asks the user to enter an integer and prin...

 
Thank you! I will check out Code Review! — Igor Rivin 49 secs ago
Welcome; the only thing that stands out to me is that you could do the conversion to int at the time you read from input, like int(input(...)) instead of writing int(membership_plan) multiple times. This is more of a question for codereview.stackexchange.com though. — kaya3 20 secs ago
 
8:05 PM
Note: Working code for reviews should be posted at codereview.stackexchange.comPaul Spiegel 51 secs ago
 
8:25 PM
-1
Q: Executing Queries within a while loop

Hossein ZareI would like to hear your comments on the following piece of code in PHP. This code is supposed to be running for 25 seconds per request until a record is found to get new notifications. If it's a bad idea, Please suggest better solutions. $i = 0; $user_id = auth()->user()->id; $timestamp = ti...

 
8:39 PM
Welcome; but this belongs on codereview.stackexchange.com instead. Stack Overflow is not suitable for broad questions like "how can this code be improved?" — kaya3 56 secs ago
 
-1
Q: Undefined reference to `pthread_create' compiling error

Arthur Henrique Della Fraga I'm trying to create a thread-save pointer that wrap my objects, delegating this behavior to a temporary Proxy instance who carry the critical section while existing template <typename T> class Wrap_ptr{ T* ptr; mutex* mtx; public: Wrap_ptr(T* _ptr, mutex* _mtx) : ptr(_ptr), ...

 
9:06 PM
0
Q: Changing the value of a cell to have the same cell output a result?

OsamaHow can I change the value of cell B2, which is 10, to become 100? Also, I want it to be applied to a range of cells in the same column, B2:B13. How can I do that? One more question, can I have different functions in the same spreadsheet using VBA? For example, Cells B2:B13 the input value * 10 ...

 
9:26 PM
0
Q: text based adventure-game to defeat an attacking NPC

Elisabeth print("Welcome player! Defeat the enemy in Hell to win, die and you lose!") print("You can take an item you see in the room, you have to have an item in your bag") print("(which means you have taken it) to be able to fight the enemy!") print("You must also eat and drink to keep health...

 
9:42 PM
I believe that questions asking not about a specific problem but instead generally "how do I improve my code" are better suited for Code Review. Please review their guide for posting, as the requirements differ between this site and that. — Shepmaster 32 secs ago
 
-1
Q: biased choice method unexpected behavior

cbeamanNo matter what I try, my biased choice method always returns move as none. I have a feeling my syntax is off, but I can't figure out where. def biased_choice(self): move=None if self.last_move is not None: if random.random()<self.move_prob: move=self.last_move ...

0
Q: Python - Checking for errors

Tyler HeistHow would I go about checking to make sure only valid results are entered/How do I create a loop that will continue to ask one of the questions until answered correctly? def hotel(): rooms = [0, 150, 180, 400] breakfast = [0, 20, 0] type_of_room = input('what type of room would you l...

 
10:09 PM
Ask a single, focused question. "Pretty laggy" is not a specific problem. All of your questions are broad, "make this better" requests -- which is outside the scope of Stack Overflow. Improvement of working code often belongs in CodeReview. Please check Which site? for various issues. — Prune 15 secs ago
 
10:25 PM
Please post this as full, runnable code on Code Review instead. This is quite broad for SO. — Carcigenicate 40 secs ago
 
10:40 PM
possible answer invalidation by K00lman on question by K00lman: codereview.stackexchange.com/posts/232255/revisions
 
@Duga rolled back
 
11:12 PM
-1
Q: How to avoid getting trapped in local minimum in 8-queens

briennakhI have written the following code: (defun make-board (num-queens) (setf board (make-array '(8 8))) ;; make empty board (dotimes (i num-queens) ;; for each of 8 queens, (loop ; loop until we generate a random coordinate that doesn't already have a queen in it (setf x...

 

« first day (2383 days earlier)      last day (32 days later) »