« first day (754 days earlier)      last day (3278 days later) » 

12:00 AM
There are 1392 unanswered questions
 
@nhgrif Yes.
 
I love how new CRitters get confused about out star obsession.
 
Wait, what...?
Did I miss a star-fest?
2
 
@QPaysTaxes then click them!!
 
This answer is (at least temporarily) the answer to life, the universe, and everything:
42
A: How could I optimize this script?

nhgrifThis script is a total of 99 lines. Of that, 49 lines are insulting, annoying, and ironic self-congratulating comments. In general, comments are good. They help any future maintainer (including yourself when it's been 6 months since the last time you looked at the script) to understand what ...

 
12:02 AM
lol
 
Code Complete. That's where that list came from.
 
@QPaysTaxes not quite. Seriously, check out that Q+A, it's... epic.
 
0
Q: Better conditional manipulation of bound data?

BarFooBarI set the content of a hover with this function: content: function(){ if (self.content(this.__data__).includes('</br>0%</font>')) { return self.content(this.__data__).replace('</br>0%</font>', '</br><1%</font>') } return self.content(this.__data__) } This selects a ...

 
The one @nhgrif just linked to
 
@nhgrif How did you know I was listening to HHGTTG at the very moment you made this comment?
 
12:06 AM
Because, @Phrancis... don't you know?
 
> Once again, another misspelling in the midst of self-congratulating the genius of a programmer who can't even spell-check
 
@QPaysTaxes Just take it from a guy who's tried 4 out of 6 major DBMS (excluding Oracle and DB2)
 
That guy got what he had coming IMO
 
Maybe one day he'll grow up and accept that answer
 
Oracle's not bad. It just trips me up every time I need to work with dates or strings..
Maybe Mug. One can hope.
 
12:08 AM
Oracle doesn't look bad, except for its lack of syntax sugar
 
Wait...
 
If you have working code codereview.stackexchange.com is probably a better fit for this — IanAuld 54 secs ago
 
INSERT INTO foo VALUES (1);
INSERT INTO foo VALUES (2);
INSERT INTO foo VALUES (3);
 
> if you're not capable of writing programs that "stupid" users can use, then perhaps it is you who has no hope as a programmer.
2
The functions are just all different than what I'm used to with TSQL @Phrancis. The newer versions have a lot of that sugar.
 
@QPaysTaxes it's okay, we're here to cure you
 
12:12 AM
This would indeed be a better fit for Code Review, if the code works as intended. You're welcome to delete your question here and post in on CR instead. — Phrancis 37 secs ago
 
@RubberDuck Ah nice. I tried to get Oracle (or maybe it was DB2) on my machine, and was promptly contacted by a salesperson. Nice service that I could do without.
 
You can never spend too much time in the 2nd Monitor
 
@mjolka slight change in the logo buddy
 
> It's not a function. It's an operator. It's called the ternary operator. The fact that it's called a ternary operator is something you could learn by reading the documentation.
 
bbl
 
12:13 AM
@nhgrif drops the mic
 
I starred all of these times you guys are quoting me. Each time wondering how come they're not all links back to the answer I could earn some reputation from...
Also, I've yet to see anyone click "Share" then use the Twitter link.
Or Facebook/Google+ for that matter.
 
yesterday, by Phrancis
TODO: Delete Facebook account
 
Ya know what, let's fix that.
 
@QPaysTaxes While you're at it, you're welcome to add @Cardshifter on Twitter :)
(me on behalf of our gaming project)
 
12:19 AM
Some delightful snarkasm from @importBlogKit on Code Review.SE: http://codereview.stackexchange.com/a/60435/62850?stw=2
2
 
Great answer to a terrible question: http://codereview.stackexchange.com/a/60435/42632?stw=2
2
 
@importBlogKit @StackCodeReview #epic review of just the comments. http://codereview.stackexchange.com/a/60435/41243?stw=2
2
 
Did I miss a Tweet-fest?
2
 
0
Q: How can I make my Python code better? (YouTube scaper)

dk1This is a program I wrote in Python using the BeautifulSoup library. The program scrapes YouTube search results for a given query and extracts data from the channels returned in the search results. I'm just looking for some tips on how to make my code look (and function) better. I removed most ...

 
@CaptainObvious OH COME ON.
 
12:20 AM
o! Hai @CaptainObvious!
 
@Mehrad ah you picked up on it :)
 
0
A: Asynchronous HTTP JSON request

nhgrifI know this is technically outside the scope of the review here, but your first parameter's type is Method. This enum desperately needs to be renamed. When I see Method, I cannot help but think of a programming method... I think you're passing a pointer to a class's method here. This type need...

