« first day (607 days earlier)      last day (3395 days later) » 

12:00 AM
Where's da hat?
4
 
@Duga Happy New Year, Program!
2
 
so it does have to be starred!
3
 
Happy new year
2
 
33 years until the next power of 2 ;/
4
 
@rolfl Right, so thanks who ever did for the star
2
 
12:00 AM
Needs more cowbell stars
6
 
My kids say Happy New Year too! .... and WHERE IS THE HAT?
 
probably going to be a massive lag in like 3.5 minutes
3
or less
 
LOL
 
I haz no hat.
 
@rolfl My daugther too
 
12:01 AM
@rolfl SE Servers probably going into a seizure now... :)
3
 
probably going to figure the hats at 5 after
 
@Malachi K THNX BAI
 
I gotta get going though so I can eat some pizza and watch the newest X-Men movie with my Family
 
I need a new head for all these hats.
2
 
UTC 12:02:30
 
12:03 AM
Hmm it's surprisingly hard to get the mistletoe
2
 
@Malachi Have fun
 
happy new year!
4
 
Hey @hwlau
2
 
> asked Jan 31 '14 at 6:11
Now it's official.
 
Happy new year to you too!
 
12:03 AM
STAR... ALL THE THINGS!
4
 
Now to zap some of my comments.
2
 
Every message on my screen is starred.
5
 
I will delete some comments tomorrow
 
My normal chat haunts are dead, so I'm wishing everyone here a Happy New UTC Year in the hopes of getting a hat
5
 
12:04 AM
later
 
"My god, it's full of stars!"
 
12:05
 
Happy New Year's (Eve(n))
 
Anybody hatted yet?
 
Nope.
 
12:05 AM
Thanks, code reviewers!
 
@Hosch250 Let's hope we all got our mistletoe hat now ^^
 
Yeah.
 
You've earned Mistletoe on Code Review!
5
 
YES!!!
 
12:06 AM
OK, but I'm not kissing any of you mugs.
2
 
Got it
 
No messages for me.. still cacheing I suppose
 
@Gemtastic Check your hat box.
 
@Hosch250 I have :P
 
Mine hasn't updated the number, but it is there when I open it.
 
12:07 AM
GOT IT!!!!
 
oooh now I got it
Heh
 
OK, so now I am #3 on the leaderboard, but I have one hat to get.... and the #1 folk have it.
 
Which one ?
 
Waiting to get Resolution.
 
Uh, I'm late, huh?
 
12:11 AM
Now to wait for local New Year :)
2
 
@Edward No one expects you too.
@kleinfreund I'm afraid so.
 
@nhgrif - FYI, I am about to delete this comment:
Hi, and welcome to CodeReview. Just like the asker's Question, this answer is great, and a really good way to pass the 'First Answer' Review with flying colours. Thanks (sorry, only one up-vote allowed). — rolfl ♦ Feb 8 '14 at 0:35
 
Hey @kleinfreund happy new year
 
Your first post review.
 
Yeah, hey guys. Happy new year.
2
 
12:12 AM
@kleinfreund Slightly, it seems... Happy Freaking New Year though :D
 
Naahhh, can't delete it.
 
Holy mackerel, chat on Mobile is horrible. Using the desktop site though.
2
 
Got Resolution
 
@kleinfreund Use ChatSEy
 
I've got all the hats I can.
I don't have a mobile device besides my Windows Phone, some are too late, and there aren't enough easy questions to get Bill.
26 on CR, Kofia on Meta.
 
12:14 AM
in The Frying Pan, 4 mins ago, by Jefromi
oops we all missed it
 
@Phrancis Why the smiley?
 
