« first day (804 days earlier)      last day (3512 days later) » 

19:00
@SimonAndréForsberg @Mat'sMug Alright, thanks!
and if all comments is 1-2-3 comments, it's best to flag them individually, too.
@jacwah 20 seconds... fencepost problem.... but it will save the mod a lot of time
@rolfl lol you're right. I'll do that from now on.
19:12
do we know any SE Employs in Denver?
@jacwah You realize there's a gold badge at 500 right?
@Mast ;-)
Do we need a separate tag for ?
It only has three questions
Good evening my friends
19:24
Monkevening
@jacwah SO has tags for 3.5 and 4.0 as well as 2.0
How do I put code inside a blockquote?
I think we should leave that tag. there is plenty inside each framework that can't be done in other frameworks
@IsmaelMiguel indent 5 or maybe 6
@IsmaelMiguel > and 1 extra space (that's 5)
19:28
@jacwah I really don't think so. But it's worth discussing on the meta.
@nhgrif I don't want to get into a discussion as I've never used it
@jacwah As people say, perhaps we should cross that bridge when we get there.
some legacy programs in my work and previous job are written in .net 2
unfortunately it is still relevant
much like ie7 was relevant until last year
0
Q: Abstracting test suite for simple performance evaluation in Java

MoreakiToday, I sat down to write a tiny performance test to quickly assess a hunch I had regarding an optimization. The resulting code eventually got rather large for my taste; thus I subsequently tried to abstract it to a degree that allowed me to keep ledgibility, ease of maintenance and extensibilit...

0
Q: Generic multi dimension grid / array class in C++

coincoinI am writing a generic C++14 multi dimensional array for computational science purpose. The "features" so far for the class tries to : store multi-dimensional grid values into a flatten array provide grid values access and flat index access from multi dim coordinates with O(1) average complexit...

19:32
C# code targeted at .net 2.0 has so many constraints, I find the tag very relevant.
@jacwah Keep it for legacy questions.
but yeah, feel free to bring it up on meta
Jeez, what a long review!
0
A: Retrieving result sets from a MySQL table

Ismael MiguelThe first thing I've noticed is that you return 2 different things: The data that the user wanted; The error information. Now, how will you distinguish between an errored query and a successful one? You can't! And that makes angels angry and cry. Return null in case of error. Your variabl...

thanks for the ted talks @Phrancis
> In conclusion: The code is broken! Fixing it is left as an exercise for you.
lol
19:34
@jacwah It is broken
I already had 90% of the review done!
@IsmaelMiguel There is nothing wrong with your review, but it's value would about double if you'd state on each 'why not just like this' WHY it's better that way.
I wasn't going to throw it away
@IsmaelMiguel holy crap that is a long review
@Mast Any specific part that requires attention?
@DanPantry I told it was a long review
I'd like to see more reasoning and less code
2
the text:code ratio is pretty low in that review
19:36
Exactly what I was trying to tell.
11
A: Returning result and error status for number type conversions

jacwahI don't like the idea of using an all-in-one struct. You will have to do more maintenance: every time you create a function that returns different values, you have to create a new struct. Further, I think the struct return value will confuse the user. Everyone is familiar with the basic types, s...

This one is pretty long...
As said, there's nothing wrong with it, but it could have been even better.
Feel free to pimp your answer, it's common practice.
Be quick though, that question could get closed any time.
I don't know what to say! :/
@jacwah All my reviews are long, even the shortest ones.
There's nothing wrong with a long review, @IsmaelMiguel
there's nothing wrong with your review, even, and I admire the dedication
@DanPantry I know, I just don't know what blah to spit on it
19:40
however I would have personally explained the reasoning behind the changes I make and avoid using as much code as is present in that review
Any thoughts on this question?
Obviously the example given below is not representative with regard to a serious functionality of performance testing. Sorry this is off-topic, only full real code is welcome here. — Caridorc 1 min ago
It's technically true, but wouldn't that invalidate all et al as well?
@Mast Why would it?
@Mast I think that question is fine although maybe a bit borderline academic
Indeed.
I don't agree with closing it.
It's borderline, but undeniably theoretical code imo
We've closed for less hypothetical than that
19:44
I don't agree with closing it either but I will let the close votes decide
@Mat'sMug how do I grab the client side ID of an ASP.NET element for the for attribute of a label?
can I just <%=txtLabel.ClientID%> ?
not my Cup<T>
6
A: String traversal program in C

Paul MartelMy answer. It's mostly redundant with the previous (better) answer by @Joey. It got my vote. It's still got a twist of it's own, so here goes. It's an annotated revision. It's still O(n) -- don't see how it could NOT be. It's more idiomatic and less redundant. It's not compiled or tested. It ...

you don't play with web stuff, @Mat'sMug?
This answer starts every sentence with "It"
Almost literally
19:48
0
Q: Numerics for a Game Theory Calculation Using Expected Utility

user423805I am trying to replicate Bruce B. de Mesquita's (BDM) results on political game theory for prediction. Based on where actors stand on issues, their capabilities, salience, BDM's method attempts to find the eventual decision point by simulating a game. He reportedly used this method with much succ...

0
Q: Asks 2 Numbers, User Guesses, Program says whether it's right or not, User continues to the next level

user78177using System; class Array { public static void Main() { string myInput; int myInt; begin: Console.BackgroundColor = ConsoleColor.White; Console.ForegroundColor = ConsoleColor.DarkMagenta; Console.Clear(); Console.Title = "Level 1: Name...

@Malachi nope
oh.... okay :) lucky you, huh?
@CaptainObvious what a lovely title
shame the same can't be said of the question @Mat'sMug
except OP needs a CR. Desperately
            default:
                Console.Clear();
                Console.WriteLine("Your input {0} is incorrect.", myInput);
                goto decide;
code has 5-6 decide: labels
19:51
goto in c#
class Array
{
    public static void Main()
obligatory
@Malachi for the record, your edit made the title a ...tag-in-title
LOL @Mat'sMug
I didn't realize we had a tag for Number-guessing-game. that is kind of ....what is the word I am looking for?
19:54
"deleted, too many people complained"
and then mat NOPES and restores it
I almost removed that tag and left game in there instead
too many cooks in the kitchen.....
He deleted it again.
and then deleted again.. dafuq
I.... am not sure what to say here.
> I'd just delete this non-sense if I could. Bye.
as you wish
19:56
That was interesting
poor soul
i've screen shotted that, that's going in my wtf album
@DanPantry Can I see?
Why do I have two tabs of Tumblr open?
@DanPantry Haha wow
20:00
I dont want to embarrass the OP but that is one of the more interesting things I've see non the SE network
I'm going to remove the link just so its burninated at his request though
he's probably just learning programming and young so i sympathise with him (or her)
woot, random upvote on SO!
6
A: How to unit test Excel VBA code

Mat's Mug Disclaimer: I own Rubberduck's GitHub repository, and I'm one of the devs involved in the project. Rubberduck is under active development. It's much more than a unit testing tool for VBA though, but it works pretty well and lets you write VBA unit tests pretty much without any boilerplate: ...

@DanPantry s/two/any
@nhgrif do I redeem myself by having multiple tabs of CR open?
Nope.
crap
s => sed?
i've seen that a lot recently but i don't know what that stands for
20:05
@DanPantry substitute
ah right ok
But it's a command in sed
what editor is that from? or 'nix command line I suppose
sed is the editor
s is the command (substitute)
20:06
Jul 9 at 20:47, by jacwah
Is s// used elsewhere than sed?
20:18
Hi
Hello, @EthanBierlein.
0
A: Cross-platform performance and statistical information script

Ethan BierleinRather than having lot's of prints, you can do something like this: print( "This will", "be printed", "on separate", "lines.", sep="\n" ) I'm not a huge fan of your naming too. Some of the names, like runsys could really use some underscores, like this: run_sys. I also don...

What can I improve there? ^^ I feel like I could do more.
Nobody? Okay.
@EthanBierlein Mixed quotes
@EthanBierlein Looks good to me
The code has mixed quotes everywhere
@EthanBierlein Does python expand variables inside quotes?
If so, check this: __version__ = "$Revision: 1"
@EthanBierlein Also, the code has a mix of print('Disk usage is:\n') and print('')
20:29
Suddenly, a janos appears
hello
new mugshot eh
you're a whole new monkey now
Yeah, I'm humming and ha-ing about a name change too
@jacwah perl and vim, off the top of my head
@SimonAndréForsberg Fencepost problem ;-)
20:34
what's that?
at 5 seconds per flag, and 5 flags, how many seconds in total?
@rolfl Not 30 at least
Hello, @SimonAndréForsberg.
An off-by-one error (OBOE), also commonly known as an OBOB (off-by-one bug), is a logic error involving the discrete equivalent of a boundary condition. It often occurs in computer programming when an iterative loop iterates one time too many or too few. This problem could arise when a programmer makes mistakes such as using "is less than or equal to" where "is less than" should have been used in a comparison or fails to take into account that a sequence starts at zero rather than one (as with array indices in many languages). This can also occur in a mathematical context. == Looping over arrays... ==
20:35
Flags at t0, t5, t10, t15, t20
@rolfl ah, I get it now. Never heard that terminology before.
the wiki link above actually goes to a sub-section...
yup, noted that
hey @Simon
so how's life as a mod?
feel the weight on your shoulders?
@IsmaelMiguel There we go, I've updated it.
20:37
@rolfl feeling lighter these days?
Why does the search box automatically convert a query for game loop to [game] [loop]?
@janos Significantly
Not helpful...
@jacwah Which search box?
@rolfl Top right on CR
20:38
@EthanBierlein He also has print('Disk usage is ', ) o.O
@jacwah Top right?
@rolfl Off-by-one
@jacwah Huh, that's not something I have seen before.
new feature added?
@rolfl Really annoying....
I wanted to read about sleep vs busy wait
anyone want to take a second look at this question to see if it is openable? OP says they fixed it in a comment ---> codereview.stackexchange.com/q/96662/18427
20:40
Not for loops..
@janos It's.... a lot of things! I am very glad that I have an awesome community behind me. I try to not do too much, and let the community handle most things.
@Malachi It looks like it works. Let me check it.
I don't know if someone is trying to test the new moderators, but I don't recall having rejected so many flags before.
@jacwah - I don't recall having seen the system do that before. It is inconsistent too, in that some tags are boxed, others are not.
I can't see anything on meta.se indicating a change either.
@rolfl That's curious
20:43
@Malachi Nope. Still broken.
@Malachi Nothing changed after it was closed
It's possible I just have never encountered it.... I tend to search in a different box normally.....
0
Q: Desktop Notifications for flags and queue items

Simon André ForsbergAfter our recent election, I got elected a moderator here on Code Review (Thanks you, community members!). One of the first things I missed among the moderator tools was desktop notfiications for when there were any flags. As no current tool existed, I figured that I just have to create one... ...

@janos I see, the comment was made afterwards, but the question wasn't edited. thank you
the last comment is disgruntled
20:45
@200_success Someone declined 2 obsolete flags I raised earlier ;-) - if it was you, then you get what you deserved ;-) The comments are obsolete, but were not deleted.
I VTD'd it
I am going to get dinged. I had 5 flags declined....
@Malachi we can be friendlier than that
Our help center clearly explains that we review working code. We have to stick to that, because it's significantly harder to review code that doesn't work. We have to be picky about that, I hope you understand. If you edit into your post the correction you did apparently locally, we'll be happy to review it and help you improve it. — janos 22 secs ago
2
0
Q: ADT Stack with a doubly circular linked list

