« first day (2114 days earlier)      last day (2817 days later) » 
00:00 - 18:0018:00 - 00:00

12:22 AM
 
Tom Cruise
 
The dude's literally in the iron age now
 
12:38 AM
@ndugger What I was trying to accomplish with the circular reference detection was to favor the shallow object over the first deep reference. To do that properly would mean walking the entire object first, before ever rendering it. I think this is too much for little gain and we can go back to just preventing an infinite loop and rip out all the "path" stuff and drop immutable.js.
 
Right now I'm working on putting your theme back together via aphrodite; you'll like it, I think.
It's like LESS but on steroids
because it's JS
 
Yea. I'm not generally in favor of inline style, but for this, I think it makes sense.
 
Aphrodite isn't inline
It creates a stylsheet and hashes your classnames so they can't conflict with anything
 
does it generate a <style> tag or put style attributes on?
ohh.. ok.
 
I can show you real quick an example
export const object = {
	objectContainer: {

	},
	objectLabel: {
		...common.label,
		backgroundColor: useHSL(objectHSL),
		borderColor: useHSL(darkenHSL(objectHSL, 20))
	},
	objectProperties: {
		...common.block.children,
		borderColor: useHSL(darkenHSL(objectHSL, 20))
	},
	objectProperty: {
		display: 'table-row'
	},
	objectValue: {
		...common.block.childValue,
		borderColor: useHSL(darkenHSL(objectHSL, 20))
	},
	objectKey: {
		...common.block.childValue,
		...common.block.childKey,
		backgroundColor: useHSL(desaturateHSL(lightenHSL(objectHSL, 30), 10)),
 
12:41 AM
What you said makes perfect sense.
 
Sorry, massive paste
Alright, yeah, then you use aphrodite to convert them into a stylesheet, and you use the classNames from it
 
That makes it easier to include in random projects and my method would require webpack.
 
it's really nice
Well, I'm already using webpack
I'll make a repo tomorrow that will have the package.json in there so you can just init and run with it
 
cool.
I see. you use it like inline styles but aphrodite's css() takes it out.
 
Yup
So you end up with less bloat in your DOM
We use it at work
 
12:52 AM
I just have a bloated-ass pile of bootstrap-based less.
:(
 
user406009
Hmm. Does anyone have a good understanding of how garbage collection works with things like websockets? Like you create a websocket, and assign an onmessage handler which refers to that original websocket. And then you drop a reference to that websocket connection.
 
user406009
When exactly would that websocket be garbage collected?
 
user406009
When it is closed? Do you have to explicitly clear the onmessage handler to remove the circular reference?
 
Who closes sockets? :)
 
user406009
@Luggage I am primarily just worried about memory leaks.
 
12:55 AM
Unless you are only creating one socket and not adding new handlers, you probably don't need to.
 
user406009
And I am really unsure of the behavior when you have circular references like this.
 
user406009
@Luggage In my case, I have automatic reconnection when the socket is closed.
 
user406009
With a backoff, etc, etc.
 
Well, I use a library to do that for me, so I don't know. Sorry.
but typically a circular reference is not an issue for garbage collection. It's normal.
 
user406009
There is lots more documention for how this is supposed to work with DOM nodes.
 
user406009
12:58 AM
@Luggage The issue is that there are times where you want that circular reference to live on. Like you want that websocket to live and keep receiving messages even if there are no outside references.
 
My gut feeling is that I don't see a problem, but I can't back that up.
!!burrito or sub
 
@Luggage burrito
 
user406009
Hmm. It'll probably be just like the DOM semantics then.
 
!!die fast or die faster
 
user406009
When the socket gets closed, the websocket and it's message handlers get deleted (assuming no external references)
 
12:59 AM
uh oh. did I break cap?
!!status
 
user406009
Well, you did tell it to die :P
 
!!live
 
omg it got there today
 
!!refresh
luggage pls
 
@rlemon @ndugger broke cap.
 
user406009
1:00 AM
Lol, I should have just looked at the spec. w3.org/TR/2011/WD-websockets-20110419/#garbage-collection
 
He's on 2 weeks vacation
 
user406009
Clear as day.
 
!!are you alive?
 
@KendallFrey Probably
 
user406009
I guess that's another lesson to RTFM before asking questions.
 
1:01 AM
@CapricaSix you scared me. I was worried sick. Call next time.
!!cowsay Pikachu
 
 ________
< Pikachu >
 --------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
 
!!cowsay e=@@ T=/ BLAZE IT
 
 _________
< BLAZE IT >
 ---------
        \   ^__^
         \  (@@)\_______
            (__)\       )\/\
             /  ||----w |
                ||     ||
 
I keep forgetting about this most wondrous of commands
 
It's one of the things I have installed with homebrew.
 
1:09 AM
Why is it called cow, when the w looks like... nevermind
 
user406009
@cswl They are supposed to be udders.
 
also, see a doctor about your cleft penis.
 
Yeah, just realized bulls don't have balls
 
oh boy do they
 
Um. They do. Otherwise the species would be in some deep trouble.
 
1:14 AM
I mean at that location.
 
In colorado you can order some at a restaurant.
 
Their balls literally hang down to their ankles, bro.
Can you say the same?
 
They are getting there. Just a few more years.
 
Okay, shouldn't have googled that..
is using weakmap for detecting objects okay? .. jsfiddle.net/cswl/cg0ctkLx/1
 
1:32 AM
@Luggage I've got only string, number, object, and array converted so far, but here's how the theme looks in aphrodite so far: gist.github.com/ndugger/38309cc13a42ebe48be55a548b7cc812
 
user406009
@cswl Seems valid, but I don't know why you would want to do that. What are you worried about?
 
user406009
My one worry is that o1 could be garbage collected before that statement is called.
 
user406009
Thus causing refs.has(v) to be false as v has already been garbage collected.
 
user406009
Yeah, the more I think about it, your code is incorrect because of the risk of garbage collection of o1.
 
user406009
I'm not really sure if the language specifies when exactly things are allowed to be cleaned up by the garbage collector.
 
user406009
1:38 AM
WeakMaps are dangerous tools.
 
They're quite useful, though.
 
user406009
Actually, there is no risk of garbage collection.
 
user406009
I was wrong.
 
user406009
Your code is valid.
 
user406009
It has clearly reached that time of night where I can no longer think. Good night folks.
 
2:23 AM
Roborace will be a motorsport championship with autonomously driving, electrically powered vehicles. The series will be held on the same tracks as the Formula E championship season, Roborace leasing the tracks and adapting them. This will be the first global championship for driverless cars. The first race is intended to take place during the 2016–17 Formula E season, on the same circuits as the main championship. Ten teams, each with two driverless cars, will compete in one-hour races over the full season. All teams will have the same cars, but will develop their own real-time computing algorithms...
Holy shit I want to see this
 
2:45 AM
Actually, I'm looking for one object to be able to reference to the other object... but not prevent garbage collection... but only keys in weakmap are weak.. just trying out some stuffs
 
 
1 hour later…
xxx
4:08 AM
Hello
 
@xxx Welcome to the JavaScript chat! Please review the room 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.
 
Hi guys gd mrning..
I am using mulitple select drop down option. The drop down shows all the selected values as tick mark, if you click on the option again the selected option will be unselected.
So what i want is unselected option value as soon as it is unselected
Is that possible
?
Thanks in advance
 
4:35 AM
hi all - i remember seeing something last year (might have been in programming challenges) where you could generate beautiful random images using javascript, drawing (eg) 512x square using every color in the 32bit palette only once, plus a few other rules.
i can't for the life of me, find the webpage that generates these images, nor the stack question that has the links. can anyone help?
 
298
Q: Images with all colors

Mark JeronimusSimilar to the images on allrgb.com, Make images where each pixel is a unique color (no color is used twice and no color is missing). Give a program that generates such an image, along with a screenshot or file of the output (upload as PNG). Create the image purely algorithmically. Image must ...

 
YES! thankyou sir
 
 
1 hour later…
5:50 AM
Okay so this might be the dumbest question to ask but can somebody suggest which one to use - Babel vs. Traceur vs. Any other alternative you might suggest*?
 
Babel
 
I remember there was a new kid on the block, built by the biggies.
Don't recal the name.
 
 
2 hours later…
7:26 AM
Hi, anyone know any tool/NodeJS module that will extract all comments from JS files?
 
 
1 hour later…
8:42 AM
@overlord You can use a js parser, like esprima or acorn or babylon.
 
9:05 AM
hi
is it possible to write custom html tags in angular, like <resopnsive-image src-mobile="..." src-tablet="..." /> and then have them converted to regular html like <div src-mobile="..."></div>?
i'm not looking for a solution of responsive images, it is the example, i'm looking for an answer if i can do it in not too difficult way, i can do this in riot.js but angular is more popular
 
9:27 AM
oh hi @Zirak
 
Saturday
 
10:04 AM
@DariuszSikorski Many modules of angular out there uses there own tags
take this for example
this uses ng-gallery tags
 
10:20 AM
@BadgerCat Hullo~
 
10:33 AM
I have 3 hours and I want to learn something useful that has to do with programming, do not suggest common lisp (you know who you are). What do?
 
can anybody tell me how I would make a url with get values as well as the hashtag to scrolldown to div?
so how would I incorporate these two urls - example.php?id1=value1 and example.php/#divId
nevermind, figured it out. Its gotta be like this - example.php?id1=value1&/#divId
 
10:59 AM
@BenjaminGruenbaum hi
 
suggested syntax sugar for
 
@BenjaminGruenbaum since I'm in it these days, I can suggest writing an nginx module that adds a custom header
 
@BenjaminGruenbaum what do you not know?
 
@BenjaminGruenbaum another suggestion is learning user-mode Linux, an easy way to test your changes in the kernel source, since you can just recompile and run the kernel as a process
(you can try adding a debug log and see it in dmesg)
 
@FlorianMargaine not a bad idea
Thanks
 
11:11 AM
@BenjaminGruenbaum Just play Frantic
 
the UML thing might need more than 3 hours though
 
Get the impossible badge, impress the ladies
 
lol, crazy monkey games
such nostalgia
John, he was a nice guy
 
@Zirak much lady, such impress
 
11:24 AM
@copy I need to share something between two servers via a shared cookie - it is secret but not horribly secret (let's say, the user's email and an ID) - I figured I'd encrypt-then-hmac but I don't want to write the code myself. I'm using .NET and I don't see any "baked" solutions.
Now the code for writing it is simple and I'm not implementing my own algorithms just the schema and it's a fairly standard one.
How bad is what I'm considering doing?
 
@BenjaminGruenbaum any reason you're not considering asymmetric encryption?
 
There is no problem for both sides to communicate a key ahead of time.
 
11:40 AM
@BenjaminGruenbaum You'll be fine. If you can find equivalent implementations in other languages use them as reference.
 
11:57 AM
!!cowsay Pika pika
 
 ________
< Pikachu >
 --------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
 ____________
< Pikachuuuuu >
 ------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
 __________
< Pika pika >
 ----------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
 
Just setup Zsh + iTerm2
and dash
This feel so muc hbetter
 
12:13 PM
what does "Pragma: no-cache" do exactly in a request from client to server? Makes no sense... do servers actually cache things?
 
@Abhishrek you forgot this?
 
am using atom
that is what the terminal looks like atm
 
12:31 PM
hostname
 
@ab what is doing the colorsing of npm output?
ohh, mine is colored, I just didn't realize.
 
12:47 PM
ohh, new chrome incogito mode style:
 
@Luggage what's new?
 
@Luggage almost done with getting the theme back to where it was; I also added support for typed arrays; they just use the array's component, though
it uses their consturctor's name instead of just Array at least
 
1:26 PM
@FlorianMargaine it's much darker
Array - length: 4
MyTypedArray: Array - length: 5
 
1:41 PM
Why?
 
@GNi33 lol, just discovered this youtube.com/watch?v=bIIGKV27FaY
Songs like that make learning German worth it
 
@FlorianMargaine hey are you on freenode? can I PM you there?
 
2:02 PM
Hi, quick question: I need to create an object with value of some variable as a key. My approach: {styles.open: this.state.open} gives an error. I also tried {{styles.open}: this.state.open} or {(styles.open): this.state.open}.
 
@Peter Welcome to the JavaScript chat! Please review the room 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.
 
@peter close, almost; use {[styles.open]: this.state.open}
 
@filip Thanks, it works. :) How unintuitive syntax this ES6 thing.. Square brackets means list in most languages.
 
