« first day (1894 days earlier)      last day (3278 days later) » 

00:17
@Trasiva if her work wants her to update IE, the are awesome.
old IE is the last remaining problem in the world.
also still a bit of poverty and war, i think.
so I went to the Amazon Books store this weekend. They had Amazon Echo there. I said "Alexa, play Never Gonna Give You Up by Rick Astley". Rick rolled a crowded bookstore. Aww yiss.
haha nice
I started at a place that has horrible development practices. They have no idea what's coming. I'm gonna be shooting git all over people's faces and making them like it.
@Luggage lol they even use GIT in DevDiv at MSFT
this is no MSFT.
some devs use team foundation, but only barely.
one old guy zips up code.
I see a gitlab install in their future
00:44
@Loktar well the 8x8x8 became
too tiring :-|
Gitlab is great
are they scared of "the cloud" AKA Github?
yea, but they deal with healthcare data so it's partially founded
we use virtual machines in a data center, but smaller data cneters, not AWS, google coud, azure, etc
yeah, I imagine HIPAA compliance is a bitch
AWS, for example, charges quite a bit more to deal with HIPAA
that's at least an ACTUAL reason not to go to the cloud
most places they're like PEOPLE MIGHT GET OUR VALUABLE DATA and my response is usually "so... you think that you are better at security than Amazon?"
00:48
right. They said something liek that, too, but I ignored it
while Google's UI is sexier, AWS is really nice
nice access control, UI and commanline ways of doing and automating SO much.
I have been digging Azure
never used it.
haven't dug deep into it but it's great for getting stuff setup quickly. They have lots of templates and pre-built VMs with all sorts of setups
the couch I want to buy is a month's worth of rent (while it's on sale)... too much?
@ndugger that will last you years
00:51
meh. i think my couch was about $2-3000, but i don't plan to buy a new one for a long time.
I had a $350 couch in Texas, and it lasted just over a year
@ndugger I think you should buy a nice bed, but unless you're sleeping on your couch, just get a sturdy cheap one
I just bought a nice bed, so I'm all set there
most expensive furniture is overpriced
you'll get more bang for your buck going to IKEA
if you want heirloom-quality, you're not gonna find it at a big box store
Ikea is ugly and uncomfortable
00:55
just like your mother, Trebeck
@ndugger I think if you really want it and you can afford it, you should get it.
if you're dipping into emergency fund or something like that to buy it, then don't
I found one thats a couple hundred cheaper at a different store; I think I'm gonna get it
@ndugger impossible to say based on price alone :p
Aye, I'm gonna go in and sit on it before I buy, for sure
I'd say also if you plan to move within a year or two, hold off on big furniture purchases
alienware desktops cost thousands as well
and people don't automatically assume quality
yeah good idea @ndugger
00:58
I went in and tested out beds before buying mine; made sure to get the perfect firmness level
@ndugger "tested"
they provided
01:18
!!afk nerf war
01:28
mandatory.
we recently worked out that we're way better at throwing nerf bullets than the guns are at shooting them
 
3 hours later…
04:47
@SomeKittens This has some interesting stuff: github.com/travisbrady/flajolet
05:02
 
1 hour later…
06:04
Me having some confusion ordering some async gulp tasks...
gulp.task('concat', function(){
  return gulp.src(['html/init.html', 'html/_*.html', 'html/end.html'])
    .pipe(concat('index.html'))
    .pipe(prettify({
      indent_size: 2,
      preserve_newlines: true
    }))
    .pipe(gulp.dest('dist'));
});

gulp.task('inject', function() {
  return gulp.src('dist/index.html')
    .pipe(injectReload())
    .pipe(gulp.dest('dist/'));
});
if I do gulp concat inject in the shell it seems concat waits until inject finishes...
How do you know that it waits?
ouput to stdout says so...
$ gulp concat inject
[11:42:59] Using gulpfile c:\code\opi\gulpfile.js
[11:42:59] Starting 'concat'...
[11:42:59] Starting 'inject'...
[11:42:59] Finished 'inject' after 305 ms
[11:42:59] Finished 'concat' after 453 ms
Idk much about gulp, but that's the thing about async file loading
It seems to me that it takes inject, less time to load it's files than it takes concat to load it's own files.
I'm willing to bet gulp provides something to manually sync it
06:21
just make one of the tasks a dependency
var gulp        = require('gulp');

