« first day (1660 days earlier)      last day (2654 days later) » 

00:00
RELOAD! There are 4688 unanswered questions (90.4276% answered)
00:46
Shouldn't questions about optimization of working code more suitably posted in CodeReview? Migrate this question? — mickmackusa 38 secs ago
01:10
@Phrancis Their food, on the other hand, was incredible.
01:22
@Phrancis According to another passenger, it was broken down engines.
which happened between new york and philadelphia so meh
the rain hasn’t helped though
@ThomasWard Oh dang, that sounds pretty bad. How late did it end up being?
01:43
If you post this on Code Review, which you are welcome to do, please make sure to use a descriptive title about what the code does, such as "Random number distribution program". — Phrancis 24 secs ago
02:07
@Phrancis 2.5h
it's still on route to the destination though, we picked up a half hour so it's 2 hours late
0
Q: Binary search tree in C++ 17 using iterator pattern

cm007I am new to C++ and am attempting to write the following binary search tree using the iterator pattern (and std::optional in C++17): #include <memory> #include <optional> #include <stack> template <typename T> class BinarySearchTree { public: BinarySearchTree(T key) : key_(key), left_(n...

 
1 hour later…
03:22
0
Q: Drawing spirals on virtual whiteboards

Tom JenkinsI have it set up so I place my mouse in the center of where I want the spiral to be, then I press enter to start the program, then define the radius initially and how much it grows each time it goes around. I use \$\sin(\theta)\$ = opposite / hypotenuse and \$\cos(\theta)\$ = adjacent / hypotenu...

0
Q: Random number distribution program

larenz jacksonI'm moving outside my comfort zone and trying to make a random number distribution program while also making sure it is still somewhat uniform. I was trying to generate this in debug mode without optimization on. Also, I am using Visual Studio 2015. RandomDistribution.h file #pragma once #include

03:40
0
Q: Ping and TraceRoute result of multiple urls concurrently in Java 8

