« first day (1617 days earlier)      last day (3556 days later) » 

00:00
@SecondRikudo oh, together with this it makes sense, thanks
@m59 how about something like this
var readableStream = require('stream').Readable;
function createStream(promise) {
	var self = this;
	return readableStream({
		_read: function() {
			promise.then(function(val) {
				self.push(val);
			})
		}
	})
}
m59
m59
I'm already doing that =D
:X
m59
m59
I've got something now that really controls everything, but interestingly, the flush function is not waiting on the callback
What might cause a postgres connectioni be closed before I even started using it?
m59
m59
00:33
@Mosho I think I'm screwed because the flush function won't wait for the callback :/ It fires the finish event beforehand
Of course, me closing it before it ever gets used is an obvious cause for it to be closed before it ever gets used XD
@SecondRikudo classic rookie mistake
@FlorianMargaine In my defense I'm coding in Java using unfamiliar frameworks.
@SecondRikudo how can "coding in Java" be your defense?
@FlorianMargaine Helping a friend
00:41
@SecondRikudo then really help him
i.e. get him off java
@FlorianMargaine :P
All in due time.
y'know, friends don't let friends skip legs day
Let her finish her course
oh, that kind of friend :)
amirite
@FlorianMargaine only she's approximately 5000 miles away from my current location
And with a BF
She's here in chat (although not in this particular room)
00:56
@Zirak your messages are like a gpg signature
no doubt, it's you.
They make no sense?
Unless you have the key
in other news, I've successfully setup a bunch of containers using docker speaking with each other. nginx + php-fpm + mariadb, in 3 different containers.
and it was not even hard
@m59 wait for what callback
m59
m59
I don't really understand it all, but this github.com/joyent/node/pull/7612
01:02
so that's that.
m59
m59
@Mosho must me some magic in here that isn't apparent. github.com/wearefractal/vinyl-fs/blob/master/lib/dest/index.js I have no idea what this code does.
Oh, I do.
Each chunk of that is a file.
It's not really the same scenario
01:39
soundcloud.com/pomdeterrific/pomdeter-call-me-a-hole <- do not listen to this if you have self-respect
01:59
hola
@SomeKittens Trent Reznor gives out at least some of his tracks (I don't think it's all tracks) for free so people can fuck around with them in Garage Band and remix them
Yeah, my first exposure to NIN was when they did the free album
Thanks dude. Adding to my Soundcloud cringe playlist, lol.
m59
m59
Two songs I really don't like somehow turned into one I do: youtube.com/watch?v=kspPE9E1yGM
Leather singularity
02:11
Maybe I should put this in a new playlist. Mine is mostly people singing really badly or trying to rap
soundcloud.com/rybeezyswagg/e-t-remix A dude rapping over Katy Perry
There are some brilliant mashups out there: youtube.com/watch?v=NN75im_us4k
I feel like people wanted more bands like Nirvana, but nobody ever topped them
And on top of that, the horrible side effect of women wearing plaid shirts
I want more tracks like this
m59
m59
dig the concept, but ole Rick is singing in the wrong key :/
02:16
37 mins ago, by SomeKittens
https://soundcloud.com/pomdeterrific/pomdeter-call-me-a-hole <- do not listen to this if you have self-respect
ahem
the song I posted has a hilarious payoff on the chorus
lol, I didn't click because I wrongly assumed I had self-respect
or as we say on Greek, "If my Grandma had wheels she'd be a cart" (doesn't translate well, but there you go)
@taco there are so many better bands than nirvana
better and more popular, no.
but definitely better bands
I'm barely even a fan, but it was more of them being ground breaking in the fore front for their scene
Not to diminish the Meat Puppets or whoever else
02:20
@taco Yeah, that's why no one can beat them
They defined the genre - you can't be more Nirvana than Nirvana
I kind of think the idea peaked with Weezer - add some polish, still make it a little grungy
Meat Puppets were ok.
Weezer was pretty good.
Have some nostalgia from when memes were more than a stock photo and IMPACT: youtube.com/watch?v=PQHPYelqr0E
I'm somebody who tries to listen to everything
come on, pearl jam are so much better than nirvana.
If we're strictly talking grunge
alot of my friends are still stuck listening to music from the 80's and 90's which is fine, but I like finding new music
@phenomnomnominal Eddie's got some great chops and is a great writer, no doubt
02:23
@taco so many better songs. Ten is just as good an album as Nevermind. Maybe even better
But yeah grunge is stupid anyways
I can't wait for somebody to tackle yodeling
I want it to make a comeback... not joking at all, lol
Lots of people yodel in country music
I can't stand country. I mean in other genres
The country I listen to is older. I can't really put a timestamp on it, but probably before '65
and yeah the older yodeling stuff falls under country
@phenomnomnominal can you link me to a newer song with yodeling?
!!s/y music/y/
@SomeKittens Lots of people yodel in country (source)
02:28
ah, that's better.
lol
FIF is ska though
AAAAAAND?!?!?!?
They were also friends with a Christian ska band I was webmaster for in the 90's, Honeylocust!
I just wanted to see what this country yodeling was like. I guess I can google it
Lead singer actually got signed to Columbia a few years ago. They were rockstars across the pond.
It's amazing how quickly people forget about you though. I don't think they're putting out another album
02:33
Kickstarter
03:13
A for loop blocks execution of code after it, right?
@monners ...
I guess you could do something async inside the (), but in general
@monners yes
Of course. Brain fart.
Async assigning of a variable.
m59
m59
03:29
Is this not valid?
var x = new Promise(function() {});
Promise.resolve(x);
x.then(function() {
  //stuff
});
m59
m59
03:40
surely this isn't necessary?
var res;
var x = new Promise(function(resolve, reject) {
  res = resolve;
});
res();
x.then(function() {
  console.log('?');
});
var x = Promise.resolve();
x.then();
but why would you do that?
m59
m59
I don't need that
I just have scoping issues
@Mosho So, the trick was to hijack stream.emit :) ^ see code
@m59 use bluebird, and use promisify on mkdirp
m59
m59
I didn't figure it was worth it for such a small thing.
then do var res && res = resolve
m59
m59
03:52
not sure what you mean by that ^
I could ditch the var though
err, what I am I even saying. That would be all kinds of wrong
I think I see it now. This could be much better.
04:09
looks better
@m59 hacky :o
m59
m59
Indeed, but I believe it's the only way.
In this case, it really seems proper. That's what got me thinking about it, ya know? I needed the finish event to wait, so why not get to the point! :)
@m59 Can you help me write a one-line module that will work with node? I just want to require some code with the proper format
m59
m59
I don't know what you're asking, but sure =D
I just need to know the format. If you know of a good web resource that'll work.
The only time I wrote one I did it like this:
var settings = exports;
settings.AUTH = '_AUTH_USER_HERE_READ_URL_TO_THE_RIGHT_'; //README: github.com/alaingilbert/Turntable-API/wiki/…
settings.USERID = '_REPLACE_WITH_USER_ID_';
settings.ROOMID = '_REPLACE_WITH_ROOM_ID_';
settings.BOT_NAME = 'Taco Bot';
settings.BOT_SHORTNAME = 'taco';
m59
m59
04:17
module.exports = // whatever
and then required it like this: var settings = require('./bot_settings.js');
m59
m59
I prefer that ^
okay, so something like this? module.exports = function(file, opt) {}
So npm uses CommonJS?
m59
m59
04:19
right
I was googling to see which: AMD, ES6, commonJS... I know the names, but couldn't figuire it out. Thanks
m59
m59
well, node you mean
node uses commonjs. npm is the package manager
right, sorry
I'm still very much a noob at this language
Only thing that saves me is tests
m59
m59
@Zirak no way, man! It stuck! I need to call this twice: oldEmit.apply(stream, args); so I was like hmmm Function.bind.apply(oldEmit, [stream].concat(arguments)
m59
m59
04:36
actually, not quite right. Context is off
I found this for modules once I googled for that modules.exports bit: github.com/mattdesl/module-best-practices
@FlorianMargaine Honestly expected that to be this
m59
m59
oldEmit.apply(stream, args);
var emit = Function.bind.apply(oldEmit, [stream].concat(args));
I don't why it doesn't work. I feel like I understand what the second one does, and it should be the same as the first.
bind's context is the function that is before it, so apply(thatFunc, and then the first arg needs to be the context of that function, and the rest are the args for the function.
Function.prototype.bind.apply maybe?
just a stab in the dark... don't mind me
m59
m59
nah, it's not that.
04:58
sorry for swearing at you last night @m59. I was just tired from changing out the flat, and a bit irritable.
later, kids
 
1 hour later…
m59
m59
06:19
@taco hah, no worries =D have a good night
 
2 hours later…
08:01
hiiiii
can someone help me on this I want to use an html5 slider to increase the size of this circle when i move the slider up and down jsfiddle.net/imperial/yfaLnpz7/1
08:21
why do I feel I have seen this before.. Its like a time wrap... Maybe side effects of getting morning-drunk
08:38
@m59 ? it should work. console.log(this, arguments) inside of oldEmit
@OctavianDamiean, @rlemon: dicksbymail.com
08:58
cc: @mikedidthis
09:16
@zerkms (@FlorianMargaine) people.mozilla.org/~jorendorff/… , the 11th bullet
Also, it's not that the es6 es2015 spec is a PITA, I just can't fit it into my head with a single day's read.
Reading specs is a PITA in my opinion
09:33
@Zirak didn't I ping you with this? :P
@FlorianMargaine Nope
@Zirak ty, saved in bookmarks
Feb 26 at 19:40, by Florian Margaine
@rlemon btw: http://www.howardism.org/Technical/Emacs/new-window-manager.html
sorry :(
I started thinking about it btw, emacs has a built-in way to display battery status so it's nice
@Zirak thanks :-)
10:24
No one has room meeting topics
Isn't that a good thing?
10:58
in chrome are these the same things:
window.MutationObserver || window.WebKitMutationObserver
11:17
any one who can help with knockout ?
11:27
am i alone in this room?
No
But it's saturday in most of the world :)
except Fiji and Kiribati where it's sunday
ohhh
what you think is the best way to wrap a long html into quotes
i mean to treat them as string
well, HTML properties are quoted with double-quotes so I would wrap it in single quotes, but there's not much context here so I am not sure exactly what you're trying to do
It's Sunday here too
I have to append a long html to my webpage when some even happens. But since the html is quite long and complicated I have to do lots of concatenation and also take care of proper quotation mark
11:33
I should probably sleep
why sleep on sunday? it's a day which one should spend for the things they like
but can't do because of work
Well, in NZ it's about midnight which is a good time for sleep
Well, it's 12:34am, so I will still have all of Sunday even if I sleep.
timezones are a wonderful thing untill you have to deal with them programmatically
@ShubhamNishad Maybe you should use a template-engine?
11:37
yeah, i was also thinking about that
thanks
Or if it's static HTML, just include it in the DOM from the start with display: none; and show it when it needs to be shown
12:08
what does this mean as a jquery selector?
[id^=ember]
for some reason it matches this:
<div id="ember281" class="ember-view"><header>
id begins with
^= is the attribute starts with selector
so I could do this and only get the root ember div?
var target = document.querySelector('body>[id^=ember]')
Surely there is a nice way? I've never used ember, I don't know. But if there's not an ember way to do it, I guess that would work
12:14
yip :)
im just using mutation events on it so that why
@SuperUberDuper App.rootElement doesn't work for you?
@Mosho can that be used for mutation observers?
App.rootElement is undefined when running in the console
where an I access App from?
@phenomnomnominal does qsa support those regex thing'ish things ?
no, that's jake weary
Yep, they're just CSS selectors
12:27
oh :D
you mean those :X
@SuperUberDuper it's what's returned from Ember.create or something
it's a selector I think
I can't as its an external script
I just want the root ember element to observe
maybe it's exposed under another name
well alrighty
body [id^=ember] perhaps?
I mean the app
nah its inited as App in index.js:
var App = Ember.Application.extend({
  modulePrefix: config.modulePrefix,
  podModulePrefix: config.podModulePrefix,
  Resolver: Resolver
});

