« first day (595 days earlier)      last day (3422 days later) » 

11:19 AM
the hat is not coming. Maybe it comes at end of the day
 
@janos How about now soon?
 
Have fun answering on this Saturday:
0
Q: Calculating a specific entry of Pascal’s triangle recursively

kleinfreundOur task was to calculate the entry of a Pascal’s triangle with a given row and column recursively. The triangle was specified in a way that the tip of the triangle is [column|row] = 0. That said, column 0 has always the entry 1. My concerns are that the way I initialize the triangle as an array...

 
0
Q: Calculating a specific entry of Pascal’s triangle recursively

kleinfreundOur task was to calculate the entry of a Pascal’s triangle with a given row and column recursively. The triangle was specified in a way that the tip of the triangle is [column|row] = 0. That said, column 0 has always the entry 1. My concerns are that the way I initialize the triangle as an array...

 
11:40 AM
@SimonAndréForsberg yup, it came, yeay!
 
@janos my guess is that all answers needs to be upvoted
 
there's an easy way to be sure: I'll answer some on SO where it's guaranteed that not all will be upvoted
 
11:59 AM
0
Q: C++ line editing micro-library

Williham TotlandWorking on a project, I've taken to adapting the linenoise line editing library for my own use, among other things, rewriting it using C++. The idea is to separate my changes and updates into a new library, and publish it on github, as one does, but before I release my changes into the wild, I'd ...

 
12:15 PM
Monking
 
Man, not getting "On The Road". :/
 
@kleinfreund You need to go outside for that!
 
Hey @skiwi
Shh!
I was on the road yesterday and posted today via the Android app.
 
12:37 PM
@kleinfreund did you post a question on the app?
 
Yes, I did.
 
Are you using the real app?
 
1 hour ago. I was using the real app, not the site on mobile.
 
Do you have the Bugdroid hat?
 
Nope.
Wait, yes.
I thought that was an app. :D
Yes, I have that hat.
 
12:39 PM
Then let's upvote your question and see if you get the hat
 
Thought about that as well, I'm not sure.
I tell you. ;)
@Simon Yep, got it.
Needs an upvote.
 
guess who's #1 on MSE :)
and it looks like we can start getting Solstice (I just did)
thanks @SimonAndréForsberg, nice review!
 
12:54 PM
@janos Thanks. It's a nice framework, I was a bit surprised by those things I found. But I like the framework (especially now when it's easily accessible with maven) so I definitely want to see it improved.
 
@janos What's it about?
 
@skiwi this:
1
A: Simple micro-benchmarking library

Simon André ForsbergFirst of all, I have to say that the purpose of this library is excellent. The usefulness is great!, especially for me. Your annotations lack a @Target annotation, which makes the following legal: @MeasureTime private String test; Wait, what? That doesn't make sense... The annotation has n...

 
Is it a benchmark system that actually works? :D
In contrary to the other available ones that take a few lightyears to setup?
 
Sorry Simon if you didn't want me to upvote. It was sort of a Santa reflex. On the bright side, now I can pimp it ;-)
@skiwi give it a try and see for yourself
the tech support (= me) is only a ping away right here ;-)
 
@janos Sure I want upvotes! I'm looking for the 5-answer-hat today.
 
1:03 PM
@janos You tempted me to post an answer again :)
 
what makes you think the upvotes are required?
 
@skiwi The framework is very easy to setup and awesome. It will be even more awesome if @janos improves it with my suggestions ;)
 
for me it will be awesome to get some pull requests :)
time for lunch, will be back soon
 
@janos Otherwise it is very easy to cheat the system by posting 5 spam answers.
@janos lol, we'll see about those ;)
 
0
A: Custom JavaScript validation using the factory / module patterns

kleinfreund(The following is about the HTML only.) Identation The identation of your markup is all over the place. I suggest identing by atleast two spaces. I prefer four spaces, though. I’ll append a fixed version below. Space Use it. Separate distinct blocks of code with one or two newlines. Don’t cl...

 
1:14 PM
@kleinfreund I'm onto your pascal triangle question now
 
Hmm
0
A: Simple micro-benchmarking library

