« first day (540 days earlier)      last day (4633 days later) » 

00:06
lol
 
2 hours later…
02:15
0
Q: Detect when Scroll reaches the limit of the page

Tomirammsteini want to alert something when the scroll reaches the limit of the page, like this: $(function(){ $(document).scroll(function() { if($(document).scrollTop() == 0) alert("top"); }) }) But without jQuery.

HEEELP
 
1 hour later…
03:45
0
Q: Best way of Javascript web development in Netbeans (Hot deployment)

marcelocbfI'm beginning Javascript development and as a beginner in JavaScript I make a lot of mistakes. The way I'm developing is very counter-productive because every mistake I fix I have to shutdown Glassfish, re-build the app and re-deploy it. My app is a Java back-end with REST services and the Html, ...

0
Q: Pass PHP array to Javascript array: Json, join, implode

AlexI am working on a plugin and I need to pass PHP array to Javascript array. I have tried using join(), implode() and even Json_encode. But, the wordpress is not displaying any value. When using join(), I used the code: <?php $php1 = array(1,2,3); ?> <script language='Javascript'> va...

 
1 hour later…
05:57
0
Q: Is traditional JavaScript image pre-loading taboo

Evan PlaiceI remember the good-old-days (not really) back when I was still sucking the teet of Dreamweaver to build websites and the lure of playing copypasta with fancy built-in scripts (ex, image-swap) was like black magic. I'm pretty far removed from that now days but I was adapting a small site from it...

 
2 hours later…
08:18
0
Q: Next project. GW or webOS enyo framework

JuaninI'm considering the use of GWT for next project. We already know java and the front-end its already writteng in Android java (not the same at all, but its a starting point). We are also considering enyo framework, from HP's webOS. Its seem interesting and its only javascript for everything. Do...

08:39
0
Q: Looking for a javascript framework

JuaninFor the next project we would use a javascript framework. We want to make a "fat client" app connected to our rest server. Considering enyo from HP (former webOS). But want to know for any other experiences of same sort of frameworks, except Sencha.

09:33
question
about ES6 yield
isn't it possible to do this with $.each already?
yeah, somehow.
harmony stuff
i think yield is more flexible and more power
Nope, besides there is a side effect from yield that allows to code asynchronous code in a synchronous manner
09:38
How can yield possibly be a ES Harmony feature?
Isn't it an ES3 thing?
0
A: Why can't I get JavaScript yield to work?

Mike SamuelIt's an EcmaScript.next feature that is being tested in newer versions of JavaScript interpreters but it's not yet standard. http://wiki.ecmascript.org/doku.php?id=harmony:iterators is the proposal page. Some day relatively soon something like that should be part of a new version of EcmaScript,...

It was already available in JavaScript 1.7 which is about six years old. :P
It could also be that I missed something.
10:05
@FlorianMargaine :-) hey there
10:20
happy Easter to the scrubs
@OctavianDamiean y u no understand difference between es and js
@Raynos Y U ' Y U' again?
@Abhishek hi :-)
10:34
@Abhishek Good, I guess
Aggregate of 88.4%
10:52
@OctavianDamiean I am upset
You do understand the difference between JavaScript and ECMAScript version numbers right?
Yes.
You probably read this?
1 hour ago, by Octavian Damiean
It could also be that I missed something.
Then you realize that older versions of JavaScript have all kinds of propietory junk in them
JavaScript is defined as the language that SpiderMonkey parses
ECMAScript is the standard
So far nothing new. Right.
Ok
well if SpiderMonkey implemented a propietory extension called yield 8 years ago you wouldnt be suprised
The fact that yield is still not standardized for ES:h is not suprisng either
The missing link is probably ES4
Alright. I think I understand what you mean.
10:55
SpiderMonkey has a bunch of prototyped stuff from ES4
From about 7 or 8 years ago
ES4 died in fiery hell
Yea, read about that. :)
its the same about how IE had XHR in 1998 but it wasnt standardized for a while
Got you. That is what I meant with I could have missed something. :)
The oldest spec for XHR I can find is 2006
@OctavianDamiean It's in my nature to belittle people for not knowing "obvouis" things
That's just how I treat people, take no offence
I only do it to people who I expect to be competent ;)
Well, the entire politics and dynamics of ECMAScript, JavaScript and vendor implementation is not really what I'd call obvious.
I meant their interrelation to be more precise.
But yea, checking out the ECMA-262 3 and 5 standard documentation I realized that I must have been missing something.
Mainly because I've spotted the yield keyword on the FutureReservedWord list.
is still a young JavaScript Padawan
11:05
-1
A: Do nothing if the same function is already running

RaynosYes. This is done by default. It's called JavaScript is single threaded

