« first day (2676 days earlier)      last day (2273 days later) » 

12:01 AM
@BoltClock any word on the whole PluralSight IQ being outdated and ambiguous?
 
No, I don't know anything about it and don't use it
 
Only the best JS devs use it! Jobs around the world hire exclusively upon your score :P
 
@SterlingArcher i thought you used it
 
That's because I'm the best
Keep up Kendall
 
> Canadian curlers are favoured to win gold
i'm nervous
 
12:06 AM
I don't like canada anymore
 
Canada is a meme
 
The canadian chick I blocked today is a diplomats daughter so thank god I got out in time. But if I go missing, declare war on Canada please
 
@SterlingArcher Anything that makes my life easier by discouraging people from sock puppeting on SO
 
@BoltClock easy solution homie, just pass your torch to me
I will abuse your powers to the fullest extent of my imagination
 
@SterlingArcher I've been working on it for months now.
 
12:18 AM
I really should learn TypeScript. Except I'm sick of revamping SourceUndead
 
okay what sites have you had luck for hiring someone for one time programming gigs? I'm trying to get someone to develop this android app but no luck.
 
My dudes 😃
Its a monday!
 
freelancer, upwork both seem sketchy. I'm concerned someone is going to run off with my money with out delivering a project.
 
@William it really depends on the contract
 
any further advice?
 
12:31 AM
Hard to say I've never done freelancing work, but typically payment is on reception of the finished product
 
@rlemon is there a way I can make cap say 'morn' to ndugger every time he enters chat?
 
no
 
Freestyle skiing up next 😃
 
@david I support that idea
 
You can ask for a percentage up front if you’re trusted, meaning you’ve had previous clients and their testimonies
But generally payment is after
 
12:51 AM
canada's falling apart
 
Falling to france
what a shame
 
australia is also doing pretty poor
 
@SterlingArcher no, they're playing norway
and winning
 
You're not talking about the freestyle skiing are you
 
^
 
12:56 AM
course not
 
You now, Map has some weird syntax for a.. (wrong term?) literal declaration
new Map([['foo', 3], ['bar', {}], ['baz', undefined]])
Why use arrays when {} notation would read better?
 
yasss
 
I know right it's weird!
 
@SterlingArcher Because you're often populating a map from an array or iterable, rather than constants
FUKN STEAL
 
@KendallFrey but the surrounding [] implies an Iterable, no?
Why should they key val pair also be in interable form
 
1:07 AM
@SterlingArcher The pair doesn't need to be iterable, but [] is the closest thing JS has to a tuple
 
Is that implying that the key/val can be an iterable?
 
What do you mean?
[] is iterable, yes
 
I'm not even sure
But even ['foo',3,2,true] ignores anything past the 1 index
 
That's an unfortunate side effect of using arrays for tuples
 
Doesn't seem right but Maps are great so I won't nitpick lol
 
1:11 AM
Is there anything wrong that wouldn't be fixed by using tuples instead of arrays?
 
Nope, just the syntax really
Are tuples even on the roadmap for JS?
 
I haven't ever initialized a Map with constants
no clue
 
Same I usually just use .set()
 
@SterlingArcher That's the syntax used to create keyword lists in other languages
 
I used the constructor a few times recently I think
Just not with constants
 
1:14 AM
But javascript doesn't have lists
 
@KendallFrey wait you don't usually use new Map()?
 
I said that's what I used recently
 
But before? Maybe I'm tired but I don't recall a literal syntax
 
what?
 
so maps are meant to be keyword lists rather than actual maps
 
1:15 AM
Before? Literals? Huh?
 
What did you use before new Map()?
> I said that's what I used recently
 
but they're just weird all around cuz they're built without lists
 
@SterlingArcher That doesn't imply I used non-Maps before
But before Map was available, I would have used an object
 
Oh lol
 
1:16 AM
at least, mostly
but it only has string keys
I can show you how I use Map if it would make you feel better
 
I mean sure lol
We use Maps and Sets all the time
 
I don’t use them often
I don’t often need to use anything other than strings for my keys
WeakMaps are great though
 
Wouldn't that make a map optimal for you since the keys are hashed?
 
Plain objects are negligibly more performant, and I’m always that guy
 
1:19 AM
Maps are a little more performant in some cases
 
