« first day (941 days earlier)      last day (3075 days later) » 

12:00 AM
RELOAD! There are 1640 unanswered questions (94.3847% answered)
 
=\
We should check the stats and see if it's a particular tag going unanswered.
 
@Vogel612 That is really kind of fun. A few days ago I reconnected my 2nd monitor at home, so that I would be able to chat and watch what's happening whilst seeing TV on the main monitor... :-)
 
This room really used to be my 2nd monitor. Now I have 3 and I'm barely ever here.
 
0
Q: Displaying a map of points

Marc-AndreI'm working on an html game of the type of Ogame and other browser games of the genre. I've tried worked on a grid controller to display a map of points that you can move around with an entity. The basic concept that I used is to grab a sub-grid of the total map points available, based on a defau...

 
5
A: What should be the name of our main chatroom?

James KhouryThe Duck from: http://c2.com/cgi/wiki?RubberDucking http://www.rubberduckdebugging.com/ http://www.codinghorror.com/blog/2012/03/rubber-duck-problem-solving.html

=)
Even though this isn't the name of the chat room, we do have a @RubberDuck! — Simon Forsberg ♦ Jan 12 at 22:45
 
12:04 AM
I'd love to have a base set-up of 3 monitors again. Been a while.
 
I had that setup in my previous job. 3 times 24", which is a lot of screen estate!
 
My most recent question (10h ago) became my 2nd highest scoring question ever. Excluding blank lines it's only 6 lines long.
 
0
Q: Angular.js: Require a module like a controller in Link Function

tophstarCurrently the code I am looking at pulls in a constant module into the linking function by calling the element's injector. My question is there a way that I can "require" the constant similar to requiring a parent controller. ---CURRENT CODE--- The module: module.constant("$options", options)...

 
I'm doing something wrong...
 
@Mast It has a good title.
 
12:15 AM
I should put more effort in my titles, noted.
I'm not sure it's a good title though. Perhaps it's a clickbait title. I've never been too good at understanding what's clickbait and what isn't.
2
The 5 most amazing discoveries since the new millennium is clickbait. But how one translates that to SE...
 
Questions like this may be better asked at Code Review, but please read the guide to know how to ask questions there. — Shepmaster 51 secs ago
 
Would The 5 motht amazing dithcovuhieth thince the new miwwennium be better?
That's basically what I did: mangle the title with what's it about ^^
 
You may be interested in posting your full code over at Code Review, but please read the guide to know how to ask questions there. For example, there's never a reason to take &Vec<T> (use &[T] instead). Also, theres a non-idiomatic space after a ^ b. — Shepmaster 49 secs ago
 
Ah well, I'll just improve my Ruby and regex skills in some manner I presume and post a new question.
 
0
Q: Singly Linked List Delete Method

WarSameI would like a quick review on my method to delete a node from a singly linked list. I'm fairly certain that this is not near optimally done, and would love to get feedback. It uses a SinglyLinkedNode element as the node: public class SinglyLinkedNode { private SinglyLinkedNode next = null;...

 
12:20 AM
0
Q: Code Review missing from Stack Exchange footer

rolflGraduated sites are listed on the footer pages of all other Stack Exchange sites. Consider this list from Stack Overflow: (similarly on Meta.Stack Exchange ) I notice that other recently "designed" sites are up there (Biology, Chemistry)....

 
@StackExchange @rolfl I may have misunderstood the question, but I did find Code Review. See answer.
TTGTB
 
Zak
@Mast Fair enough. That said, I think Code Review should be one of the displayed sites.
 
If your answer is in fact "right", I then want to know why some sites are up there and not others.
 
Zak
After all, we are one of the largest on just about any metric
 
And, if there's a reason for that, then there are other follow-on questions....
 
12:34 AM
We're not larger than most of the ones on the "more (13)" list. So it seems to be sorted according to the size metric shown on the more list
 
Dammit, I'm on the top of page 3 of the users...
 
Two more upvotes, and you'll be on page 2... :-) I need another 100... :(
 
12:57 AM
@TheCoffeeCup Congrats... You're now on page 2... :-)
2
 
1:08 AM
0
Q: Magnifying glass misconception of what Code Review is about

Lost BamRecently, since our logo change, I've noticed an abnormal amount of down voted questions. All of these questions seem to have something to do with either code needing to be rewritten, or a bug in their code. Now I understand that there is Stack Overflow for a reason, but think of this from a new...

 
possible answer invalidation by Jamal on question by vinayakj: codereview.stackexchange.com/posts/112256/revisions
 
