« first day (836 days earlier)      last day (3479 days later) » 

17:00
@Mat'sMug Later. :)
17:14
@JeroenVannevel @Duga needs an issue: github.com/Zomis/Duga/issues/new
has this one slipped?
-1
Q: Microsoft Logo Animation v2

Lubos MenusI updated my animation of the Microsoft's logo. It's available on CodePen. Overall, I am quite satisfied with it now apart from one thing. I cannot seem to figure out how to stop the animation so the logo looks correct. I tried setting the delay to 6000ms = 6s = length of the animation, but it l...

looks like a better fit for SO
Indeed.
@SimonAndréForsberg can we un-pin the.... nevermind
@SimonAndréForsberg I gave her two
http://www.commitstrip.com/en/2015/08/18/when-star-wars-park-will-be-opened/
CommitStrip - Blog relating the daily life of web agencies developers
When Star Wars park will be opened
CommitStrip
1439918576
17:34
Question coming in.
0
Q: XNA KeyboardStateManager

EBrownThis class allows for easy management of the KeyboardState of an XNA game. It provides a simple, easy-to-use API for interacting with the Keyboard and getting key-presses. As far as I can test, it works as intended. GitHub Link (for future reference) as of this version: KeyboardStateManager. ...

1
Q: XNA KeyboardStateManager

EBrownThis class allows for easy management of the KeyboardState of an XNA game. It provides a simple, easy-to-use API for interacting with the Keyboard and getting key-presses, via a few (trivial) events. As far as I can test, it works as intended. GitHub Link (for future reference) as of this vers...

            case Framework.Windows.Forms.Keys.OemSemicolon:
                return ':';
is it me, or that's a colon? what am I missing?
I don't know what you're talking about. I clearly see a semicolon in that statement
; vs :
17:39
@Mat'sMug That's with shift pressed. :P
ah
that's what I was missing :)
@Mat'sMug Yeah, it's flagged above that switch a bit.
At: if ((key & Evbpc.Framework.Windows.Forms.Keys.Shift) == Evbpc.Framework.Windows.Forms.Keys.Shift)
this is why Dutch is a superior language
we call those characters "point comma" and "double point"
Yeah, but the keyboard key name is OemSemicolon.
17:42
we don't name it after our intestines
I was debating putting the shift presses as a boolean under each case, but that seemed like a bad idea.
case Framework.Windows.Forms.Keys.OemSemicolon:
    if (shift)
        return ':';
    return ';';
