« first day (767 days earlier)      last day (3241 days later) » 

2:00 PM
@Lyle'sMug I really disagree with that assessment.
It is a review. It found the bugs.
 
@Lyle'sMug: So who are you?
 
@Nobody That's @Malachi!
 
but didn't assess how to fix them or what to do about. I could sum up what he said in a couple of words
 
Thx @RubberDuck
 
So? Who says a review has to say how to fix it?
 
2:01 PM
"you are an idiot, it's broken" that isn't a review.
 
I think that's an oversimplification of that answer.
 
I want to Edit out the BTW blocks of that answer, they don't add anything to the answer. those are definitely comments
 
No exploding bear traps today guys.... If you don't like the answer, downvote it.
2
 
second paragraph is also a comment
 
Or edit it to improve it.
 
2:03 PM
@Lyle'sMug It's not a nice answer. It's almost evil.
 
Or, just let it go.
 
@RubberDuck Editing it would modify the intent of the answer, which is not allowed.
 
I downvoted and flagged. someone needs a cup of coffee, I already have one
 
We can still introduce the 10th of June as Code Review's official evil reviewers day.
4
 
2:07 PM
I like that idea. Runs off to write the worst reviews ever.
 
@Morwenn Go go meta.
 
I remember writing one review once about a problem statement not being gender-neutral enough. That could qualify.
 
@Mast meh..
 
To this day, I still don't know how it got upvoted .___.
 
that's probably an overstatement
 
2:09 PM
@Morwenn: Link?
 
@Nobody I don't remember. You can probably find it if you look for a Java answer of mine.
 
Mod Note: there's nothing I can see in this answer that requires moderator intervention (although the comments will likely need cleaning up). It is an answer in that it is a review of the code. — rolfl ♦ 15 secs ago
 
@Morwenn probably:
5
A: Speed dating algorithm to select the pair of dates

MorwennComputationally speaking, I don't have anything to add what has already been said. @amon did a really comprehensive review of your code. However, there are some serious sociological and/or ethical flaws in your code. I would say that, genderly speaking, it could be made more generic: Sexual ori...

 
Oh well, this one. Right.
That was a pretty dumb review xD
 
I will wait... I have some code to write anyway.
 
2:14 PM
Hehehe... a JDQ, with an Amon answer:
 
@Lyle'sMug your answer has the same bug in it. Entering a single char will lead to an IndexOutOfRangeException
 
8
A: Speed dating algorithm to select the pair of dates

amonThis code is really beautiful and well-documented. There are very few parts which could be criticized: Don't use objects where they are not applicable. Your SpeedDateCompute class is essentially only characterized by its getPairs method. We might as well make that static, and invoke it as Speed...

> This code is really beautiful and well-documented. There are very few parts which could be criticized:
then goes on to list a dozen problems ;-)
5
 
I only re-wrote the loop, I didn't change it. I translated it to a for loop
 
I know
 
Look carefully. It's not only for the middle element of an odd-length string, it's much much worse. You probably don't see it because you would never, ever write the code like that. — gnasher729 2 hours ago
Am I the only one who finds that overly rude?
 
2:16 PM
I just saw a really bad instance of a while loop. perfect for a for loop
 
I don't remember who said it, but review the code, not the programmer.
 
@Mast That is exactly the kind of condescending attitude that I meant in the first place.
 
48 mins ago, by Gareth Rees
Review the code, not the programmer!
 
@rolfl Thank you.
@RubberDuck Get that crap away from my screen.
 
2:19 PM
Then Let it go
 
This is CR, not SO.
We're not dickheads.
 
Okay. Agreed, but how would you define a bunch of people from chat "ganging up on" an answer like that?
I'd call us a bunch of dickheads.
 
It's called answering fire with fire.
Totally legit.
 
Lol
2
 
@Morwenn Here's a mildly sexist question (lazily using the Lenna test image) with a mildly sarcastic answer:
10
Q: Rotating greyscale images

AlexFor educational purposes I wrote a little piece of code to rotate greyscale images as "low level" as possible, that is, not using any rotate() function, but doing the math. I was wondering if it could be improved in any way, specially in order to achieve better performance. I'm not concerned with...

 
2:24 PM
I found another bug in my code I wrote for that
 
@GarethRees Since the part of the photo used is SFW, I never understood why it's considered sexist. Who gives where it was first published?
I love your answering style though.
Counter laziness with a joke.
 