gulp.task('task1', function(){
    console.log('task 1');
});

gulp.task('task2', ['task1'], function(){
    console.log('task 2');
});

gulp.task('default', ['task1', 'task2'], function(){
    console.log('task 3');
});
guess its small enough to post in here
yes I did rtfm and that does agree...
06:54
!!is jquery good yet?
@Shea Nuh-uh
07:07
Does this vm.product.name || vm.product.unit && vm.product.brand evaluate if either name or unit has value and brand must have value in a ng-disabled (angularjs)?
07:35
man.. I just blew $60 on 2 voodoo 3 agp cards for some new P4 machines I got today.... P4 mobos don't support agp 3.3v
wish you could return/cancel ebay items lol
such a noob mistake, I wasnt even thinking
07:46
some eBay merchants allow returns/cancelling depending on certain criterias, might be worth looking into.
Wow. Voodoo. That is from last millenium.
08:04
@Loktar surely you can cancel if you just ordered today
shirley
^ @Awal
@Loktar I've always hated that
var gulp        = require('gulp');

const task1 = () => // promise
const task2 = () => // promise
const task3 = () => // promise

gulp.task('task1', task1);

gulp.task('task2', function(){
    task1.then(task2);
});

gulp.task('default', function(){
    Promise.all([task1, task2]).then(task3)
});
import task from './build/task';

gulp.task('task', task);
I have something like this:
const bundlers = [{
	rev: [
		devModeSave,
		deleteDevBundles
	]
}, {
	root: RootBundleBuilder,
	default: BundleBuilder
}, {
	bundles: distConfigBuilders
}];

const builders = [
	jspmConfigEdit,
	AssetsBuilder,
	configBuilder, {
		bundles: bundlers
	}, {
		bundles: IndexBuilder
	}
];
where objects/sets are parallel and arrays/maps are serial
and map/object keys are used to enable/disable tasks based on options
I like it
crl
crl
@AwalGarg digged back, I'll be using jsfiddle.net/crl/gdmfgtg4/6 hehe
@MadaraUchiha didn't not lol
@crl Always amazed at your mysterious abilities to ping me just when I arrive at the room :P
crl
crl
it was a random ping :)
08:49
@pootis yo mischievous lil kid :P
@Mosho nope not on Ebay
unfortunately
I mean I could reach out to the individuals.. but meh
those are pretty awesome
steam controller skins
09:04
@Loktar are you sure there's not an option to cancel it in your purchase history?
nah not on Ebay
Its a contract between you and the seller
its alright though Im sure I'll find a use for them lol
I recently had to cancel an order, however in my case the the payment was still pending.
and it was a buy now order, not a bid.
@MadaraUchiha lmao
getting ready for a family lan party for Christmas
09:14
hey there
anyone has any idea of how could I group jsons by a property?
here I elaborate better:
@MadaraUchiha I reckon they are all lounge regulars?
@AwalGarg Yup
I have and array like this:
`[{unit: 35, brand: 'BADGER'}, {unit: 35, brand: 'CENTURY'}]`

What I want is to display the following in a table: `unit: 35 brand(s): BADGER, CENTURY`

Any idead?
@MadaraUchiha is it that userscript, by any chance? :P
09:21
@AwalGarg Why does it resolve to an intermediary snippet/template/thingy before actually resolving to the link?
@MadaraUchiha Mmmm, no, I don't think that would help that much, what if they are interspersed
@feniixx interspersed? As in, you have undefineds in your array?
crl
crl
@Awal one question, actually, I have an event listener on the document (for listening all new elements), but I can't figure how to access the object I have clicked (the <td> that is under the placeholder) jsfiddle.net/crl/gdmfgtg4/12
(you need to click on the vertical bar, a kind of column resizer)
@MadaraUchiha No no.. how would you use reduce() in my case?
eh... dat MIT license for code contribution on SO
09:24
@MadaraUchiha it "imprints" that segment of the text, so you can continue typing rest of the message, and still replace the original command confidently
crl
crl
wait it seems to work, nvm
@crl e.currentTarget should be it
crl
crl
yes that thing is what I need
I didn't actually look at the fiddle, though :P I am messing up with my completely working system because I dunno :/
@feniixx Array.prototype.reduce() is there to reduce an array of values into a single value.
crl
crl
09:29
fu Awal :p, nah it's fine
@MadaraUchiha Oh, but I don't want a single value of the whole array, I just want to mix the ones with same unit value
crl
crl
.filter
filter might be
0
Q: Group values on same property