@Duga I think not...
 
@Duga You see a code edit there? I don't think so.
 
1:25 AM
0
Q: Way to remove certain word from .txt file (batch)

Pixel PiggyI've had several people ask me lately how to remove a certain word from a text file. So I thought I'd just share what I found on here. It creates a new file with the new contents. If you wanted to you could just make it so it overwrites the old file, but personally I prefer this way. @echo off...

 
1:47 AM
1
Q: First-time C code - Palindromes

Sam MTo start off, as the title suggests I don't have a very thorough understanding of C yet. This is my first program, although I know Java well so that's a good starting point. The function tests whether or not the provided string is a palindrome, and the main function just times how quick it is (a...

 
DOH
@LostBam that's exactly what I said: 4 downvotes and a bad question is automatically off the front page! — Mat's Mug ♦ 14 mins ago
 
@holroy Thanks!
 
@holroy How are you on capping for the day?
 
@EBrown Sadly not repcapping... ;) Did a few days ago, but that was an active day where I posted 4-5 answers
 
@holroy Ah. Well I gave you a few votes anyway. :)
 
2:01 AM
@EBrown Thanks...
 
Oh shoot, I forgot that the day reset two hours ago.
 
No problem! Always good to get some votes... :)
 
I try to share votes when I remember. (Most often I forget.)
I need another 200 rep to get to page 2 of users.
 
@EBrown I just got on page 2. Don't you dare knock me off.
(just kidding)
 
I think we'll get up there in the end... We just gotta keep doing good reviews!
 
2:04 AM
I'm not overly worried about it. If I make it, I make it. If I don't, well, nothing lost, really.
 
@holroy I need 5116 rep total to get safer up.
 
Hold on... I'll just create a few extra users, and boost you up there! :-p
 
@holroy Wow... Thanks! (actually, don't do that)
(don't you dare)
 
So I've been told I'm getting an Amazon Echo for the holidays.
 
HeHe... Just kidding... That would require a lot of users, and I think we all get up somewhere by natural means!
 
2:06 AM
@EBrown Never heard of it. What is it?
 
@TheCoffeeCup It's like Apple Siri + Google Voice + Microsoft Cortana all in one little device.
And it's a physical cylinder.
 
@EBrown Agreed, but still it's kind of fun to see that one is rising on various rep lists...
 
@TheCoffeeCup amazon.com/echo
@holroy It is an oddly satisfying feeling, isn't it?
 
I'm actually quite satisified with almost making it to page 1, on the year page...
 
@EBrown Looks good.
 
2:08 AM
@TheCoffeeCup It seems to be pretty cool.
 
I'm at:
Week: #8 (page 1)
Month: #2 (page 1)
Quarter: #10 (page 1)
Year: #40 (page 2)
And for month, I'm #2 because... well... it's a new month.
 
Oh well... TTGTB
 
@holroy See ya!
 
Or rather, WPTTGTB.... (WP = Way Past ...)
2
See ya all!
The local time is PI...
 
@holroy Damn, local time here is 21:14.
 
2:14 AM
@EBrown Here 19:14...
 
@TheCoffeeCup Are you in the U.S.?
 
@EBrown Guessed right :)
 
What state?
 
@EBrown Is this a test?
 
@TheCoffeeCup Yes.
 
2:17 AM
@EBrown Huh?
 
Nevermind. Lol
 
Well, if you want to know...
 
I only ask because I'm thinking of moving out to the Texas/Arizona/Nevada/New Mexico area when I can.
 
@EBrown Oh.
Why?
 
Because Detroit sucks.
 
2:19 AM
@EBrown Oh.
 
2:37 AM
0
A: Magnifying glass misconception of what Code Review is about

Mat's MugPart I: RTFM It's bluntly obvious what the issue is, but out of nowhere, your question has 6 downvotes, is put on hold, and you're banned from asking questions. All because you asked a question on a site called Code Review. What's bluntly obvious to anyone that bothered spending 35 seconds ...

Phone post ^^
> For the most part these regulars don't like downvoting, and would rather greet a newcomer with upvotes, a warm welcoming comment and a plush unicorn
too much blah-blah huh?
 
0
Q: Beginner regex password strength test

ArnoldM904I've been following a Python programming book and reached the Regex chapter where I encountered this challenge: "Write a password strength checker that checks if a password is: At least 8 character long Contains at least one uppercase and lowercase letter. And contains at least on...

 
3:04 AM
@Mat'sMug I love it.
Also, thanks to you @Mat'sMug I now love var.
 
=)
 
