« first day (451 days earlier)      last day (3580 days later) » 

6:01 PM
another Revival badge! Thank you Santa!
> You've earned the "Revival" badge (Answered more than 30 days later as first answer scoring 2 or more) for "Wrapper class for the Rotten Tomatoes API".
 
I'm one away from another shiny new "Good Answer" badge. I like badges, but I want a hat.
My ducky has a hat, but I don't.
 
Winterbash in July!!!
Hopefully those three upvotes will stay, though they were only a few seconds apart.
 
@200_success to me that's an example of why you don't need it. In fact there are no variables declared anywhere in that chunk of code.
 
Those committed to moderators, on area51 , it's now in beta ...
expect an e-mail sometime, or sign in now to get a low ID number ;-)
 
6:18 PM
0
Q: Project Euler 28

yaskLink I have written a solution for problem 28.Since I am a beginner , I am looking for suggestions for improving efficiency in my program. This is the code:- from timeit import default_timer as timer start = timer() def find_sum(limit): limit*=limit num=1 add=2 result=1 while...

 
@200_success also if you are dealing with individual objects you can just give them singular names, like "form." If you're dealing with collections and you're using jQuery, you're probably not using querySelectorAll or getElementsByTagName or the excellent forms API, so all your collections are probably jQuery objects. So a variable with a collection of forms can just be named "forms," there's no need to name it "$forms."
 
@rolfl So, I wonder who will be... moderating Moderators. ;-)
 
@Jamal if it gets out of beta, the badges should be shaped like banhammers
3
 
7
Q: How do you moderate the moderators?

jmfsgHow can you have a self regulating group of moderators in a community? Moderators regulate the community, but there is not an official way to moderate the moderators themselves. Here in StackExchange you have the community managers that could remove a moderator if it was necessary, the same in ...

Already been asked.... ;-)
 
@rolfl ID# of 32! Just another second, and it would've been a palindrome.
 
6:25 PM
0
Q: Finding maximum occurence of a character in a string

kyleThis is my sample code to find maximum occurrence of characters in string in C#. How can I make it better? public static int GetMaximumOccurence(string str) { int _maxcount = 0; foreach (char c in str) { int ix = str.IndexOf(c); int count = 0; while (ix!=-1)...

 
@rolfl I can't see that :(
 
Yeah, it's all inaccessible to everyone else until it reaches public beta.
 
@Jamal I posted the traditional meta question as well ....:
0
Q: Who should be the Moderators moderators?

rolfl If your meta site does not have a post to nominate Moderators, start one now! Pro Tem appointments will begin about two weeks after the site is created. The more guidance we receive, the more informed our choice. Moderator Pro Tempore Each nomination should be a separate answer. Link the n...

 
should I have flagged this? codereview.stackexchange.com/a/58427/18427
I casted a delete vote
 
0
Q: jQuery Dialog Settings

Brett SantoreThe goal of the code is to initialize a Dialog with settings make sure the object is reusable Setup the options to reuse the code I'm not quite sure if this is overkill, or I am going about this problem in the entirely wrong way. Any input would be appreciated. var myDialog = myDialog ||...

 
6:32 PM
@Jamal somehow I snuck in
without committing
 
There is a way ..... ;-)
 
@rolfl Cool! However, I don't feel good enough about running for pro-tem, but maybe I'll change my mind.
 
I feel good enough about posting the question, but don't expect an answer from me... ;-)
 
I'm still trying to find a question to answer.
 
@Malachi that answer you linked to isn't even a good troll :o
 
6:37 PM
Minus the rant, it's hardly even a code review.
 
@Jamal Same...
I wanted to find one under , but I don't have many options
 
Okay, now I've answered one.
 
The index manipulation version is not obvious at all. I'm assuming someone would be skimming the code, not parsing every little bit. You'd have to catch the fact that i and j are moving opposite to each other and have a think about why it stops when they cross. The second way actually says "reverse" in the code and compares. — Carlos 7 mins ago
Seriously?
Does anyone else think that?
 
@Jamal I answered a meta question
 
Just in case someone was curious: I did not make the first edit. But I did make an edit.
3
 