skiwiIn addition to the existing reviews, I have some remarks about the used style in combination with Java 8 that would lead to less lines of code and hopefully more maintainable code. Using Map.forEach((k, v) -> { ... }); if (!validationFailures.isEmpty()) { System.out.println(); for (Map....

the review is rather meh...
I hoped there was more to review!
On the other hand, that means the code is well written
2
 
Bah, @rolfl posted an answer but I will continue with mine either way
 
@Simon, I missed that.... promise, I started the answer long before you posted here... (and never checked back).
 
@rolfl Don't worry, your answer points out a few different things than mine. Your answer is excellent.
 
1:30 PM
thanks @skiwi, nice review!
 
4 down, 1 to go.
 
upvotes, to be specific ;-)
btw yeah, I didn't get the hat on unix, with 5 answers, one -1
anybody else got Solstice already?
 
Hey there
 
0
Q: MSD radix sort in Java for parallel arrays - follow-up

coderoddeThe previous and initial iteration at MSD radix sort in Java for parallel arrays. Changes: Entry hides both the sort key and satellite datum in private final fields. Henceforth, they are accessed through a pair of getters. sortTopImpl is removed and replaced by sortImpl, which now can handle t...

 
1:38 PM
@janos yup, I did
Monking @Mat'sHat
 
@SimonAndréForsberg do I have a shot at a red baron with this one?
0
A: Printing RPG Game Character Properties

Mat's MugMuch has been covered already, so I'll just drop a note about these comments: // -------------------------------------------------------------- These are just clutter, remove them mercilessly. I come with a C# perspective though; I find it cleaner when there a class per file. It gets easier t...

 
@Mat'sMug depends on what Red Baron is
 
-3 question, later +3
I edited the OP
 
@janos Thanks, I'm really not used to writing them anymore
 
@Mat'sMug I think you have a chance on that, yes.
 
1:41 PM
I'll need an upvote though I guess nudge nudge wink wink
Yay!
 
Now I just need an upvote on this one:
0
A: Calculating a specific entry in a Pascal’s triangle recursively

Simon André Forsbergclass EntryOfPascalsTriangle { Why not make it a public class? As it contains a main method. int row = 0; row = parseInteger(args[0]); int column = 0; column = parseInteger(args[1]); Can preferably be done on the same line int row = parseInteger(args[0]); int colu...

@rolfl could use some more votes on that too
 
my wife is bugging me... get there soon
Now she's sticking her tongue out at me...
Technically I'm on holiday
 
Technically?
 
How do people have Solstice??
Oh here it is :)
I think 3 upvotes here earns a bunch of red barons on CR: codereview.stackexchange.com/q/74240/23788
 
answer +5 a -3 question that goes to +3
so hard to interpret that
 
1:51 PM
And, this is my stab at red-baron: codereview.stackexchange.com/questions/55966/…
0
Q: Transform a Binary Search Tree into a Greater Sum Tree

JavaDeveloperGiven a Binary Search Tree (where all nodes on the left child branch are less than the node), and all nodes to the right are greater/equal to the node), transform it into a Greater Sum Tree where each node contains sum of it together with all nodes greater than that node. Example diagram is here:...

Needs some un-down-votes (perhaps upvotes) on the question, and a few more on my answer....
 
Answer has to go +5?? Damn
Already hard enough to find an answerable -3 question here...
 
@rolfl you got my blessing. but I already upvoted the OP
 
^^ same here
 
@rolfl But I want that to get to -5 so that I have a chance at reversal :P
 
