« first day (1680 days earlier)      last day (3267 days later) » 

user1994804
12:18 AM
For the love of mankind, could someone @Meredith show me why the 3rd line here does not work. I dont see it
 
user1994804
    var retrievedObject = JSON.parse(localStorage.getItem('SellerBuyerLocation'));
var SellCityState = retrievedObject.SellerCity;

    	document.getElementById("SelleeName").value = retrievedObject.SellCityState;
 
user1994804
Argh... I tried formating it
 
user1994804
but line 3 gives undefined
 
user1994804
Ive been staring at it for hours and if anyone wouldnt mind showing me what's wrong, Id be most appreicative
 
did you mean to use document.getElementById("SelleeName").value = SellCityState?
is #SelleeName an input? .value is for inputs
 
12:32 AM
 
user1994804
@royhowie Thanks for your input
 
user1994804
Holy Chit... I just saw the problem
 
user1994804
Ive got retrievedObject in too many places
 
user1994804
Thank You so much for pointing that out
 
user1994804
Holy Cow!! That Did it. Thank You so Much
 
user1994804
12:40 AM
Its amazing how "when you don't know" about some of this (any coding) you can be really off track
 
user1994804
Thanks again
 
12:50 AM
evening.
 
1:31 AM
i.stack.imgur.com/JAjZt.jpg The 90s called, they want their little sign back...
 
1:47 AM
@copy np! Yeah its pretty kickass
 
 
2 hours later…
3:54 AM
What does the thing in the angle brackets mean? Is it valid js?

`new htmlparser.FeedHandler(function(<error> error, <object> feed){ ... });`
 
4:06 AM
@deostroll is that typescript or something?
 
5:17 AM
@deostroll that's just the docs. pretty sure they're just telling you the type of the parameters passed
 
0
Q: How are proper tail calls enabled in ES5/strict mode?

Aadit M ShahToday, I was reading the harmony:proper_tail_calls proposal and I noticed that in the references there was a link which read, “Brendan discovers that ES5/strict enables TCO.” What does it mean that ES5/strict “enables” TCO? At first I thought that initial implementations of proper tail calls wer...

 
How should I see the fns that are defined using require.js?
 
6:11 AM
@AwalGarg Haha yeah. Often, you can see where they're trying to lead you, but that direction is actually wrong because they're so misinformed
I had a question like, "How do you reduce complexity in code?" and I knew my teacher wanted me to say, "Don't leave extra whitespace anywhere" -.-
She has no idea what "Big O and all that" is
 
 
2 hours later…
8:26 AM
hi
i passed
with flying colors.
 
Haha, congrats!
 
congratz
 
8:58 AM
@BenjaminGruenbaum github.com/teradeep/demo-apps
 
@Wellwisher Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
what is the use of closure..?
 
Often you use them without realising
 
