« first day (1728 days earlier)      last day (2292 days later) » 

12:00 AM
RELOAD! There are 4955 unanswered questions (90.2120% answered)
@Pernoctador you cannot ask people on stackoverflow for recommendations and tips to better your code or even give a feedback for your code. Maybe codereview.stackexchange.com ? — Oussama Ben Ghorbel 20 secs ago
 
12:25 AM
-1
Q: Guessing game code won't reach second guess

Patrick StumpsI'm new to coding and need some help. I'm writing a code for a guessing game, where the player must input their guess and the code will determine if the answer is right or wrong, along will telling the player if whether their answer is higher or lower than the number generated. However, and issue...

 
1:03 AM
0
Q: Can you describe what you think this function does?

Johnson DaveI have been asked to figure out what i think this JavaScript function does, but I'm not too sure. I have a general gist of it, I think it is splitting up some input and putting them into an array and returning them in a certain format. But I cannot describe exactly what it does. Can anybody help?...

 
This is rather a question for Code Review. — Piinthesky 43 secs ago
 
1:18 AM
0
Q: Basic Equation Tokenizer

NickARecently I've been doing some experimenting with RPN and the shunting-yard algorithm, in order to test these systems more appropriately I planned on writing a tokenizer and then using these tokens to check validity and eventually get some output. I also think that I could use this to work with so...

 
1:41 AM
If you have working code, and you're just wanting people to review it to try to improve it, you should be asking on Code Review instead; that's exactly the reason it was created. This site is for questions about problems you're having with code, not about suggestions for improvement or optimization. — Ken White 32 secs ago
 
 
1 hour later…
2:46 AM
0
Q: Jquery Accordion + Sub Accordion + Search Filter

DannyI have a top level category accordion + accordions within those and a search that auto-opens the 2 levels when results are found. Since you can't open multiple at once there is a Next button that shows up by the search field. I threw this together but I feel there's got to be a cleaner way to do ...

 
3:41 AM
0
Q: using OUTPUT parameters as variables

Mr.JI have this code DECLARE @columnName varchar(25) DECLARE @cursor CURSOR DECLARE @sql nvarchar(1000) DECLARE @tableName as nvarchar(30) DECLARE @PartNo as nvarchar(30) DECLARE @value as integer set @PartNo = 'partnumber' set @tableName = 'sometable' SET @cursor = CURSOR FOR select c.name from s...

 
3:56 AM
0
Q: Inserting an element into a linked list

LuckyThis program adds an element to the end of a linked list of integers, which is previously keyed in by the user. This works fine on my computer, but I am wondering: If there is a simpler way to do this (three procedures seems a lot for this) If any of the code could potentially become problema...

 
4:16 AM
The question better be asked in codereview.stackexchange.comc0der 49 secs ago
 
0
Q: Convert uppercase characters to lowercase and insert a space where each uppercase character used to be

TheLearnerPrompt: You have been given a string s, which is supposed to be a sentence. However, someone forgot to put spaces between the different words, and for some reason, they capitalized the first letter of every word. Return the sentence after making the following amendments: Put a sing...

 
Opinion questions, as you alluded to, are generally frowned upon here. You may want to check out codereview.stackexchange.comJosh Brody 53 secs ago
 
4:53 AM
0
Q: Unit Testing in MVVM

Matthew SThe Problem So I've been working on an MVVM WPF application as a side project and wanted to get good practice in things like TDD (and better MVVM). I'm just not sure how to go about unit testing my code and was wondering what you guys think. I'll go and post some of my Model and ViewModel class...

 
 
1 hour later…
5:53 AM
Monking
 
0
Q: Python script to generate a playlist with Spotify api

diwakar_wagleThe result is just a list of youtube links. There are couple of questions: (a) I'm requesting access token every time and throwing away, how do I save it for future use? Is saving it in a temp file good idea? (b) I don't have much experience with concurrent programming, so this is the first ti...

 
@Josh, I agree with your advice, but more because the OP has presented working code. SO is concerned with broken code and "how to" questions, whereas Code Review seeks to show how working code can be improved. — Cary Swoveland 5 secs ago
 