(I know you guys all just reload)
 
0
A: Selecting all posts with a certain tag

PhrancisUnnecessary joins The joins you have seem like more than needed. You basically joins two of the tables twice, like this: tags -> post_tags -> posts -> post_tags -> tags Two of the joins look like exact replicas of the first two joins: LEFT JOIN posts_tags pt ON posts.id = pt.po...

 
@Phrancis I have to downvote that for now.
For now, I don't think that this works:
FROM   tags
       LEFT JOIN posts_tags
              ON tags.id = posts_tags.tag
       LEFT JOIN posts
              ON posts.id = posts_tags.post
hang on, let me just remove the down vote...
but I think that's suspect anyway
If it were me, I'd do:
FROM posts p
    LEFT JOIN posts_tags pt ON pt.post = p.id
    LEFT JOIN tags t on t.id = pt.tag
Hmm, nah, even that doesn't quite work.
You have to have the tags table joined twice.
 
Why?
 
Dataset 1: Questions with Tag X.
Dataset 2: Tags on questions with Tag X.
Dataset 1 needs WHERE tags.tag = X, but Dataset 2 can't have that where condition.
Or else, you'll never see any of the related tags.
 
Ah, many-to-many relationship
Let me see if I can fix that answer
 
12:54 AM
Right. If this is Stack Exchange, a question will have 1-5 tags.
And a tag will have 1 or more questions
 
There, fixed. Thanks for pointing that out @nhgrif
 
now you took out the only parts I know anything about
so it's impossible for me to find anything wrong with the rest of it.
 
Well, surely they ought to have FK relationships ;p
 
Yeah, I upvoted.
 
Not that great of a question, now that I think of it.
 
1:00 AM
There is a way to cleanup the query, I think.
Would be good if it were a flavor that supported CTE... but that's always the case.
 
Just don't think of CTEs, cuz MySQL don't like those
 
Sometimes I think "RTFM" should be a close reason. I understand why it's not... and can not... but they could at least ban questions about Parse.com...
 
0
Q: Handling users connection to the application

Charlesthis is a simple User class that I'm using throughout the application for anything related to the users. To tell if a user is logged in or not, I checked the presence of the userID in the $_SESSION. When I'm logging in the user, I simply set the $_SESSION["userID"] equal to the ID of the user. ...

0
Q: JavaScript structure advice for my first large JS Project

JasonDavisI am building a Project Management App with JavaScript and PHP. My question today is in regards to only1 section of my overall app. The Project Task Modal which is used to load a Task record into and populate all the Task data fields in the Modal when a Task record is clicked on in a Task list....

 
0
Q: A code review without the code

SirPythonRecently, I wrote a review that discussed certain points in the OP's code, but did not contain any code in the review itself. Are answers like these discouraged?

 
1:13 AM
@Mat'sMug no repro on that back ticks thing
 
Sometimes... I read a question, and it's clear that the asker has no clue what they're doing... but something about the question enlightens you to something you should've/could've been doing a long time ago.
 
right-click -> alter procedure/view
WorkBench likes LOVES extraneous parenthesis, too
 
i am proud of this answer:
 
@Mat'sMug (sounds like([Access]))
 
0
A: Slot Machine Constructor

