« first day (1964 days earlier)      last day (2071 days later) » 

12:00 AM
RELOAD! There are 5606 unanswered questions (89.8807% answered)
 
12:29 AM
@Duga under 90%?!!?!?!?!??!?!?!?!?
 
12:53 AM
0
Q: Breaking up a simple Paint application into smaller classes

HR32(Sorry this is a repeat post, I hadn't logged in on my initial question and am unable to respond) I currently have a working code for a simple paint application but it is all in one file and very long. I'm unsure of how to break the code up into smaller pieces and create classes with them. I trie...

 
1:06 AM
I'm voting to close this question as off-topic because it belongs on codereview.stackexchange.compar 54 secs ago
 
1:41 AM
0
Q: Matching socks from a bag of socks

Koray TugayI was reading the book Algortihms to Live By and was inspired by it to take a shot at simulating How to pair socks from a pile? (sans the efficiently part at the moment). import random from operator import add def get_pair_of_socks(num_of_socks): return random.sample(range(num_of_socks), n...

 
2:29 AM
0
Q: C++ I need some assistance, please ! :(

Ghosterrifymy name is Josh and I need help with my code :'( Sorry to bother you guys, I've started to get hands on codding a game with my 'lack of knowledge' and encountered some errors, the code below is an adaptation that I made from the Polymorphism course... I'll try to explain what I want to do... I w...

 
3:27 AM
You can do many things to improve performance with this snippet, starting with reducing the total number of queries. CodeReview is a better place for this type of question. Moderators, please migrate. — mickmackusa 1 min ago
 
3:52 AM
I'm voting to close this question as off-topic because it belongs on another site in the Stack Exchange network (CodeReview) -- it is functioning code which needs to be optimized. — mickmackusa 1 min ago
 
4:21 AM
0
Q: Python Tkinter Based Calculator

D.AusterusI've recently finished building a calculator in python using tkinter, and would appreciate any and all feedback on it. Please ignore the use of the "eval" function, I know this is advised against using but my teacher insists that we use it in our development. I'd really like to condense and sim...

 
4:32 AM
Monking
 
5:25 AM
0
Q: Pass data from SOAP(WSDL) to ExpressJS endpoint

ricardoNavaI'm currently learning how to use node on simple projects, this time im fetching data from a SOAP service and passing it to an ExpressJS endpoint sort of like a REST endpoint. The following code works fine but im looking for some help. I want to refactor the code to not use all those constants ...

0
Q: Better approach for redux actions inside a container

isemajI used to import all the actions in the container's argument which looks messy (I put a comment below where I do it in that way). I want to know if there is a better approach when using actions with react-redux. Should I use alias and if I use alias is there any downside effect on the performance...

 
5:57 AM
0
Q: Save image+gif as single gif/video file

MudassirI have a background image on which I can add multiple images, gifs, Text (IQLabel). How can I make a single gif or video of this. The output file should play all gifs (gif images can vary in size).

 
6:10 AM
The style indentation presented here is not OK, and would get you a "please explain" in any code review and/or programming assignment. — Kingsley 45 secs ago
 
0
Q: The card game war

Yummy275I'm a beginner programmer looking for a review of my simple war card game program I made. Any advice is appreciated! Thank you for your time looking at this! enum Suit { Hearts, Diamonds, Spades, Clovers } enum Face { Two, Three, Four, Five, Six, Seve...

 
6:35 AM
Monking
 
6:56 AM
From what I understand the release works fine - one runs however into other problems such as memory fragmentation so that the freed memory can not be used. I found it more efficient to do the parallelisation outside of R. I wrote an example using make there if you are interested. — bdecaf 47 secs ago
 
@Malachi The following graphs show 1) the total amount of CR users and 2) the amount of answered questions.
The following are 1) questions/day and 2) answers/day.
 
0
Q: How to prove that implementation of `parallel` method is good enough?

Alexander ArendarI am reading the "Learning Concurrent Programming in Scala" and there are exercises in the end of each chapter. So one of exercises is Implement a parallel method which takes two computation blocks a and b, and starts each of them in a new thread. The method must return a tuple with the r...

 
All thanks to SESE.
We're not doing so well.
Especially note the questions/day is stagnating while answers/day drop.
We need more answers.
Or perhaps we should nuke questions more valiantly.
I'm not sure.
Both?
 
