« first day (957 days earlier)      last day (3061 days later) » 

12:00 AM
RELOAD! There are 1632 unanswered questions (94.5006% answered)
 
@TheCoffeeCup, I haven't written them all yet, I was hoping to find a better solution before I spent a bunch of time writing them all out. Mainly I'm trying to figure out if there's some kind of native data structure/add method that would be faster to write (by me--I'm more concerned with development efficiency than algorithm efficiency). — sigil 1 min ago
^ Maybe that's why?
 
0
Q: Add many objects to a collection in a JavaScript object

sigilI'm trying to add a lot of objects manually into a collection. The best I can figure out is to define an object, create an add method, and call that add method a bunch of times in the object's constructor. function FieldMap(){ FieldMap.prototype.add=function(listField,formField,fieldType){ ...

 
@200_success That came later than the close.
 
Still, the //... was already there.
 
@TheCoffeeCup some people write slow
 
12:02 AM
@200_success Well, yea, but the question was closed as broken.
@Quill-HATMANIAC Not the point...
 
Zak
Right, I'm going to blast out most of my upvotes while I'm here. Who wants 'em?
 
Mmph, I lost 30 rep.
 
@Hosch250 !?
 
I had no need of asking when I had only 25 to go...
 
@Zak Ooh, Me! Pick Me! (jusk kidding)
 
12:03 AM
@TheCoffeeCup To the cap.
 
@Hosch250 Oh.
I lost 65 rep on Nov 26. Don't feel bad.
@Zak Don'g go crazy, though, or the System will revert it.
 
Wow. The second after I posted my answer, I was given an up-vote.
 
@SirPython That was me. I was on the post when you answered.
 
Reminds me of Phrancis' profile picture.
Thank you.
 
22
Q: Expression for losing something that you never really had

200_successA friend keeps whining about "losing n reputation points" on Stack Exchange. My instinctive interpretation is that some of the votes he had earned were reversed due to vote fraud. What he really means, though, is that he hit the daily reputation limit and can't take advantage of up votes that...

 
12:06 AM
@SirPython Welcome.
 
Zak
@TheCoffeeCup The system reverts suspicious voting patterns. Voting the way I usually would, but in a condensed space of time, hasn't led to any of my votes being reverted yet (that I know of)
@200_success lol
 
@200_success Well, then. Poor use of language?
 
@200_success Is that me? Sorry if I seem whiny.
I'll stop complaining.
 
=)
No, it wasn't referring to you.
 
OK.
Because I've mentioned it a few times lately due to capping 3 times in the past couple weeks.
 
12:09 AM
I'm at 25 hats now
 
@Hosch250 re: markdown in IDE, I use markdown in my readme files.
 
@RubberDuck So do I, I just have never edited them in my IDE.
 
It would be nice if I could stay in VS, but Haroopad is much nicer.
 
Yes @SirPython, it does. — Quill - HAT MANIAC 8 secs ago
apparently it's been around for while
 
I owe you a recommendation still too. I haven't forgotten.
 
12:10 AM
I like how powerful VS is, but I also wish it was a bit lighter.
@RubberDuck No worries.
 
I think that's what "Code" is for.
 
Zak
In the past 2 days, I've received 81 answer upvotes on the workplace.
 
Substantially lighter from what I understand.
 
I thought Code was mainly released because it was ready for Linux.
I'll have to check it out.
 
Zak
I *wish* there wasn't a rep cap
@RubberDuck Quick question, have you had any rep reversed recently?
 
12:12 AM
@Jordan, Every time I recommend something should be on Code Review, some CR person goes nuts saying it doesn't belong there. I have yet to fathom the raison d'être for Code Review as a result. I agree that Code Review seems like the right place though. — the Tin Man 48 secs ago
 
Free FGITW hat for anyone who is interested: codereview.stackexchange.com/questions/114234/…
Now, how do I use a reference like this? Does it come in a sealed envelope and I just use it once?
 
@theTinMan It's very simple. Does the code work as intended? Does the O.P. own and understand the code? Do they want it reviewed as-is (so not asking about how to add new functionality to it)? If yes to all three, recommend it to Code Review. — Zak 25 secs ago
 
@Hosch250 What's FGITW?
 
Fastest Gun In The West.
 
12:14 AM
@Hosch250 How do you earn it?
 
Post an answer within 30 minutes of the question being posted, get accepted and +3.
 
Zak
It's not a hat.
1034
Q: Fastest Gun in the West Problem

Omer van KloetenI feel like there's a problem with Stack Overflow, as the number of people prowling it increases. Each question's answers are sorted by descending score and then by descending time of posting. This means that if a person sits down and answers a question in a long, thorough way, going through eve...

 
It isn't really called FGITW, but it is essentially for a good FGITW.
 
@Hosch250 Speedy Delivery
 
Zak
That would be "Speedy Delivery"
 
12:16 AM
Yeah, at 30 minute time frames, it is probably a FGITW.
At least, on CR. Not on SO.
 
@theTinMan next time it happens, feel free to write us a comment (Anything that links to CR or that includes the text "Code Review" will get noticed) asking for validation/support. — Zak 39 secs ago
 
@Hosch250 I'm going for it now, I still have yet to earn it
 
I got it.
If you hadn't gotten the app hats, I would be ahead of you.
 
I have it for MSE
 
I have it for CR.
 
12:23 AM
0
Q: Anagram Substring Search

Himanshu VermaI am having difficulty understanding the runtime and space complexity while implementing the said question. Following is the code: import java.util.HashMap; import java.util.Map; public class AnagaramInBigString { private static Map<Character, Integer> frequencyMap(String str) { Map<Char...

0
Q: How can I remove all these else-ifs that when true, they all do the same?

ajax333221I have this list of at least seven else-if, when their condition is met, I change the same boolean is_attacked to true. This should be simple but I can't figure out in what way I can achieve the same on a more readable way. if(request_is_attacked){ if(as_knight){ if(piece_abs_val==2)...

 
@TheCoffeeCup is that Lisp or JavaScript :P
 
@Quill-HATMANIAC JS...
@SirPython Nice answer, definitely better than mine. Have an upvote :)
 
Well...
 
@Quill-HATMANIAC An attempt at an enum?
 
12:26 AM
@Quill-HATMANIAC Sorry. My editor is screwing with me today.
 
@Hosch250 -___-
the formatting dude
 
@TheCoffeeCup Thank you!
 
@SirPython Welcome.
 
@Zak I probably wouldn't notice if I had to be honest.
 
Zak
@RubberDuck It would come up in your rep tab.
I just want some hard evidence that the system doesn't find my voting (which *happens* to favour you and @Mat'sMug due to your presence in ) overly suspicious
 
12:35 AM
Yup. I've zero idea. I honestly wouldn't notice these days. I barely get 'round these parts anymore.
Which makes me kind of sad.
 
Sad ducky
 
Very sad ducky, but hey, I get paid to write C# now. Can't complain too much.
 
PHP pop quiz: What gets printed?
 
How do you make a position: fixed; div have padding above it, so that when you scroll there is some empty space at the bottom of the page?
 
<?php
$first = 'z' + 1; echo $first . "\n";
$second = 'z'; $second++; echo $second . "\n";
 
12:43 AM
?
Who wrote that?
It prints 0aa
Easy
PHP wraps z using the increment operator
 
Is there a web-devs.SE?
 
Instead of going to all other symbols
 
I need to figure out this silly HTML / CSS issue I am having
 
It goes from z to aa, ab, ac, ...
 
I got 1 aa. Not sure about the explanation for the 1.
 
12:46 AM
'z' + 1 = 0
+'z' = 0
 
@HATMAN jsfiddle link?
 
Hrrm
 
printf('%d', 'z') == '0'
 
I don't have one
 
Your PHP version? I'm on 5.5.24.
 
12:47 AM
Any PHP version
 
Who is (or rather was?) HATMAN?
 
'z' is converted to integer
 
@holroy NoviceInDusguise
 
Since z isn't a number, PHP converts it to 0
 
@TheCoffeeCup yep
 
12:47 AM
Then, 0 + 1 = 1
 
I'm in my festive garb right now
 
Ahh... Who truly is in disguise now?! ;-)
 
