« first day (1549 days earlier)      last day (3414 days later) » 

9:00 PM
Ok I guess :P?
 
so put the cards/drives in, run a script, verify data, unplug and repeat.
it is involved, but boring
 
come up with conspiracy theories. That's what I've been doing today.
 
@BenjaminGruenbaum Wait what?
When running node you mean?
 
Jan 7 at 14:39, by rlemon
Mars is a myth, it's actually a reflection of Arizona off some swamp gas.
 
node --harmony yourCode
Has harmony stuff like generators
 
9:02 PM
I seee
 
has anything really happened with io.js yet?
is it amaze? or just eh right now
 
it's supposed to come out tmrw
 
they're powering towards a 1.0 right?
 
@ssube cool, I'll check it out tomorrow :P
 
Next thing you know they'll say the Moon is a giant mirror to reflect the sun at night
 
9:04 PM
how will package support work? I know I can google this but if someone can tl;dr it for me
will my node modules work with io.js?
 
they said it would
 
what about ones with system level shit?
 
comes with it
 
for now, at least
 
9:04 PM
like node-serialport
I suppose I'll have to wait and see
 
apparently they have a few nightly builds, from the last couple days
 
I doubt they'd release something that didn't do everything node does + more, otherwise noone would use it
 
maybe they will have a stable tomorrow.
if it has a recent version of v8, they may have a chance.
 
@ruffin re: your profile description, your license stuff is meaningless afaik. (I'm not a lawyer)
> user contributions licensed under cc by-sa 3.0 with attribution required
^ SO's notice
besides, SO owns the content you post, not you.
again, afaik.
 
There's a long thread about that on meta.
Sorry, @rlemon -- there's a long thread about that on meta. Basically, (imo, IANAL either) you can dual license all over the place, if you want. And CC really isn't for code; it's a nasty hack at best.
 
9:10 PM
Huh, MDN is like a maze. you can just click from one link to another and discover new things developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/…
 
@rlemon There's no inherent conflict with Unlicensing code that you've also CC licensed. ;^D
 
iAnal, by Apple.
 
@NickDugger for..of is pretty good
 
Honestly, what I'm most excited for is 'let'
 
@ruffin got a link to the meta post, I'd be interested in reading it
 
9:13 PM
@NickDugger why?
 
because it's nifty
 
I remember a post a while back due to a user trying to add his own licences to his work he posted on SO and I remember it being nullified by their licence - in any case, I was just mentioning it too you.
 
do I need a ten page paper on why something excites me? lol
 
No, just curious to hear why.
 
@rlemon I guess he can dual licence
 
9:14 PM
Mmmm, *smells the proper tail calls
 
one licence is forced upon him, the other he can choose
 
@FlorianMargaine yea sure, again, not a lawyer, just curious now
 
@rlemon slightly nepotistic comment: meta.stackexchange.com/questions/25956/…
 
Do you guys have friends who copy pseudo-legal garbage into their facebook feed in order to "protect" themselves from facebook abusing their info?
 
@ruffin Isn't it only nepotistic if you're linking to the comment of a relative or close friend?
@Retsam Heard of it, haven't seen it recently.
 
9:16 PM
@SomeKittens Yeah, I like that ruffin guy on meta.
 
I suppose as long as your dual lic doesn't tread on the toes of CC then it is okay?
 
@rlemon My 2¢ would be that it branches at that moment, so to speak. If I Unlicense it to you, you're not necessarily bound by CC. If I say I'm also rights-reserving it for myself, I can take the code, hack it, and keep the modified work closed. /shrug
 
@ruffin well afaik you cannot just "remove" a licence
 
I don't have anything on SO that's worth suing over though, luckily.
 
you are bound to copy forward the lic
 
9:18 PM
Nah. But again, we're not lawyers.
 
it wouldn't be you getting in trouble or anything.
 
@BenjaminGruenbaum around?
 
for the record, the guy I say the issue on meta was telling people his stuff was under this non-permissive lic
 
that thread suggested dual licensing, and I thought it sounded like A Good Thing To Do.
 
9:18 PM
so of course him saying "you can't use it" is BS on SO
 
that's right -- you can take that code and change it yourself, np, as far as I care. That's all I'm hoping to say.
 
I also remember someone bitching about someone using their display pic. but because all pics are also CC it was deemed allowed so long as he mentioned it
 
Heh. ;^)
 