7:36 AM
This question should be here codereview.stackexchange.comJodrell 16 secs ago
Indeed, it seems I should post it on codeReview, didn't know that part of the site. — LMS 58 secs ago
 
7:57 AM
@Mast Graphs doesn't start at 0, so the drop is highly exagerated
 
@MathiasEttinger I didn's say anything about the magnitude of the drop.
Point is it has been dropping since May (roughly) consistently.
In a good situation, it should've gone up.
At least the answers/day is still higher than questions/day, so we got that going for a while. We're definitely not dead yet.
 
For instance, it doesn't impact your outcome at all, but why would you write } else{ continue; }? This is not my primary gripe with your answer, but it serves no purpose. ...there is more that I could inform you of, but when I want to review code I go to CodeReview. — mickmackusa 1 min ago
 
@Duga You're a bloody moderator, read the darn help center for once...
 
I think it's not been enough time to say it's dropping
it can just be a seasonal effect
you know, july & august ;)
 
8:09 AM
@MathiasEttinger The graph is long enough to see data for July & August previous years too.
 
And we can see that the slope is diminishing as well
before going back to "normal"
 
 
and again, the plot doesn't start at 0, we're talking about small numbers here 31.4 -> 31.2 is less than a 1% drop
 
@MathiasEttinger Yes. Usually, there's a growing line simply slowing down in this time period. Now, there was no growing line so it went negative.
@MathiasEttinger And I didn't say anything about the severity of the drop.
Just that there is a drop instead of a steadily increasing line for a longer amount of time and the stagnating part in front of it should indicate something.
 
@Mast Ok, didn't get your point well enough the first time
 
8:14 AM
@MathiasEttinger I've heard that before, my bad.
 
Is it possible to somehow get the "active" users instead of total number ?
 
Don't get me wrong, the site will survive for a long time even with the current trend. But it's not going where it should.
 
I mean, people that regularly answer.
 
@MathiasEttinger Too subjective.
@MathiasEttinger Still subjective.
But if you can think of a well-defined term for that, probably.
 
Hum…
Grouping is done every two weeks or so, right ?
So let's say people with more than 1 answer for that period
Objective enough?
 
8:18 AM
Definitely objective enough.
SESE has an API, so I guess it can be done.
 
0
Q: Javascript - Refactor this particular peices of code