I dare say that nudity and sexism are orthogonal.
 
We need more jokes.
 
knock knock..
 
@GarethRees: What is lazy about using Lenna?
 
2:26 PM
Lenna or Lena is the name given to a standard test image widely used in the field of image processing since 1973. It is a picture of Lena Söderberg, shot by photographer Dwight Hooker, cropped from the centerfold of the November 1972 issue of Playboy magazine. Nearly one year later, the same photograph can be seen to appear shortly in Sleeper, a science-fiction movie directed by Woody Allen. Given the nature of the image and its source, several academics have criticized its continued use in scientific publications and higher education as both sexist and unprofessional. The spelling "Lenna" comes...
 
This better guys?
0
A: String reversal, capitalize vowels, lowercase consonants

Lyle's MugThis code looks a little silly to me, I would do it a little bit differently to make it a little easier to read private static string ProcessInput(string input) { var output = new char[input.Length]; var desc = output.Length; var asnd = -1; while(asnd++ <...

 
@Mast Wikipedia summarizes the controversy about Lenna. I got the idea of using Fabio from this paper by Deanna Needell and Rachel Ward.
 
@Nobody It's like naming a demo function Foo with variable Bar.
 
@Mast: So? I don't see a problem with Foo and Bar. Even better: It convays the fact that these are only demo function and should not be checked for correctness
 
I think chat is straying into Workplace.SE topic or some other SE sites Topic
 
2:28 PM
@Nobody I don't get the controversy either. Why wouldn't your code be allowed to look at Lenna?
 
@Nobody It's lazy because there is now (unlike the situation in 1973) no difficulty whatsoever in acquiring test images. So why use Lenna?
 
@Mast I'm sincerely tired of living in such a "PC" world. I honestly find the (cropped) image to be tasteful and well done. An artist took that photograph.
 
@Lyle'sMug It's still about style and coding.
@RubberDuck Exactly. Nothing wrong with it.
 
@Lyle'sMug +1
 
@Heslacher thank you
 
2:29 PM
Now if the original was used, different story. But this crop has no problems.
 
@GarethRees: I would not call it lazy. It may be uncreative but obtaining Lenna might even be more work than for other images
 
@Mast I am talking about the discussion of whether or not it is Sexist or unprofessional
 
It's worth reading the criticisms (for example, this piece by Maggie Zug) to understand where the critics are coming from
 
That said, I realize that I failed to introduce the notion of sexual expression in my review, which would have been on-topic for a speed dating problem.
 
@Nobody Could it be considered an ode to the history of image processing?
 
2:31 PM
Probably more than gender.
 
Hey guys
 
Hey :)
 
@GarethRees: Btw. I was not aware of this controversy up to the point were you talked about it.
 
@GarethRees I've read it. I think it's overly dramatic. Deciding not to go into a certain profession because of one picture (which is cropped), that's like not travelling to the USA because they promote obesity.
It's a caricature.
 
I tend to agree. That's the kind of controversy that makes the problem grow bigger.
 
2:35 PM
there are some really good answers on that question, I am glad that I took the time to read them all...lol I expanded on @Snowbody's answer though.
I don't know, what is worse, what Gnasher did? or this ▼▼▼
And? [more chars to reach minimum comment buffer] — Adam Cameron 22 hours ago
2
I kind of want to flag that as well...
 
@Lyle'sMug Funny how you're talking about capitalisation there. Your answer is missing a few capitals and interpunction ^^
 
looking up "interpunction" I am a programmer not an English major
 
Punctuation. Periods and such.
 
@Lyle'sMug !.';:
 
I think your question should be placed codereview.stackexchange.com instead. — Robert Jacobs 17 secs ago
 
2:41 PM
@GarethRees I can see that. It really doesn't have a place in a high school class room. I was thinking University level photography. Kids should be grown up enough about such things by then.
Because, ya know, it's art whether you like it or not.
 
@Mast those are punctuation marks.
interpunction is slightly different
 
@SimonAndréForsberg: Thank you for Duga that solves a big problem
5
 
@Lyle'sMug TranslationError
 
all good, they are very similar, almost the same
 
I don't think interpunction even exists, my English library doesn't recognize it.
 
2:42 PM
@Nobody That's fine: there's no reason you should have known about it. Now that you do, you have the option: continue using Lenna (if indeed you ever did), or use other test images.
 
