« first day (509 days earlier)      last day (4454 days later) » 

8:01 PM
Does it bother anybody else when somebody attaches a Word document that just has a screenshot pasted into it?
 
Does anybody know where the java "stdlib" source can be found? Google doesn't seem to find relevant things (mostly sites which provide java code.)
 
user1385191
it bothers me that people still use—and insist on—Word documents
 
@MattMcDonald A lot of people don't even know anything else
 
user1385191
that's the problem
 
Take away their computers.
2
 
8:16 PM
 
user1385191
at my past job, I asked for data to be sent to me in plaintext (.txt) and got a blank look
 
GGG
rofl
push them to use google docs =p
 
user1385191
8:52 PM
1 message moved to bin
 
user1385191
makeLinearArray is done and should be fixed now (pending commit + push)
 
@MattMcDonald Why do you write that function recursive ?
 
user1385191
I like the challenge
 
user1385191
plus it saves on LOC
 
Really ? It seems to me that you can write it much simpler and shorter in an iterative way
You are also not using isNode anywhere by the way
 
user1385191
8:59 PM
yeah that's where I killed one of the lines
 
hello , can anyone here tell me if there is a way to deny submitting to serverside if the some of the form fields are exist on mysql database , like email ?
 
GGG
 
thanks , appreciated
 
9:15 PM
I'm looking for help finding a javascript library that I've seen before where it's basicaly a persistence backend api. Recently started supporting offline.
 
0
Q: How would you represent an object that can be of multiple types, when storing it as a document in MongoDB?

blueberryfieldsSomewhat related to this question, say that I have an object category which, depending on which type of object I have, has different restrictions on what it contains. (if you can reword the previous sentence to make more sense I'd appreciate it) For example var SomeSchema = new Schema({ _id:...

 
9:30 PM
 
Why haven't you casted votes on most of those?
 
user1385191
he's < 3k rep
 
Ah.
I really need to game the system some more.
 
GGG
yeah i'm working on scumming more rep
i flagged every single one
 
q.q stackoverflow.com/review how bad are people at editing? Is this real?
 
GGG
9:45 PM
@Incognito how is this listing generated?
Q by low-rep users?
ah nm i see the tabs
 
Aye.
 
GGG
hell you don't have to go this far to find low quality posts
just look at recent posts in at any given time
there's probably a really bad one above the cut
hah yep there's one on top that's probably too localized
good thing jq solves all browser compat issues - stackoverflow.com/questions/9625505
 
Hey guys. I'm looking for a way to make a progress bar for uploading files with HTTP POST, while just using HTTP/HTML(5)/Javascript. Any suggestions? :)
 
Google. It's a solved problem.
 
< Brian, go meet with the mayor tomorrow.
> Okay.
... 3 hours later.
> Why am I meeting with the mayor?
 
GGG
9:53 PM
why are you meeting with the mayor?
 
I have NO idea.
 
GGG
hmm
might want to find out what his interests are so you have something to talk about
 
I figured we could just watch episodes of Tom Goes to the Mayor.
 
user1385191
"nerds" always have something to talk about
 
GGG
sure, when they're talking to other nerds
talking to mayors, i don't know
 
9:55 PM
Do you think he wants to talk about JavaScript?
 
GGG
lol nope
 
Tom Goes to the Mayor is an American animated television series created by Tim Heidecker and Eric Wareheim for Cartoon Network's late night programming block, Adult Swim. It premiered on November 14, 2004 and ended on September 25, 2006, with a total of thirty episodes. History Tom Goes to the Mayor began as a web cartoon on [http://www.timanderic.com timanderic.com]. It was popular enough to get a web sequel, in which David Cross guest stars. Bob Odenkirk noticed the show's potential, and began producing it for Adult Swim. Adult Swim has described Tom Goes to the Mayor as "one of the ...
 
GGG
huh that sounds pretty good
 
Episode 13: Vice mayor.
> Before Tom can flee Jefferton (being quite distraught that nothing has "worked out" for him), the Mayor awards him the post of Vice Mayor. However, this turns out to be the Vice Mayor of Hobotown, and it doesn't take long for Tom to become embroiled in a bad real-estate deal and a hobo-revolution.
 
GGG
maybe you can become vice mayor
every time i downvote an answer a score change of "0" gets logged
i wonder how long that will last
 
9:59 PM
I think downvoting answers is actually 0.
There was something on meta about it.
I have too much meta rep.
I need to play on the real site more, but I can't stand the stupid questions :(
> I don't know anything about derping, but I really want to herp the derp.
Anyway, going home, cheers all.
 
GGG
lol later
 
10:33 PM
@MattMcDonald you a boss? I forgot your learning python rather then being a python pro :(
 
user1385191
wat
 
"python question -> Matt knows python -> ask matt -> realize matt doesnt know python -> feel stupid"
 
user1385191
what's the question?
 
How do I do RPC between python and js
 
user1385191
yep, don't know
 
10:35 PM
:D
 
10:58 PM
my god writing documentation takes twice as long as writing the friggin code.
 
I hate writing docs :(
 
@Raynos the ubuntu guys tend to write a lot of python.
 
user1385191
I think that's what you're looking for
 
GGG
-1
Q: ReferenceError: Can't find variable: $

ninjaboi21I've come across a fairly normal problem, but I can't solve it. I tried to fix the jQuery scripts dozens of times, but it just won't work. It suddenly just stopped working after a few weeks. I am positive that I included the jQuery script, and I did test if the site was alive. However, it seems ...

lol
 
user1385191
11:06 PM
holy crap
 
@GGG I think I answered that wrong. oh well lol
upvote me anyways. =]
 
user1385191
2 messages moved to bin
 
user1385191
your answer makes zero difference
 
user1385191
if you look at the screenshot, you'll see that the script isn't being loaded
 
I know lol
 
GGG
11:12 PM
yeah something overwrote the $ variable
i assume he could just use the jQuery variable instead
unless that got overwritten too somehow
oh nm
he didn't include it at all
it was never there to begin with
whatever, dumb question either way
if everyone that ran into some dumb thing like this posted about it there would be billions of these
 
@GGG have you ever followed the tag? ;)
 
GGG
@PeeHaa not really, i assume it's just as bad
 
@GGG if not worse
 
GGG
@PeeHaa it can't be worse until someone invents PQuery
 
@GGG oh the humanity. That would be bad indeed :)
 
