« first day (937 days earlier)      last day (3072 days later) » 

4:00 PM
You never want to suggest specific passwords, the best you can do is measure the strength of the password and tell them how to improve it,.
 
Zak
@EBrown Why not, if you generated it (pretty) randomly with high entropy?
A world where people used (actually somewhat random) passwords they were given is much more secure than the current one
 
Guys, Nth Monitor plz
 
> And eat your vegetables.
 
Sorry I didn't mean to start a fuss with that password image
 
Zak
@Heslacher "i want this output with same format using do-while loop in java please send me ASAP" - sure, that'll be $50 first though
 
4:01 PM
@Heslacher The kid's gotta learn something. :p
 
Zak
Answering the question: 5 minutes. Deciding on a whim to do a minor review of some other aspects of the code: 2 hours. When will I learn ^^
 
@Zak The number is 32768
 
Zak
@Heslacher Pedant :p
 
@Zak Eat your vegetables
 
Zak
I think this is going to be my thing now :)
Monking @Pedants
 
4:07 PM
Please don't ask for code review on Stack Overflow. — Jubobs 44 secs ago
I'm voting to close this question as off-topic because it is about code review. — Jubobs 33 secs ago
 
> And eat your vegetables
? ..lol
 
@Heslacher LOL
 
@TopinFrassi What I'm trying to say in my comment is that your premise: "Log in" the user, may not be true from what I know of similar framework and GetUser really either get the user from the session if you already have it or get the user from the db
 
@Duga I'm not touching that one. Anyone want to have a go at it?
 
4:08 PM
Snap, I can't see deleted questions any more. I'll miss that.
 
@TopinFrassi Same here.
 
@Heslacher I saw it on the main site, which brought me here :)
 
ok
 
@Marc-Andre Aahh that's make more sense! :p I feel like the method does two distinct things. Don't you think?
@Mat'sMug Well, I was on a speech about working in life to be a good person and it made me think of my mother. So I added "And eat your vegetables" at the end
 
that was the comment of the day :)
 
4:10 PM
@EBrown I felt important being able to see them ahah. Only 5k rep to go!! lol..
@Mat'sMug Yeah, victory!
 
@TopinFrassi Well It check the session to see if the user object from the db (not the Principal) if not then query it. I do not consider this two things though.
 
Is it 20K now to view deleted && vote to delete?
 
Zak
@Mat'sMug If I had a star left to give, it would definitely go to it.
 
Hello.
And wow, unexpected accept:
9
A: Finding divisors of a number

TheCoffeeCupThis code could do with some editing... First of all is the spacing. It is absolutely horrible (we will fix that after the edits). Also, the naming is horrible. Scanner x could be scanner and y could be num. As for z, it is completely unnecessary: for (i = 2; i < y; i++) { long z = y % i;...

 
4:12 PM
Ah 10K, not too bad :)
 
I wrote this answer a long time ago, and there was already an accepted answer at that time.
The user comes back and accepts my answer :)
 
@TopinFrassi The flaw thing is, he don't need to verify that user==null since this is a small implementation details. He should check that getUser after a logOut should not return a user since you're not logged in anymore
 
@Mat'sMug IsNot or Not ... Is?
 
@EBrown was
 
I need to standardize all these and I'm thinking IsNot Nothing.
 
4:13 PM
 
@Marc-Andre That! That's the flaw. You should tell it in your answer (If you didn't do it already). That's the problem I think
 
IsNot is not a keyword AFAIK. But I don't know much VB.NET
 
@Mat'sMug It is a keyword.
 
of course, VB needed that
 
@Phrancis Yeah, it's not that bad. But I took 2 years to get 5k ahah.
 
4:13 PM
@TopinFrassi It's already covered in codereview.stackexchange.com/a/112054/28156
 
Effectively: Not a Is b is the same as a IsNot b.
It's really only useful on Nothing though.
 
Definitely reads better... Not a Is b is complete gibberish to me
 
good to know, I'm going to have to brush up my VB.NET.. I'm porting some VB6 code for Rubberduck
 
