« first day (210 days earlier)      last day (3790 days later) » 
00:00 - 20:0020:00 - 00:00

12:02 AM
@Jamal as much as I like seeing that declaration in big capital letters, I think it (and all related posts, including this one) should be vacuum-cleaned, politics don't belong here. (removed)
(star looting?)
 
@retailcoder: The one about Quebec being a country?
 
@retailcoder pffff.... why so PC? Canadian politics is like kindergarten whereas when it comes to hiockey.... then you really see what canadians feel....
 
well nevermind then :)
 
@retailcoder out-of-interest, who is your cell-provider?
(and why did youtube think your cell was somewhere odd?
 
(removed)
 
12:05 AM
Videotron/Quebecor, roaming with Rogers
and that's a very good question I should ask them
 
Interesting.... those filters work off GoIP Databases,
 
I wonder where YouTube thought my phone was located...
@Jamal did you just... kill a baby unicorn?!
 
Yes. So? :P
 
12:25 AM
@rolfl edited my CR profile, better now?
 
@retailcoder +1 insightful.
 
12:43 AM
Markdown question... how do you go from a numbered or bulleted list right to code?

1. one

. <--- dot

// this is code
Without the dot, or something in between the bullet and the code, it all appears as part of the bullet (i.e. no code....).
 
@retailcoder: I use <!--- --->. Something like that will work.
@rolfl I meant. Sorry.
 
Ahh... I am finding answers searching meta as well.
 
0
Q: prolog program taking too long to solve the puzzle

user1730250I was wondering if there's any way I can improve this code to execute faster: I want to use it on a 10*10 grid, but it takes too long to solve this 4*4 This program takes as input a 4*4 matrix represented as a 1d matrix and it returns the solution to the puzzle in the variable solution Any commen...

 
8
Q: Markdown code block problem

sampablokuperI asked a question on StackOverflow recently and had trouble with the MarkDown processor: the code block would not render as code despite being indented four spaces. I've not had this trouble before; maybe the StackOverflow devs have been tinkering and have broken something? It seems to be connec...

 
@retailcoder I think I am going to do it in C# though
 
12:52 AM
OK, weekend challenge.... we all solve the Rock Paper Scissors Lizzard Spock problem with our 'favourite' language, and we all have to post a question here with our solution to be reviewed.
5
 
Why don't you just use jQuery? /MSO joke
 
I call C# hopefully I will learn something
 
0
Q: Framework constructor

akinuriI'm working on my framework constructor. First I tried to look into jQuery and understand it, but it's so out of my league. Instead I googled and put this code together. Though there aren't many posts about creating a framework. Anyway, since I'm not a guru I might be doing it the wrong way or mi...

 
1:08 AM
RPSLS - Use simple rules: Same as this little project:
The computer chooses one, waits for user, then displays results.
 
@Jamal shouldn't there be an synonym to all the // tags?
 
Winner is best of 3.
 
I'm not familiar enough to know, not to mention some are tagged with many questions. Best to ask on Meta.
 
1:23 AM
@Jamal nevermind, just checked on SO they're not synonymized
 
@retailcoder: Same think I've discovered with and . Having both seems redundant to me.
 
@rolfl Since @Malachi shotgunned I'll try to do mine with . That one being my favorite language is a long, long, veeeeeery long stretch though.
 
No reason why we have to choose unique languages....
(and similarly, no reason why we have to produce just one entry ... can do multiple).
 
Wouldn't my question be a candidate for a duplicate of @Malachi's then?
lol
 
Interesting... if your code is the same, then, yes.....
 
1:29 AM
mwahaha not likely :)
 
but, the idea is to review the code, and if the code is different, can it be a diuplicate?
 
true. I am not getting my fun intellisense for list<T> on this Mono
 
Is VS2010 Pro + R# somewhat cheating then?
Nevermind, I'll use VS2012 Express and give that Github account some lovin'!
Console app?
 
