« first day (1874 days earlier)      last day (3077 days later) » 

2:00 PM
!! afk meeting
 
@feniixx jsfiddle.net/5jk1hqsv is this ok?
 
@Julo0sS Would you explain me why I got this error with my code? jsfiddle.net/doygokrb/4
I don't see anything special, more than the null value...
 
@feniixx null value has nothing to do with that
push empty field it will work
Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys
error message is clear i think...
 
Yeah it is, but if I add two empty rows in you fiddle it still keeps working, why?
 
lol, @SterlingArcher you like reaction videos... youtube.com/watch?v=5NaaBhIwGRI
 
2:06 PM
@feniixx because its not the same var
 
Ok, I see
 
when you declare your "friend" in controller, it gets a "hashkey" or something from angularJs
(automatically)
 
@KarelG so, how much does it cost if I want to buy it?
 
@FlorianMargaine KarelG is afk: meeting
 
But also, I don't want to add another row if theres one empty row.. How could I do that?
 
2:07 PM
@feniixx display your friend object and you'll see $$hashkey or something like this in its properties, thats probably why angular does not allow you to push it twice. Its some kind of "duplicate" i guess
 
Yeah, I remembered itxD
 
@feniixx why not simply use a flag?
 
what do you mean?
would you do it in the fiddle pls?
 
rest-spread isn't in node yet?
 
2:21 PM
just posin' :)
 
@BenjaminGruenbaum what do you mean by "invalidating all references to the DOM object"?
(cloneNode)
Also, what were you doing on that answer of mine? lol
 
@feniixx u there?
 
@SterlingArcher bro
watch korean men react to american porn
it is hilarious
 
