« first day (2134 days earlier)      last day (2829 days later) » 

3:00 PM
my codebase has already gotten to large to reason about easily, so docs and type annotations and coverage are becoming important
so I made it do that :D
 
@bitten that was weeeeird 0.o
 
@towc but so good? and almost everything done by one guy
 
@bitten you just have to remap it back to the TS
 
the same writer, directory, editor, and so on
 
Atom w/ One Dark?
 
3:01 PM
@bitten tbf I'm still lost
 
@ssube manually? or..
@towc haha
 
not quite entertained
 
oh i was so entertained.. the film was left in my mind for weeks
and of course, always a relevant xkcd
 
@Luggage and vimode <3
 
3:04 PM
you got me all excited, because i need a new date picker.
 
but I need one that allows typing for lots of data entry
 
@bitten that's chris nolan's sketch of the plot of inception
 
@ssube so nice, always nice stuff
i see your test suite in there too heh
 
I mean, that project is just an example of the gulp setup
 
3:05 PM
I hateeee dealing with datepickers
 
you should see my real code, it's even more organized :D
 
God I hate this trend
 
you hate arthur memes?
 
@NathanJones you should also go see Primer :D
 
3:07 PM
If you hate memes you hate life
 
if you hate memes you hate dank
 
oh my god @KendallFrey
WHO DESIGNED THAT
 
#straightFIREmemes
True dat
 
Only the dankest
 
I used to have memes, but I lost them all in a series of small fires.
 
3:09 PM
@ssube this is still really organised!
 
I may or may not have a problem
lemon and badgercat can attest that by how organized my kitchen is in snapchats :P
 
@SterlingArcher The pizzaface is aggressive
 
@ssube all you snapchat me is raves, you dickhole
And you don't even text me so I can ignore you
@KendallFrey just another day
 
I'm doing a if (x<y) { // show error }, with x and y being numbers, but as soon as y has more digits, this evaluates to true. Any ideas?
 
@SterlingArcher I'll send you a picture of my pots and pans when I get home then, if you're so desperate
I mean, if you appreciate good pans and knives, my kitchen will make your knees weak and underpants damp
 
3:13 PM
@ssube so close to an innuendo
 
@Waxi wat
 
@Waxi not numbers
 
@Waxi Can you be more specific? 100 has more digits than 99, so it should be true
 
@user1124148 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.
 
@ssube all i care for is sharp knives that won't squash tomatoes before cutting them
 
3:14 PM
@Joel did you figure ender out?
 
they look pretty
 
@ssube this is you
 
@ssube i am poor what do I do
 
@SterlingArcher but at the shows I go to it's more like "I seen't dat azz"
 
3:16 PM
You don't even send me dat azz you just point you phone and don't move like a psycho WHO DOESNT EVEN CARE ABOUT ME
 
@littlepootis get less poor? become a republican or something, screw some minorities over, I dunno how folks get rich these days
@SterlingArcher because snapping people's butts without their permission is quite rude
 
Do you know how many people have snapped my butt without my permission?
 