200 has easily enough for Populist, if the accepted answer gets one more: codereview.stackexchange.com/q/111932/34073
 
4:14 PM
@Heslacher Not applicable.
 
Zak
Also, while you're all here, It's been 24 hours and nobody upvoted my answer yet :'(
 
I don't mean IsNothing, I mean Not ... Is Nothing or ... IsNot Nothing.
 
Well, it seems it's answer pimping time
(I have nothing to pimp. lol)
 
@EBrown you know, foo is easier to read than ... ;-)
 
Neither do I. I have a new question that I feel will be zombified, though.
 
4:16 PM
wait, there's an IsNothing on top of that??
 
@Hosch250 You mean my answer?
 
Sorry guys. I'm still relatively new to StackOverflow, I didn't know that you didn't do code review here. I'll move the question. — Christopher Dumas 47 secs ago
 
@Mat'sMug Yeah, but that's a method.
 
Whitespace is actually much easier than it looks, if anyone wants to try it.
 
IsNothing(...).
 
4:17 PM
oh yeah, I use that in SSRS
damn I hate VB
4
 
@Hosch250 I get 10 rep, 200 gets a gold badge; seems fair to me.
 
@TheCoffeeCup Nobody is interested, though.
 
Why is this code broke again?
It worked Wednesday.
 
@Hosch250 I have 11 upvotes on there now.
 
@Hosch250 Interested in what?
 
4:19 PM
Thanks, Santa.
 
\[([^\[\.\,]*?)\.?([^\[\,\.\]]*)\]
I don't know how a regex is supposed to be legible without regex101
 
Regex isn't supposed to be readable.
It's supposed to be functional.
(For some values of functional.)
 
Zak
Woo. Halfway to my first mortarboard today :)
2
 
@Zak Same here :)
 
Zak
Also Woo, just hit 1k!
2
 
4:22 PM
1
Q: Is this Erlang code idiomatic?

Christopher DumasI'm doing a comparison of Erlang, Haskell, Elixir and ES6, and I'm less farmiliar with Erlang and Elixir, but I want to represent all of these languages fairly, so is this good Erlang code? -module(mapreduce). -export([map_reduce/1]). add_to_key(KV, Sum) -> {Key, Value} = KV, ...

-2
Q: Process won't start in ASP.NET C#

Joshua CazaresSo, I have a simple screen that registers the saves made in various text files (this is what I call "escenario". I can haveseveral escenarios for the important changes made to the files, and later on, if I want to return to a past escenario, I just load the files I saved. That works great, but my...

 
Every part of the code is supposed to be readable
 
codereview.stackexchange.com/questions/112058/… -> Would this question be a good candidate to move to SO ?
 
@Zak Congrats!
 
Wut, got a random upvote today.
 
I should write my own regex.
 
4:23 PM
@EBrown I get random upvotes everyday.
 
@Hosch250 with blackjack and hookers
 
@TheCoffeeCup I got one that was completely unexpected.
 
Well I got one that was more unexpected than yours!
 
@Marc-Andre maybe, I am not that used to the scope of SO
 
4:24 PM
@EBrown Oh.
 
Something like {0-9}{a-z}, or something.
Or {2-5}{A-F}
 
@Marc-Andre problem solved, deleted by op
 
Wow, more upvotes for me...
 
@Heslacher Me neither and I'm used to close for code broken, but now that we have a migration path I was just wondering if I need to ask myself more question about the viability of this option
 
@TheCoffeeCup Must be Friday :)
 
4:25 PM
I miss being able to see deleted question.
 
Nov 18 at 4:14, by Mat's Mug
broken code ~> SO isn't and shouldn't be an automatism
 
@Marc-Andre Same...
 
@Marc-Andre Get 10k.
 
I want 10K...
 
@Hosch250 I reach 5k today, I'm on my way
 
4:25 PM
Who doesn't. We're talking about dollars right?
 
Why are there no eligible items for this coupon? All of these items are eligible...
 
@Marc-Andre I reached 5k today too :D
 