Noun: interpunction (plural interpunctions)
  1. The insertion of points between words or sentences; punctuation....
 
@Lyle'sMug My English spelling checker is officially an ass.
2
 
@GarethRees: I am not attached to this image and can't remember ever having it used myself. However, I saw it in my Image Recognition and Machine Learning classes
 
no onebox for a dictionary entry? oh man, what is this world coming to?
 
2:43 PM
@Mast Obviously it was not just the one use of Lenna that caused some young women not to go into computing: Maggie Zug gives the use of Lenna as just one example of a discouraging patten of behaviour
 
@GarethRees It's a male dominant world. The only way to change that is from the inside, by getting more woman into software and other technical studies.
 
that dictionary needs you to pay for the definition to that word...really?!
 
Definite catch 22 situation.
Or rather, chicken and the egg.
 
When I studied for my BSc, there were no woman in my year. Or in the year before. Or before that.
The problem simply didn't exist.
 
0
Q: ASP.NET View Model / Identity Model

Tyler HardenI'm working in MVC5/WebAPI using ASP.NET Identity, with a custom storage provider for my UserStore, custom ApplicationUser inheriting from IdentityUser, and a pretty expansive configuration in the project (both MVC5 and WebAPI endpoints in the same project). I've been working on the user managem...

 
2:45 PM
In order to get more women into tech, you need to make the environment more friendly. To make the environment more friendly, you need to get more women into tech.
 
There were less woman in Electronics than into Informatics.
 
What we really need are more brave women willing to just do it, much like there was in the 80s in other fields.
 
@RubberDuck Or don't try to force the world to be more friendly and just Let it go.
 
So say we all.
 
Funny how we all agree and still argue about it.
Must be politics.
 
2:47 PM
Could someone with proper reputation create a neo4j tag?
 
@TylerHarden You have a question in mind?
 
I would but I'm running a little short and I have a neo4j-related CodeReview post
 
@TylerHarden Link to the question and we'll add it. You can make a suggestion for the wiki later.
 
Yes, I'm about to post it, the code is primarily C# but it contains in-line Neo4j queries.
 
tags can't just be created on the fly, they only exist if they're on a question
 
2:48 PM
create the question the tag can come after... ;-)
 
Ping us with the question after you create it and one of us will create it. race to create it so we can a shiny badge some day.
 
(5 regulars race to create the new tag)
3
 
Beat you all to it.
 
I want some type of credit o_O
 
2:49 PM
ducky wins
 
I'm keeping my other tag suggestions to myself from now on. Lol.
 
@TylerHarden, can you do us a favor and submit an edit for the tag wiki?
 
@RubberDuck Sure, can you point me in the direction? I've yet done anything wiki in the SE community.
 
@TylerHarden That's just the system.... it sort of sucks, but you need the rep to make the tag, so no credit until you can
 
Welcome to Code Review @TylerHarden
2
 
2:50 PM
but, rep is relatively easy to get in this stack... so it won't take you long.
 
Click the tag and it will tell you that it "doesn't have a wiki yet. Would you like to create it?"
 
@Lyle'sMug Thanks. I've been here before, but fell off for a few months due to life.
 
user image
4
 
@TylerHarden it happens. I still don't have my Fanatic Badge yet
 
@Mast bad ass
 
2:51 PM
Well shit. Actually I need another tag. neo4j is the database, but "cypher" is the query language
I'll do wiki's for both, but to be correct in the wiki excerpts they need to be separate
 
@TylerHarden facepalm
We recently had a clean-up, just glad you didn't tag it with that.
@RubberDuck Your new avatar?
 
@Mast I just woke up, I'm still booting.
 
@Mast maybe
 
0
Q: Facebook-esque User Search

Tyler HardenLooking for some opinions on improvement/technique of code in C# calling to a Neo4j Database to perform a multi-faceted query looking for users. My goals were to lookup by first/last name, phone number, birthday, and e-mail address. I wanted case insensitivity, and I want the query to respect cer...

 
I have a torch somewhere if you're more into action GIFs.
 
2:54 PM
No takers on the Cypher tag?
 
give me a second
 
no not really...
 
@Nobody I don't think the problem is entirely solved, there's still a big amount of bad recommendations incoming. It certainly makes the problem easier to handle though.
 