6:52 PM
@Jamal LOL
I am user 57
60
Q: The Rock, Paper, Scissors, Lizard, Spock Tournament of Epicness

Eoin CampbellMost Recent Leaderboard @ 2014-07-29 Last Tournament invalidated by a bug introduced by Sheldor (stupid sheldor) in the orchestration app. Will fix tonight and post a new tournament then. Full output logs from the tourney are available at - https://raw.githubusercontent.com/eoincampbell/big-ban...

why didn't we see that sooner?
 
0
Q: client-side api design

StrandedPirateI'm working on a client-side Api for my Asp.net MVC application and I'm not quite sure I've got the code right. This Api allows me to call server-side action methods via ajax and I've designed it to have a similar call syntax like jQuery uses. Is the variable HomeActions._ajaxSettings static the...

 
And I've posted my first meta question.
 
0
Q: Convert a Doubly Linkedlist into balanced binary search tree in place

JavaDeveloperGiven a Doubly Linked List which has data members sorted in ascending order. Construct a Balanced Binary Search Tree which has same data members as the given Doubly Linked List. The tree must be constructed in-place (No new node should be allocated for tree conversion). This question is attribut...

 
7:10 PM
You @Jamal ized it? Huh....
 
I just got overshadowed by @GraceNote on Moderators Meta
lol
 
This is my first time participating in a shiny new site. A little intimidating, too.
 
that is a good question
1
Q: How should we approach questions about a user's rant against a moderation action?

JamalAlthough this site mainly caters to moderators, anyone is still free to contribute. A non-moderator may even have some good questions to ask. However, this may not always be the case. What if some frustrated users decide to complain here about moderation activity on any site, most-likely from ...

BTW.Work
 
7:26 PM
0
Q: LPTHW Ex51 - Your wisdom, please

MikeiLLHere's what I ended up with for Learning Python the Hard Way Ex 51 with image upload (save and display). The app: import web import shutil import os urls = ( '/', 'Index', '/images/(.*)', 'images' #this is where the image folder is located.... ) app = web.application(urls, ...

 
7
A: The Rock, Paper, Scissors, Lizard, Spock Tournament of Epicness

William BarbosaStar Wars Fan - Ruby Screw you, Spock puts ['R','P','L','S'].sample Run it like: ruby starwarsfan.rb

 
0
A: Selecting template from database using organization ids

PhrancisSchema I think your schema looks good, I wouldn't change anything. Nitpicking I think some sections could use line breaks and indentation to make more sense. Also comments throughout would help follow the flow of the code. For example, this: WHILE i <= maximum DO INSERT INTO inner_set (val...

 
love this one
5
A: The Rock, Paper, Scissors, Lizard, Spock Tournament of Epicness

jmiteIocainePowder, Ruby Based off (shamelessly stolen from) the RPS strategy here. The bot looks chooses a guess identical to the Markov bot, but then assumes the opponent has guessed what it's going to choose, and chooses a move to beat that one accordingly. Note that I've just adapted the basic...

 
Hey all, again
 
7:43 PM
0
Q: Very Basic Java Piano

rhysowenI've been reading "Head First Java" and some of the early projects surround basic swing and basic MIDI. So I've put the two together and written a basic "Synthesiser"/"Piano" using what I have learned. I know that I need to add some safety features and there's probably some method optimisation ...

 
@Phrancis why did you delete your answer?
 
Did not work after I tested
 
oh....
 
Back to the drawing board, need to tweak a few things. Turns out you can't make SQL "SQL inject" itself ;)
3
 

 The Town Hall

General discussion for the Community Building Q/A site at comm...
I love that name.
3
 
7:49 PM
I like it as well
 
8:13 PM
Is @200_success around?
 
first upvote on the Moderators site!
 
> Belgian eccentric who sees everything in black and white... because he thinks he's a penguin
 
Walloon
I'd blame the french, really
 
^^
 
@JeroenVannevel It's obviously the french.
 
8:32 PM
why the hell would anyone want to be a penguin anyway?
 
@bazola I don't know, but I'm excited to see Kev Smith's Tusk.
 
@bazola Penguins are the mascot of the school where my daughters went to high school.
 