@BenjaminGruenbaum I have a service that takes an instance and polls to see if it was updated (this will be replaced with websockets in the future). How should the service communicate back to the controller? I'm thinking events, but I know less than Jon Snow.
 
9:20 PM
@phenomnomnominal bro don't even be curious
 
@SomeKittens context? Is this frontend? Backend?
 
Angular
 
@Loktar I'm not a cat, should be okay.
 
If it's Angular don't poll stuff to see if it changed - add a watcher to it.
 
9:21 PM
haha
 
Mother of pens.
 
The service can communicate back with events, or with an observable if you want to abstract more.
 
@BenjaminGruenbaum how can you add a watcher to something that won't change because it's never making another http call?
 
It can just expose a callback, although I'm not sure why you'd need polling here anyway.
 
9:22 PM
All your handwriting are belong to me is a bit sloppy honestly
the rest is really nice though
 
@phenomnomnominal wait what?
 
@BenjaminGruenbaum We create a new build whenever the user pushes to GitHub - we want the frontend to be aware of the new build when that happens.
 
@SomeKittens version every file with a hash suffix, whenever your build changes refresh the index.html which has all the links to the new hashes so other files get resolved.
 
Nothing on that level, but I screw with my handwriting quite a bit. More out of boredom than anything else.
 
So versioning is clean and everyone is on a whole version.
 
9:24 PM
@SomeKittens you're talking about polling at runtime right?
 
Or do you mean notifying logged-in clients that a new version has shipped?
 
use the changeset if you want a hash
 
We have it as part of our build
It's usually a good idea to have the server able to notify a client when something changed.
 