@TylerHarden Cypher seems ambiguous. If you make that a tag, it will be abused.
 
@SimonAndréForsberg: That is what I mean. Before this we came to late upon these bad recommendations.
 
2:55 PM
sql is ambigous
 
@Mast well.. we got encryption, so it should be fine..
@Lyle'sMug TS
 
sql can be postgre, t-sql, mysql, etc
 
@Lyle'sMug Your mug is ambiguous.
 
Ambidextrous! no to be confused with ambisextrous.
 
2:56 PM
@Lyle'sMug Ambidextrous, you're missing a B.
 
awwwww out of stars before noon
3
 
Cipher is for encryption, as long as has a good wiki and description we shouldn't have an issue
 
@TylerHarden
 
there isn't any yet
 
Oh, wow a downvote. Thanks to whoever. — Heslacher 18 secs ago
 
2:58 PM
CQL is already Cassandra, Cypher was named Cypher because it was available.
Do we just need excerpts or do you want like an entire Neo4j CodeReview Tag Wiki Article?
 
Thanks alot @Schnouki - yeah i tried for a while and then gave up. Did exactly the same as you suggested. It just made code review a bit difficult for others. But putting a comment explaining that was the best way to do that. — fayyazkl 41 secs ago
 
@Heslacher Compensated.
 
;-)
 
@Nobody indeed. Feels good to be able to catch bad cross-postings before they happen.
 
@TylerHarden Make it comprehensive.
TTGTH
 
3:00 PM
see you
 
@Mast Time to go to hell?? sorry to hear that...
3
 
LOOOOL
 
Greetings, Programs.
 
TTGP
Time To Greet Programs
 
How do I mark a tag as a tag in the wiki. I want to link to cypher from neo4j.
 
3:12 PM
@TylerHarden I'm not sure if the markdown works right in the wiki, but it would be [tag:cypher]
 
@RubberDuck Worked. Thanks!
 
Cool
You're welcome.
 
> There is no tag wiki for this tag … yet!

Tag wikis help introduce newcomers to the tag. They contain an overview of the topic defined by the tag, along with guidelines on its usage.

All registered users may propose new tag wikis.

(Note that if you have less than 4000 reputation, your tag wiki will be peer reviewed before it is published.)
@TylerHarden I think you need to click that "ok" button ;-)
 
@Mat'sMug: I think you need to click that edit pending link
 
3:19 PM
ah, here
 
If you have a different problem than the question asked here, please create your own question where you can refer to this but make it clear how yours differs. If this code is working but you would like feedback on improving it then you actually want to post on Code Review, not Stack Overflow. — SuperBiasedMan 58 secs ago
 
@Mat'sMug Would you say that is a decent tag wiki, or should I add more flesh?
 
@TylerHarden Looks good to me
 
I find it's a very good tag wiki. @rolfl approved it while I was still reading
 
I did .... sorry
 
3:24 PM
THanks guys. Going to do Cypher now.
 
make sure the excerpt is crystal-clear about its proper usage - I smell an abusable tag with that one
 
"Cypher Query Language is the official query language for the Neo4j graph database.:
From their website: "Cypher is a declarative, SQL-inspired language for describing patterns in graphs. It allows us to describe what we want to select, insert, update or delete from a graph database without requiring us to describe exactly how to do it."
Here we go, suggested the wiki edit: "Cypher, Neo4j's query language, is a declarative, SQL-inspired language for describing patterns in graphs. It allows us to describe what we want to select, insert, update or delete from a graph database without requiring us to describe exactly how to do it."
Thanks to whoever approved that. Just earned the privilege to edit wikis. Go figure.
 
lol
 
@TylerHarden that is awesome.
 
0
Q: Proper use of timer in windows service

user300244I have following code to use timer (System.Timers.Timer) in windows service. The goal is that new time handler should not occur if previous one didn't finish its job. Here is how I achieve this: protected override void OnStart(string[] args) { try { // ...

 
3:38 PM
If were to start getting abused, I'd simply recommend a change to at that point.
 
3:50 PM
0
Q: Longest Increasing Subsequence recursive

puwiThe problem: Given a integer sequence a1 ... an (-10000 \$\leq\$ ai \$\leq\$ 10000). Where n (1 \$\leq\$ n \$\leq\$ 100),the size of the sequence, is a given number. Find the number of increasing subsequences with length equals to a given size k (1 \$\leq\$ k \$\leq\$ n \$\leq\$ 100). An incre...