@KendallFrey that reads so clean :P
 
who needs obfuscation!
 
That’s some ugly code
 
1:21 AM
But immutable js maps are great
 
Whats this as keyword? Is it a TS thing?
 
class booo!! Prototypes to death!
 
@ndugger yes
it's just a type cast
 
I can't watch male figure skating without thinking of blades of glory
 
@KendallFrey Hanging curlies?!!
 
1:22 AM
that movie is awesome
 
Ah, I’ve never seen it before, strangely
 
hello guys
 
stupid but awesome
 
@ndugger it's fantastic, definitely watch it
 
Not that, fool
 
1:23 AM
@monners better than egyptian
 
oh lmao
 
egyptian?
 
when i try to sort by an integer column in AngularJs using ng-repeat , it sorted as string
[
   {
      "contact":"BDCF788E",
      "contactEmail":"asd@asd.com",
      "contactNumber":"2531",
      "address":123,
      "supplierId":123
   },
   {
      "contact":"BDCF788E",
      "contactEmail":"asd@asd.com",
      "contactNumber":"2531",
      "address":123,
      "supplierId":1000
   },
   {
      "contact":"BDCF788E",
      "contactEmail":"asd@asd.com",
      "contactNumber":"2531",
      "address":123,
      "supplierId":100000
   }
]
supplierId is the column
 
@monners #3
 
TIL
 
1:27 AM
canada shooting for 3
 
There's actually a reason not to hang curlies in JS though...
 