noobs y they hating
11:49
Haters gonna hate.
12:30
-1
A: Node.js + CoffeeScript - modules/class confusion

RaynosClass is the wrong keyword. Use class. Or better yet, just don't use CoffeeScript

CoffeeScript fanbois get butthurt
Hi guys, quick question ,is anyone free?
Yes
If you ask an intelligent question I will respond kindly
If your an idiot, I shall mock you
@Raynos hahaha, Harsh. but fair.
btw, Hi everyone :)
12:40
I'm being kind
I have this code here, it needs a value for the jqueryUI progress bar to move
<script>
	$(function() {

		$("#progressbar").progressbar({ value: 37 });
		});
	});
	</script>
I said "mock" rather then "belittle"
@OctavianDamiean \o
@HarryBeasant pro tip: jQuery UI is a piece of shit
I have a backend script that feeds the curent % value into here; <div id="progressbar">&nbsp;</div>
How can i pick that value up in the JqueryUI script
And okay, but i dont have any other choice
i cant use like this.id
I just need the inner value
Okay then, how can i feed the value straight from the upload progress script into that JqueryUI
This is what currently does
document.getElementById('progressbar').innerHTML = iPercentComplete.toString();
@HarryBeasant lol ?
We should create a tag wiki for that tag with a link to this YouTube video.
Have you tried <progress>
Oh okay
Cheers
@HarryBeasant Just a note. Don't forget that this element is not supported in the latest version of IE. Not that I'd personally care about IE but you might.
Okay cheers
Okay well i can kinda see how this works
But incorporating it into the queryUI is a different matter, no idea how that would work
i think this just looks stupid
<script>
	$(function() {


		 var progressBar = document.getElementById('progressbar');
  function updateProgress(newValue) {
	progressbar.value = newValue;
	progressbar.getElementsByTagName('progressbar')[0].textContent = newValue;
	$("#progressbar").progressbar({ value: newValue });
		});
	});
	</script>
o_O
What are you doing?
12:59
No clue rofl
Let me read a little more of this page
2
A: Node.js + CoffeeScript - modules/class confusion

RaynosClass is the wrong keyword. Use class. Or better yet, just don't use CoffeeScript