0
Q: Speedup for Project Euler 44

StefanI'm trying to solve the problems of Project Euler with Haskell within less than 10s with optimized code (ghc -O2). Unfortunately, I'm struggling to find a correct algorithm for Problem 44, which proves the correctness of the algorithm without setting a predefined upper limit (setting a limit and ...

 
Monking
 
The two songs are actually two really different versions of the same song.
 
@Morwenn You listen to odd stuff.
 
@rolfl I only ever listen to good stuff.
 
4:05 PM
Well, that's self-contradictory.
 
That said, the notion of "good" tends to evolve with the years.
But I tend to listen to odd things, that's right. I love musics that blend genres.
 
One of the best parts about moving is that there is a radio station here that plays mostly 90s rock/alternative
2
 
@nhgrif TS for that
and TTQW
thanks for RSA
 
I often listen to a radio station that tends to play pretty random things. But generally not too violent things.
I would really like a radio station which actually plays almost anything.
 
4:15 PM
College radio always does that. Pure randomness.
9/12 Joel test
 
College radio are amongst the best but still not random enough.
 
@JeroenVannevel: Obviously they use the wrong formatting style ^^
 
It lacks some drone, some atmospheric stuff and some black metal.
And baroquecore too. They generally lack baroquecore.
 
How do I get an edit undone? Someone removed and from my post.
 
Handled
@EthanBierlein A tag has to be created some time.
 
4:20 PM
@SimonAndréForsberg THanks
 
No problems. I haven't read the entire chat history, but I remember seeing those tags mentioned. I assume the consensus was that they do belong there.
 
@Simon - what's with the mugshot? What building in the background?
 
@QPaysTaxes Thanks. I have used them on SO, but I guess the tech is new in CR.
@QPaysTaxes Yay. For once I got into something awesome on the ground floor.
 
@rolfl Ukrainian Parliament
 
@QPaysTaxes I was here several months back.
 
4:25 PM
@TylerHarden you didn't have any code specific to those things in your question
 
@rolfl @Lyle'sMug and @Mat'sMug have mugshots, not me!
3
 
true ;-)
@Lyle'sMug - about your answer - I consider your second more-nitpicky part to be far more meaningful than the first ;-)
 
@Lyle'sMug The entire query is written in fluent Cypher. And considering it is a relevant implementation on an overall concept others could use in other languages in Neo4j I would consider it extremely relevant. Without the Cypher and Neo4j all it does is parse a string and compare some regex's.
 
lol
 
I will change the code based on your second one, but the first stays, @Lyle'sMug ;-)
 
4:27 PM
@rolfl the first one is more opinion than anything
 
Also, about the if/elseif - when the first if always returns, it's better to have no else.
 
@rolfl does it affect the runtime having an else if vs. another if?
 
I see the two conditions as being logically different, the first is about the number being allocated, the second is about the allocated number being deleted.
 
@Jamal How do I format references to variables outside of the code block similar to how you edited my question?
 
@Lyle'sMug Eclipse will warn about a redunant code path with the else.
 
4:29 PM
@rolfl I see. logically they do different things and shouldn't be paired.
that makes sense
Help Desk! YAY! <sub>not</sub>
oh that doesn't work here....
@rolfl that was as far as I got through the code. not saying that I understand fully what is going on, yet. but that is where I got to
11 Java votes away from a bronze Java Badge
 
Geez, my questions are getting zero love. sad face
 
just as a fyi StackOverflow is not for code review / debugging your code — John Ruddell 4 mins ago
 
4:46 PM
@TylerHarden Put backticks (``) around the text.
 
@Jamal Thanks
 
@Duga At least he didn't link to Code Review.
 
1
Q: Get Elapsed Time as Human Friendly String

Tyler HardenIn lieu with several other Facebook-esque concepts I am trying to replicate, this working code will take the span of time from a given date to now, and try to convert it into the most convenient English-friendly word. For example, if I post a comment on an article or status, and I want to show wh...

0
Q: AngularJS - index based template can be simplified further?

3gwebtrainIn my code, when the index is 0 i am supplying the second template which contains the word as arif rest i am supplying the first template which hasn't have the word arif. I got this result as a result of a posted question. but i am not satisfied with function because of so lengthy. i guess some ...

 
GTG
see you in another year (or so)
 