@Loktar given the users submission history (I've looked a while back) I can believe that was intentionally bad. what I would give for that power.. srs. most days I can't even read my own writing.
 
9:25 PM
@phenomnomnominal Right
 
spoiler alert: batman loses
 
@BenjaminGruenbaum Not a version of our software.
 
@SomeKittens then I don't understand your problem domain very well - please explain
Is this some sort of control panel you use internally?
 
user1596138
@SterlingArcher oh my god
 
LOL wow..
 
user1596138
9:26 PM
That's fucking brutal.
 
#NaNaNaNaNaNaNoNoNoNoNo
 
Buzzfeed/Facebook linkbait
 
hah thats an interesting chart
 
user1596138
@SterlingArcher first comment
 
awesome! how about useful stuff now?
 
9:27 PM
I love that "game of thrones" is linkbait
 
@FlorianMargaine Generating graphs is fun
 
actually thats incredibly useful
 
@Zirak he's not generating anything
 
@FlorianMargaine fine
 
@BenjaminGruenbaum You've got a server hooked up to a GitHub repo. The server is running commit abc123. Your server is set to autoupdate when new commits are pushed. A new commit is pushed. The frontend polls, discovers that the backend has built that commit into a running server. Frontend updates the page with the data from the new server.
 
9:28 PM
if you do any sort of advertisement on FB
 
@rlemon dude
 
@Jhawins dude I know xD leik so ded
 
Remember, we do staging servers as a service, so this is client-facing.
 
my wife asks me "why are you looking at naked men"
 
wait
was that dude naked? shit.
I looked at the image and didnt notice and I'm at work
 
9:28 PM
@Loktar nahh, shorts.
 
ok good
 
Guys it's ok, corgi to the rescue
 
yeah shirtless
 
@Loktar I couldn't stop staring at his axe
 
9:29 PM
dat axe
 
@SomeKittens right, is the only relevant bit here for the question that the server needs to notify the client of something?
 
user1596138
Hmm.. I was hearing this strange noise in my truck and I thought it was coming from my truck... But now that it's quiet in the office I'm still hearing it..
 
!!> var d = new Date(); d.getTime(); // is that in seconds?
 
@monners 1421098156877
 
@Jhawins IT'S IN YOUR BRAIN
 
9:29 PM
@BenjaminGruenbaum Correct. In the future, we'll use websockets, but currently we're polling.
 
user1596138
I think it's in my ear. Ear has been weird all day
 
!!tell monners spec getTime
 
@Zirak Thanks
 
That was actually less useful than I thought
 
9:30 PM
 
@SomeKittens ok, for that I would use an observable, whose imperative version is an event emitter.
 
But date.getTime() is equivalent to date.[[PrimitiveValue]], which is Number(date), which is number of ms since epoch
 
@BenjaminGruenbaum So the communication should be through events.
 
@Zirak Milliseconds. Gotcha. Thanks
 
So should I pass in $scope to the service, or was that a really dumb question?
 
9:32 PM
@SomeKittens well, events are to observanbles like callbacks are to promises so generally yeah.
Never pass $scope to a service.
 
guys... what should I have for dinner?
 
@BenjaminGruenbaum Can you explain that more?
 
Just have the service expose a simple on and emit method.
 
Oh man there are so many perfect tl;dr gifs today
 
@rlemon the tears of the innocent
 
9:32 PM
!!learn tl;dr2 "<>http://i.imgur.com/JsFS5AH.gif"
 
@SterlingArcher Command tl;dr2 learned
 
@JaredSmith how do I eat liquids?
 
They freeze
 
@BenjaminGruenbaum ...not using Angular's built in events?
 
@SomeKittens yes, the basic thing is a value, then you add time you get a promise which is a single value + time. You can have several things which is an iterable (or enumerable) - if you add time to that you get an observable which is a sequence of events. You can circumvent the problem and ignore the fact it's an iterable of values + time and use an event emitter just like a callback circumvents promises but you lose aggregation and mapping etc.
 
9:34 PM
stay good longer that way too
 
@SomeKittens you can use Angular or jQuery's event emitters or make your own, an event emitter is ±20 lines of code. In your case it shouldn't matter much - but remember to cap it at N events or remove listeners on scope destruction.
 
@BenjaminGruenbaum possible use case for rxjs/bacon.js? or am I sniffing up the wrong tree?
 
eggs.js
 
@BenjaminGruenbaum Ok, I'll be using angular's built in.
 
@JaredSmith well, RxJS and Bacon offer observables so yeah.
That's pretty much what they do, like Bluebird or Q offer promises.
 
9:36 PM
@BenjaminGruenbaum 20 lines is a big event emitter
with on/fire/once/off
 
@FlorianMargaine 20LoC is a pretty standard readable one :D
 
oh, readable?
yeah, about 20 lines, I guess
 
Write smallest unreadable one, see how much lines you can cram it into
 
@BenjaminGruenbaum what is returned from Promise.coroutine(function*() { ... })()?
 
9:38 PM
@Zirak if we're into that... 1
 
@SecondRikudo a promise, but don't call .coroutine like that - if you don't invoke it it returns a promise returning function. Also just use async/await
 
@FlorianMargaine Sometimes I want to hit people
 
but basically, 3 lines per function can be enough (1 line for declaration, one line for closing brace, one line for code)
 
This is fantastic
 
9:39 PM
@FlorianMargaine show me :D
 
@BenjaminGruenbaum How do those work? I haven't seen them in the 6to5 tour
 
@BenjaminGruenbaum uglifyjs event-emitter.js
 
Will those work?
 
@SecondRikudo instead of putting "Promise.corutine(function*(){" and using "yield", you write "async function" and call await, it gets compiled to a Promise.coroutine (optionally) anyway.
 
Oh yeah, I lectured on linux today, it was awesome. Different department got fresh meat, wanted them to know linux, asked me to lecture, I yammered for a couple of hours until they threw me out. Never talked that much in my life.
Crammed lots of OSS and FSF into it, too
Told them that Ubuntu sucks
But Windows is of course what heaven runs on
 
9:42 PM
@Zirak good, that's important. And that Stallman is a raving egomaniac, and it's just Linux (no GNU)?
@Zirak which is why nobody has ever seen it work.
 
15 LoC, pretty ugly, someone fix plz:
class EventEmitter{
  constructor(){
    this.events = new Map();
  }
  on(eventName, handler){
      let events = this.events.get(eventName) || [];
      events.push(handler);
      this.events.set(eventName, events);
  }
  emit(eventName, ...args){
    for(let event of (this.events.get(eventName)||[])){
      event(args)
    }
  }
}
@Zirak fun stuff.
 
@BenjaminGruenbaum Will it work with prototype methods?
Authenticator.prototype.login = async function (email, password, server) {
 
How do you know someone uses Linux?
Just wait a few minutes and they'll tell you
 
@ssube Stallman is a fanatic, of course he'll speak lunacy. And yeah, of course I segregated Linux and GNU (explicitly mentioned (twice) that Hurd never came into existence)
 
9:43 PM
(Because that gives me a syntax error when I try to run it)
 
@SecondRikudo Yes, why wouldn't it?
 
Although, server should probably be a method on it.
@SecondRikudo need to run with the "experimental" flag.
Not sure how to pass it to the require hook - should be in the docs
 
@BenjaminGruenbaum 520 error :o
 
Refresh, they're getting a lot of traffic :D
 
9:44 PM
The first rule of being a linux-user is you do not shut up about being a linux user
 
@BenjaminGruenbaum Hmmm, I think I'll pass on that one
 
It's kind of being a convicted sex offender.
 
It's not performance sensitive, but it is a production application
 
Except that your only crime is being more awesome than the rest.
 
I don't want highly volatile features in it that could break silently.
 
9:45 PM
Linux users may not tell you they use linux, but they will talk about their uptime.
 
Hi guys, is using Javascript for a real-time OCR software a good idea? (in a block of text).
 
As soon as they see a mac user talking about how much better OSX is, then you'll get the full diatribe.
 
We make fun of linux at the university all the time. Something about hipsters thinking they're cool wasting a lot of time config'ing
@SecondRikudo ok then
 
@zirak I have a small confession, I *like ubuntu
 
@BenjaminGruenbaum that's why you config once and keep your dot files in a github repo
 
9:46 PM
@RahulKhosla I implemented one once, not a lot of fun
 
@RahulKhosla uh, sure
 
@ssube drivers :D
 
@ssube Not taking the bait
 
@ssube I'm on OSX now, not having fun :(
 
@JaredSmith Have you tried other distributions?
 
9:47 PM
@BenjaminGruenbaum yeah, but the end result soooo almost looks like OS X...
 
new machine, yum install -y git && git clone repo && restorecon -R ~
 
@BenjaminGruenbaum so it takes a while to process images?
 
@RahulKhosla naa, just was a pain to debug
 
@BenjaminGruenbaum it's deceptively *nix-like, right? You think something will work, but nope, BSD says it's just a tad different right there. Or apple just hands out super old versions (like still being on bash 3)
 
@ssube I keep my init script in my Dropbox.
 
9:48 PM
@zirak used at one time or another fedora, debian, arch. Currently typing this on Mint 17.1. Pretty much roll with *buntu for servers though (we use LTS at work).
 
@BenjaminGruenbaum Ahh ok, I just had an idea for something, but I guess I can't really code JS, although I could put parts together from snippets and libraries. But I won't be able to debug it.
 
@RahulKhosla usually you use ML for OCR
 
@RahulKhosla get your neural network on
 
@phenomnomnominal Is that some sort of pun? I really don't know as I don't code JS.
 
@JaredSmith That's good, then. It's fun and all to make jokes at distros, but at the end, use what you're most comfortable with (even if it's Windows). The fault is in not trying things.
 
9:50 PM
@BenjaminGruenbaum Ok thanks, I wanted real-time OCR but that's even harder.
 
@BenjaminGruenbaum I just saw this before I came here, it's real time?
 
@Zirak Very true. On the last day you will regret the things you have not done ;)
 