MatarishvanI have two pieces of code First piece of code contains several number of if conditions, which needs to be refractor if(parentCondition){ if(condition1 === "string"){ //contains 4 to 5 lines of code break; } if(condition1 === "string"){ ...

 
@CaptainObvious Stub code
 
Guys, please...
-3
Q: Proper way to open and close excel using vb.net winform

ThisGuyJustNeedsHelpI have a desktop winform application that opens excel workbooks. My question is, when the user open the excel workbook, the user will be doing stuff to the workbook then save ect. At which point should I release the com object of that excel or should i leave it open? If i leave it open, the file ...

-3 and no comment. And it clearly says "NEW CONTRIBUTOR"
This is not how I want us to welcome people on this site.
 
@SimonForsberg Consider the quality of the question. Consider the hovertext of the down-vote button. Consider the amount of crap people post on this SE.
Afar from that, yes, we can do better.
Writing a comment.
Mind you, I'm not good at writing friendly comments. Fair warning.
 
8:37 AM
@Mast I have seen far worse questions than this.
 
@SimonForsberg And I downvote those as well.
 
You can downvote whatever you want, but when there's the "New contributor"-sign, I do expect there to be a comment informing the user about what's wrong and what to improve.
3
 
@SimonForsberg I expect them to read the enormous wall of signs posted to the right of their question which appears while writing the question.
I guess the world is all about broken expectations.
Anyway, since I do believe we could've done better and possibly should've done better, I left a comment explaining what I think is wrong with it.
Now I think about it, it might be worthy of a close vote as well.
We have a FAQ and not enough people read it. Not enough people know it even exists.
But we already throw so much information in new-users their face the situation can hardly improve by adding more new information.
 
Never underestimate the power of personalised feedback.
@Mast fixed for you
 
Thanks.
@SimonForsberg True. Since I'm stubborn enough in plenty of other fields already, I might just as well keep stubbornly leaving comments on such questions.
2
They just might do something.
 
8:53 AM
0
Q: Modal displayed in Google Spreadsheet from Gscript

LMSAt first i'm not really a programmer. thus, this application may be started in a bad way, but here is my questions. It's not a specific one because I have no real clue about how to improve my code. Let me know how I can recenter this question if needed. Anyway, here is what I do and my issues: ...

 
0
Q: At the limit of Optimizing MATLAB animation?

Hojo.TimberwolfFor the last few weeks I have been at it trying to update my code to allow for fluid animation of objects traversing an axes. After numerous posts and comments, I have managed to push the code into exactly where I want it to be and function exactly how I want it to function. The last push is to t...

 
Without a Minimal, Complete, and Verifiable example (i.e. something we can run), it's basically impossible to mimic or improve on your bottlenecks. Note that the code review site requires runnable code too. — Wolfie 10 secs ago
 
9:25 AM
0
Q: Trying to roll 2 dice, 2 players, 5 rounds, if score at the end of the round is even +10, if odd -5. If they roll a double, 1 extra roll of die

AlpacaMakaimport random min = 1 max = 6 roll_again = "yes" while roll_again == "yes" or roll_again == "y": print "Rolling the dices..." print "The values are...." print random.randint(min, max) print random.randint(min, max)

 
What is the question? “Any suggestions and critics […]” would be better suited at codereview.stackexchange.comfeeela 57 secs ago
 
9:42 AM
I would agree on sharing the code, but you can do it easily enough in here as well, I had created a year ago a default playground on codereview that I use quite often when I have to implement a react/redux snippet as part of an answer ;) — Icepickle 10 secs ago
 
10:13 AM
0
Q: Direct to another folder with .htaccess file

yusuf tezelLets say my folder structure looks like this someproject/v5/.htaccess someproject/5.0.1/lib.js someproject/5.0.1/assets/img/png/anotherfolder/helloworld.png someproject/5.0.2/lib.js someproject/5.0.2/assets/img/png/anotherfolder/helloworld.png When user enters url's like (and lets say I am the...

 
10:45 AM
0
Q: Logistic Regression using word2vec

sasha_vsI am new to python and want to train a LogisticRegression classifier on the pretrained word embeddings, using word2vec model. I use the polarity dataset consisting of 1000 (900 for train_set and 100 for test_set) moview reviews. I have succesfully trained the embeddings but now stuck with the a...

0
Q: Achieving better frame rates in matlab figure animation

Hojo.TimberwolfI have built a class definition in matlab which can generate an animation across 3 separate axes. It appears to work but the major problem is that when I transitioned from 1 axes to 3 axes, the frame rate took a nose dive. I was hoping that by using linkprop, I could increase framerate but it app...

0
Q: Find longest Palindrome substring

coderI am preparing for technical interview and I found this question on geeksforgeeks, but I did not understand their solution. So, I have written my own solution. I want to optimize this code. #include <iostream> #include <string> bool isPalindrome(std::string& str) { for (int i = 0, j = str.l...

0
Q: Oracle SQL query- need to reduce response time

user9634982I wrote a query which fetches the record of NULL DAYS (Occasion,weekoff,emergency holiday), later I implemented the same in GUI, so my admin can able to see the list, it will take minutes to load the data, even in my SQL developer, I want to reduce the load time. I want you people to review my q...

 
11:01 AM
0
Q: WebAPI global exception handler - maintenance nightmare

TomSelleckThere is a global exception handler in our WebAPI application that looks like the following: public class ApiExceptionHandler : IExceptionHandler { public async Task HandleAsync(ExceptionHandlerContext context, CancellationToken cancellationToken) { var exceptionType = context.E...

 
11:36 AM
Right now your code is working as expected? Or it is giving some error or unexpected result? If it is working, maybe you should go to codereview.stackexchange.com to ask — Calvin Nunes 37 secs ago
You might want to post this on Code Review — Murat Karagöz 34 secs ago
This belongs to stack code review. — Antoniossss 10 secs ago
 
12:10 PM
Hi there, I have an open question that doesn't seems to be "going cold". Is something wrong with my question that is causing people to ignore it or are there ways I can improve the question to make it more attractive to potential reviews? Here is the link to my question: https://codereview.stackexchange.com/questions/203869/arabic-language-lesson-program-part-2
I'm asking here per the advice given on the help page found here: https://codereview.meta.stackexchange.com/questions/2436/how-to-get-the-best-value-out-of-code-review-asking-questions/2440#2440
 
@JackDuane The question seems fine, but the code seems lengthy which may explain the delay in getting answers
 
@MathiasEttinger, ok so you think I should just be patient and wait? I realize it's a lot of code but that's the problem I'm trying to solve. I wanted to make sure that a potential reviewer would be able to see the full picture.
 
12:30 PM
That's fine to have lengthy code, it makes for good questions. But it also have the downside of needing more time to process and answer it.
So yes, waiting a couple more days could be all that's needed
 
@MathiasEttinger, ok. I'll be patient then. Thanks for explanation!
 
12:47 PM
Monking-ish
 
@Vogel612 Monking I think. It's still dark in Los Angels.
 
it's almost 3PM here :D
 
:) I'm still drinking my coffee, it's 5:51AM here.
 
1:06 PM
Well because debug is missing i have no idea where it fails, this is all the information I have. I have given the circumstances, and I'm after a debug approach not a code review, as I quite clearly state in my question. Thanks! If it were a code issue it wouldn't work perfectly for everyone else. — Tom 23 secs ago
 
@JackDuane The question has 3 up votes and no down votes. That is an indication that it is a good question that meets the rules of the site. As @MathiasEttinger said, it takes longer to answer long questions. I may provide some help through comments but I don't know python well enough to give you a good answer.
 
1:22 PM
wow ... maven is a royal pain in the backside
jeebus..
"yea the module name ends with tests. It's definitely a module that contains only tests. Let's just not build it if we only compile the normal code"
Stupid piece of software trying to be smart
4
 
Sorry, but broad can you optimize this questions are not on-topic on SO. You can try asking Code Review, but make sure to check what's on-topic there first, I think you'd have to provide a lot more information to ask it there. — Erik von Asmuth 1 min ago
 
@Vogel612 They are the smartests
Hence they should not be built ^^
 
yea, exactly.
renamed the damn module, stuff works now,
 
2:14 PM
0
Q: Generic way to remove all duplicates from a not-sorted container

papagagaHere's an interesting article called "How to Remove Elements from a Sequence Container in C++". At some point, the author also explains how to remove duplicates from a container, but only with the very restrictive condition that those duplicates are adjacent. I've given a bit of thoughts on how t...

 
2:27 PM
It doesn't appear Standard vs Legacy is the issue (or using MAX vs ANY_VALUE we can start a separate thread for a code review if you'd like) - I can give you a standard sql Job ID that failed as well. We've been running these same batches of queries monthly with batch priority without issue for over a year. Just seems odd that things started failing randomly yesterday — Chris Alme 11 secs ago
 
2:47 PM
-1
Q: Switch case statement. Switching on types

Ali KerimliRecently have seen similar code piece. The syntax is strange for me. Never have seen such type switching. Want to know how switc...case works underhood. How o is compared against case statement. Given code snippet's output is: integer 1 object o = new object(); o = 1; //...

0
Q: How can I transponse a column of data into rows of data, using empty cells as indicators to start a new row?

Nikki LuzaderTo start out, here is my sheet that gives two examples of sets of data and the desired results for each. https://docs.google.com/spreadsheets/d/1MPppt2yztfPtz2iSssSfIuBoYccxQ4gs7PZdygdz1Z8/edit?usp=sharing Here is the code that I have right now. It is not in a working state, but it seems to be ...

 
3:01 PM
it seems that grepcode might be down ..
which means I'm basically flying bline when trying to debug why reflective access to the methods of a class fails
 
3:23 PM
ermagherd maven
Me: "mvn clean"
Maven: "Aight, lemme just go and fetch **ALL** the dependencies for five minutes"
 
4:06 PM
@Mast this is probably subjective as well but maybe there should be more of an incentive to answer questions ... potentially to those who haven't or have only asked a question or two...
 
4:20 PM
Is anybody else partaking in International Talk Like a Pirate Day today?
 
Monking
 
4:43 PM
 
@RameshRajendran Thanks :) this is why Code reviews are important :P — Sajeetharan 43 secs ago
 
