« first day (770 days earlier)      last day (3245 days later) » 

12:00 AM
There are 1402 unanswered questions
 
Holding steady @Duga
I'm going back to The Swan Princess 2.
 
12:18 AM
well, my profile is 999 rep. one edit away from more tools
Well, I'll write a good answer then :P
Thanks @Santa :P
 
@RubberDuck Movie? I remember seeing the first one waaaaaaaaaayyyyyyyyyy back then as a kid
Old VHS tape, man I don't miss those.
lol
That, they are.
 
4 hours ago, by Mat's Mug
where are my starrrrs
@Mat'sMug I think I found them! ^^
24 mins ago, by Duga
RELOAD!
@Duga had them.
4
 
@Duga is banking all the stars
 
12:41 AM
I just watched The Raid 2. Indonesians definitely don't do any censoring
 
1:10 AM
Before I go to sleep:
user image
2
 
@SimonAndréForsberg That's the US for you.
 
@SimonAndréForsberg Hey, we didn't invent that stupid scale, we're just not smart enough to have gotten rid of it yet!
2
At least we don't measure fuel economy in rods to the hog's head any more.
 
1:34 AM
@SimonAndréForsberg USA USA USA
 
Yeah, rods to the hogshead
makes as much sense as the left side of @SimonAndréForsberg's graph...
 
1:49 AM
I think this question has already become a mess with answer invalidation (potentially an additional answer reviewing it). I hate it when this happens.
 
2:03 AM
I'm voting to close this question as off-topic because it is asking for codereview. — Felix Kling 32 secs ago
 
1
Q: How can I make this code DRY?

John McFiddlyHow can I make this code DRY? isTouch is "static", so I don't want to make an if test inside the loop. var makeElement; if (isTouch) { if (headlinesOnly) { makeElement = function(item) { var a = document.createElement("a"); a.setAttribute('ontouchstart', 'ite...

 
> How can I make make a function that produces a different result depending on a few variables? Without having an if-test inside it
two line title
 
2:40 AM
Monkevening
ooh, me has stars back too xD
Must- Resist- Urge- To- Star-
No- Must- Get- Star- Rehab-
Must- Get- Life- Together- And- Stop- Using- Stars-
lol
 
3:17 AM
If it is working but not optimized Code Review SE might be a more suitable site for this type of question. — paisanco 5 secs ago
 
3:44 AM
Greetings
I am going insane!
I've rewritten @Mat'sMug code, to be easier to use
But I found a weird bug
@QPaysTaxes Thanks
The code looks perfect
But it is executing an else that shouldn't
Well, I prefer the first variant
?
Dude, dont worry
Pfff, I had it worst
Go ahead, I will only see 1 ping
I don't have the headphones
Tell me
			if ( possible_words_regex.test( field.value ) )
			{
				if( popup.parentNode != elem )
				{
					elem.appendChild( popup );
				}
			}
			else
			{
				elem.removeChild( popup );
			}
-.-
stupid code formatting
FOR BLEEPING SAKE!
It has tabs
No idea where it is
Even after the instructions
Done
You see that code?
Tell me, what are the chances that the else is executed when the if is true?
The first
var possible_words_regex = /bug|issue|t work|wrong|fix|why|un-?expect|broke/gi
 
Well, got a bad answer can @a_mod take a look at this
 
Yes
It is an <input>
 
You finding this site at age of 16 is going to help you a lot in the future (I wish I participated when the site became beta). Well Done. — JaDogg 14 mins ago
 
Sure
Here is the jsfiddle to try the code
 
Hey, @Quill Congrats on 1K!
 
3:56 AM
Thanks :-)
You're nearing the next k milestone too aren't you, @EthanBierlein?
 