@Marc-Andre Should I post a few images ;-)
 
@TopinFrassi Zim dollars.
 
This is why I hate VB.
Debugging is a <insert curse word here>.
 
4:26 PM
I got 4.5K today... I'm lonely.
 
Did they change the item types on me?
 
@TopinFrassi I know you're my new target that I need to be in front of :P
 
@TheCoffeeCup That's kinda good
@Marc-Andre At the moment you have 2 rep points over me! :p That's a competition I shouldn't start otherwise I'll be on CR all. day. long.
 
Now all-of-a-sudden it works.
 
@TheCoffeeCup I have a feeling that is the record. How many bounties did it take?
 
4:27 PM
@CaptainObvious had been asked on SO 16 hours ago
 
@Hosch250 TS
'Cause I got no more stars
Damn SHOUTY_SNAKE_CASE starwall
 
> DID_I_MISS_A_SHOUTY_SNAKE_FEST?
 
Zak
@TopinFrassi You mean you're not already?
 
@TopinFrassi Well before I got that last up-vote you were higher than me :P We're at the end of the second page of all user for rep. I need to stay on that one in case it's the limit for sweet sweet stuff from Stack Exchange!
 
Zak
@Phrancis YES!
@Marc-Andre I wouldn't hold your breath
The official word is at least 6-8 weeks
 
4:29 PM
@Zak Ehm. Well I am when I work. :p
@Marc-Andre Exactly! I think if we can reach 6k we should be pretty safe
 
Zak
@Marc-Andre And, in essence "Not before the design backlog is cleared", which could easily take 6-8 months
 
@Zak 6-8 LIGHT YEARS!!! (Travelling at a speed of 476.4km/hour)
 
@TopinFrassi That is a distance, not a time.
 
How did this code ever work?
 
And a light year only takes the same time as a non-light year.
 
4:32 PM
@TopinFrassi Well I would not :P and I know I have time, just since my past activity on Code Review I need to focus a bit more. And I need to be honest I really like to answer questions and discuss best-practice about code :D
 
@Hosch250 Solved. :p
 
Now my total is 0? Wtf.
Aha, much better.
 
Zak
@TheCoffeeCup Has that mortarboard materialised yet?
 
@Zak Did you just go spam upvotes on his stuff? If so it'll probably get rolled back.
 
Zak
@EBrown I never spam upvotes. In a case like this, where I feel like giving someone a rep boost, I'll take a few of their most recent questions/answers, then go through them like I would any other question. Read it, UV if I like it, read the answers, UV them if I like them. Rinse and Repeat
 
4:36 PM
@Zak It will still likely get rolled back.
 
Zak
Maybe.
 
Often times if one person does several upvotes (in a short time) on another (single) person's stuff, it becomes a candidate for rollbacks.
 
@EBrown not if he did it the way he described
 
I would imagine you'd need to do at least 10 upvotes for it to be viewed suspiciously.
 
Zak
@EBrown Specifically, IIRC, big triggers are: upvoting shortly after getting to the page (like, seconds after). Upvoting the same person consecutively.
 
4:38 PM
@Marc-Andre I like it too! But when I get home I rarely come here unless I have a question to post!
 
I once got 170 rep in 40 minutes that didn't get rolled back.
 
@Hosch250 That's a good point.. Ahah. Well, no light speed for me today
 
Zak
Taking time to actually read the questions/answers and not just upvoting the same person should be enough not to get rolled back.
 
We could make a test. You guys should go upvote all my answers until I get 200 rep today. You know, just to see if the theory works..
 
Co-ordinating multiple people will definitely get noticed :P
 
4:41 PM
@SuperBiasedMan Well then you can do it alone. :p
 
@TopinFrassi The SHOUTY got to HNQ 3thrd place ;-)
 
You know, just to test..
 
Zak
@SuperBiasedMan You say that, but answer pimping would suggest even that doesn't get rolled back.
 