dusguise lol
 
lol
 
disguising the mistake, disguiseption
 
12:49 AM
@200_success You want to take this topic to The Nth Monitor?
 
@IsmaelMiguel Do stay... You guys are more on topic then the disguised user name!
 
I'm done. Just thought I'd share some PHP weirdness.
 
Yes, but he can't read my fabulous uninteresting explanation here
2
But it isn't weird
It's actually pretty cool
 
0
Q: Css: How to make position fixed 100% resizable with bottom padding? - JS Fiddle provded

AnonymousI'm trying to make fixed 100% but with a little frame around. I just cant get it right, the frame would appear EITHER top/ bottom, or left/ right, but not from both sides... Here's what I've got so far: div.all_reviews{ background: url(../design/trans-gr.png); position:fixed; width:...

Is that close to what you want? If not, then search/ask Stack Overflow.
 
I'm still really bad at CSS.
 
12:52 AM
Is anyone ever truly an expert at CSS?
 
@200_success ok
 
@HATMAN There is webmasters.stackexchange.com/questions/tagged/web-development - But I don't think they address HTML/CSS code questions. I'd say Stack Overflow would be better
 
^ yes, that
 
ok
 
webmasters is more for like, .htaccess kinda stuff, I think
 
12:54 AM
Right
 
not that this isn't off-topic on SO, or even here
 