I'm still about 200 from 2k. Blah. I can't find any good questions to answer though. :(
 
@QPaysTaxes That's because the if is bugged
 
Maybe some santas could help?
 
@QPaysTaxes And that is the real problem
There's nothing wrong with the code.
 
@QPaysTaxes I don't know ruby.
 
3:58 AM
@QPaysTaxes I don't see anything wrong with the code.
The if is always true
But it executed the else
 
Woah, be a little careful with teh votes. Me don't want serial vote reversal.
 
You could always do a sede query and find some old zombies tagged python
or whatever tags you like
 
I'm looking at this one rn:
4
Q: Project Euler module

magu_I use Project Euler to teach me programming and not to submit any results. As such I look up the expected return values to double check my solutions. To organise my files I use the following folder structure: main.py \euler # The problem files __init__.py # empty e001.py e002.py...

 
ist = mod.run()?
what is ist supposed to be short for?
 
Seems to have some things to improve on
 
4:00 AM
@QPaysTaxes What you don't understand?
@QPaysTaxes I'm using vanilla Javascript
A.K.A.: Javascript for man
 
It's not hard @QPaysTaxes, learn it
 
@QPaysTaxes If you replace that ifwith this:
alert(possible_words_regex.test(field.value));
            if (possible_words_regex.test(field.value)) {
You will get a ton of alerts saying true
 
@IsmaelMiguel, your regex could probably be smaller, try something like this example
 
@Quill I used it on my syntax highlighter, to highlight PHP
 
(b(ug|roke))|(w(rong|hy))
@QPaysTaxes I see. (;-;)
Yeah, use an array, and then .contains() it
 
4:11 AM
@QPaysTaxes Which is slower than a regex
@Quill And have the code only work on 1 browser?
It's an even handler
 
@IsmaelMiguel Not always, regex has to do 117 steps for my code is broken
 
It MUST do it's thing, as fast as possible, and leave
@Quill What about indexOf?
 
indexOf is better
 
@QPaysTaxes Flagged for opinion
(jk)
thankfully Yeah, Jon Skeet doesn't really contriboot here
 
4:14 AM
@QPaysTaxes Try to match EVERY SINGLE GODDAMN COMBINATION OF CAPITALS with indexOf and we will see if regex is stupid
 
@QPaysTaxes Yeah
 
It does, but that's cheating
 
@IsmaelMiguel How so?
 
@QPaysTaxes Or assembly
 
Killed one:
0
A: Creating a dictionary of multiple results

Ethan BierleinSince I'm not really a web guy, this is going to be a style review, like my other reviews. Why are you mixing camelCase and underscore_case together when naming variables? Variables and functions should be underscore_case, and classes should be PascalCase. This seems like something that could b...

 
4:16 AM
@QPaysTaxes Nope, it will rain in California
(or is it Florida?)
 
@EthanBierlein Doesn't it fit PEP8?
 
(All I know is that you are talking about the butterlfy effect)
 
@QPaysTaxes Tornado? We call them Cyclones
 
@Quill No, there are some camelCase variables. That's not PEP8 compliant.
 
@QPaysTaxes With the ammount of NOPEs there, I wouldn't mind the tornado
 
4:17 AM
@EthanBierlein Then feel free to mention non adherance to PEP8
 
@QPaysTaxes Spiders, snakes, scorpions, crabs, ...
Yeah............ NOPE!
 
I'm just going to pretend stereotypes don't bother me
goddamn it Q
The mental images are real
lol
Reminds me
I have to photoshop myself into a kangaroo's pouch for when I travel overseas
2
@QPaysTaxes Maybe some good information to give your partner before they visit
@QPaysTaxes It still applies
A web?
Tank? Spider Tank? Enclosure?
Australia is great, and as long as you don't try outbacking or something, you're fine
@QPaysTaxes Crocodile Dundee is to Australia as Super Size Me is to America (imo)
 
4:34 AM
Guys, I killed a year-old zombie.
0
A: How can I make this SimCity clone faster?

Ethan BierleinAs you asked in your question, I'm going to try and address your performance issues here. Some of this will be a style review though, so bear with me. Style First off, no offense, but this code looks, not so great. You have many major style issues, so here's a list of some of the major ones ...

 
0
Q: implementing quicksort in java with pivot of first, median or random

user3341565I have a question regarding quickSort. I am attempting to implement the quick sort algorithm where by the pivot will be chosen by the user, and can either be median, first, or random. I am supposed to return a long that measures the number of times the cp.compare() is invoked. I have implemented ...

 
Stupid @CaptainObvious interrupting my stream of thoughts messages.
 
@QPaysTaxes Should be, but, I don't really use it like that
Also, you can use Chrome/Firefox/IE's console to test JS
'' == false; pasting something like that in returns true
 
Wow, I just realized that I can do execution of JS code in chrome's omnibar.
All you have to do is prefix the code with javascript:
 
javascript: js
I use it to get string lengths easily
Put that into a chrome bookmark along with javascript: prefixing it
1
Q: Zipping without include current directory

william007The following code <?php //http://ninad.pundaliks.in/blog/2011/05/recursively-zip-a-directory-with-php/ class FlxZipArchive extends ZipArchive { public function addDir1($location, $name, $includeCurrDir) { if($includeCurrDir) $this->addEmptyDir($name); $this->a...

asking for a refactor of someone else's code
(found with Q's search script)
 

« first day (770 days earlier)      last day (3245 days later) »