Monking
 
 
1 hour later…
7:15 AM
0
Q: DFS implementation in Go

SKSVI tried implementing DFS using recursion in Go. When I dfs the graph, I am able to get the path of traversal. But I'm unsure what else could I add to this DFS in order to make the search better. Also, Is there any benefit from using a stack instead of traditional recursion? I know that recursion ...

 
7:49 AM
0
Q: Java iterate two lists and find matches

XtremeBaumerI have 2 lists with varying length. Both lists contain data which has to be matched with entries from the other list. Currently I am iterating both lists with a nested for-loop. List<MyClass1> list2 = myClass1dao.findUnmatchedEntries(); List<MyClass2> list1 = myClass2dao.findUnmatchedEntries(); ...

 
I would recommend you posting your question in Code Review. You will probably get also very interesting answers and proposals — WooWapDaBug 53 secs ago
 
8:10 AM
0
Q: JavaScript scoop error

woodchuckI got at brainteaser in my mailbox, it is supposed to take 20 minutes but apparently, I suck so much at scope that I crashed Chrome. The idea is that a string is provided to you. You then use the string to generate random sentences akin to lorum ipsum. var words = "The sky above the port was the...

 
9:02 AM
0
Q: Operator overloading for Boost interval (vectors)

bernhard_eI am a complete newbie to c++ and programming in general. I need to write something for scientific purposes and as such, performance is crucial. I introduced two types, matrices and vectors with intervals as entries, as follows: #include <eigen3/Eigen/Dense> #include <boost/numeric/interval.hpp>...

 
9:43 AM
1
Q: Using bisect to flip coins