See, this is what is wrong with Stack Overflow:
14
Q: What distribution is CirrOS based on?

DaveWhat distribution is CirrOS based on?

Ask yourself: "why is the accepted answer the accepted answer?"
 
Take your SO-bashing to an SO chat room. =)
8
 
They have one heck of a lot of them too . . .
 
Oh, sorry, I thought this was a Stack Overflow JAVA Forum .... my aplogies....
10
 
1:01 AM
:P when wasn't it?
 
So forum . . .
yeah
 
@HATMAN So what?
 
@SirPython Enjoying your new hat?
 
@TheCoffeeCup lol, SE sites are not forums
 
Huh? A sudden unexpected upvote on my Java Petals Around the Rose...
Probably because I linked it from my Python question...
 
1:30 AM
This is peculiar (on the division operator...)
(setq x 10)
(setq y 17)
(print (+ x y)) ;; 27
(print (- x y)) ;; -7
(print (* x y)) ;; 170
(print (/ x y)) ;; 10/17 ??
I was expecting a float
 
Zak
@Phrancis Well, it's not wrong :p
 
Particularly precise actually. What language is that?
 
Lisp
 
Built in fraction type?
 
Let's find out
(print (/ x y)) ;; 10/17
(print (type-of (/ x y))) ;; RATIO
 
1:33 AM
Yup. I'll be damned. That's neat.
 
Sure is
 
I like that it's called Ratio too. Lol
 
Hey, I need help here with something
I have there a small test
And it is failing on the CSS
There are a few elements that have the wrong alignment, and can't figure out what's wrong
 
Well played @IsmaelMiguel. Well played.
 
@RubberDuck What?
 
1:35 AM
0
Q: Unicode-capable symbol table (N-way search tree with hash buckets)

luser droogAs in my previous question, this module is coupled with its own testing framework. As a symbol-table for a Unicode-capable programming language interpreter, I decided to combine the 3 types of associative array that I had implemented before. Xpost's postscript nametype objects are implemented wi...

 
Unfortunately for you, I like that song.
 
But I like it too
 
I heard noise, and saw a YT link. Closed immediately
 
> Never gonna give you up. Never gonna let you down. Never gonna turn around and hurt you.
 
Great song that one
 
1:37 AM
I'll take your word for it. Experiential evidence I deem unnecessary
 
(print (* 35 (/ x y))) ; 350/17
(print (* 34 (/ x y))) ; 20
(print (type-of (* 34 (/ x y)))) ; (INTEGER 0 281474976710655)
Converts ratio back to int when your ratio is a whole number, neato
Definitely beats the hell out of floating point calculations.
 
That ^. No precision loss. It's a neat way to do it.
 
Zak
how have I never encountered this before:
 
@Zak wtf
 
Zak
"why is justin bieber such a douche"
 
1:43 AM
lol
 
Zak
I literally stopped at random halfway down and that was the first thing I saw.
 
> why do we use xor
 
Zak
"why do iwastesomuchtime"
That could be a hashtag :)
"why do ugly guys have high standards"
harsh much
 
#ColossalWasteOfTime
 
@RubberDuck You've not been in the Rubberduck room for so long I can't even ping you anymore.
 