5:08 PM
If your code works, and you can provide a working example of it, this is off topic for Stackoverflow and is more on topic for codereview.stackexchange.comTaplar 49 secs ago
 
0
Q: how to do print a page using javascript?

duohere is my html code for print <div id="printcontent"> <table style="width: 500px;"> <thead style="display: table-header-group;"> <tr> <td> header comes here for each page </td> </tr>...

 
@JackDuane Some advice about your question. The users of this site are doing this for fun, so it helps if you can make your question more attractive to potential reviewers. First, your code implements a graphical user interface, so it would make sense to include a screenshot with your question—this might intrigue readers, and it would give some clues as to what your code was supposed to do.
4
Second, your code is not runnable as posted—I tried just now and Python said NameError: name 'Root_File_Name' is not defined. This means that if I want to run your code then the first thing I have to do is fix this error. It would be more attractive if you edited the code a little so that it is runnable as posted.
 
5:54 PM
Wow somebody really wants the hold taken off
-1
Q: SinglyLinkedList Implementation in C++

Melissa StewartHere's my node.hpp #ifndef LINKED_LIST_NODE_HPP #define LINKED_LIST_NODE_HPP template <typename T> class Node{ public: T data; Node* next; Node(); Node(T); Node(const Node&); ~Node(); }; template <typename T> Node<T>::Node(){} template <typename T> Node<T>:: Node(cons...