feniixxI have an array like this: [ {unit: 35, brand: 'CENTURY'}, {unit: 35, brand: 'BADGER'}, {unit: 25, brand: 'CENTURY'}, {unit: 15, brand: 'CENTURY'}, {unit: 25, brand: 'XEGAR'} ] What I want is to mix the jsons with same unit value, joining the brands comma separated, so that...

wtf, why would someone downvote the question...?
yay, natural scrolling works!
"This question does not show any research effort" - asking how to do something on Stack Overflow itself doesn't constitute research. — James Thorpe 5 mins ago
there is people whom downvotes directly if they see no effort
09:45
alright...
Hi. I've got a little problem; i dont find the error in this code: http://jsfiddle.net/ejn99rks/
Can you take a look on it, so you will maybe find the error?
10:21
@ndugger : relevant
crl
crl
@AwalGarg wat
crl
crl
it scrolls automatically according to your mouse position?
no, the scroll is just natural
duh
crl
crl
so scrolling works on arch, ok good news :))
10:23
It calculates the most interesting part of the screen which my brain would naturally want to look at, and scrolls to that point
crl
crl
ah fu :)
crl
crl
!!> Object.assign({}, ...[{unit: 35, brand: 'BADGER'}, {unit: 35, brand: 'CENTURY'}])
@crl "[object Object]"
@AwalGarg So, all it does is search for shirley and scroll to the first result?
10:34
!!> JSON.stringify(Object.assign({}, ...[{unit: 35, brand: 'BADGER'}, {unit: 35, brand: 'CENTURY'}]))
@FlorianMargaine "{\"unit\":35,\"brand\":\"CENTURY\"}"
@pootis yeah
oh grate
I will grate you :P
anyone like the new fetch api?
10:35
is it still a thing?
I thought it was abandoned
lolwat
crl
crl
it's good except for upload progress events that don't exist
but the word 'fetch' is a bit oriented toward 'GET' imo, but it does all http verbs, except th e thing above
i didn't have played with that fetch api, but judging from the MDN ... it is same as promises ?
@KarelG promises?
crl
crl
it is some promises yes, that's maybe why the onprogress thing was hard to do
10:42
some.
!!tell pootis mdn promise
cries
then the fetch api is obsolete
why?
only thing about it that was annoying was the amount of double then commands I had to use
crl
crl
10:45
hehe, same here, you could make a function to do the double things tho, or overload nastily but Madara doesn't like it :p, kinda right tho
10:56
@KarelG not really
maybe you can give an use case
where the fetch should be used over promises
the whole API is just nicer overall
it's like using urllib vs requests in python
promises has nothing to do with fetch
1 message moved to Trash can
@TechTreeDev Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com or pastie.org
did you try "i/check.png"?
11:01
fetch uses promises though
@CapricaSix Ah, I didn't know about this shortcut
@SuperUberDuper Yep, still no change
crl
crl
@KarelG you mean fetch vs a custom XMLHttpReq Promise?
yea they can be mostly the same, even better ^ to support again that onprogress thing that I'll need soon
crl
crl
11:17
why can't getBoundingClientRect() of an element hidden (dipslay:none) can give the 'good' top and left values.. (it gives 0)
xhr is better than fetch because it allows synchronous requests :-P
synchronous requests in javascript is rarely used
@crl : thx for some explanation
crl
crl
11:33
if you have an element relatively positioned on the page, and you hide it, .getBoundingClientRect().left returns 0, but not when the elemnt is visible
Hello there, I am using angular2.0 for my project development in that i have been working on the binding the items using loops. I am getting exact results what i want the issue is i am getting number of errors in console. any idea why this is happening? One assumption i made was it tried to bind every single thing and every time it doesn't get exact perameters so that is why its getting this error. Is that true?
crl
crl
11:50
Ok I'll need a way to read all fa-* classes of FA css file, I'm too lazy to list them manually
can you get a stylesheet by its url, rather than an index document.styleSheets[i]?
yea, checking href ok
crl
crl
12:03
doesn't work with file:/// I guess
12:34
anyone know how to get express to understand deep linking?