var submitter = new RequestSubmitter();
var url = submitter.GetDestinationUrlTest(form1ASubmission);
So simple.
I like it mostly because I accidentally forgot the var url part on the second line, and it's much faster to add var url than remember what damn type that is.
 
voilà!
 
Beautiful.
 
so happy to hear read you say write it :)
 
3:15 AM
And there's something oddly satisfying about using var.
 
3:26 AM
Anyway, TTGTB.
 
@EBrown Good night!
 
0
Q: Simon Color Memory Game

Nate.Olsonimport sys, time, random import pygame import this from pygame.constants import * pygame.init() #---------DEFINING VARIABLES white = (255, 255, 255) black = (0, 0, 0) brightred = (255, 0, 0) red = (105, 0, 0) brightgreen = (0, 255, 0) green = (0, 105, 0) brightblue = (0, 0, 255) blue = (0, 0, 1...

 
@EBrown night!
 
" It's working" -- On Stack Overflow, the expectation that in at least some specific, relatable way, your code is not working. As the first comment above suggests, if you want people to review working code, your question might be on-topic on codereview.stackexchange.com. — Peter Duniho 37 secs ago
 
3:50 AM
0
Q: Vending Machine in Idris

Kevin MeredithType Driven Development with Idris demonstrates how Idris can be used to build a Finite State Machine for a vending machine. Here's my implementation: module VendingMachine -- Pounds is a form of currency/money Pounds : Type Pounds = Nat Choc : Type Choc = Nat data Machine = Mach Pounds Choc...

 
4:02 AM
@CaptainObvious What an unusual language
 
I'm voting to close this question as off-topic because it belongs on CodeReview. — C-Pound Guru 18 secs ago
 
Does anyone know where I need to go in order to contact SE about a site stealing content?
 
@EthanBierlein A site stealing what kind of content?
 
188
Q: Is it legal to copy Stack Overflow questions and answers?

Stefan SteineggerI just found http://programmingfaq.w3ec.com/faq/4761/whats-the-hi-lo-algorithm which has an exact copy of this Stack Overflow question, What's the Hi/Lo Algorithm, with all its answers and no difference in a single character. There is no reference to Stack Overflow. Is this legal, or at least to...

 
I removed the comment at Code Review about mis-indentation a while back. Curious Cat posted at code review that he still wasn't getting the "expected" with CiaPan's above example, but the "expected" output appears to be sorted, and I'm not sure one instance of partition would sort the data. — rcgldr 40 secs ago
 
4:09 AM
@Phrancis Questions, answers, from multiple sites, etc.
And, no attribution whatsoever
 
166
A: A site (or scraper) is copying content from Stack Exchange. What do I do?

PopsWhat is a "scraper" and why is that bad? Historically, SCRAPER here on Stack Exchange meant "Stack Content Republishers Attributing Poorly and/or Excelling at Ranking." More generally, a scraper is another website which copies content from our sites either by scraping directly from our pages, ac...

This seems to have your answer, with detailed step-by-step
 
@Phrancis ah, thanks! that's the post I was looking for!
 
Meh, I've already dropped an email to team@stackexchange.com
I might just re-submit the form there as well too
 
Hey @Mat'sMug on that one Meta post about the magnifying glass ordeal, was the user actually speaking of his own experience, or something he saw happening to another user?
 
not sure
"RTFM" still stands ;-)
 
4:23 AM
The OP worded it like he was talking about somebody else. But it's a weird question any way you look at it
And yes, ++ RTFM
This deserves some pimping:
4
A: Example script for teaching DDL and CRUD/DML operations

Alexei Also said before, but I think it worth mentioning again: there is not need for prefix_ for all columns. As far as I know, Hungarian and Leszynski notations are not exactly recommended. Since column names are almost always used in conjunction with their table, the table alias will make the reader...

 
5:06 AM
0
Q: Priorizatable command queue

NodonThis code consistently execute command with giving priority. How can i to improve it? public class PriorizatableCommandQueue<T> : IDisposable { private readonly object _lock; private readonly Action<T> _action; private ConcurrentQueue<T> _forLowestPriority; private ConcurrentQ...

 
TTGTB, cyall
 
@syb0rg ciao! :)
 
