« first day (506 days earlier)      last day (4441 days later) » 

12:44 AM
0
Q: Loading scripts on a single page plants the script in the footer

toomanyairmilesI'm using this code to plant a script on a spesific page, it works but inserts the script into the bottom of the page not the top - I'm at a loss to explain why! Is there a way to do this that results in the script being inserted inside the head tags. function single_page_load() { if ( !is_p...

 
1:01 AM
@Abhishek only you care about xat, ...
 
@Marian what's it?
 
 
2 hours later…
3:26 AM
/ping
 
in Node.js, 14 secs ago, by Raynos
The biggest problem with jQuery is that it stops you learning the native host environments. It breeds ignorance.
 
it's kinda stupid to "learn jQuery" without learning Javascript first, imo.
if the competition wants to learn off jQuery, I'll help them learn jQuery. lol
I don't mind keeping my competitors ignorant
 
@andrewjackson ...
Yeah it is stupid
but everyone does it
Do you know the quirks of XHR in oldIE ?
or do you just use $.ajax
Do you understand the IE event model?
 
I do know them
 
Or do you just use $.bind
 
3:39 AM
I dont understand it =]
I've been around much longer than jQuery ;)
 
I guess so
I dont know the quirks of XHR :\
'Cause I a ignorant fool dat learned jQuery
 
it's pretty simple iirc
 
yyeah it is
but I cant look at some xhr code and tell you whether it works
Like I know what the WHATWG spec says
but I dont know what the conformence is like in IE
 
I've been learning computers and computer accessories since I was 8, and been making websites since I was 11. I'm 21.
 
basically I'm complaining I dont know the compliance of heart for all the host objects
 
3:41 AM
Google is great. lol
Javascript is pretty easy to learn as you go, if you understand the basics very well.
Most of these "standards" and "best practices" are pretty much bs imho
If it works, and it works well, then it is good.
When I'm working on a JS application, I used to test it in every single browser after just a few changes. So I would know exactly what went wrong right away, and then I would Google "javascript xxxx IE6". it's fool proof, and always has been.
Now I'm able to track down exactly what's going wrong in a fairly large application pretty easily, so there's no real need to test so often.
...and I don't really run into problems very often anymore
 
,,,
 
@Raynos I don't really know XHR "quirks" either, tbh, idk what that was. I just assumed you meant if I understood XHR well.
 
I mean for example
 
but really, do I need to understand "XHR quirks"??
 
xhr.addEventListener("load", function () {})
Which browsers do that work on?
 
3:49 AM
either that or attachEventHandler
pretty sure that's a Mozilla thing
 
attachEventHandler doesnt exist as far as I know
 
unless I've got it backwards
 
the main point was, in which browsers does XMLHttpRequest inherit from EventTarget
and in which browsers does XMLHttpRequest have the load event?
 
attachEventHandler is the IE6 equivalent
 
No
attachEvent is the IE event model
@andrewjackson you being ignorant
 
3:51 AM
I'm pretty sure attachEventHandler exists lol
maybe it was "add" not sure... I can't remember everything right away
 
are you sure thats not a real method
maybe in VB or .NET but not in JS
 
maybe it's attachEvent
idk, I can't be bothered with minor things like that lol
http://msdn.microsoft.com/en-us/library/ms536343(v=vs.85).aspx
but see what I meant though? I would have tested it right away and found out I spelled it wrong anyways. lol
 
True
you can do that
but you dont know it :(
 
what do you mean I know it?
I knew about it didn't I?
 
but you dont know it like a dictionarity
 
3:58 AM
that's because I'm not a freak
 
>:(
No, that's because your not a pro
 
lol if you say so
maybe I am a freak, but not in that way... I'm a freak when it comes to figuring things out, not so much a freak of memory though.
I'm pretty good at figuring things out
 
4:15 AM
hey... I'd rather be more intelligent than smart anyways. lol
I call "smart" what you know, and "intelligence" your ability to "know" new things.
 
 
2 hours later…
5:51 AM
can any one tell me how to upload images to server using html, javascript only?????
 
6:25 AM
@RajaRamesh bit.ly/xNFjoo
 
6:35 AM
what is obstractive javascript?
 
@user964841 obstructive ???
 
yea
 
@user964841 I'm not even going to justify that with a lmgtfy. smh
 
Is it the right term?
 
6:37 AM
put "obstructive javascript" in Google and figure it out!
do that, and come back and tell me when the title of the very first result is
 
Ok. what is unobstructive javascript?
 
Normal JavaScript?
 
^
obvious troll is obvious
I enjoy this, I do... but the obviousness wasn't worth a lmgtfy
 
Me?
 
@MathWizz no
why is it that everything I open Firefux there's an update?
 
6:54 AM
hey
@andrewjackson: coz you open it once every three months
 
hi lol
that's probably true
 
 
1 hour later…
8:14 AM
@andrewjackson: add some explanation to this answer please, I don't get why it's making it wait for a callback :)
 
workin on it
I was there 6 minutes before everyone, because I decided to post first and edit later. lol
 
8:30 AM
@FlorianMargaine what's that guy's comment "It's nothing to do with DOM ready or what so ever"??
oh was that guys' question so stupid I didn't understand? lol
 
 
2 hours later…
10:18 AM
HI @all
 
10:34 AM
Stuck on an error for 20 minutes in an environment with virtually no debugging only to find I typed localeStorage instead of localStorage. Stupid brain, needs reprogramming.
 
@AndyE
Hi
 
11:12 AM
heh, typos are the ugliest bugs.
Very hard to spot.
 
0
Q: How to cal resttemplate web service Using JQuery

mayaI have created a webservice in my web server, and when i am calling the web service from my jquery,i am not getting any response ,even it is not calling my invoked service. This is my controller @Controller public class Controller { @RequestMapping(value = "/getWebServiceCall", method = ...

HI all Plz have a look for this
 
Now this is a very interesting bug.
I'm struggling to find out how that can happen. The CSS rules look good to me.
That margin is getting ignored on Chromium for some reason.
 
11:36 AM
@Raynos i care about xat cause i wanna pawn it with html5 :P
@OctavianDamiean hey there :D
 
\o
 
GGG
12:16 PM
woop woop
that's what i like about you guys
you just don't stop!
also i just slept for 13 hours straight it was amazing
13h 15m
 
Stop what?
 
GGG
damn language barrier
 
GGG
12:40 PM
here's what i've got for testjs.net so far - fiddle.jshell.net/s2Pvr/show
the editor is kinda not fully working on the demo bc i'm loading stuff right off the ACE github; when it's pulled in locally you get a built-in linter thing
i think it's gonna be faster than fiddle
 
...
@ggg you crazy
 
GGG
what, u no like?
it has code folding :)
 
Gah ... Webkit bug ...
 
GGG
<legend>? wtf is that anyway
 
I am <legend>?
Y U NO KNOW LEGEND?
 
GGG
12:46 PM
wtf it's all w3schools links
who's got some docs on this
 
What w3cschools link?
 
GGG
top 3 links when you google "html legend"
 
Oh my god! You didn't add w3cschools to your Google blacklist yet?
 
GGG
no idk what happened to the blocklist
it went away
 
slaps @GGG with an input element
 
GGG
12:48 PM
lol
 
I have those links bookmarked. W3C HTML5 Specification and W3C HTML4 Specification.
Awesome English is awesome.
 
GGG
so it's just a thing in a table that has a free layout
basically
like being able to stick a div between two rows
or am i missing something
 
What the hell? The Webkit bug got deleted!
o_O
U kiddin' meh!?
 
GGG
lol typo?
 
lol
I accidentally added an eight somehow ...
Never assume something could be your own fault, always assume someone made a mistake. :D
 
1:26 PM
@OctavianDamiean y u no whatwg
 
:O
I didn't even know whatwg existed!
I have to read up on what exactly it is supposed to do.
 
0
Q: invalid cast exception, array of particle systems

Darren#pragma strict static var charge : int = 0; var collectSound : AudioClip; //HUD var hudCharge : Texture2D[]; var chargeHudGUI : GUITexture; //Generator var meterCharge : Texture[]; var meter : Renderer; //Matches private var haveMatches : boolean = false; var matchGUIprefab : GUITexture; private...

 
1:44 PM
@OctavianDamiean ಠ_ಠ
@OctavianDamiean WHATWG HTML === W3C HTML5
 
Sorry. :(
 
there are two versions of the document
I read WHATWG
 
is a newbie (kinda)
I'm ready to be slapped with a nasty HTML element for that.
 
:slaps @OctavianDamiean with <blink>:
 
Oh god! That <blink> hurt ... where did you dig that one up?
 
It was the nastiest I could think of
Count yourself lucky that it wasn't a big, bloated <table>.
 
You obviously forgot about <marquee>
 
Mmm. I did, in fact, forget about that abomination
 
Marquee ... shudders
 
GGG
hey guys i heard you liked implementations so i implemented some implements into your implementations
 
1:56 PM
You what?
slaps @GGG with a rolled up HTML specifications printout
Just for fun. :)
 
> That's how I get the bitches
 
GGG
wheres my trout
 
No fish for you!
 
GGG
:(
why do people say things just to sound fancy
it drives me nuts
half the time it's the wrong damn word
you didn't "utilize" a pencil. You "used" it.
You didn't "implement" jQuery. You "used" it.
fucking drives. me. nuts.
 
Well it is valid English.
 
GGG
2:00 PM
not really
implement means "put into effect" basically
it gets misused a lot
 
I didn't refer to the implemented part.
I was referring to the utilize part.
 
GGG
that's the main one i see get misused a lot
utilize isn't incorrect, it's just awkward
if you said "how do i honk my horn" and i said "just utilize the button on your steering wheel" I'd sound like a complete douche
 
@GGG just punch them in the face
 
GGG
because "utilize" has connotations that something complex is going on
and that's why people use the word, they want to sond complex and knowledgable
 
@GGG kinda like saying "I swallowed the liquid hydronium-hydroxide compounds to enable proper hydration of the inner realms of my body" instead of "yeah i drank some water."
 
GGG
2:03 PM
@ThomasShields exactly. EXACTLY.
i think i am going to have to start facepunching
 
I get that it may sound awkward, but technically it is not wrong.
 
and you're exactly right, because i have said that (the water thing) and it's gotten me this close shows tiny gap between fingers to a facepunch.
 
GGG
well the water thing actually does make you sound kinda smart, as opposed to just throwing around words to try to sound smart, so it probably is threatening to people
thus the facepunch
 
hello people - does anyone know if the mouseup event fires on an ipad?
 
true. But still, it's like saying "I utilized my fingers to consume this banana"
 
GGG
2:06 PM
i utilized my fingers to implement consumption of this banana
 
15
Q: Using "utilize" instead of "use"?

kriegarMy friend has been raising a ruckus about the abuse of the word "utilize" in place of the word "use." He complains that it just makes your sentences sound pretentious. u·ti·lize [yoot-l-ahyz] verb (used with object), -lized, -liz·ing. to put to use; turn to profitable account: to utilize a s...

I like this question.
 
@OctavianDamiean whoa nice find
right on
 
GGG
"it just makes your sentences sound pretentious" - nailed it
 
Don't forget to read all the answer!
Not just the accepted answer.
 
GGG
2:09 PM
"each app vendor may utilize unique policies for app pricing"
there are TONS of better words than "utilize" for that
words that are descriptive of what is actually happening
these answers are basically saying what i'm saying i think
it's the same word, with two extra syllables and a bunch of connotations, and it makes you sound like a prick
 
especially when you say "I utilized X" - makes you sound smart - which is fine, if X is a cool feature or something complicated. But if X is... a web browser, or a simple developer tool... makes you sound stupid.
 
Hi hi
 
Wait, since when are developer tools simple?
 
GGG
...
 
@OctavianDamiean who says they are? I said "a simple developer tool", not "a developer tool, all of which are simple"
 
2:13 PM
Right. crawls back into his corner and shuts up
 
GGG
i think of "utilize" as sort of like "make utility of"
like, in speech, you could exchange those two phrases
 
Example: "I utilized Chrome's new script debugging feature to ..." --good.
"I utilized Chrome's console to see the error message" --bad
 
GGG
why not used?
try to think of an example where "used" is too simple and "utilized" is more appropriate
and make sure you can't just switch "used" back in and it sounds fine ;)
 
Both sentences say the same thing; I don't see why utilized wouldn't work on the last sentence if it works on the first sentence.
That might be the language barrier though.
 
GGG
i don't like it in either one
 
2:16 PM
They're not exact synonyms. Instead of using adjectives like "glorious" and "magnificent", you can use "impressive" or "good" or even "nice", but it isn't exactly the same.
 
"I utilized the often overlooked skills of the mutes on my team to communicate effectively with..." - good?
 
GGG
@Zirak no, they aren't exactly the same... the question is, when is it more appropriate to use utilize than use?
i can't think of any cases.
 
Where is @nil when you need him?
Come here and help us out! :D
 
GGG
@ThomasShields leverage
employ
make use of
etc, etc
 
Not sure if this is bad or epic. What do you think when you see this on a resume? "DOS, BASIC, DBASE3+, COBOL".
 
2:18 PM
good point.
 
imo, utilize has an underlying meaning of "for benefit". "I utilized the wrench", while sounding contrived, does not necessarily mean the same as "I used the wrench." The former also means "And I didn't even kill anyone!", while the latter may mean "but destroyed Manhattan in the process"
 
GGG
what if you benefitted from destroying manhattan
 
@GGG persistent chap, aren't you?
 
Then they're exact synonyms
 
GGG
lol you're right, i'm done ranting
they're not exact synonyms, one's a normal word without connotations and one comes with a bunch of baggage
 
2:21 PM
It's a nuisance that can shed more light on something...but you're right. Especially in spoken English, utilize === use (since 90% of what we say is made out of simple structures and meaning), but it can make a huge difference in written English (poetry, for instance.)
 
> Surprisingly, “utilize,” a 19th-century loanword from French (8), does have very specific and valid uses, mostly in the scientific world. The word “utilize” often appears “in contexts in which a strategy is put to practical advantage or a chemical or nutrient is being taken up and used effectively”
“If a diet contains too much phosphorus, calcium is not utilized efficiently”
 
GGG
@ThomasShields yes i think that is an appropriate use actually
 
@GGG w00t! what do I win?
 
GGG
something is going on there that is sufficiently complex (AKA a strategy is put to practical advantage) to warrant its use
@ThomasShields you win 10 rep points, congratulations :D
 
Wouldn't employ work there as well?
 
2:24 PM
@Incognito lol dude.. wow
we get theose resumes all the time
usually from my experience its because they haven't done anything recent since cobol and dos were mainstream :P
 
The best part is that I personally have cobol experience, so I was thinking of calling his bluff. Nobody knows fucking cobol. If you do, you don't apply for jobs, banks kidnap you and stuff wads of cash down your throat.
 
GGG
@OctavianDamiean "use" would actually work there too, but to my ears "utilize" actually sounds correct there, not awkward and out of place.
 
haha that would be awesome
"so you list cobol on your resume, answer me this"
"uhh.. uhh.. well I umm.."
 
GGG
@Incognito do you actually remember COBOL?
i have COBOL experience but don't really remember much
 
@GGG Do you want to know why I can't sleep? Do you want to know why I wake up screaming in cold sweats?
Grace. Fucking. Hopper. That's why.
add 1, 5, 901, 1.
 
GGG
2:26 PM
lol fair enough
 
April 1st is coming up, I need to come up with good cobol questions for the SO site.
 
"Why doesn't this snippet of COBOL work? <14k lines of COBOL>"
 
GGG
@Incognito i think some questions about significant whitespace might be funny
like, the question says COBOL but is clearly a dig on python ;)
 
@Zirak You're kidding, but that's basically what it is.
 
Which is why Grace Hopper is a bitter-sweet name
 
2:30 PM
we could all spam the site with "PLEAZ HELP ME WITHZ DE CODEZ"
 
I was thinking of writing some COBOL.Net for the lulz.
 
GGG
i think i might do a series of questions that crash the browser
"please explain the output of this code"
 
No way...COBOL.Net...are they serious?
 
@GGG while(i++){document.innerHtml(document.innerHtml + "." + Math.Random()*10000000000)};
 
GGG
@Incognito $($)
a=[]; a[0]=a; <-- crash firebug
stuff like that
throw it in a few more lines of code so they don't see it
 
2:33 PM
@GGG That's a cool idea, but why would that crash? Isn't it just passing a reference?
 
@GGG confuse the Markdown parser so the error looks like a comment
 
Object.defineProperty( window, 'i', {
    get : function () { i = 42; },
    set : function () { i = 42; }
});
 
I can find my old VB4 software and try to make something.
 
Would probably only do a RangeError and complain about stack size
 
Ask why it's an error.
Wait, it's all floppy disks...
 
GGG
2:35 PM
a=[]; a[0]=a;
is perfectly fine js
it just crashes firebug for some reason
 
Yeah but I'm asking why it would crash fire bug.
 
Maybe the display part mashes it up?
 
GGG
probably tries to toString it in some weird way
 
Trying to display infinite recursion?
 
GGG
[[[[[[[]]]]]]]]
yeah
why $($) crashes, I don't know or care
 
2:37 PM
Lol, you wern't kidding, actually crashes.
 
GGG
that would be so easy to sneak in some code
 
Okay lets brain storm all the ways to make this troll.
We have $($); a=[];a[0]=a;
while(i++){document.innerHtml(document.innerHtml + "." + Math.Random()*10000000000)};
 
oh, I see. It thinks $($) means $(document).ready($) github.com/jquery/jquery/blob/master/src/core.js#L174
 
We'll throw a y-combinator in there for good measure.
 
GGG
it might be interesting to somehow use some star wars post as reference from the sci-fi/fantasy site
or otherwise inappropriately reference other stuff from SEN in a way that's obnoxious but impossible to dispute
 
2:41 PM
Like what?
 
GGG
idk it just popped into my head, it's really half-baked
like i bought an imperial battledroid model xzrxy123 and i need to reprogram it to do foo
 
GGG
lol
how can i make money off a jsfiddle type site?
serious question
seems to be no room for ads
 
You shouldn't.
 
GGG
wonder how these other guys are doing it, or if they just run at a loss
i'd at least like to not lose money on it
 
2:49 PM
Offer subscription, offer image placing service that features ads.
 
heh, just tried $($) in my browser. Fun one.
 
Most are probably sponsored.
 
Offer selling books based on the library you're using.
 
GGG
hmmm
books could work
 
Amazon makes that easiest.
 
GGG
2:50 PM
yeah can just do amazon affiliate thing
yup that should work
thanks :D
 
I do it, but I don't promote it enough.
 
GGG
i'll just leave space for a little single-line text ad somewhere
for a book relevant to the library they have, or a javascript book if they're not using a library
need to figure out what server-side language i want to use
 
@GGG charge for private fiddles
just like github
 
GGG
lol i dunno
doesnt seem useful
 
I dont like just showing the world my fiddles dude
they just stare at them all creepy
but yeah I think your right regardless :P
 
GGG
2:54 PM
consumers are cheap, i don't want to try to get money from consumers
i want to get money from companies
much easier to do
 
yeah idk, in order to make money I think you need an established userbase first
 
GGG
i dont resally care if it makes money, just want it to cover its own expenses
 
yeah, idk man, my only exp making money online is from advertising
 
@Loktar Log in, you can make them private.
@GGG Offer company licence for a high-availability service, as jsfiddle gets laggy often.
 
@Incognito ah nice I didnt know that
I have an account, just never explored much
 

« first day (506 days earlier)      last day (4441 days later) »