loadInitializers(App, config.modulePrefix);

export default App;
m59
m59
12:40
@Zirak I had to do var args = [].slice.call(arguments) first. No idea why that was necessary....
cool I can now get desktop notifiations from chat!!!!
m59
m59
I mean, I know why that can be necessary, and I don't see it in this case.
Assuming it wasn't happy about [stream].concat[arguments] (testing this theory now)
!!mdn array.of
m59
m59
Yep, doh. It doesn't concat like an array haha. It just adds arguments as arr[1]
12:45
@m59 If you have es6, Array.of ^
m59
m59
cool
es6 sux
m59
m59
@SecondRikudo not sure how to use it here
Array.of(arguments); // Turn into an array of arguments
m59
m59
hmm, not sure why it's not working
I think that would just make [args]
13:00
how come I get 5 mutation events for adding this to a page?
<input type="text" placeholder="login">
<input type="password" placeholder="password">
x5
MutationRecord {oldValue: null, attributeNamespace: null, attributeName: null, nextSibling: text, previousSibling: text…}
only the last one is of interest:
it has a NodeList[4] , but the others have one of NodeList[0]
my code:
   var target = document.querySelector('body [id^=ember]');

    var MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver;

    var observer = new MutationObserver(function (mutations) {
      mutations.forEach(function (mutation) {
        console.log(mutation);
      });
    });
    var config = {attributes: true, childList: true, characterData: true};

    observer.observe(target, config);
