« first day (2550 days earlier)      last day (2384 days later) » 

user2620028
12:22 AM
@SterlingArcher holy shit book fever
 
lol right? who in their right mind does that?
woo 2 subs!
im gonna be rich
 
pfft, I have 17 subs and I never post two videos about the same thing
 
user2620028
is that seriously a day of you riding your bike dude?
 
12:26 AM
get outta here, I got 41 and it's because of retarted attempts at explaining something I don't know
 
user2620028
i don't see that much stupid shit in a month usually
 
@HatterisMad all that? Yeah, that was an hour
I get cut off almost every day
 
user2620028
or maybe it just feels that way because you literally caught a lady reading a book in traffic
 
user2620028
well yeah thats expected
 
haha! yeah that was a new one actually
 
user2620028
12:27 AM
i think i just ride in a way that it doesn't happen
 
usually it's just me yelling at people to get off their phone
 
user2620028
will get out into open road
 
@SterlingArcher You live in a mixture of pretty and grey
 
user2620028
although i did have someone almost take out my car on friday
 
@Zirak my mom's hair?
 
user2620028
12:28 AM
they marged into my lane when i was beside them
 
@Zirak it was a rainy day, usually it's much nicer out
 
user2620028
started merging in the middle of an intersection too
 
@KendallFrey dang, self burn
 
user2620028
and there was no shoulder
 
@HatterisMad brake hard?
 
12:29 AM
marge: a merge where you barge someone out of your way
 
user2620028
@SterlingArcher yep, got over to the point where i was going to jump the curb and then braked quick enough that they didn't hit me
 
@SterlingArcher Wait, how does that burn me in any way?
 
he thinks you're hot
 
user2620028
@kendall Hah! your mom is old
 
I expect your mom still has her natural hair color
 
user2620028
12:31 AM
probably?
 
my mom is going gray
 
user2620028
i don't remember
 
@SterlingArcher 50 shades, can confirm
 
ayyylmao
 
aww no cody is making me crave honeycomb
 
12:36 AM
Is there any best practice how to use like "anonymous" Promises as listener for state changes?
Like Module A loads Module B, but B needs to wait for certain stuff module A processes, so A could just create an unresolved promise, pass it to B and resolve it when it finished
That's not really a concept for promises is it?
 
that's called a deferred, and fell out of good practice
just have a function in B which returns a promise
 
Seems like most of the time just calling a function from B would do the trick
 
sounds like a pity then. If you follow a strict losely-coupled architecture, you don't really want to pass a function reference directly around between modules
a resolvable, empty Promise (Deferred Object), would be really useful sometimes
 
you don't pass the function reference, you call the function and use the returned promise
instead of passing a promise into the function, you call the function to receive a promise
 
@jAndy You wouldn't need to, just call a function of B that initializes it or whatever
@Zirak Isn't that something different than what he's talking about?
 
12:44 AM
perhaps, what's he talking about?
 
> Like Module A loads Module B, but B needs to wait for certain stuff module A processes
 