11:16 PM
@GGG I have =]
 
GGG
${'_REQUEST'}('foo')->dostuff(array('hahaha'=>'lol'))->doMoreStuff(function(){ die("shoot me now") });
 
it's PHP outputted json to execute jQuery
PHP really doesn't need a library
imo
 
0
Q: Most Elegant "scrollIntoView" Technique

gmebenIntention: Automatically scroll the window to the top of a DOM element when the document is loaded. via JavaScript: window.onload = function(){ document.getElementById('foo').scrollIntoView(true); }; via jQuery: $(function(){ $('#foo').scrollIntoView(true); }) Questions and Con...

 
basically, my "pQuery" allows a really easy way for a PHP class to assemble some jQuery to execute through AJAX long polling
 
lol:
0
Q: Why does 'killall killal' not work?

user3001If running the command "killall killall" from a terminal(i used Konsole of KDE 4), it says it could not find any process. killall runs, looks for a process called "killall" and should find itself and kill, but it doesn't do that. Why?

 
11:19 PM
<form action="upload.html" method="POST">
<input type="file" id="filename">
<input type="submit" value="Send" onclick="upload()">
</form>

Can the "upload()" function disable the HTTP POST from the browser? Since I'm using a XMLHttpRequest object.
 
@cooky451 sure it can
 
@PeeHaa How?
 
GGG
umm
by not sending the request?
 
function preventDefault(e) {
if (e && e.preventDefault) e.preventDefault();
else if (window.event && window.event.returnValue)
window.eventReturnValue = false;
}
call preventDefault(event) from inside upload(event)
 
GGG
@andrewjackson no u
 
11:25 PM
Any jquery / js experts free to look at my stackoverflow [question] (stackoverflow.com/questions/9611661/…)
 