Later
 
@Mat'sMug Why 'hello'?
 
Actually, if this is existing, working code, I'd recommend not changing it. You won't gain anything. If you're asking hypothetically, then volatile will work. Piggy-backing works too, but it's hard to spot. A maintenance programmer could easily miss it. I would recommend having the code reviewed formally. If no one understands piggy-backing, then leave it as AtomicReference. — markspace 1 min ago
 
possible answer invalidation by Nodon on question by Nodon: codereview.stackexchange.com/posts/112412/revisions
 
@Hosch250 that's not Italian. it's French-Canadian for "later!"
;-)
 
Oh.
Interesting that it has opposite meanings in different languages.
 
Refactor this spaghetti code into methods. And I don't understand title... Code coverage is related to unit tests. You want to ask for code review than I dont know if SO is proper page... — Milkmaid 17 secs ago
 
I have always tried to put myself out of a job. In eighteen years of full-time professional work, I've never succeeded. I have succeeded in making things more efficient and been praised by supervisors and coworkers. — Todd Wilcox 12 hours ago
+1 for If they let you go because you programmed yourself out of a job, they're fools and you'll have a great story for your next interview.Daenyth 11 hours ago
I actually did program myself out of a job once, and into another! Basically, I automated a daily task that varied from 2-6 hours, down to 20-90 minutes, over about 6 weeks. A couple of months later, at my 1x1 checkpoint with my boss: "The bad news is, this team no longer has enough work to keep you on. The good news is, we have a spot for you on this other team. It's a team of people identified as high performers, and that's what you are. You start on Monday." — Dan Henderson 9 hours ago
 
5:37 AM
Monking
 
Minking
I always hit i for o.
 
6:23 AM
0
Q: Array inside class method

JonasI want to declare string Arrayinside a class and then access it by a method. What I want is to run random inside method and catch the value, but I don't know if I'm doing it right. namespace Animals { class Animals { static private string animal1 { set; get; } static ...

 
@CaptainObvious I have told the op very friendly that his question is off topic
 
6:40 AM
Monking
 
monking @TheKittyKat
 
possible answer invalidation by user2296177 on question by user2296177: codereview.stackexchange.com/posts/109604/revisions
 
Monking
> For the most part these regulars don't like downvoting, and would rather greet a newcomer with upvotes, a warm welcoming comment and a plush unicorn -
 
monking @Mast
 
@GaryStorey not code review IMHO, performance issues I think — Kiquenet 49 secs ago
 
7:19 AM
This question might be better asked on codereview.stackexchange.comphiver 30 secs ago
@Kiquenet Code review stands for reviewing working code, also performance improvements could be asked for. Nice example of this : codereview.stackexchange.com/questions/104879/…chillworld 27 secs ago
 
@Duga _
> no ! We on CR needs the code in question work like it should. This question would be closed as off topic right away
 
@Heslacher witch one?
 
The first from phiver
 
he deleted his comment ;)
 
Educating so users can sometimes be easy ;-)
 
7:26 AM
:D yeah, I wanted to correct Kiquenet also about his comment
mhhhhh Do I answer kikenet or not?
I'ts so easy to fall in that trap
I was thinking of saying Improvement is solution for issue but then it could be the start of a whole discussion
 
A link to the same question posted at CodeReview: codereview.stackexchange.com/questions/112345/…CiaPan 45 secs ago
 
8:08 AM
-1
Q: Parsing from one enum to another

Oscar GuillamonI face a problem I think I am not approaching appropiately. I have two independent enumerators that both will contain the same members, the only difference being the values given. I have to be able to parse from one enum type to the other on the fly and I've seen the following code works as int...

 
@CaptainObvious example code
 
8:22 AM
@Heslacher No longer example code.
 
200_success Already retracted vote and delete comments and retracted downvote. Right at writing an answer. ;-)
 
If its working code, codereview should be the right place for this — RFLdev just now
I'm voting to close this question as off-topic because this question belongs on Code Review. codereview.stackexchange.comK Ф 6 secs ago
 
Monking!
 
8:37 AM
0
Q: Javascript/ JQuery code optimisation

