« first day (1784 days earlier)      last day (3165 days later) » 

4:00 PM
@Callum the only extension I know of comes with possible jail time or loss of place of residence :(
 
wat. You have to buy a dvd player for windows 10?
rofl
 
@Cereal Wat?
 
just download VLC
 
I just wish there was an extension that disabled the full-screen SIGN UP FOR OUR NEWSLETTER before I've even started reading
 
@Cereal I hope that is only for the embedded media player
 
4:00 PM
windows 8 was the same way, they didnt provide one by default.
 
third party ones should still work right?
 
Media player's gone. You have to buy "dvd player" in the windows app store
 
@rlemon yea
 
yea
 
I imagine so
 
4:00 PM
just get VLC then
 
@Loktar Technically, watching DVDs on VLC is illegal
 
I just saw it in the store and looked it up
 
it is better anyways
 
@Loktar to be fair, the last time they did, it was mostly broken
 
@SomeKittens is it really?
I didn't know that, why is that?
 
4:01 PM
@Loktar VLC ignores codec patents
 
It's illegal to break the encryption on a DVD (DCMA) but the encryption is so terrible VLC can just brute force it.
 
and nobody in the world cares
 
ahh crazy
hah never realized I guess
 
so it's legal to own a DVD but you can't use the data on it without decrypting it (illegal without permissions, blah blah)
 
I just needed something to watch DVD's on Windows and it was the best choice lol
 
I love VLC
 
!!urban DMCA
 
@Callum [DMCA](http://dmca.urbanup.com/172435) The Digital Millennium Copyright Act; The law that Corporate America uses to stifle innovation and competition; the result of the RIAA's and MPAA's lobbying powers; the end of Fair Use laws.

Way to go, Clinton. Please to be dying kthnx.
 
s/is illegal/can be illegal/
 
@SomeKittens lol yeah I love those clause
 
4:02 PM
 
Window Media Player is dreadful
 
Windows, what are you even doing
 
> No matter how you look at it, it's not possible to watch a CSS restricted DVD using only free software without committing some sort of crime. OP is just being unnecessarily pedantic, but it's worth having this discussion.
 
I only watch HTML restricted DVDs
 
haha
 
4:02 PM
> So, is it legal for Ubuntu to distribute libdvdcss2 in the US? No. Is it legal to watch DVDs on Ubuntu using libdvdcss2 in the US? Yes.
dude in the reddit post cites the correct documents
 
> DMCA 1201(a)(1)(A)?
"No person shall circumvent a technological measure that effectively controls access to a work protected under this title. The prohibition contained in the preceding sentence shall take effect at the end of the 2-year period beginning on the date of the enactment of this chapter."
 
it isn't illegal for the end user
 
@Nick The CSS restricted DVDs don't work on mobile.
 
VLC is technically circumventing the DRM
 
no the dll it uses does
the distributor is in the wrong, not you
 
4:03 PM
@rlemon I heard something similar about torrents; Not illegal to download, only illegal to upload/share
well, the illegal kind of torrents, that is
 
@rlemon What do you care, you're Canadian!
 
I saw someone using x >>> 0 to make sure x is within -2147483648 and 2147483647. Are there other (better?) approaches to it?
 
in the land a sensible government and healthcare
 
@SomeKittens don't wanna see my boys get locked up yo
 
@Charly x | 0
 
4:04 PM
@rlemon Ill run to the border bro!
 
okay then
 
> SAAVE MEE!
> AND PROVIDE CIDER!
 
@Charly any bitwise operation is restricted to 32-bit values
 
@ssube thanks
 
@Loktar I really need to start a new batch
mead/wine is coming along nice
gonna end up with ~50 bottles of it
 
4:06 PM
nice
man I cant wait until we friggin move
 
(I hope it is good :P otherwise I have a buttload of crap)
 
still no offers on the house, stupid slow season :(
Cat said it should pick up a bit after labor day though
crosses fingers
 
yea
people wanna move before the snow
but after the kids are out of their hair
 
yeah, thing is most people moved in the spring before the summer :(
we just listed at a terrible time really
 
@Loktar like me :P
 
4:07 PM
but fortunately nothing is forcing us to move
so if need be we can wait until the spring, is just annoying
 
yes it is
 
@Loktar I made the mistake of moving near a university on 8/1
 
I wanna visit you over my winter holiday s
 
My cider is still bubbling along; very happy that it decided to work, but now I have like 6 extra packets of yeast sitting around, waiting until this current brew is done
 
@ssube hah!
 
4:08 PM
that was exciting. The property company had to get people into something like 70 properties that weekend.
 
@rlemon that would be badass man
 
@Nick PUT THEM IN THE FRIDGE
 
Their cleaning crew got to our place at 2am
 
fridge? ok
 
damn
 
4:08 PM
yeast lasts longer cold.
 
alright
 
@Nick it makes it go to sleep
 
you can keep them in the fridge for a year
 
@SomeKittens huh? What's supposed to do the decryption?
 
you know how you take a nap when someone leaves you in the fridge for more than a few minutes?
same thing with bugs
 
4:09 PM
@ssube you are not wrong
think worms
 
ew, I don't wanna think worms
putting worms in my cider? fuck that
 
works for tequila
why not for cider?
 
@Zirak a licensed product that the Media Overlords have approved
 
ew
 
@Nick if you put your beer-worms in the fridge, they get into the tequila and end up falling asleep
 
4:10 PM
Which is why a DVD player for Windoze costs $10
 
meh
 
"We spent $$$ in lobbying so we can charge you $ for no reason other than to avoid breaking the law we wrote"
 
who own's DVD's anymore anyways
stream errything
 
@rlemon Old people. And hipsters
 
4:11 PM
I own 6 DVDs, not counting xbox games
 
I own quite a few
in a box in the garage somewhere
likely to never be used again
 
> Yeah, jQuery is dead not because frameworks make you write better code - we know they don’t - but because your framework does DOM manipulation better than you ever could.
@Callum good explanation
but I hate how he uses framework and lists react in the beginning lol
minor nitpick
 
Raugh Saunders seems to know what he is talking about some of the time
 
> Don't use jQuery, use Angular
 
@rlemon you said to add corn sugar along with other sugar so that my cider is both carbonated and sweet, but isn't corn sugar fermentable? Won't I get too many bubbles and my bottles will explode?
 
4:13 PM
@rlemon angular is the new jquery!
 
@Nick which is why I said add very little
 
hmm, ok
 
like, a half tsp
 
like the author mentions, you can write such terrible stuff with Angular
case in point was a dev we had here who was an Angular expert..
 
half tsp per bottle?
 
4:13 PM
@Nick look on websites for sugar/volume calculations, every bottle volume will be different.
 
@Loktar slow and ugly?
 
but struggled a lot with pure JS :/
@ssube depending on who does it
I imagine @SomeKittens is one of the people "doing it right"
 
I dunno, man, it still looks and feels just like Spring and the rest of Java
 
angular is just a big bag of smelly
 
angular was an engineering circle jerk
 
4:14 PM
Isn't every js library?
 
Not Shady.js
 
@Cereal definitely not
 
I don't know angular, but today I saw a video on it and there is a Service called 'service' and a filter called 'filter'
so I'm pretty much an expert
 
@rlemon lol right
 
if you write it on your own, is it just a jerk?
 
4:15 PM
and that service is one of 3 services
 
ServiceServiceFactoryProviderFilter
 
(there are 3 services right?)
 
4
iirc
 
Steam just trolled me. I wanted to log in via desktop after a reboot, they showed my username in lowercase. Didn't think much of it. No password of mine worked. Went mad. Killed people. Had to tell my family. Heartwrenching.
Then I figured it out and typed my correct username. And there was much rejoicing.
 
> 1) Factory
2) Service
3) Provider
 
4:16 PM
Angular services are silly, Angular controllers aren't proper controllers... the only thing Angular does right is the Directives, but might as well just use React at that point
 
nope just 3, I remembered correctly.
 
@Loktar yup
 
!!tell Loktar googl𝖾 Canada in recession
 
good time to visit
your money is worth more
 
4:16 PM
you son of a bitch
 
Angular 1's greatest sin was not providing enough direction in how to use it
 
as much as I am annoyed by React's templates, next major app I write will probably use it
 
:)
 