hello everyone
 
2:07 PM
anyone who knows yts for movie "browsing" in here?
if so, yts provides a list of APIs to query the movie db.. if yts itself is illegal (or I think it is) as it shares torrents to download copyrighted contents
do you think it's also illegal to use it's APIs to create some js modules?
 
the legality would depend on the terms from which the copyright holders initially sourced their material that's being infringed and their judicature
 
!!define judicature
 
@Luggage judicature The administration of justice by judges and courts.
 
I would be inclined to say no, but it's really not a binary case with law; rule of thumb: if you think someone can sue you, they will sue you
 
I'll see you in court.
 
2:14 PM
@FilipDupanović That's slander!
 
I witnessed it.
 
I wanted do practise a little with node js and thought of building a module out of yts apis
what if I wanted to publish the module on npm website?
 
MDN is down--it's the end of the world
 
@ndugger i see it up and running
 
make something, waiver all responsibility, piggyback on the API provider that it was their responsibility to prevent copyright infringement... cross your fingers your of no interest to anyone
 
2:19 PM
ahahhah ok I'll practise on something else then
thanks
 
Hey guys!
 
if you want to mess with data, try last.fm (music)... idk, maybe IMDB has some nice public API (movies)
 
I've been working on a tiny app in Angular2.
Is there anyway to detect text changes in <input>
After googling, I found "keypress" event
But when I get the value, its the previous state, not the latest state.
 