9:16 AM
@JanDvorak I made the maze actually maze-like (my DNS hasn't propagated, so link to another domain)
I somehow never realized that the blue was the path and not the walls
 
Why do the paths go partially out of the screen?
 
@royhowie Neat
I made another demo today codepen.io/AmaanC/details/gpwEMa
Codepen is fun
 
@JanDvorak I did that so the background is all-maze no matter what
(just set drawTime = 1 in the console so it generates the whole maze quickly)
 
Perhaps you should tweak the scale instead?
even then, at least the top left corner should be aligned
 
I mean, it's easy to have it line up in the top-left corner, but there's no guarantee that the number of rows/cols will fit perfectly within the screen (for a given barWidth and gap)
I'll maybe do it in the afternoon…too early to fix it now
 
9:21 AM
pxX = screenWidth * row / rows
Why does the maze have one row completely out of the screen?
 
@SomeGuy nice
 
@BenjaminGruenbaum Haha that was great
 
9:51 AM
is that a good game ? :o (starred that others may get it too)
 
Looks like TIM. so... awesome, presumably
 
hi guys!
Can I make any site and make money from it?
 
The trailer looks awesome
@Harish you can try
 
10:07 AM
@JanDvorak how?
 
Step #1: have a viable business plan
 
@JanDvorak ok
 
You can show ads, but you still need actual content to show with them
 
@JanDvorak ok
 
user1994804
11:07 AM
Mornining my friends
 
user1994804
Im gonna be putting a jQuery date picker on my site but was wondering of both of these scripts in the sample source code are necessary
 
user1994804
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
 
user1994804
I presume the first line is some old jQuery library which I use Google's version of already but with Google's vs of jQuery do I need the second line / library?
 
What the fuck Mozilla youtube.com/watch?v=GAnTPcfnGiw
 
user1994804
Nevermind folks I found it developers.google.com/speed/libraries
 
@SomeGuy brb renaming a 20 year-old game and taking money for it
 
user1994804
Howdy Yall.
 
user1994804
WTH... I can't change the id in a jQuery datepicker() function?
 
user1994804
from datepicker to TopDatePicker?
 
user1994804
doing so breaks the program
 
user1994804
12:26 PM
 
wait what
do you want to change the function name ? or the ID of the element holder ?
@copy you can uncheck its option
 
12:50 PM
I'm trying to use a JS library in my Angular code, but I cannot use require as it does not exist within Angular apparently, and I can't inject it as I usually do. I have downloaded it via bower, but how do I access it?
 
1:08 PM
No one?
 
1:28 PM
it's a commonjs module
but there should be a global fallback
what package is it?
 
It should work
 
Yeah, but how do I access it in my AngularJS code? As I said, require doesn't work (which the example on the website shows is how you should do it), and I can't inject it which I usually do with ng-modules
 
require comes from commonjs
if you don't have it or the other supported package loaders, it'll be in the global scope
aka window
 
So window.challenger should work? Or am I misunderstanding you?
 
1:35 PM
yeah
 
Still getting undefined
Can I import commonjs for my project and then use require?
 
I just want to know I'm in right path. I have two modules (in requirejs), one has the functionalities and other provides the object , in which is used by the module 1 fn to store the states. Now given this situation I can mock out the module and inject the duplicate states on test on. The apporach that I have taken is correct?
But one problem I'm facing here is, even though the states module should be private to the module 1, other modules can also get it and change them :/
 
@simpe you can, but if challenger is the package's name it should be in window
assuming the script runs properly
 
@Mosho Well, it was free. And I've never seen it before :p
 
any help ? :(
 
1:46 PM
@Ant's why would it be private
 
!!> 'sup'.replace(/s/,'$&t').replace(/$/, 'ids')
 
@AwalGarg "stupids"
 
@Ant's anyway, you can make a deep copy of whatever you have in the object module in the functions module and use that
so whatever is initially loaded will be what the functions module uses, but any changes to the object module will have no effect
 
@Mosho thanks for the help. It seems I can load the library but it cannot find execute any functions.. thinking about ditching this library for now since I cannot get it working
 
np
!!afk
 
1:51 PM
@Mosho: Thanks and the reason for private is, only that particular module needs it. Basically its an role check module so I dont want the module to expose the states to outer world so that some can change and get the role access!
 
2:05 PM
how reliable is css autoprefixer on the scale of IE6 to Future Firefox?
 
imgur.com/kFkx6L7 1997 I would have been 11. I think I went as a dude dressed in black wearing a dollar store mask.
this kid is my hero
 
Oh... I'm fourth on stackrating.com/list/byRating, just behind John Skeet ?!
@aioobe There's a bug ?
 
2:21 PM
why would it be a bug
 
I think there's a bug... look at the end of the graph ^^
And no, I didn't just answer hundreds of questions in one day
 
oh
well, don't forget to take a screenshot for your cv
before it's fixed
 
@Mosho The recruiters I've spoken with don't seem to know a lot about SO. I don't think it would be useful
 
Woa @dystroy 4th on stack rating
 
2:27 PM
Related: Should I rename my account to my real name in order to look more valuable for recruiters or not ?
 
no because typing @dystroy is easier than @DenysSurgeret in chat.
 
do you really type the names ? there's this thing... autocompletion... you know ?
But yeah I understand that "dystroy" is easier to remember.
Should I change my real name to dystroy ?
 
when I don't have to ping but just refer by name... dystroy said that miaou is so fucking awesome -- denyssiguret said that SO chat is terrible
 
After all, I'm already trying to resolve naming problems with the French state ^^
@AwalGarg How many "Denys" are there here ? I think it's more a memory problem than a typing one
 
ok, yeah change your name from denyssgiurete to dystroy or canop.
@dystroy what does canop mean anyways?
 
2:37 PM
My bank is already disturbed by the fact the spelling of my firstname isn't always the same... I think they would be mad if I changed my name...
@AwalGarg It's a friendly diminutive of Canopée (canopy in English)
!!afk 5 minutes
 
I figured I haven't made any chat app ever so I should also make one.
!!should I make a chat app for the tradition of making one or let it go?
 
@AwalGarg You should make a chat app for the tradition of making one
 
You don't have to. I only made the basics of one
 
I am probably gonna use peerjs and call it a day.
> 11,755
 
Yeah, obviously :p
 
2:43 PM
Most of them are utter crap I guess. I don't know how many are real working and interesting chats
 
Yeah, Miaou is the best :P
 
Obviously
 
to learn any programming language/stack, you start with "Hello World"
to learn node, you start with "websockets + http server = chat"
 
does somebody have a link to the official es6 spec ? It's out, right ?
or is it still draft ?
 
mozilla has the draft: people.mozilla.org/~jorendorff/… which resembles the present state. PDF's are scattered around on the harmony website though for the official spec parts.
 
2:48 PM
I don't understand this question. It's for you informed people:
0
Q: Is ES6 module loader part of standard?

yttriumI want to clarify this issue. Some articles on the net says that ES6 module loader is part of the ES6 standard. But I cannot find proves in the ES6 draft. But if ES6 module loader isn't part of the standard, how it's supposed to conditionally/dynamically load dependencies?

 
there is no module loader. there is a module loading specification.
 
I wondered if that was the question. This would be a strange one. Just like there's no js engine in the spec...
 
@dystroy the module loading is in the spec though: people.mozilla.org/~jorendorff/…
 
Yes, I've seen it
 
Hi everyone. I've a little question. I have objects in an array, and every object has some properties to them. In this case, the objects in the arrays are tiles of a grid, and some have road = true, some have road = false. How can I say
"For each object in TileArray, where road = false do something"?
 
3:01 PM
either filter->forEach (slower but nicer) or for->if (faster)
 
and how can I use the for ?
 
or for..of fast and nice
 
for (var i = 0; i < array.length; i++)
if array.road = false?
 
!!tell krytpo mdn for
 
@krytpo for
 
3:02 PM
something like that?
 
Close enough, but there's a pair of parentheses missing
 
yeah sure
but just to get the point
Ok, thanks ;)
 
good enough as pseudocode ;-)
 
