« first day (1626 days earlier)      last day (3337 days later) » 

9:00 PM
@ssube So you don't like the razer switches?
 
@Retsam ever heard/seen hodor's dj sets?
 
!!afk holm thyme
 
@rlemon With KO, it's best practice to put any significant logic in the ViewModel, and have views basically just expose VM properties.
 
@ssube Hodor
 
@monners I do not. I need something like and tactile, so blues are actually my favorites.
 
9:01 PM
I put it in my view model
but architect is kind of an a hole
 
have a keyboard with black switches, absolutely loathe them.
 
he said dude do everything in the view
 
Huh. Whenever I do anything in the view, I can usually count on a PR comment on it.
 
@ssube Fair enough, I use a Das with browns at work and I love it, the razers kinda feel like slightly clickier versions of the browns, which I'm totally fine with. They also feel like they've been shimmed, so quieter. Still getting used to that
 
I have yet to get a board with brown switches. Need to do that after payday, I guess.
 
9:02 PM
Nah, if you like blues then stick with em
I loved the feel, but the sound was just too much for working at night
 
I need a new work keyboard anyway. Hate how widely spaced the blackwidow keys are.
I have another board with blues at home, possibly a steelseries, that is much better.
Picked up a noppoo (sp?) choc mini to try that, but it had the black switches, which ruined it...
 
Steel series eh? Maybe check out the Das
 
10-less compact board with blues would be brilliant
 
9:05 PM
wow... there exists something such as "christian rock"???
 
@towc Yeah, it's Satan's music
Jokes!
Jeez
 
I wonder when are we going to get Buddhist Rock
 
@towc it's a bunch of usually rather attractive young people singing about saving room for jesus, while making it clear they have little interest in doing so
 
 noteData.Date = `${yyyy}-${mm}-${dd}T00:00:00Z`;
seeing stuff like that makes me happy
a dev who before this project never worked with ES6 at all is getting comfortable
 
I like my switches like I like my coffee
 
9:07 PM
@Loktar means you work with a good team :)
 
@ssube I've been listening to Thousand Foot Krutch, and apparently they've been classified as a christian rock band
 
coworker helped me :D
 
@FlorianMargaine yeah this is new to me lol something that never happened when I worked in the government
 
I mean, at least they don't talk about drugs and such, but I surely wouldn't define their songs "christians"
 
9:08 PM
@ssube that reminds me of my keyboard
 
@Loktar hehehe
 
@towc Not everything "Christian" is about mentioning Jesus or God every other word.
 
although mine is faaaancy lol
 
fair enough
 
9:09 PM
mx reds
 
since a couple of weeks, I've started working in a new team
 
@towc oh, they totally are. I've heard of them before. They're more on the Flyleaf side where you can forget about it briefly, but they're still really bad.
 
and man... it's really great. I'm the worst guy in the team. It's awesome.
 
@FlorianMargaine hah that is awesome
 
I actually think they're pretty good, at least for teens
 
9:10 PM
yeah
and the project is pretty good
 
How can i access the members of this row in my html
<!-- ko foreach: [parseFloat($root.rootData.Page()) -parseFloat(3), $root.rootData.Page()-parseFloat(2) , $root.rootData.Page() - parseFloat(1) , $root.rootData.Page(),$root.rootData.Page()+ parseFloat(1) , $root.rootData.Page()+parseFloat(2) , $root.rootData.Page()+ parseFloat(3) ] -->
 
I even had to use strace to debug something at work... it felt pretty good
 
@Obvious $data
 
@Obvious why on earth (or in space) do you need so many parseFloat calls?
 
okay should i remove them
If i do not
it appends the string
 
9:12 PM
well, parseFloat(3) certainly won't do much for you
 
also, does krutch mean anything at all?
 
@towc probably a kewl misspelling
 
@Loktar What is that?
 
Corsair k65 rgb
 
@Obvious It seems odd that you're storing your Page() data as a string, not an integer, but parseInt($root.rootData.Page())+3 is a lot more sane than parseFloat($root.rootData.Page()) + parseFloat(3)
 
