« first day (2525 days earlier)      last day (2646 days later) » 

00:04
@KendallFrey Don't worry. I like you. Like... more than a friend ;)
Kendall is a fine bowl of poutine
minus the cheese and gravy
depending on the day
is there a need for cookies when you have local storage and session storage?
and minus the bowl
00:33
morn
morn
rnom
Sorry, my cat
badger*
00:42
book cat*
What's that even supposed to mean?
00:53
@monners who are you talking to
slow as shit, give it a few minutes or half an hour
nice
speedier :D
01:16
@rlemon why?
4 draws per timeout
4 times speedier
scientifically proven
You mean timeouts were a bottleneck? wtf
fuck. It's 3am. I must have fell asleep at around 2pm
no, i have no clue when the image is supposed to be finished
there is no finished
01:19
but by increasing the amount of draws per timeout it looks to me like I'm seeing the kerb sooner
in the meantime I had an email from the organizer of js13k saying that the zip file was empty. He was nice enough to package it from the github repo. Welp, this happened before :/
@rlemon me too, maybe
I can't believe you guys still play KSP
but why I have no idea
01:31
why does SO take forever to upload a new photo.
it's web scale
that doesn't make me feel better. cat with red book was a bad decision
looks like a christmas avatar. all red.
It looks stupid, I thought it was an appropriate evolution. from rubrics cube to book
according to my browser history, I fell asleep watching this at between 2:55pm and 3:05pm youtube.com/watch?v=gs3mtZPySeM
01:40
it's better than using my name as my avatar, that would be retarded.
The Catholic Church Has Beheaded Neil deGrasse Tyson For His Heretical Claim That The Earth Revolves Around The Sun… https://twitter.com/i/web/status/908032583765823489
RIP
'bout time that arrogant know-it-all got what's coming to him :)
Do hinduism :troll:
02:21
@KendallFrey that joke is an anachronism the guillotine is French.
03:15
what is that article where something was rewritten and imploded
a browser
netscape?
link plz
 
2 hours later…
05:31
@KendallFrey LOL at the comments. social justice warrior shutdown
06:17
Heyo.
i face one problem please help me
@Pinkey 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.
@Pinkey Welcome meow.
Meοw... meοw.
1 message moved to Trash can
@Pinkey Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
on click add active
$('.list-tech li').bind('click', function(event) {
        var className = $(this).attr('class');
        $(this).parent().find('li.active').removeClass('active');
        $(this).addClass('active');
        $('.tech-details').hide();
        $('#' + className).show();
        $('.tech-details').removeClass('active mo-active').parent().addClass('active');
        $('#' + className).addClass('active mo-active').parent().addClass('active');
    });