jayjaypg22I'm sure I can optimise this code, but I can't find how in order to be generic. I'm not sure that .parent and .child combination is good in the long term here. Here is the html and javascript code : <div class="inputTime"> <h2 class="titre">Durée de pause</h2> <button class="boutons" id="dim...

 
monking @DanPantry
 
Bought mince pies for everyone. :D
It's the first day of consumermas
 
0
Q: Can this producer/consumer implementation be improved?

KimI'm implementing a Producer/Consumer but the generic interface doesn't require any knowledge of blocking collections or tasks. public interface IReader { IEnumerable<Data> Read(); } Is it okay if my implementation of the IReader launches a task asynchronously and returns the consuming en...

 
9:07 AM
@Servy Anything apart from mathematics is opinion based. Of course this is a place to ask "this is ugly, how can I make it better?". It is, actually, THE place to ask, unless it is better suited for codereview (but there I'd assume that the OP knows what could be done differently and, indeed, asks not for solutions but for opinions about solutions, which wasn't the case here). The question's title is "How to Replace a Long Switch Statement". I demonstrated how. — Peter A. Schneider 11 secs ago
I do agree that this question should be closed as it is primarily opinion based. Some questions may be opinion based but have a more definite answer. "make this less ugly" is definitely an opinion-based answer and is more something that belongs on code review, in my opinion. — Dan Pantry 45 secs ago
 
Work just added their own self-signed certificate as a RCA to all PCs internally... oh dear, this doesn't sound good
 
0
Q: How can I check if my task was successful?

KimI'm implementing a Producer/Consumer but the generic interface doesn't require any knowledge of blocking collections or tasks. public interface IReader { IEnumerable<Data> Read(); } Is it okay if my implementation of the IReader launches a task asynchronously and returns the consuming enum...

 
9:22 AM
@Heslacher Well, that was an interesting accepted answer!
1
A: Parsing from one enum to another

KimThere's nothing particularly wrong with the code. It happens often enough that this question has plenty of upvotes http://stackoverflow.com/questions/1818131/convert-an-enum-to-another-type-of-enum. Marc Gravell gives the exact code that you have. But you can go take a look at the link for ide...

 
@200_success This doesn't seem like a very good answer :s
 
If you accept the premise that the conversion has to be done, then yes, that is a fine way to do it. On the other hand, anyone who really cares about quality would reject those enums in the first place.
 
I'm talking about the actual answer. It's a paragraph saying "this guy has already done this, here is a link"
 
possible answer invalidation by jayjaypg22 on question by jayjaypg22: codereview.stackexchange.com/posts/112421/revisions
 
@Duga @janos I oppose asking question authors to translate identifiers in code. Something always gets lost in translation. We want to encourage people to post code as it appears in its native habitat, not some sanitized version of it.
 
9:41 AM
@200_success that maybe, but that can really limit the audience
 
Besides, we have plenty of code reviewers who are able to understand French well enough to review that question.
Yourself included, I assume?
 
I turned away from many questions because the different language was too distracting
@200_success yes, but don't you think you might be biased in this example because you understand French too?
imagine if it was German or Swedish
 
Then that's addressable in an answer. Like
whitespave is addressable.
 
btw, I screwed myself with that tip
his translation invalidated my answer, but he just followed my tip, so I cannot slap him for it, so I had to rewrite my answer accordingly...
 
I'm pretty sure I have reviewed questions with German, Norwegian, Hungarian, Italiam, and more.
 
9:45 AM
@200_success for a question filled with terms I don't understand, often I would not post an answer to address the language
@200_success so did I, and it took extra effort
also walked away from several, because of the language
 
That's analogous to reading poorly indented code. Tell them that it took extra effort.
 
similar, but not analogous. The symbols are quite different from the visual layout
I don't think there's a single best solution here
there's a trade-off
 
Or just tell them that it took extra effort, and nothing else. Maybe also post an English translation as a wiki answer.
 
as you said, something can get lost in the translation, on the other hand if you don't translate, you might limit your audience
 
… says the one who fired off a speedy answer.
 
9:48 AM
I agree that we should not encourage in comments to translate
 
as there can be answers being written in progress, that would get invalidated (sort of)
 
Another illustration:
4
Q: From sounds (Hz and seconds) to musical theory

Alberto CapitaniThe following procedures are an attempt to connect some physical aspects of the sound (frequency and duration) to traditional music theory. Each procedure is accompanied by one or more examples. The names of the procedures are in Italian, but thanks to the examples should be understandable to t...