@icebreaker Welcome to the JavaScript chat! Please review the room pseudo-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.
 
@zirak agreed. I actually use OS X most at home, but I wouldn't want my code-for-eight-hrs-at-a-time machine to be anything other than linux
 
9:51 PM
I use OSX at work. It's not perfect, but it beats using windows
 
The problem is that the .NET stack is so damn powerful
And linux doesn't run things like photoshop
 
sigh, now what? :|
Authenticator.prototype.login = function*(email, password, server) {
    this.validateDetails(server);
    yield this.loginSEOpenID(email, password);
    console.log('Logged into StackExchange openId');
    yield this.loginSO(server);
    console.log('Logged into chat', server);

    return this.request;
};
 
Your main dev env should be the same distro your servers run, whatever that is.
Cuts down on surprises.
 
return coroutine(this.authenticator.login(email, password, this.server))();
 
I often wonder if how little I give a shit about tooling makes me a bad developer? Just give me textedit.
 
9:52 PM
Yeah, I like .NET too, and your point about photoshop is well-taken.
 
@SecondRikudo it's not a §Promise.coroutine
 
TypeError: generatorFunction must be a function
 
You're doing it wrong :/
 
If you need something fancy, VMs.
 
Authenticator.prototype.login = Promise.coroutine(function*(email, password, server) {
    this.validateDetails(server);
    yield this.loginSEOpenID(email, password);
    console.log('Logged into StackExchange openId');
    yield this.loginSO(server);
    console.log('Logged into chat', server);

    return this.request;
});
 
