« first day (769 days earlier)      last day (3233 days later) » 

4:00 PM
the reason that the code exists is not important for being in the scope of this site.
 
@rolfl That makes sense
 
If the code contains vulgarities, or links to porn, or other sites... then it will be removed though
All content has to not only be in-scope to be on-topic, but you still have to follow the terms-of-use.
 
@rolfl The links can always be censured. For example, an infinite popup window generator could be made that opens multiple porn sites.
That kinda would be on-topic.
 
@IsmaelMiguel then you'd get a review saying that it's not flexible enough, that the url's should be parameterized
 
@QPaysTaxes It has been done before....
 
4:03 PM
@Mat'sMug Why?
How can you parameterize, say, p*****b.com?
 
@QPaysTaxes The list would just be a bunch of CONSTANTS so in the end it would not really matter what words were in it
 
^^
 
@QPaysTaxes That makes sense.
 
Also, note that being on-topic, and getting upvotes are orthogonal.
 
You said it 5 minutes ago
 
4:05 PM
@QPaysTaxes freudian slip?
 
@rolfl We cover our eyes and pretend we didn't see that.
 
:seenoevil:
 
@Phrancis Who reviewed it should have said to use the constant PHP_EOL instead of "\n".
 
PHP_LOL
 
4:09 PM
@rolfl I wrote a secondary answer on your answer. Hope you don't mind.
0
A: How well is "malicious" code accepted here?

MastWhen in doubt, I always refer to the on-topic helpcenter. In this case, there is no notion about malicious code (and/or code which could be used in a malicious manner, for those who care about the difference). One could also check the "What questions should I avoid asking?" page, where malicious...

 
2 upvotes in less than a minute
 
My guess would be that the operator implementation existed prior to the addition of IEquatable to the framework. When that was added, they chose to duplicate the operator code rather than rewrite it (perhaps a policy of avoiding changing old code?) This is pure speculation, though. Could also be an extremely minor optimization consideration for more aggressive inlining, but wouldn't strike me as a particularly worthwhile reason for code repetition in this case. Or it was just a mistake and nobody in code review thought it was bad enough to be worth the effort to fix. — Dan Bryant 52 secs ago
 
how did this earn 3 upvotes just... today?? and now it's off-by-one...
 
0
Q: Template design for static and dynamic sizes

VincentOriginal design Consider the following class: template <class T = std::size_t, std::size_t N, std::size_t M, std::size_t K, class Allocator = typename std::conditional<N*M*K, void, std::allocator<T>>::type> class array3D {/* Contents */}; Which repre...

 
1 min ago, by Mat's Mug
how did this earn 3 upvotes just... today?? and now it's off-by-one...
 
4:12 PM
thanks santa!
 
^^^ that's how
 
@rolfl but... 3 random upvotes on the same old answer feels like the universe is having a problem with its RNG...
 
It's PRNG ... remember
 
@QPaysTaxes Which one is it?
@QPaysTaxes Well, at least they were accepted.
 
@QPaysTaxes shouldn't be that hard, I've seen a lot of check marks on non-voted answers...
 
4:19 PM
@IsmaelMiguel That ^^
 
That's +25 reputation right there
@QPaysTaxes Sorry, I always have mine upvoted. I guess people don't want me to get my badge.
 
@QPaysTaxes of course, I haven't earned one yet...
 
"Only" a silver badge? I happen to think silver badges are quite nice ;)
3
 
Who cares about badges?
@QPaysTaxes ?
Oh.
Well, I don't care.
 
@QPaysTaxes lol
 
4:21 PM
I see guys with 150 reputation and a gold badge
 
@QPaysTaxes He has what, 300 bronze?
He deserves them, so many good answers.
Darn.
I'm at 0/5/23 at the moment and I'm totally content with that.
 
I have 19 copper, the last one was Tumbleweed
 
@IsmaelMiguel Those are nice to get, means you shot down a resilient zombie.
@QPaysTaxes Ah, confused the two.
 
@Mast Tumbleweed is a Zombie... I'm a zombie factory...
 
a zombie factory? has to be written in right?
 
4:26 PM
PHP and Javascript...
But there's one question that I have a bit of dificulty to handle
 
crabs
 
4
Q: Quick CSS style generator

Ismael MiguelOne day, I was thinking: Wouldn't it be nice to set a class and have all the styles defined? And that is exactly what I did: a PHP file that generates CSS with pre-defined styles. So, for fun, I built the following: <?php if( @is_file($file = basename(__FILE__, '.css.php') . '-config....

 
Greetings, Programs.
 
greetings, user
 
