« first day (2288 days earlier)      last day (2665 days later) » 

4:00 PM
@BenFortune Congrats and good to know that your real name is also Ben :D
 
Hello, guys.
 
nice @BenFortune do it
 
@Loktar maybe RT .. but mainly because they really dont like idea of new cold war ... or even a hot one
 
@tereško yea
I work with a former Russian he was worried about that as well
 
@BenFortune Nice, Ben.
 
4:00 PM
@Loktar It's in the next country over, not sure if I want to move that far
 
ah lame
 
boo
 
Not a big LoL fan either haha, I'll express my gratitude though, I'm not an asshole. Especially since the email was kinda personal and not your generic recruiter email
 
@Loktar since USA got pushed out of Syria, they have started looking for ways the threaten and/or punish Russia ... but that's just my uneducated assessment.
 
@tereško aye. But things are going to change regarding Russia.
 
4:03 PM
BANG
 
hope so
 
uuuuuuh biden
so adorable
 
@towc you're too old for him
 
but I love him
don't tell me how to live my life
and look at the littlest trump <3
I just want to punch him
 
our future dictator
 
4:07 PM
@KendallFrey It's working :) thank you for the help
 
@towc That's Eric for me. That face :S
 
well, him too
 
@towc does it make you mad to know he will always be more popular and succesful than you just for being born?
 
very
well, he'll be laughed at much more than me
 
yeah people know him
 
4:09 PM
I feel bad for the guy
 
what's up with the kid actually?
it's not like he's jealous
 
I need to sort an array in DESC order by sub arrays length
[ [ 'match' ], [ 'arrangia', 'appuntamento' ] ]
 
"mdn array sort"
 
what have you tried?
 
just sort()
but I'm not sure if it makes the desired effect
 
4:12 PM
so, you simply called yourarray.sort() expecting it to sort based on sub array length, in DESC order
 
I expected longest arrays up
in DESC order
 
that's... not what that method does with no args, it's in docs
 
oh, I see, the kid wanted to play videogames, but had to attend...
 
yeah I imagine it would be boring af
 
how old is he/she?
 
4:16 PM
is making a protein shake with yams retarded and disgusting?
time to find out
 
lol
 
wtf? The american flag can have the stars in different dispositions?
 
if it isn't accurate, sure
 
sort() does the opposite effect (ASC) :/ jsfiddle.net/2ukq84x3
 
well, yeah, that's what it's supposed to do.
 
4:18 PM
how can I invert it?
 
just call .reverse() after
 
@towc no
 
array.sort().reverse()
it works thank you guys
 
look what happens when you have arrays with 10 or more items
 
Hi,


I just want to inform you that we are interested in your profile picture on Github for the Sony bill board advert,Send an email with a copy of your current picture too  for more details about the bill board advert.

Thanks For your co operation.


Cheers.

Will Colton.

Pearl Model Management
 
4:21 PM
wat
 
Received that on github..Am I really that good looking? ^
 
what's your github
also, don't do it
 
Github profile
 
What if its my only chance at being a top model??
 
4:22 PM
what if they put you in a VD add
 
i have problem in angular material template
 
@towc lol are you talking about previous flags?
 
Hmm what if..then I would be super famous!
 
i have change menu but it's cant effect in browser
 
now I have another problem
var obj = {
	brown: ['a'],
	blue: ['a','b'],
  	red: ['a'],
	lime: ['a','b', 'c'],
	orange: ['a','b'],
}
 
4:24 PM
Or maybe I should reply GTFO
 
if i'm delete any menu but not show effect in broser
 
how to apply it to this
 
"js sort object"
 
please help me
 
@neoDev google how to loop over an objects keys, then once you can loop over the keys you can call obj[key].sort(fn)
 
4:25 PM
@KevinB can you help me to understand it logically?
 
@neoDev objects cannot be sorted.
 
it is a sort of scores
I'll need to pick up the winner and show others DESC
I am very confused
 
use an array
301
Q: Sorting JavaScript Object by property value

SteerpikeIf I have a JavaScript object such as: var list = { "you": 100, "me": 75, "foo": 116, "bar": 15 }; Is there a way to sort the properties based on value? So that I end up with list = { "bar": 15, "me": 75, "you": 100, "foo": 116 }; I'm having a real brai...

 
is he trying to sort the values in the objects properties, or is he trying to sort the object keys?
 
sort DESC by sub-arrays length
 
4:27 PM
you can't
read what Kevin said then
 
yes
I'm reading it
 
I have to handle a rogue developer and idk how to do it
 
cut off access, wait a day, ask if they're working
 
@SterlingArcher "rogue" ?? as in ?
 
As in adding tickets to the backlog that are ungroomed, and bringing them into the sprint without my or the product owners consent, ignoring the priority list laid down by the customer
 
4:31 PM
ouch
 
give them a shitty job until they learn a chain of command
or just straight up tell them that if they value their job they'll stop fucking around
 
anyone have idea about anguler material template
?
 
@rlemon bs no one actually does stuff like that in real life
 
i used it once in the distant past, but no
 
@rlemon that's about what I need to do. It's so frustrating
 
4:32 PM
@Mosho I have in retail. but I was managing a bunch of kids
 
retail :|
@SterlingArcher you need to sit with him and explain it calmly
if he doesn't improve after that you should talk to your superior as I assume you're not an executive and can't actually threaten to fire someone
not that you should either way
 
user1596138
@SterlingArcher you don't play games, right? U got classy shit to do
 