9:53 PM
Ah
Okay
What's the difference by the way?
 
Creating a coroutine is expensive
Don't do it every single time
 
Gotcha
 
@BenjaminGruenbaum still don't like windows. I just hate that feeling that every time I turn around too quickly and bump into something it'll break. At least when that happens in linux I can useually fix it
 
?
 
9:56 PM
@JaredSmith let me guess, you don't know powershell?
 
you are "Windowing" wrong then
 
XP all day
 
But @Loktar all the cool kids use linux.
 
haha I know
 
windows is pretty hard to actually break
 
9:56 PM
I used ubuntu a few times. It's dumb.
 
it's easy to sort of screw up, but hard to really ruin things
 
Im not trying to be a fanboy.. but I havent had windows bsod on me since 8, and 7.. maybe three or 4 times?
 
I didn't appreciate windows until OS class.
 
In my own personal experience, OSX has been the least stable of the three for me.
ChromeOS being the most stable, but that doesn't count.
 
9:57 PM
OSX hasn't been stable for me but I'm usually on early alpha versions so I can't really blame it.
 
@SomeKittens same here honestly
 
user4330208
firefox OS ftw
 
the 4 months I used a mac it froze up 5 times (or so)
 
I've never had any stability issues on mac
 
it was pretty annoying to say the least.. however it opening up all programs I had open on restart was nice
 
9:58 PM
But again, I don't fuck with anything because I don't care
 
I appreciate OSX for the eye candy that it is. I enjoy the workflow that I get with it too, but that damned bottom bar thing is garbage.
 
Breakpoints don't work correctly like this @BenjaminGruenbaum XD
 

« first day (1549 days earlier)      last day (3414 days later) »