crl
stupid question, why does jsfiddle.net/crl/gy0wcdya return the input value before the update? (I'd like to ave the current value)
 
@rlemon liiiiink
 
2:29 PM
23 mins ago, by rlemon
lol, @SterlingArcher you like reaction videos... https://www.youtube.com/watch?v=5NaaBhIwGRI
 
I can't watch that at work :(
how do they react?
 
4
A: Why is PHP $_FILES always null

Sujeet<?php print_r($_FILES);?> <form action="" method="post" enctype="multipart/form-data"> <div> <label for="subject">Subject</label> <input type="text" name="subject" /> </div> <div> <label for="image">Image</label> <input type="file" name="image" /> <...

wtf, am I missing something or is this just no answer at all?
 
I think that's an answer: it teaches how to fish!
 
@GNi33 He interprets the question as a "How do I make $_FILES not null?"
 
@rlemon lol I will later, I'm already busy at work :(
 
2:32 PM
hi all how to find ancor text based on id
 
@rlemon It's true, black : white :: white : asian
 
@Neil he's just printing it
 
And I ripped my pants and my other pants are at the dry cleaners..
ughh fuck today already
 
that's all he does, how is this an answer?
 
@GNi33 He's demonstrating that it isn't null in his example
still not a complete answer, but I see the reason behind it
 
2:33 PM
hi

i have some thing like this

<a id="0127331779-2" href="javascript:void(0);" value="A B &amp; B Auto Parts" cssb="Callahan,FL" arsb="Green Ave,S Kings Ave">A B &amp; B <b>Auto</b> <b>Parts</b> (Green Ave,S Kings Ave) Callahan, FL<span class="stars_m"><span class="ms10"></a>
 
if OP is getting null for $_FILES, I'd think that he knows how to print the array. It doesn't answer why it could be always "null" from him
 
how can i find text of ancor based on id
 
because that's somehow what's happening to me right now
 
tried with .text
.text() funxtion
 
@abhi document.querySelector('#0127331779-2').textContent;
 
2:34 PM
textContent isn't a function
 
every answer (except the one of Jumpey, which could point to a reason) is horrible on this question
 
holy shit the guy with teeth lol
 
@AmericanSlime it say's Error: An invalid or illegal string was specified
 
2:36 PM
@abhi show code, not just html
 
Are ID's that start with a number, even valid? I thought it had to start with an alphabetical character
 
@Nick That is correct...good catch.
 
@HassanAlthaf Node is awesome; I'm not a fan of Express, though
 
@Nick What do you use for the UI then?
I mean for web server
 
@Nick that's HTML4
 
2:38 PM
purposes?
 
In HTML5, a single character is a valid ID
 
@HassanAlthaf UI? Express doesn't handle your UI; only the routing, essentially
 
Nick: I believe HTML5 allows id's to start with numbers: stackoverflow.com/questions/70579/…
 
2:38 PM
@Nick Yup I fixed it. I meant web server sht
 
@SterlingArcher Ah, didn't know there was an update to that rule
 
You rang?
 
@HassanAlthaf Well, right now I'm building my own framework that's 10x prettier, lol
 
Finally I fucking knew something you didn't lol
 
I'd still adhere to that rule by the way :)
 
2:39 PM
@SterlingArcher You know a lot that I don't. I'm not that smart, bro
 
Yeah well I'm more not smart haha
 
@HassanAlthaf Here's an example of a controller (with routing) using my framework: paste.ofcode.org/UcTVVfGCp7XrXdZeTH5yJQ
 
!!youtube digital world amaranthe
 
@Loktar @GNi33 ^^^^^ yas
 
2:40 PM
EEEK! youtu.be/D5VjK7IiRpk?t=1m50s I can't watch
 
JESUS HES BLEEDING
 
where can I buy a raspberry pi zero for $5?
 
probably nowhere right now ;9
 
or it's just a slogan?
 
jQuery is almost eliminated from my code. All I have left are ajax calls and event listeners. Feels good man.
 
2:42 PM
@Nick Classes?!
 
^ that's pretty much all I use jQuery for lately though
 
@GNi33 doesn't the bald singer in that band look eerily like Matt Heafy??
 
@HassanAlthaf Yes, what about them?
 
@Nick ES6?
 
@HassanAlthaf ES6+, notice the annotations
 
2:44 PM
@rlemon that vid was dope!
 
was it dope?
!!youtube ist das ganja
 
@SterlingArcher hehe, yeah
 
@rlemon lol
 
Octavian's hometown in the JS chat
 
2:46 PM
@Octavian is here?!
where?!
 
omg whurr
 
how to order from walmart to India :(
 
your butt
 
crl
@AwalGarg you want their cookies?
 
Is function test() { // code } a declaration or initialization?
 
2:48 PM
I got plenty of good cookies here, someone here wants walmart.com/ip/Hodedah-Microwave-Cart/28486918 and they are bugging me since 3 hours.
 
crl
@AmericanSlime former
 
> This is why Europe is so much more advanced than Amerikkka. If this had happened there, that cop would have shot the guy simply for being black, and probably thinking black person + weed = crime.
topkek
 
@AmericanSlime both
 
crl
oh I mean initialize as call for the first time, yea Awal is right
 
@AmericanSlime It is not a valid function because it's missing the trailing } ;)
 
2:50 PM
The reason why I'm asking is because I wanted to know if js was going to hoist functions like this to the top?
 
I don't have much shopping experience online, but that page has no "buy now" button or anything :(
 
@AmericanSlime yes, it will
 
@FlorianMargaine Thank you and co.
 
@AwalGarg Walmart's furniture is usually terrible quality. I also find it strange that someone in India really wants a microwave cart. Nobody anywhere really wants a microwave cart.
 
Thanks, how to place order?
 
2:52 PM
Am I walmart?
 
Please be :(
 
Don't buy things from Walmart, you peasant
 
My follow-up question is, should I be putting my declarations at the top or does it not matter since js does it for me anyways? Was thinking in terms of performance.
 
@AmericanSlime in terms of performance? Doesn't matter at all
 
I dint knew it is in India already.
 
2:55 PM
Walmart is gross; but don't tell @Jhawins -- he gets offended, because he was born in a walmart.
 
@FlorianMargaine If not performance, is there something else I should be concerned about? I always put my functions at the very bottom of my code outside the ready function, but after reading about the hoisting I'm thinking maybe I should put them at the top since that's what js wants. Maybe there is no difference and I can just keep doing what I do.
 
Continue...
 
@SterlingArcher I lik eit
 
@AmericanSlime do what makes most sense with regards to maintainability
 
2:58 PM
@SterlingArcher youtube.com/watch?v=SxOybZcRXhI haha the chorus gives me a dragonforce vibe
 
@FlorianMargaine Good enough for me, thanks.
 
On Thu, Dec 3, 2015 at 8:26 PM Mention Bot <notifications@github.com> wrote:
 By analyzing the blame information on this pull request, we identified
 @awalGarg <https://github.com/awalGarg> to be a potential reviewer

 —
 Reply to this email directly or view it on GitHub
 <#160 (comment)>
wtf
who the hell is Mention Bot
 
crl
Does jCarry's .find use querySelectorAll when available? (hope so)
 
your mom
 
crl
3:01 PM
his mom sure checks his commits
 
Even more apparently, contributing to FB's stuff wasn't the best of my ideas.
 
i.imgur.com/CfBMSJ2.gifv south park is right lol
 
ohhhh can't watch my video because "too busy" but can look at the front page of reddit for 20 minutes
I see how it is
 
It was the top link D: and my new tab is set to open reddit xD
 
@SterlingArcher Amazing how the third student catches on ;)
 
3:12 PM
@SterlingArcher so weird, the 1st student should be on the left, not the right
 
Douglas Crockford's 3 day Javascript workshop is now live (Day 2), if anybody is interested: livestream.com/accounts/4894689/events/4550345/videos/106027249
 
If I work alone and nobody else uses my files, would I see any benefit from using Git?
 
yes
 
crl
3:14 PM
yes
 
Version control your own code.
 
If you don't use Git, you will always just keep working alone and nobody else will use your files. Decide for yourself if that's a benefit or loss.
 
crl
without git it will look like test0.js, test1.js, testkendallsmom.js ...
 
That's basically how I do it...and thanks everyone for pointing out how much of a noob I am. Today's task, learn and use Git.
 
3:16 PM
That's a "this hour's" task, not today's task.
 
@AwalGarg lmao
 
var logApp = angular.logAppule('loggingApp', []);
what is logAppule ?
taken from here: cmatskas.com/…
 
I doubt any of you are using GitHub's desktop app right...that's for amatures?
 
github has a desktop app? TIL
 
crl
I use GH web commit things directly and git locally, no real need of their app
 
3:19 PM
it has sense to say that you are a frontend full stack developer?
 
@AwalGarg that's not really what git is about...
 
I mean, full stack doesn't mean front & backend?
 
@Neoares I'm a farmer
 
@rlemon no you are a rich lemon
 
@FlorianMargaine that's not really what I meant...
 
3:20 PM
@AwalGarg then don't say it
 
@FlorianMargaine I meant, not using a VCS makes other people hate you, and thus, no one else will want to work on your code.
 
saw this yesterday ^
 
So america's state of loneliness will just stay as is.
 
@Julo0sS are you there?
 
3:22 PM
@Neoares Front-end full stack developer doesn't make sense to me lol.
 
who wants to see 800gb of sd cards?
 
why?
 
reasons
 
well, yes
 
@rlemon you will put them in raspberry pis or something of that sorts, no?
 
3:24 PM
yes
 
fun
 
user image
2
 
crl
that's raspberry's hdd
 
it's the hdd for many embedded pc's
 
that doesn't qualify as nsfw does it?
 
3:29 PM
@rlemon is there not way to buy in bulk without the packaging?
 
this is the best we can do
we've asked.
 
crazy.
 
unless we order a few million from China this is what we deal with
 
@Neil Nah, no one looking from a distance will see anything
 
and then the adapters..
such a waste.
 
3:31 PM
what's the problem, he uses the mouse alot
should keep his hands on the home-row ...
 
"a lot" (in memory of @JanDvorak).
 
he's clearly using one of those stress balls
 
... oh, he's a lefty O_O
 
+1 javascript knowledge; -1 charm
 
charm's overrated
and so is angularjs
 
3:34 PM
When using babel, do you simply build the whole codebase into a dist/ folder when putting the project on NPM?
 
That's one way, yes.
pretty common.
I've had issues consuming a pre-babeled project before, due to their choices.
 
@SterlingArcher bro
 
Don't they say to avoid using babel-node in production like, first page of the docs?
 
I wonder if there is a system to test if your npm package can work well in different environments (node, browserify, webpack, etc)
 
It's server-only, luckily
 
3:36 PM
you didn't ask that, you asked about pre-compiling which is not babel-node
 
In dev I use babel-node to run everything with a live reloading fake server to test some TCP socket connections
 
if you're sure it's only used in node, just pre-compiling to /dist is probably fine. and maybe using babel-runtime, if needed.
 
... are aliens
 
if they are, we are.
 
in relation to tardigrades? yes
 
3:37 PM
Hi all, I have a question regarding iframes, browser-window/tabs and 'onload' event. But I'm having trouble to bring it into words (which is impeding my ability to google for an answer).
If I set an onload event to an iframe-element, the onload event will fire every time the iframe loads content. However, when I create a new window (using window.open) and set an onload-event to the reference that the open-method returns, it seems to fire only once (not on subsequent reloads of that window: if I click and navigate to other content, all still on the same domain).
Now if I try to reason about this, I notice (and tested) a clear difference: reference_to_iframe_element.contentWindow === window for webpage loaded in iframe BUT reference_to_window_open_return_value === window for webpage loaded in new browser window/tab.
Then: `reference_to_iframe_element.onload !== reference_to_iframe_element.contentWindow.onload` AND `reference_to_window_open_return_value.onload === window.onload //(seen from new browser window/tab)` I tested and verified this reasoning in Firefox. Is this reasoning also correct in respect to the spec?
If yes, then, I understand why the onload I set on the reference_to_window_open_return_value worked only once (and not subsequent page-loads)?
 
!!youtube no rain
 
whoa, slow down there.
 
(How) Can I get a reference to the new browser window/tab as well, like the iframe AND set a persistent onload event to it (like the iframe)? Or is there no other solution than to resort to either an continuous interval on the main-page (that spawns the new window) which checks the slave-window url/content or an interval on the main page that get's triggered by a ununload/onhashchange/etc. event on the slave-page (which must be inserted again on every page-load)?
 
@GitaarLAB post a question on SO demmit.
can't get no points hea.
 
3:39 PM
ugh.
I hate when people are like "okay I'll upload to youtube but not make it available in Canada"
 
I'm having trouble wording it and googling for an existing answer.
 
no incentive to compart knowledge, garnered through sweet/tears, over a chat.
 
If it's not on SO and it can be worded better, I'd be happy to post it as a question.
 
crl
I agree that chat is for simple questions, that can be expressed shortly at least, won't have time to read everything you posted sorry
 
3:40 PM
@rlemon i like that song
 
Your question is clear (but hard to read all bunched up :). I don't know the answer about the onload event, but a possible 'workaround' if you control the content of the windows.
There is a message passing deal between browser windows. You could have the windows catch it's own onload event and use that message passing to pass it back tot he parent (I think). This may be overkill. there may be a simple answer to your problem. I don't work with other windows too often.
 
that is BF3
pretty sure gameplay
 
@Luggage Yes, my question is essentially very simple :) explaining it tough.. is a bit harder. The alternative solution you mention is indeed one of the options (at least no optionally triggered interval on the main-page) but still requires modification of each subsequent loaded page in the slave-page. A persistent onload-event on the browser-window/tab (like on the iframe-element) would be ideal.
 
Still learning on prototypes/constructors, was looking at this brief article: thecodeship.com/web-development/… I am confused on how the "constructor" functions balance/transaction are private? Or what is meant by that? The same set of functions would be available to each person regardless of it being constructor or prototype. Am I missing something simple?
 
crl
protip: if you're freefalling with a weapon, shoot downwards you might lose a bit of speed
 
3:46 PM
If you have two flamethrowers, strap them to your back and make a makeshift jetpack
 
In other news, I hate the word polyfill.
 
why? It sounds like a vague sexual orientation
 
@crl no you shoot up. the air is pushing you down, you have to fight back.
 
crl
@rlemon or use your trousers (that's from you I think)
(as a parachute this time)
 
@corvid fire != thrust
 
3:51 PM
@crl yes! you remembered!
how sweet
 
Hmm, I wonder what delta-V an AK-47 has per bullet given a 150-lb person holding it
 
@Austin you mean the difference between bar1() and bar2() below?
function Foo() { // class foo
    this.bar1 = function() { };
}
Foo.prototype.bar2 = function() {};
 
essentially yes
I get the memory saving from having a "constructor" function I believe it is called, but I do not get the privacy part of it
 
They are both 'instance methods', and neither are private. There may not be much of a difference in practice, but there is one subtle difference.
 
crl
one can take profit of inheritance maybe(but I suck at prototypes)
 
3:53 PM
you can give bar2 to another class
 
bar2() is defined once and 'inherited' where bar1() is created each time an instance is constructed.
 
Correct, and that's the memory saving thing right? prototype's save memory as they are not re-created?
with the new object
 
it may not really use more ram due to the way the JS engine optimizes, but I can't say that with too much confidence.
 
Yea I saw that too
So, why did the author mention those two constructor functions as being private then?
 
the functions like addTransaction() are not private, but some of the variables they access are (like records) are
 
3:56 PM
Oh, I see!
 
and, that is why they are defined in the constructor. They are using JS's function-scoped variables to ensure that records can ONLY be accessed through those funcitons.
whihc may or may not be called a closure in this case, i forget.
 
user1596138
@Nick I was born in a Walmart
7
 
wow, that's just css?
 
So in a real world used case a local variable doesn't really do much when you reload the page, i.e. records would obviously be stored in some DB. What would would define in there for a real use case? Or are var's considered private information in certain cases?
 
3:59 PM
It's because people are trying to 'encapsulate' and protect the variable from accidental use outside of that that 'class', preventing bugs
 

« first day (1874 days earlier)      last day (3077 days later) »