« first day (2639 days earlier)      last day (2534 days later) » 

00:54
@jAndy someone's been using perl
I'm not proud of it
01:18
% curl -I dl-cdn.alpinelinux.org/alpine/v3.7/main/x86/APKINDEX.tar.gz
HTTP/1.1 503 Backend is unhealthy
Ugh
user4639281
@copy You should do something about that, having an unhealthy backend is bad. That can lead to all sorts of infections and such.
I know right
Is android + linux fun ?
@copy I Had an idea to bench browsers, use v86 and run Geekbench on it :D
v86 is probably too slow for that
user4639281
I'm trying to simulate an expensive operation. So far all I've come up with is processing an array containing 1e7 random integers between 0 and 100000 by finding the arctangent of the result of multiplying the random numbers by PI. It's still not expensive enough (the processing part, I don't want to create any more elements).
01:37
Compute a mandelbrot fractal zoomed in to the given level for each number
+1 for mandelbrot
You may use this as a starting help: copy.sh/fractal/demo-min.js
@copy yet
Although if it can run windows 98 it should be able to run 2000s era benchmarks
user4639281
@copy thanks, that should do it
@copy hi boyfriend
Hi babe
sup sugartits?
I'm doing a thing for work and it's spending too much time compositing layers
I don't know how to fix it
I never had that problem
aw shucks
02:45
psh, it has a powersource. I was expecting perpetual motion, too
I wanna watch this now
hey! I know this is a javascript room but i don't know where else to go... i'm having issues with jenkins and heroku
jenkins keeps telling me that its failing to connect to my heroku repository and telling me to run heroku login
but i did that and have logged in successfully, and heroku apps --all even shows all of my apps so i know i'm definitely logged in.
if anyone has any insight, it's much appreciated
03:19
I gave my son a copy of "Where the Red Fern Grows". Within 10 minutes he's crying at the end of Chapter 1 when he has to give away his dog. I think I've made a terrible mistake.
RIP Destin's son
user4639281
04:18
Why would two loops be faster than one loop in this situation. The only thing that changes is the elimination of the inner loop which by all rights looks to be redundant, but somehow massively increases performance at least on my computer. And yes I'm sure I could optimize this, I was trying to make it expensive within reason.
Time to get more feedback on my react-like shadow dom lib github.com/ndugger/quark
user4639281
@ndugger If you tell my why a loop inside a redundant loop is an order of magnitude faster than a single loop, I'll pretend to know what I'm talking about when it comes to react-like shadow dom libraries. Deal?
no deal, howie
user4639281
damn
good morning
user4639281
04:31
@AtalShrivastava And a wonderful evening to you
sup sup
user4639281
Well I'm out guys and gals. If anyone figures out what I screwed up with the single loop, I'd love to hear it, otherwise I'll stare at it some more tomorrow :)
user4639281
I'm just not seeing it. The loop itself shouldn't change anything at all, because the part that is actually expensive doesn't change.
where is this thing
user4639281
user4639281
The mandelbrot part is to demonstrate an expensive task, and does not change.
05:21
learning Rust is going very slowly... trying to figure out all the primitives and standard objects
05:46
what u using Rust for?
06:00
I'm translating my react-like lib to Rust mostly to learn, but also to try and get ahead of the curve for when WASM gets DOM access
cool
06:49
@ndugger Can I Join ?
Learning Rust was weird for me it started very slowly and then things started making more and more sense
I did however went through like 5 re-factors
but my way of learning was to start something simple in RUST
and then build more and more complex things
learning more and more about the language
I don't think I'll be able to fully translate my lib into rust, since custom elements depends on class inheritance, and without access to the DOM yet, it's hard to know how exactly that will work in Rust since it doesn't have classes
traits seem pretty dope, though
07:19
No idea how invalid some of that is; I don't have my editor hooked up to rust yet, but here's my first "college try" at trying to get the syntax down gist.github.com/ndugger/4e3628d7ad36abb7c6da108dedc5bce0
07:40
@ndugger there are dom bindings for Rust
08:01
Hey Shmiddity
08:27
I use redux and reselect, and I have this computed list, and any time any of the dependencies change, it gets recomputed
but the recalculation takes around ~15ms on my machine
which is fine, but on a phone, if it's attached to a slider, it may get a little choppy
I'm wondering how I can optimize that
like if you have a list of numbers, and you compute the sum any time anything changes
but if you replace one of the numbers, you can do it in O(1) by adding the difference between the new and replaced numbers to them sum
instead of recalculating everythihng
08:55
@Mosho only compute when the user has stopped sliding ?
and if its necessary throttle it
I do that with other things
but this is a controlled input
which I like
you can still throttle it
I can't
to say ~4-6 updates / second
hmm thats weird
well
then it will be choppy
4-6FPS isn't smooth
08:57
also how big is the list ?
@Mosho true.. if you want that smooth on phone
it's not big, but a lot of things are computed
it takes around 15ms on my machine
which is very smooth
i have no idea :D
if possible i'd virtualize it
I think I have an idea
and compute / render only what is necessary
virtualize it?
08:59
only compute / render the part that's visible
Doing so i made a ~10k list view work flawlessly on Windows Phone 520
nah, it's a small list
it just aggregates from a lot of sources
no need to virtualize
I'm thinking I'll use memoized reselect selectors
so that each set of unique arguments for each function will have a cached selector
Joke cryptocurrency Dogecoin surpasses $1 billion market cap: http://slate.me/2CYs53S
@Mosho that might work much better than expected
you might break out of memory though
but totally worth a try
@FlorianMargaine Some PoC code for Meltdown in case you're interested github.com/RealJTG/Meltdown/blob/master/meltdown.c
@ShrekOverflow maybe in some cases
but I doubt it'll be easy
to run out
@ndugger Wow, that actually reminds me of this really fun game I made a few years ago whatthedude.com/game
And to have him lose the game, yes
09:32
behold
const getSelector = _.memoize((...args) => createSelector(...selectors, bind(combiner, this, ...args)));
this.selectors[k] = (store, ...args) => getSelector(...args)(store);
09:47
@SomeGuy :(
I had hopes you know
@KamilSolecki Maybe you'll like this one better whatthedude.com/js13k-2015
10:21
i think its not running smooth
If it looks like it's glitching, that's intentional. If it's just dropping frames, idk, it's from a few years ago
@SomeGuy migh be me, but it feels a bit choppy
might also be me, having 200 more tabs opened
11:01
shit
it's 6am
Question about Angular / HTTPService
<div class="form-group">
         <input class="inputradio" type="radio" name="usertype" value="customer">Customer
         <input class="inputradio" type="radio" name="usertype" value="driver">Driver
      </div>
public signupUser(usertype: string,email: string, password:string,adress:string,name:string,Phonenumber:any){
    if (usertype == "driver"){
      return this.http.post('http://iceonwheels20171117020935.azurewebsites.net/api/Drivers',{
        email: email,
        name: name,
        pasword:password,
        adress:adress,
        Phonenumber:Phonenumber,
      })
    }
    else if (usertype == "customer"){
      return this.http.post('http://iceonwheels20171117020935.azurewebsites.net/api/Customers',{
This doesn't work beause of the extra argument in ´signupuser´
What is the correct way to go about this?
@Mosho where you live?
 
1 hour later…
12:11
huh, google autocorrects "sociopathy" to "psychopathy"
 
2 hours later…
13:43
O/
@rlemon @Zirak this is cool
@DanielTaub 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.
ok thank you
14:43
Guys, while writing a script that used window.scrollY and window.scrollMaxY I was looking for cross-browser solutions and realized there are lots of inconsistencies between browsers with those properties. The solutions seemed a bit spread and I wanted to see if I could compile them together in a single Polyfix. I made a gist with it and I'm open ears for feedbacks. I think if it's stable it could be very useful :)
Hello
I have a collection structured this way in a mongodb db:
1 message moved to Trash can
@Platus 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
I would like to know if I can use mongoose to direclty get the documents by login?
@Platus probably yes
So that's what it's like to get a snowmobile stuck
15:25
I have 3 promise , how to wait for any of two to get completed ?
@SantanuSahoo Promise.race
promise.race will wait for any one to get complete
i need to wait for 2 , is there any built in functions ?
how can i do the same ?
> Please provide a solution. I am not so good at coding. And I'm in real need to make this project because of many reasons as fast as I can so I will learn all coding later. :)
15:36
lol
please link me to that
:D
ah, the idiocity
0
Q: Diagonal movement is faster than horizontal or vertical movement (unity)

PrakashWhen using Horizontal or Vertical input keys, the the movement is normal. But when trying to move diagonal, multiple keys are to be pressed, and the speed just stacks up. Yes there are many answers to such questions. But I'm having a hard time figuring out a solution. I am actually using an asse...

sauce
its not a full quote though
but my quote is more generic and applies to much more
that game -> this project
on the other hand, the issue is quite common
its a simple design of "if right is pressed, move x to the right"
@SantanuSahoo it doesn't really make sense what you are asking, try executing 3 promises and emit an event when 2 have been completed and stop the third. How? start experimenting
"if up is pressed, move x to up"
@Wietlol your quote is pretty accurate actually lol
15:38
but if both are pressed, you are now moving at sqrt(2) as fast as normal
@IanC i replaced "that game" with "this project"
@IanC the reason why browser support is lacking is because scrollMax[X|Y] is non-standard. Writing a “polyfix” is therefore not all that useful.
@ndugger but scrollHeight and clientHeight are in the stardards right? So wouldn't scrollMax be more of a facility using supported information?
it's just that they behave differently between browsers, like rounding errors, or how older IE considered body to have the scroll height information instead of documentElement, maybe accounting for those differences in a single place would be useful
Then write a library that you would probably be the only user of. The point is that scrollMax is non-standard and there is already a way to come to the same sum, shown by your code. This isn’t a new problem, and I bet you there are already a dozen libraries that people wrote to solve it
1 message moved to Trash can
@SantanuSahoo 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
15:55
@Gntem I need to print as soon as two gets completed out of 3 promiss
ah, wake me when js has multi-threaded support
@ndugger I think I just wanted to have those issues documented and "fixed" in a single place, because it would be easy to forget about some detail and insert a bug in the code because of some browser inconsistency, like the IE rounding. It would be intuitive to think scrollHeight - clientHeight is enough, but then you could have a scrollMax 1px bigger than what you could actually reach. I don't know, what library would you use for that?
sorry i dont want to review your code, post something on stackoverflow, or software engineering
does jQuery accounts for all the issues?
@Wietlol service workers is the best you’re gonna get
16:00
so far
You don’t need threads if you fully embrace async event driven programming
Don’t fight it
i always find a way to need something
trust me
16:23
Hello and happy new year everybody
I was wondering, does anybody know how I can specify that a LESS file be put before any other in a create-react-app?
The order in which compiled .css files are included yields incorrect results.
I have a framework .less file which should be the base onto which to build the rest.
include the other files in that .less file?
so you only have one entry for your css
The way create-react-app tells it you should specify a .less file per component and let the compiler bring them all together
That's why shadow dom is so important; properly scoped styles is amazing. I wish MS would agree.
I did at least get them to mark my submitted issue as "confirmed", so that's a good first step developer.microsoft.com/en-us/microsoft-edge/platform/issues/…
17:04
display: contents will be super helpful with custom elements. I was hoping something like it exists. Too bad it's so new that it's only behind flags atm
fuck this one
that one doesn't do anything for me
this is by far the best thing I ever put in my mouth
3
something called a pear and strawberry strata
17:39
thanks for the pin, fam
18:18
nice earring
18:43
^ ?
Ello all!
19:25
I can't seem to connect to my mongo atlas db
It asks what mongo driver I have. I have no idea??
 
1 hour later…
20:38
@Luggage @ssube @Loktar just cable tied a fan in :/
didn't have screws long enough, and it's way too cold outside to go get them
print some
@ndugger could you propose it as a page-wide setting?
I have some special fan mount screws that are pretty much rubber cable ties
real ones are a little ghetto, but meh
yea I have those from the noctura
fuck I didn't think about those
now it's all back together with the temp solution
s/temp//
20:50
I said cable ties. I really meant garden wire
so yea, temp solution :D
when I said garden wire, I really meant some leftover spaghetti
ayyyyylmao
learning from mistakes is overrated
yes, make the same mistakes all the time, be consistent
it's part of the API spec, now
oh they take packages offline randomly to test resilience of developer teams?
I like it
20:55
sigh
Oh fuck Mosho just posted it
oops
GH seems to be melting down
This thread is making my day... also making it significantly less productive lol
shit, my build is kaputt too
I took a break from work to start remaking my website and Reactifying it. But welp
looks like another asshole decided to break the internet
21:08
this lmao
pinkie-promise
a package comprised entirely of
module.exports = typeof Promise === 'function' ? Promise : require('pinkie');
21:28
cdnjs also fucky
is this the beginning of the end
Goodbye node, it was a fun ride.
aws decided to have their annual us-east-1 outage early this year
rather than keep folks in suspense
It just passed 1,000 comments holy shit lol
lmao GH or npm have been furiously deleting comments from that issue
or the database is on its own
21:33
that would be lame
how many comments/sec can a single issue take?
I hope it can take that
it's around 1 per second
i bet they get cached somehow
but they already get posted
then deleted
maybe they were deleted, most of the comments are memes at this point
21:37
looks like it's over
it's amazing that npm works like this
even more amazing they still work like this after left-pad
they don't work
it just doesn't matter much because big companies don't use npm directly
most private mirrors won't pick up a delete like that by default
a lot of people use it directly
I'm sure it matters a lot
sure, most random people do
and small companies
probably some not small ones
probably a few
once you get big enough to have complicated corporate firewalls and many sites, caching proxies are a big deal
21:45
sure
but it's still ridiculous
even if it was only random people
the npm registry has always been bad
they should have just used an existing package format
why do they even keep published packages tied to a user
hmm, react-bootstrap 1.0 is out
for how long?
oh, it's not
they just put 1.0.0 in the homepage
and redid the documentation
I decided recently that I won’t put any more packages up in npm, or yarn for that matter. Pull my shit from github using release tags instead
21:58
how does that solve anything
or is it just some kind of rebelling against the system
Mostly rebelling because people name squat, but it might help with visibility of the src files
22:14
hnnnngh
22:30
looks a little creepy
22:40
rawr xd
@KendallFrey pretty nice
got my first snowboarding lesson tomorrow
Hm so I've got a React component where I have a textarea. On a click of a button it'll insert some text, but right now it just inserts at the end. I want to insert it where the cursor is.
Would the best way to be tracking the cursor location in the textarea?
What's the best way to do this?
read the existing content first, I guess
in conjunction with selectionStart and selectionEnd, depending on your needs
Hmm, I think I have a plan
Thanks :)
23:43
this snapshot testing business is so good for integration tests
Not sure how much of it is factual, but I'm halfway through the Wolff book and it's entertaining.
@littlepootis most of it is probably exaggerated
that's standard procedure for Wolff
however it's probably mostly rooted in truth

« first day (2639 days earlier)      last day (2534 days later) »