It has only 1 answer, but the answer is only about the concept, and not the code.
@QPaysTaxes Yeah, I do.
Somewhat.
 
4:28 PM
Hello, @Donald.McLean
 
It basically generates a CSS with some pre-defined styles.
And you only apply classes to the elements.
It was a goal to make it customizable.
 
@Donald.McLean Greetings, Star Gazer
 
Not all styles are desired.
But, the only answer has 0 about the code.
 
@Mast Not me, I'm just an application developer.
 
Only the concept.
It looks good to me too, but I still don't know what someone else things.
 
4:31 PM
@Donald.McLean I know, that's what you keep telling us.
 
bye @all
 
But your a moderator on Astronomy.SE and we're star happy, so it still applies.
 
Sicne the answer that is in the question doesn't help in anything, but it has upvotes, I have no idea how to handle.
*since
Meh, I understand the frustration.
 
@QPaysTaxes Don't.
 
He's insulted with my concept.
 
4:35 PM
He raises valid points in a not that rude manner.
 
I don't know if I flag it as "Not an answer" or downvote it or something else.
 
Feel free to downvote it if you don't agree with him, that's what downvotes are for.
But flagging it won't do anyone good.
 
@IsmaelMiguel just upvote for ur turn , thats what the community do , upvote any dominant upvoted thread without selfasking why or what for
 
@Mast Not flagging won't make any good either
 
do it without telling it
or there s a flag button , if u see
 
4:37 PM
@Agawa001 You mean, like a dumb machine?
@QPaysTaxes Let me troll the troll
 
@IsmaelMiguel Flags are only useful if there's something wrong with the answer. I don't see anything wrong.
@rolfl @Agawa001
 
@Mast The answer doesn't answer the question.
 
I'm out till he's gone, cya in half an hour or so
 
again :p
 
@QPaysTaxes PHP is a serious language. Like Javascript and C.
It just has a bad fame for being a little insane in some points.
 
4:40 PM
Code optimization questions should go on codereview.stackexchange.comMarc B 56 secs ago
 
And all the $dollarSignVariables get annoying
 
@Phrancis that's not PHP-specific
 
@QPaysTaxes Try echo '9999999999999999999999999999999999999999999999999999999999999999999999999999999‌​999999' == '1.0E+85';
 
@Mat'sMug No, but it's specifically annoying ;)
 
@Phrancis Could be worst.
 
4:42 PM
@IsmaelMiguel I don't see anything wrong with that answer
 
@Mat'sMug The answer in the question doesn't answer anything about the code. Only the concept.
 
isn't that an aspect of the code, what the code is doing?
high-level "concept" answers are fine - it's high-level "concept" questions that aren't.
 
0
Q: Recursive permutation of an array

Joseph NieldsBasically, this is a recursive function to generate all of the permutations of an array. The idea is this: recursive case: start at the specified array index, and make a case for starting the next index (incremented one) for each of the indexes that come after the specified index by swapping th...

 
@Mat'sMug But I still don't know if I'm breaking any pattern or anything.
 
@IsmaelMiguel cimmanon is very knowledgeable with web dev stuff. I looked at the answer and I think it addresses some important points. Someone else might review the code specifically
 
4:46 PM
as far as is concerned, indeed. but you know where it stands wrt
 