Tux is a penguin
 
@AlexL Hi
 
Oh. Just rep capped at 215. That makes up for the crap day at work.
5
 
8:45 PM
0
Q: Threading in AppDomains for quick termination of threads

Abdullah SaleemIs this alright to use this approach to run threads? It gives you the ability to close/terminate the thread instantly even it is running a time consuming synchronous method like WebClient(Download funtions). public class Processor:MarshalByRefObject { private AsyncOperation _operation; ...

 
@200_success I noticed for , you have a score of 109, yet don't have the tag? Why is that?
 
@AlexL Not enough answers (20 required).
 
Ohhhhhhh I forgot about that requirement
 
@Donald.McLean but does that make you like them or want to be one? or come back in the next life as one?
 
I could think of a lot worse things to come back as
js
 
9:00 PM
Guide with the Staff, don't strike. — Malachi 34 mins ago
 
@bazola Well, for starters, it's an all girls school. But, no.
 
@Phrancis made the newsletter.
 
Yay!
 
Hey @Phrancis, do you know if you can test two things in a When statement.
Like
 Case
      When A = a and B = b Then
 
Pretty sure that would work. May want to wrap your two conditions in parentheses though.
 
9:09 PM
you can
the "and" has lower precedence than =
and anyway "A = a and B" probably doesn't mean anything in SQL
 
It really looks like this. Hope it works. Here we go. Looooonnnnnnggggggg running query.
CASE
	WHEN (cycSum.CYCLE = @lastcycle) AND (cycSum.Team = 'ISE') THEN 1
	ELSE 0
 
@DaggNabbit It might actually do, with type coercion, I don't know if it's as bad as Javascript though
 
@skiwi now you got me curious
@skiwi the JS thing is annoying... someCondition && (foo = bar), yuck
but that's a different operation... == works fine in JS, same as = in SQL
I like the way Lua handles it, someCondition and (foo = bar) is just an invalid expression by itself... can't have expressions floating around that aren't part of statements
 
9:26 PM
Do someone here is familiar with play framework ? And BTW hello everyone
 
9:39 PM
1
A: Optimize sorting of Array according to Distance (CLLocation)

nhgrifWinston's answer points out some improvements to your algorithm. There are other ways in which we can slightly improve the speed of this. In Objective-C, for loops (and while and do...while) loops are handled one iteration at a time and the exit condition is checked on each iteration of the loo...

 
Revival!
 
Monking!
 
I'm not sure how I feel about this comment. For now, I'm simply not replying to it...
all valid points, the task given was to reduce if/else blocks so with your notes taken into consideration is my revision sufficiently executing the same way? — erik 5 hours ago
He's asking me if his new code is performing with the same results as his old code.
Which, it does look like it is, but by even commenting on that question, I'd essentially be making his question off-topic... because his code should be working to the best of his knowledge.
If I spotted a non-obvious flaw, I'd point it out sure...
 
@Mat'sMug Monking.
 
is this a stupid question to post on this question?
what if you have a line of 5 points and a sub-line of 3 points where the first and the last points of the line are not part of the subline? will this program say that the sub-line is not part of the line? — Malachi 26 secs ago
 
9:55 PM
when given a problem, how do you go about solving it? what is your methodology?
 
@nhgrif That seems about the right response
@fscore that seems like an odd question, for this chat room.
 
where can I ask that question. Sorry new to chat rooms
 
@fscore could you elaborate?
 
I want to talk about problem solving skills in general. Which other chat room would be appropriate to ask that question?
 
@fscore How about philosophy.se
 
9:57 PM
You might catch me into going deep into that question when I'm drunk but otherwise there's no way I'll ever be interested enough in such a general question
 
Philosophy seems like a good place...
 
Other than that, I can't imagine such a broad question would be appropriate on any SE site
 
Ok thanks. I will make it more specific then on the link
 
but, read their help center: philosophy.stackexchange.com/help/on-topic
 
0
A: Simplify several boolean conditions java

Rod_AlgonquinYou can use regex for this using the matches method of the String sample: String s = "The wold is big"; if (s.matches("(.*)(is|are|was|were)(.*)")) { System.out.println("lawl"); }

Really.
 
10:01 PM
The wold is big? lol lawl
 
0
Q: Reviewing code rewrites

nhgrifObjective-C code clean up This question is asking for a review of a code rewrite. I feel like the code snippet above "My Review" is irrelevant and potentially distracting. However, the user has included it because, as part of his question, he's asking whether or not his rewrite produces the sa...

 
@Mat'sMug Mind if I ask to hold off any upvotes? I already capped today.
 
TTQW see you all from home in a bit
 
3
Q: Reviewing code rewrites

nhgrifObjective-C code clean up This question is asking for a review of a code rewrite. I feel like the code snippet above "My Review" is irrelevant and potentially distracting. However, the user has included it because, as part of his question, he's asking whether or not his rewrite produces the sa...

 
21
Q: Gun Control vs. Drunk Driving

MalachiI just read "Is 'guns don't kill people people kill people' a good argument?" and it reminds me of another argument. I would like your opinion on whether or not it is a good argument. Gun Control is like trying to reduce drunk driving by making it tougher for sober people to own cars. I don...

someone mentioned the philosophy site?
:)
 