Because they all missed it (and we didn't)
 
Night @all
 
This should help CR catch up.
Night @Heslacher
Sort of.
 
@Heslacher Good night
 
12:17 AM
CR is where you want to KISS more, anyways, so it only makes sense we need mistletoe more
3
 
This resolution hat is ego-boosting:
That's an amazing answer. I never would have thought of that on my own! — Bri Feb 19 '14 at 19:56
 
Oh... I'm late for the party
3
 
Oh dear.
By 15 minutes.
 
@skiwi Have a consolation star :(
 
@rolfl Yay!
TTGTB TTLO
(Time To Log Off)
 
12:21 AM
I ran out of stars finally.
Too bad there isn't a hat for that.
3
 
Everyone is deleting comments
(myself included)
 
@Phrancis Already got Resolution.
I actually picked out the comments earlier and bookmarked them.
 
Movie time .... TTG.
 
Just got Resolution as well
 
Supper is going on, TTGS.
 
12:34 AM
@rolfl Happy Monkyear :D
 
1:12 AM
28 rep away from passing up PPCG.
 
Boo!
22000 people in Prague wishes everyone a happy new year!
3
 
OK.
Happy new year back.
 
Thanks. I'll try to tell that to all of them ;)
Only one more full day here and then I will be back in Sweden
 
Party party in Berlin Eh?
 
1:45 AM
0
Q: Implementing `sequenceA`

Kevin MeredithI implemented sequenceA: sequenceA :: Applicative f => [f a] -> f [a] sequenceA [] = pure [] sequenceA (x:xs) = (++) <$> (fmap (\y -> [y]) x) <*> sequenceA xs I don't like the fact that I'm making a new list, and then concatenating the result via ++. However, I'm not sure how to make use ...

 
1:58 AM
@CaptainObvious Is that actual code?
 
Gotta sleep, see you next this year!
 
@SimonAndréForsberg Happy New Year! (3 hours to go here)
 
4.
 
2:42 AM
Happy new year @SimonAndréForsberg!
 
0
Q: How to Data-Model in MVC for multiple providers effectively

azngunit81 I have tried my best to apply the MVC modelling with services (Repository) in mind where the Controller (as it should) is just the data direction (input goes in and it redirects the output with the Repo in the middle doing all the heavy lifting). The framework is Silex (the small version of Sy...

 
 
1 hour later…
3:55 AM
zzz
 
zzz
 
???
You missed the Mistletoe party, @MannyMeng
You can still get Resolution, though.
 
4:15 AM
@Hosch250 How exactly do you get one of those?
 
@Gemtastic Resolution is deleting 10 comments from 2014.
 
@Hosch250 I did that but nothing happened :(
 
When?
 
@Gemtastic patience?
 
You need to do it after UTC new year, and wait a couple minutes.
 
4:16 AM
 
@Gemtastic You have it on SO.
 
@rolfl The winterbash notification thing is broken for me. I did get it :S
 
I've not been notified a lot lately too.
Or maybe I am too impatient and open the menu before it displays the blue box.
 
Are any of you in to reading novels?
I have a recommendation, if you are.
 
4:45 AM
waiting.....?
 
Oh, I thought no one was interested.
D. E. Stevenson's Mrs. Tim Christie.
 
I am seldom in chat 'for real'....
Normally just check-and-go
 
There are a few books in the series, and they are almost completely taken from her diary pre and during WWII.
They are really funny.
 
Interesting....
Amazon rates them high too.
Oddly, the book is about my age.
though the stories are older.
 
Have you read Our Mutual Friend, by Dickens?
I've read all his major works and a lot of the minor ones.
 
4:51 AM
I got turned off of dickens.... never sat well with me.
Frankly, I found Bronte better ;-)
 
Which Bronte?
 
Emily
You're pushing my limits of classics though.
 
I liked Wuthering Heights too.
 
It was satisfyingly dark, and human
I grew up on RL stevensons, and such
 
I've read all of all three's major works, and the only other ones I liked were Shirley and The Tenant of Wildfell Hall.
I like Treasure Island.
I've read Kidnapped, Catriona, Dr. Jekyll
The Black Arrow was good.
Although I sided with the other king, he couldn't rewrite history.
The Master of Ballantrae was not too good.
I love Mark Twain.
I've read Tom Sawyer and Huck Finn
The Prince and the Pauper, A Connecticut Yankee in King Arthur's Court
 
4:57 AM
I struggled with those... (twain) I think it's that my father is British, and I was raised in South Africa.
 
Pudd'nhead Wilson.
 
Verne, he's exciting.
 
Verne, him too.
The Innocents Abroad, Roughing it (by Twain).
And Life on the Mississippi, as well as a couple essays.
I love The Long Vacation (Verne).
I've read Journey to the Center of the Earth.
 
I sort of got in to the historic books, then went cheap on wilbur smiths.
 
Around the World in 80 Days.
20,000 Leagues Under the Sea.
 
5:00 AM
once i got hung up on smiths, I did the clancy, and similars.
 
Mysterious Island.
 
Mysterious Island was fun
 
Ever read Agatha Christie?
 
No, surprisingly
I should
 
The only good ones were the first three Tommy and Tuppence series.
I've read a lot.
How about Mary Stewart?
 
5:01 AM
I get hung up on sagas....
Jordan, goodkind, auel.
hell, even rowling, and meyer
 
I don't like George Eliot.
 
My minor claim to fame is that I have fiction in my blood....
Edward Lear is a distant ancestor
 
Edward Lear!
I love his poems.
 
Owl and the pussycat
 
How about Ogden Nash?
 
5:03 AM
Nope
 
I love him too.
How about Eugene Field?
Little Boy Blue
Jest' Fore Christmas.
The Gingham Dog and Calico Cat.
 
No... sorry. I looked him up, nothing rings a bell.
 
I love him too.
 
My education is likely different to yours....
I know Little Boy Blue, but I was a real kid when I think that was read to me, rather than the other way around
 
Yes, my mom was sick of getting crashed computers back up, so we didn't have a computer until I was in HS.
 
5:06 AM
You're lucky. Computers didn't exist in homes until I was in High School ;-)
 
So I had to read our encyclopedia set, our poem book, and the novels we have and got from the library.
We have the New Book of Knowledge from 1997 (I think that is the year).
 
Encyclopedia Britannica
 
I want to get a set of the World Book when I get a set.
 
Right, 00:10
teeth brushed, bed.
 
Alright.
11:10. I should be getting ready now.
See you.
 
5:32 AM
0
Q: New year countdown

bjb568<!DOCTYPE html> <html> <head> <title>Newyear Countdown</title> <style> h1 { font: 25vw "Helvetica Neue"; margin: 0; } </style> </head> <body> <h1 id="countdown">Loading</h1> <p id="timezone">...

 
6:05 AM
0
Q: Inactivity Timeout

USS VoyagerI made this piece of code to detect inactivity on different aspects of my app. It is part of a set of pieces to analyze user behavior. Not saying it's ugly, but good looking constructive criticism to help me improve my code and could be useful to me for other similar components. function In...

 
6:30 AM
0
Q: Code for a the implementation of a quicksort function

user211217I am an absolute beginner to programming and am learning it using C. I have just learned function pointers and tried to implement a quicksort function using function pointers to determine the nature of sort. Here is my code : //Program implementing a quick-sort function using Hoare method //to...

 
Happy New Year, May this year be technologically,physically and spiritually awesome :D
 
7:08 AM
0
Q: How can I boost performance in javascript?

Bludreamehh well, I'm kinda new to JavaScript and don't know it's best practices!! so help me out how to make this run faster when I give it a total population of some million http://jsfiddle.net/xjjrcryc/2/ The way I'm looking at my code I'm not putting anything extra in memory and the objects are so ...

 
1
Q: Best of Code Review 2014 - Night and Day category

200_successPlease post your nominations for the Best of Code Review 2014 - Night and Day category. The most dramatic improvement (nominate both the question with the most hopeless code and the answer that cleans it up the best). In your nomination post, please make sure to include a link to the nomina...

 
@Mat'sMug I've opened a fourth category for . Two fun categories should be balanced by two serious ones.
The next three (Not as Easy As It Looks, Jamalizer, Diplomat) are tied at 15.
We had six categories last year. I would be OK with seven this year, if there is popular demand.
 
7:30 AM
Check out recommendation #5:
6
A: How can I help a child learn to program?

user3143 Many/most schools have computer clubs. Encourage the child to inquire from other students, or ask the school professionals yourself. This will place the child with his peers developmentally, which is the biggest encouragement you can give. Talk to a computer teacher in the school if one exists. ...

Unfortunately, the comment thread is getting out of hand.
 
7:59 AM
Begun, the Language Wars have. — user3143 6 hours ago
@200_success awesome! and happy new year!
 
 
3 hours later…
11:06 AM
0
Q: file server program

user2987243I want to write a code for a file server that, first server send to client a list of files for reading or download second client select a file and write the name of file in text box and then server send that file to client.how can i write this program? this is a code that doesn't work. client sid...

 
11:46 AM
Newyear-monking!
 
12:07 PM
New year's thought: Look at this
1
Q: Map String to list of string

NooB8374 Input: String : Title; List Tags Problem statement: Need to map title to tags, e.g. title is "china man japan korea beijing bell" and tags are ["china man" "beijing bell"], output should be ["china man" "japan" "korea" "beijing bell"]. Whichever part of title is not in tags list, would ...

The code is overly complicated (imo) and I believe I could simplify it a lot
But providing alternative answers here is not on topic
So ideally one would make it's own SE proposal for that?
But then that site and CR would overlap too much
Let me clarify: Providing alternative answers without explaining what is wrong in the original code, is not on-topic here
However providing an alternative answer and explaining why it is good to solve the problem statement could be useful to the OP
 
0
Q: FTP Client Serve sockets , authentication

Hasan FawazHey im working on a project regarding using socket programming to design an ftp server-client application this is the code so far . What i need to do is add authenticity , i want users to be able to access certain files with a username and password and im really clueless D: FileServer public...

0
Q: Python: using a class for reading config from files. Optimization, refactoring

nonrandom_passerThe goal of my current piece of work is to read from a global config file all the settings and then from the local file only those settings that a user has chosen. Firstly I wrote a function but then I needed a class. It's my first working class in Python, and I ask if you can kindly note its de...

 
12:30 PM
Because, in all honesty, if I would find such code in production with a proper javadoc with a bug in it, then I'd rather completely rewrite it than attempt to debug and fix
 
@skiwi I did a project some years ago like that.
The steps were 1. document current crappy code 2. write test cases 3. throw away everything except docs and test cases and rewrite.
 
12:49 PM
@Edward That seems completely reasonable ;)
 
I kept the file name.
 
Though documenting the crappy code yourself may still be a pain
 
1:22 PM
@skiwi Rags to riches is on-topic
 
@rolfl What can I all rags-to-ridgesify?
 
A great way of providing an alternative solution where you don't have to explain it all, and you can do it "your way".... (I did exactly that last night).
 
And is posting the question as comment on the OP's question a good "answer"?
 
> Let me clarify: Providing alternative answers without explaining what is wrong in the original code, is not on-topic here
 
Hmm @rolfl, I didn't see that anything was going on with that question there
 
1:28 PM
The question was answered 22 hours ago, the code was re-done, and changed 1 hour ago, fixing bugs
 
Ah :/
How much experience do you have with Collectors?
 
A dangerous amount to know that I can write one....?
I wrote one .... here:
 
I'm wanting to use a stateful collector (the tags are the state), but I run into issues
My collector cannot be parallellized, but I'm not sure if I can disallow that, other than a RTE
 
7
A: Lock-free thread-safe Fibonacci number generator

rolflI have taken this problem on as a little study in to lock efficiency, performance, and contention. As a result, I am posting a second answer with some additional information, and a different sort of review. Note: The full console output from my harness is here in pastebin.com First, my conclusi...

 
Or... maybe I can
 
1:31 PM
@skiwi Collectors do not need to be threads safe.
you can run in parallel even with stateful, non-safe collectors.
 
I've seen your collector... hadn't really deeply looked into that though
 
In a parallel stream, the stream will get one collector for each thread from the supplier.
 
Ah, good
 
it will then collect in to that collector for the members of that thread/stream...
when the parallel executions start to end, the individual collectors are accumulated (reduced).
in a thead-safe way.
 
And accumulation is associative, right?
 
1:34 PM
yes
we have had this discussion before... ;-)
 