If you'd like to improve functional code, it should go on Code Review rather than SO. — TigerhawkT3 36 secs ago
 
4:58 PM
@Nobody Feel free to stop by anytime.
@Vogel612 GOTO HOME
 
0
Q: Div Size by Window Width

PackyBasically I am grabbing the window width on document load and setting a div width to a percent of that. Works great but only on load, wont change if the screen changes. On a side note I cant use CSS because the site is a horizontal slider using Fullpage.js so if I do a percent in css it does the ...

 
I just got a badge from rolfl's Java question....lol a Revival!
> You've earned the "Revival" badge (Answer more than 30 days after a question was asked as first answer scoring 2 or more) for "Mapping arbitrary Int values to a linear index space".
 
5:21 PM
@TylerHarden What's with it?
 
@Mast Just kind of blew into a bit of a bloated comment-discussion. Am I missing his point or what's the deal? I feel I well answered all the points of his question. SHould be wrapped up.
 
More suited for Code Review. — ZdaR just now
 
does this code even run? ▼▼▼
 
@TylerHarden If he still has questions, he should either state his question more clear or start a new one in which he incorporates the suggestions given.
 
3
Q: Android Custom WebView

user3859356I have made a custom webview which is used to open a very heavy site in terms of database. The webview uses custom code for uploading files using an upload handler class. I need suggestions on how I can optimize my code for better performance. Features necessary (current custom webview written b...

 
5:31 PM
Don't read too much into it if he doesn't understand you at first.
@Lyle'sMug You got an Android emulator with that so I can answer your question? ^^
 
    public boolean isConnected(){
        ConnectivityManager connMgr = (ConnectivityManager) getSystemService(Activity.CONNECTIVITY_SERVICE);
        NetworkInfo networkInfo = connMgr.getActiveNetworkInfo();
        if (networkInfo != null && networkInfo.isConnected())
        {
            return true;
        }
        else
            return false;
        }
        @Override
        public boolean onKeyDown(int keyCode, KeyEvent event) {
            if ((keyCode == KeyEvent.KEYCODE_BACK)) {
 
1
Q: Relative relationships

geoandroid23This is a question in Udacity JS course. I am starting to like Javascript. I feel its a misunderstood language :) We learned about relational operators and how they can classify the relationship between two values. Your job is to write the function getRelationship(x,y) function, which sh...

0
Q: Identicon Generator

agweberI'm just playing with python trying to refamiliarize myself with it since I haven't used it in a few years. I'm using python3, but as far as I know it could easily be python2 with a change to the print statements. What I'm generating is something similar to GitHub's Identicons. I know of two pos...

0
Q: Proper string interpolation in python

JackWhen formatting a string, I often use code like this: def some_func(host, command) underlying_command = "do_stuff --host {host} --command {command}".format(**locals()) I prefer this over using positional arguments because it makes my formatting strings more verbose. Is this ridiculous? I...

 
I am removing spaces and extraneous newlines and it looks really weird to me
I was starting to write an answer, but it doesn't even look right...
 
@Lyle'sMug Looks like example code to me.
But without an Android device/emulator, I've no way of testing whether it works or not.
 
@CaptainObvious Hypothetical
 
5:38 PM
@Mast it looks like there are methods inside of methods, is that normal in Android code?
 
They're anonymous classes
Works in Java, JAVA, AndroidJAvA and even C#
 
http://www.commitstrip.com/en/2015/06/10/centering-the-old-style-way/
CommitStrip - Blog relating the daily life of web agencies developers
Centering the old-style way
CommitStrip
1433957731
 
ugly as a duck though
 
@CommitStrip. I don't get it.
 
@JeroenVannevel so it's good code then...
 
5:44 PM
Code review questions belong to codereview.stackexchange.comYu Hao 34 secs ago
 
God no, it's ugly as f* and it won't compile
Though the not compiling is probably because he forgot to copy a brace
the method with @Override annotation shouldn't be nested
 
@nhgrif That's awesome
 
0
Q: Compare JS files and pick according to requirement

Vivek SableProblem Statement: Extract the filename and read if filename has jquery on it, put them aside. Second step will be to check one more and see if any jquery files has ui in the filename Input: script_ref1 = """<script type="text/javascript" src="js/jquery-1.9.1.min.js"/> <script type="tex...

0
Q: Canvas Python GUI code

unacreaturaSo I have this code that few friend halped me to make and I don't really understad how the loop works, so I was wondering if anyone could explain it a little bit to me. from Tkinter import * import math as np master = Tk() master.title( "Canvas" ) def circle_burst(center_x, center_y, radius...

 
@YuHao: added on code review site — Vivek Sable 1 min ago
 
5:59 PM
@Lyle'sMug Dunno, it's allowed in JS.
 
6:25 PM
0
Q: Faster and most efficient way to search a huge number of strings from Excel to a large number of Text files

user3609448I have written the below code to get the input string from the Spreadsheet and search the string across the TEXT files and write whether it is found/not in the excel sheet Please find the scenario below: Excel (sheet1): ColumnA AAA BBB Drive C:\ C:\ Should be give in Column D5 It ha...

 
Honestly I think this question would be better suited to the code review site: codereview.stackexchange.comshuttle87 29 secs ago
 
0
A: Compare JS files and pick according to requirement

Ethan BierleinSince your post is a little unclear to me, I'm just going to point out a few small things that could be improved quiet a bit. The program logic could be separated out into different functions. This allows for easy re-usability. You should flesh out this program with comments for clarity. There ...

Shhhh....
 
@EthanBierlein ... improved quiet a bit
your improved quiet awaits
 
6:48 PM
I find stuff like that really freaking impressive ^^
 
7:02 PM
IT'S TOO QUIET
 
What's your question? If you're looking for a code review, try: codereview.stackexchange.comRocket Hazmat 37 secs ago
I'm voting to close this question as off-topic because it belongs on codereview.stackexchange.comRocket Hazmat 52 secs ago
Because codereview doesn't have as many good responses — user3711096 51 secs ago
@user3711096 Being an active user on Codereview.SE I can say that that statement is completely inaccurate. There are plenty of great answers on Codereview. — Ethan Bierlein 59 secs ago
3
 
and answerers
 
Sure Ethan I'll test what you just said. Bear in mind the turnaround time for code review is lot more than so. Just my observation — user3711096 47 secs ago
@user3711096 Just because there's a larger wait time for answers on codereview, doesn't mean that the answers are of less quality. I'd say that you get better answers because there's less of a race to answer a question. — Ethan Bierlein 19 secs ago
 
I'm totally going to answer that guy's question when he asks it.
 
0
Q: Implementation of indexOf Javascript

user3711096I am trying to write my own implementation of indexOf for learning purposes. I have an implementation of as follows. Im sure a more efficient and shorter implementation exists. function _indexOf(needle, haystack) { var n = needle.split(""); var h = haystack.split(""); var n_len = n...

 
7:12 PM
Hah! There it is! ^^
 
i always equated "post on codereview" with "nobody cares, go away"... — dandavis 23 secs ago
Clearly no one is interested in answering my question on Code review — user3711096 30 secs ago
 
@EthanBierlein The original should be nuked and that guy deserves ~!@#!$#!@#$!@#$
2
What the hell is he even doing?
i++;
j++;
 
@Duga I do sometimes, too. :-/
 
His for loop is already incrementing i...
 
7:29 PM
@Mast bugs
 
I answered it. @rolfl Beat me by two minutes though. xD
0
A: Search string for a substring - indexOf

Ethan Bierlein I don't like the variable names needle and haystack. I'd would use list and item. This will make it a little clearer. Put braces around your if statements. Even if you're only running one statement, you should always put braces around them. Read this. Read this as well too. This Apple bug happen...

brb
 
7:45 PM
At least he can't whine about not getting answers on CR any more.
 
0
Q: Python Game Loop - scene management

Don PolettoneLet's see if I can address this properly: I have a main loop for a python text adventure game here: # _game.py from _player import Player import rooms __version__ = 0.02 # scene nr : Scene SCENES = {0: rooms.Lobby(), 1: rooms.LivingRoom(), 2: rooms.Bathroom()} play...

 
I just asked my second question on the site and got two downvotes in five views, with no comments on why my question sucked. I say it's the community. — Jack 2 hours ago
 
Write a quick-and-dirty Javascript answer .... +5. Write a long and involved C answer ... +0 (yeah, pimp intended).
 
poor jack
 

« first day (767 days earlier)      last day (3241 days later) »