it's the only big, reasonable UI library
 
It gave users a lot of freedom and everyone simultaneously shot themselves in the foot with it
 
4:17 PM
@rlemon I'll smash ye :p
 
@SomeKittens yeah for sure, it just made it so easy to do so
 
"Angular is terrible! Look at this big hole in my foot!"
 
backbone is a half-assed piece of shit, angular is a cushion for java wannabes, and ember is just a mess
 
@Nick right?
 
how do you guys still click links I invoke on fridays?
I contest you are doing it too yourself.
 
4:18 PM
because we're stupid
 
@rlemon that was a great set of links hahah
 
My next talk should be "Batarang: A tale of heroism, treachery, and blatant lies in subtitles"
 
now if only unicode was supported by all
 
zirak is #1 memer
 
4:19 PM
@ssube what I'd like to see is something like polymer combined with React
 
youdontsay.png
 
I want true web components with all the data flow of react
 
@Zirak your sources failed
y u no imgur?
 
@Loktar How much have you looked into A2?
 
4:20 PM
@Loktar that would be sweet
 
@Loktar I wrote a polyfill for html imports, html templates, and a partial-support one for shadow dom
 
@ssube just a bit, but it looks a lot like react + flux
 
is there a reason you can't use polymer under react?
 
which seems awesome
 