Ah, right
 
Mar 30 '14 at 13:51, by rolfl
@skiwi - I have not found a good document/reference as to why the collector does not need to be commutative.
 
Is there an easy way to return a populated set?
 
Mar 30 '14 at 13:52, by rolfl
The documentation does say it has to be associative..... so maybe the lack of documentation on commutative implies it is OK.
 
@Override
public Set<Characteristics> characteristics() {
    return Collections.emptySet();
}
For now it's empty though
 
1:36 PM
You can add any collection as an argument to a Set constructor...?
 
It's reasonably ugly though
return new HashSet<>(Arrays.asList(...));
So it appears my simplified way is not actually going to end up being simpler
This was my glorious idea:
public static void main(String[] args) {
    getTitleSplits("china man japan korea beijing bell", Arrays.asList("china man", "beijing bell")).stream().forEach(System.out::println);
}

public static List<String> getTitleSplits(final String title, final List<String> tags) {
    Objects.requireNonNull(title, "title");
    Objects.requireNonNull(tags, "tags");
    return Stream.of(title.split(" ")).collect(new SplitWithTagsCollector(tags));
}
but treating it as an Stream<String> seems to be a pain
 
Hmmm. Been looking for a simpler way to populate the Set.... could not find one.
The problem above is more complciated than the code shows..... I don't understand the problem, yet.
Ahh, interesting problem... I can see why some of what I rolled back is now a problem.
@skiwi - the specification is too loose.... there are problems with any implementation given that specification
What if there are tags "china man" and also "man japan".
Regardless, the algorithm is wrong....
You listeneing? @skiwi ?
 