console is OK, but whatever is appropriate too.
If you want to do a Javascript version we won't insist on console.
 
@Malachi Rock, paper, scissors, lizard, spock? I have one thing to say about that: Water balloon!
 
1:46 AM
@rolfl it's a weekend project, if I do this in JS I'll post my CR review request in like 2 months!
 
@rolfl "No reason why we have to choose unique languages....", thank goodness - Otherwise I would have to fight you for Java. Or are you planning on using COBOL? (Good luck finding a reviewer for that... You'd have to review it yourself)
But what exactly is the challenge? Should we code an AI for the game of rock, paper, scissors, lizard, Spock?
 
@SimonAndréForsberg I think you can go as far as you want...
...but the goal is essentially to solve a game round I guess.
 
@retailcoder But we're talking rock, paper, scissors, lizard, spock basically?
 
A random AI or is it OK (if I feel very motivated) to build a somewhat smarter AI?
 
1:56 AM
I'd think it's ok yeah
 
We'll see what I will do
I'm definitely up for the challenge though, sounds fun.
 
when is our deadline? Like, if I'm done in 2 hours, do I post right away?
guys this is the coolest thing that's happened on CR since its creation, I'm sure
 
Um, no. The tag was. :P
 
Not sure. I'd say it's probably better to wait until at least saturday afternoon (or evening for me) before posting it
 
watch it at 2:00 the guy loses and still gets a kiss....lol
 
2:05 AM
lol
 
@Malachi Should we implement those features in our code as well?
 
@SimonAndréForsberg to get girls to kiss us?
 
lol
 
I want a kiss. :-( But I also like pie.
 
"why are we doing this?"
 
2:07 AM
@Malachi: I saw that! :P
 
(REMOVED)
 
It doesn't matter. I can still see revision histories.
 
@Malachi Both that, and all the other possible features in the video
 
okay, okay, just go with DI/IoC and make it change-friendly! :)
@Jamal we all can...
 
I wouldn't know since I haven't seriously started using chat until I became a mod.
 
2:11 AM
Carp
 
 
2:27 AM
@all no pressure guys, but I have 25 passing tests already :)
 
@retailcoder I have completed the model, haven't written any tests yet (I really should consider sleeping though...)
 
I thing I should have skipped dinner.
OK, I have it working..... (and I had dinner).
 
I gotta sleep now. Will continue the project tomorrow. Basically just the I/O part remaining.
 
0
Q: Adding N characters to a string

brainboltI need to preprend N spaces to a string to make it 10 characters in length. I came up with the following method, but since it is going to be called often, I want to ensure it is optimized. Could this be made more efficient? public static string PrependSpaces(string str) { StringBuilder sb = ...

 
2:42 AM
I am in a different IDE than I am used to, so everything is playing weird.
 
3:21 AM
wow you can tell people are busy (...[criquets chirping]...)
 
Chirp.....
 
@rolfl not sure my wife would agree, but that chirp alone justifies having 2 monitors :)
 
Shhh... I'm thinking.
 
lol
does it hurt?
(ding!)
 
3:39 AM
@retailcoder you have to do @rolfl to make it ding!
(dong)
 
@rolfl (ding!) true!
lol
 
Was there a consensus, should we wait to post our questions?
I think we should make the tag RPSLS as well .....
2
@retailcoder Ding! Read ^^^^^^^^^^^^
 
If you add the tag wiki, I sort of agree with it... although it should be more formal, like - "Use this tag for reviews of any of various implementations of the famous game"... but @Jamal might vaporize it and edit our posts with
how many questions would that be? let's see...
body:"rock paper" is:question gets 2 results...
@rolfl (ding!)
 
I get 4 questions on the just by scanning the page
Then, you add our games....
 
starts being a popular tag eh
 
3:47 AM
What about the 'consensus to wait' ?
Nevermind, I will wait anyway.
 
not sure I can wait once I'm done..
 