Physics.SE is back ahead of us :(
 
2:02 PM
0
Q: I can only seem to solve this problem O(n^2) when I need to solve it O(n)

AnthonyThe problem comes from codility, who's coding problems I'm starting to enjoy as their evaluation criteria really looks at runtime. The problem is: Task description A non-empty zero-indexed array A consisting of N integers is given. The consecutive elements of array A represent consecutive cars...

 
2:17 PM
Monking @Mat'sMug. Hat hunting as well I see. =;)-
How many do you have to go?
 
3 more answers I think
 
The race is on then. It's neck & neck.
Ohhhhhh the Pagan duck gets a cool Solstice hat!
An entire day early........
 
lol
if/when I get Bill Lumbergh, I'll have the entire top row :)
and I'm only missing a pizza on the 2nd row
 
I'm gonna kill a few birds with one stone. Planning on Got a Tablet and On the Road at the same time.
 
0
Q: Default value mechanism in Lua using metatables

ComFreekI am writing a couple of functions accepting tables as input parameters. These tables constitute a range of options, which should either be given or inferred from default tables. Concrete use cases can be found in the unit tests below. The main question: Is the code idiomatic Lua – especially t...

 
2:26 PM
I'm not gonna get Bugdroid unfortunately.
 
I hope my sister ended up uninstalling the SE app from her iPhone...
 
LOL. Notifications a many...
 
0
Q: WCF duplex service is ignoring custom username authentication

PhoenixI have a WCF duplex service that is using the WSDualHttpBinding. It is set to use custom username/password authentication via a UserNamePasswordValidator. The service works fine and never generates any errors. The problem is that I am able to connect to it without any authentication. This tells...

Think this is getting too long guys?:D
Even by code review's standarts?
 
Bah! SO link! My eyes! j/k
 
@Phoenix on CR it's not uncommon.. but on SO....
 
2:33 PM
Yea, I thought so too.
@Mat'sMug Any tips on shortening it?
 
Hmmmmmm I might turn that XML question into a blog post actually. It was less of a review, more of a tutorial.
 
5 of 5 posted, let's see if a selfie counts toward Bill hat.
 
Also do you think I should drop Santa a line?:D
 
@Phoenix Read it over and over and over. Pretend you know nothing about your problem and explain it to yourself.
If you have trouble witht hat, get a duck and explain it to the duck.
If you can get the duck to understand, you can get people on SO to understand.
 
Huh, @RubberDuck! One already gets Solstice?
Or are timezones of users handled?
 
2:39 PM
Yeah I guess so @kleinfreund.
 
Ok.
Question number 1. Should I keep the development history of the question(like what I started with, what I did and what I have now) or should I just leave the current state?
Question number 2. For the duck thing... think I can use you?:D:D
 
Sure. I do it all the time. (keep in mind that I'm no better than an actual rubber duck though)
 
@RubberDuck What about question number 1?
 
SO is all about short and quick. Unless you bounty that, you are notlikely to get much traction
 
I think you need to re-read the question and consolidate it down.
Like rolfl said, short, quick, and concise.
Personally, the second I see "Update" in a post on SO I move on.
 
2:41 PM
Ok got it. Thanks for the tips. Btw... they should rename it to SQ
 
Hmm.... interestinggggg
interface ListLike<any T> {
    // New methods added to the generic layer
    void removeByValue(T element);
    void removeByIndex(int pos);

    layer<ref T> {
        // Abstract methods that exist only in the ref layer
        void remove(int pos);
        void remove(T element);

        // Default implementations of the new generic methods
        default void removeByIndex(int pos) { remove(pos); }
        default void removeByValue(T t) { remove(t); }
    }
}
 
oh and I forgot ... thanks Santa :D
 
Underloved answer from a low rep user.
1
A: Refactoring IEnumerable<ValidationResult>

t3chb0tI don't know the other conditions but I would do it like this: public IEnumerable<ValidationResult> Validate(ValidationContext validationContext) { var memberNames = new List<string>(); bool isValidDateOfBirth = DateOfBirth > DateTime.MinValue && DateOfBirth < DateTime.MaxValue && Age.H...

 
0
Q: Feedback for Nested Custom Angular Directives

Andrew Van SlaarsIn an effort to learn more about angularjs directives, I decided to create a simple, edit-in-place directive. I built a simple directive that would display a value, along with an edit link and the edit link would toggle visibility of an input and the save/cancel links. From there, I wanted a setu...

 
1
Q: WCF duplex service is ignoring custom username authentication

PhoenixI have a self-hosted WCF duplex service that is using the NetHttpsBinding. It is set to use custom username/password authentication via a UserNamePasswordValidator for client authentication and a certificate for service authorization. Connection works fine, but the UserNamePasswordValidator is ne...

think its better now?
shortened as much as I could without removing any important info
the code is what I can't shorten though :/
xD
 
2:50 PM
lol, can you guess the equivalent of "monking" in the C chatroom on SO ?
 
@janos "monkinggdfiosusashausu23gasalas"?
 
urbandictionary.com/define.php?term=Monking im just gonna leave that here
 
it appears to be :-)
 
3:02 PM
nicely done!
 
> You earned Bill Lumbergh on Code Review!
3
Thanks to all the santa's ;-)
Now, the red baron, puts me at #1 network wide ;-)
Also, for the record, a selfie-answer counts for bill lumbergh
That makes 3 hats for today, solstice, selfie, and bill
 
When did you get solstice and what timezone was that in?
 
Around 08:00 Eastern Standard Time
 
it is not timezone dependant
it was the same last year
just so that it's possible for more users to get it, they expand those time limits
in both directions
 
@kleinfreund Right now you can get it.
post any question/answer I believe.
 
3:17 PM
Nice, thank you. :)
 