@Deduplicator I've updated the code and it compiles perfectly win my system, can you please take off the hold. — Melissa Stewart 37 mins ago
@Yuushi I've updated the code and it compiles perfectly win my system, can you please take off the hold. — Melissa Stewart 36 mins ago
@Stephen Rauch I've updated the code and it compiles perfectly win my system, can you please take off the hold. — Melissa Stewart 36 mins ago
@200_success I've updated the code and it compiles perfectly win my system, can you please take off the hold. — Melissa Stewart 36 mins ago
 
It does at least compile now.
 
6:16 PM
0
Q: Conway's Game of Life command line program in C++

AjeshI have programmed Conway's Game of Life in C++. /* Any live cell with fewer than two live neighbors dies, as if by under population. Any live cell with two or three live neighbors lives on to the next generation. Any live cell with more than three live neighbors dies, as if by overpo...

-1
Q: Parsing integers and check if they are stored in a table. then extract records and store them to another table

ealragiI am new to c#. I am trying to write a code that parses a string of integers separated by commas then check if value of these integers are the primary keys in a table. if these primary keys found in the table, I like the code to extract the rows of these primary keys and store them into another t...

 
6:31 PM
@CaptainObvious No code
 
6:48 PM
0
Q: Possible code improvements for generic tree data structure c#

A.LearnCould someone please review my code for performance(any other suggestions are welcome) which converts flat data list coming from database to a tree? Interface for db entity class public interface IDbEntityNode { int Id { get; set; } int ParentId { get; set; } } Examp...

0
Q: Attempt to Save (Recover) files from a broken external drive