Fun fact: Donald Trump is the 44th person to be President Of The United States
 
@KevinB it doesn't work jsfiddle.net/2ukq84x3/1
 
return a[1] - b[1] doesn't do what you want it to do
 
4:35 PM
I emailed my project manager asking for guidance
 
you wanted to sort by sub array length didn't you?
 
@Jhawins define "classy" lol
 
ok so
return a[1].length - b[1].length
?
 
a[1] references the first item in the sub array, you want the sub array's length
wait, no..
a[1] IS the subarray
then it should work just as well as the old one you had did (well until you have sub arrays with more than 10 item)
 
user1596138
@SterlingArcher Not playing Forza with me
 
4:37 PM
more than 10, why?
 
because "2" > "10"
 
user1596138
@KevinB They are not strings.
 
I'm lost...
it's complicated
I cannot figure it out
 
user1596138
!!> ([]).length instanceof Number
 
@Jhawins false
 
user1596138
4:38 PM
Oh are they?
 
user1596138
lmao stupid jhawins... instanceof lol
 
so here what do I have to change exactly?
var obj = {
	brown: ['a'],
	blue: ['a','b'],
	red: ['a'],
	lime: ['a','b', 'c'],
	orange: ['a','b'],
}

var sortable = [];
for(var key in obj){
	sortable.push([key, obj[key]])
}
sortable.sort(function(a, b){
	return a[1] - b[1]
})

console.log(sortable)
 
user1596138
!!> typeof ([]).length
 
@Jhawins "number"
 
"god god god"
 
4:40 PM
Imagine the fuss if someone read from the Qur'an
 
Both equally wrong, form my view.
 
['a'] - ['a','b'] -> NaN
 
please anyone have idea about angular material template ?
i have issue in menu
 
this "sky wizard" junk is embarassing.
> "I'd like to thank Santa Claus"
 
@KevinB please can you show me how to do it
 
4:42 PM
@Jhawins oh lol yeah I don't play much video games
 
!!welcome km8295
 
@km8295 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.
 
user1596138
@SterlingArcher lol fine
 
I am trying to change it in any way without luck
 
user1596138
@neoDev Put a console log in your return, console.log(a[1], b[1]). Look at what you are trying to subtract.
 
user1596138
4:47 PM
!!> [1, 2, 3] - [1,2]; // nonsense
 
@Jhawins "NaN"
 
yes but I am not figuring out what return does
and what to put on that line
 
"mdn array sort"
 
user1596138
It returns NaN every time. We help people learn to code here, we do not code for people.
 
i.imgur.com/8YjcliJ.gifv > omg don't cry don't cry don't tell mom, you're fine. don't cry.. fuck I'm in shit
 
4:49 PM
I unhid the youtube chat for 2 seconds. I'm starting chemo next week.
 
     function Restore()
        {
            canvas = document.getElementById('can');
            ctx = canvas.getContext("2d");
            w = canvas.width;
            h = canvas.height;
            const img = new Image();
            img.src = "images/my-file-name (2).png";
            ctx.drawImage(img, 0, 0);
        }
How can I load that image before drawing?
 
@rlemon The terror is real when you're trying to comfort them.
 
@Mr.Toxy you already know
onload
 
oh right hahaha
lmao
 
i think that live chat is taking all my bandwidth
 
4:53 PM
figured out
sortable.sort(function(a, b){
	return a[1].length - b[1].length
}).reverse()
 
@Luggage I'm watching it through CNN, no issues.
 
you could probably eliminate the .reverse()
 
i need DESC
 
so reverse the comparison
 
user1596138
Nice
 
4:54 PM
@Loktar I hope you're watching this, you filthy Jesus looking wannabe.
 
user1596138
It's the same thing as long as you don't have tie breaker conditions...
 
let's see if trump can get through his oath without a rant about Rosie O'Donnell.
 
or winning by a "landslide"
 
user1596138
Let's see if the room can get through it without throwing shit at each other haha
 
I'm shitting at you. At him. :)
 
4:55 PM
 
This should be interesting.
 
talking shit about our president is a US pass-time.
bush is a moron, obama is a muslim, etc.
 
user1596138
Lol oh man I saw a good one this morning about Bama
 
Ignore politics, enjoy dank memes
 
user1596138
Well more about general incompetence of the public
 
user1596138
4:57 PM
> With midnight regulation, Obama Energy Department just outlawed your three-way bulb
 
@SterlingArcher I don't get it.
 
user1596138
Lol the comments on FB are rich. People think Obama banned the concept of the 3 way light bulb
 
There's memes going around making fun of Obi-Wan when he says "It's over Anikan, I have the high ground"
So the new meme trend is "high ground" memes
 
Is it just me, or does trump look like he REALLY doesn't want to be there?
 
4:58 PM
Would you? I'd be bored.
 
user1596138
@Trasiva Today is the day for assassination fears, isn't it?
 
@SterlingArcher I like the memes where anikan says "no one can kill a jedi" then kills all the jedi
 
user1596138
I'd be venervous on a hundred different fronts.
 
@Jhawins Considering the security and their location? Not even remotely.
 
I think it'd be hard to assassinate here.
 
4:59 PM
s/hard/borderline impossible/
 
gosh everyone's so unimpressed
BANG
 
user1596138
@Trasiva Outside?
 
user1596138
He is outside.
 
A .50 from a rooftop half-way across town, maybe.
 
user1596138
^ lol. It can be done!
 

« first day (2288 days earlier)      last day (2665 days later) »