Translation to English would have been very inappropriate.
… and someone suggested it.
 
I would not answer this. I would simply walk away
 
You're nor obligated to. Let someone else answer it then.
 
9:51 AM
the unreadable symbols seriously impede the understandability
it makes sense to try to maximize your audience
 
Had it been translated, I would have walked away or rolled back.
 
4 mins ago, by janos
I agree that we should not encourage in comments to translate
 
I guess some people prefer dubbed movies, and others prefer subtitles.
 
I prefer subtitles =)
if this code was posted with English symbols (NOT translated after posted), I might review with interest
folks who write code using non-English symbols are really limiting their audience, which is unwise
 
The CR community is quite large. If you write Hungarian Prolog, sure that would be a problem. But French JS, probably OK.
But we all hate lpszHungarian.
 
10:00 AM
JS happens to be a tag badly in need for more reviewers
 
@200_success function leBaguette() {}
 
Zak
Nooooooooooooo! - Mythbusters is ending!
 
@Zak Jesus christ, you're late to the party. That was announced months ago
 
Arguably, the mixture
  <button class="boutons" id="augBreak">+</button>
is even worse than the original.
 
10 mins ago, by janos
4 mins ago, by janos
I agree that we should not encourage in comments to translate
 
10:04 AM
@200_success are you a musician?
your answer contains an understanding of a scale
 
Not professionally.
I know scales, sure.
 
0
Q: A Mixin Comparator class for C++

SebastianKIn C++, often a straightforward implementation of comparison operators is needed. In C++11, they can be conveniently implemented using std::tie. My idea is to offer a mixin class, that automatically enables comparison operators by deriving a class T from Comparable<T>. // Mixin class to add comp...

0
Q: HackerRank: ACM ICPC Team (Python)

blackened You are given a list of N people who are attending ACM-ICPC World Finals. Each of them are either well versed in a topic or they are not. Find out the maximum number of topics a 2-person team can know. And also find out how many teams can know that maximum number of topics. Note S...

 
well @200_success, let's rollback then?
 
Probably better to just leave it at this point, and not do it again in the future.
A meta post might be appropriate.
I'm not in the mood to write one at this hour, though.
 
@CaptainObvious The variable names are anonymized and much of the actual work is removed. Example code.
 
10:10 AM
@Mast It might actually be OK.
@DanPantry Feel free to stalk my profile.
 
Thanks for translating (some of) the symbols to English. Unfortunately, my fellow moderator pointed out that it was a mistake on my part to suggest to translate, and I agree (see our discussion in the chatroom). No need to touch this anymore, this is just for your information, and for the record. — janos ♦ 1 min ago
^^^ @200_success
 
how to handle a mistake gracefully, by janos
 
Thanks.
 
@JeroenVannevel Oh, cool
(Or you could use TDD and not have to worry about that)
 
10:18 AM
Those don't solve the same problem though
Oh like that
 
I know, but I get to be pedantic by saying that, and I enjoy being a pedant
 
Yeah I guess but writing a test requires you to know the problem domain. This is before that point
SO YOUR POINT IS MOOT
 
mooooo-t
it is a very slow day today
 
YT blocked in work
 
10:21 AM
Come work in Barcelona
No blocking here
 
Or pay, apparently
 
you can't have everything
 
Zak
I. AM. MOOT!
 
@Zak "Moot, you can't, you'll die!" "We are moot."
 
They are going to look into funding to pay me after the internship, actually
so I'll see what they come up with
 
10:23 AM
1
Q: A version of the Pebble Big Time watch face that also displays the date

KevinI'm seeking style pointers, bugs, memory leaks, incorrect usage etc. Thanks :) #include <pebble.h> static Window *s_main_window; static AppTimer *app_timer; time_t now; struct tm disp_time; // Time to display. // Slot on-screen layout: // 0 1 // 2 3 #define TOTAL_IMAGE_SLOTS 4 #define...

 
Monking
 
No stars since at least 8.09 am. What's going on 2nd?
 
Zak
@DanPantry Maybe you're just not funny :p
 
@Zak That cuts deep
 
Zak
wow. Still Nothing. Tough crowd this morning.
 
10:35 AM
It is really quiet this morning, though. Oh well
 
Not starworthy enough ^^
 
possible answer invalidation by 200_success on question by jayjaypg22: codereview.stackexchange.com/posts/112421/revisions
 