@kleinfreund a comment will work too
are people still hunting for redshirts?
 
I'm always hunting for redshirts.... Even when it's not winterbash.
Anyway... 3 answers down. 2 to go.
 
0
Q: MSD radix sort in Java for parallel arrays - follow-up 2

coderoddeThe previous and second iteration at: MSD radix sort in Java for parallel arrays - follow-up. Changes: arrays[j][i] != arrays[j + 1][i] to !Objects.equals(arrays[j][i], arrays[j + 1][i]) in areEqual. net.coderodde.util.Arrays renamed to net.coderodde.util.CoderoddeArrays. The mergesort/buffer...

 
3:37 PM
RedShirt folk.... go downvote that question about to come in.....
If I close it then the opportunity is gone.... so, -1 and VTC, people
 
0
Q: Getting URL and title of current tab

Lucky OneI need to get the URL and title from currently active tab in Firefox, Chrome, Opera and Internet Explorer and then use it like an ordinary string. But I have a problem : I don't know how to do this. I've already wrote some code but it doesn't work. Also, I have similar code created using Qt.The Q...

 
3:51 PM
Can a man have an upvote for a hat?
0
A: Custom JavaScript validation using the factory / module patterns

kleinfreund(The following is about the HTML only.) Identation The identation of your markup is all over the place. I suggest identing by atleast two spaces. I prefer four spaces, though. I’ll append a fixed version below. Space Use it. Separate distinct blocks of code with one or two newlines. Don’t cl...

 
@MartinSmith Show us what you would do and why. — Malachi 19 secs ago
 
@kleinfreund No, but you can have a +1 for an answer that adds value to the site ;-)
 
And swoosh I'm out.
:D
 
0
Q: Tetris in C++ text based game

MORTALHow can i improve this game #include<iomanip> #include<iostream> #include <vector> #include <random> #include<conio.h> struct Random { Random(int min, int max) : mUniformDistribution(min, max) {} int operator()() { return mUniformDistribution(mEngine); } ...

 
One more, but it will have to be later.
 
3:56 PM
@Malachi See:
2 hours ago, by rolfl
And, this is my stab at red-baron: http://codereview.stackexchange.com/questions/55966/transform-a-binary-search-tr‌​ee-into-a-greater-sum-tree
 
> Looking for code review, optimizations and best practices.
I'm gonna start putting that on all my questions just to troll everyone.
 
@rolfl so upvote?
 
The Q needs to be at +3 and my A needs to be at +5 ;-)
Whatever you can do (and feel justified doing)
The question was previously downvoted quirte far, so un-down-vote if my clean-up made a big enough difference.
Thanks santas ..... and @ rep cap too ;-)
 
wtf!
I just earned Red Baron on CR, how the hell!
 
4:01 PM
> You earned Red Baron on Code Review!
 
wow. for that dummy Human Warrior thing, probably!
 
@janos - for posterity:
 
I think so @janos.
 
user image
2
 
@rolfl @janos That's... sidewide or on CR?
 
4:05 PM
Sitewide.
 
@rolfl and don't forget the Eureka gives you a unique edge!
 