jAndy it sounds like your modules are doing work while they're being parsed, I find it's usually better to just define things, functions and shit, and then do the actual work later. Problems like yours go away when you link things together lazily
 
    I've been trying to solve this Google cloud storage issue for over an hour and hopefully someone here can help me out:

    return new Promise((resolve, reject) => {
            // Object name
            const file = bucket.file(fileName);
            // stream
            const gcsStream = file.createWriteStream({
                metadata: {
                    contentType: fileMimeType,
                    cacheControl: 'public, max-age=7200' // 2hr caching
                }
            });
 
I'm not really certain how this would work for me. Talking about extending classes, A extends B. Some code in B's constructor needs data which is asyncronously processed in A's constructor
 
@KendallFrey, @phenomnomnominal B's function can still return a promise
oh, don't do that kind of thing in constructors
 
12:46 AM
so now, it would be lovely if A could pass some Deferred into the constructor which B could access
 
constructors are synchronous, they initialise, they don't contain logic
 
@Zirak And A would be expected to then resolve it?
 
erm, not you
 
2.9 anyways
@Zirak you should listen to some Tigers Jaw
 
12:47 AM
@KendallFrey no, it Promise.joins a bunch of arguments or something like that
 
morn
 
super poppy but damn them hooks
 
async function A() {
  await B(blah, blah);
}
async function B(thing, another) {
  await Promise.all([thing, another]);
  return 4;
}
 
@Zirak If B creates the promise and is the one who needs to know when it's resolved, A seems powerless
 
@phenomnomnominal thanks, added to the list
 
12:48 AM
@Zirak but its so sexy if constructors contain logic :-O
 
@Zirak Where's the part of "B needs to wait for certain stuff module A processes"
 
@KendallFrey The arguments to B
If you need to access functions from A then pass A and call functions on it
 
wait, but that's the point of B returning a promise then?
 
A different promise
When it's done processing stuff
 
So basically that's exactly what @jAndy was asking about
 
12:50 AM
however, this only works with hard-coupled modules then
 
@jAndy they're fine if they contain a smidgen of logic, but if you start doing weird freaky voodoo like this then you know you're doing things wrong
 
B needs to know methods of A or vice versa
 
@jAndy DI can fix that
 
Either you pass a promise in that's resolved when things are done processing, or you call functions which do processing
Or you don't call the function until you're done processing
You're in this mess because you can't not call the constructors
If this were a pair of regular functions you wouldn't have dug yourself so deep
 
indeed
 
12:52 AM
so I'll return to my original suggestion which is to decouple this from the constructors
your code will look better
 
but I have no choice here, creating a component extension as dialog, so I want the init stuff from the component class, but on the other hand, I don't want the component to do certain things until the dialog contructor is finished with other stuff
yes sounds like voodoo unfortunately, but it would be so sexy
 
then show some code, maybe I'm missing something
 
this.loaded = whatever promise needs to be resolved in A's constructor?
and then this.loaded.then(blah) in B's constructor?
 
never mind, I think Zirak is correct again. I have to go back to the drawing board for a little while here.
 
Zirak is never wrong
 
12:57 AM
meh
 
The Zirak(cle)
 
does anyone have inside information on how to snap a canvas to a div element? I have been attempting in this fiddle - jsfiddle.net/alexanderbollbach/mrwztL3c/2
 
"inside information"
 
correct
it feels like a government secret at this point
 
i have no idea what that fiddle is tryign to show
 
1:00 AM
I had no idea it was bad practice to dynamically add properties to an object after creation
 
there are three columns in a grid layout. i have a canvas in the right most one and it juts out of the button of the div despite having a height: 100% rule
 
> An Optimizing Compiler that produces great code for most of the JavaScript language. It comes later and re-compiles hot functions. The optimizing compiler takes types from the Inline Cache and make decisions about how to optimize the code better. However, some language features are not supported yet like try/catch blocks for instance. (The workaround for try/catch blocks is to write the “non stable” code in a function and call the function in the try block)
 
info: error:  { errors:
   [ { domain: 'global',
       reason: 'badRequest',
       message: 'Invalid Upload Request' } ],
  code: 400,
  message: 'Invalid Upload Request' }
 
@Zirak can you explain this like I'm stupid?
 
user2620028
fuck man i can't get mobx to do what i want it to
 
user2620028
1:08 AM
this shit is cryptic as fuck
 
@SterlingArcher where'd you take that from?
 
It's getting less and less true, deopts are less common these days
 
It's 4 years old, maybe that's a sign
 
But a short tldr is just the last couple of sentences
 
1:09 AM
But if a try catch isn't supported, how is the work around to still use a try catch
 
Your engine has a part which optimises javascript, but some features are hard to optimise. The optimiser works on a function-level, so if you have a function which needs to be fast, don't write try...catch inside it; write the try...catch in another function
 
But isn't that just.. inceptionous levels of nesting the block?
 
// e.g.
function iAmVeryFast() {
  coolStuff += 1;
  for (wow) {
    such awesome;
  }
  slowpoke();
  otherSuchAwesome;
}
function slowpoke() {
    try { ... } catch (e) { ...}
}
If you wrote try..catch or eval or with inside iAmVeryFast it would not be optimised well or at all
 
So you're optimizing like 99% of the function by doing that, then?
 
By moving these tricky features to dedicated functions, you allow the larger function to be optimised
 
1:13 AM
This is giving me a lot to think about
 
You can see that in bluebird code, search for tryCatch in promise.js
The tryCatch function is defined in util.js
Really really ugly
but esailija is an optimisation nerd and hey, bluebird's fast
 
this is true, it's very fast
 
1:35 AM
1 message moved to Trash can
@hello Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
1 message moved to Trash can
@hello Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
 
lol
 
fs
Is there a JS reason I cant access outer loop counter inside the inner loop if statement? pastebin.com/95ZFNV0T
 
> if(b[j] === '1' && b[i].value === '')
you specifically ask look for cases where b[i] is empty
 
` if(a[j] === '1' && b[i].value === '')` typo
 
you're still looking for cases where b[i] is empty
 
1:50 AM
 
#FIGUREDITOUT..
 
2:34 AM
 
2:51 AM
My flight is 2 hours late :(
 
@BenjaminGruenbaum that's just more drinking time
 
@SterlingArcher Remind me never to hang out with someone so clearly out of control as you
oh wait
Look what the Onion just retweeted
Your Flight’s Been Delayed. Can You Kill 5 Hours At The Airport? http://clckhl.co/iCccroc
 
3:14 AM
ohhi
 
3:51 AM
time to put kerbin and mun stations up
forgot lights, will have to bring them up with kas
or just not bother cuz i'll be replacing this later
 
Am I missing something? I'm trying to make a small script for something, and using jquery would make things so much easier. I've never really used javascript before for anything. When I add src=(jquery path) to the <script> tag, my script now no longer does anything.
 
@HaniiPuppy 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.
 
pastebin.com/PuhVsAur - Without src="jquery-3.2.1.min.js", it runs fine and prints "done something" at the start of the function. With it, it doesn't do anything.
jquery-3.2.1.min.js is in the same folder as the html file, and I get the same result if I reference ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js instead.
 
4:10 AM
@HaniiPuppy You can't have both a src and contents in a script tag
leave your script tag alone, and make a new one above it that's empty but has the src
ie: remove the src from what you have, and put this above it: <script type="text/javascript" src="jquery-3.2.1.min.js"></script>
 
Oh o3o sorry. I thought it was simply a parameter for the script tag of the script.
thankyou.
 
4:30 AM
smooth
now all it needs is a fuel tank
 
@TylerH could you kindly assist me with an implementation of your script here jsfiddle.net/apederson/z93R7 Im getting some strange behavior
 
5:25 AM
christ on a bike dealing with soap is awful
 
morning
 
5:43 AM
Hello everyone! Have you encountered an error with Owl Carousel:
Cannot read property 'clone' of undefined

the slider does not work on mobile and then shows that error for every slide.
but works fine on desktop
 
what line of code is throwing the error?
oh, mobile.
 
Uncaught TypeError: Cannot read property 'clone' of undefined
    at e.run (owl.carousel.min.js?ver=4.8.2:1)
    at Object.d [as run] (jquery.js?ver=1.12.4:2)
    at e.update (owl.carousel.min.js?ver=4.8.2:1)
    at e.<anonymous> (owl.carousel.min.js?ver=4.8.2:1)
    at d (jquery.js?ver=1.12.4:2)
that is the stack trace of the console
 
what about non-minified?
 
let me switch to non-minified for awhile.
 
odd.
only place .clone is used, and in none of those cases should the thing it's being called on be undefined
they're all jquery collections
 
5:47 AM
I wonder how they implemented the mobile version...
 
there's a mobile version?
 
what I mean is that why would the error only occur in mobile versions.
 
oh, heh, and i was looking inside tests
eh, mobile device browsers aren't created equal
are you using owl carousel 2?
or is it another one
 
yes. owl carousel 2
 
2.2.1?
 
5:51 AM
let me check
i'm using wordpress unyson plugin and it seems that it didn't specify (they removed the comments). let me switch to the latest
maybe they're using and old version.
 
Can't sleep :(
 
and here i am falling asleep at the wheel flying rockets
 
http://jsfiddle.net/atharvajava/g3d53r7L/ hi can anyone help me here i want to retreive value from ST if active is YES from mongodb my query seems to return all of them
db.props.findOne({"release":"1","project":"1","product":"1"},{"cd.env.ST":1},{"c‌​d":{$elemMatch:{"env.ST.active":"YES"}}});
 
6:20 AM
Heyo
 
ohhi
 
6:51 AM
On work. div:after:before, div:after:after and div:before:before, div:before:after can save a lot of time for me in this job
 
7:25 AM
no ones around :O
 
7:47 AM
imgur.com/gallery/kZRhF @towc You could probably use this
 
@MadaraUchiha all that work for some lame chicken
 
I'm trying to understand the difference between child_process.spawn and child_process.exec. If I'm just using it to start a background process does it matter which one I use?
 
@joshhunt Yes, it matters
spawn invokes through the shell, exec does not
Thus, exec is preferable, unless you explicitly need interaction with the shell
 
spawn returns a stream, exec returns a buffer
 
right, thanks. exec it is
 
hi
i want to send push notification to the customers
it is possible to register web push notification
and send to mobile and web
 
I was just looking at that yesterday, let me see if I can find a link
 
about the mobile user, user accept the notification with chrome
i send them an url and then they open this url in their mobile chrome browser and accept the notification
 
8:15 AM
I'm wondering if anyone has dabbled in end-to-end databindings for React (in my case Firebase, but any database really)? Essentially, I want to easily have a component, no matter how deep it is in the hierarchy, check if data is loaded and display data (any remote data), without having to change code in 3 places: 1) query it from the remote data provider, 2) add to local data model (e.g. Redux), and then 3) retrieve it from the local data model to display in component.
This is more of a thought experiment that I have been working on implementing over the past few weeks, and I'm finally done with a first version of it... it 1) let's you define a "data model tree" (describing how to get what data from the remote data source), 2) uses dependency injection in the components to specifically get access within the component, and 3) it borrows the pub-sub model via Context from Reduxto make sure, component data is always up-to-date.
 
@joshhunt github.com/sindresorhus/execa is a pretty neat wrapper
 
8:48 AM
Hi
 
Hello!
 
@AbhishekPandey Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
@AbhishekPandey Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
 
@AbhishekPandey Ctrl+K, try highlighting it first
 
Not able to edit it :/
 
Try again :)
 