4:20 PM
or just shim in the useful web components stuff
 
@Loktar ew, why? Polymer is terrible
 
@ssube virtual dom vs shadow dom, ect.
I think it would end up being a nightmare
idk how they could really work together
 
every time I hit my own 404 page I smile
 
@ssube Polymer implements web components, which is part of the DOM. React does everything in its power to keep you away from the DOM.
 
@Zirak imo its the most sane way to polyfill web components
 
4:21 PM
It depends on how React creates the elements
 
down for everyone?
I hate when sites don't actually 500
 
@Nick nice ill have to check it out
 
> This website is under heavy load

We're sorry, too many people are accessing this website at the same time. We're working on this problem. Please try again later.
 
isup.me doesn't work
 
Yep
 
4:21 PM
there is another polyfill I was using
 
@Loktar The web component part is fine, the everything else part isn't
Their mindset....ew
"Let's write an XHR with web components"
 
@Loktar I'll let you know when it gets on github... the Shadow Dom polyfill is kinda shite, because there's only so much you can do in javascript, but it does at least follow the spec
There's still some work left to do on it, though
 
@Zirak yeah I think they just went a little crazy with "component all the things!"
I agree with you there
 
"Let's write animations in what's practically XML, because that sounds like a great idea"
 
@Zirak it seems like react should allow you to specify which component a particular component uses
 
4:23 PM
definitely could fall into a trap where you just have nasty ass markup due to nasty custom components.
@ssube no they are internal to react
react needs to know about them and control their rendering completely
otherwise they can't be a part of react
 
@ssube Of course you can, React.createElement('x-my-element')
 
react can't just let you register your polymer components?
actually, that would be kind of clever: a library that lets you register element types/backends, so you can switch between DOM and caching DOM and custom element handlers
the whole add/remove/replace thing is just a few events
 
@ssube That's also part of React
 
it would also let you do silly things like implement an ASCII backend
 
4:26 PM
taps textarea is this thing on?
 
@Zirak I mean for CLI apps
 
@ssube You can do that
It's been done
 
so you can provide a different backend and use React on everything
it's not practically useful, but amusing
 
It's...I...but...
 
@Zirak I dont think it would work due to this, facebook.github.io/react/docs/tags-and-attributes.html
there is a list of supported dom elements
 
4:27 PM
@Zirak stop telling me the simpsons did it, I want to write something useless
 
you would have to explicitly add your custom component... but it would still be weird because react needs to handle the rendering and has no concept of the shadow dom where your code/styles for the element would be located
idk its an interesting thing to think about, would be fantastic if it were possible
I think real web components are the right way to go and all these frameworks/libraries are just providing stop gaps.
 