@ssube $60 for a knife is ridiculous :(
 
It's at the very minimum zero. Do I care? no.
@littlepootis oh I don't want to tell you how much our best knife at home costs
 
@littlepootis we tested them by carving up a phone book
like, carving shapes out of a book
they go through 500 sheets of paper like butter
 
3:18 PM
@ndugger @user1124148 @KendallFrey paste.ofcode.org/Q5D7LY7hpwpyWMFNtSmYkR is what I'm experiencing, and not making any sense.
 
mine doesn't even go through butter
 
@littlepootis hahah
 
@littlepootis before my terribad roommate moved out, all our stuff was like that
knives that couldn't cut through an onion, pans with no lid or handle
 
@Waxi I can't reproduce it, so I can't help.
 
At least we know pootis is physically incapable of knife murder
 
3:20 PM
99.99 is false, but as soon as I hit 3 digits, like 100, it goes to true...hmmm.
 
you're definitely not using strings, right?
 
@KendallFrey Shitttt. They looked like numbers in the console, but they're type is string. Man I'm stupid....
 
@waxi run on node works fine all false
 
What piece of shit browser are you using that strings and numbers look the same in the console?
 
how on earth can i get json from a uri and append the value to element id with the same key ?
 
3:22 PM
FUCK
 
@waxi seems to me that the problem is about string and number
 
1 message moved to Trash can
@KristianHareland Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
@user1124148 Yeah it is, thank you. I goofed.
 
@Waxi Your issue isn't possible. Please try again.
 
@KristianHareland Break your problem down into smaller subproblems, and ask about the specific parts you don't know how to do
 
3:23 PM
@SterlingArcher can you see this album? (first few pages are SFW)
 
I assumed because it didn't show quotes around the number in the console, it was a number. I need to pay attention.
 
@ssube i saw the squid
 
@SterlingArcher yes but that album has butts too, so then you can shut up :P
 
@KendallFrey main problem: parse my json
 
JSON.parse. Next!
 
3:26 PM
seriously
i get this: Object {nickname: "Angel0f Life", balance: "10000000"} in the console
 
@KristianHareland parsing JSON produces an object
 
@KendallFrey Does our life hold any significance when the eternal void forgets all?
 
good, then you can ignore the getJSON part and work with that object as if it were an object and use it.
 
@ssubeso obj.key ?
 
3:28 PM
What's your question? I'm confused at what you want to know.
 
i need to access the data... it looks like this: pastebin.com/wjAs1159
 
...
 
@SterlingArcher that can't be real
 
@littlepootis she's not even joking can't you read
 
@KristianHareland no chances it would work
 
3:29 PM
@KristianHareland I still don't get it. You're accessing the data right there.
 
2252
Q: How do I return the response from an asynchronous call?

Felix KlingI have a function foo which makes an Ajax request. How can I return the response from foo? I tried to return the value from the success callback as well as assigning the response to a local variable inside the function and return that one, but none of those ways actually return the response. fu...

 
@KristianHareland gotta assign account = data[0] inside callback
 
how on earth do i make a callback in js? im just starting at this :S
 
You already made one.
 
@William I have not... But really need to
 
3:30 PM
data
 
Any help will be very much appreciated!
 
@Joel are you trying to get the code to run in the browser?
 
@KristianHareland a callback is just a function passed to another function
 
but how come i cannot do: document.getElementById('balance').innerHTML = account.balance;
 
@William im trying to get the d3 code to run in the browser without Ember
 
3:31 PM
because account doesn't have a balance property.
 
@Joel have you tried browserify or whatever it is called?
 
@KristianHareland because account is a XHR object
 
data is not returned from $.getJSON
 
it lets you run node packages in the browser I think
 
2 mins ago, by rlemon
2252
Q: How do I return the response from an asynchronous call?

Felix KlingI have a function foo which makes an Ajax request. How can I return the response from foo? I tried to return the value from the success callback as well as assigning the response to a local variable inside the function and return that one, but none of those ways actually return the response. fu...

 
3:32 PM
@William I have not, but let me check i out. THanks
 
@rlemon updoot for visibility
 
so how can i make it accessible from account
 
..
 
that's impossible
 
is there no way to do so?
 
3:33 PM
@KristianHareland You don't. You make your code async
Using callbacks or promises
 
The most fundamental thing about async is that any code that depends on the result of the async operation needs to be run as part of a continuation (callback)
 
omg.. i could just put the code to add to HTML inside the anonymous func....
 
how could i not understand that...
thanks for the help tough!
 
3:35 PM
@William oh lol
Took me a while to get it
 
-1
Q: What's the most efficient way to write an IF statement in JavaScript?

bestwpdesignerAssuming you have code like: var hello = 'hello'; if ( hello !== 'not hello' ) { // do something } How could this statement be written more effectively?

cv-pls because wtf really
 
^ I understand downvoting the question and bad answers but I don't think mine is to bad
 
I really love my company I can't even. They went out of their way to help me pick the best route of path for me. They cancelled my investigation just to give me a leg up by waiting a few months, and the Director of Tech is going to talk to my PMs and make it work. She was very nice about it and made sure to let me know that there is no judgement in my past and they want me to succeed
 
@William besides being completely wrong?
 
he doesn't know I'm wrong
 
3:41 PM
....
 
@rlemon looks like I may be able to visit sooner than I thought.
 
\o/
 
@William It looks like you're trolling
 
@William so you're just trolling?
 
deleted fair point
it is a terrible queston
 
3:42 PM
@SterlingArcher How soon
 
I'll be moving out in december, so I need to save up moving costs and shit, and I have till about february till they'll want to put me in, so between jan-feb would be ideal
Plus that means I get to experience a Canadian winter :D (I love winter)
 
stop by here on your way home and visit me and nick
 
I'll just divert my flight accordingly. I'm sure the pilots wont mind lol
 
@SterlingArcher ?
 
That's what Osama said
 
3:47 PM
#thanksosama
@SterlingArcher dude, just do a leg through MSP on the way back and take the train straight to my house
 
while your at it visit me in chicago
 
@FlorianMargaine I don't have the cleanest history, and I had to express it in my forms and go over it with them, and it went fine
 
@SterlingArcher ah, ok
 
wikipedia needs to stop with this frundraising shit
 
What fundraising shit?
 
3:50 PM
block it with adblocker
 
prolly their annual fundraising
 
donations shit then
 
I'd donate if it made the ads go away
I'm told it doesn't
 
I don't see any wikipedia ads
I thought they were 100% donation funded server wise
 
not just server wise, they're almost entirely donation funded across the board
my old roommate/landlord work(s|ed) for them doing their openstack stuff
 
3:51 PM
@SterlingArcher They pop up (seemingly) randomly
 
Sometimes I would prefer ads if they were small. Partner with google or something
I feel guilty not donating
 
I've never seen one before, so I don't mind
Ads power servers. I don't click on ads, and if they're too intrusive I don't come back
aka Forbes
 
@William that's the point.
 
~Florian your not helping
 
3:53 PM
@SterlingArcher well, plus their content is bad
 
Also that
 
@William then you should help by donating
 
i live with my parents
 
in theeeee aaaaaarrrrms of an aaaaaaaaangel
 
For instance, I don't pay for sublime text 3, but I don't bitch when the "purchase license" pops up because I'm using it for free
I don't want ads? Like on spotify? Boom. I pay. Problem solved.
 
3:54 PM
@William cool, that means no rent for you, more money for wikipedia!
 
i'm in school don't work
 
Question: I'm trying to display the contact type and count of an object. Right now output is generating false contacts: 2 when it should display Manager Count: 1 Customer Count: 1, any idea why my groupedBy is trying to combine the contacts rather than display the type and count for each contact type in the object,

Code:

let grouped = groupByContactType(this.props.caseID, contacts);
let listOfTypeCounts = Object.keys(grouped).map((contactType, index) => {
let typeCount = grouped[contactType].length;
 
@William git a jerb
but don't take mine
 
in college don't really have time except during summers
 
3:56 PM
college leaves you time for liquor, whores, and blow, but not a job? what kind of college is this?
 
not engineering that's for sure
 
I worked in college with an engineering degree
 
your a genius I wasn't being sarcastic I'm not doing an engineering degree that shit is hard
 
Hello!
 
I lived with a couple premed students for a while and even they had time for fun.
 
3:59 PM
@user6582640 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.
 
although I don't think they had jobs
 
Is there a good data science chat room that has actual people in there?
I have a question on R Programming
 
@user6582640 mathematica chat room is pretty solid but that isn't exactly data science
 
thanks!
 
i don't think there is an r chatroom
 
3:59 PM
:(
 
maybe a pirate one?
 
data science isn't even real
 
there is no science behind data
Da,,ot
 
what's the data behind the science behind data science?
 
big data*
cmon guis
 
4:02 PM
one of our data scientists was recently seen walking up the stairs with a banana, presumably for scale so he could find out just how big the data is
4
 
hahaha
 
!!afk picnic
 
What is a good use case for web workers?
Never quite sure when to use them
 
background stuff. Saw a question this morning about game physics, answer was to put it in a worker.
 
Do you have that link ?
 
4:16 PM
does anyone here cross stitch?
 
0
Q: Most performant way to call update loop of a javaScript physics engine

catalogue_numberI've written my own HTML5 canvas - javaScript based physics engine to simulate a number of points connected by springs. The current general structure of the program is function init(){ // A bunch of event listeners renderer(); physics(); } var frameTime = 1; function physics(){ // iterate t...

@rlemon I have before, oddly enough.
Crochet, too, but not knitting.
 
I can crochet and knit, never cross stitched.
gf wants software to create patterns with
I've gotten the colour matching to dnc codes working
 
@rlemon i have once. its like cross fit right?
 
@rlemon pretty sure that's already a thing
 
so?
when has that ever stopped someone from coding something
 
4:18 PM
everything has been coded at minimum at least 1000 times except maybe the space station
 
Gotta love w3 spec:
"The Worker() constructor call creates a worker and returns a Worker object representing that worker, which is used to communicate with the worker"
2
 
@Trasiva around?
 
@Abhishrek Trasiva is afk: Playing with a makerbot.
 
nope
 
4:30 PM
Is there someone up that would like to help me out with some nice parallax effect? stackoverflow.com/questions/39042793/…
 
4:42 PM
@ssube do you use react-virtualized?
 
@Abhishrek sorta, what's up?
 
caspert neither your examples either don't work or don't work well imo
 
rlemon that is hilarious did you see the ashville posting? Basically some guy in ashville, nc offered to play pokemon go for some money
 
Hi
 
4:50 PM
@Mr.NaViD 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.
 
does anyoneone know how can I do some speech-to-text using javascript?
with a special language??
 
@Mr.NaViD your joking right?
trolling right
 
actually I mean using Speech API in chrome!
 
so text to speech?
 
I have found something
 
4:53 PM
or speech to text
 
^
 
very different beasts
 
text to speech is easy, speech to text.. well that is a bit more involved.
 
4:54 PM
never heard of anyang but it must have a flash back up for non supported browsers or something
 
@bitten Yeap!!
 
only thing I can find on npm
 
> This addon will only work on chrome browsers!
 
there's already a chrome api
(do you call it an api here?)
 
4:55 PM
@William I read that annyang is cross-browser
 
might be but it won't work in some browsers with out a flash back up.
bleeding edge browsers might work
 
ofcourse!
 
if the feature is superfluous to the application, and you don't mind only supporting chrome, then it's enough
 
It's enough because I'm supporting both sound and using keyboard but the problem I'm facing is about the language...
I wonder if google translate speech recognition using the same process or not!
It can mostly change all languages to text
 
5:00 PM
bye yall
 
I'm brain farting on some canvas stuff. jsfiddle.net/rlemon/hsv8k7er all I want to do is put some padding between every Nth cell.
so it would look like columns
right now it is getting all fucky
 
Very quick question. As the standard appears to be available in all modern browsers, would there be any problem with a site that uses SVGs almost exclusively?
 
2 hours of standing in the hot sun after leg day? I'm so tired now
 
Any idea about my case??
 
@Abhishrek You pinged me, what's up?
 
5:07 PM
you in Seattle?
 
@Abhishrek How do you keep thinking that? I'm in Iowa. Middle of the country, lol.
 
someone pinged me vOv
sayin you were
 
I'm surrounded by cattle, pigs, and corn.
 
sounds fun :P
 
5:10 PM
@rlemon doo you mean like jsfiddle.net/1fp7cfLz ?
 
Not bad.
 
just increase p on every col iteration
 
yea but I don't want that :/
 
!!afk Getting on the road.
 
because eventually I'll be spliting those as well
I have a huge grid, and I need to pad 10*10 cells
@bitten thanks for the help
 
5:16 PM
oo that's why you want every nth
@rlemon now i see it i understand :3
no problem, glad you got it!
 
Anyone here uses the MVC architectural pattern?
 
ive started survivejs, its less crazy to understand @ssube
 
Its nice day here in RochesterNY
im going sailing
 
@bitten i really do! i keep hearing it's great, just haven't got around to it
 
5:20 PM
Still waiting...Any idea??!!
 
@Mr.NaViD didn't you just say the example i provided "[was] enough"?
what more do you want? :p
@NathanJones well.. it's the weekend. treat yo self
 
Yes I sail but after that I mentioned the problem I'm facing:P
 
@bitten i liked Coherence quite a bit. Did you see that one?
 
@Mr.NaViD i don't see a question after? maybe i'm being blind?
 
yeah going to be getting that for sure
 
@bitten It's enough because I'm supporting both sound and using keyboard but the problem I'm facing is about the language...That's my problem
 
@Mr.NaViD ah well then just set the lang attribute
 
If I create an audio player that has functions that do the following: calculate progress length, position, time conversion, volume calculation. Would that end up being in the model or controller?
 
@NathanJones nope! is it scary? i'm bad with scary films but i'll check it out nonetheless
 
5:29 PM
@bitten not scary, more of a mind-trippy indie sci-fi film
 
No one here uses the mvc? lol
 
big file incoming
I think it is working out well so far
no clue how I'm going to split it up for printing yet....
and fix the cut off parts
 
is this what the colour question was about earlier?
 
yup
 
5:33 PM
hi
 
@MikePappa 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.
 
@NathanJones heh okay.. good then. thanks for the recommendation
 
I have a list of DNC color codes.
function getColorWeight(clr1, clr2) {
	return 	Math.sqrt(Math.pow((clr2.r - clr1.r), 2) +
			Math.pow((clr2.g - clr1.g), 2) +
			Math.pow((clr2.b - clr1.b), 2))
}

function getClosestColor(clr) {
	const chosen = {
		code: null,
		value: 1e9,
		key: null
	};
	for( const key of Object.keys(dnc_codes) ) {
		const code = dnc_codes[key];
		const weight = getColorWeight(clr, code);
		if( weight < chosen.value ) {
			chosen.value = weight;
			chosen.code = code;
			chosen.key = key;
		}
	}
	return chosen;
using this to compare seems to yield positive results.
 
@rlemon are you actually splitting into grids or have you lost pixels by putting grid lines over it?
 
lost pixels with the padding
I'm drawing them off canvas
 
5:34 PM
Anybody work with chrome extension? I interesting how can know is enable developer mode or not?
 
but I'm thinking I will store them all as separate grids. I can't think of any other way to get printing working well
 
@rlemon chosen = { weight, code, key } on line 17 :3
wait no
 
re-assign a const
can't do dat
 
derp didn't see value = weight
and that too..
 
Hey i had a quick question about git.. there is no git channel so i picked the most popular one. Im using gitkracken and i cant for the life of me figure out how to "git push origin new-branch" using the software. anyone else here use it/knows how?
 
5:37 PM
@rlemon also this makes me want to find post-it-notes with the same colours and construct a huge post-it-note flower on the side of an office building
 
lol
 
@rlemon Don't forget about page bleed.
 
@bitten I can share the code if you're interested
heavy WIP :D
 
@rlemon that'd be great. i like reading your code
 
don't speak so soon :D
need to add one tweak to make it more accurate, then I'll upload
 
5:40 PM
I have a table, but requirements have changed and now they want rows to roll up into a 'group' row that has a collapse/uncollapse toggle. Not sure if I should separate these groups into their own tbody or just use 1. Anyone have experience/advice?
 
@codenamejames iirc you have to set the remote name -and- the branch
so in your case "origin/new-branch"
 
I need to talk this out conceptually before I write any code because this could get ugly.
 
where it says "Select a remote branch to push/pull .."
@rlemon no rush! but thanks :)
@Waxi yes, you could use multiple tbodys and have the first-child be a header that is used to collapse the following table rows
 
@bitten OK, I'll try that route first, thanks.
 
@Waxi just a thought
 
I'm annoyed by this whole thing because the software is done, ready to be used next week, but they want to make major changes right now, but of course nobody understands the work involved. The life of a code monkey I guess.
 
Um, so there's a head on car crash in that video and it's not funny. Just a warning. Didn't know it was there
 
!!afk
 
@Waxi sadly i can relate
 
@ndugger nah, we mostly just use normal react. Our sites aren't super data heavy, although my dashboards are.
The one that has to query gitlab for all our projects is pretty slow to load up.
 
5:59 PM
meh, this financial news site has a script coming from webeatyouradblocker.com
 

« first day (2134 days earlier)      last day (2829 days later) »