@JanDvorak Yeah indeed. I'm not bothering putting correct code here ;) as long as I myself get the point, it's fine, I guess.
 
github.com/sdelements/lets-chat <-- highest starred chat app on github, can't even edit messages, no context replies, and oneboxing is unusable
 
3:07 PM
@AwalGarg Isn't that ES6?
 
it is
 
so... no native support
and I don't want to transpile my userscripts
 
why would you write userscripts for old browsers?
both chrome and FF have for of already
 
I mean native support in Chrome
 
@AwalGarg Problem is I don't have a marketing team for Miaou...
 
3:09 PM
@JanDvorak chrome has native support for for..of since v38 IIRC
 
!!mdn for of
 
@JanDvorak for...of
 
@dystroy spread a hoax saying Facebook is buying miaou :D
 
Fine then. I guess i'll start using it
 
One more question
 
3:10 PM
@AwalGarg If I knew how to spread things (apart butter), I wouldn't even need a marketing team
 
@dystroy hoaxes don't need to be "spread", you just need to put it somewhere seriously. It will spread automatically :P
 
The Array I use is 2dimensional, would that mean I have to write 2 for-loops?
 
post on meta.so: "Will SO Chat be deprecated? -> since SE is now taking miaou, will SO chat be deprecated?"
 
    for (var i = 0; i < vakkenArray.length; i++) {
        if (vakkenArray[x][y].road == false) {
            $(this).css("background-image", "url('img/grasslight.jpg')");
        }
it gives an error on the [x][y]
 
what are x and y?
 
3:12 PM
What's x,y?
 
x y are coordinates
Do I have to give them?
or can I just write vakkenArray.road?
 
If you want to iterate over a 2d array, use two for loops one inside the other
 
ok
That's what I thought, but I wasn't sure.
I'll test it
 
@AwalGarg Spread it for me then, please. Note that I'm willing to sell the whole existing source to FB for 666$.
 
@dystroy no, FB will make it bad :P It is better now XD
fb acquires miaou -> banners and ads all over
 
3:16 PM
Well... If I sell some open-source existing source we all still keep it so...
 
    for (var y = 0; y < MAP_HEIGTH; y++) {
    for (var x = 0; x < MAP_WIDTH; x++) {
        if (vakkenArray[x][y].road == false) {
            $("#gamezone"+x+y).css("background-image", "url('img/grasslight.jpg')");
            }
        }
    }
Still gives an error on the [x]
strangely
 
put it on jsfiddle
are you sure it shouldn't be MAP_HEIGHT?
 
Ah, it works, I think ;)
Yeah, I just translated it here
 