hehe, it has a wiki page:
Rock-paper-scissors-lizard-Spock is an expansion of the classic selection method game rock-paper-scissors. It operates on the same basic principle, but includes two additional weapons: the lizard (formed by the hand as a sock-puppet-like mouth) and Spock (formed by the Star Trek Vulcan salute). This reduces the chances of a round ending in a tie. The game was invented by Sam Kass with Karen Bryla, as "Rock Paper Scissors Spock Lizard". The game was mentioned in four episodes of The Big Bang Theory. According to an interview with Kass, the series producers did not ask for permission to ...
2
 
well there's our tag wiki!
 
@retailcoder I am trying to work on both monitors. but I have the tv going as well and I only got like 4 hours of sleep last night. and I am having doubts about my skills as a C# Coder, and don't want to look like a loser.....
 
With an avatar like mine you can't look worse.... ;-)
 
3:50 AM
@Malachi hey, it's a review thing, for fun - nobody's going to look like a loser!
if your code is perfect it's going to be a boring review :)
 
@retailcoder did you see what they said about me with down Votes on this answer....codereview.stackexchange.com/a/36377/18427
 
well that's not nice!
 
not sure what happened there.....
That was awful fast for whatever it was.
 
lol
I'm too stiff on the rules right?
 
Question unclear .....
 
3:56 AM
It's a good thing I'm not the one with the vacuum cleaner :)
 
I think I should flag that. you said stiff in one post and then mentioned a vacuum cleaner in the next..... @retailcoder
 
I got the input and logic working, now I want to implement the proper wording for each selection and then I'll post :)
...or maybe I'll wait...
 
yeah I don't have much yet
 
I am heading off to bed. I am not sure it will be an advantage to wait or not.
If I post early, you guys will read and get ideas.
If I post late, it will look like I stole your ideas.
I wonder if we can post to pastebin or somewhere anonymous like ideone....
and then group them later....
@jamal ...... hi!
 
shall we meet in chat at 1PM UTC and say "ok GO!"?
 
4:09 AM
when is that Central Time @retailcoder
 
That's in the morning ....
8am EST.
(I think....).
 
@retailcoder: Yes, will suffice. The only exception is , primarily because it's very common already.
 
RPSLS is going to be popular too.....
 
And no, I cannot "vaporize" a tag anyway. I believe only SE employees can burninate a tag right away.
 
@Jamal when we're done, is ... aw @rolfl beat me to it
 
4:11 AM
OK, I think it works to say: No entries before 1pm UTC.
 
I am not going to make it by 7 am my time
 
OK,
What time would work for you>
 
IDK
 
(you can always send it to me and I will post it for you ... ;-) )
 
i just won't look at everyone else's code until I am done with mine. my wife already fell asleep so maybe I can finish it tonight
 
4:12 AM
Then let's type up our drafts and all submit at once?
 
@Malachi just to be clear, we are talking about 9 hours from now.
That may be quite soon for some.
 
yeah
I will just post my code when I am ready
 
On the other hand, we all like to go out and get drunk and rave it up on Saturdays, so we can't make it too much later ... ;p
I am beginning to think that setting a time on this is too 'formal'.
 
might be
 
And I'll be in Meta, creating tag wikis. :-P
 
4:16 AM
In my head I am done, and it's a simple console thing. Others may want to create an elaborate GUI.
 
@Jamal are you implementing a RPSLS too?
 
Maybe I should just break the ice and upload.... then it is done, and noone can complain.
 
I'm doing a simple console thing too
@rolfl I won't even look at it until I've posted mine!
 
Then people can focus on quality rather than speed.
Right, I am doing it.
 
@retailcoder: I might, if I have the time. I feel mine in C++ may not be that great.
 
4:20 AM
Posted.
.... and I am off to bed.
 
1
Q: Rock Paper Scissors Lizard Spock as a code-style and challenge