Help spread the coffeescript hatred
@OctavianDamiean dont warn them about legacy browsers :P
@HarryBeasant ... classic case of "I noob. How I program without copy paste teh internets"
@HarryBeasant have you tried acquiring competence?
2
Thanks for that, all my problems have now been resolved.
@HarryBeasant you mght want to try manual labour, like digging trenches. It's easier
It's good work too
digging is really satisfying
I used to do it.
It's real man's work
The only thing you've ever lifted is your fingers off the keyboard, once in a while.
13 hours ago, by rlemon
@HarryBeasant GO READ THE DOCUMENTS
13:09
:D
Before you ask. ALL OF THEM!
I have him ignored, but to all - he has been getting us to write his app for a few weeks now... and he hasn't learned a god damn thing.
read through my ragefit yesterday
then tell Harry to GTFO
Fucking Noobs be noobin
So far, stackoverflow has been no help whatsoever, i'm using no code at all from suggestions from you guys, because you don't make any
You are all arrogant fucks, who think they are better than everyone else because they are fluent in a range of different codes
This site was built to help people
I see no help whatsoever
Indeed it was is. You just qualify as a help vampire. Sorry.
I have always tried to be polite as possible, but just get rudeness in return
I havnt seen you ask an intellgient question yet
13:12
But to be honest, i can't be bothered any more, there is no hope for you guys/
Apart from SO, could anyone suggest me any chat site for programmers.
@HarryBeasant In case you wonder what a help vampire is. Read this.
The thing is, here in Java room, there is not much activity.
The last post was 8 hours back.
This here is the JavaScript room. ;)
@HarryBeasant sounds harsh, but SO wasn't meant to replace Google. You need to know basics before someone can help you.:)
13:15
Yes, @OctavianDamiean I know.
Somehow javascript room is always active here.
@OmeidHerat I was about to ask you. :P
Probably we have many web developers. :D
because Java is a silly language and JS is not?
@OctavianDamiean soz, it scrolled as I was going to click on his message :P
13:16
@Raynos Ok
Just in case if anyone knows what is 0x0439 in case of OpenProcess.
I googled, but there is no such value for OpenProcess [ kernel32.dll ]
I was just creating hack for Modern Warfare 3.
You're aware that you are a) still in the JavaScript room and b) are asking for help to do illegal stuff?
I should mention that c) I'm an Anti-Cheat admin for said game.
@OctavianDamiean anti-cheat admin ?
Yes.
GGC Anti-Cheat.
1. I am learning how to use JNA. 2. I remember I am still in Javascript room, but it is always possible that javascript pro may know a bit of Java.
I know a bit how to use javascript, but I am fine in java :D
That is all fine nonetheless it is still illegal.
13:23
@RakeshJuyal it is a fine, a ban, and possibly jail time if you get caught. now on the side note, you are actively helping the company find loopholes and bugs in the software.
if you're good, after serving a minimum sentence, they might just hire you
:P
Oh yea, d) chat.SO is Google indexed.
trollfaces like a boss
ohh snap
I will be back after half hour to discuss this jail thing :D
13:26
Well, we're not your lawyers.
Don't worry.
I'm not. :P
@RakeshJuyal 2. Java to JavaScript is like car to carpet. Now how a pro carpet-maker knows about cars. I have no idea.
2
There are carpets in a car!
hehe
13:30
However, there are no cars in carpets.
there is if you take out the pet
that is not true.
I see like 30ish cars in the carpet in front of me.
13:33
I see dead people ... and they look like reusable cross browser XHR objects
<plug type="shameless" />
this is a joke right?
Oh right, I forgot about JSONP. Gotta put that on my to-do list.
@Raynos What? Little-XHR?
The API design of little-xhr
Why, what's wrong with it?
it has success/failure callbacks
thats for nobs
noobs*
13:41
What would you propose instead?
and data is urlstringified :
;_;
Technical bullies = NOOB
Listening for the status code yourself?
@Raynos the point is, anyone who wants a pre-built xhr function would likely prefer this.
13:43
nods
i took a jQuery approach because that is what the 'noobs' are used too
xhr({
    method: "GET",
    url: "...",
    body: content
    headers: {
        key: value
    }
}, function (err, response) {

})
@Raynos I don't quite see your point. Little-XHR is an abstraction level above your example.
@rlemon wrong
choosing the jquery api because its popular is a horrible decision
then don't use it
13:45
Admittedly my function has some limitations I need to fix
but just because you don't agree with a API design does not make it wrong.
But the main point is ugh your one is ugly
and I don't like your hair
two seperate callbacks for failure success is ugly
what does it matter
13:45
:D
The main issue is that you swallow errors
thats ragequit
but it forces you to handle failures (or rather it is a pleasent reminder)
It is easier to assign a callback function for an error case than to handle a passed parameter.
the other issue is that I cant send JSON
because you decide to urlify my json
@OctavianDamiean i disagee.
its too easy to forget to ad failure handlers
HEY!! @Raynos! If you have so many ideas and improvements instead of flaming on the library like a jerk....
> Please report any bugs or suggested improvements.
You usually have a point... but you need to work on your people skills.
s/"Ugh, this is crap"/"Hey, I can see a few ways to improve this if you wanna hear"
just saying
Be a man, report bugs!
13:50
@rlemon I dont do people skills ._.
I come here to be an asshole
what else do you expect
Hey, so anyways I was asking if there is any site where I can chat with java programmers.
I still remember I am in javascript room.
:D
Then you're just ... well, confused I guess?
Sir, if you don't want to buy a carpet I have to ask you to leave my shop. I just can't sell you a Mercedes!
anyways... i need coffee... no milk/cream but i do have a can of whipped cream i wonder if that'll be the same.
@rlemon It's close enough, just mix it in.
@RakeshJuyal try the android rooms
13:56
@RakeshJuyal make the room?
@rlemon are you happy :P
@Raynos yes. I will read them over after coffee :)
You make valid points.. you just come off very.. well..
Probably My boss will kill me -_-
7 mins ago, by Raynos
I come here to be an asshole
:P
its a joke
I just get tired of explaning myself
too much effort
its easier to just tell you, you are wrong
seems future will result into epic insanity aye ?
Nothing wrong with saying that someone is wrong. It is just the way you do it. ;)
i'm not wrong, I just haven't considered the case. I do not see a problem with my API design re: the success/failure, you just disagree with it. that is cool. The other suggestions are very valid and I missed them. :) Thankyou.
but it's not like I came in here saying "this is the right way to do things, jQuery 4Life!"
14:04
Thanks @Raynos Thanks @rlemon
I keep imagining myself going to the coffee shop and buying a coffee, then I read more SO questions.
And yet I remain with no coffee
the main issue si that the failure/success style choice is wrong :P
just like coffeescript is a valid style choice but still wrong
Take the printout of few questions, and goto coffe shop.
@Raynos Wrong in that you need error handling? That it shouldn't be a choice you mean?
@RakeshJuyal I live in the future, we have tablets now.
I need to buy a case for it.
API({
    ...,
    succes: function (result) {
        // success logic
    },
    failure: function (err) {
        // err logic
    }
})