@FilipDupanović thanks, I'll give it a try
 
^ last.fm provides it's service under terms that all users accept that their activity will be publicly accessible through a programmatic API, so you can even do a legit project for school
 
2:22 PM
@HassanAlthaf keypress is really bad, use literally any other event
 
Oh. @ndugger What would be an alternative for what I want to achieve?
 
@HassanAlthaf change event for IE10+. blur event as a fallback
 
@Luggage "change" event doesn't seem to work.
Let me get you a pastebin for my change event attempt
 
@HassanAlthaf you need to google other events
This is super simple stuff
 
@ndugger Yes, I found change and keypress.
 
2:24 PM
Find more
 
Keypress doesn't get me the upto date text.
 
actually try, please
 
@HassanAlthaf jsbin.com/sesukaz/edit?html,js,console,output the change event is firing on blur, which surprised me
but it does work
 
@Luggage I'm using Angular2, not pure JS.
 
spits out drink
 
2:27 PM
@Luggage Yes sir
 
someone give the man a tissue
 
-Hands out a tissue-
i want to do a real time search bar
-__-
Never mind!
keyup is the event I needed.
Thank you!
 
no
 
Mam?
 
2:31 PM
You sir say 'no'
?
 
What is the gender neutral term here?
Sam?
 
use var
 