8:54 AM
those who're looking for free code writers on so, it's season. create a repo, make an issue, tag it with hacktoberfest. you're done
 
Or try asking a question instead
@SagarV If by "free" you mean "shit", yes
 
@OliverSalzburg we can reduce such questions on so, atleast for this month
 
what
I don't want the type of shit I see on SO in my repos
 
var httpMethods = new Vue({
    methods: {
        get(url, API, SID) {
            this.$http.get(url + API + SID).then((response) => {
                this.getdata = response.data
                return this.getdata;
            });
        },
    }
})

var app = new Vue({
    el: '#app',
    mounted: function () {
        this.membersdata = httpMethods.get(webconfig.SiteUrl, webconfig.API.User.GetSocietyUsers, webconfig.Session.SocietyID);
        this.appdata.SocietyMembers.Get = this.membersdata;
 
Even though it probably belongs
 
8:55 AM
I have created above code to get data from API
 
Yeah, we got that the first time :P
 
@BenFortune not in yours. let them create their on repo. make a pull request. I've seen already many of them. like landing page needed, need a new layout, etc
 
morning
 
but API is responding slow, and get() function is returning undefined
 
evening
 
8:57 AM
@SagarV Do you know how PR's work?
 
I don't know what should I do now
I'm using vuejs
 
@AbhishekPandey It returns undefined because you're not returning anything from the function
 
@AbhishekPandey I don't know the flow for vue, but get returns a promise, not a value
Also that
 
@BenFortune I guess yes. So If I am right, yes. and I guess I am right. So, Yes
 
I dont trust random internet coders with me code
 
8:58 AM
@SagarV So the end result is still having their code in your repo.
 
yet you come here
 
@BenFortune You meen to say response?
 
these people aint random
 
@BenFortune settings-> delete
 
@AbhishekPandey no?
 
9:00 AM
okay, Actually I'm working with APIs for first time, and I'm hell confused
can you please elaborate more
 
So VS Code now shows from where in the source a console.log call originated. Nice idea, but, of course, it now shows the source line of the bunyan abstraction for every single line
Is anyone aware of a way to turn that new feature into something actually useful?
 
how can I get the upload progress from an upload <form> ?
 
eg ^^^
 
Is Eclipse any good for Node.js development? or am I better off getting a different IDE? I'm on Windows
 
vscode
 
9:06 AM
vs code
 
@BenFortune And the Community edition of Visual Studio?
or is vscode good enough?
 
Vscode is the best
 
why you need to destroy lots of ram and hdd when you can achieve in just <100mb
 
You wouldnt need 3/4s of the full vs features when doing node dev
 
9:07 AM
vs community has nothing to do with nodejs
 
ah, okay
 
Date.parse should return NaN when its invalid. So what does it mean when it returns a negative number? (Happens with the default of the input value in Chrome: "0001-01-01T00:00:00")
 
good to know
 
You do most stuff in the console anyways
 
Sub 100 MB? What are you talking about? :D
 
9:09 AM
leaks? where?
 
@OliverSalzburg not my fault
why you're opening multiple instances?
or how much extensions installed currently?
 
I'm probably going to have a bunch more questions the coming week. We are investigating support for node.js, Webpack, NPM and Grunt for our product (essentially a build server)
 
Go gulp
 
in mine, it takes maximum 130-160. 80-90 average
 
@SagarV Because I need them
@SagarV 12
 
9:11 AM
@KamilSolecki did you mean this go
 
@KamilSolecki it's for a prospect, so right now it's just Grunt
Because that's what the prospect uses
 
@SagarV go as a synonym of use.
 
can I get the file upload status from an upload form?
like, 2319/123123 bytes
 
@OliverSalzburg blame the needs
 
or something like that
 
9:13 AM
in mine, node js is taking much ram while running angular 4 apps. it reach upto 800mb
I mean the node server
 
Right now, I need to figure out whether we can cheat a bit and take a detour via Ant/Maven2/Gradle (as in start and/or deploy any of those 4 above through a script), because we already support those and we can implement custom functionality through those build tools
 
Well, those are only the VS Code processes themselves. The applications I'm running in them take their own resources too
@Neoares Not that I'm aware. I would have to google to see if anything has changed in the recent past
I remember people using XHR to receive upload status information from the backend
 
I've found this example
var xhr = new XMLHttpRequest();
xhr.open("GET", "http://christopher5106.github.io/img/mac_digits.png?" + new Date().getTime());
xhr.onprogress = function (e) {
    if (e.lengthComputable) {
        console.log(e.loaded+  " / " + e.total)
    }
}
but that's... an xhr.open
so I don't know how to extrapolate it to my form, if it's possible
 
@Neoares You should read the rest of the article :P
I mean, that's the first snippet in the whole article
 
I know
but in the FormData he doesn't get the progress
 
9:28 AM
isn't the onprogress just meant for uploading data?
 
miss 1 route = 1K error
 
that is 1 error
 
@Wietlol rest are his childs
 
thats called a stack trace
still 1 error in the image
 
1K in the console topbar
 
9:36 AM
ah
mb
 
9:49 AM
?
 
im not used to console log
 
10:10 AM
WTF 1 k why 1000 why not 1275 or 976 up to 1000
 
10:21 AM
@Qh0stM4N chrome rounded it to 1000. I think so
coz no one is going to count the errors one by one to check whether there is exactly 1K or 1002 or 1050 is present
 
10:38 AM
TIL there is a little Dude in my computer that approximates the error count
 
always giving 10^x answers
 
11:05 AM
Oh, today is native american slaughter day
That's why it's so silent today
 
eh?
 
aka Columbus Day
 
isn't that on the 12th?
 
Google Calendar says today
 
man
unreal engine is the worst software ever
I can't believe people make games with this
I mean, it's really impressive in scope
but it's a buggy undocumented nightmare
maybe the web spoiled me
 
11:12 AM
ım try error rounded my chrome not rounded, pls try it dev-console
console.clear(); for (var i = 0 ; i<1001; i++){window.setTimeout(function(){error();});}
@SagarV imgur.com/a/VvT5l i will testet with
Google Chrome 61.0.3163.100 (Resmi Derleme) (64 bit) (cohort: Stable)
Düzeltme 57c9d07b416b5a2ea23d28247300e4af36329bdc-refs/branch-heads/3163@{#1250}
OS Windows
JavaScript V8 6.1.534.41
Flash 27.0.0.130 C:\Users\Ok\AppData\Local\Google\Chrome\User Data\PepperFlash\27.0.0.130\pepflashplayer.dll
Kullanıcı Aracısı Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36
Komut Satırı "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --flag-switches-begin --flag-switches-end
 
bob
afternoon all, just a quick question, I've made a loading bar that triggers when the page is loaded, just a back line that goes along the top of the page, however when I trigger it with a button, it's rewinds and then starts again, how can I reset it to start from the begining without it rewinding. example of issue here jsfiddle.net/425f2fwh/1
 
146
Q: What is the cleanest way to disable CSS transition effects temporarily?

Sam SaffronI have a DOM element with some/all of the following effects applied: #elem { -webkit-transition: height 0.4s ease; -moz-transition: height 0.4s ease; -o-transition: height 0.4s ease; transition: height 0.4s ease; } I am writing a jQuery plugin that is resizing this element, I need to ...

 
bob
11:42 AM
@KendallFrey Thanks, that worked.
 
Hi everyone. With Angular, I use a *ngFor directive, and inside this directive I have a *ngIf. The *ngIf is supposed to keep display for a defined number of items. Then, on click on next/previous button, the items displayed should change. Problem is that the item's container size keeps increasing for the total amount of items, not for the displayed items... (idk if I'm clear explaining this) Any trick about this?
 
The trick is to dig deeper
 
lol, I'm diggin :p
 
Why does it have the size? Are there elements in the DOM?
 
I'm diggin so deep that I finally got into this room
 
11:49 AM
I can't say whether that's a good thing
Let's find out!
So, check out what the DOM result of those directives is
 
it doesn't have a "defined size". Let's say I have 4 items displaying on one line. I want the page to show 8 items (2 lines) and, if more than 8, display a "next" button.
so, basically, I have my *ngFor, retrieving and "displaying" the items. And then, I have a ng-container with a *ngIf directive that decides if the items should be displayed or not, depending on the index and page number
 
@Julo0sS The ngFor will probably calculate the required size before the ngIf is evaluated or something like that
Would have to see some runable code to say for sure
 

« first day (2550 days earlier)      last day (2384 days later) »