$("#gamezone"+x+y) is definitiely wrong
 
I had other plans for the next hour but if some repwhoring makes me pass John Skeet on stackrating, it's tempting...
3
 
3:19 PM
My bad :)
First of all $ is jQuery, secondly, I used the array the other way round: [y][x] and that pretty much did the trick, I think
 
still definitely wrong
 
Why is it wrong?
I used it to define ID's of divs
in the for-loop, it should be correct, no?
 
First off, store the reference somewhere, don't generate an ID
second, the way you generate these IDs causes collisions
 
There're no non-unique ID's tho...
But, for the first comment
I stored the ID in the array as well
perhaps I should use that?
 
store the element in the array
then it doesn't need an ID
 
3:23 PM
True. But how can I then refer to it for the background to be changed?
 
^^
 
... by its property name, ofc
 
vakkenArray[x][y].id, in this case?
 
store the dom node there
 
THE
any windows dev here ?
 
3:28 PM
dom node; the type of element?
 
@AwalGarg we can talk now
i will be 100x more logical now
my i read our convo in teh morning
 
@Abhishrek Were you on your meds?
 
yeah you almost defied all present cryptography standards in a single paragraph XD
 
@AwalGarg oi i mixed the book in my hand with the knowledge i have
the book in my hand defies it not me.
i had to remember wahts written init or i'd fail
@SomeGuy i am always on meds :P for many reasons :-/
 
so I guess you didn't fail?
 
3:33 PM
@AwalGarg i wrote 48 pages of insane bullshit
which i am ashamed about.
 
how not to fail in indian academic exams related to computers: learn everything wrong.
 
@AwalGarg no learn everything, which was true 20 years before
 
same deal :P
(j/k)
!!afk
 
how not to fail in indian academic exams related to computers: relocate to America or west Europe
 
@JanDvorak i am
well i will try after 2 years of batuapay to get a real degree in computer science
and do my Bachelors again from a real college, this degree is more to reduce the soceity bullshit
 
THE
3:43 PM
grrrrrrrrr
 
@JanDvorak Do you have a little time to spare to take a look at the fiddle?
 
Just dump a link here and someone will pick it up
 
@SterlingArcher reddit.com/r/MadeMeSmile insta feels
 
For some reason, 4 tiles are not correct: 12, 1 and 3 more are having road = true although they have road = false.
It's pretty strange
 
3:46 PM
I was reading that and it just made me life
In India, you don't get clean drinking water nearly as easily
So the concept just breaks
 
@Kryptonous told ya you have conflicing IDs
 
Yeah true ;)
Some way to edit it ?
You told me about dom nodes, but I didn't really understand it.
 
@SomeGuy you can
get out of bombay for sometime :P
 
Without it being bottled water?
> Clean, safe drinking water that flows freely out of our faucets is a feat of engineering that humans have been been perfecting for two millennia.
That is definitely not something we have anywhere in India
 
@SomeGuy we do
 
3:49 PM
Where?
 
Have you ever lived in a small city ?
 
Nope
 
some small cities do have clean and safe drinking water that comes down from the tap
 
Could you name some?
 
Bina :P
the water there is much better than bangalore
i used to drink it from the TAP, nothing ever happened
 
3:52 PM
@Abhishrek were you doing job there?
 
Oh, that's just anecdotal. I've swallowed water in the shower and nothing happened either, but that doesn't mean it's safe
 
I just got an upvote for an old answer on how to use a canvas on IE6. There's a poor damned developer somewhere...
 
@SomeGuy it is safe, the nagar palika filters it and sends it
 
or a fanguy
 
That's good to know
 
3:54 PM
and also mantains the pipelines, cleaning every n month
but its really hard to find in big cities
because of water mafia :P
@Harish In bangalore yes
the water sucks there.
 