Gürkan ÇetinHere's my first question for Code Review. (I'll be happy to try to improve the question upon comments.) Problem: My external drive that I use for Backup had some broken files. I feared that I'd lose some (or all) the data in there. So I wanted to copy each and every file to my hard disk. I fi...

 
@SᴀᴍOnᴇᴌᴀ Eh. Possibly. I'm not sure whether that would do anything. We tried something with extra bounties a while back (users with rep to spare handing out bounties on whatever question deserved an answer), partially successful.
I think if participation in general goes up (drive-by users posting a question and disappearing within a week don't count) we'd be doing a whole lot better already.
But hey, like usual, if you got a good idea to improve the site/community, drop something here or go to meta directly. See what the response is.
 
This seems like a good candidate for Code Review! codereview.stackexchange.comalephtwo 27 secs ago
 
7:16 PM
@Mast yeah - being bound by the SE standard design makes it difficult
 
7:36 PM
0
Q: Tensorflow Variable Scope issue - Cannot load saved parameters in validation after saving trained model

Atul ShanbhagI have an issue with variable scoping in Tensorflow and will be glad if someone would help me solve the issue. I am using transfer learning to train just the fully connected layers (MLP) for a binary classification problem. I have extracted the features from a convolutional network and saved it s...

 
Working code should be posted to Code Review — vash_the_stampede 42 secs ago
 
7:52 PM
0
Q: Http4s custom header with Json payload

KlugscheißerThis is a custom http4s header based on the headers that are already provided which takes a io.circe.Json as its value. I'm mostly concerned that I'm not matching all the possible ways def matchHeader may be called. Additionally, I'm concerned with the side affecting registration that adds the ...

 
@GarethRees @GarethRees, I added one line of code to clarify the path for Root_File_Name so that should be resolved now. I've also added a screen shot of the GUI after one of the questions is correctly answered to show others what I'm currently working with. Thanks for the feedback and help!
 
8:07 PM
codereview.stackexchange.com might be a better fit — jdv 17 secs ago
 
8:19 PM
ah, had no idea codereview existed. will repost there, thanks! — Norbert Skalski 43 secs ago
Should this question migrate to codereview? — Weather Vane 59 secs ago
 
8:32 PM
Definitely read the How to Ask section of the Code Review help pages and make sure your post fits their requirements before posting at Code Review. It's not like they're jerks or anything, but most of the stuff forwarded to them doesn't fit their mission statement. — user4581301 31 secs ago
 
0
Q: What is the O(N) runtime of this code

nfgallimoreCan anyone explain why the runtime of this is in O(N^3)? Also as an alteration what would the runtime be in Big-OH if the else statement was removed. int sum = 0; int y = 0; int n = 10;~ for(int i = 0; i < n; ++i) { for (int j = 0; j< i; ++j) { su...

 
0
Q: Secure random password generator in Java

DanielI am developing an application that must generate a random password for each new user in the system (initial password). My idea is to use passwords of 16 characters long. Would like to know if the code below is a secure way to generate passwords and if it can be improved. The system will be use...

 
 
1 hour later…
10:07 PM
@WeatherVane: No; CodeReview requires complete working code. This code is anything but complete, however well it works for the user. There is so much information missing, it is impossible (for me, at any rate, but I'm only a tired old C programmer) to assess what this code is doing. — Jonathan Leffler 20 secs ago
 
10:18 PM
0
Q: Intersection over Union for Rotated Rectangles

syb0rgProblem Statement I am trying to find the intersection over union (IoU) metric for one to several rotated rectangles compared to many different rotated rectangles. Here are some images to help visualize this metric: The second metric is quite close to the scenario I'm trying to calculate, t...

 
@SᴀᴍOnᴇᴌᴀ Where would I post something like this codereview.stackexchange.com/questions/204012/…
 
285
A: Which computer science / programming Stack Exchange sites do I post on?

yannisBefore you choose a site… First, make sure you're asking a good question. Some questions are off-topic everywhere, and there's no guarantee that any site exists that will take your question. Good questions: Are clear and understandable. Have a specific problem statement, tailored to the site...

@nfgallimore I'm not entirely confident on this answer but probably scicomp.stackexchange.com/help/on-topic
 
@SᴀᴍOnᴇᴌᴀ I'll give it a post there. Thanks.
 
@nfgallimore it's not really a good fit for scicomp
honestly I don't think it really fits into any SE site at all
 
10:35 PM
after reading more about the scicomp site I was afraid that would be the case
I see some questions about with the tag but not other languages
Perhaps we should advise you to do some research... e.g.
Aye and there be this olde question:
685
Q: How to find time complexity of an algorithm

YasserThe Question How to find time complexity of an algorithm? What have I done before posting a question on SO ? I have gone through this, this and many other links But no where I was able to find a clear and straight forward explanation for how to calculate time complexity. What do I know ? Sa...

 
11:23 PM
0
Q: Passport JWT with GraphQL

hasusozamI'm trying to implement Passport JWT authentication in GraphQL and that is the code I did, I want to know if there's something wrong or room for improvement. I did this way because I don't want to block the graphql endpoint so I just want to pass the user if there's one as context to the resolver...

 
11:39 PM
0
Q: Using map <Integer,List<List<Integer>> and ArrayList of List to array[][]

user3224682Without changing the outputs or the inputs of the method. How would you make this code more readable ? I am interested in any general improvement it can be made in terms of readability without WORSEN the time complexity. Above all I'm interested of know if there is a way of doing all this steps...

 

« first day (1964 days earlier)      last day (2071 days later) »