@Phrancis I know he addressed good points (I don't like the way he starts).
@Mat'sMug The review request isn't for the output.
 
then why did you tag it with if the is irrelevant?
 
^^ that
 
The chat keeps doing that! ^ there
Well, I did because it is what it generates.
If that makes any sense
Or was it a bad tagging job?
 
4:50 PM
it might not be reviewing the part of your post you're interested in, but it's a fine answer IMO. if you don't like it, you should downvote it. What I don't like is the mini-flame-war that's starting in the comment thread below it.
@IsmaelMiguel I think the tags are fine, the question is fine, and the answer is fine.
 
@Mat'sMug Agreed
@cimmanon This is being discussed in The 2nd MonitorPhrancis 15 secs ago
 
I also think you'll get another answer eventually, more focused on the side of things.
TFL, bbl
 
0
Q: Better way to extract a list of categories from a list of objects containing categories

user1697748I'm sure there must be a better and maybe more performant way of doing this public static List<Category> ExtractCategoriesFromModules(List<Module> modules) { List<Category> categories = new List<Category>(); foreach (Module m in modules) { if (categories...

 
@Mat'sMug The truth is that I'm not that good on making reviews, but am a good zombie factory
I would review my own code if I saw anything bad (like how I did with codereview.stackexchange.com/questions/90938/…)
But I don't.
 
@IsmaelMiguel - hmmm too-quick on the tab. It may not be the most frienly answer, but it is not throwing up any real red flags for me either
 
4:54 PM
Also, the flaming war isn't that much of a war.
That was just me trying to place him on his place: outside the rage.
But, that has proven to be a fail.
 
@IsmaelMiguel you're hard on yourself
 
@IsmaelMiguel I think you might be reading too much into it. "I am horrified by the very concept of this code" is not meant as an offense at all, from how it reads
 
I can see how it could be misinterpreted, and that user has a number of "alamist" answers too. It's his style.
 
It's a neat trick to do that with PHP, sure, but it kind of defeats the whole purpose of CSS
 
120-some @SimonAndréForsberg's on the wall... closing in!
 
4:58 PM
Hey @cimmanon
 
Huh... I was planning on staying up after 00:00UTC for badge ceremonies, but it seems I don't need to.
Probably a bug... somewhere.
 
@Phrancis hello. i thought it was weird that i got a bunch of rep on that answer all at once >.>
 
@cimmanon Would you please clarify for @IsmaelMiguel what your intentions were? It appears he finds the beginning phrase of your answer a bit ... personal?
4 mins ago, by Phrancis
@IsmaelMiguel I think you might be reading too much into it. "I am horrified by the very concept of this code" is not meant as an offense at all, from how it reads
Feel free to read up if you want more detail
 
Hi @SimonAndréForsberg!
 
5:03 PM
Sorry the delay
Yes, I might be reading too much into it.
 
@Phrancis of course my intent was not to insult. for me, the end result of that code is on the same level as storing passwords for user accounts in plain text. no matter how good the implementation is, the result is all kinds of wrong
you cant see them now, but there were initially comments pointing out that this was a bad idea in an attempt to get the author to clarify why they would want to do this in the first place
 
And I told multiple times that it was for fun.
I did just because.
 
That's a great analogy, I can totally see that
 
@IsmaelMiguel why are you dragging this up again now?
 
^^ that
 
5:07 PM
@cimmanon I'm dragging because I was talking about zombies
 
Because it was "for fun" doesn't mean it doesn't deserve a serious answer
2
 
And I saw this old question I did and that I didn't knew how to handle your answer.
It only talks about the concept.
Yes, I get you don't like the concept
And yes, you made good points.
But none of them helps me in making a better code.
Better CSS (output): yes
Better PHP (generator): no
That's why I 'dragged' it.
It was just to ask how I should handle your answer.
 
Shouldn't we move this to [codereview.stackexchange.com]? — John Brac 8 secs ago
 
@Phrancis ah, that explains the +30 rep on PCG...
 
@IsmaelMiguel I think perhaps we should all just move on? (and clean up the comments on the answer)
 
5:14 PM
@Phrancis How should I handle @cimmanon answer?
Honestly, that's the only reason why I spoke about it.
 
That's up to you. I saw a few things in the PHP that looked odd, I might have a look shortly.
 
I am going to go with that, and "make it so." @Ismael - if you don't like his answer, or feel it is not vaaluable, down-vote it. If you like it, upvote it. If you think it addresses the major points in your question then accept it.
From a moderation perspective, the only issue here is the comments.
If you are looking for additional answers, or ones that address more detail, then offer a bounty, etc. to get more visibility
I don't think you will succeed, or even be right, to try and convince @cimmanon to change, or remove his answer.
 
@rolfl Honestly, the answer is and isn't useful. The answer answers and doesn't answer my question. The answer has good points, but points that don't help me.
 
So then don't vote at all ;-)
 
If he added a tiny bit of a review about the code, I wouldn't ask anything and would just accept it
The current state of the question doesn't let me do anything with it.
 
5:17 PM
By the way (and this is related), a review of the concept is great. Have a look at my recent question: codereview.stackexchange.com/questions/93431/…
The answer there.... tells me that my whole concept is redundant.
it's a great answer.
It's like.... you do know that's been done before.... right?
 
It addresses the code as well.
 
0
Q: Plotting Non Continuous Functions And A Real Scatter Example With Bokeh Python 3

TobalI've written a python 3 code using Bokeh. With this code you can learn howto to plot math functions and a scatter plot with regression linear functions in a webpage. The target is how to plot discontinuous functions, linear regression problems in a webpage, and how to separates the differents pl...

 
an answer does not need to address everything to be an answer
 
But should answer the most important
 
@IsmaelMiguel No.
There's no rule stating such.
It may be preferred, but the moment you post your question it's out of your hands.
 
5:23 PM
@Mast I said should, not must.
 
We're free to comment on it whatever we want.
@IsmaelMiguel Yes, and that's not true. It should not. It's allowed to, perhaps preferred, but should is too strong.
Sometimes you need 3 reviews to get what you want and all 3 can still be very valuable.
CR is slightly different than the rest of the SE sites in that regard.
Give a man a fish and you feed him for a day; Teach a man to fish and you feed him for a lifetime.
The review tried the latter and you only accept the first.
 
@m
^ it keeps doing that!!!
 
Auto-complete is getting in the way?
 
@Mast I'm not saying it isn't valuable.
 
when you type @m it pops up a list of people's names who start with m
 
5:28 PM
I'm saying that, based on what I expect, it isn't usefull.
@rolfl It isn't getting in the way: it is sending when I press space too early, on Firefox.
 
@IsmaelMiguel The answer is within the scope of acceptable answers. The only valid conclusion left is your expectations weren't.
But let's leave it at that, before we get a on-topic/off-topic war.
 
@IsmaelMiguel i am going to have to agree with rolfl, if you want to elicit a more useful answer, you should post a bounty. i do not expect my answer to be accepted, even if you dont get any additional answers
 
You say that like you don't want to agree with me ... ? :(
 
0
Q: Removing accents from certain characters

EBrownI have a method that I am using to remove accents from certain characters. The problem is the massive slew of characters I am expected to work with. I have to, basically, remove accents from all Latin characters that fit within the 26 English Latin characters. (A through Z.) Performance is a very...

0
Q: How can i compare two columns in two different rows in python?

upendraI want to go through each line of the a csv file and compare to see if the first field of line 1 is the same as first field of next line and so on. If it finds a match then i would like to ignore those two lines that contains the same fields and keep the lines where there is no match Here is an ...

 
5:30 PM
...
 
keep in mind that sometimes there is always an unwritten answer: your code is good as is and there's nothing to improve
 
@cimmanon But that isn't in your answer.
 
@IsmaelMiguel well then i guess that means i disagree with the author of the unwritten answer :p
 
@cimmanon ?
 
I'm calling an end to this discussion. Nothing productive is going to come from it.
If you are unsatisfied, I am sorry, but there's nothing that is going to change things in here.
 
5:33 PM
@rolfl The productive thing would be one less question without an accepted answer.
 
0
A: Quick CSS style generator

Phrancis@cimmanon addressed some very good points on the concept itself, so I though I would address the code. $colors I see things like this for example: $colors = array( 'black', 'red'=>array('dark','indian','mediumviolet','orange','paleviolet'), 'green'=>array('dark','light','forest','...

 
Here, let me break stack exchange.....
Huh.... you beat me....
@Phrancis - 4 seconds.
 
Beat you to what?
 
Reload the question ....
 
0
Q: Algorithm to Follow a Point

xiver77This code basically makes the dot follow a certain point on the screen. It consumes a significant amount of computing time in my game, so I'd like it to be best optimized. I wrote this code after quickly reading some pages in a high school mathematics book, so it's unlikely to be a computationall...

 
5:43 PM
> Just so others know whom may not, that's because PHP does automatic type conversion if a string is evaluated as an integer (it sees the 2 in '2string' so when compared like if ('2string' == 2), PHP sees if (2 == 2) ).
 
and @nhgrif says , when really, .
2
 
@IsmaelMiguel I hope my answer addresses your PHP code appropriately.
 
@Phrancis have you figured out the 4-seconds now?
 
@Phrancis It did, and I already commented on it.
 
@rolfl Bounty?
Got my first Necromancer on CR!
2
Meta.CR really...
 
5:50 PM
Anyone out there have any experience with code coverage tools in AppVeyor?
 
@Mast yup
 
0
Q: Mysql subquery optimize

ArockiarajI have mysql query like following. SELECT `str_id` FROM (`rest_tablestr`) WHERE str_id NOT IN ( SELECT SUBSTRING_INDEX(SUBSTRING_INDEX(t.bookingsection_id, ",", n.n), ",", -1) value FROM rest_restaurantbooking t CROSS JOIN ( SELECT a.N + b.N * 10 + 1 n FROM ( SELECT 0 AS N UNION ALL SELECT 1 UN...

0
Q: unpredictable output: Scanner class

CodePshycoThis program is to find out middle index where sum of both ends are equal. But it requires an additional input to display the output. Also, changing the array size results in unexpected output. What's the issue? import java.util.Scanner; public class MatchSum { public static void main(String[...

 

« first day (769 days earlier)      last day (3233 days later) »