Also, @Mat'sMug this file should give you a headache.
return shift ? ':' : ';';
yeah.. too much punctuation there
@Mat'sMug Yeah, plus, not all keys have shift equivalents.
I.e. NumPad0 through NumPad9.
use 2 dicts
^^ that
@JeroenVannevel which begs the question... is switch a code smell?
17:54
in this scenario? Or in general?
say, whenever you're not switching over an enum?
@Mat'sMug But this is switching over an enum. :)
Anyway, TTGTL.
...in general then
mmm well, depends
General assignment things? Maybe. But sometimes you need to perform actions
a Dictionary<T, Action> seems not easy to use
Yes they can as per your answer, however I didn't want to overdo the code reworking, that answer is more suited for CodeReview than StackOverflow. — Emz 18 secs ago
17:57
@JeroenVannevel huh? looks like a strategy-pattern-in-a-box, no?
Wait, switch is code smell?
@nhgrif loooooooong switch blocks
not making a statement, just trying to have a discussion ;-)
How long? I can show you a 800linr switch.
that would be a yuck one
Writing long blocks of code is bad. switch is not a code smell.
18:01
at which point should one consider swapping a switch block for something else?
when it makes the method longer than it should be?
It's not the switch that's the problem.
18:19
Flagged this question for moving to 'code review' or 'programming'. — Henri Schellingerhout 31 secs ago
Might be better to post this over on Code Review (since it's already working and what not) — tymeJV 12 secs ago
@SimonAndréForsberg: those are the two only failed requests according to my hook history
@JeroenVannevel you shouldn't be looking for failed requests though. as the chat message was posted, there's nothing wrong with the link between Github and Duga, hence it won't show as failed message.
oooh. I see, those messages are sent from AppVeyor
I'm not sure if I can find a sent-history at AppVeyor though
18:34
they're sent from AppVeyor to Github, and from Github to Duga. Duga listens to the build event sent by github, so you can find it on the Github history.
How can I see the exact time those chat messages are sent?
stupid chat hides most timestamps
you can see the exact minute, not exact second though
we need more questions with this level of attention
4
Q: Project Euler, Challenge #5 in Swift

Hassan AlthafThe problem: 2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20? The solution in Swift: import Foundation var number = 2520 var fou...

@SimonAndréForsberg: I gave you the closest build event to that period in time
I'm not sure if that's the one though
There's nothing at 18:09 yesterday
ooooh
I'm 2 hours behind on Github for some reason
@JeroenVannevel UTC?
18:42
I'm GMT + 1 -- that should only be 1 hour behind GMT (which is UTC)
I'm always 1 hour ahead of the UK
Never more
UK isn't on GMT right now.
They're on BST.
Which is GMT/UTC+1.
Daylight savings time.
They're at 19:43 right now. It's 20:43 in Belgium
Right.
18:44
Whatever it's called, we're always 1 hour ahead
And it'd be 18:43 UTC.
Because UTC=GMT.
UTC doesn't use DST, you do.
And UK isn't on GMT right now.
UK is on British Summer Time.
BST.
That is so tricky
GMT is UTC+0. BST is UTC+1.
Belgium is on Central European Summer Time, which is UTC+2.
18:45
And you're on CEST, not on CET now - Central European (Summer) Time
@SimonAndréForsberg: I'll just edit this to have the HTTP 500 and create a new one for the strange message
Copying the bigass JSONs will give me arthritis
0
Q: Shoul I create static methods and throw exception at my code?

Eugene G. Ustimenkoguys and ladies. I need your help with code review. I have the following code: public final class PropertyFileLoader { private static final Logger logger = LoggerFactory.getLogger(PropertyFileLoader.class); private final String propertyFileName; public PropertyFileLoader (String propertyFile...

@JeroenVannevel Also note that you have provided JSON data for "state": "pending", but the chat message refers to state: success
18:49
did I mess it up again?
a little. it is definitely a step in the right direction though :)
I don't know if the JSON differs, but to be on the safe side, having the state: success would be helpful
but I'm looking at the state:success
oh, you had posted another comment on the issue
yeah, you can delete the first one
that's outdated
@Mat'sMug But what something else? :)
18:53
Now, @JeroenVannevel, can you look at that JSON data and tell me how I should get the branch name?
"branches": [

],
^^ not very helpful. Thanks, AppVeyor...
2/10 no magic in code
This is a message at 16:28. Which means 14:28 in Github time
and reading the message provided by AppVeyor, I can understand why that doesn't provide a link.
in VSDiagnostics, 2 hours ago, by Duga
[Vannevelj/VSDiagnostics] [build]() for commit 5f4c34cc on ???: AppVeyor was unable to build non-mergeable pull request
yet, there's nothing today between 13:27 and 17:07
> AppVeyor was unable to build non-mergeable pull request
only question is how to handle that on Duga. What to write?
if(branches.Any())
Maybe it was a branch that got deleted on Github while AppVeyor pulls it in? Or some related scenario
18:57
for the ??? branch, yes, I already have a check there that uses ??? as a default branch if no other is found.
I honestly can't find this message in my github hook log
wait
I found it?
18:28:36 today
but the message says 04:27 PM in SE
So now Github is.. 2 hours ahead of me? Instead of the other way around?
@JeroenVannevel that link only works for you
I added you as collaborator
Can't you view it?
nope. Need full permissions for webhook settings, which can't be given
19:02
oh well, issue is there in a minute
what happened?
Duga es un poco loca, cabron
I am no longer contributing to CR. — cimmanon 17 mins ago
> Duga is a bit crazy, asshole
@JeroenVannevel Huh. Google Translate translates that as:
Hmm.
See, this is why I'm only a beginner at spanish
I thought it meant "buddy"
19:08
translate: Duga es un poco loca, cabron
(from Spanish) Duga is a little crazy, bastard
el amigo - friend, buddy, chum, cobber, comrade
el compañero - partner, companion, mate, fellow, buddy, comrade
el cúmbila - pal, buddy
el mano - hand, deal, mitt, carpus, handball, buddy
> (informal, Mexico, Costa Rica) mate, dude (term of endearment between friends)
I knew it
so in Mexico and Costa Rica it means that...
Could also mean pimp, coward, asshole, bastard, jackass, or cuckold. But you can assume I meant the friendly interpretation
0
Q: Manually parsing http response header

DexterDue to some constraints I had to manually parse an HTTP response coming out of a stream. I could not use buffered reader or scanner because the perform buffering and end up buffering bytes beyond the response header itself. I'll be hitting my AWS S3 and only expect 200 or 206 status response. ...

huh
I just got the strangest spam mail
> We wish to notify you that the UNITED NATIONS has agreed
to compensate some selected individuals. Following the economic recovery process. Read the attached document carefully
regarding your Compensation draft from the United Nation Organization. Best Regards, Dato Ramlan Ibrahim (Malaysian UN Ambassador)
19:14
@EthanBierlein Didn't know the UN compensated people, TIL.
@EthanBierlein you aren't 18 and can't be financially responsible in certain situations, you should go for it....
@00robinette well, if you're forced not to use plugins at all then it's just implementing it by yourself - like this for example: codereview.stackexchange.com/questions/58507 ; I took 5 mins to gather it into a bin - jsbin.com/varufu/edit?html,js,outputNicolaeS 50 secs ago
19:32
Yeah, I'm getting this one when it's available
Pre-ordered it from Amazon US
0
Q: Are AVL trees equal?

Maksim DmitrievI was inspired by this answer and decided to implement an AVL tree with the methods equals and hashCode as if I was asked to do that at a job interview. This is my code on GitHub. In addition to the solution itself, I wrote tests for all the possible cases. If I missed something, or if my solut...

It's supposed to be released September 25 this year
so I hope I receive it before I move to Spain, but it'll be close
@JeroenVannevel You're moving to Spain?
Ah, you weren't here. I've got an internship in Barcelona for a few months
2
Oh, Congratulations! :)
19:40
Cheers!
I might be visiting Valencia, Spain during new year's.
Congratulations @JeroenVannevel
@JeroenVannevel Congrats!
I somehow missed that aswell
@JeroenVannevel Being it's an Eric Lippert book, I may have to order it.
@EBrown Don't be silly. You're not an Eric Lippert book
How do you people miss this?! It was the biggest news of the past year
19:45
Best English I heard today
> I'll leave in an hour or anderhalf
Spoken as "enderhelf"
@JeroenVannevel Satisfied?
@Heslacher now we just have to break into the top 8
@EBrown Welcome to CommentReview!
Intent is much clearer now
@JeroenVannevel I'm glad you've satisfied yourself being pedantic today.
@Malachi want to battle ?
19:48
Well, the world would be quite awkward if we were all Eric Lippert books
lol. I am too ADHD to race at a constant pace....
but sounds like fun
@Malachi Racing at a speed of rand()?
and I am behind by a little more than 500 rep points
no exactly 500 rep points
@Heslacher There's a question out there waiting for you to answer and get another boost over Malachi. :)
19:51
I am drinking my after work beer. No review before tomorrow.
3
@JeroenVannevel past year? is it that old news?
No, it's 1 month old
It's just so important, nothing else in the past year comes close
if it's 1 month old, then it might just be my memory that is failing me. I've only been gone for two weeks.
I thought you left before I did?
I left 7 weeks ago and came back 2 weeks ago
I left at 1st of August.
19:57
huh. Well, I came back the 3rd
I only left a quick note here though -- I was still in Argentina when I had the interview
Last time I was away was in April for about a week, and at the end of May very briefly (3 days).
@JeroenVannevel Good luck.
Cheers
It's not 100% certain yet though
I have to pass my two exams first
Today was the first, friday is the second
Good luck!
@EBrown why are you using a single pipe instead of a double pipe in the last if statements assigning a value to kv? what is the purpose of checking the second value if the first is already true?
20:03
@Malachi Which statement?
This one: kv = kv | (Framework.Windows.Forms.Keys)Enum.Parse(typeof(Framework.Windows.Forms.Keys), key.ToString());?
If so, it's because kv is not a boolean, and kv || (Framework.Windows.Forms.Keys)Enum.Parse(typeof(Framework.Windows.Forms.Keys), key.ToString()) would evaluate to false or true instead of doing a bitwise-or. (Or not even compile, as is this case.)
The single pipe in this case is a bitwise-or symbol.
So, instead of evaluating to true or false (or failing to compile), it does a literal bitwise combination on the two values.
I edited into my answer, it was the last set of double if statements.
Yeah, so if I were to use || there, it would not compile.
        if (key == Microsoft.Xna.Framework.Input.Keys.LeftShift)
            kv = Framework.Windows.Forms.Keys.LShiftKey | Framework.Windows.Forms.Keys.Shift;
        if (key == Microsoft.Xna.Framework.Input.Keys.RightShift)
            kv = Framework.Windows.Forms.Keys.RShiftKey | Framework.Windows.Forms.Keys.Shift;
that is a bitwise manipulation as well?
Yeah.
It says, "take LShiftKey and Shift, perform a bitwise or on them, and save the value to kv."
Likewise for the RShiftKey.
It's a pretty handy technique, I use it a lot.
You could also always make the "dead code is dead" comment, about the commented-out blocks of code I have. :)
2
I keep forgetting to delete them, and I don't remember why they are still there in the first place.
I do the same thing, I keep getting rid of code when I get things to work the way I want.
what are you developing your XNA on?
20:14
Well I forgot to delete all those commented code.
@Malachi Not sure I understand the question.
are you running Windows 8 or 10? and are you working with VS13?
Windows 7, 8, 8.1 and 10 compatible, for sure.
And VS2013.
Though that is only for the main core-framework portion.
well I need to get my Space game going again
I have to get the project that uses this out the damn door already.
I have an arcade style, and I was trying to set up XNA on my 8.1 for a while, but couldn't get it working yet
windows phone app?
20:20
Nah, Windows Desktop.
if I can find the program I will make a copy available somehow for you guys here. it has some bugs but it is pretty cool so far. I just need to make a todo list and get on it
0
Q: Refer to other cells besides the one in the Cells.Find