user3683131I have managed to implement an ADTStack with a circular doubly linked list and I would like to know, whether there are things, I could have done better or I should improve... so here is my code public class QueueCircularDLL<T> implements ADTQueue<T> { private ListElement<T> head; private ListEl...

3
Q: Desktop Notifications for flags and queue items

Simon André ForsbergAfter our recent election, I got elected a moderator here on Code Review (Thanks you, community members!). One of the first things I missed among the moderator tools was desktop notfiications for when there were any flags. As no current tool existed, I figured that I just have to create one... ...

@janos Stargreed!
@rolfl do the mods see who flagged?
20:49
No, not on comments.
But, now 200 can see the flags on my profile, and find the ones declined.
can mods get the Marshal badge?
No.
aha!
Are there any numpy users here?
I believe there's ways of gaming things, to an extent.... and could be done.
but they would need to collude with other mods, if my theory is right.
20:51
@Malachi I think I leave pretty good comments (the rare occasions when I do), but I'm yet to get the Pundit badge... nudge nudge wink wink
@janos I upvoted it as well
thanks mate!
13
A: Aren't moderators eligible for the Deputy and Marshal badges too, or has it changed?

Anna LearThese flags do count towards the badges when appropriately dismissed as helpful, but moderators aren't eligible to receive either Deputy or Marshal badges according to Geoff Dalgas: The Deputy and Marshal badges are only granted to registered users - not moderators.

@CaptainObvious @SimonAndréForsberg it doesn't work for review queue :( I might have to try and make time this weekend and see if I can make it happen
@Malachi just keep your browser on the /review/desktop-notifications URL and it will notify you whenever there's a orange icon in the top right
21:03
the desktop-notifications page didn't look like yours @SimonAndréForsberg
@SimonAndréForsberg will it only work for the Moderator flags? or can I make it work for review queues?
@Malachi it should work for review queues as well
I will have to install it at home when I have a chance tonight and see what happens
@Malachi what browser are you using? what user-script tool do you use? can you show a screenshot?
it refreshes, shouldn't it popup something though, there is always something on StackOverflow
I use chrome
I just added .user before the file extension and then dropped it into the extensions
it's TTQW though
@Malachi do you see an orange indicator in the top right?
21:07
I have some running to do.
@Malachi you probably have to use Tampermonkey
I will play with it on stack overflow sometime this weekend while I am playing with Memer
later guys
good running @Malach
Just asked a qusetion in the Unix & Linux chat
It's dead compared to this one
21:19
Most chats are.
@jacwah so many weird answers on the duplicate question
I'd go with this one, for example for 5 characters:
dd if=/dev/zero count=5 bs=1 2>/dev/null | tr '\0' 1
@janos I know
@janos Yeah I got an answer in my question that was much more sensible
I don't like the answer you got. tr is better for this than sed
@janos They mentioned both, but tr seems to be the right tool for the job
oh I see now he mentioned tr too
21:26
Is dd better than using head?
I guess it's faster?
not sure if dd is better than head, but that's my gut instinct
@janos Btw, why did you set bs=1?
Is it a safe assumption to make that all URLs start with http://?
(want to make a method that accepts either a URL or local file path)
@Phrancis A URL could be a local file path like file://
OK - to clarify - A web address
21:29
bs is the block size, and normally it's not 1, typically 512, so you'll get bs * count bytes, which is not what you want
Jim...try codereview.stackexchange.com for questions regarding improving working code. Will get lots of help here if you have a real problem but this site is focused on actual problems and solutions, not on how to streamline what's already working — charlietfl 46 secs ago
@Phrancis Depends where it comes from
@janos So it overrides count?
dd is designed for reading from anything, specific number of bytes, head is designed for reading text
@jacwah no, you get bs * count bytes
so bs=5 count=1 is the same thing as bs=1 count=5
@janos Now I get it
@jacwah What other test cases do you think I should include besides http://?
21:30
@Phrancis Where does the string come from?
User input
it might be https:// too, no?
Depends on what protocols you support
Ah yes of course
But those two are the standard for WWW as far as I know
21:32
Right now just HTTP, and of course local directory
if (url.startsWith("http") {
    // use stuff specific to web to read file
} else {
    // use stuff specific to local to read file
}
21:46
@janos Is there a way to do this for multi-byte sequences?
0
Q: Print permutations in an iterative way

FihopI've written the following code to print all permutations. For example: [1,2,3] have the following permutations: [1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2], and [3,2,1]. def insert_each_position(self, nums, insert_one): res, len_of_nums = [], len(nums) for idx in range(len_of_num...

22:08
    index = Arrays.asList(arrayOfNames).indexOf("WEEKEND!");
    if (index >= 0) {
            System.out.println("Argument at index " + index +
                               " is " + arrayOfNames[index]);
    }
Call NoMoreAwfulCodeTillMonday()
Life advice: check your seat before sitting
I just sat on my freaking pizza, at 180ºC
5
ouch!
I screamed like a girl, while there was soda flying all over my keyboard :/
And the worst part? You're left with nothing but ass pizza and a sticky keyboard.
6
22:24
TS
That was evil, but TS
And you are right
@IsmaelMiguel How did you sit on your pizza? Did you mistake your table for a chair?
@SirPython I was in a rush and put the pizza in my chair, before putting in my keyboard holder
That sliding thing to put keyboards in, on desks
Then I forgot the pizza and turned off the light and sat
are you going to get another pizza to replace it?
Or new pants?
No, the supermarket is closed and I've just spent my last 2€ on it
Actually, I was wearing only boxers and it was a really quick contact
The pizza is 99.9999999999% intact
*was
22:37
well i guess it is your lucky day then
What a real piece of luck
I'm voting to close this question as off-topic because this belongs on Code Review — Machavity 37 secs ago
Sitting on a 180ºC pizza, almost dying electrocuted, almost ruined the only thing I have to eat for the next 2 days and almost ruined my keyboard and cellphone
Hi? ...
Oh, and, suggestions again?
0
A: Numerics for a game theory calculation using expected utility

Ethan BierleinFirst off, this: Q = 1.0 ; T = 1.0 Should be expanded to this: Q = 1.0 T = 1.0 And, if Q and T aren't constants, they should be renamed to q and t. Secondly, you're missing whitespace in lots of places. For example, this: def v(self,i,j,k): Should be, again, expanded to this: def v(s...

Greetings
@EthanBierlein You forgot about the mixed quotes
22:42
Those darn mixed quotes. So hard to spot sometimes, especially when you're tired as hell.
@Machavity That's not a valid close reason. Close a question if it's off topic for this site. I see you don't have a CR profile - please be careful recommending sites you don't know about. See Be careful when recommending Code Review to askersjacwah 18 secs ago
It took me 5 seconds
lol.
I only see it one place though, and that's in the run.py file.
I saw the tiny code below
It has 3 strings, 2 with single quotes and 1 with double-quotes
@IsmaelMiguel I have edited my answer. Thanks for the information.
22:44
Actually, it is 4 strings
@SirPython You're welcome. I'm glad to teach and help
@IsmaelMiguel There, I've edited the answer.
    elif eui < 0 and euj > 0 and np.abs(eui) < np.abs(euj):
        # compromise - actor j has the upper hand
         print i,j,eui,euj,'compromise', j, 'upper hand'
         xhat = (self.df_position[j]-self.df_position[i]) * np.abs(eui/euj)
         offers[i].append(xhat)
:/
Can you translate that?
Which part? That would be a long translation if I did the whole thing.
Just that elif
Wow that naming is... bleh
22:49
@Phrancis Precisely!
Or how it is spelled
@IsmaelMiguel If variable eui is less than 0 and variable euj is greater than zero and numpy.abs of eui is less than numpy.abs of euj then blah blah blah.
I usually use GNU indent to read C questions...
@EthanBierlein What's eui, euj, xhat, selfdf_position and so on?
(auto-formatter)
Try to tell me what those are by their name, like if you didn't knew python
22:51
@IsmaelMiguel Even if you do
@IsmaelMiguel No idea. The naming is so frickin horrid it's hard to even understand them with surrounding context.
@jacwah I've never heard of that! It sounds very helpful.
@EthanBierlein You should add that as an example of a bad bad naming
@SirPython Very helpful on :(
There are different style options, I like -linux
It has a really long man page
@SirPython @IsmaelMiguel Updated answer, again.
sigh
22:58
@EthanBierlein Seems fine to me now. +1
@EthanBierlein I have no idea what the function Ubi_i does, or what the it's arguments, i, j, or ri do
Spot the it's mistake
sigh faceplam
Don't worry
Nah. I gotz it.
23:02
@nhgrif Did you see what I wrote in my recent question?
It looks fine now
8
Q: Desktop Notifications for flags and queue items

Simon André ForsbergAfter our recent election, I got elected a moderator here on Code Review (Thanks you, community members!). One of the first things I missed among the moderator tools was desktop notfiications for when there were any flags. As no current tool existed, I figured that I just have to create one... ...

@Machavity The question isn't off-topic because it belongs on Code Review. It's off-topic because it doesn't have a problem statement. The question probably needs more context to be accepted at CR. — jacwah 32 secs ago
@SimonAndréForsberg How do you like being a mod?
I can't believe I'm arguing with this person...
I'm voting to close this question as off-topic because this belongs on Code Review — Machavity 29 mins ago
Not worth my time
23:09
thanks for the feedback @Barmar I also didn't know about code review which is cool and I will direct code feedback review their going forward... thx — gstlouis 26 secs ago
look at the tags on this question....lol
4
Q: Tour of Stack Exchange offices, other than NY HQ?

MalachiI really got the idea from Is it possible to go on a tour of the Stack Exchange headquarters? I live closer to Denver, is there much of an office there? What about your London offices? Can we have a sneak peak at the other offices as well?

@Malachi TS
Someone likes jokes
Shog9 likes jokes, he added those tags.
I don't like him
Wait, no, I HATE him
23:13
why is that?
I actually went ahead and tried to give those tags excerpts.
@SimonAndréForsberg updating Github windows. then I am going to check out that script!
@Malachi He was one of the many who spent over 6 hours calling me sexist
oh really?
23:23
Why U.S.A. buildings have so ugly ceilings?
@IsmaelMiguel not all of them are like that one
Because it's "modern" for some reason.
It looks like an half-assed job due to lack of enough money
@IsmaelMiguel The "unfinished ceiling" style is all over the place. For example:
That looks so awful
23:27
In that particular picture yes, but if it's done right, it can look pretty cool.
I doubt it
Meh. That's your opinion. I still like it though.
I'm not sure why @Malachi's meta question is tagged ... It's a little creepy actually...
But what can we do?
Remove it?
There. I've edited the post to remove the tag.
Cue the victory music!
23:35
Well, the edit still has to be approved.
Still, party now
woo party yay happy woo
This room needs balloons
That wasn't expected
23:40
what an interesting ....thing to walk into
where? What?
How about this:
Windows Vista!!!!!! NO!!!!
Shhhh... I can't use my normal laptop right now... Shhhh...
Use Windows XP
Or Windows 7
Or linux
23:51
bbl time to eat some pizza
@EthanBierlein just don't sit on it ;-)
2
@Mat'sMug Hi @Mat'sMug. You pinged me last night just as I was going to bed and sleep won out over my few social graces.
hey no worries
I was going to bed as well anyway :)
I don't think I've said it already: Congratulations on the election. (One of the stars on the welcome messages in TL is mine though :). cc @SimonAndréForsberg
@SimonAndréForsberg I was wondering how I got a new Twitter follower...
23:59
thanks!

« first day (804 days earlier)      last day (3512 days later) »