13:31
Firefox, are you kidding me?!
it's your AV fault bro
when Firefox has done with downloading, it tells the AV to scan it before "releasing" the file in the download folder
nope. seems to be related to the malware site blacklist coming from google
but obviously a rar file containing mp3 files is a false positive... anyway, it's still incredibly stupid to first download the file and then check if the url is on google's blacklist
that's true
14:08
@BenjaminGruenbaum @BartekBanachewicz twitter.com/aisamanra/status/579040253169668096/photo/1 :D
2
wow
i discovered haskell recently, but that impressed me
15:08
posted on March 21, 2015 by admin

New comic! Today's News: OH MAN, rapidly closing on 85k, at which point Jeph Jacques will do an exclusive comic on the topic of monocles!

HI any one knows knockout.js
15:28
@JanakPrajapati there are people here who have used it, if you have a question go ahead and post it and if anyone can answer it they will.
15:45
hey @Loktar
kiss
kisses
lol
lul
how ya doin?
eh pretty good
bought a cheapo windows tablet last night
15:48
(i.e. how much)
@FlorianMargaine yeah its only like $150
runs full windows 8
oh yeah cheap
not rt, pretty cool
this kind of thing is usually slow though
I was watching some vids of people playing some older games on it
perfect for what Ill use it for lol
15:49
I see
also steam streaming works well I guess too
I'm playing with docker personally :D
@Loktar oh it's out?
yea
well, maybe you have to be on the beta channel idk, Ive had access to it for about a year now
but i think it came out for standard steam too
avg battery life is 5 hours
yeah doesn't seem too bad Ill mostly be plugged in anyway
that vs has a full size usb, plus a micro usb for charging
was watching some reviews on it, My wife is like you don't need it
Im like Cat.. I can play warcraft II in the car on a touch screen, that has literally been a dream of mine for 20 years or so lol
15:53
but if it's for playing older games, then it's ok
someone here has introduced me on OpenTTD
Man, he's the devil, got addicted to that
lol
but suggestion for games are welcome ofc
@Loktar Hahaha
@rlemon introduced me to Awesomenauts
I have 800+ hours of it on record, I believe
Stopped playing it about a year ago
hah yeah you guys played the heck out of that game
I want that time back :p
I could have used it so much better
But whatever, it was fun too

« first day (1617 days earlier)      last day (3556 days later) »