Zak
1:45 AM
Followed shortly by "why do ugly guys get girls"
I want to know the genesis of this list now.
Is it all manual, or procedurally geenrated somehow,
 
I'd almost be willing to bet it's scraped from Twitter...?
 
It is the entire google results from the US for the year.
 
There it is, Google of course
 
Zak
@Hosch250 It's big, but it's nowhere near *that* big :)
 
lol
 
1:49 AM
The intended joke is that people just search the same things over and over.
 
> why is xkcd so popular
 
I prefer Dilbert.
user image
3
 
Zak
@Hosch250 Dilbert is pretty awesome
 
@Zak Interested in previewing the next UI dialog for RD?
 
Zak
@Hosch250 Sure
 
1:56 AM
Come to the RD room.
 
it seems to be a candidate for codereview.stackexchange.comJuned Ahsan 13 secs ago
 
-2
Q: OutOfHeap Memory and fast reading

Karandeep SinghI am writing a source code to read a 20 million text lines files and count word frequency with one word and two words. for example: A B A B SSS G D A One word Frequency A: 3 B: 2 SSS: 1 G: 1 Two Word Frequency A B: 2 B A: 1 B SSSS: 1 SSS G: 1 After reading method when it put all has...

 
2:12 AM
I'm voting to close this question as off-topic because it is more suited for codereview.stackexchange.com and has already been posted there. — Robin Krahl 48 secs ago
 
I hate writing on my thesis, the more I reread it the more I change it and the worse it seems to become :D
 
Zak
@CaptainObvious Broken and no Code
 
@DJanssens I understand that.
I rewrote the final to one of my classes three times before I submitted it.
 
Zak
@DJanssens Write it out in pen.
 
I hope you get it done good.
@Zak That won't help with the changes.
 
2:13 AM
Nah that would even make things harder to read
 
Zak
@Hosch250 Maybe, but it introduces a much higher threshold for them.
 
LaTeX :/
 
A higher threshold is a terrible idea when you are pressed for time and are finding mistakes.
 
I'm just not such an academic writer.
+ being a not native speaker, makes me question about so much grammar stuff. :D
 
Zak
@DJanssens Believe me, being a native speaker doesn't help.
2
 
2:19 AM
;)
 
If you have your Comp 101 textbook, you should be fine.
 
If this were to be posted to Code Review, you would want to add the code you want reviewed directly in your question, as CR do not review code that is only found behind links. Otherwise, as long as the code works correctly, you're welcome to post it there. — Phrancis 23 secs ago
 
If not, check out Jensen's Grammar and Punctuation books - I never understood grammar or punctuation until I went through them.
 
If code works fine on reasonable size file read, but gets OutOfMemory exception on really large file, that's not broken AFAIK right?
Just slow/inefficient
 
Should be fine.
 
2:28 AM
It is fine
 
0
Q: Good pattern to select multiple values

MikeAtNobelI have a method that returns an enum value. That enum value is then used to select an image and a color (in two separate functions). I'm trying to figure out a better way to do this than I already have. Currently, I'm using that enum value as an index to a couple of arrays. This is the method t...

 
I would say it is kinda expected
And you can ask attention on that and an alternative that doesn't cause OutOfMemory exceptions
 
Cool
 
0
Q: website with Java Script embedded in it

Paul KelleyI am working on a website using a revised version of my last question, a dice roller that gives an output on the face of a die, but cannot figure out how to include that into html I tried looking it up but to no effect. If you could please help me that would be great. <!DOCTYPE html> <html> <...

0
Q: CTE query which needs perofrmance improvement

LockszmithI'm trying to get the following query perform better. Difference between the Demo code and real life: Items are in tables and not UNION ALL CTEs The list represented by Entries in the demo, in reality is 800K rows, and takes 8 seconds to retrieve. Sequence column is actually a date. Inspecti...

0
Q: Creating Animal Inheritance hierarchy using function constructor

overexchange Problem statement You need to create the Animal base class having four fields: 1) name 2) sound 3) owner 4) favFood You need to create a derived class Cat such that every instance of Cat inherits instance members of Animal. In addition, Cat adds a new instance mem...

 
@CaptainObvious Broken?
 
2:50 AM
@Hosch250 that's nearly verbatim written against on my project guidelines sheet lol
 