// vs

API({ ... }, function (err, result) {
    if (err) {
        // err logic
    }
    // result logic
})
+1 to motivation to get off my arse.
@Raynos I don't like these.
@OctavianDamiean yes
+1 << ? :D
14:07
@Incognito do you prefer top or bottom?
What am I implementing it for?
(hmm)
First one, more explicit.
Maybe.
The thing I like about (err, result) is only one function, less indenting, calback as last argument, impossible to ignore / forget err
im also biased because node aggresively pushes the (err, result) style
14:09
Right, however Raynos really has a point there. Didn't think about not defining an error handler.
Why should I be concerned with err each time I set up a request handler?
I'd rather do that elsewhere and have it tie into my websites cheesy error box log somewhere.
Well, what if there is an error and you don't define a handler for that?
Then you're a bad programmer? :)
Abstract work required to be awesome, not requisite skill to be awesome
Okay. Coffee time.
14:11
Nice quote :D
@Incognito True, having a global error handler is a clean solution
Its slightly harder to do it elegantly with a single callback
This could be a good question for Programmers.
searching for a similar question
What all browsers support the
URL.createObjectURL
any luck other then the web kit ?
14:29
@Abhishek Firefox also supports it
Well firefox doesnt supports mp3
:-[
have you guys seen the new facebook fullscreen photos?
just found out Netflix has Torchwood
nice :)
14:33
1
Q: Is server-side useragent detection bad?

RaynosClientside useragent detection is known to be bad, however is it also bad to react differently based on the incoming useragent in a HTTP request An example would be sniffing the types of browsers out of all img requests and sending smaller or larger images based on whether the incoming userAgent...

@Yohann: finally completing what g+'s doing since the beginning
@Abhishek pretty much no
I am pretty sure my boss will kill me (XD)
I think your question could live on Programmers as well.
stuff so far i have used in current project is making it 100% chrome experiment
14:35
@Raynos I'm a fan of just have everything default to "the right way" for your specific project, then over-ride through some mechanism when you have those corner-cases.
I think thats a nice way
@Raynos Cool question.
I feel like an idiot for buying this in paper-- it's free online scribd.com/doc/6457786/…
Does this make sense?
<script>
	$(function() {
	document.getElementById('progressbar').innerHTML = iPercentComplete.toString();
	$( "#progressbar" ).progressbar( "value" , iPercentComplete.toString() );

	});
	</script>
@Incognito there is a joy in the dead tree format that no screen can provide. don't blame yourself for buy paper books. :P
I just want to read it on the train without lugging something larger than the bible around.
14:44
lolz
@Incognito that is fair, but you can always buy an actual book reader. they are pretty slim and nice.
I have a tablet.
That's why I'm downloading it ;)
Curious-- do you guys ever lug gadgets around, and if so, do you have any bag that just stands out and is great?
@HarryBeasant nope, there is just so many wrong.
All right thanks
@Incognito: my pockets are great for this kind of gadget :-)
got my kindle in my mantle's inside pocket
14:47
Oh yeah, I carry my Laptop, book reader, smart phone, mp3 player and few ASIC and CD/DVD and flash drivers for emergency cases.
I have a jacket that's like my own batman belt right now, but the days are getting warmer
@OmeidHerat I'm either looking for one, or I'll ask someone I know who's great with fabricating bags/textiles to make something that works
and I have a backpack from MONZA, and I have had it for almost 4 years now. I would probably buy a new one just because.
it still looks boardline-breadnew.
I don't know the exact model though. let me check if I can find anything.
@Incognito: I use this kind of stuff on summers amazon.fr/dp/B006DEINJM/…
@Incognito sorry can't find anything on the bug that says the model.
en francais svp :P
14:52
dunno the english word for this sorry :x
x.x I hate living in north america, everything we have is designed to be uninspired crap. We don't even have the same brands.
haha, my backpack is probes too old to be found on the interwebz.
I have like a dozen or so features that would make a great bag. First of all, zippers face my back, not the pickpocket behind me.
3
0
A: Comparing multiple field values ​​together

Raynoscommented: If you honestly don't think you deserve to be shot for using selectors with value='" + lulz + '" then you should probably learn what good code is

14:57
@Raynos Why would you consider attribute=value in jQ horrible? It's there, it's meant to be used.
its more about usng the selector engine
when you already have a list of inputs
I'm well aware of that, dude.
and you could just run a filter over the existing array
its just rageface
That is precisely what I did in my other approaches.
the third solution is fine
theres no reason for the first or second to actually be in the answer
14:59
sigh
Yes its a harsh downvote :)

« first day (540 days earlier)      last day (4633 days later) »