@JanDvorak Any idea how to fix it?
 
!!tell krypto mdn document object model
 
@krypto DOM The ISO 3166-1 three-letter (alpha-3) code for the Dominican Republic
 
@Abhishrek in Bina?
 
@krypto It means I aint got time to learn your $5 words.
 
3:56 PM
@Harish bangalore
bina is nice, lil city
 
@Abhishrek you worked there?
 
The only reason I'm here though is to learn from my mistakes. Wasn't this chatroom supposed to do so? I didn't ask for any premade code, now did I?
 
If you know what DOM means, you'll know what I meant by storing it
 
@Harish I have spent 14 years of my life there
and most of my family still lives there, planning to move ?
 
If you saw the fiddle, I created a load of divs, which are (if I understood correctly) DOM elements. If you tell me to store them, then I'd store them fe by id, as I did. I know there're other ways, but I would not know which one is good for it
 
4:00 PM
@Abhishrek I thought you were from Jabalpur
 
@Kryptonous if you stored them by ID, you were storing their ID, not them. Their IDs are colliding. You should do without IDs altogether.
 
@SomeGuy I live in jabalpur now
 
Ok. So I should use the array in which I stored the elements themselves, I guess?
 
@dystroy that guy is... misinformed or something.
0
A: Is ES6 module loader part of standard?

yttriumAfter a short investigation I found an answer. There is no ES6 module loader specification in final draft. It only describes how modules should be loaded. But there is WHATWG ES module loader spec, which is far better than nothing and for me it fits to stick with. Related links: WHATWG loader ...

 
@Abhishrek Ah, and your family does too, right?
 
4:02 PM
 
@Kryptonous Not sure i understand your idea. Show some code
 
Its funny how bina kinda exploded now and outshines jabalpur in basic services
 
As you can see in the fiddle, each div is stored in the vakkenArray. So I should use that array to get objects?
 
despite jabalpur has a much stabler source of water :P
 
@Kryptonous yes
 
4:04 PM
Ah
 
Ok, I'll try that!
 
@Abhishrek have you been to the beda ghaats?
 
@AwalGarg probably... but I don't have enough specific knowledge to step in
 
@AwalGarg yes
 
@dystroy just read his answer ._.
 
4:07 PM
did it
 
Y U NO RAGE THEN?
 
no, I'm just "wtf... wtf?... wtf???"
 
He says he read the draft spec and doesn't know if we can or cannot load modules dynamically :/
 
@AwalGarg hes old and mature. he won't rage he just feels pity
 
@AwalGarg he is actually correct, isn't he?
 
4:11 PM
what. no?
 
there's no loader spec in ES
 
...
 
and there shouldn't be
he's not talking about import X from Y
he's talking about System.import
for example
 
How is that related specifically to ES6?
anyways, off to dinner
 
which adheres to that spec
 
4:14 PM
brb
 
@AwalGarg who cares? he is looking for a standard that will persist into the future
at least that's what I assume
he isn't being very clear about it
 
 
1 hour later…
5:18 PM
@Mosho what I mean is, his question asks for a "module loader" in the final version of ES6 (which is not yet out) :/ There is a module loading specification (import/export) which I linked him to (in the draft), which he explains he has "read" but can't understand if "modules can be loaded dynamically or not" while the draft clearly explains this. Then he gives back an answer which claims there is no module loader specification in ES6 "final" draft.
 
5:43 PM
@AwalGarg where does it say anything about dynamically loading modules
you could say that there's module loading, but no spec for a module loader
 
@Mosho section 15.2.1.16 describes how ECMAScript modules' resolution is handled, and the import definition is described by strings. Then later is describes that module imports must be top level.
This is all there is for dynamic loading.
 
how is that dynamic
you can't resolve what to import at runtime with that, can you?
 
@Mosho no, dynamic loading is not possible. That's what those two points mean.
so the spec makes it clear that dynamic loading is not there.
 
ofc it is, it's just not part of the language
 
yeah, not from the import/export syntax.
 
5:58 PM
yup
 
@Mosho I don't see him mention system modules anywhere?
 
yeah, like I said, he wasn't clear about it, I doubt he fully knows what he means :P but I guessed that's what he was looking for
 

« first day (1680 days earlier)      last day (3267 days later) »