mrbungleI have the following that loops through a range. When the initial value is found on the second sheet it goes to the cell to be able to compare some date values on the same row. Once the comparison is complete another value from the same row is copied to be placed back onto the first sheet. I b...

What's best practice with GIT: many micro-commits (each time a small edit is made, push), or few large-commits (only push cumulatively substantial edits)?
@EBrown It depends.
When I'm busy, I'll commit/push each time I finish a feature - the framework, every few working tests...
Yeah, something tells me I'll find a good sweet spot as I continue on.
20:26
When I'm not busy, I'll sometimes get a whole feature done without pushing until the end (usually not more than an hour or two of work).
Some of my "features" are days-worth of work, though. Mostly because I only get a few minutes each day to devote to it.
That is when I commit a bunch.
At that short of time, I'll commit every minute or so, or at least when I step away.
That's what I'm thinking I'll be doing during the week.
But always at a point where I finish something - one method, commit...
And then on the weekend I can commit larger chunks.
Yeah, I'm not going to commit partially-finished features.
No compilation-breaking commits, that is.
20:30
@EBrown are you building the XNA Framework?
@Malachi I'm building a framework to wrap the XNA framework, that is.
So, yes?
There is Amazon Smile, I wonder why Google doesn't make Google Grin.
Microsoft Smirk?
LOL, I just thought of that one, but I didn't think it sounded very good.
Sounds better than Amazon Smile.
20:34
The Apple Cackle
That's worthy of a star right there.
I was thinking "Apple be Gracious? Doesn't sound right."
@EBrown I am just trying to make it so that I can use the framework on my machine at home and continue the production of my game.
what is the testing before beta, alpha?
@Malachi Ah, the GitHub README.md has that info. :)
@Malachi What testing?
It works with the XNA 4.0 Refresh, that's how I have it setup.
@Malachi pre-alpha -> alpha -> beta -> release
my machine won't let me use HyperV so I have to be careful setting up XNA on it. I might have to upgrade my old laptop
20:37
where beta is sometimes split up in a limited release version ("private") and a open one ("public")
I might make you all my Pre-Alpha Testers....lol
@Malachi If it's any good, many of us won't mind.
3
it's a good start....
@Malachi I'm down, I'll probably do the same if you guys won't mind when I get done with this project (months).
Shameless pimping of answers by Janos and Malachi: codereview.stackexchange.com/questions/101303/…
@Malachi [] != {}
In other words, brackets aren't braces.
And janos should use var. backs off and watches holy war
20:51
@Hosch250 Add an answer explaining such. :)
No thanks.
@Hosch250 fixed that.
@Hosch250 It's free rep-points man. :P
You'll get at least one upvote (from me).
I only downvote answers that are substantially lacking in substance.
"Your code is good."
Thanks, but NAA.
That would be substantially lacking in my view point.
Why?
        List<Framework.Windows.Forms.Keys> pressedKeys = GetPressedKeys(_kNow);
        List<Framework.Windows.Forms.Keys> prevPressedKeys = GetPressedKeys(_kPrev);

        List<Framework.Windows.Forms.Keys> result = new List<Framework.Windows.Forms.Keys>();