GGG
it's an inline event handler just return false if you want to cancel the event
 
yeah, but mine's better
 
GGG
lol
 
@andrewjackson why?
 
GGG
return false is pretty simple
 
11:25 PM
because it's reusable lol
 
GGG
lol wut
 
wtf?
 
iirc, return false isn't cross browser compatible
 
GGG
return false isn't exactly a ton of code to type
no return false works for dom0
 
idk, I just remember having troubles with it back in the day
<= IE8 maybe?
 
GGG
11:27 PM
he'd actually have to return false in the on* attribute as well
a lot of people forget to do that
the contents of on* is implicitly wrapped in a function
and that fn needs to return false to cancel dom0 event
i'm not even sure if preventDefault works reliably (or at all) for dom0 events, i always use return false
 
so onclick = "upload()" actually is onclick = function () { upload(); }
 
GGG
yeah
 
so onclick="upload();return false;"
 
GGG
yeah or have upload return false and onclick="return upload()"
 
but I'm pretty sure there were some issues with it before, I'll take your word for it though lol
 
GGG
11:29 PM
yeah trust me
for dom0 events (on* tag attributes / object properties) return false works
 
then what is "event.preventDefault()" for then??
that's not just jQuery
 
GGG
no that's for addEventListener
 
user1385191
@andrewjackson wat
 
hmmm lol
I think you're right
 
GGG
can anyone clarify whether preventDefault works with DOM0 events at all? I always assumed it didn't
and that return false didn't work for DOM > 0
 
user1385191
11:31 PM
DOM 0 in what context?
 
GGG
on*
foo.onclick = function(){...}
or <foo onclick="...">
 
user1385191
I don't see why it shouldn't where it's implemented
 
GGG
hmm i've never tried it
 
user1385191
inline handlers are just created functions
 
I just don't understand the need for it, if return false works on all browsers anyways
 
user1385191
11:33 PM
bingo
 
user1385191
it's used when someone doesn't want to return from the function
 
GGG
i don't think return false works with addEventListener though
 
iirc, about two years ago, return false didn't work on all browsers. I just don't remember which ones.
 
GGG
no return false has always worked for dom 0 events i promise
i am absolutely sure about that
 
maybe I just forgot to return from inline. idk. lol
 
GGG
11:34 PM
i'm not sure about whether return false works with addEventListener (i think it might not)
 
I was two years ago
 
@andrewjackson @GGG The problem ist, neither works.
 
GGG
wut
i give up
it works
 
@cooky451 then you're stupid
 
I've just put this at the end of my function:

window.eventReturnValue = false;
return false;
 
11:36 PM
we already went through this
 
GGG
> he'd actually have to return false in the on* attribute as well
> a lot of people forget to do that
> the contents of on* is implicitly wrapped in a function
> and that fn needs to return false to cancel dom0 event
 
onclick="return upload();"
 
return false; don't stop
 
Ok, just read it. It works now, thanks.
 
@DieVarDump maybe this is what I was having a problem with two years ago
 
11:40 PM
you must use event.preventDefault()
i think
 
you're right
it's coming back to me now...
 
user1385191
sounds about right
 
it was preventDefault() that wasn't supported by all browsers
 
GGG
@andrewjackson right
the dom0/return false stuf preceeded it
 
I'm hungry, and can't decide what to eat, and there's no food in this house. D=
I think you know you're a nerd when you write a function to solve your problem
console.log(function whatToEat (isHungry) {
	var	choices = (isHungry ? ['mcdonalds', 'burger king', 'taco bell'] : []),
		which = Math.floor(Math.random()*choices.length);
	return choices[which];
}(true));
burger king it is
 
11:50 PM
No pizza in your choices ?
 
nah, I'm not in a mood for pizza
pizza hut could be a choice though
or little caesars
 
How many cost a decent pizza in your Pizza Hut ?
 
probably like $12, not sure... little caesars is on'y $5 for pepperoni or $8 for pepperoni and meat balls
pizza hut is definitely better though
=O!!!
I can order pizza hut online
 

« first day (509 days earlier)      last day (4454 days later) »