« first day (1719 days earlier)   

12:00 AM
RELOAD! There are 4896 unanswered questions (90.2751% answered)
 
12:32 AM
0
Q: Bug in my fractal code,

Ritvik TanejaI am trying to draw a recursive structure in python using the turtle module. Essentially, the function to draw this structure is drawFrames(d), where d is the 'depth', i.e. a number specifying the complexity of the fractal. d=1 just splits the window into 4 rectangles (no recursion); d=2 splits e...

 
 
2 hours later…
2:30 AM
0
Q: Open multiple url tabs in a single window

Computing...I decide to open three url tabs in one chrome window with following code: import subprocess open_chromes = [ 'https://en.wikipedia.org/wiki/Embodied_cognition', 'https://docs.python.org/3.6/index.html', 'https://docs.djangoproject.com/en/1.11/',] for chrome in open_chromes: cmd = ['open', '-...

 
 
3 hours later…
5:01 AM
Monking
 
5:52 AM
0
Q: Text adventure game - text input processing

neoflashAs a fun project with my wife, I decided to make a small text adventure game à la Zork. Instead of using available engines, I decided to roll my own. It won't be that hard since there are no graphics. The piece of code I submit for review is a class representing a room in the game. The processI...

 
Monking
 
6:24 AM
0
Q: Project Euler 122 Program Not Working?

Husnain Razadef euler122(): out=[[1,2]] out2=[1,2] count=0 flag=True while flag: print len(out) print "-"*59 for i in out: for j in [x+y for x in i for y in i]: if i+[j] not in out and sorted(list(set(i+[j])))==i+[j] and j not in out2: if count%100==0: print l...

 
@skiwi New PCs always smell a bit odd, it shouldn't get worse.
@CaptainObvious Borked.
And for the love of all that's holy, please don't point crap towards Stack Overflow.
We don't accept it if they do it the other way around either.
 
6:44 AM
I would have had more incentive to at least gloss over all of this post if it was introduced succinctly. I take this works by and large: consider asking on Code Review after due time (My take: 60 hours, minimum - well, this post had at least 48...). — greybeard 44 secs ago
 
Monking
 
7:20 AM
Please post to Code Review codereview.stackexchange.com | Here on SO it’s an offtopic. — mudasobwa 9 secs ago
 
7:44 AM
@mudasobwa As it currently stands, this question would be closed as Unclear on Code Review. — Mast 32 secs ago
This is about codereview and should better be ask at Code ReviewJens 29 secs ago
 
@Duga I'm this close to ripping him a new one, but that would violate our Be Nice policy...
And now it's RBA, great.
 
8:01 AM
posted on January 17, 2018 by Vel

I'm making my first steps in OOP and I'm currently doing some exercises. I've done a simple program with class structure like this (I'll provide only essential parts): Super class: public abstract class Employee { private String lastName; private float salary; public Employee(String lastName, float salary) { this.lastName = lastName; t

 
@Mast Right, okay, figured new stuff smells anyways
 
@skiwi Exactly. New socks smell too, doesn't mean your feet stink.
 
8:16 AM
0
Q: Implement the function to find the combination of 4 digits in a row which gives the max multiplication

МаксимHelp me, please. Check my code.Did I do everything right? There is an assignment: Implement the function to find the combination of 4 digits in a row which gives the max multiplication. If object is not a string or there are no combinations found - return nil. If combination is found - return i...

 
9:02 AM
@A.T. SO is not meant for code reviews — Stultuske 17 secs ago
(@Stultuske - true, but this doesn't appear to be a request for a code review. At least ... not to me.) — Stephen C 23 secs ago
 
9:15 AM
This question seems more suitable for Code Review. — Turing85 29 secs ago
@Turing85 Absolutely not! Please take a look at their help center. This is example code, highly illegal at Code Review. — Mast 23 secs ago
 
9:33 AM
-4
Q: chutiya bnata he

gjyufrjdjgdjerror he bsdk program me.errrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr...

 
9:48 AM
@CaptainObvious HAMMERTIME!
 
possible answer invalidation by yuga on question by yuga: codereview.stackexchange.com/posts/183937/revisions
 
@Duga rolled back
 
10:23 AM
0
Q: Downloading latest monthly files VBA - HTML. How to future proof targeting the correct files?

QHarrSituation: I am trying to download files, for the latest available month, from the webpage NHS Delayed Transfers of Care. I am unable to locate these files, within the HTML, with confidence that my current code will continue to work over time. Question: How do I isolate the latest month with ...

 
2
Q: Could we detect phrases like "not working" and "bug" in question titles and warn users

user1118321It has been mentioned recently that ~62% of close votes come from the "broken code" or "code not yet written" category. I'm wondering if we could help lower that percentage by detecting certain key phrases in the title (or possibly body) of the question and give a red warning banner before the us...

 
10:42 AM
0
Q: unique_ptr in struct leaking data?

Jonas KI have code similar to the one below. It iterates over a 2D grid using smaller sub-regions. Because this is happening in parallel, I use unique_ptr. Now I came across a weird memory-leak that made me think whether using unique_ptr here may me wrong. Is this memory leak free? #include <thread> #i...

0
Q: Using asynchronous pattern best practices

MicrosmsmI am wondering if there's a best practice using this new pattern in javascript and async/await keywords instead of traditional callbacks Core function: async function typeWriter(text, n, elementId, waitAfter) { const el = document.getElementById(elementId); if (n < (text.length)) { ...

 

« first day (1719 days earlier)