eg I have app running at localhost, but I want express to return the same app even at URL localhost/foo/baa
Uhm.. so.. you.. want to mount an app under a different route?
yes
I don't want 404 from server
I want the root app returned
Last one:

app.use(function(req, res) {
res.redirect('/');
});
12:51
cool thx
@PhytonLover 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.
@PhytonLover 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.
1 message moved to Trash can
@PhytonLover Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com or pastie.org
@PhytonLover 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.
Ookay cap, calm down
anyone up for some maths? I got a pretty weird thing... so this is a normal smoothing function, right? Takes an input between 0 and 1, and an output between 0 and 1 but in a smooth way
everything is fine, and we usually use that instead of this:
crl
crl
@FlorianMargaine @DenysSéguret Vous savez pourquoi les Maxence ont souvent raison?
the red line has the same input-output range, but it's not smooth, it starts and stops all of a sudden
a while back I thought to myself, isn't the y distance between the two lines a wave within itself? So just by subtracting them you get the yellow line
crl
crl
13:02
make it tangent, wait reading...
by scaling it a bit and comparing it with a negative sin function with a double frequency you get this
they're pretty damn similar
and I bet that I would get a continous smooth wave if google graphs allowed me to use x % 1 instead of just x
crl
crl
do you mean sin(x) vs a /\/\/\/ (between -1 and 1) non differentiable function?
because y=x is unbounded
the only way to find out is by comparing the derivative at x=1,0 and see if they are the same
@crl ? nothing to do with that I think
apparently the derivative of the function is pi * sin( pi * x ) - 1, right?
and indeed it appears that it has the same value at 0 and 1
so this is another totally valid wave, right?
@crl the only Maxence I know is retarded
does it have a name? Wouldn't even know what to google
crl
crl
13:11
@FlorianMargaine hehe.. (because they maxence (makessense))
@towc yea that's a a good local approximation, wouldn't you prefer a polynomial for that?
Hey guys really quick question, there is this guy thats getting connected on my Mom's personal apartment router, even though it has password set to login. he pretty much messes everything up and take all the bandwidth, not letting my mother using the network at all! i would like to gain access over his computer through the router to, is that possible in any way? not a typical question i know but i tried almost everything but that... help is appreciated!
@crl well, wolfram alpha gave me that... still haven't learnt about polynomial extensions or whatever those are called, but are they really needed?
crl
crl
a good polynomial approximation of a function is simply his Fourier series at this point
but you can find more global approximations by fixing several points where you want it to match the other curve . Curve fitting is a whole thing, never really learned that
I have 25 games in my cart that come to a total of 23 dollars
I like steam sales
there are no daily deals
fuck this shit
crl
crl
13:22
why the hell:
var rules = document.styleSheets[0].rules || document.styleSheets[0].cssRules
for(var i=0;i<rules.length;i++) {
  console.log( rules[i].selectorText );
}
throws Uncaught TypeError: Cannot read property 'length' of null, it's supposed to be there
because rules is null :D
document.styleSheets[0].rules || document.styleSheets[0].cssRules
null
learn to debug
crl
crl
yes but.. I saw it on SO :p </noob>
and that's a good excuse for asking us before debugging yourself?
crl
crl
no but I'm curious to know why I can access the stylesheets, but not their rules which are always null (Chrome)
13:26
the maths room in stackexchange seems dead :/

 Mathematics