first time click add active class
bt when i click on second time the active class is not add
what's problem in my code ?
???
anyone is there ?
06:48
I'm having problem in my table created using append. because the <td> data is not aligned to <th>
$("#table").html('')
        $("#table").append("<table width=100% id='datatable' class='table table-striped table-bordered dataTable no-footer'><tr><thead><th>Item</th><th>date</th><th>Transact</th><th>Quantity</th><th>Transact Number</th></tr></thead><tbody>")

           for(var x=1; x<data.length; x+=5){
             $("#table").append("<tr>")
          $("#table").append("<td>"+data[x]+"</td>")
          $("#table").append("<td>"+data[x+1]+"</td>")
          $("#table").append("<td>"+data[x+2]+"</td>")
this is the code
here is the output.
im confused in what i;ve done wrong in my table
07:01
Hey guys!
@SterlingArcher wow, this was good
07:46
@Shrek o/
07:56
@bitten hey - my flight was delayed and my skype is refusing to work (annoyingly) - we landed in Amsterdam
I'll get everything set up - and I think some team members are online and can help
08:17
NOOOOOO THIS IS SO WRONG: 3Blue1Brown is teaching physics youtube.com/watch?v=MzRCDLre1b4 cc @KendallFrey
Hi guys!
I little help please? :)
I have figured out that only way to write global sitemap file would be using fs module
08:35
so?
morning all
@BenjaminGruenbaum oh that sucks, i was wondering where you were :p
08:54
I need someone who is experience with node, anyone? :)
!!tell 39140391 ask
@OliverSalzburg Command ask does not exist. Did you mean: afk, asd (note that /tell works on commands, it's not an echo.)
Fuck. Anyway, just ask :P
lol
10/10 effort
a !!welcome would've worked there
08:58
@Neoares I'll try to remember it
09:19
would be about time :P
@towc how are you mate
I slept about ~16hrs
it was awkward
it is
I slept 5-6hrs
give me sleep time D:
\o/
09:37
o/
suddently, when using an angular app, I get a strange error when typing in an input field (which is binded to the scope) : Error : Can't assign to properties of (new String("null")): not an object
any idea?
!!tell Julo0sS examplepls
@Julo0sS Could you please give us an example on jsbin.com or jsfiddle.net, with the minimal amount of code necessary to reproduce the problem?
@rlemon it is posible to multithread that? I have 8 CPUs and with single thread I use 99% with 15 draws per frame
10:04
@towc good sleep is good ^^
well, it's going to mess up 2 whole days :/
went to sleep at 3pm yesterday and woke up at 3am this morning, then went to sleep again at 5am and woke up at 10am. I didn't get to do much yesterday, and I'll feel tired for the rest of today
Maybe you are just dehydrated
Chug a liter o water
I dreamt that I had 2 fridges and I set a corner of the apt on fire
10:06
Lol
well, I didn't randomly fall asleep at 3pm
I had pulled an all-nighter to get the game working
@Neoares solved it
I just ended up watching a fairly boring video about physics and fell asleep
Still, human body knows how to recover reeealy fast
It shouldn't be a problem after 16h of sleep
If you don't feel well after a 16hr sleep, maybe try taking a nap to relax
10:08
well, physically I feel ok
I think i've got a pinched nerve in my back, anyone suffered with that before?
@OliverSalzburg another nap?
urgh
I mean, I took a nap after the first time I woke up to hope to get my day-night cycle back in place
but another one would be too much
@towc I was kidding. Drink a pot of coffee and pull an all-nighter to even out
wait wut, that's a thing?
It is for him methinks
10:28
@Daruchini yes
horrible right
maybe not that heavy
how long did yours persist?
months
10:30
it comes and goes
it hurts depending on what movement I do
I think I did it in the gym, but it didn't start giving me pain until about a week later
but for example now I'm k
Maybe I need to start doing yoga
Oi :D
try to adopt a good position while sleeping, or change your pillow
10:30
tbh it just feels like it needs a massive click!
I use a very flat pillow, despite it's not good
There haven't been any mods around recently, have there?
There's a rather silly locked meta post that has to be deleted...
it needs a chiropracticien
(locked due to failed migration, can't flag it)
I'm a bit nervous to go to one of those lol
10:32
then just go to a masseuse
^ had to search that word on google translate xD
I'm going to try a masseuse first and see how I get on. Have you used a chiro before?
no
neither went to a masseuse
i'll be sure to let you know of my experience :p
nice :D
21 and back problems. The future looks bright
10:37
@Daruchini now you say it, the pain stopped since I stopped doing body combat at gym
Really? I'm going to take it easy for the next few weeks. Probably just swim and some light cardio.
I can see how combat sports may result in some type of pain though ;)
duck? @littlepootis
10:40
why.
chicken breast
French dressing
those things are not black olives
they're mushrooms
I know
I think it's lacking some sort of green
runner beans maybe
guacamole
never tried it
10:47
you should
I've only just tried Avocado
guacamole it's 95% avocado
had it on toast few weeks back. Wanted to see what all the raving was about
I don't really like avocado
but guacamole is just aaaaaawesome
I wasn't convinced
I'll try it. Easy enough to make?
10:48
hm...
never tried
I saw a friend do it, and I know the components
it doesn't seem hard, but you know...
So summary: buy pre-made?
they're pretty decent
and if you like it you can always learn to do it yourself
Yeh i'll have to give it a try
I bought my first mango yestarday too. Never tried it before :p
not a fan
but I've tried one from colombia and the difference is HUUUUGE
the water from the mushroom cooked the chicken
overcooked
10:58
307
Q: Build a working game of Tetris in Conway's Game of Life

Joe Z.Here is a theoretical question - one that doesn't afford an easy answer in any case, not even the trivial one. In Conway's Game of Life, there exist constructs such as the metapixel which allow the Game of Life to simulate any other Game-of-Life rule system as well. In addition, it is known that...

8
Jesus fucking christ
@BenFortune Well put
oh my fucking god
they've constructed RAMs and ALUs in game of life
so why if the question is from '13, all the answers are from today?
@Neoares It's a group project, each person involved posted a part to share rep
oh yes, I just realized
this is crazy
so they build 2048x2048 metapixels
11:19
@BenFortune hahaha that's not a nerd snipe, that's a nerd 360 noscope
@Neoares It took them that long...
they just need to get a life
@Neoares A game of life?
11:48
SpaceX is great
Not to be confused with space sex, which I can neither confirm nor deny.
Rapid unscheduled disassembly haha
man, i should have just read the spec to openid connect first. It's way easier to understand than the dribble people write up.
12:10
I have a node server which serves some war files over a POST API. I am consuming this from an angular 4 app on electron. I believe I get the response._body with the file. But when I write this file into a file using fs.writeFile('myFile.war', response._body, () => {}) the war becomes corrupt. Is this a problem with encoding? If yes what encoding should I set?
@shyam Isn't .war a binary format? You should be using encodings at all.
DON
DON
In my 'common js' file there is a keypress method for identifying enter key press. But i want to don't trigger that method when pressing enter key for some pages which have 'common js' included.
@KendallFrey On the server side I just do a res.download(file);. So would setting the encoding to none in the fs.writeFile() call help?
BTW I am using express on server side
And I did try setting it to binary I think
Yeah. fs.writeFile('myFile.war', response._body, { encoding: 'binary' }, ()=>{}) also doesn't seem to fix it
12:30
@shyam Compare the "corrupt" file to a known good one and figure out what the problem is
Angular docs are surprisingly shitty
@OliverSalzburg Can you suggest a good tool for doing this?
@shyam A hex editor
@shyam mh-nexus.de/en/hxd even has a compare thingie
Maybe:
5
Q: How to Download binary file in angular js using http

Abdul MajeedI want to downlaod exe file using $http, it shows me when I console the data, but I am unable to download it. $http({ url: url, method: "GET", headers: { 'Content-type': 'application/json' } }).success(function (data, status, headers, config) { ...

@SterlingArcher theonion.com/article/…
@KendallFrey I've seen that already. But that looks like angular 1.x with the $http and stuff.
Also, var file = new Blob([data], { type: 'application/binary' }); seems to mess up something with the response object I get from http. Finally the file just contains [object Blob] printed out inside :D
12:39
@shyam Well, there's your problem
Maybe try a Buffer instead of a Blob. No idea about Electron weirdness in that area. Is that straight Node code running for fs?
Using the hack from there
setting fs on the window object
Then go with Buffer
@KendallFrey LOL
aka the virgin excuse
now that's a lol
Now I get this: Failed to execute 'createObjectURL' on 'URL': No function was found that matched the signature provided.
13:08
@shyam Kinda speaks for itself
Yeah. But I could open the definition in lib.dom.d.ts
Don't see why it doesn't exist?
@shyam I know neither what that means nor how it is relevant :P
24
Q: Failed to execute 'createObjectURL' on 'URL':

Hardik MandankaaDisplay Below error in Safari. Failed to execute 'createObjectURL' on 'URL': No function was found that matched the signature provided. My Code is: function createObjectURL(object) { return (window.URL) ? window.URL.createObjectURL(object) : window.webkitURL.createObjectURL(object); } T...

There's that
Yeah. Trying it out with window.URL now
Maybe Angular couldn't find it just like the fs module
Ohhhkay.. So you can't do this with a Buffer. It needs to be a Blob
Guess I'll try the hex editor to see what's what
Calling a Node API from a browser environment, where the Angular code seems to be running, just sounds completely fucked up
13:24
Yeah. But how else can you download a file from Angular?
The only other option is to trigger the browser download mechanism
@shyam I don't even understand how Angular plays a role in a download
I'm triggering it from an Angular component
If you want to have data in your application to process, then read it into your application
If you just want to put it on the disk, then that's sounds like a browser job
@shyam which is usually what you do
If you want to process data and then write it to disk, then there is probably some interface for that as well
13:27
fs
And, from a Node perspective, fs.writeFile sounds pretty good for that
morning everyone
@ssube I'm kind of exploring what can be done with this. Not very good with Electron and Angular but what I am trying to achieve here is just downloading a war into the tomcat directory without user getting the ominous browser popping up asking for where to put the download.
ha, no browser will do that.
Your problem seems to be entirely about Electron and not at all about Angular
13:32
@ssube :(
Downloading to an arbitrary location would be a huge security problem.
Yeah the browser really
A data URL with appropriate MIME type is about the best you can do.
Show a modal with instructions on how to install the file, people are usually ok with that.
Pretty sure you can make the node side of Electron do it, but certainly not the browser side.
Where is the .war file coming from anyway? If it's packaged with your app, why don't you install it when you install your app?
@ssube Bingo. That's exactly what I have been missing I believe.
@OliverSalzburg The war is a long story. There is a Node server which can do custom builds of wars based on some parameters on the fly
The war files can be any random application
13:37
Oh, I see
I think I read somewhere this morning a way to communicate to the node side of electron from the browser side. Time to dig that up I guess
You think that would work @ssube?
Yeah, that sounds right. It's not unlike the message passing that webworkers use, because they run in different processes.
Hmm
Okay. I'll go check that out. Thank you @OliverSalzburg @ssube and @KendallFrey for helping out :)
My company just emailed me my password for my paystubs in plaintext
Thanks, head office
13:48
Forward it to a tech news site. :D
Guys, a little help please :))
I am trying to make global sitemap
This is what I made so far
const gulp = require('gulp')
const plugins = require('gulp-load-plugins')
const config = require('../config')
const fs = require ('fs')
var serializer = new (require('xmldom')).XMLSerializer;
var implementation = new (require('xmldom')).DOMImplementation;
const $ = plugins()

gulp.task('global-sitemap', () => {
    var xmlArr = []

    for(var i in config.environment.languages) {
        var language = config.environment.languages[i]

            xmlArr.push(('https:' + config.environment.baseUrl + '/' + language + '/sitemap-' + language + '.xml').replace('/en', ''))
and this is what I get in output
<?xml version="1.0" encoding="UTF-8"?>
   <sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
   <sitemap>
      <loc>https://localhost:3000/sitemap-en.xml,localhost:3000/de/sitemap-de.xml,https://localhost:3000/es/…;
somebody give me some music to listen
im about to write my first every unit tests. probably not a good thing
However, I need this order
@corvid ndubz
13:52
<sitemap>
      <loc>http://www.example.com/sitemap1.xml.gz</loc>
      <lastmod>2004-10-01T18:23:17+00:00</lastmod>
   </sitemap>
   <sitemap>
      <loc>http://www.example.com/sitemap2.xml.gz</loc>
      <lastmod>2005-01-01</lastmod>
   </sitemap>
please help :))\
@corvid context?
disregard the <lastmod></lastmod> as it is optional
@stormec56 can you do config.environment.languages.sort(...)?
@Neoares none
@ssube the issue is that everything is put in <loc></loc> tags, and I need it in <sitemap> tags..
13:55
@corvid mood?
Fast and intense
dragonforce
except you want to calm down
@ssube, any ideas?
no, not for adjusting the structure
Hm.. too bad :(
14:07
i am a javascript newbie. can I ask something?
!!tell alamin welcome
@alamiin 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.
@alamin 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.
calm down @CapricaSix
all right @CapricaSix
i understand
it won't happen again
i am learning javascript
she's very rude sometimes :P
14:11
but there is so much.... frameworks.. tools. it's overwhelming... what would you suggest for a newbie like me. How should I proceed. I have spent a lots of time in another stacks. So Its my goal to understand the fundamentals.. tell me if you have any suggestions
I am starting to learning Javascript recently
but there is so much.... frameworks.. tools. it's overwhelming... what would you suggest for a newbie like me. How should I proceed. I have spent a lots of time in another stacks. So Its my goal to understand the fundamentals.. tell me if you have any suggestions
How familiar are you with programming in general?
Pretty good I think...
I am asking that if you were to learn javascript how would you start?
If you're comfortable with any other C-family language (C/++, C#, Java, even PHP), then something like exploringjs.com
14:27
@alamin First learn the language (syntax, type system, idioms, etc.) then learn about the patterns and challenges involved in web development, and the frameworks that implement those patterns and solve those problems.
You'll understand a framework, tool, or design pattern so much better if you understand the problem it's trying to solve.
For example, jquery is trying to solve the problem of "javascript"
except jQuery, that tries to solve everything
that was an easy one @Cereal
I could actually use some good resources to learn about patterns as well as challenges in web dev if anyone has any
@Daruchini Read this room for a while and you will see fantastic challenges in web dev
agreed. Today I learned that guacamole is meant to be really good
14:36
This seems to be nice for patterns: plaidmaker.com
@Cereal wasn't it trying to solve the problem of the Dom and browser inconsistencies actually?
Yes, but that's not funny
14:43
and it succeeded actually
ah I just joined and saw your comment lol
never mind then!
it tried, but it went so much far
We wouldn't have this problem is everyone stopped implementing shit differently
@SterlingArcher tomorrow nothing more album is out
@Loktar yassss
from who
14:46
Nothing More
@Loktar did you listen to that Currents song?
no actually was stuck in planning
It's got a crazy good intro
1/3 of US bandwidth is used by Netflix... the rest is used by `rm -rf node_modules && npm install`
I've got a question about unit testing if anyone has 5 gist.github.com/samjtozer/71335e57cf711dc0f4709c35b65962e2 thanks
14:51
@KendallFrey lmao
> Are we going to get tweets 2/3 and 3/3 too?
solid response
@Daruchini What does "variated" mean?
as in changing the values of a, b, c, d
It's appalling how little unit testing there is in the JS community.
it is
@Daruchini Are you asking about a list of expect(...) vs a list of values with one expect(...) in a loop?
14:54
a list of expects each having different values. I've got an excel model with the correct outputs so i'm cross checking with that
@Daruchini Export it to CSV and verify against it
You want fixtures for your test. You existing, known to be good computations are what you want to check against
@Daruchini "a list of expects each having different values" vs what other option?
You can also call expect() in a loop
Which can result in annoying-to-debug test failures, but I do it all the time anyway
Most test failures are annoying to debug, unless you get a good diff.
So im saying is it the right way to create say 5 objects with the variations I want to test against and just load them into the functions arguments or hard-code the values right into each function as i declare them
Maybe I should do more research before attempting
14:57
You should do more experimenting
I use tons of loops in tests, including loops that create tests.
Until you find a style that suits you
I don't think there's much to be said about where you hardcode your values, they're gonna be hardcoded either way
That said, I'd lean toward having each test case as its own data structure
1 message moved to Trash can
@GokhanDilek Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
14:59
Only reason I thought about having a couple of global objects was I get to reuse
are thye immutable?

« first day (2525 days earlier)      last day (2646 days later) »