Would be more readable with var.
        var pressedKeys = GetPressedKeys(_kNow);
        var prevPressedKeys = GetPressedKeys(_kPrev);

        var result = new List<Framework.Windows.Forms.Keys>();
That's not lacking in substance at all.
You could also add a comment about DateTime.Now vs. DateTime.UtcNow.
20:54
better hurry I will steal it and put it in my review....lol jk
Go ahead and post an answer yourself.
And something about my "magic numbers" with new TimeSpan(0, 0, 0, 0, 250) and new TimeSpan(0, 0, 0, 0, 35).
> You've earned the ".net" tag badge.
There's three points right there, that I didn't even notice until after I posted it.
You found them. I didn't.
20:55
@EBrown but first, let me take a selfie
@Malachi silver?
@Hosch250 Yeah, but it can't hurt to point them out. It's free rep, man.
@Vogel612 eh bronze
I usually like to work for my rep a bit harder than saying "Use var"
hmm... I should start actively going for my java gold badge..
20:56
I should start working toward C# silver again.
@Hosch250 Yeah, but there's "use var, don't use magic numbers, use DateTime.UtcNow instead of DateTime.Now."
I also am going for my C# gold.
yea I'm halfway there by score, but not by answers..
If you post all three of those in an answer, I'll upvote you.
I'm not sure I'm comfortable answering my own question...it seems arrogant.
20:57
Why do you explicitly name the namespace?
Nope, selfies are encouraged.
Framework.Windows.Forms.Keys everywhere
As long as you have something reasonable to say.
@JeroenVannevel Because Keys overlaps with Microsoft.Xna.Framework.Input.Keys and Framework.Windows.Forms.Keys.
2
using Keys = Framework.Windows.Forms.Keys;, or something like that.
20:58
I'd consider a namespace alias then
that's a lot to constantly repeat
@Hosch250 Can I alias Keys directly to the enum?
using TextBox = System.Windows.Controls.TextBox;
That is an example from one of my repos.
Just stick it at the top of the file.
that is where I am at
0
A: Summing user input