GraipherI am trying to solve this problem on Codechef, which has a list of \$N\$ coins, all initially tails-up, and a list of \$Q\$ commands. There are two possible commands, 0 A B flips all coins in the interval [A, B] and 1 A B prints the number of heads-up coins in the interval [A, B] (both intervals ...

 
I think this belongs to Software Engineering or Code Review. — Matti Lyra 12 secs ago
I'm voting to close this question as off-topic because it calls for argumentation about best practice. Should be moved to code review. — Matti Lyra 50 secs ago
 
9:58 AM
0
Q: Assess the quality of my Unit Test for an Offer Calculator

w0051977Please see the code below: [TestFixture] public class RequestTest { private IList<Product> _Products; private Concor _concor; private Chestnut _chestnut; private IOfferCalculator _offerCalculator; [OneTimeSetUp] public void OneTimeSetUp(...

 
10:19 AM
Try on code review ... but no, it is not a right way — Selvin 29 secs ago
So, what is your exact question? Something is not working? If you need a code review on your design, you may post a code in codereview.stackexchange.comDmitry Sazonov just now
@Selvin: First of all, thanks pointing me towards codereview. I didn't realise there is a separate part of stackoverflow that focuses on reviewing code. — MWB 58 secs ago
 
11:24 AM
0
Q: Static class for constants with reference to java resources

MWBI want to store the colors I use in the colors.xml file. In addition to using them in an xml-layout, I also want to use these colors in my Java code, when drawing things to the Canvas. The thing is, I am not always using the colors in a class that extends Application. For example, I have classes...

 
If your code works and you're looking for a more elegant way, try codereview.stackexchange.com. — jsheeran 58 secs ago
 
11:47 AM
Also, if you have working code, better to post it on codereview.stackexchange.comnotyou 27 secs ago
@user3343378 I'd edit your question to specify that, as that was not mentioned. Also, I'd still probably go to the code review site if you have working code. — notyou 20 secs ago
 
12:03 PM
0
Q: Get JSON script code with pushing to heatmap

BalanceI have script that make db call and than filter results. After filtering it push it to array and show on map Here is my function function getDriving() { pointArray.length = 0; markers.length = 0; var todayval = new Date(); var url = $('#map').data('request-url2'); $.ge...

 
possible answer invalidation by iOSGeek on question by iOSGeek: codereview.stackexchange.com/posts/185872/revisions
 
Monking
 
Monking
@Duga Nah, although I wouldn't put it past the user to invalidate later on.
 
12:18 PM
-2
Q: Describe in your own words what you think this function does?

IvanI know its not a super specific question about something small and exact like we are supposed to ask on here, but pleaseeeee can somebody find some kindness in their heart to help me out here?? just need a very simple quick explanation on what you think this function does, because I am struggling...

0
Q: Swift/iOS component for label with clickable text buttons

Eivind LindbråtenSo I'm creating a component based on UILabel, which I'm calling RichLabel. The main goal is to add support for clickable links (multiple). It should also be possible to to differentiate between types of links, so I can handle them differently. For instance one link should open ModalWindowA and an...

 
12:46 PM
@CaptainObvious Go away. Don't try it a third time.
 
1:10 PM
possible answer invalidation by madtyn on question by madtyn: codereview.stackexchange.com/posts/185230/revisions
The first link in the duplicate shows how to pass array from C# to C++. The second link shows how to do the opposite. You must free it after receiving the array returned from C++ to C#. You have to pin the array otherwise expect your plugin to crash Unity sometimes and work other times. Also you will be creating and destroying arrays which is slow. That's why people decide to pass array from C# to C++ to be modified. I suggest you read this post as it describes solution to most of the stuff you mentioned in this question. — Programmer 26 secs ago
 
1:25 PM
possible answer invalidation by madtyn on question by madtyn: codereview.stackexchange.com/posts/185230/revisions
 
Greetings, Programs.
 
@Mast They did.
(Same question on SO, deleted)
 
1:40 PM
-1
Q: 3x3 determinant with very close vectors in c++

user14290I have a problem that might be more about (basic) numerical analysis than coding... I nead to compute determinants of 3x3 matrices those 3 columns are very closed to each others (and they are norm 1, if that may help). First I used the formula a[0]*(b[1]*c[2]-b[2]*c[1])-a[1]*(b[0]*c[2]-b[2]*c[...

 
@Duga Rolled back.
@CaptainObvious Broken.
@Zeta Not reading the help before posting a first question is somewhat understandable. But that's nuts.
And he's making a fuss in the comments, great...
 
@Mast So are those tags.
 
Yup.
 
@CaptainObvious crap ... apparently I fed a troll ...
 
@Vogel612 You better take a step back and look at your life.
j/k.
 
2:08 PM
If you want help with a specific problem, you need to narrow the question down to that particular problem. If you rather want a general review of working code, then post at codereview.stackexchange.com, but then make sure to copy/paste the full code including a test case with main() and read what's on-topic on that site, codereview.stackexchange.com/help. — Lundin 46 secs ago
I'll look at codereview next time, thanks. @Caleth I've been told to keep code DRY. I probably have an upper and lower bound function already written in a previous exercice. I should find out how to make and include my own libraries. As for sorting algorithms, I think we should be doing those this semestre, but I'll probably try to get a head start and add one to this. — meLon 53 secs ago
This may be better suited to CodeReview.SE. — Flater 33 secs ago
1) "I'm trying to rewrite and speedup my code." As far as we are concerned - you don't have any code (since you don't show any). 2) If you have functional code, and are only looking to improve performance, have a look at codereview.stackexchange.com. — Algirdas Preidžius 55 secs ago
 
2:42 PM
TTGH, gniknoM!
 
0
Q: Fluid mobile-first website CSS Grid

Danny FairbrassNew to programming and web design and I'm looking for ways to improve my code. What are some things I do well and things I do poorly? How could I optimise my code in any way? Anything else you have to add. Thanks! /* Global -------------------------- */ body { font: 1.5rem/1.5 Lato,...

 
3:07 PM
Also, Josh is correct. This is a question for [codereview.stackexchange.com]. — Mark Thomas 21 secs ago
@MarkThomas Absolutely not! This question would get closed at Code Review for being example code. It isn't doing anything. Please take a look at their help center before making such recommendations again. — Mast 41 secs ago
@Mast, you are correct. I suppose it's like this: Broken code: stackoverflow.com; Working code: CodeReview.stackexchange.com; Hypothetical code: SoftwareEngineering.stackexchange.com. — Mark Thomas 13 secs ago
Welcome on StackOverflow. If there is no bug in your code, but you're looking for improvements; you may need to repost this question on CodeReview. This is the place to get improvement for a code already working. — NatNgs 59 secs ago
 
3:28 PM
 
@RMunroe The hover text is the best ever.
 
3:43 PM
-1
Q: Quiz structure and progamming

Mourad Karoudithis my first question in stackexchange codereview. I want to program a simple quiz with php (can put multiple quizzes on same time) example : quiz 1 title : Let's see if you can know this persons [steve jobs](the person in image) bill gates steve jobs => true elon musk ... [nikol...

-1
Q: Why is & 0xff applied to a byte variable

nrainerWhy is & 0xffapplied to a byte variable in the reference implementation of the time-based OTP (TOTP, RFC 6238)? In my opinion, this does not change the value since the byte data type has a length of 8 bits. byte[] hash = hmac_sha(crypto, k, msg); int offset = hash[hash.length - 1] & 0xf; int bi...

 
 
4:28 PM
Thanks for the link, seems really useful. Made the tweaks to keep it happy, but I guess I'll also post on codereview once I'm done to get some proper feedback on what I'm still doing wrong :) — Peter 47 secs ago
 
4:39 PM
ps. it looks like you don't have one specific question, but rather need lots of help. codereview.stackexchange.com may be a better place for getting such feedback. — JohnLBevan 19 secs ago
 
1
Q: Hash Table Implementation using Java

kopruluLooking for feedback on my java hash table implementation. Code uses an array of lists of entries as a sort of separate-chaining; not sure how much I prefer this approach in practice, and am considering using linear / quadratic probing instead. Table should resize above a certain load %. I also t...

 
4:56 PM
If the method is currently working and you are just looking for ways to optimize it, then this question would be a better fit on codereview.stackexchange.com — OH GOD SPIDERS just now
Hi, you should write your code review here Code Review Stack Exchange codereview.stackexchange.comAntoine Dubuis 25 secs ago
@JohnLBevan No, it looks like the user doesn't know how to fix his problem. Code with problems which cause the code not to work as expected are hugely off-topic at Code Review. — Mast 56 secs ago
 
Monking
 
0
Q: Refactoring method that concatenating strings

aseolinI'd like to refactor a Java method I've created, making it cleaner and more beautiful. The method concatenates some strings, which may be empty or not. I'm new on java so i'm not sure how to do that, especially because between the strings I may have separators. Here is my method: private String...

 
5:14 PM
@Nic please don't chameleonize your questions like this. If your code works as intended and you want to make it more efficient, head over to Code Review. — Mat's Mug 10 secs ago
 
5:24 PM
0
Q: Changing php.ini with code in a LEMP stack on Debian systems

ArcticoolingThis is how I establish a Debian LEMP and use code to change php.ini as part of php-fpm. Please review the way I change php.ini. I believe my approach here is bad. apt-get upgrade nginx mysql-server php-fpm php-mysql php-mbstring php-mcrypt -y sed -i "s/post_max_size = .M/post_max_size = 200M/ ;...

0
Q: Beginner solution to basic quiz exercise, a la Gophercises

geostockerI just started golang development about two weeks ago and recently finished the recommended introduction book. I'm now working my way through Gophercises - a sort of collection of exercises to improve beginner's understanding of Golang through small projects. This is my solution to the first ...

 
If your code works, then it is rather a question for Code ReviewPiinthesky 24 secs ago
1.Do you have any idea to solve this? not with the information given. 2. working code that needs to be sped up should be on codereview.stackexchange.com not here, but you will need to post the full code and exactly what you did to slow it down. — Scott Craner 58 secs ago
 
5:40 PM
0
Q: Need Reviews on my Java Code for Notepad

Akash gargPlease give me Suggestion to improve it. Here is the Code.Please give me Suggestion to improve it. Here is the Code.Please give me Suggestion to improve it. Here is the Code. import java.awt.*; import java.awt.event.*; import java.awt.print.PrinterException; import java.io.*; import java.text...

 
6:15 PM
0
Q: C#: Shutdown Mechanism

ropuxilI'm trying to create an effiecent way to shut down my console application. To do this I have a while loop in my program's main method waiting for a request to shutdown. var rebootAfterClose = false; while (true) { var input = Console.ReadKey(); if (input.Key == ConsoleKey.C && input.Mo...

 
6:47 PM
0
Q: Calculating distance between two or more coordinates using Distance matrix API

Hossam HussienI have encountered a strange behavior (maybe I'm missing something), I'm calling the below function and it should return the distance between its parameters (a,b) but the problem is whenever I change the value of return variable locally (inside an if condition) it returns "undefined" value ??? f...

 
7:23 PM
0
Q: This code is to very simple iOS app that signs people up for a street-ball league in there neighborhood.

andrewlundyI know there is some repeated code in here, which is why I need a code review. The point of this app is simple, the user opens it, taps "begin", they select their league - men's, women's or co-ed, and then they select their skill level. The main issue I see with this is the fact that the button...

-1
Q: Can anyone see my anguar 5 project?

mountpointI'm beginner in Angular. Here is my testing project. Can you review the code? At least give some tips for improving the code. Thank you very much in advance!

 
Welcome to StackOverflow! Questions only requesting a code review are likely to get closed as offtopic here. You should rather post this on codereview.stackexchange.comderHugo 50 secs ago
This belongs on Code ReviewDrew Chapin 30 secs ago
 
0
Q: Cuda Shared Memory 2d array

zerkesHi We are trying to implement " game of life " project using CUDA but with one difference , we want to count the alive neighbors by counting in a range of 5 of every cell instead of range 1.(in all directions). We have created something but it is not working properly. We are testing it by using ...

 
7:55 PM
0
Q: increase the efficiency of a matching algorithm

user2682863I'm trying to create an algorithm that will match one set of objects with another. Each of the objects from one group can be matched with some of the objects from another group. Once an item has been matched, it cannot be matched to another item. My current implementation iterates over each of ...

0
Q: Select multiple count queries in single query

amallardI currently have 6 very similar queries that I'm trying to increase performance on by making them all subqueries in 1 query. I'm not sure what is better performance wise, keeping them 6 separate queries, 1 query with 6 subqueries (as shown below), or some other method that I'm unfamiliar with. S...

 
possible answer invalidation by skribe on question by skribe: codereview.stackexchange.com/posts/185970/revisions
 
8:10 PM
possible answer invalidation by skribe on question by skribe: codereview.stackexchange.com/posts/185970/revisions
 
8:25 PM
@derHugo Please take care when recommending other sites. "We have created something but it is not working properly" — that makes it off-topic for Code Review. — 200_success 41 secs ago
and what Code Review is about? things that work properly? We would not ask... It is not like it is not compiling or something , we just believe it gives wrong result. — zerkes 20 secs ago
 
0
Q: Testing abstract SettingConverter with mocks

t3chb0tOne of my frameworks uses the ISettingConverter interface as an abstraction for serialization. public interface ISettingConverter { [NotNull] object Deserialize([NotNull] object value, [NotNull] Type targetType); [NotNull] object Serialize([NotNull] object value); } It is impl...

0
Q: css/jsx render empty div prior to data

devOpGuyI currently render 6 blocks of data but the data of course needs to be mapped and then rendered to the screen. So this has a slight delay (from when the webpage is accessed). I was wondering if I could render empty blocks(divs) to the screen and then overwrite those with the actual mapped data. H...

 
Code Review is for seeking suggestions to improve code that already works correctly — for issues such as performance, scalability, readability, maintainability, etc. — 200_success 53 secs ago
 
8:49 PM
0
Q: Tower Hopper problem recursive approach

jeremy radcliffThe Tower Hopper problem gives us an array of values representing heights that express how far we can jump from a certain tower, and asks whether there's a way to get from tower[0] (0 indexed) to outside of the array. For ex, if we have towers = [4, 2, 0, 0, 2, 0], we can jump from towers[0] to ...

 
Consider if this would be a better fit for Code Review. Pretty sure it would be great there, but might want to read their help center to verify. — JETM 12 secs ago
 
9:04 PM
1
Q: Simple change tracker for POCOs

JanDotNetProblem I have a list of POCO model objects (approximatly 1.000 to 10.000) and I want to track changes on them: Check if at least one of the items has changed (to show the user that something changed) Get all new, deleted and modified objects to update the state in the database For the first...

0
Q: Design pattern in porting Javascript to Swift 4

Christophe MaroisI have written some Swift from the first time, being competent enough in Javascript and having some experience in Ruby and Python. For my education, I've written a function that parses a roman numeral string and returns its integer representation, first in Javascript (ES2015+): const dict = [ ...

0
Q: Regex pattern definition implementation

Raul SebastianMy requirement is to design a part of a solution in such matter that specific placeholders are replaces dynamically with a defined logic and new rules can be easily added. Simple example: Today is {today}. The year is {year}. Last year was {year-1}. Should output something like: Today ...

0
Q: Safely and efficiently parse and replace tokens in a string

AlexanderI have written a VBA function that will do parsing / replacement according to tokens / placeholders. Example: Input string: Username %u, date is %d. The function would replace %d with the current date and %u with the current username; the output would look like: Username Andy, date is 20170820. ...

 
9:27 PM
It feels... empty
 
The same question in codereview.stackexchange.com/questions/186014/… much easier to read using for loops instead of for eachAJD 25 secs ago
 
@skiwi What browser is that?!
 
@Peilonrayz Firefox
 
@skiwi Wow, I've never seen tabs like that... :O
 
@Peilonrayz The pinned ones you mean?
Or the fact that I only have 19 tabs open?
3
 
9:34 PM
Are they all pinned? I'm used to them having the title text there too...
 
Yeah, all of those are pinned
 
Ohhh... TIL
 
-1
Q: Robot Path Finding Algorithm create infinite loop

Saswati Bhattacharjeeimport java.util.*; public class path1 { public static void main(String[] args) { //Maze design 1 indicate a cell with obstacles int[][] grid = new int[][]{{0, 0, 1, 0, 0, 0}, {0, 0, 1, 0, 0, 0}, {0, 0, 0, 0, 1, 0}, {0, 0, 1, 1, 1, 0}, {0, 0, 0, 0, 1, 0}}; //Initial position of the Ro...

 
Huh, funny how not pinning a game to my taskbar to which I normally login daily makes me immediately almost forget about it
 
As this is working code that runs (slowly) without error, this might be better asked over at code review. — jwvh 14 secs ago
 
10:33 PM
@CaptainObvious Should the tag be removed here? OP has translated JavaScript to Swift, and asks for a review of the Swift code.
 
10:44 PM
0
Q: What is done after the code is written in java to make calculator?What are the procedures after it

Sanskar Dwivediimport java.util.Scanner; public class Calculator { public static void main(String[] args) { Scanner input = new Scanner(System.in); Maths Maths = new Maths(); double answer = 0; double inputA, inputB; char operator; boolean done = false; while (done == false) { System.out.print("Pleas...

 
11:07 PM
Also, codereview.stackexchange.com is a more suitable place for general code review. As for this case, simple workaround: Break the 4.6 mil file into smaller files (100k each), and then run it on one file at a time, and when done join all the results together? — Superbest 5 secs ago
 
0
Q: Using Python to get data from an API

Michael DarnellGood afternoon, first time poster here. I am learning Python (about 6 months in, sporadically) and today I decided to write a script to download JSON information from an API. To start, I wrote a one-page script with a few functions. The script does the following: The user enters the script o...

 
11:45 PM
@MartinR I removed the tag, and also blockquoted the JS code.
 

« first day (1728 days earlier)      last day (2292 days later) »