Yeah.
 
const
 
2:32 PM
directive
!
 
no
 
'dawg'
 
also no
 
'dude'
 
2:33 PM
It's a girl!
 
program/script then
 
Male === Female // gender equality
 
false
 
How dare you
 
eh eh eh eh nerd chat, i like it
 
2:34 PM
what? he tested for equality, not set it.
 
I'm not a nerd I'm a gnome.
 
and chrome keeps crashing on this chat page, well done chrome
 
Should have used ==
 
triggers crockford
 
another awesome day with Webpack... switch from CLI to Node.js API and everything works...
 
2:36 PM
Anyone encountered the problem with the google maps api, that, if you have the map in a hidden div and make it visible, the div of the map is grey and only renders the tiles on resize?
 
@BeNdErR chrome doesn't crash, you crash.
 
you are right, it's my fault
developers.google.com/maps/documentation/utilities/… how the hell do you translate this algorithm in javascript? I lost myself around the 8th step last night after 2 hours of tears and beer
 
should have just searched on npm npmjs.com/package/polyline-encoded
 
2:42 PM
oh, your stuck at the 8th step
 
@Luggage ^^
I did the function one
 
Nice.
 
Not sure what you had planned for that exactly
 
ohh.. we could make the promise update itself when it resolves..
 
We could, yeah, I was just playing with tossing one in there, but sure
 
2:43 PM
i'm not asking you to :)
 
yep I knew that already :D wasn't working properly though
 
Looks good.
 
i mean my script last nigth
haven't checked the module you provided yet
 
npm has almost everything..
 
package name: react-object-visualizer ?
 
2:45 PM
I was just trying to do it by myself
it was an excuse to get drunk
trying to reach the ballmer peak
 
@Luggage jsdump is available, but you can name it whatever you want. I'm just contributing; you did most of the heavy lifting
react-jsdump
 
actually I bet you put more than that I at this point, but yea.. jsdump is better
 
maybe
Nah, you've done the logic, I'm just moving the parts around
 
Hey guys.
Was wondering,
How to do something like this:
 
Not now, we're about to make out.
 
2:48 PM
template: `
${{ product.price }}
`
When I put that dollar before that, it gives me errors.
How do I escape the $
 
${'$'}
 
get out of USA
badum tss
 
@ndugger DAMN MAN YOU'RE A KING!
 
no
 
What do you call this process?
 
2:49 PM
programming
 
-__-
Escaping the $ without breaking the code?
 
You have no idea what you're doing.
 
Yeah. I don't.
:/
I'm new to Angular2
Started just yesterday..
 
It has nothing to do with Angular
 
TypeScript I mean.
New to both TypeScript + Angular2
 
2:50 PM
It has nothing to do with typescript
 
yes
 