EdeniaSmall programs as such should be relatively honored, since they are a lot used as a practical examples, usually for beginners. So an appropriate review follows to be a Nobel improvement attempt of this particular variation. Name of program The name of a program like that must be exclusively i...

@Malachi vb.net
21:01
@Hosch250 yeah I am close to that, but not really excited about it.... lol I should get it just so I can say I have it....lol
how do I disable buttons on a specific row of a gridview?
@Vogel612 nice
I just ignored my first user.
Guess who.
@Hosch250 Me? :)
21:04
0
Q: Stock picker that tells when to buy and when to sell

scoboThe task of this project was to create a method that takes in an array of stock prices, one for each hypothetical day. From there, the method should return the best day to buy and the best day to sell the stock to maximize return. A few ground rules: Stocks need to be bought before they can ...

I have lots of competition with @Mat'sMug and @RubberDuck. they are really good. much better than me. but they also code in VBA on the regular too. I like my C#.
@CaptainObvious A candidate for if ever there was one.
makes my head hurt trying to read VB
@JeroenVannevel @Hosch250 I'm trying that alias idea out.
I never realized you could use it like that.
Well then..
21:07
You should post an answer on my question, you'll get an upvote. :)
The system thinks that 5 upvotes per answer is a good ratio.
Please have a look at CodeReviewSid 9 secs ago
Damn, that alias is nice.
17kB to 14.25kB from just the Keys alias and using var.
I thought you could only alias namespaces.
Today I learned, I suppose.
21:14
That isn't a whole lot...
@Hosch250 Nah, but it went down another .25kB. Down to 14kB from 17kB, which seems significant.
It's 82.3% the size of the original.
It's also much more readable.
Once you get into the GB range, it sure will be smaller.
Well...yeah. Lol
In a couple of short months, I've almost surpassed my SO rep on CR.
Anyway, TTGH. Thanks for the help, @all! I greatly appreciate it! :)
@RubberDuck @Mat'sMug what do you think of this --> codereview.stackexchange.com/a/101319/18427
21:33
Exactly what u said !!!! Same Issue...........I will put it up on CodeReview....thanks buddy — Neil 44 secs ago
21:46
0
Q: Displaying all permutations of a String in C++ not working for string length above 7