Associated with Math.SE; for both general discussion & math qu...
@crl probably cross-origin styles
crl
crl
yea totally ah right, (FF gives SecurityError: The operation is insecure.)
makes sense that you can't modify remote css :)
to solve this, you need to ask chuck norris to execute that command for you
crl
crl
@towc they don't reply easily to newcomers
s/newcomers/lowly people like yourself/
crl
crl
13:29
you need to really trigger their curiosity
!!urban lowly
@towc lowly low, duh.. normally used in a negative context with the intent of bashing someone.
Accurate
what do you mean by "low"?
The opposite of high
Near the ground
Dirt
13:33
that's some badass logic
it's actually pretty sound.
13:52
Guys, what lib do you use for URL manipulation?
parsing, replacing arguments in URI
anything more compatible maybe?
use them and add a polyfill
Morning guys
for (var i = 0; i < 3; i++){
    console.log(i) // Prints 0, 1, 2 Just like expected
    (function(k){
        var fr = new FileReader();
        fr.onload = function(){
            console.log(k) // Prints 0, 2, 1 Why is that so ?
        }
        fr.readAsDataURL(files[i]);
    }(i);
}
Please check why is it happening ?
crl
crl
14:04
@gskema document.createElement('a')
a good vanilla lib
Anyone knows ?
@ZahidSaeed What's your question?
crl
crl
why the closure?
and it's async, dat's why
@Enijar The value of variable 'k' inside fr.onload is printing 0, 2, 1
@crl Can you explain a bit ?
I googled it, they told me to use anonymous function
They said that the loop wouldn't wait for the FileReader() to load the image then continue to the next iteration
@ZahidSaeed As @crl mentioned, it's async so the code within fr.onload is only called once it's loaded.
14:08
@crl because closure loop bug.
do i need to learn typescript first for easy understanding to learn angular2 or angular2 just uses a part of typescript
it would be 2 2 2 otherwise
@FlorianMargaine Exactly !
@sivashanmugamkannan TypeScript is optional, but Angular2 is nicer to work with using TypeScript.
@Enijar So what should I need to do to make it print 0, 1, 2 ?
14:10
which will become most popular angular using js or ts. any idea or suggesion @en
crl
crl
@FlorianMargaine ah yes, (could use let :) )
hmm dunno actually
@ZahidSaeed because onload is called when the file is loaded. If file 1 is loaded after 2, then it's obviously going to print itself after 2.
@FlorianMargaine What's the solution then ? How to make it sync ?
there are several ways you can do that:
@enijar
any idea
14:12
@FlorianMargaine Like ?
1. download 2 only after 1 is downloaded
2. do the downloads in parallel, but ensure the order in some way
in both cases, including promises in your code would greatly help. Otherwise you're going to have to think about it and code.
@FlorianMargaine How ?
think about it.
what are you paid for? aren't you a developer? you're paid to think about it
so do your job
@FlorianMargaine Are promises builtin in jQuery or they also exist in javascript ?
I mean promise() is already in jQuery
14:14
hear hear, there's a great tool called google!
@FlorianMargaine I know !
then use it.
savage
@FlorianMargaine One last thing, is it possible to check if it is the last iteration of the loop ?
crl
crl
quick poll who have ever heard of uikit before? getuikit.com (expects noone :))
14:17
I've heard of it
yeah, I did
crl
crl
ok thanks, hmm I don't like it so much personally (like a copy of BS with some imperfectins)
i didn't
@crl Heard of it, never used it.
@ZahidSaeed it's not difficult to find out the answer if you try to think a bit. Or google it ?
14:18
hmm ok
But thanks guys
@crl Used it, but Foundation's better.
crl
crl
ok, so even uikit < foundation < bs :p
	return [
		checkbox
		checkboxLabel ]
What the hell was wrong with me last year
@Cereal alcohol
in PHP, yesterday, by Alma Do
Well, all mobile phones have soul. Not a nice one.
14:35
_onKeyDown = (e) ->
	#TODO: split this into seperate functions
Well that never happened
lol Tommy Chongs reddit AMA is funny
who is Tommy Chongs?
can anyone give an answer for this please stackoverflow.com/questions/34409527/…
throw an aprostraphe in there for me Florian lol
please can u give an answer for that. i tired to fix it
14:44
@DininduWanniarachchi we see your link, please don't beg for help
Those that can and are willing to help will
sup folks
@DininduWanniarachchi Try changing:
if (document.readyState === 'complete')  to :
if (document.readyState === 4) {
    loading.complete();
}
@ShotgunNinja good morning
@ZahidSaeed no.
not working
loading doesn't removed
14:54
@DininduWanniarachchi I'm checking wait
@DininduWanniarachchi I got it
You are using window.onload = function()
Which will always trigger once the document has fully loaded
in other words WHEN THE 'readyState' is "complete"
Therefore you insert the paragraph in the DOM but only WHEN the document has fully loaded.
The readyState has already triggered before window.onload event
Therefore it couldn't find the paragraph with the id of 'loading'
Now in order to verify it, try removing the line 'window.onload = function()'

« first day (1894 days earlier)      last day (3278 days later) »