bazolaRandom Issues This seems bad: function getValue() { var num = Math.random(); if(num < 0.2) { this.card = '<i class="fa fa-anchor"></i>'; } if(0.2 > num < 0.4 ) { this.card = '<i class="fa fa-heart"></i>'; } if(0.4 > num < 0.6){ this.car...

 
1:15 AM
Xcode's Autolayout is an extraordinarily powerful tool. Nothing I've seen in Visual Studio's visual designers even thinks about coming even remotely close. With that said, Autolayout is also very, very complex... every time I start too feel some new mastery over it, it's only a matter of time before I realize there's a whole new realm of tools within Autolayout that I had been ignoring...
 
I've come to forget how vanilla VS works, with all these years spoiled with using R#
 
I don't think an add-on can fix this. It would require an entirely new set of classes for the forms/controls/etc.
There are things that you can set up in autolayout that you just can not do in Visual Studio's visual designer as far as I've seen.
 
oh, I missed the visual designers part
 
Yeah.
For example, can you setup a control to always be 50% the width of its parent's width??
 
depends on your framework. WinForms kinda sucks at layout
in WPF, easy as pie
 
1:19 AM
Can you set up a control to always be 20% larger than another control (which isn't its parent)?
 
@nhgrif yes
 
Hey, maybe WinForms is a bit like CSS!
 
uh, no.
 
What do you use to set the control up in this manner?
I guess I've only used WinForms. You get anchor points, or docking, and then the size of the control itself.
 
look into element bindings
 
1:22 AM
With autolayout, you get size and position... but you get a whole plethora of different sorts of constraints you can set up.
 
data bindings in WPF are astounding
 
And there's a class called NSLayoutConstraint. I can create a reference to a constraint... change the constraint on the fly at run time.
@Mat'sMug I don't envision myself writing any Windows UI code any time in the near future... last day of my old job was Friday, remember? New job starts Monday.
 
one day I have to make a hand-shaped window that says "hi"
 
hi
 
hi
 
1:23 AM
hi!
 
Oh look, a hi-fest.
 
yeah?
 
All right, going up to bed now.
 
Wait, you can make a hand-shaped window?
 
Aren't you still between jobs, @nhgrif ?
 
1:25 AM
@Phrancis why not?
 
@rolfl Yes. There's a 5 year old that still goes to preschool at 7:30am in this house.
 
No... why seems more appropriate
 
Also, we drove 6 hours (to new house and back) today.
I'm also between houses...
 
#BecauseWeCan
 
@Mat'sMug ... ... ... Fair enough :)
 
#ThisIsNotTwitter
7
 
13
Q: Can Beta sites slated for graduation get full-site abilities without site design upgrade?

CatijaI respect the discussion about how much work goes into making a Beta site into a full site, particularly from the design perspective. From Robert Cartaino's answer: Sending a site to the "graduation queue" and getting a design published are currently two different things. We recently hired s...

 
ooh
 
> We recently hired some fantastic new designers to help clear the backlog, but there is a still about 9 sites waiting for a design, last I checked.
 
> Some sites are just plain harder than others.
 
Maybe our site design should just incorporate monkeys. There. All done.
 
1:58 AM
0
Q: long to int conversion efficiently?

Ankur Anand Like most of the girlfriends, Ashima when asks for something, won’t stop until she gets that. The way she gets that is by keep on repeating the same things again and again. Like if she wants chocolate, she will just keep on repeating “chocolate” again and again. I have decided to...

 
My message was pinned, for one reason or another.
Ah.
 
@jamal Oops
 
I've replied #ThisIsNotTwitter on Facebook a number of times, usually met with utter disregard.
> I made a sandwich #snack #sandwich #ham #mayo #cheese #DIY
 
Someday... someday... people will stop treating SE like a forum.
3
-1
A: Write a NESTED LOOP code segment that produces this output

Joseph Stalin4 negatives to this question? Seriously? What is wrong with it?

And this is why it's so easy to get a high flag count on SO. Even 13k+ seems kinda low.
That's pretty much the only thing I do on SO nowadays. Sure, it helps keep the site clean for a little bit, but new crap always pops up.
 
2:17 AM
DELETE * FROM StackOverflow.Posts WHERE Score <= 0;
Sadly, it's not so simple...
In verity I feel sad for the SO people who have to accept that many really bad questions are still on-topic
SORCERY
Sleep is for the week weak
 
> "As far as I know, the only reason we need to sleep that is really, really solid is because we get sleepy."
3
'night @QPays
 
Bye @QPaysTaxes
 
Bye!
 
Close it now
 
that's it, stuck in The 2nd Monitor.
 
2:27 AM
Stop posting starrable things.
 
lol
 
Seeya
"Hey look 'ma, graphics!"
 
-2
A: How to enable http2 in Windows 10 Server Technical preview

user4947128Simple solution' don't use that piece of shit IIS.

 
2:36 AM
awards bounty
 
Why don't you suggest a solution instead of just throwing dirt at something you don't like? — Phrancis 25 secs ago
 
flagged
: Clippy for new users.
> Welcome to Stack Overflow! It looks like you're writing an answer. Would you like a crash course on how to avoid NAA flags?
actually..
[Clippy pops up] - Welcome to Stack Overflow! It looks like you're writing an answer. Would you like a crash course on how to avoid NAA flags? — Mat's Mug 25 secs ago
 
> Welcome to Stack Overflow! It looks like you're writing an answer. Would you like a crash course on how to avoid getting your account destroyed?
 
@Mat'sMug Ohhhhh that's so passive-aggressive, yet rings so true
 
0
A: How to edit highlighted words of code simultaneously

snagjaw303been wondering the same thing for about 7 years now.

 
2:47 AM
lol
how do you even find all those
 
that should be burnit.com
 
@Phrancis: It's not even a good comment. — Jamal 27 secs ago
 
0
Q: Organizing iOS Accessibility Implementation

Varun TewariI am implementing Accessibility for our iOS application. Accessibility has following main configurations. Voice over enable/disable checks. UIAccessibilityIsVoiceOverRunning() Individual view titles, hints, Traits. view.accessibilityLabel = @"string"; view.accessibilityHint = @"string"; ...

 
^ made me lol
 
2:52 AM
made me cry
 
(I meant Jamal's comment, not @Captain's question -- but yeah)
 
@Mat'sMug slams laptop lid closed. never returns to site.Seth 1 min ago
 
 
lol
 
@Jamal Seems like this user is trying to post code, but having trouble with the GUI. Thoughts?
 
3:05 AM
> It looks like you are trying to post code. Would you like a crash course on markdown?
 
Might be related to Obj-C weird syntax of beginning a class with a hyphen
Looks like it formatted it to a bullet point list
 
need moar spaces
 
I tried to fix it, but pretty sure it's still off-topic
 
IMO still is indeed
 
Remove the "thanks" as well.
 
3:10 AM
Gotta love Hitchhiker's Guide narrating...
It is interesting... but not very interesting, that...
 
@Phrancis how would you translate "type hint" to French?
 
Context?
 
if I google "VBA type hints" the Rubberduck wiki for "Obsolete type hint inspection" comes up 3rd BTW
Dim myString$ ' string
 
@jsve: One indirect way of asking about best practice is to post your code for review/critique on codereview.stackexchange.comslebetman 11 secs ago
 
"astuces par rapport au type de [whatever]" perhaps?
You translating RD to French or something?
 
3:13 AM
"Utilisation obsolète d'un indicateur de type dans {0} '{1}'"
 
That seems quite good to me
 
best I could come up with
can't find anything official though
RD wiki comes up before MSDN lol
 
LOL
That translation seems like it is Just Right(TM) to me
 
0
Q: Running async processes in node.js on multiple cores

Alex MillsUsing the async and child_process modules, I can create true asynchronous processing. My question is, how can I ensure that it is running on multiple cores? var cp = require('child_process'); var async = require('async'); async.parallel([ function(callback){ console.log('1'); ...

 
@Phrancis I have InspectionNames.fr.resx completed
 
3:29 AM
0
Q: Writing to JTextArea with CachedThreadPool

AndroidDragonFor a school assignment I have to create 54 threads that run simultaneously from a Executors.newCachedThreadPool() that write to a JTextArea in a thread safe manner. Each thread has to write 'A' through 'Z' to the field 1000 times. I've been having issues making the program thread safe no matter ...

 
0
Q: What happened between Twelth and Thirteenth?

PhrancisI'm listening to the Hitchhiker's Guide radio series, and there seems to be an obvious disconnect between these two parts: Fit the Twelth; Arthur Dent, Ford Prefect and Zaphod Beeblebrox visit the "ruler of the universe" Fit the Thirteenth: Arthur Dent is back on Earth 2 million years in the pa...

 
@Jamal funny :D
 
-1
Q: I'm new in java, and I want to know this code on how it works

Jose Aldopublic class Mix4 { int counter = 0; public static void main(String[] args){ int count = 0; Mix4 [] m4a = new Mix4[20]; int x = 0; while (x < 9) { m4a[x] = new Mix4(); m4a[x].counter = m4a[x].counter + 1; count = count + 1; ...

 
3:47 AM
@Mat'sMug i got my rule severity settings working :)
 
nice!
 
@Jamal Wow, someone took time out of their day to write that.
 
oh
does "refactor" have a translation?
 
4:01 AM
0
Q: perform binary trees search based a collection of data

Masky Pegasusi was asked to write a BTS code for a collection of data with have the x, y and z coordinate, which has negative and positive number, and the requirement are below: That program is capable to perform binary trees search based a collection of data Please use the data provided within this email. ...

 
"repository"...
 
what do you mean by intended? — Masky Pegasus 12 mins ago
 
@Mat'sMug, Mat do you reckon can this be written in a single liner format?
    <TextBox>
    <TextBox.Text>
        <Binding Path="Name">
            <Binding.ValidationRules>
                <ExceptionValidationRule />
            </Binding.ValidationRules>
        </Binding>
    </TextBox.Text>
</TextBox>
I mean like
 
@Mat'sMug "refactor" has no French translation, so help yourself; "repository" seems to translate to "dépôt"
 
4:13 AM
<TextBox Text={Binding Path=Name, ValidationRules=?? />
 
Binding.ValidationRules needs to be a child node - so no, you need the verbose syntax IMO
 
can't seen to be able to figure out how fit ExceptionValidationRule in this.
 
you can't
 
Okay. cuz it comes up in the suggestion <TextBox Text={Binding Path=Name, ValidationRules= until here no error
 
define "it"?
 
4:15 AM
will make it -v
I mean after the binding path if you put "," and start typing "Validat.." it gives you the validationsRules option
 
hmm
 
will change it for -v for food
 
it = Visual Sutdio
I mean AutoComplete in VS
 
IDK, IMO non-trivial bindings deserve their own full-fledged XAML block
 
fair enough. Cheers
 
@Mat'sMug, further looking into it finds this
<TextBox Text="{Binding Name, ValidatesOnExceptions=true}" />
incase if you're interested
 
makes sense I guess. thanks!
I need to dig further into UI validations in WPF
 
:) just couldn't find the right words to google it till you mentioned Verbose. Thank you
@Mat'sMug Josh Smiths is your friend if you do
 
I never got beyond half of that 1000-pager WPF brick I bought 2 years ago
 
what's it called?
 
4:23 AM
Pro WPF in C# 2010
(original string was "Passed")
 
@Mat'sMug I use two of them everyday. very useful
 
@Mat'sMug ?
 
"Passed" ...dropdowns have valid values ByRef and ByVal
 
@Mat'sMug You see how good they keep my monitors in the right level ? :P
 
4:28 AM
lol
 
@Mehrad Is it the same book?
 
Different revisions :D
You gotta keep up with WPF after all
No jokes, mine are called Programming WPF from O'Reilly wiht some sort of scared goat on the cover
 
the goat is named "Winnie Form" - has all rights to be scared ;-)
 
I have a book or two from that editor..
 
4:33 AM
@Mat'sMug Do they fit your monitors base well or ?
;)
The problem with these sort of books is that, you might not use that concept that their explaining for years. So when the time comes, you gotta pull them out, dial into that chapter and enjoy the lovely explanation
 
I read Pro C# 2010 cover to cover
I probably don't remember half of it though
but it gives a good grasp of everything the framework covers
even if you don't remember the details several years down the line, you know it's there
 
@Mat'sMug This goat might have come across the F# demon
@Mat'sMug I agree. later on you got something to start from. even very little
 
nah, I don't have any O'REILLY book
mixed it up with Manning
Dependency Injection in .NET (Mark Seemann) - a must-read :)
 
Stephen Cleary's book on Async is an O'Reilly as well I guess. fantastic book.
 
last book I read was Jon Skeet's
anyway, TTGTB
 
4:41 AM
@Mat'sMug I got this one the first time you recommended it
it's a piece of art (thanks)
have a good one
 
s/peace/piece
indeed, isn't it!
'night!
 
5:02 AM
0
Q: type/class __repr__ formatter for Python objects

Dan PattersonI am building a list of Python objects that I use fairly regularly that have a length property, (len, 'len') and I was trying to determine the best way to simplify the type/class formatter that the object uses. For example: type([]), returns "< type 'list'>" and type(collections.Counter()) retu...

 
5:40 AM
codereview.stackexchange.com — Mohit Jain 11 secs ago
 
6:01 AM
0
Q: Beginner implementation of Merge Sort JavaScript

Paulthis is my first time implementing a merge sort (just getting started with algorithms & data structures). I am looking for feedback on my code. Thanks in advance. Are there any obvious things I have done wrong? I am also worried that I have overused recursion, as both the merge & the sort func...

 
Monking
 
codereview candidates are codes which are working fine and giving expected output but you want to optimize, refactor or present it as more readable. — Mohit Jain 1 min ago
 
6:25 AM
0
Q: Maximum number that can be formed from the given digits

davidGiven a Integer, find the maximum number that can be formed from the digits. Input : 8754365 output : 8765543 Below is my solution: private static int largestNumber(int data) { int num = data; int[] times = new int[10]; while (num != 0) { if (num == 0) { break; ...

 
 
1 hour later…
7:46 AM
monking @all
 
Might be more appropriate for CodeReview than StackOverflow — Dragondraikk 23 secs ago
 
It's quiet. We should attract more Europeans to this chat.
 
8:20 AM
0
Q: Are long methods okay?

SomebodyI have a relatively long method, and I'm wondering: How readable is it? Is a method this long okay, or will it be bad later on? Here is the method (from here): public static List<Item> Spend(string[] text,List<Item> items,int currency,out int currencyLeft,string singular=null,string text...

 
@Mast meh..
Monking
there is a lot of europeans around... just... I start work late...
 
Working from home today. Writing documentation goes faster from home than on the workfloor.
 
8:52 AM
wow... this application is... 10 years old at least.
and nobody copy-pasted 10 lines of css to allow self-clearing floats
 

« first day (754 days earlier)      last day (3278 days later) »