9:14 PM
the wiki and the first page of google can't give an official explanation :/
 
> McNevan came up with TFK's name "symbolizing the point in our lives that we realize we can't make it on our own strength".
Paragraph #2 of wiki
 
@Loktar Just picked up the Razer Chroma myself
All those colors!
 
I just made a word search for "krutch" on the wiki...
 
Was about to quote the same thing as SK. But, yes, I'm sure "Krutch" vs "Crutch" is just an arbitrary spelling.
 
I had a Razer Chroma, didn't like it though :/
it picked up oil way too easily
the corsair is brushed aluminum
also the Razer keyboards don't use industry standard switches anymore which is kind of weird :/
 
9:16 PM
Yeah, but they feel pretty good
 
yeah my main issue was I kept missing keys
like.. my hands just couldnt get used to it idk
 
We'll see how this one goes
 
one more image spam
the raised encased keys make it so easy to clean
 
Gotta love having a job. New hardware isn't a I can't wait for Christmas ordeal any more :D
 
just blast it with air real quick
@monners haha ikr!
 
9:19 PM
Ah, Corsair. Nice.
 
yeah the new "gaming" logo is ugly though imo
thats my only issue with the kayboard lol
 
That's so cool!
 
Is it possible to access the to-be-returned array by map from the callback passed to map in it's unfinished state?
 
@AwalGarg you want reduce
 
@AwalGarg example use case?
 
9:21 PM
@ssube Yes, but I was thinking of doing it with map (because it actually a mapping of the array only...)
 
Eugh. Does anybody really ever want reduce?
 
@Retsam man, reduce feels so good to use.
 
@AwalGarg map keeps the intermediate state hidden, probably so it can do weird optimizations
 
@AwalGarg that said, you can use for.
 
I dunno; I'm pretty comfortable with reduce, I get what it's doing, and I use it when it makes sense... but I never really like it. It just never seems terribly readable.
 