Am busy @rolfl
 
Wha tyou should do is create a class called "Span" or something, with a left/right index.
then stream the tags, flat - map to a stream of spans, and collect.
resolve overlapping spans
then split the string based on span ranges.
How you resolve the olverlaps is the problem.
 
2:02 PM
0
Q: Inserting into Group_roles table for all rows in Group table

RanPaulI have five groups in Group table as Group1, Group2, Group3, Group4, Group5 and whenever a new role added into Role table I have to make an entry into GROUP_ROLES table as below declare @gid int, @rid int select @gid1 = id from Group where name = 'Group1' select @gid2 = id from Group where name ...

 
 
1 hour later…
3:21 PM
0
Q: Create player according to chosen difficulty

presenterI am coding a 2D board game. I let the user choose the difficulty level in the beginning, which influences the skills points of the player. Here is the code I wrote for the Player class : package model; public class Player { // VARIABLES --------------------------- private Position ...

 
I'm wondering myself how to solve the 'player difficulty' question in a good way.
I was thinking about using inheritance, and make a easyPlayer, MediumPlayer and hardPlayer
but something tells me that's not a good approach
Now that I think of it, I wouldn't use inheritance at all
it is hard to change difficulty dynamicaly ingame then
 
4:20 PM
0
Q: Code bot mmorpg scripting

Eduardo Lynch ArayaI want to program a bot and I'm looking for someone Eastern me or give me advice on what language to use and basic. thx "Help me plz :3" I think the first virtue is to restrain the tongue: he approaches nearest to the Gods, who knows how to be silent, even though he is in the right.

 
Anyone here?
We need to close this question ^^.
Wow, only 3 bounties now.
 
0
Q: Reading a file and looping through until a match found

icoI have been trying this code to loop through randomly until a match found in the lookin.txt file and stop with no success as my Python knowledge not that brilliant. I wonder if someone can direct me in the right direction. import random randrange = random.SystemRandom().randrange z = randrange(...

 
5:08 PM
Close this too^^.
 
5:20 PM
interesting question here:
0
A: Create player according to chosen difficulty

bazolaThere are a few things I can talk about here. First, I would suggest using an enum instead of integers for the switch statement. So this: switch(difficultyLevel) { case 1: this.stepsLeft = 150; this.fightingSkill = 5; this.jokingSkill = 5; case 2: ...

 
It seems that everybody's dead today. Too much parying for the new year? :p
 
Didn't party.
Stayed up until 1 programming.
Now, if I CV a question, without doing it from the queue, does that count towards the Reviewer badge?
 
Nope.
 
OK.
Or convert it to a comment or something.
 
Thanks, Santa Osama!
 
5:28 PM
Missed mistletoe...
 
Monking all, @Jamal too ;-)
 
You can still get Resolution, @MannyMeng
 
i am doing that right now.
 
@rolfl I was going to delete it anyway, but I thought you would've liked to get another deletion yourself. :-)
 
Resolution is a great one to sanitize the network :)
 
5:31 PM
@Jamal My understanding is that only deleted questions count towards the mod deletions.
 
Oh well. I would've deleted instead of converting to a comment anyway. I am afraid that if the user sees a response, he'll post another non-answer.
 
0
Q: to clone GitHub repository using python

jibin jacob joseI am a newbie regarding Python.I want to backup my github repositories since there is is a news about blocking github in india. I wrote a python code for automate this. Any comments about this code is kindly welcome import os import requests API_TOKEN='xxxxx' #from https://github.com/settings/a...

 
@Jamal I have a tendency to not delete....
 
I know
 
@rolfl Well, yea, I saw in the question that it's not really clear
 
5:38 PM
@skiwi I have reduced it to an O(n) algorithm.... been fun,.
 
@rolfl I had someone visiting me... didn't do much
 
How do you calculate the O(n) ness of an algorithm.
 
(No, it was not the girl)
 
A single for is O(n) and a double for is O(n^2), from what I've heard.
 
@Hosch250 Depends over what range they loop
 
5:42 PM
@Hosch250 You ask a theorical computer scientist to do it for you.
2
 
1
A: Best of Code Review 2014 - Lots of Laughs category

RubberDuckZirak on "How do I make this Average Function better?" And what happens if you get an empty array? You divide by zero, which is MADNESS!! MADNESS I TELL YOU! The answer actually points out some pretty serious bugs and design flaws (i.e. madness). I think it was a fantastic use of humor to r...

 
I'm sometimes ironic when answering but I don't remember in which answers.
 
I'm really happy I was working on the resolution hat. I wouldn't have remembered that answer otherwise.
 
0
A: Map String to list of string

rolflThis problem intrigued me, and it has aspects which relate to a real-world problem I am working on. Performance is a significant concern of mine, and reviewing your code, and the current answer by wasgren, I suspect there's a better way to do it. In both of your cases, you break the title down t...

Some Java8 in there for you too ;-)
    // strip out duplicate, empty, and null tags.
    List<String> sources = tags.stream()
            .filter(tag -> tag != null)
            .map(tag -> tag.trim())
            .filter(tag -> !tag.isEmpty())
            .distinct()
            .collect(Collectors.toList());
 
Great answer, but that kind of sucks the fun out of writing a cipher. — RubberDuck Jun 28 '14 at 10:36
 

« first day (607 days earlier)      last day (3395 days later) »