@monners yes I know :(
If you look you'll find it in that project
FUCK YEA
up 4 with one more end
 
I want to see a figure skater get really dizzy and puke that would be hilarious
 
Fun fact: I used to be a figure skater
 
1:31 AM
I'm not gonna click on that...
 
Ohhhhh I'm totally clicking that
 
@monners What are you, gay or something? ;P
 
lmao it's rollar skates too haha
 
I went ice skating once
 
people clapping for the puke LOL
 
1:33 AM
lol ikr
> woo best entertainment
 
@KendallFrey lol the next up...
major scorpion
 
yea not clicking that
woop, the shake
canada goes to the final
 
the shrek song
 
@SterlingArcher also, why is he staring so intently at her cooch
 
lol
 
1:36 AM
cc @rlemon
 
whats everyones favorite shrek song
 
somebody once told me that's an obvious question
 
yeah the answer is best years of our lives by baha men
 
My favorite shrek song is actually a bible verse
it's from Psalm BODY ONCE TOLD ME
5
 
@SterlingArcher the fuck ?
 
1:39 AM
fuck that deserves a star
 
I stole it
 
actually it deserves all stars
 
someone needs to do a version of youtube.com/… with Shrek
 
man why can't male figure skaters wear skirts
 
-1
Q: When div is on screen, no body scroll

daniel nI would like to achieve an effect where The hero banner scrolls to reveal an image, while the hero banner is scrolling the body should not scroll. When the hero banner is done scrolling and the image is revealed, then the body is free to scroll down the page.

this reads like a warning lol
how the hell did that canadian just take first place he fell twice
 
1:42 AM
suck it
 
the russian fell like 4 times
 
canada always does better when I'm watching
 
I thought russia only fell once in 1991
 
I started watching just in time to get his score
@SterlingArcher don't forget 1969
 
We don't talk about 1969
 
1:43 AM
I do
 
I heard if you say blyat 3 times in a mirror Vladimir Putin comes and colludes you
 
Have you seen the "possible collusion" music video
You better have but you may be 10000
 
@KendallFrey I don't watch politics even satire really :P
 
placeboing is pure gold
 
(also, ive never seen it with sound, much better)
 
1:46 AM
it's not really satire
would you prefer
 
oh this dude is straight
 
@rlemon gfycat.com/HeartyFlippantLadybird unexpected but honestly expected
@KendallFrey oh my god hahahaha
 
oh placeboing also does alex jones
I'm not sure why I haven't thought to subscribe yet
 
Guys I need help please
I have table with 500,000 record
I use AngularJs with ng-repeat to display this table
I make pagination and sort
it is very slow , page not responsive

is ng-repeat bad for large data ?
 
2:05 AM
@Bassem are you showing all those at one time?
 
@KendallFrey Only for Jesus
 
the object is loaded with all 500,000 record
but i use paging , Next , Previous
@Rick
it is very slow
 
Sounds very slow
 
Well you're in luck, because he was the type of guy that would be happy to hang out in a room full of 12 dudes.
 
you need to break down the data, either from an api or read it in smaller chunks from a file. that's too large to consume all at once
 
2:07 AM
Nah, just download more RAM
 
@rick , you mean to cut the data on server side ?
 
ya, i am assuming you are getting it all in one api call correct?
 
yes but what if user need to sort by column
with each action , i should go to server
:(
i need a client side solution
 
Yes
 
Is there any client side solution ?
 
2:10 AM
Yes, wait 5 minutes for it to sort 500k records
 
You could download the data set and keep it in local storage. You'd still have to limit the set size you deliver to the UI though
 
@monners I already limit the displayed data
 
umm, you might not have the aptitude for a client side solution. you can preload the data, and will probably need to use webworkers parse as a backround task so there are no blockers.
 
What I meant was limit the data that you're keeping in memory for the view
But that's still a workaround. The correct thing to do here is request the data that you need. Sorting shouldn't be hard on the server side.
 
That's pretty clever
 
2:15 AM
Thanks @monners and @Rick for your time and support :)
 
No sweat. Good luck
 
@monners meteor does this it's garbage and doesn't scale at all
they use a localstorage based minimongo and it eats up ram
 
but really though nyquil is delicious
 
hahah that is actualsly pretty funny
 
when im sick I like to mix nyquil, a crushed up melatonin tablet, and ginger ale
 
2:25 AM
I actually have to take something to sleep now
melatonin is a placebo
 
Then it's a really effective placebo
You probably just produce enough melatonin on your own
a lot of people dont
 
Can confirm, I sleep like shit
 
your body builds up a tolerance to melatonin very quickly that is what happened to me
so not exactly a placebo but effectively becomes one quite quickly
 
@Meredith isn't that gonna kill the person ?
 
you can't take it ever night like I was dioing
 
2:28 AM
Nyquil?
Nyquil is pretty safe
 
Overdosing on it
You can even overdose on water
 
no you can't
source?
 
But yeah it has acetaminophen
 
Nyquil puts me to sleep, then I wake up 12 hours later feeling like I haven't slept at all
 
took a while to reply cuz i was looking up how to spell acetaminophen
 
2:29 AM
@William did you not take basic biology ?
 
So you dont want to drink a lot of it
 
@ShrekOverflow I was at a sh***y school when I took it
 
that explains :P
 
I literally got a 100 in teh class
 
It's basically going to dilute everything in your body to the point where your body just can't recover back
 
2:30 AM
Science, bitch!
 
syence bitch!
syfy channel was my education mostly
 
basically human body has very little error handling
 
The human body actually has pretty decent error handling on a cellular level.
 
but no sandboxing ?
 
^
 
2:32 AM
Yeah we really need the sandbox update.
 
we need a kernel update
 
v.reddit links piss me off
 
I would also like a new UX. People are not a fan of my current UX.
 
@hilli_micha so sorta like windows?
@hilli_micha I'd take modularity
 
oh boy
sapper raid
i killed 7, they landed one shot
 
2:34 AM
Kinda like Windows, if it was miles uglier and only communicates in sarcasm meant to deflect.
 
Isn't that exactly windows? Just like windows it also supports most legacy software and is great for gaming, watching movies etc etc.
 
I don't support legacy software. If it's not the newest iPhone, I'm not in it.
You feel me?
 
and to fix anything you have to bypass
@hilli_micha You seem to be running on iOS :/
 
I don't know where the fuck this joke is going anymore.
 
I am trying to see if joke overdose can cause dire consequences, although am pretty sure they can.
 
2:37 AM
Thats not funny, my brother died that way, he was a clown.
He OD'd on knock knock jokes.
 
and got tis guy ?
 
two dead dogs though :/
 
Michael Myers was infinitely scarier imo.
 
Definitely
 
2:40 AM
lol the dog gave birth to two puppies as she was being carried unconscious to the hospital
 
I want micheal meyers
in an unsuspecting RPG
 
@Meredith Not gonna lie, that was horrifying.
 
Is there a better way to validate a JSON object other than a whole lot of ifs and regex
 
2:48 AM
a library that does it for you
 
what are you validating? that's it actually JSON, or that it has certain keys?
 
Do I try to recruit my 99% difficulty prisoner?
 
No way, once a commie, always a commie.
 
I have a configuration object that gets passed to my program when its invoked
I want to make sure certain things are included, and follow certain regex patterns
 
@Meredith delicious?
 
2:57 AM
I dunno how but RimWorld makes it such a joy to chop up the hooker for organs
 
you know why shes wearing such huge gloves?
 
@KendallFrey how do you know you wouldn't enjoy it out of rimworld?
 
I don't
 
hello
 
@hippolas_cage 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.
 
3:00 AM
i have this problem: stackoverflow.com/questions/48738128/… can anyone help?
 
@KendallFrey yes
 
why
i'm about to harvest his organs
 
because 2nd chances
 
this is rimworld, not real life
i didn't even give him a first chance
 
@hippolas_cage your question isn't clear to me. Thank you for properly formatting everything though.
 
3:08 AM
@KendallFrey you should it'll be fun 😛
 
Let him rim your world
 
bah dum tssh
 
not as fun as harvesting organs
muahahaha
 
@ndugger o/
@KendallFrey thats actually lame.
 
@William I just want to trigger the script for one "gallery-item".
If i hover a thumbnail in the first Item the Image in the second Items also gets triggered
and i just want that one item gets triggered
 
3:11 AM
hes dead jim
TIL if you recruit a resting prisoner they fall out of bed
 
I had an awful rimword issue the other day
I was playing a completely peaceful colony, in the sense that I would not capture anyone or kill anyone that was not explicitly attacking me
as well as healing and releasing survivors of attacks
however I had a survivor that got shot through the spine, so I couldn't release her as she couldn't move, and I couldnt kill her as it went against the rules I set for myself
 
Oh fantastic, a trade ship named "Sunlight Lubricants"
 
Its the sort of lube that really brightens your day
 
3:59 AM
a bit late, but hey: morn
 
function promisify<T>(fn: any) {
    return (...args: any[]) => new Promise<T>((resolve, reject) => {
        fn(...args, (err: Error | null, response: any) => {
            if (err) {
                return reject(err);
            }
            resolve(response);
        });
    });
}

export default function cordovify<T>(fn: any) {
    const nodeStyle = (...args: any[]) => {
        const callback = args.pop();
        fn(
            ...args,
            (success: any) => {
                callback(null, success);
Does that look sane at all? ^
and by sane I also mean will it even work 😃 ?
The idea is to take a cordova style function
and convert it to return a promise
 
4:45 AM
Just a sanity check question: If we load our app.js javascript without async/defer, but load our polyfill.io code with both async and defer, the polyfill will run after our code right?
 
5:11 AM
@KendallFrey
 
@david I am afraid that might go beyond my power but yes
most likely unless its cached (or maybe not?)
why make race conditions?
 
5:53 AM
@ShrekOverflow it wasn't me, it was someone from 11 months ago ><
i only just noticed it today
 
and it seemed so stupid that i felt like i was missing something
but i don't think i am
 
Nope you are not
 
they added another script tag, and added async defer to all the existing script tags
 
6:30 AM
rip angularjs
 
7:21 AM
Mornings
 
\o afternoon
 
Oi o/
 
hello anyone familiar with angularjs?
I would like to ask about this one

https://stackoverflow.com/questions/48740818/ui-grid-filter-single-column-with-multiple-field
 
7:39 AM
This question obviously needs a few more identical answers
2
Q: Backward slash in String JavaScript doesn't count in length, why so?

ChosenmanBackward slash in String JavaScript doesn't count in length, and disapears together with number when it is ptinted. I tried to google it, not quite sure what to call it. What is going on in this code? var b = "world\0"; alert(b.length) // 6 console.log( "world\0" ); ...

or maybe a few downvotes as unclear
 
@DenysSéguret I think it's clear. It may not be well-written or unique, but I think I understand the question
 
The title's question ?
 
OP doesn't understand the difference between a string and a printed string
that's the sort of question title you'd see from someone who doesn't understand the difference
 

« first day (2676 days earlier)      last day (2273 days later) »