NeilSo I am using this code to display all the permutations of a given input string. But this code is not working for strings above length 7. Any advice/solution will be very helpful. #include<iostream> using namespace std; /* Function to swap two characters */ void swap(char& a, char& b) { char t...

@Malachi that bool check should be a Boolean function. That would solve the issue.
@CaptainObvious Off-topic: broken code.
@RubberDuck the last thing that I mentioned in my review? it is a boolean function
Module MyExtensions
    <Extension()>
    Public Function IsAllocated(ByVal input As System.Array) As Boolean
        Return Not ((input Is Nothing) OrElse (input.Length = 0) OrElse (input.GetValue(0) Is Nothing))
    End Function
End Module
Oh. I missed that somehow.
I almost forgot where it was....lol
this one has more than I can review before I leave work
1
Q: Web link parser that hunts for a specific string

xxSithRagexxThis handles a parsing system to look at every users profile page and determine their job classification based on the class of a div element. I noticed that the class was always consistent on specific types of employees so I created this script to weed them out from other classes so I can have a ...

21:59
@Malachi no. This. This should be a function.
If (Path.Contains(pathNPR) AndAlso Path.Contains(extNPR)) _
OrElse (Path.Contains(pathDRR) AndAlso Path.Contains(extDRR)) Then
ValidPaths.Add(Path)
End If
If Foo(pathNPR) Then

« first day (836 days earlier)      last day (3479 days later) »