@Heslacher Damn, that's.... Terrible. Ahahah. At first I wanted to check how streams work. Then I saw that question, though I should "rag-to-rich" it. Then I saw @Zak comment about shouty snake case and decided to adapt my question to that comment and boom. HNQ
 
@Zak True. I just meant it's more of a red flag.
 
Zak
4:45 PM
I think my single-handedly upvoting all-but-one of the answers here has suddenly put it on the HNQ list :)
 
@Zak I don't get how such a question can generate SO MANY VOTES.
 
Just noticed that 2 of my top 5 answers aren't in Python any more.
For comparison, only 3 of my 200+ answers aren't in Python.
 
@Hosch250 That's what I was looking at right now :p
@Phrancis lol
Like, that question :
112
Q: Calculating entropy of a string

Jeff AtwoodWe're calculating entropy of a string a few places in Stack Overflow as a signifier of low quality. I whipped up this simple method which counts unique characters in a string, but it is quite literally the first thing that popped into my head. It's the "dumbest thing that works". /// <summary> ...

That question wouldn't have 112 upvotes if it wasn't from Jeff :p
 
4:49 PM
Well, it first got votes for being from Jeff, then got more because it scored so high.
 
True
 
and then... Winterbash secret hat.
 
TTGH have a nice weekend and don't forget to eat your vegetables.
 
See ya!
 
laytah!
 
4:51 PM
Later!
 
Oh, I was going to do some work today, at one point...
6
 
I totally hope that sometime in the next 30 years I get a badge for creating
 
Was somebody pimping a question? I'm suddenly +50 on an old A.
 
yeah
 
Oh, drat.
 
4:55 PM
@Hosch250 except could be misused as a meta tag and.. lol I guess that "drat" was for what I was going to say
 
Hmm. Did someone rename it?
The tag is now.
 
as on SO
 
Now, do I still get the credit for making it, or no?
It has my text and the info is recorded as being created by me.
 
unfortunately I don't think so.
 