Interesting.
 
@Roamer-1888 There actually is. Quill keeps his code to a high standard. It's really hard to find issues to talk about. When I say "hard", I mean that it is a colossal task to find any issue at all. You have to look to the code from a different perspective. But if you see that there is/are untold issue(s), feel free to answer. — Ismael Miguel 4 hours ago
thanks man :-)
now only if that were the case for any other language besides JavaScript ;-;
haha my selfie answers are more like a to do list LOL
 
I made a selfie answer listing what I had learned through the year on my second question.
 
Ah finally done with this big music project. Now I can code and not feel like I'm procrastinating :)
 
3:16 AM
 
@JeremyBanks it's not searchable but I tend to learn something interesting when I see them. Corner cases in the language that wouldn't pass code review are often immensely educational precisely for their counterintuitiveness - they teach thinking rigorously about types and order of operations and even parsing tokens apart despite ugliness. — djechlin 17 secs ago
 
3
A: Image Filter client

Roamer-1888Reusability issues As it stands, ImageFilter is a strange thing that hovers somewhere between reusable and not reusable. Reusable: It is written as a javascript contructor and called with new. Not reusable: Only one instance is possible because ImageFilter is a private member of the outer wrap...

can we give this answer some love
 
3:41 AM
I take it that this means I can copy the code in one answer and post it as my own answer and not credit the post I copied it from? You are expliitly giving me the right, permission, and expectation, not to. — rolfl 24 secs ago
 
@rolfl Multiple comments on that page appear to assert that plagiarism is a separate issue and would still not be tolerated on Stack Exchange.
 
That makes no sense.... like none.
But I fear you may be right.
 
It can still be treated as a moral or academic issue, even without copyright.
 
Is it rather common or uncommon for a single document (paper, book, etc.) to have multiple licenses for material that is all original by the author?
(excluding of course referenced materials et al.)
 
Earned bronze badge.
@Phrancis I've only seen books with a single license.
Darn, I'm down to 5 votes already.
 
3:57 AM
@Phrancis might be a good law.se question
 
Or Writer.
 
0
A: The MIT License – Clarity on Using Code on Stack Overflow and on the Stack Exchange Network

rolflI have sent an inquiry directly to the OSI for a comment on this situation. Frankly, I am surprised that they would be recommending the changes that are proposed here. I hope to hear back from them shortly. On the other hand, I would like to know more about what parts of this recommendation are ...

 
I was mostly trying to, say, compare a post (which can be document-ish, for sure, at least on some sites) to a more academic/traditional type of document
 
4:35 AM
How important is the knowledge of design patterns implemented using JS, amidst Front end web development? I curently know JS syntax, am yet to learn JQuery.
 
5:32 AM
imageCallback ? imageCallback(variable) : '';
why is that a thing in strict mode
 
possible answer invalidation by Karandeep Singh on question by Karandeep Singh: codereview.stackexchange.com/posts/114245/revisions
 
@Duga I don't know, somebody else call it
 
@Quill-HATMANIAC That one looks fine
 
cool thanks
 
5:49 AM
Could you please answer my specific query. I'm not looking at code review. — Violet_ 49 secs ago
 
6:04 AM
0
Q: Updating resources while avoiding race conditions

Martin TuskeviciusI am writing a utility class for a game client. This class has two main functions: connect to a game server and retrieve the current game revision, and retrieve a "recipe," which is basically serialized data containing information unique to a revision number. The specifics of the "recipe" are irr...

0
Q: A simple css selector parser.

jkriscould you guys let me know what's the problem of the code below. var classNames, tag, id, selector='div#pid.foo.bar'; classNames = selector.split('.'); // ['foo','bar'] id = classNames[0].split('#')[1]; // 'pid' tag = classNames.shift().split('#').shift(); // '...

 
6:24 AM
Monking
 
6:35 AM
Monking
 
Monking @all
 
Got to go to work... see you there :)
 
7:25 AM
@Mat'sMug I guess we have to agree that we disagree regarding the usage of var in that question.
 
7:56 AM
This question should be moved to Code Review — R3uK 12 secs ago
 
0
Q: Counting number of steps while finding right path