I bet you $10 it's easy
 
@Zirak I wont bet against you. I have faith you could do it :p
heh just saw Benjis link.... not sure how I missed it but I was scared, then pleasantly surprised.
!!afk lunch
 
I just clicked it
 
@Loktar No, I'm going to weigh against that. The beauty of React isn't just the similarity to web components: It's the core concept of ui = render(data)
 
4:31 PM
@Loktar they changed/are changing it to capitalized for custom and non-capitalized instead of white-listed DOM elements
 
i am disabling links on this page
 
I think we've all been this guy at one point i.imgur.com/NUBcMak.gifv
 
inb4 friday
 
@Zirak handlebars does that, the power is in the component stuff
 
@Zirak yeah that is its strong point, the component nature is a nice by product but thats what worries me it detracts from real web components
idk maybe I'm too hung up on them, I just think they are a fantastic idea
 
4:32 PM
@ssube Handlebars is shit, handlebars implements a scripting language inside a markup language.
 
its so great to think I can just drop a component into some huge app and not worry about its code screwing something else up
 
@Zirak it's specifically not scripting, just search-and-replace
underscore templates are scripting, and that is shit
 
You're taking a powerful thing, weakening it immensely, and implanting it in an even weaker thing
 
like a man in a relationship
 
Instead of taking a powerful thing (= js), a less powerful thing (=markup), and giving you the power of implementing the less powerful thing in the powerful thing. If you catch my drift, wink wink
 
4:34 PM
I have never run into problems with the stack forcing templates to be simple and not contain any kind of logic. the only issue has been how it makes events less direct.
 
It's important. React isn't just about the components, it's about functions and objects and how you can use them to rule the world.
 
omg, objects are so 1990. Why don't you just go draw UML for management?
 
If you just have functions and objects, you can send objects over the wire. Or save them to disk. Or do whatever you want. You just have to make sure there're functions on the other side.
It's quite beautiful, and it's not just about the web
 
@Zirak no you can't, COM and CORBA proved that
it's technically possible but not anywhere like practical
the overhead is murder
 
4:37 PM
@ssube So Facebook proved you wrong
Read more about React, you're missing out
 
the only reason I'm missing out on React is because I have nothing to write in JS at the moment :P
the last few weeks have been replacing our build scripts with Python so we can use the OpenStack libraries directly
 
@rlemon @SomeKittens Shai Reznik is a real life friend of mine, he had a standup show (sold out) yesterday - he's a nice guy :)
 
@BenjaminGruenbaum ask him why I couldn't register for his site.
 
@Zirak yes, I will have some time in a few hours. I guess that's ok?
 
@AwalGarg Sure, take your time, just wanted to know if that's what you decided.
 
4:42 PM
Cool :)
 
@rlemon I will
 
@BenjaminGruenbaum says my email is already in use.
but I've never reg'd before
 
Ok, will do :)
 
Is there any better way to accomplish this?
 
@rlemon Your email is just like your momma: always in use.
 
4:43 PM
I'm on my way to you know.. Beer, ttyl
 
function getProducts(conf) {
  Products.find(
   { _id: { $in: _.pluck(conf.products, '_id' )} }
  ).map(function (product) {
    let merged = _.extend(product, _.findWhere(conf.products, { name: product.name}));
  })
}
 
@ssube ftr, I saw your email, I have to reply
 
@FlorianMargaine sweet, no rush
 
Math.abs(Math.random()*(max-min)+min) returns an integer that is between min(inclusive) and max(exclusive). How do I alter the code to make both integers inclusive?
 
max+1
 
4:52 PM
good point...
 
is it just me, or is javascript's regex library not very... complete?
 
I think it does what it's supposed to do... not sure though
ugh typo there. should be Math.floor not Math.abs
 
@corvid it is complete, just not extended
it has all the standard stuff
 
5:13 PM
@BenjaminGruenbaum Love his talks/style absolutely.
tough act to follow
 
Complete, extended or not, native JS regex is definitely ass.
 
Welp, wife just got me with a Friday link. Time to go hang my head in shame.
6
 