=.=
Ok, I'm new to that as well.
lol
Had been writing ES5 until I foundout about TypeScript
 
Try to learn it before you try to hack spaghetti code together, please and thanks.
 
Yup. (y) I'm using a book. Trying to extend what the book taught me.
 
2:53 PM
MDN is back!
 
Too late; I already had to dirty myself by clicking on a w3schools link :(
 
Was MDN down?
 
DNS hiccups
 
3:24 PM
Hello !
 
@Chris Welcome to the JavaScript chat! Please review the room 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.
 
I have a short question
I'm using the DOMNodeRemoved event
I have to check if the amount of childElement nodes is bigger 0 or not
strangely when the event gets fired and the amount is/will be 0 the childElementCount is still 1
so it seems like DOMNodeRemoved is being fired before the node is actually removed
is this correct ?
 
3:37 PM
I just noticed it is deprecated. I will implement it differently. Thanks !
 
@Luggage added class support
though it's not in-depth
but it works
 
3:58 PM
$.jsdump(someVar, '#container');
 
pls
 
It'll increase adoption rate 1000%.
 
I'm gonna take a break. I've gotta clean out my fridge, then get groceries, then I'll come and finish it up
 
o/
 
@ndugger srs?
this is how we escape things now?
 
user379888
4:13 PM
Hi all
 
user379888
I have recently picked up JavaScript I need to create a web server in Node.js for a mobile app.
 
user379888
I need to use firebase for the database.
 
user379888
I need help in figuring out how to proceed.
 
user406009
@FahadUddin Do you already have programming experience? Firebase has specific tutorials which are reasonably good if you already have some programming background. Or are you looking for some introduction to programming materials? Or introduction to JavaScript?
 
user379888
@Lalaland I was a WordPress developer but I have roots in C and C++. I am trying to find the right tutorial to do the programming.
 
user406009
4:17 PM
@FahadUddin I would recommend starting with Expressjs and their associated tutorials.
 
user406009
And then look into the firebase tutorials once you get the point where you want to read/write to the database.
 
user379888
@Lalaland: Can you give a tip on how long this should take. My project deadline is 15 days.
 
user379888
Its a Tinder for X app
 
user406009
@FahadUddin It depends on how well you know JavaScript / or can learn it.
 
user379888
I just need to write the web server and make the database for them and setup firebase
 
user406009
4:19 PM
Using expressjs and firebase is the easy part.
 
user379888
Is there a difficult thing in it too?
 
user406009
When you say mobile app, are you talking about a native android or iOS app, or just a website?
 
user379888
Another guy will create native ios and android app for it.
 
user406009
For simple things, you might want to just consider using firebase's ios and android apis.
 
user406009
Skip the javascript entirely.
 
user406009
4:22 PM
Especially with that short of a deadline.
 
user379888
You think a tinder for x can be created using it?
 
user406009
Yeah.
 
user379888
Its users login using Facebook and Twitter and Tinder like cards, messages system.
 
user379888
So no need for the web server? I read somewhere I would still be needing to create a server
 
user406009
The whole point of firebase is that you don't need a server.
 
user406009
4:24 PM
That's why I was a little confused when you started talking about nodejs and firebase together.
 
user379888
They wanted me to make a web server. They mentioned they use firebase but I had no idea about it.
 
user379888
So the first part should be authentication?
 
@FahadUddin Tinder of Xylophones?
 
user379888
I am not told the X.
 
user379888
4:40 PM
I am done with the authentication on Firebase. Whats the next step?
 
user379888
Do I need to create a database?
 
@Mosho You know who you look like? Professor Professorson
@rlemon Doesn't he?
 
Hey there. I'm working on Uber for X.
 
user379888
@Zirak: What do you mean?
 
5:01 PM
film suggestion?
 
@towc 10 Cloverfield Lane
 
user379888
Can anyone please help me out?
 
user2161895
Hi, with google map i have a hand free line.. how can i get a particular location is its left side or right side ?
 
@HopeFull Welcome to the JavaScript chat! Please review the room 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.
 
howdy
 
user379888
5:14 PM
Hi
 
5:27 PM
hi all
I just saw some examples about closure so my understanding of closure is
1) I have a outer function with a variable
2) Inside I have a inner function if i want to access the outer function variable I can use closure

kindly please correct my understanding

help me some real time examples
?
 
5:43 PM
oi
 
user379888
5:58 PM
How does one create a server on firebase?
 
user379888
Whats the next step after authentication?
 
00:00 - 18:0018:00 - 00:00

« first day (2114 days earlier)      last day (2817 days later) »