Zak
@Duga Pity it's not Jamal, then I'd feel obligated to star it.
3
 
possible answer invalidation by blackened on question by blackened: codereview.stackexchange.com/posts/112432/revisions
 
Monking folks
 
10:48 AM
morning @SuperBiasedMan
 
Just did a review to increase performance 6500% by changing one line. Good start to the day
 
@SuperBiasedMan s/idea/day?
lol
 
spelling has not good start to the day
 
@Zak We've got our winner it seems
 
11:14 AM
Thank you for this reply - I had a look on Code Review (I'm new to programming + SO) and agree that my post would be more appropriate there. On looking for posts similar to this one there, I was also able to find new topics to fuel my research, namely Algorithm X/dancing links, and more generally, the topic of exact cover problems which is exactly what I was looking for! On a side note though, I am unable to get enumeration for this task to work - would that portion of the post be appropriate to SO? — djtango 49 secs ago
 
@SuperBiasedMan Must have been something major. Good catch.
 
They were converting each character of a binary string to integers and getting the sum, but since it's a binary string I pointed out they could just do string.count('1') for the same effect. I didn't think it'd be remotely that effective.
 
In-built functions are highly optimized, usually. I guess this just shows how big those effects can be.
 
Indeed. And iterating over a generator expression is still an iteration.
eval for loops are evil
 
Wow, I just had a talk with a company of which we are using a 3thrd party tool. Our subscription had been expired 3 months ago and I ran into a problem. They just offered us a valid licencekey to the latest version which had been published after our subscription expired.
 
11:26 AM
3rd party being a good guy.
 
12:03 PM
Monking
 
Monking
 
Monking
 
Monking
 
Monking
 
@janos It turns out that the language is largely irrelevant after all, because nearly all of the code can be eliminated. =)
 
12:12 PM
the language of the symbols used makes a huge difference to me in terms of readability and understandability, but maybe it's just me
 
1
Q: Locate missing or extra elements between two data sets with limited access to unique identifiers

Alexander HolmbackI've written a python program that is responsible for making sure that all elements in one data set (let's call it the source) exists in another (let's call it the target). Constraints beyond my control: Retrieving unique element identifiers from the source is extremely costly (~7-8 minutes), ...

 
Monking
 
12:56 PM
-1
Q: wnanna to add a svg peices to chess but i don't know how please help me give me some code of hint

shubham khandelwalvar canvas = document.getElementById("mycanvas"); ctx = canvas.getContext("2d"); for(var j = 0; j < 8; j++){ ctx.moveTo(0,90 * j); ctx.lineTo(720,90 * j); ctx.stroke(); var left=0; ...

 
1:18 PM
While it is that quiet here, this answer needs some love
1
A: Calculating company-wise total expenses

h.j.k.Interfaces over implementations type declaration List<HashMap<String, Object>> list = new ArrayList<HashMap<String, Object>>(); Favoring interfaces over implementations for type declaration applies to nested generic types as well, meaning the above can be better represented as: List<Map<Strin...

My answer just doesn't deserve more votes than this one.
 
Ho Ho Ho.... can't not upvote any good answer - just enjoy the benefits of the early bird. But, h.j.k consitently gives great answers.
I am tentatively booking off 2 weeks over Christmas... Winterbash 2015 FTW.
3
 
You are taking 2 weeks off for winterbash ?
 
You have to take these things seriously.... no?
 
I will stay in the office because of winterbash (more time to get more hats)
 
(my wife is a teacher, my kids are in school, and I thought we could all disappear to my in-laws for 2 weeks of school holidays..... but winterbash is a better excuse).
 
1:24 PM
My wife and daugther will be home most of the holidays so staying at work and doing winterbash is not that bad ;-)
 
I don't have a wife or child. c:
 
Even more time for winterbash....^^^^ ???
 
that ^^
 
@CaptainObvious Closed, -5'd, now it only needs some deletion. Unsalvageable.
@rolfl Planning to win again?
 
@Mast not if I can prevent it
 
1:35 PM
imagines in the network wide winners Heslacher and rolfl as tied firsts, instant boost to Code Review activity
@rolfl You prefer hats over completing your badge collection?
 
0
Q: What is the best way to declare references?

Nicolas CharvozI'm just wondering what is the best and more readable way to declare references ? I always wrote it like : int &i; But a lot of my co-workers write it this way : int& i; Writing that they tend to think that int& is a type itself, so they write this : int& i, j, k; Thinking that j and k...

0
Q: A simple weather app in Node.js

Hassan Althafwhile practicing Promises, I ended up with a simple weather application which works on the command line. I would highly appreciate it if you can point out any flaws in my code. They can be related to the efficiency, etc. I'm looking for anything you can provide in the review. package.json: { ...

 
@CaptainObvious Obvious Programmers question.
Welcome to Code Review! It looks like you're looking for Programmers, they handle whiteboard questions like these. At Code Review, we need actual code to review. We don't do snippets and we don't do example code. — Mast 26 secs ago
 
7 mins ago, by Mast
@rolfl You prefer hats over completing your badge collection?
You must be new here ^^^^ ;-)
 