10:07 PM
@Mat'sMug - I am close to cap, and could help you unburden your load.
 
@Mat'sMug I'm not even near the cap. But you could help me get a little closer ;)
 
1
Q: ISBN missing number solver

tintinmjThis is a programming contest question. Question as follows Problem Definition An ISBN (International Standard Book Number) is a ten digit code that uniquely identifies a book. The first 9 digits are used to represent the book and the 10th digit is used to ensure that the ISBN is corre...

 
don't help @syb0rg, help me out @Mat'sMug!
 
lol
 
my new answer on MO got downvoted with no comment?
 
10:17 PM
Have you been to the hammer chat?
 
a little bit
why were they talking smack over there?
TTQW anyway.....
I think I might have fixed the issue with my service so I can test it heavy tomorrow and implement it after work tomorrow
in the test environment of course
and that case looks good
Thank you @Mat'sMug Santa!
did that work?
 
Zombie killing in progress...
 
Santa!!! Thanks
 
@ckuhn203 I think I did upvote one or two by accident :/
 
10:42 PM
@Test
public void findAllTaskProjectNameNotNull() {
	List<Task> allTasks = Task.find.all();

	for(Task task : allTasks) {
		assertNotNull(task.project.name);
	}
}
 
0
Q: Find union and intersection of linkedlist