xyzI need to get ping and traceroute result of multiple urls concurrently. This action will be scheduled with an interval. Here is my code. public static void main(String[] args) { ScheduledExecutorService executor = Executors .newScheduledThreadPool(Runtime.getRuntime().available...

04:30
0
Q: Read contents of file with appropriate error handling (Rust)

TravisI am trying to learn basic Rust. Is this a good way to get the contents of a file? Am I handling errors the best way? Is there any way this could be more performant? use std::fs::File; use std::io::Read; fn main() { let path = "bar/foo.txt"; match read(path) { Ok(contents) => p...

05:26
0
Q: TicTacToe - AI problems

jk1984I have an issue I need help with. I'm currently completing a university assignment to complete a TicTacToe game that requires the AI to be randomly selected from a smart or naive AI. I have no problems with the NaiveAI when called from TicTacToeGUI, but am having issues with the Smart AI, first...

05:52
@CaptainObvious Better title: "How to inorder-traverse a non.balanced binary tree with O(n^2) worst case memory usage"
Oh, we don't have mathjax support here?
 
2 hours later…
07:55
0
Q: Memory error in python

Leo B JacobI am writing a code which returns something like 1^k + 2^k + 3^k......n-1 where k be any number.Below is my code.I am getting a memory error.How do I optimise it. Sample test case for wrong error: 1 10000000000000000 400 #!/bin/python import sys def highwayConstruction(n, k): # C...

08:07
Should this be moved to Codereview? — Andreas just now
1
Q: Select data from DB (.net)

styxwhen i want to select data from the DB I'm doing something like this string query = String.Format(@"....); List<List<object>> Details = DBUtils.selectDataFromServer(query); if (blilDetails [0].Any()) { List<string> mixer = Details [0].Select(Convert.ToString).ToList();// this is the first...

0
Q: Finding substring algorithm

dk123I'm currently working on the below code for finding the first occurrence of a substring: int GetSubstringIndex(const string& str, const string& search_str) { auto found_idx = -1; for (auto i = 0u; i < str.size(); ++i ) { if ( str[i] == search_str[0]) { for...

08:32
Monking
 
2 hours later…
10:10
possible answer invalidation by dk123 on question by dk123: codereview.stackexchange.com/posts/180789/revisions
10:28
0
Q: TicTacToe AI disabled buttons and can't take the win

jk1984I have an issue I need help with. I'm currently completing a university assignment to complete a TicTacToe game that requires the AI to be randomly selected from a smart or naive AI. I have no problems with the NaiveAI when called from TicTacToeGUI, but am having issues with the Smart AI, firstl...

@CaptainObvious Broken code ...
 
2 hours later…
12:16
0
Q: How to pass a function as predicate to another function, When name of the predicate function is received at RunTime?

Prashant Singh RathoreI receive the name of the function to be used as biPredicate at runtime. I want to pass around this biPredicate and evaluate, basically filter to get results. Following is my utility that defines biPredicates. I tried utilizing MethodHandle and Lambda Functions. When I use new FilterUtility().e...

0
Q: Code Review Community on GitHub, where is it going?

Simon ForsbergAlmost four years ago, Code Review community went to GitHub. In these past four years, what have we accomplished with this GitHub community? There are five repositories in the community, four if you don't count the github.io repository. There's been a few requests about people wanting to join. ...

13:02
0
Q: Packet Assembler

Robert S.I've just started learning javascript and, really, programming. I did start learning a few years ago, but didn't stick with it. So this is the second time around. A few days ago, I found a challenge on /r/dailyprogrammer that I figured seemed fun to solve: a packet assembler. I solved it, but th...

13:19
0
Q: Angular: RequestAnimationFrame and ChangeDetectorRef for updating view

DBRNIn Angular, after a view has initialized, one part of it might be recalculated dynamically; in particular: When someStream$ updates I read the value of an already rendered element in the DOM And set the value of another element (its height) according to the read value an attribute listener in t...

0
Q: Optimal way loop through records, change property of records, send mail for each

ZoinkyI am trying to basically do the following Get record from db loop through records and send mail out for each record update database records I would like to know what is the most optimal way to do this, including introducing some async if that would be best. So I put a build-able sample toget...

Monking
13:45
possible answer invalidation by Kavya Shetty on question by Kavya Shetty: codereview.stackexchange.com/posts/180682/revisions
0
Q: Starship Comparision App with ES6 Generators and the Star Wars API

mizechAssignment Description: Make a web application that compares starships based upon the Star Wars API. There shall be: A label "Select two Starships from the dropdown lists to compare". Two dropdown-controls filled with starships. Button "Compare". Table displaying the specs (speed, cargo, cost...

14:20
0
Q: Which is the best approach for searching the dictionary items?

LaxmikantWe can search for the list of dictionaries using the below some approaches, Can one please help me, which one is the best approach to use? items = [list_of_dicts] id_to_b_searched = "some_id" 1 direct return from the for loop def retrieve_item_by_id(self, id_to_b_searched): for i in items...

15:04
This would probably be better on https://codereview.stackexchange.com/. — Andy just now
15:16
this is off-topic, but try in codereview.stackexchange.com forum. I dint downvoted. — dimpu 5 secs ago
You need working code to post to Code Review. It's not a "suggest best practices" site. — JJJ 32 secs ago
0
Q: Object-oriented calorie counter

Martin KleivenObject-oriented program for a calorie counter sporting polymorphic methods for both genders. Principles to adhere to: Uniform Access Principle Polymorphism Dependency inversion principle through the Factory Method pattern Single responsibility principle Concerns for future extension: BPM c...

15:40
0
Q: practice global operator new for my Fruit class and Apple derived class?

czxyl/*************Fruit.h*****************/ #ifndef _FRUIT_H #define _FRUIT_H #include <cstdlib> #include <iostream> #include <exception> /***************************************GLOBAL operator new/delete/[]***************************/ void * operator new(decltype(sizeof(0)) n) noexcept(false) ...

15:54
Thanks for your comments @GerardoFurtado and SamOnela. I'm new to both d3.js and Stackoverflow. So, I really appreciate the guidance. I've created an item in Code Review. — mrbrahman 37 secs ago
0
Q: d3 stack - with linear x-axis

mrbrahmanIn all the examples I've come across so far, (like this, this or this) I see stacked charts in d3 have an ordinal scale. I presume this is because stacked charts are considered an extension of bar charts which are generally of ordinal scale on the one of the axis. In my case, using sample data ...

 
1 hour later…
17:14
1
Q: Sudoku checker in Java - my solution

Damine25This program verifies if a Matrix is a sudoku or not. these conditions should be verified : There is no duplicates in a row or column or a square. And the sum of a row or column or a square should be equals to 45. Thanks public class SudokuChecker { static int[][] invalidMatrix={ ...

17:28
0
Q: Writing a program in python for computing volumes using the prismodal formula

Alberta Odamea Anim-AyekoHow do I write a program in python for computing volumes using the prismodal formula?

0
Q: Compute recurrently in C++

trafalgarLawwI am to compute recurrently (not necessarily recursively) the y, where $y = {x}^{2n} + {x}^{2(n-1)} + ... + {x}^{4} + {x}^{2} + x$ Here is what I am doing: #include <iostream> using namespace std; double polynom(unsigned, double); int main(void) { cout << polynom(2, 3) << endl; return...

17:39
This question probably belongs in code review; you’ll get bettter Andres there. Your code apparently works well and you dont have a specific problem that needs to be solved so I’m voting to close. — InBetween 55 secs ago
17:52
Oops, I didnt know about codereview.stackexchange.com. I just reposted my question there: codereview.stackexchange.com/questions/180811/…Marc-André Bertrand 23 secs ago
0
Q: Is this implementation of C# Weak Interning Cache Table threadsafe and memorysafe?

Marc-André BertrandI searched a lot on the internet to find a C# implementation that could allow to cache immutable objects using weak references in order to reduce the memory footprint (similar to .NET String.Intern). In my case, I need to cache multiple list of products and the same product can be present in eac...

Whats your point? Do you have some problems? Is something not working or do you need just a code review? — kuzdu 16 secs ago
"You need to submit to stack overflow. Code that requires changes for correctness are not suitable for code review site." LOL — Tommaso Belluzzo 44 secs ago
18:07
@CaptainObvious Captain Obvious, there is no code, the OP has not written it yet.
0
Q: Python: Image processing and plotting

RebelIncI wrote a program for analyzing pictures. The problem I'm having is very slow processing time for medium images like (800x800). And I think the root of the problem for this is the 'for loop' where i complete my numpy array with values. The main task for the program is to count how many times does...

Yeah, I feel like being bounced between the two sites. I guess the fact I didnt state any particuliar issue but I did mention there could be some disqualified it for both stackoverflow and codereview. — Marc-André Bertrand 40 secs ago
18:44
lol
@Aaron, there isn't much that will break cellulose down. The most effective way humans have found is to feed the grass to a cow and then eat the cow. — Mark Nov 13 at 23:02
@skiwi We can eat grass just fine though, just comes out pretty much the same as it goes in.
Paper though disintegrates quite well within our stomach.
I've never eaten paper though, nor grass :P
19:00
I may or may not have eaten an exam out of protest...
8
:D
Found that in one of my old tabs ^^
0
Q: A component impl - splitting interfaces between classes

IrbisI create a component and interfaces are called by the external clients (communication based on thrift). I have a simple class which keeps data and exposes methods to access that data: GameInfoList. A data is created based on the following interfaces: Interface A: virtual void SetGamesConfigur...

19:20
@CaptainObvious No implementation, just an interface
@skiwi I remember that, golden read. Long time ago though, shouldn't you either have bookmarked or simply closed it by now?
@hoffmale I was wondering why you didn't VTC as UWYA, then I remembered your reputation.
@Mast It was still open
0
Q: An object-oriented calorie counter

Martin KleivenObject-oriented model for a calorie counter sporting polymorphic methods for both genders. Concerns: BPM curve for exercise acts of longer duration: can this be added without being too invasive? Side-effect or coupling between main and the read_person_attributes function through the del statem...

I may have closed 100 tabs over the last few days, or in other terms, 8% of the ones I had open
2
19:23
yeah, cant VTC yet
@skiwi Yes, I got that. I'm not surprised with your amount of tabs.
@hoffmale You'll get there.
shouldn't take that much longer
prolly like half a week
In other news, I almost got my first review gold badge.
I'm really surprised that Firefox 57 is so good for me
Steward.
19:24
oh wait
its 3k rep, not 2k
well... then more like christmas
@skiwi It should be a heck of a lot faster, especially with your amount of tabs.
@hoffmale No rush, just keep flagging and we'll take it from there.
Although I've seen an odd amount of flags I couldn't agree on lately. Not saying those are yours, but it never hurts to leave a comment when you flag something.
@Mast It went from chugging a logical core to the max to it being almost idle, and from 2GB+ RAM to <500MB RAM
@skiwi Nice.
Hey @202_accepted how's your translator going?
Going, doing, whatever.
19:27
@Mast Not a translator. :) But well, actually.
today seems a bit quiet
translator?
I was building a program which can be supplied with a type and generate the best string in one of several languages.
hmm.. sounds interesting
was building
19:55
I'm still building it just not as rigorously.
Ah, I know that feeling.
@hoffmale Head over to the The Nth Monitor for more information.
20:46
Monking
Monking
And monknight, about to log off
21:07
While I find this question interesting, I don't think it's consider on-topic on Stack Overflow. I think there may be a way to word the question to fit, but you might also have better luck on either Code Review (since you're asking about working code) or Software Engineering (note I'm not a part of either of those sites so it may not be a good fit for either) — Tas 26 secs ago
Oh shit, I just remembered that my session restorer extension in firefox got disabled since the update
Just found a replacement in case Firefox crashes :D
possible answer invalidation by Jamal on question by Martin Kleiven: codereview.stackexchange.com/posts/180801/revisions
0
Q: Object-oriented text-based RPG with randomized enemies and loot in Java

WatCowI'm currently in the process of creating a RPG in Java in order to practice and learn the ins and outs of the language. I have been learning to code for around 1 month through Code HS, and coding within their Sandbox tool. Any general help would be greatly appreciated. Specifically, I am not sat...

21:25
possible answer invalidation by Jamal on question by asp47: codereview.stackexchange.com/posts/180427/revisions
@Mast that's why eating is a really easy and comparatively clean way of disintegrating small bits of paper where people write passwords for me to use
21:42
Nov 18 '13 at 23:03, by Simon André Forsberg
Hi people :)
Four years ago (and one day) since I wrote for the first time in this chatroom.
@rolfl @Malachi @Mat'sMug ^^
Thank you all for making my life, and code, better these past four years.
10
awwww =)
22:41
@Incomputable The edit in your deleted answer on meta sounds like a potential answer.
Honestly, I'm inclined to agree.
I stumbled upon more old chat talk about the GitHub organization:
22:54
Wrong website, for code review use codereview.stackexchange.comMörre 36 secs ago
Last time I went on code review, they sent me back here. From what I've read, code review is for reviewing working code, while I still have errors with this one. — Jake just now
23:13
@SimonForsberg you're welcome. Thank you for the same

« first day (1660 days earlier)      last day (2654 days later) »