Yes, I am 5-in-30-minutes short of max at the moment, and nurato
Both of which I would have to 'game' on CR, effectively.
 
it's only a matter of time before you get those
 
It would be nice to have done it all on CR, but I don't think I can get treasure on CR (gold badge), and I may have to go to SO or something for nurato, etc.
But, I believe there's a good chance I can manage all hats site-wide.
 
@rolfl Noooo... don't go back to SO!
Don't join the dark side
 
4:14 PM
The eureka was the killer, and I worked really hard for that, at a time when everyone else had already had a kick at the can and gotten it wrong.
 
I've no shot at Treasure Hunter anywhere. =(
 
@RubberDuck Yes you do, on COde Review
You all do.
(except me, palacsint, Jamal, and 200_success)
 
Hola!
 
monking!
 
Any C# people here?
Are 5 C# people here?
I have a fairly easy C# question I'd like to get the pizza hat on.
 
4:20 PM
Post #3. Two more to go.
 
...crickets...
 
@Jamal Do you know C#?
 
Nope. :-/
 
Oh.
 
Technically, I have the badge, and I am a guru ... ;-)
 
4:21 PM
I wonder if I can get 5 C# people?
 
but I have never written a program in it ... ;-)
Hey @Jamal
 
hi
The typos are contagious!
 
Ready, set, GO!!!
0
Q: Calculate square of a number without addition

Hosch250I wrote these two methods to calculate the square of a number: static int sqr(int val) { int valSqr = 0; for (int i = 0; i < val; i++) valSqr += val; return valSqr; } static int sqr(int val) { int valSqr = 0; for (int i = 0, j = 1; i < val; i++, j += 2) va...

 
@Hosch250 In the addition or multiplication?
 
Huh?
It is calculating the square using only addition.
 
4:27 PM
@Hosch250 and the title is "without addition".
 
OK, ooops.
 
1
Q: Calculate square of a number without multiplication

Hosch250I wrote these two methods to calculate the square of a number: static int sqr(int val) { int valSqr = 0; for (int i = 0; i < val; i++) valSqr += val; return valSqr; } static int sqr(int val) { int valSqr = 0; for (int i = 0, j = 1; i < val; i++, j += 2) va...

0
Q: Parallel MSD radix sort in Java

coderoddeI have this parallel implementation of MSD radix sort, which processes the entries by one particular byte. At each byte index, it has three phases: Count the bucket sizes. Insert each entry to its bucket. Recur on each resulting bucket, if there are less-significant bytes to process. The only...

 
And now post #4
 
If only there was a negatively (-3) voted HTML/CSS question. Can't find one.
 
Now my Selfie hat needs to come in.
 
4:41 PM
I somehow got Solstice.
 
I did too.
We are now in Dec. 21, UTC.
Two more answers QUICK!
Please!
 
Phew! That means I can put in a bounty a day earlier for the next hat.
 
Someone please profile that code and give an answer.
Is anyone looking for Major Award hat?
I'll give a bounty if I get to five answers in 30 minutes.
@Phrancis Can you write an answer to my question?
I want to get the pizza hat too.
 
Monking
 
@Phrancis - see my updated code.
 
4:51 PM
I don't speak C# or math :(
 
OK.
@kleinfreund Do you know C#?
 
Not one bit, I'm afraid.
 
OK.
Drat.
I didn't make it.
 
Darn. And I did attempt to write something, but iOS app makes it difficult
 
Thanks anyway.
 
4:56 PM
Sorry, I tried hard there .... ;-) pizza on CR is hard to get.... (and choosing a saturday lunch tome to try is possibly not the best time....
 
OK, it isn't lunch time for me, though.
 
Well, yeah, sometimes I'm still on US time ... but, you're right.
On the down-side, that reputation was all 'lost' to me.... +50 on an answer that... is all gone to the bit-bucket in the sky
 
Well, I have a search question I'll post on monday when everyone is here.
 
@Hosch250 That's my plan too, on monday, when things are busier, and I'll have to come up with a question that a lot of people can answer.....
 
If you post HTML/CSS or C#, I'll try to answer it.
 

« first day (595 days earlier)      last day (3422 days later) »