rolflThe following is a program that lets a Human play "Rock Paper Scissors Lizard Spock" against the computer. Comments, critiques, suggestions are welcome and encouraged. import java.util.Arrays; import java.util.Random; import java.util.Scanner; /** * Rock Paper Scissors Lizard Spock * <p> * ...

 
4:38 AM
Posted
 
4:48 AM
2
Q: Rock-Paper-Scissors-Lizard-Spock Challenge

retailcoder "Scissors cuts paper, paper covers rock, rock crushes lizard, lizard poisons Spock, Spock smashes scissors, scissors decapitate lizard, lizard eats paper, paper disproves Spock, Spock vaporizes rock. And as it always has, rock crushes scissors." ...

 
 
1 hour later…
6:06 AM
this looks like what we should do next, @retailcoder, @rolfl, @Jamal
4
Q: How can I improve this Tic-Tac-Toe code?

Julii GiambellucaThis program is supposed to be a player VS player Tic-Tac-Toe game. The computer then checks whether you've won, lost, or tied. The code does work, but I don't want it to work through hacking; I want it to be done the right way. Sub Main() 'Initialise variables Dim StrCoordinate(3, 3) As Strin...

 
6:25 AM
@Malachi oooh yes! - next week :)
 
I've just finished adding wikis to Meta, which also got me the Research Assistant badge. :-)
 
@Jamal Nice!
 
Also, after some consideration, I'm wondering if we should add some game-specific tags such as and . It would probably just be for these games since they're the most common. Others can just stay with . What do you think?
 
6:40 AM
If and and are legit, then I don't see a reason not to have and and and and and and and and and and... well you get the idea.
 
This can be discussed on Meta anyway, so that everyone is aware. I have to go to bed now.
 
Maybe a compromise could be to and and and... well I think we're better off with just .
good night!
 
0
Q: Need a better way to mass modifying css Class

codinI have a huge collection of list elements. the concept is that the user can select only two items from that collection. I am showing a check/Uncheck as an image infront of the list item, just for visual purposes that the list is selected or not. The image is defined in a class, so I have to switc...

0
Q: Making a parameter property of method requierd

Iman Is it correct to use a parameter's property which is object (navigation property) in our methods? If yes how the developer who uses my method should know which properties are required?(you can see requirements is nested) If No what is the solution? Please give me some design patterns, references...

 
 
6 hours later…
12:20 PM
I'm going to visit my parents a couple of hours today, I'll be back later and finish my code and post the code up for review.
And I will finish without looking at @rolfl's code
 
0
Q: error LNK2005: variable already defined in object - cross file variable usage

TomoyoseI am trying to make this code work. My inital concept is to have a configuration file to keep all the variables that are static and use them in various other files in calculations in order to return values to my main. In this code for example I want to get the date values from my configuration, c...

 
 
2 hours later…
2:48 PM
What!? No one here? It's strange how active you are here when you "work", compared to when you're not working.
 
Hey, I am here
@SimonAndréForsberg ding!
 
@rolfl My thought exactly, ding!
 
Meh, I am bummed.... @retailcoder raised the bar and did something better than me ...
How's your RPSLS coming on?
 
I just need to write my I/O system now and then I will put it up for review
still haven't looked at your Zombies
 
I shoudl find another one quickly...... get one done.
heh.... my RPSLS is at the top of the list for unanswered java questions .... Better stay away from your zombie list..
 
3:00 PM
yeah, I gotta create my own Zombie first, before I kill yours.
 
Lord Frankenzombie?
 
@rolfl Is there any limit on how many rounds that should be played?
 
None was specified.
I happen to have set it up in one way, retailcoder in a different way.
There is no 'precedent'
 
@retailcoder: I've killed anyway; it only had two questions and seemed to have stayed that way. But yeah, you have a good point. We're not a gaming site, either.
 
3:11 PM
0
Q: java game divide by 10

Hectonimport javax.swing.JOptionPane; public class DividedBy10v2{ public static void main( String[] args ){ int block[][] = new int[3][3]; int DetermineRow = 0; // The variable assigned for counting rows int DetermineColumn = 0; // The variable assigned for counting columns int bloc...

 
@Jamal - how am I supposed to get edit credits when you beat me by 2 seconds>
?
 
Damnit, a Java Zombie! But I'm working on my own zombie!
I guess that Java zombie is yours, @rolfl
 
@rolfl: I can't read minds! :-) Maybe you can still find something in that large explanation that needs editing.
 
@SimonAndréForsberg nothing exciting.
Sure.... you killed the things I did anyway ... thanks...
 
It was sitting there for a while, so I assumed it wasn't going to be looked at for a while. Or do you all only wait for questions to appear in the feed? :-P
 
3:25 PM
Apparently I only wait to see them in the feed.
 
0
Q: Better way to create samples

giacomotbI've done this piece of code for creating samples without repetitions, but I think that it is a so heavy algorithm because every time I call this recursive function I create a new vector that is passed to it. What means create any samples without repetitions? it means creating every combination g...

 
Like that.
 
lol
@rolfl: I see you don't have the Cleanup badge yet. Perhaps you may want to roll back this question. The edit just consists of an update specifying that the question has been answered on SO, although it can still receive additional answers here.
0
Q: Need a better way to mass modifying css Class

codinI have a huge collection of list elements. the concept is that the user can select only two items from that collection. I am showing a check/Uncheck as an image infront of the list item, just for visual purposes that the list is selected or not. The image is defined in a class, so I have to switc...

 
I won with 20 - 14 against the computer
I think my code is ready now
 
I'll try to join in if I have the time. I haven't started writing this, though.
 
3:39 PM
our conversation the other day about close options. chat.stackexchange.com/transcript/message/12411811#12411811
 
3:59 PM
@rolfl I'm done.
0
Q: Another Rock Paper Scissors Lizard Spock implementation

Simon André ForsbergThe Challenge Create an implementation of "Rock - Paper - Scissors - Lizard - Spock". The rules: Scissors cuts paper, paper covers rock, rock crushes lizard, lizard poisons Spock, Spock smashes scissors, scissors decapitate lizard, lizard eats paper, paper disproves Spock, Spock vaporizes r...

 
@Jamal why would I roll that edit back... isn't it useful?
@SimonAndréForsberg FYI, I am working on Divide-by-10
 
@rolfl Ok. I just read your RPSLS implementation.
 
@rolfl: Yeah, that's true. It just sort of sounded like, "I've received an answer there, so I no longer need one here."
 
I am in a thought process on divide-by-10, so will take a bit to get back to chat... ;-)
 
And I will need to be offline for a while, after which I may consider trying my hand at writing this game.
 
4:05 PM
0
Q: PHP secure image upload class

Qǝ uoɯᴉsI am new to code review, and to PHP also. Last night I made the below image uploading class. It was the first time I made a file uploader to be used on a real site, so I thought I would share it here and on Github to get some reviews, hoping if I can perfect it with your help, I will use the cl...

1
Q: Another Rock Paper Scissors Lizard Spock implementation

Simon André ForsbergThe Challenge Create an implementation of "Rock - Paper - Scissors - Lizard - Spock". The rules: Scissors cuts paper, paper covers rock, rock crushes lizard, lizard poisons Spock, Spock smashes scissors, scissors decapitate lizard, lizard eats paper, paper disproves Spock, Spock vaporizes r...

 
4:23 PM
I am still working on miine, it may not be done until tonight at the earliest..... :( I have a wife I just need a mistress
 
Take all the time you need, @Malachi. Looking forward to reading it when it's done
 
@SimonAndréForsberg it will probably not be as good as al of yours
abouut the mistress thing I was looking for a link but I could not find a link only a page so here is the quote from that page
 
@Malachi Don't be so sure of that. (I'm not a big fan of @retailcoder's implementation actually)
 
Three men are talking: A programmer, a doctor, and a lawyer. The lawyer says, "Man, the only way is to have a mistress. With all these divorce suits, it's terrible
The only way is to have a mistress." The doctor says, "Are you kidding? With all the STDs out there, you want a wife and that's it."
The programmer says, "You need both a wife and a mistress. Because when you're not with the mistress, she'll assume you're with your wife, and when you're not with your wife, she'll assume you're with your mistress, and THAT leaves you more time to be in the lab programming!"
@SimonAndréForsberg I looked at it a little bit, but not much. I am going simple or trying to anyway.
you can't undelete your chat posts
 
(removed)
You can with those ^^
 
4:30 PM
@SimonAndréForsberg nice.... there are things both you and @retailcoder have done that I regret not doing.
 
@rolfl Glad to hear that :)
 
I'm going to yout an answer on yours, and I'm going to be 'constructcively' critical ....
Only because I think that there's something to learn.... and I don't want to point out all the good things just yet....
 
I noticed that I hadn't done so much in the user interaction part, but I didn't think of that being very important
@rolfl Well, I'd be happy if you pointed out some good things though :P
 
Yeah, Don't tell Simon, but I loke the fact he made the players an abstrat class... I just kept tabs in the main loop.
s/loke/like/
Don't tell @retailcoder but I like that he has the 'verbs' in his solution.
 
oh dear....
user image
2
 
4:38 PM
@rolfl Yes, I liked @retailcoder's "verbs", but I didn't like the way he determined which items beats what.
 
Agreed with that too ... ;-)
I find it harder to answer @retailcoder 's question because I'm not familiar with C#
 
4:56 PM
0
A: Reporting progress on a million call process

Malachisince it is a Console Application, just use Writeline, just have the application spit the important stuff out to the Console. I did something Similar in an application that I created to export PDF's from a SQL Server Database back into PDF Format you can do it many different ways. if you are co...

going to a movie with my Kids.
weird Ubuntu, said I spelled movie wrong
this is one of my Questions that I finally answered because I had to.
0
Q: Exporting PDF's from SQL Server DB and writing a Map to a Text File

MalachiI need to write an application or Query to export a large amount of PDF's to file and create a delimited text file that shows where the files are and contains the ID of the record. what I was thinking about doing was using a console application that would write the entry to the text file after e...

there are no answers or votes other than mine on this question
 
0
Q: Scanner closed Problem!

RNI2013Can someone please highlight to me the problem With my main method? I am getting the error exception that scanner is closed? Thanks public class Assignment2 { /** * Scanner used for input within program */ public static Scanner scanner = new Scanner(System.in); /** * Main method that provid...

 
Possible duplicate of a Code Review question: programmers.stackexchange.com/questions/219918/…
 
@SimonAndréForsberg amon said it's not completely the same. he commented on the Code Review question
 
@Malachi Ok then
 
5:12 PM
@rolfl A string variable for the name and change where I define the rules, nothing else?
 
hi guys!
 
Don't forget the Closable.....
@SimonAndréForsberg - I think your solution is good... it solves the problem elegantly.
You don't do much that's 'exciting' like whizz-bang features...
But, what's there, is good.
 
@rolfl Ah, yes Closable as well. Thanks for the review :) It's always good to hear when you do something right.
 
The things I like about 'my' solution are not relevant to others because they are 'extra', like the best-of-three, etc.
 
I might add whizz-bang features later. Seriously considering making an Android app here :P
 
5:15 PM
Also, I think I fell in to the 'get-it-done-fast' trap, and it shows.
My wife teaches kindergarten. They have a scale from 1 to 4. 1 is struggling, 2 is meets minimum requirements, 3 is does things well, and 4 is does everything well, and extends beyond the problem at hand and shows advanced thinking.
Your's is a solid 3.
Mine is a weak 3.
No-one has hit a 4 yet.
@retail-coder shows some advanced thinking, but, based on other answers to his question, he is not hitting enough of the level3 items to rank a 4.
 
5:32 PM
@rolfl Yeah, I especially fell in the "get-it-done-fast" trap when I used override on my players. If I only would have paused for a short moment and thought it through....
@rolfl I am considering writing a review on your code, but since you've read my code, it feels like you already know what you can improve :P
 
@SimonAndréForsberg - yeah, you should write and answer though.... it'll make both pf us think more.
But first, how about a little help here:
i seem to be getting alot of errors with this method, too confusing, such as illegal start of expression private static.. — Hecton 6 mins ago
 
@rolfl Thanks! @SimonAndréForsberg I don't like how I determined what wins over what either, and Svick's answer is correct, my usage of IComparable<T> is wrong... that's where I got into get-it-done-fast - we all have weak spots :)
 
@SimonAndréForsberg I have answered a question, and it appears my 'simple' answer is too complicated
 
@rolfl A method can't be both static and final in Java, you have such a method in your code
 
@simon, of course it can
(syntactially, anyway - the final part is ignored).
 
5:35 PM
@rolfl Alright, you're right... It can. But what's the use of it? Static methods can't be overriden anyway.
 
The issue is that Hecton is trying to declare the method in the middle of his other method.
 
Perhaps the OP is using another IDE which prevents that? I'm gonna read some more
Oh god...
 
He is so green....
Not sure how he got the code he wanted reviewed to even compile.
 
0
Q: Simplification of byte array comparison algorithm

IAbstractI have an algorithm that evaluates in input byte[] with a source byte[]. Several conditions can be encountered: Match found No match found End of input array End of source array Input wildcard (*) matches against any source byte All of these conditions are dealt with in this algorithm. Havi...

0
Q: A shorter way to put sql select statement

Mawia HLI have the following mysql select statement. It is working fine except that the code is too long. I have been trying and looking through internet how I could make it shorter. Please can anyone of you make it shorter? SELECT regd, Subject, Section, date, SUM(CASE WHEN (Name_of_exam = 'First Un...

 
5:51 PM
OK, for next week's challenge, I'm definitely going to think more and not get stuck in the get-it-done-fast trap
 
6:13 PM
0
Q: How to properly implement cubic spline interpolation?

Mr JediI trying to implement cubic spline interpolation based on the algorithm from Wikipedia, but I received very bad results. x(0) is points.get(0), y(0) is values[points.get(0)], α is alfa and μ is mi. The rest is the same as in pseudocode. public void createSpline(double[] values, ArrayList<Integer

 
6:23 PM
I'm now going to start writing my own RPSLS, in C++ of course.
2
 
6:37 PM
@rolfl Answer written. I hope I wasn't too hard on you
@Jamal Why not try COBOL for a change?
 
@SimonAndréForsberg: Very funny...
Seriously though, I'd attempt it in x86 assembly if I were really up for the challenge (and actually knew how to generate "random numbers").
 
@Jamal x86 assembly, wow.. That would certainly have been something.
 
Maybe I'll attempt it at in the future. If I still cannot implement randomness, then perhaps I'll just have the opponent choose Spock each time.
 
6:57 PM
@Jamal - prng's are not actually that complicated.... and for the degree of randomness you only need to beat what a human could guess. Using the modulo of the system CPU ticks would be enough.
 
@rolfl Do you understand this method here? codereview.stackexchange.com/questions/36410/… . I am trying to use it but haven't figured out how to get anything useful from it
 
@Jamal - or, you can spin-loop waitin for user iput, and use the modulo of the number of spins?
@SimonAndréForsberg - I cringe when I see Vector
 
@rolfl Yeah, that is one thing I thought of writing in my answer. Together with making the method support generics.
 
Did you see that he's shotgunning ... ? asking on programmers, as well as here?
 
@rolfl Apparently they're two different questions. One about permutations and one about combinations.
 
7:07 PM
Huh... I wrote something yesterday:
7
A: How Can I make This Mess of Java For Loops Faster?

rolflThis problem begs for recursion.... private static final void checkWord(char[] chars, char[]current, int len, List<String> results) { if (len == chars.length) { final String result = new String(current); if (sortedDictionary.contains(result)) { results.add(result...

I'm going to throw up an answer.....
 
@rolfl Good. Looking forward to upvote it
Exception up = new Exception();
throw up;
2
 
0
Q: infix to postfix help - C++/C

KalebI am doing infix to post fix notation. my program complies, although, for some reason it will not take in any infix expressions, only postfix expressions. Which is the opposite I wanted to do. Here is my program: #include <iostream> #include <string> #include <sstream> #include <stack> using nam...

 
I think I'm almost done, except I haven't quite put in the "X does something to Y" message yet.
 
@Jamal Only @retailcoder has included that message so far. Both Rolf and I simply write who wins instead, without a specific covers/eats/vaporizes message.
 
7:20 PM
Oh, good. Saves me some time. Also to save time, I'm going procedural.
 
@Jamal Whatever you do, don't save time!
@Jamal Don't get stuck in the get-it-done-fast trap!!
 
lol
 
By the way, you all can vote to close that above question. The OP is reporting problems.
@SimonAndréForsberg: Yeah... I'll take my chances.
 
@Jamal What about using your super-powers?
@Jamal Just be prepared for the review when it comes! (On the other hand, I think C++ code usually tends to be more procedural-oriented than C# and Java)
 
With great power ...... comes the great Jamal
2
 
7:28 PM
I can, but I still don't like KOing questions too often since the community does well at closing. We're much smaller than SO.
Let me clarify this: if both players' moves do NOT correspond to one of those combinations in the rules, does that imply a win for you? On the other hand, do you lose if one of the move combinations match?
 
Sorry to throw that in out of the blue like this, but @Jamal would it be appropriate to create a to tag questions that are following-up on another?
 
@retailcoder: Not my decision to make right away. You should ask the community on Meta, and I can make a decision from there.
 
@retailcoder Could be a good question for meta I think
 
ok I'll do it
(the meta post)
 
@Jamal Well, besides the fact that all the rules actually map out to all the possible combinations (besides if both are equal), I think that if there is not an available rule then it should be considered a tie.
 
7:34 PM
I've just considered it a tie if both moves are the same.
 
@Jamal Good, because the rules will cover the rest.
 
I could put this into Ideone for any of you to test first. For the input, you just need to put in 1-5 (each corresponding weapon). It may just work with one turn, but that's okay.
 
0
Q: Rock-Paper-Scissors-Lizard-Spock Challenge, take 2

retailcoderThis post is following-up on Rock-Paper-Scissors-Lizard-Spock Challenge I had a gut feeling that I was somehow abusing IComparable<T>, @svick's answer confirmed that. As @dreza was posting his answer I was in the process of proceeding with exactly that refactoring: stuffing the SelectionBase c...

 
Didn't post a meta-question, instead answered on this:
6
Q: How to deal with Follow-up questions

Simon André ForsbergSometimes I stumble upon follow-up questions, where code is being posted again after having gone through a review (or two). Examples of possible sets of follow up questions: Find missing numbers - Find even more missing numbers - Even more missing numbers Binary search tree - Another binary s...

 
7:54 PM
@SimonAndréForsberg answered samples:
0
A: Better way to create samples

rolflYour solution requires that you create a new Vector for every combination. You are right that there is no better algorithm. The way you have it implemented though, is not as efficient as it should be. Float should be a primitive.... float. Using a Float object instead of the primitive float will...

 
Done
Though, apparenly my review is not enough....
 
lol that's fine, takes 2 reviewers or 1 moderator :)
the tag could always be destroyed if we come to another conclusion, I thought I'd just use my "create tag" priv :)
 
@retailcoder - so followups are allowed?
 
00:00 - 20:0020:00 - 00:00

« first day (210 days earlier)      last day (3790 days later) »