Sweet just learned something new in SQL Server :D
 
Drop database customers works?
 
1:46 PM
lol
SELECT *
FROM sys.messages
WHERE message_id = 515  --error number
AND language_id = 1033; --english
 
@rolfl I knew you were serious about hats. Not this serious ^^
 
Had a mysterious error where all I ahd was the error number and the line number where it happened in the proc
> Cannot insert the value NULL into column '%.*ls', table '%.*ls'; column does not allow nulls. %ls fails.
Not sure what this '%.ls' thing is... guessing it might be like String format in Java or whatnot
 
3
Q: What's the difference between printf("%s"), printf("%ls"), wprintf("%s"), and wprintf("%ls")?

Display NameConsider this sample program: #include <cstdio> #include <cwchar> #include <string> int main() { std::string narrowstr = "narrow"; std::wstring widestr = L"wide"; printf("1 %s \n", narrowstr.c_str()); printf("2 %ls \n", widestr.c_str()); wprintf(L"3 %s \n", narrowstr.c_str()...

 
TSQL is C++...?
Or is that kind of a universal thing?
 
Probably influenced
but:
> SQL Server 2005 uses the SQLCLR (SQL Server Common Language Runtime) to host managed .NET assemblies in the database, while prior versions of SQL Server were restricted to unmanaged extended stored procedures primarily written in C.
 
1:59 PM
Gotcha - Makes sense.
 
2:16 PM
ok. This is the kind of thing you won't get here: most probably you won't find anyone who will do the translation for you. If you want a codereview, then head over to codereview.stackexchange.com There you can post your code and ask if it is ok. If you don't "trust your own translation" then show us why. What is wrong? You won't find anybody here who checks this for you... Does it compile? (no it does not as it stands). Does it output wrong results? What is the actual problem? — dingalapadum 50 secs ago
 
Of course a security question I ask goes to HNQ..
 
Jon Ericson on January 6, 2015
While testing hats before the start of Winter Bash 2014, a snowflake notification told me I'd earned the Treasure Hunter hat. After adjusting pirate paraphernalia to fit my head, I tried to remember what triggers this particular hat. As it happens, I'd just received a gold badge on Cooking that I would've totally ignored if not for the associated hat. Suddenly I understood why this time of year resonates with our most accomplished users. Earning cosmetic items, as silly as they are, temporarily reminds us of what it was like to begin participating on Stack Exchange months or years ago. Plus, hats look really cool.
Note "the winners" ^^^
As a bonus, see which other avatars/icons you recognize.
 
morning!
 
@JeroenVannevel oh my god
that is amazing
 
2:30 PM
@JeroenVannevel That's epic
 
I really hope it starts flashing your screen at some point with flashing letters encouraging you
 
Monking(2)
 
@skiwi Hi!
 
@JeroenVannevel Boom. Pretty cool, though I imagine it would get really annoying after a while
 
oh yeah, I would never use this
but it's nice to see what's possible
and the things people come up with
 
2:44 PM
0
Q: Should questions include a main method, test harness, or other way of running the code?

ShepmasterI recently answered a question that did not include a main method or any tests. The code provided was a just a handful of methods. Without any obvious way to drive the code, I had to guess at how each method would be used and how it should operate. In my particular case, the question centered ar...

 
0
Q: Logic Gate Simulator - Proper Encapsulation

MonkpitSo I was checking out the courses on InteractivePython, and I came across this example to demonstrate inheritance. My focus is on the Connector class and how it interacts with BinaryGate and UnaryGate via the setNextPin method. class LogicGate: def __init__(self,n): self.name = n...

 

« first day (941 days earlier)      last day (3075 days later) »