JavaDeveloperFind the union and intersection of linkedlist, given that elements dont repeat in a single linkedlist. This question is attributed to GeeksForGeeks. Looking for code-review, optimizations and best practices. public class IntersectionAndUnionLinkedList<T> { private Node<T> first; private...

 
I was like why is my test passing it should not be passed
Well DUH I don't have any data
I'm dumb
4
Nice star!
 
0
A: Randomizing and mutating algo class - functionality

JamalIt is a bit hard to tell what algo does. For one thing, some of its data members are all public, but they should all be private. There's also quite a bit of inline code, making it hard to read. For this, I'd recommend putting the implementation details in a separate file, and just have declara...

 
Thanks!
 
This code is gonna take some work, but this is a start. Unfortunately, it appears that the OP hasn't made too many changes from the previous review.
 
10:49 PM
head-shot!
 
This is from some time ago and I'm not working on it anymore. I actioned much of the style feedback, but some I preferred to leave as before. — alan2here Mar 27 at 19:00
And it looks like you're gonna hear it again.
 
adios fellas, heading home
 
I can't reproduce my bug in test.
 
Perfect, it works ;-0
4
 
Well in my test yes :P
 
10:55 PM
@bazola later
 
I'll code all my application with tests ! That should be a good idea!
 
11:10 PM
0
Q: Program to find dollar words

mcgyver5A dollar word is a word for which the sum of the values of the letters adds up to 100 ($1.00). "a" has a value of 1 and "z" has a value of 26. Special characters such as apostrophes are ignored. First try looked like: import string valMap = {} for index,item in enumerate(string.lowercase): ...

0
Q: Function wrapper like std::function that uses "small buffer" (stack) allocation

StackedCrookedMy Function class is similar to std::function but uses stack allocation instead of heap allocation. This code uses some features (placement new etc) and it seems rather delicate so hence this review request. I have one test that causes a segmentation fault with clang++ (see below). #include <c...

 
Home alone tonight... MySQL, it's you and me in the ring, and you're going down.
 
@ckuhn203 I'm not completely sure it's nutcase-grade overkill to do what I did with my VBA app. ...is it?
2
I mean, I think I'm liking it... very much!
Just noticed, localization isn't fully implemented; I shouldn't have these hard-coded strings in the presenter...
 
11:28 PM
@Mat'sMug you're getting good with string functions and MySQL I assume... perhaps give skiwi's post a try sometime :D
I should have a good answer on it, I tried one thing but it didn't work, now I got a better idea.
Converting an array into a column turned out to be more challenging than expected, it turns out
I thought I'd be able to "SQL inject" the array into an insert into, surprisingly MySQL did not let me inject it. I should try with PHP next time, seems to work good at that :)
 
Injecting SQL doesn't strike me as something hard to do with PHP... ;)
 
Of course it's a psychotic level of overkill @Mat'sMug. You've basically written an entire VB6 app inside of an Excel workbook.
2
It's awesome though.
 
Shame MySQL, unlike every other major RDBMS, doesn't have an array data type ;P
 
Question though, have you looked at the newer options for working with the office suite in c#? What is it? VSTO?
 
VSTO would have been a no-brainer... if I had a VS license at work :/ ...actually with VS I wouldn't have done that in Excel at all :)
 
11:36 PM
Speaking of psychotic, am I overthinking this?
1
A: Does this FizzBuzz code correctly follow SRP and unit-testing?

ckuhn203I know this is an old post, but it got bumped and I noticed this oddness: public string Print(int number) { if (fizzChecker.IsFizz(number) && buzzChecker.IsBuzz(number)) { return "FizzBuzz"; } if (fizzChecker.IsFizz(number)) { ...

Have you worked with VSTO at all? I should probably look into it.
 
I have, it's nice, but most of the time plain VBA is a better alternative, given the killjoy overhead.
 
The killjoy overhead?
 
Managed code (.net) + COM interop is a PITA if you need any performance
 
Now I understand why my tests were working stackoverflow.com/questions/18275638/…
 
Ahhhh. Yeah. That is a lot of overhead. :-/
Hey @Marc-Andre!
 
11:43 PM
Hey @ckuhn203
And I just found out that I leaved a comment on that particular question!
 
Hey @all!
 
Hey @AlexL !
@ckuhn203 whenever I see SRP I hear "Suggested Retail Price", what does it actually mean in programming?
 
So, I want to post my code up for review, but I'm not sure it will attract any reviews :/
 
@AlexL post it here and tag a few people you know like to review this type of language
 
Single Responsibility Principle?
 
11:49 PM
^^ ah
 
@AlexL Well you should post your question, maybe someone new will want to review it !
 
I'm with you @Phrancis. I see Suggested Retail Price too.
 
@Phrancis I think it's a little long for chat? (~500 lines w/ comments)
 
The worst thing that happens is another zombie. It'll be ok.
 
No, I mean a link to your question @AlexL :)
 
11:51 PM
@Phrancis Oh oh, I see :)
 
Although @CaptainObvious does a mighty fine job of doing this for you (though @CaptainObvious usually provides the version)
Oh oh... 8 minutes until gotta find something to upvote
 
@ckuhn203 I don't think pseudo-code should be up for review until it's written into actual code...
Though looks like @marchon already answered...
 
@Phrancis Isn't the assembly part the one to be reviewed and not the pseudo-code ?
 
Well it is code.. OP is asking to validate against the pseudo-code, which I guess is off-topic... but given it's answered and the answer says the code is correct, I'd just leave it alone.
 
11:57 PM
@Mat'sMug what am I doing wrong? (MySQL)
SET @test = '(1003, 1005, 999)';
SELECT @test
^^ returns null
 
woah
Missing semicolon at the end? (that's not it)
 
Actually... that was it -.-
 
lol
 
Wow.
 

« first day (451 days earlier)      last day (3580 days later) »