:(
 
4:57 PM
 
Is it appropriate to post a question that is literally one active line of code?
 
@EBrown depends
 
(With class and method definitions it's a whopping 5 lines.)
You know what, I'm not even going to bother.
 
You really should ask this on CodeReview.SE. — nouney 58 secs ago
 
I have a better question to ask for today.
 
5:00 PM
@EBrown I usually stick such questions in the chat room.
 
public static T Eval<T>(IDataItemContainer container, string property)
{
    return (T)DataBinder.Eval(container.DataItem, property);
}
That's literally what I was going to ask about.
If there was a better way to do that.
 
Why are you passing container in when you only use container.DataItem?
Why not pass container.DataItem directly?
 
To keep the UI code short.
 
Ah.
 
So that it can just be called as Binder.Eval<string>(Container, "Name").
Since it's UI code I wanted to shrink it up a bit.
I could make it an extension method on IDataItemContainer itself, I suppose.
 
5:03 PM
But, you also want your UI fast, and copying/passing the whole container will be more expense.
 
I've not seen any performance impacts from it yet.
 
OK.
 
Even with a lot of this method being used.
 
Looks pretty good to me. I suppose DataBinder is a public variable in the class?
 
No, DataBinder is a class.
 
5:05 PM
possible answer invalidation by Ragnar on question by Ragnar: codereview.stackexchange.com/posts/111539/revisions
 
Static class?
 
In System.Web.UI.
 
Oh, OK.
 
I have no idea, but Eval is a static method within it.
 
@EBrown don't. dare.
 
5:05 PM
If you can call the class without an instance, it is probably static.
Looks pretty good to me.
 
@Mat'sMug Don't dare what?
 
Eval
:/
 
Why?
 
because I'm failing at my joke right now
 
In Python/Ruby/others, eval takes a code string and runs it as code.
 
5:07 PM
Eval = Evil
 
This isn't Python, Ruby or PHP.
Eval takes a string, and returns whatever the value of that property is.
 
It is very dangerous because a user could pass malicious code in.
It could probably use a better name than Eval, but it doesn't sound like anything is wrong the way you are using it.
 
@Duga Rolled back.
 
I didn't come up with the name Eval. :P
 
5:09 PM
@EBrown Haven't you heard of the Oxford comma?
 
In English language punctuation, a serial comma or series comma (also called Oxford comma and Harvard comma) is a comma placed immediately before the coordinating conjunction (usually and, or, or nor) in a series of three or more terms. For example, a list of three countries might be punctuated either as "France, Italy, and Spain" (with the serial comma), or as "France, Italy and Spain" (without the serial comma). Opinions among writers and editors differ on whether to use the serial comma. In American English, a majority of style guides mandate use of the serial comma, including APA style, The...
 
Are you going to invite the strippers, Obama and Putin, over, or the strippers, Obama, and Putin over?
 
lol
 
(Paraphrased from a joke I saw once.)
 
Why is my Google Voice not working?
 
5:10 PM
Can't I invite them all?
 
@SuperBiasedMan Only if you use the Oxford comma.
 
someone missed the joke
 
The Oxford comma is illegal in many other languages though.
 
@Mast yeah. in some countries it gets you arrested.
3
 
If I was a teacher, my students would have points docked for not using it.
 
5:11 PM
Really @Hosch250?
I didn't know it was that important.
 
Argument for:
> Use of the comma is consistent with conventional practice.[11]
Argument against:
> Use of the comma is inconsistent with conventional practice.[16]
 
lol
 
Really. How would I know whether just Obama and Putin were being invited, or if the strippers were coming too if they didn't use it?
 
because it makes the difference between inviting strippers and Obama and Putin, vs. inviting Obama and Putin the strippers.
 
Question bomb coming in.
 
5:12 PM
Q: BOOM!
 
(I hope the NSA won't get me for calling Obama a stripper.)
 
About ASP.NET BS.
 
I hope the NSA has better things to do
 
Me too.
 
Nukes! CIA! NSA! FBI! Bombs all over the place!
There I fixed it.
For some values of 'fixed'.
 
5:13 PM
Come on @CaptainObvious.
 
0
Q: Gathering tokens from ASP.NET routes

EBrownThis is one of the (many) utilitarian classes I have that I use with my ASP.NET sites. The basis of this one is to make gathering certain tokens that I use periodically, to make URL's more friendly. It's pretty simple, and should be quite obvious. I use it to make URL's a little more friendly. ...

 
There it is.
 
@CaptainObvious I beat you.
 
0
Q: Single Reader - Multiple Writer Waitable Lock-Free Unreliably Ordered Stack in C11

Steven Stewart-GallusThe main body of code is located at https://gitlab.com/linted/linted/blob/master/src/stack/stack.c In the code linted_error is a platform specific type for error codes. As well, as an optimization the code can use Linux futexes. linted/mem.h is just a tiny wrapper around malloc. linted/sched....

0
Q: Any GO master to see that thing? :)

Qeremyi'm totally new in go and trying to figure out this: https://github.com/qeremy/couch-go/blob/master/src/couch/util/util.go#L159 it is working as expected but still it looks weird to me. even i know that php != js != go, when i compare it to these: https://github.com/qeremy/couch/blob/master/Couc...

1
Q: Gathering tokens from ASP.NET routes

EBrownThis is one of the (many) utilitarian classes I have that I use with my ASP.NET sites. The basis of this one is to make gathering certain tokens that I use periodically, to make URL's more friendly. It's pretty simple, and should be quite obvious. I use it to make URL's a little more friendly. ...

 
@Hosch250 I didn't even realize @CaptainObvious didn't post that.
 
5:15 PM
@EBrown Bit of a nitpick, but I do default assignation on out variables at the very top of the method.
 
Hey, I don't know if it's just me, but it feels like the main site and the chat room have been kind of laggy since the new colors have been rolled out... ?
 
@Phrancis Not here.
 
Maybe if I rebooted this PC more often than every 6-8 weeks it would perform better.
 
Eh, I reboot my computer once a month with the updates.
 
HI JAMAL!!
 
5:18 PM
@CaptainObvious // nö!
wtf is that about
 
@Hosch250 I suppose I could do that.
@Phrancis Read further.
 
        default:
            // panic?
 
If you guys ever do anything inside your PC.. wear an ESD bracelet
I got shocked about 6 times LOL
 
> You have undefined% correct for all questions
 
@Heslacher Oddly enough, I have not. I'll try asking around.
 
5:24 PM
@Phrancis That's either really good or really bad.
 
@DanPantry Didn't you unplug it?
 
@Jamal How does the job hunt go?
 
@Hosch250 I did.
Completely unplugged, in fact
 
Huh.
 
Static
 
5:25 PM
Oh, the battery, maybe.
 
Posted first answer in absolute ages.
 
And also, capacitors, although I think they are probably too small on a computer to give significant shock
 
@EBrown Okay, but the year is almost over and I'm currently only in the process for three positions, one being a seasonal position at the IRS. It seems I've had more luck going to websites randomly or hearing from recruiters, as opposed to use job-posting sites.
 
That's a bummer.
 
5:29 PM
@Jamal Does the U have a job fair thing?
My U has a job fair every spring where employers and students can meet.
 
Yes, but I haven't been back there in a while. Maybe my dad will have to bring me there next year if I don't have a car yet.
 
JKK - welcome to stack overflow. This is a website that works on a question and answer model, and it works best when people ask clear questions that have all of the information needed to answer them in the question. Please see stackoverflow.com/help/how-to-ask. Please also think about posting to codereview.stackexchange.com instead. — Andy Clifton 21 secs ago
Code Review is for improving working code provided in the question. This question is off topic on Code Review because it does not appear to be working and the code is not included in the question. — Hosch250 57 secs ago
 
Zak
It amuses me that the highest-voted CR question ever is by a user who posted the question and then never did anything else on CR ever again.
 
Hi, @JohanLarsson!
 
5:37 PM
Hola!
 
does ^ look ok for an api?
(only the formatting part)
Not sure about composite string formats like that
 
Looks pretty good. What is it for?
Why not use a struct/class to store it, though?
Like, you could have a section for the value and another for the unit.
 
Zak
alright, I've got 5 votes left today, who wants them?
If nobody steps up they'll be going to and I know how you all dislike that.
 
@Zak I could go for one or two.
 
@Hosh, yeah
Really easy to add two separate formats. Should be minutes.
Would bloat the api even more though
 
Zak
5:49 PM
@EBrown Just rolled a few questions and found that I'd already upvoted half of them :)
 
Thanks, Santa @Zak. :)
 
This seems to be a code review question. Consider posting to codereview.stackexchange.com. — Andy Clifton 17 secs ago
 
TFL
 
This looks like a code review problem. Consider posting to codereview.stackexchange.com instead. — Andy Clifton 34 secs ago
@AndyClifton the author specifically mentioned there is an error, which would make it off-topic for Code Review. Please see A guide to Code Review for Stack Overflow users for details before recommending to post there. — Phrancis 24 secs ago
@AndyClifton the author specifically mentioned there is an error, which would make it off-topic for Code Review. Please see A guide to Code Review for Stack Overflow users for details before recommending to post there. — Phrancis 7 secs ago
 
@Phrancis Do you know what a sophisticated user is?
 
5:55 PM
@Duga For real, dude, go read that page.
@Hosch250 I have not heard that term before
 
Ah.
 
Why?
 
I'm discussing the users of my database.
 
@Phrancis. Thanks. I will edit some of my other recent suggestions to post to code review as well. — Andy Clifton 20 secs ago
 
@Duga Well, it seems he understood pretty well. That's nice
 
5:57 PM
I'm trying to say that some users are likely sophisticated users in other databases, but they are unlikely to target this database.
Like, the physics professor may well be a sophisticated user of a database of physics data, but he likely won't target this database.
But 'target' doesn't seem to be the right word.
 
What are you actually trying to say? Conceptually?
 
I'm trying to say that some users are sophisticated users.
But, they are unlikely to write their custom applications for this database.
 

« first day (937 days earlier)      last day (3072 days later) »