:chants: ONE OF US! ONE OF US!
 
is she single?
 
@Nick The sheer creativity of the way you interpret the english language should be an inspiration to us all.
although it is a valid question
 
5:31 PM
http://www.commitstrip.com/en/2015/09/04/when-your-colleague-uses-some-random-code-he-found-online/
CommitStrip - Blog relating the daily life of web agencies developers
When your colleague uses some random code he found online
CommitStrip
1441387633
 
@ssube I aspire to inspire
 
how do I map an ES6 map?
 
backpack! backpack! backpack!
 
googling for this has been difficult.
 
[...map].map?
it is itterable
 
5:36 PM
yeah
but I want to map it to another map
map the values, map the keys, map the entries etc.
 
you should probably just iterate
 
ugly
 
var map = new Map([...map].map(fn));
 
since JS doesn't have tuples, you've gotta
 
@rlemon that doesn't look so bad
 
5:38 PM
Map accepts an itterable object
 
won't that do an awful lot of intermediate copying?
 
so just pass the array back to it
 
specifically, two extra lists
 
should just make one extra list
oh wait
 
[...map] will make one, .map will make two
 
5:39 PM
nah, map just maps the list, doesn;t make a second one out of it
 
what do you get when you [...map] a JS map, anyway?
@Nick it makes a copy
 
does it? oh
 
it doesn't make two on its own, no
 
then yeah, 2
 
Map.prototype.map = fn => {
	for (let [k, v] of this.keys()) {
		this.set(k, fn(v));
	}
};
 
5:40 PM
wouldn't it be let k of this.keys()?
 
need a value to map
oh
so just of this
 
for (let k of this.keys()) { that.set(keyMap(k), valueMap(this.get(k))); }?
 
Map.prototype.map = fn => {
    const newMap = new Map();
	for (let [k, v] of this) {
		newMap.set(k, fn(v));
	}
    return newMap;
};
 
map should make a copy, though
 
right
there
 
5:44 PM
you will have to use a real function instead of an arrow func if you're going to use this inside it
but otherwise, that looks about as good as you'll get
 
yeah, that's also right :P
new Map([for ([k, v] of map) [k, fn(v)]])
what about this :P
 
that's too clever... I can't read it at first glance
 
postgres + bluebird -> queryAsync().then(results) if the query fails it actually rejects right?
it doesn't pass back the error as a argument or property right?
 
sooo
my first week of javascript job is over
 
queryAsync(q).then(blah).catch(queryError); // ???
 
5:49 PM
@rlemon how does the postgres driver usually do it?
 
Can you split on regex capture groups?
 
err, results
I think
 
like, for errors
 
I mean I could test this I suppose
 
does it throw?
 
5:50 PM
That is, I want to take my regex and map each match group to an object
 
figured one of you blokes had the answer
 
@corvid it already does that
 
@ssube ugh. I suppose I'll check
 
Regexp.prototype.match returns an array of matching groups
object-y array with special properties, though
 
yup
rejects
 
5:52 PM
ya know, it's actually causing some physical discomfort, when you go from 3440x1440 screen to a 1080p laptop
 
BTW, for anybody who needs PTSD, Humble Bundle includes the original Rainbow Six.
 
what was so bad about it?
 
It's a great game, just a surprisingly realistic counter-terrorism shooter.
For the first mission, you have to save hostages in an embassy. You spend 20 minutes planning out a mission on a detailed map, setting up waypoints and telling your dudes to flashbang doors, then less than 2 minutes raiding the place, kill 12-15 terrorists, and leave.
If you get shot, you're almost always dead, and the character is dead for the rest of the campaign. Sound and sight work correctly and terrorists will execute the hostages just cause.
I think some agencies used it as a training simulator for a while.
 
@ssube I don't get why that isn't quite working... '2-3/1x'.match(/\d(-\d)?\/d(-\d)?x{1}/g);, it seems to work fine on the MDN page
 
\/d
 
5:59 PM
@corvid \/d should be \/\d
 
looks wrong
\o/
 
or /\d
 
rlemon got a regexp
 

« first day (1784 days earlier)      last day (3165 days later) »