user10859I am writing a code which would return the path in a maze using recursion, but now with the path I also want the number of steps. How do count number of steps in this program? or number of times this recursive function is called in my actual path? I can't put the increment counter just inside ...

 
Monking!
I think I fixed the last memory leak in our app. BOOSH!
@rolfl JAVA? you should totally drop that and use jquery instead..
 
Zak
9:01 AM
user image
3
Now that's what I like to wake up to
 
1
Q: C and CUDA: circular buffer implementation

JamesI have a programme which uses many circular buffers in an identical fashion on a CPU and GPU (C and C/C++ CUDA). I essentially require many queues, however due to this being run on a GPU, I have limited its length so memory can be set up once at the beginning of the programme. I therefore have th...

 
Zak
Ooh, populist badge. That's a new one.
I'm just 9 upvotes away from getting my edit privileges :)
 
9:21 AM
1
Q: Retrieving a csv header

R4nc1dI have two seperate calls that returns a .csv file. I need to extract a couple of headers from the files depending on which one is called. The headers does not always sit in the same index, and the CourseId name changes to Asset_ID in the one call. How can I refactor the code to make it more mai...

 
9:31 AM
This codereview.stackexchange.com/questions/113255/bufferaggregate/… could get me two hats 007 and Weed eater
 
@Zak Congratulations, that's not an easy one to get.
 
@DanPantry the entire dialogue of the turrets is my ringtone
 
@Quill-HATMANIAC I've been on a portal 2 binge recently
 
@DanPantry It actually moves? Nice.
 
9:40 AM
> Oh hi. so, how are you holding up? Because I'm a potato.
 
Zak
9:55 AM
@Mast I imagine it'd be much harder to get on Code Review, but workplace has been very generous recently.
45
A: Serious misconduct. Probable termination. Should I quit or just wait?

ZakSo, you screwed up. It happens. As long as you didn't deliberately do something bad, and the thing itself is not a huge thing (like, say, you came to work high, committed a crime, stealing etc.): Hand in your resignation. Apologise for your conduct. Go looking for a new job. When they ask you a...

 
If you have a working algorithm and are looking for someone to review it to see if something might be improved, you should go to Code Review. If have problems with your algorithm because of a specific issue, likely to be relevant to others, you might ask here; but you shouldn't expect us to solve your problems for you. That is: "here is my code; take a look at it and tell me what is going wrong with it" is also offtopic here. — varocarbas 8 secs ago
 
@Zak Oh, Workplace, we had a discussion about that here recently.
 
Zak
Last 3 days, I've written 3 answers, and received 119 upvotes
At this rate, I might try and rep-cap every day throughout christmas.
 
Go for it.
 
Zak
I *would* try and do that on CR, but I can't just write a 10-minute answer here and get 80 upvotes for it :)
 
10:01 AM
No, you'd need a pretty decent answer to hit 80 here.
 
yeah, the best I've done was 30ish
 
Your answer on that question at Workplace was quite good though, it was simply easier to answer than most of what happens at CR.
 
site related scripts usually score high
 
Zak
@Mast It's funny. I seem so much wiser when it's other people's problems I'm analysing :)
 
0
Q: JSP evaluation of Parameters

QoheletI was never really sure what the cleanest way would be to use JSP-Pages for receiving sent parameters. It's common knowledge to use as little JSP as possible - yet as some things have to be done there, for example the request.getParameter-Commands. Right now most of my pages which are fetching p...

 
10:09 AM
Star Wars hat is in
@CaptainObvious I don't think so
 
@CaptainObvious I'm not sure it's actually broken, let's hear what the OP has to say about it.
 
I voted to close as unclear
 
10:45 AM
Code is working and it's doing what I want it to do, but I'm not sure if there are cleaner or better ways to get the job done. — Qohelet 27 mins ago
 
I think your question is more suitable to codereview.stackexchange.com. However I think you could benefit from profiling your script to see where the bottlenecks are (regarding performance) — brodoll 18 secs ago
 
Excellent, I'm on out of hours cover over christmas
and two of the days are bank holidays, so I get paid double
 
Nice code review and modifications. — Jagadeesh 1 min ago
 
@Mast why is there a stack trace exception on the question then
 
Zak
Wait, SE thinks today is Dec 18th?
 
10:59 AM
apparently
 

« first day (957 days earlier)      last day (3061 days later) »