9:22 PM
@FlorianMargaine I have this large array, which has objects of the form {key1: value1, key2: value2, ...}, and I want to map them to this small array where value1 is not repeating, and all value2s are merged into one array.
@FlorianMargaine :P
@ssube :(
 
Sounds like there might be a nice lodash solution to that problem
 
@AwalGarg you're not making sense
 
@AwalGarg "map them to this small array" sounds an awful lot like "reduce"
 
@ssube well... I am already using reduce. I was just thinking if I can use map. Because I somehow feel reduce should return one single primitive type value. While I am returning an array. no?
 
@AwalGarg surely just a filter?
 
9:25 PM
@FlorianMargaine ?
 
with a check against a list of value1 s?
sorry @ssube
 
Can we get some sample input and output?
 
@phenomnomnominal not sure if optimal solution here, but:
@Retsam yes, below:
 
Guyssssssssssss
 
[
    {
        class: 'foo', value: 'bar1'
    },
    { class: 'foo', value: 'bar2' },
    { class: 'baz', value: 'dum dum' }
}
should output:
 
9:28 PM
why am i getting parseInt($root.rootData.Page()+ 1) 61? instead of 7?
 
[ {class: foo, value: ['bar1', 'bar2']} , { class: baz, value: ['dum dum']} ]
 
@Obvious $root.rootData.Page() returns a string
 
how to get int?
 
oh god typing in chat is so difficult :(
 
@Obvious now you know what to google.
 
9:29 PM
I assume that should be {class: "foo", value: ["bar1", "bar2"]}, right?
 
yeah
 
It's fairly nice in lodash:
_(data).groupBy("class")
    .map(function(data, cls) {
        return {class: cls, value: data}
    })
.value()
 
nice
 
Oops, that's not quite right. The data is going to be whole objects with class and value not just the values.
_(data).groupBy("class")
    .map(function(data, cls) {
        return {class: cls, value: _.pluck(data, "value")}
    })
.value()
 
m59
Can you send the live stream from getUserMedia to a server?
 
9:44 PM
@Retsam looks nice. here is my present reduce solution though, which I find kinda ugly:
data.reduce(function (prev, curr) {
	if (prev.keys.indexOf(curr.class) === -1) {
		prev.keys.push(curr.class);
		prev.arr.push({class: curr.class, values: [curr.value]});
	} else {
		prev.arr[prev.keys.indexOf(curr.class)].values.push(curr.value);
	}
	return prev;
}, {arr: [], keys: []}).arr;
 
Does your resulting object really need to be an array? Could it be an object with "class" keys and "values" as the values?
It seems like your intended data structure makes more sense as an object, than an array
 
The final data needs to be in that form since the API where this data goes requires it in that form, but I guess converting your object structure to my array structure would just be some two lines of Object.keys play?
 
Yeah. That's what I was just writing.
 
@m59 yep
 
var grouped = data.reduce(function (grouped, curr) {
	if(curr.class in grouped) {
		grouped[curr.class].push(curr.value);
	} else {
		grouped[curr.class] = [curr.value];
	}
	return grouped
}, {})

Object.keys(grouped).map(function(cls) {
	return {
		class: cls,
		value: grouped[cls]
	}
})
 
m59
9:50 PM
I found some stuff, but haven't worked out what's really going on underneath it all.
 
@AwalGarg ^ That's probably how I'd do it without lodash.
 
why is this the case?
Finding the minimal number of modifications between two arbitrary trees is a O(n^3) problem.
o^3
 
@Retsam sweet.
also @phenomnomnominal I am curious how you would do it with filter... some quick pseudo code?
 
Guysssssssss
 
9:53 PM
@AwalGarg nah, i misunderstood what you wanted
 
should it hide the div when true right?
<div data-bind="visible: parseFloat($root.rootData.Page())>0" id="paggingDiv" class="paging one-half">
but no
 
ah, cool
 
it is not
 
<div data-bind="visible: parseInt($root.rootData.Page())>0" id="paggingDiv" class="paging one-half">
 
9:54 PM
@FlorianMargaine ^ please no, pretty please.
 
is my condition right?
 
oh wait thats not angular
 
it is knockout
 
@Obvious The visible bindinghandler hides when false, not true.
 
okay i want to show pagging, when page count is greater then 1
<div data-bind="visible: parseInt($root.rootData.Page())>1" id="paggingDiv" class="paging one-half">
 
9:57 PM
You really should change .Page() to return a number, not a string. (Also it should really be .page())
 
@Loktar That's a really smart idea. Is it mechanical as well?
 
It is number in my model
do not know whhy it is comming as string
 
I don't either, but you should probably fix that, not put parseInt everywhere.
 
yeah
any idea whats wrong with my conditon?
<div data-bind="visible: parseInt($root.rootData.Page())>1" id="paggingDiv" class="paging one-half">
 
No, the condition is fine
At least, from a syntax perspective.
 
10:02 PM
@FlorianMargaine I recommend instead to let the bot automatically increment someone's karma when someone thanks them (various ways to detect this, but ofcourse as error prone as the present idea, if not less), and only the karmashow command be exposed.
 
(Why not comment on the issue rather than posting in chat?)
 
Woo! Monster commit today fellas
 
good point
done
 
411 lines of code on this push lol most i've ever written in a day (excluding copy pasta code)
 
meh...
honestly I've used this kind of system on irc or on other chat systems, and I never had any issue
 
10:05 PM
yeah, just put my 2 cents in :)
I didn't know github comments work like that :o
 
@SterlingArcher
 
WHATS THAT SUPPOSED TO MEAN
 
ITS A FUNNY JOKE MEME I THOUGHT YOU WOULD ENJOY
 
wait, so for every comment we make, an email would be sent to all the people in that thread? :O
 
Yeah. Unless they've unwatched it.
 
10:13 PM
I tried to google Canada burn (like, kelso style burns against canada) and saw several offensive terrorist images and now I feel bad
 
gif from Retsam was moved
 
Obligatory reparations
 
> Three expectant fathers, an American, a Jamaican, and a Canadian, were in the hospital waiting room. A doctor comes in and announces that he has some good news and some bad news, "The good news is that you each are the father of a healthy baby boy. The bad news is that we've mixed them up." The three new fathers walk into the nursery. The American guy goes right to the Jamaican baby, picks him up and starts rocking him. "What are you doing?" the Jamaican guy asks, "That is obviously my son."
 
gotta go, cya
 
@rlemon I enjoyed it
@SterlingArcher fap fap fap
 
10:15 PM
@KendallFrey schlick schlick schlick
 
YEAH I WENT THERE
i have a feeling somebody lurking may be a flaggit on those ones
 
user4330208
machine code is the new black.
 
!!s/machine code/orange/
 
@rlemon orange is the new black. (source)
 
10:19 PM
@CapricaSix yes that is a pretty decent show.
 
user4330208
orange is the new black is like HBO's OZ only with women.
 
@SomeKittens oh my god
 
@SterlingArcher @SomeKittens video is WAY better
make sure you have sound
 
Didn't bring my headphones today :(
 
10:22 PM
half of the mistakes you can hear him.. "fuck!" "ohh what the fuck"
 
ill watch it when i get home lol
!!afk home time
 
10:35 PM
Hi guys, quick question : I have some svg elements (let's say 5) and I'd like to have them float around and bounce into each other. I don't know anything about canvas (yet) and I'd love to know the easiest way to achieve this effect (pic related : the elements and canvas i.imgur.com/Tzi5k6t.png)
 
@PrettyGoodPancake Well you'll have to decide between SVG and canvas, because canvas doesn't actually display any DOM elements
 
@KendallFrey that's how little I know about canvas you see
 
...is silicon valley even real?
 
how can Silicon Valley be real when our eyes are not real?
 
10:39 PM
Someone give me a KSP challenge
 
@KendallFrey Fly to Minimus and back (incl. landing) in 2 hours of in-game time.
 
I've seen enough of that recently :/
doesn't really appeal to me
 
Only three parts?
 
I don't like making rockets bigger than they need to be
@SomeKittens seen it, not much room for creativity
 
strap two ships together. front to front.
use one to fly to mun, the other to fly home
do not release either.
 
10:41 PM
so... just a ship with 2 engines?
pointing in opposite directions?
 
is that easy?
I have no clue
 
@rlemon you mean no staging?
 
Mun & back with only solid rockets?
 
10:43 PM
@rlemon weirdest boner.
 
@SomeKittens does RCS count?
 
@KendallFrey RCS is not a solid rocket
 
durn
I'm not gonna try landing on SRBs unless I can figure out some way to turn it off
@SomeKittens I got space station in Kerbol orbit, which is something I kinda want to do, but I am bad at designing a station
 
@KendallFrey 2 stages
 
IIRC, Scott Manley had a bazillion sepatrons
 
10:47 PM
@SomeKittens yeah, too time-consuming
@rlemon but no dropping tanks?
 
nope
 
does it have to have the same fuel loads both sides?
 
nope
 
because returning would be like 1/10 the fuel
also, how do I take off again?
if my engines are pointing down, that will be hard
 
first stage is the one engines, second stage is the other
you have to land upside down and take off again
 
10:49 PM
right
how do I "land upside down"?
Or maybe I should ask, when do I switch stages?
on the surface of Mun?
 
:shrugs:
you asked for a challenge ;)
 
well, SSTO is enough of a challenge
can I refuel in orbit?
 
sure, why not
 
hmmmmmm
I'll start fucking around, see what happens
 
sounds good
 
10:53 PM
actually, refuelling makes it vastly easier
 
then don't refuel?
 
vastly easier than impossible is still pretty hard
can i stage off both sides before reentry?
 
sure
 
good, I hate killing Kerbals
 
El Oh El.
PROFESSIONAL GAMING KEYBOARD!
This is a ridiculously stupid keyboard omg
not even mechanical
 
10:59 PM
did no one get excited about this? gist.github.com/rlemon/3b370467864778f04845
:(
 

« first day (1626 days earlier)      last day (3337 days later) »