« first day (1956 days earlier)      last day (3217 days later) » 

21:00
I see that it could send a message to customers that your shit isn't as private as you'd want it to be, but... at the same time... we're dealing with terrorism... people's lives... at least extract the info and send it along, just don't give them the capability to do it themselves.
@ton.yeung This is a way for them to be able to guess your password unlimited times if they have access to your phone. Not just remotely suck all your information down. It would need some good design so that credentials good be verified, but it definitely needs to be restricted to a physical situation.
tin foil hat
sure, but i can care less
What is the government going to get off of my phone that is going to be a problem for me?
if i'm doing something illegal and they find out due to that, so what. i shouldn't have been doing said illegal activity.
@KevinB so what you mean to say is, you do care a little
@ton.yeung I got a letter in the mail a few months back that in that big hack of military data my stuff was potentially touched. Do I worry about some extremist showing up at my place? No, why? Because it's all public domain anyways.
the point isn't "I got nothing to hide" because then the entire notion of privacy is lost. we should encourage privacy out of principal, because as others have said it is a slippery slope
21:05
@ton.yeung No, because my social's practically public anyways.
For fuck's sakes, it's ON OUR MILITARY IDs.
Although that is changing.
I don't think I really understand class binding at a low level :|
@Trasiva the only people who have my si number are employers, my bank, and my mortgage company
ohh and the MTO
motor transit office
or of Ontario or something
I think it's actually called "Service Ontario" now
@rlemon Technically the list should be that small, but in the military your SSN is used for EVERYTHING from making appointments to identifying your urinalysis specimen.
but I grew up with MTO's
For me, it's less about the data itself and more about the choice of how it's distributed. If other people choose how my data is distributed, then it's no longer my data. I want some modicum of control over who knows what about me.
21:08
@Trasiva don't you have tags with an ID on them? why would they use something like your SI number aside from matching those two up on their database?
There are things I tell friends, but not coworkers. There are things I tell family, but not friends. There are things I tell no one. And it's my choice. It's about agency.
I don't care how its used (to a limit), I care more about knowing so.
^ that too
google tracks the shit out of me. but (for the most part) they let me know
@rlemon You mean our dog tags? Yea, those have it too, but usually you don't wear those all the time. When deployed you usually keep one on a boot lace, and the other on a necklace.
21:09
@Trasiva ah, my understanding is that those were worn 24/7
at least, they did on MASH
@rlemon That's because they were deployed with a chance of regularly dying.
Hehe... that wording is funny.
I knew a guy who died on the regular. Just kept coming back though.
lol, @Loktar remember when they regularily died?
@ton.yeung I just look at things a little differently is all. In this day in age, if someone wants your information, they're going to get it. As Lemon said, privacy is just a very thin comfort blanket these days.
21:17
!!urban wunch
@phenomnomnominal wunch a gathering, a group, or a gaggle of people that work in a financial institution.
@phenomnomnominal lol
lulz. A wunch of bankers.
Fucking finally got a signal
@SterlingArcher bat signal?
21:18
Data collection has begun, and if anybody touches my mobile hub I will destroy them
Is @SterlingArcher Batman?
GPS signal lol
@rlemon it was a barrel of laughs
crl
crl
typical case of people over-engineering (using frameworks without need) discuss.reactjs.org/t/…, and not answering the problem, but thanks to him however
@Loktar I prefer monkeys
21:22
That's disgusting
North Korea
@rlemon I knew there was something off about you
@Loktar I know. parity error. fucking sucks.
I'd expect a lemonity error, surely
m59
m59
function foo() {
  return bar().then(function() {
    console.log('this happened')
    return 123;
  })
}

foo().then(function() {
  console.log('but not this')
})
I can't explain this.
21:27
s/i/par/
> Fucking sucks. - rlemon, 2016
typical non ECC BS @rlemon
I can use random acronyms too Loktar
@m59 any errors?
m59
m59
nope
21:29
@m59 bar returns a promise, which is resolved when foo is resolved
@Loktar try/catch -> call it a day
The problem is, foo isn't returning a promise
So there's nothing to resolve
.then should technically return a promise
right?
m59
m59
chicka wha?
no?
jordan pls
21:30
then returns something?
m59
m59
Yeah.
I thought it required an explicit promise return
it would have to if you can chain it
foo().then(bar).then(baz)
Ohhh... I think I know
just return the value
it'l chain on
shouldn't he return bar instead of chaining then inside foo?
21:32
function foo () {
  return new Promise(function (resolve) {
    bar().then(function () {
      console.log('whatever');
      resolve(123)
    });
  });
}
try that
:D told ya
I had a thought that made sense, and now I'm not so sure it matters
m59
m59
whaatt
I'm too ADD right now
m59
m59
21:33
that should never be necessary.
just try it; humour me
@m59 why?
m59
m59
I've done this a thousand times
so have I
But bar is already resolved -- there's no then to trigger
21:33
?
foo returns an integer, not a promise
m59
m59
It's irrelevant
no... foo returns bar().then(), which is a promise
bar being resolved doesn't change that
m59
m59
Nonetheless, I can change the integer to Promise.resolve(true) and it still won't trigger the foo().then cb
my fiddle does... all i did was define bar as a function that returns a resolved promise.
21:35
@KevinB that doesn't make sense to me -- 123 is being returned, not bar?
123 is being returned to the .then(), which makes the next .then(function (r){}) have r equal to 123
so r in foo().then(function(r){}) will be 123
m59
m59
You guys are confused :)
m59
m59
You can return a value from .then. That has nothing to do with the problem.
21:36
@m59 dude... even without my "return new Promise" junk, it still works. Your minimal example works
Cannot reproduce
m59
m59
Exactly.
It makes absolutely no sense that this can happen.
unless maybe you're using a promise framework that isn't following standards in some way
But Nicks fiddle is exactly what I suggested. Remove the promise, and then is undefined, meaning foo is not returning a promise
m59
m59
bluebird
21:37
Nah, even his original code works
original code is in this fiddle, and it works with native promise without having to create a promise in foo: jsfiddle.net/ntjcb7on
@m59 since we cannot reproduce with your minimal example, mind pasting your actual code somewhere?
m59
m59
oh my dern
i feel like i'm getting trolled
m59
m59
maybe i found the problem
21:38
Ahhhh he wasn't returning bar
@KevinB it's because you're about 10 messages behind in the conversation
he was just calling it
m59
m59
no
guys, pls
wait he was
da fuq
21:39
@Loktar bro! I found a pic of you from back in the day
m59
m59
nope, didn't find the problem
his minimal example is working just fine; the problem is in the real code
+1 on the ducktales (a woo hoo)
m59
m59
The real code is just like that, but with real names
@m59 can you humour me and paste the real code somewhere to show us?
21:40
YOURE AMERICAN NICK. DROP THAT U THIS INSTANT
m59
m59
gimme a few, gotta do some non code stuff
add a .catch
Damn Canadian wannabe
@SterlingArcher Dude, I always spell with a "u"
because it sounds like an error may be occuring
21:40
@SterlingArcher who doesn't want it
!!s/Canadian/rest of the fucking world/
colour, neighbour, favourite, etc.
@rlemon Damn rest of the fucking world wannabe (source)
narc
Color. Neighbor. Favorite.
Freedom smells great, boys.
The only time I omit the "u" is when I work on academic papers, when they only allow American spelling.
21:41
@SterlingArcher Here in the most free country in the world we spell them correctly.
I think it's kinda ironic how america is all about "Freedom" but houses the majority of the worlds prisoners :P
You mean the most free country, where you're a slave to nature and all that wants to kill you?
@SterlingArcher that's Australia you muppet.
New Zealand isn't trying to kill you
!!youtube Newsroom opening scene
Tell that to Komodo Island!
And Tazmania!
@phenomnomnominal the killer kiwi's of '05 left right?
go home cap, you're drunk
!!undo x2
@SterlingArcher is a stellar example of the amazing American education system.
I often rewatch the opening scene to Newsroom to remind me how shit america is
arr.push({foo:foo,bar:bar})
// I can do in es6
arr.push({foo,bar}); // right?
21:44
Hey I'm more educated than most
@rlemon yup
@ton.yeung Well uh...damn...
@rlemon arr = [...arr, {foo,bar}];
For maximum fanciness.
!!s/fanciness/work/
@rlemon For maximum work. (source)
21:46
@rlemon On whose part?
I still don't understand the spread operator
both
spread is amazing
@SterlingArcher this is my point.
@ndugger it is
21:47
const sandwich = [...peanutbutt, ...jelly];
!!> let foo = [2,3,4]; [1, ...foo, 5]
I'm not even gonna correct that typo
@MadaraUchiha [1,2,3,4,5]
@SterlingArcher ^
That's pretty much all there is to it.
but for a simple push, why would I create a copy of the array
more work than is required
21:48
@rlemon For the fancy
Nah, I'm joiking, push works well if you don't enforce immutability.
what's the right way to read a text file in javascript?
With NodeJS
@SterlingArcher client side
the right way then would be the only way to do it.
21:49
xhr to the server and return the file
FileReader API
ok, I was thinking on FIleReader
activex components
then you get that nice IE6 support
Dat sweet IE6
21:51
@rlemon ++ recommended
mmmm mmmm
fuck fuck fuck forgot to ignore node_modules
:/
did you just gitpush your entire node?
@rlemon Did you push?
yup
21:54
I've done that
rolleronback
no worries. it's a private work repo I only see
@rlemon Ah, so reset and forcepush all the way
I mean, it's just node_modules
Unless you have custom modules in there
with sensidata
@MadaraUchiha thecodinglove?
21:56
@MadaraUchiha Oh my god, I hope he used lube.
@Neoares google
wait
@SterlingArcher The other bus's face makes this
21:56
is ninja a TLD?
And to think, the internet once never existed
@KendallFrey :D
I imagine people used to be not as funny
@rlemon Did you see the video where Buzz Aldrin punched the crap out of that guy who was trying to get him to admit the moon landing was faked?
21:58
yup
he's got a tight hook
@Trasiva Buzz*
not Bull
@m59 add an error handler. if the success isn't running, and you're not getting an error in the console, either the promise rejected for some reason or it isn't resolving.
I mean, I get it, the L and Z keys are right next to each other-- ohwait
@ShotgunNinja ha, my brain just corrected it for me
have you seen a laptop with mecahincal keyboard?
the other day I saw one, just for 4700€
21:59
!!afk 5pm
@ShotgunNinja This is why you shouldn't chat drunk.
argbarg can't keyboard today
m59
m59
@KevinB no errors. Adding the .then there somehow prevents the other from firing.
It's unimaginable.
m59
m59
return foo() works, but return foo().then(x => x) breaks it....
22:02
yeah that shouldn't be happening... there's gotta be something else going on
crl
crl
I think you could save Promise.promisify(kurento) in a variable
instead of recalling it each time
the only way i can recreate the problem is by returning a rejected promise rather than client, or throwing an error, both of which would be caught by a .catch()
!!afk Blahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
m59
m59
@crl yeah, but that wouldn't matter
crl
crl
yea just saying
m59
m59
22:05
hmm, just uninstalled bluebird and reinstalled and it errored
betcha that has something to do with it
What does the state property of the promise give you after a couple seconds?
m59
m59
Promise {
  _bitField: 201326592,
  _fulfillmentHandler0: undefined,
  _rejectionHandler0:
   Promise {
     _bitField: 1,
     _fulfillmentHandler0: undefined,
     _rejectionHandler0: [Function],
     _promise0:
      Promise {
        _bitField: 1,
        _fulfillmentHandler0: [Function],
        _rejectionHandler0: undefined,
        _promise0: [Object],
        _receiver0: undefined },
     _receiver0: {} },
  _promise0:
   Promise {
     _bitField: 1,
     _fulfillmentHandler0: [Function],
How do I search google just for scholarly journals?
m59
m59
So, anyone know what's up with this node-gyp rebuild error?
22:15
@SterlingArcher He didn't mention anything about the first floor
how can I create a Blob object from a local txt file?
or a File object ._.
have you googled that?
yep
and searched on mdn
input type file, onchange, filereader, read file, blob
yes I want to use filereader, but I needs a File or a Blob
I read that too xD
let me re-read
ffffff they are always using inputs as file source
I'm gonna sleep better :)
yeah well you have to
but you can hide it
and just drop files
but
I only want to read a local file
didn't know it was that hard :/
I expected somethinkg like filereader.read('localpath')
@AwalGarg you idiot facebook.com/bollymirchiofficial/photos/… look at this :P
lol bin laden
Jesus fucking christ i needed that
22:54
@Neoares problem with that is if it were possible, then the page could simply read local files on your pc at will. the file input forces the page to ask the user for permission.
in the form of requiring a file drop or a file select dialog
@KevinB so true :P
+10 reps to you
Now is when I realize I've never read a local file on JavaScript :P
too much python
This is what evil looks like:
I have some code that looks like this:
} else {
        throw new TractorError('Unknown operation');
    }
})
.catch(TractorError, error => errorHandler.handler(response, error));
bluebird isn't catching my custom error :(
anyone have thoughts? cc @BenjaminGruenbaum
22:57
@rlemon how is that suposed to work? ._.
This kills the network
export default class TractorError extends Error ...
inb4 dead PC
motherfuck. Of course extends doesn't play nice with Error
@KendallFrey do you play with RemoteTech?
is there some guide to satellite design / position ?? I have 10 in orbit (~90-130km, ranging inclinations) and it looks like I'll need almost ten times that in order to get good coverage from the 'dark side' of the planet
what's your best guess at periapsis??
400km?
23:17
anyone willing to help writing regex that needs to match ipv4 starting with 10 along with subnet omitting default gateway, so:
"10.110.144.1" discard default gateway
"10.110.148.115" accept
"10.110.136.39/24" accept
have for now, '10\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}'
yesterday a sales man from my internet company told me the new router they're gonna send me has a scope of 150m^2
I asked him if it's 150m^2 or 150m radius
and he was like... "wat? idk just reading the specs from this sheet"
GUYS!
@Neoares lol, that's like a 7m radius
Is it possible to stream a json file and display its data while doing so ?
!!> Math.sqrt( 150 / 3.1415 )
23:21
@towc "ReferenceError: sqrt is not defined"
or should i just dump the gameplay record to twitch / youtube ?
@towc 6.909984886727916
@towc yes, buy maybe 150m radius is too much :/
150 is definitely not possible unless you are chief of cern
yes and then he said
23:22
you've been pwned
yep, 150m^2 horizontally and vertically
and I was like... shouldn't be that m^3?
LOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOL
I hope you asked for moral damages fines
in that case 150m^3 it's horrible
almost
is there a way to do the math.pow without using any module? like 2**3 in some languages?
!!> Math.cbrt( 150 * 3 / 4 )
@towc 4.827446923028149
23:26
that's pretty bad, yeah
what if he said that it worked in 4 dimensions?
but you use Math :/
lol
well, it does since the 4th dimension is time
that was the answer to the radius, not to the pow ;)
@Neoares it damn better do
oh ok
well, probably there is
what about klein bottle?
23:28
oh yeah, you'd need to use binary search
I guess it's what Math.pow uses for non-integer values
or well, Math.pow( x, 3.5 ) = x^3 + x^.5 = x*x*x + Math.pow( x, .5 )
@rlemon I have used it. I can give you some tips later
just the tips?
so it only needs to do it for things between 0 not included and 1 not included
I'd like to have the ** syntax
ONLY THE TIPS
damnit @rlemon :p
23:30
@Neoares well, you can implement the algorithm and then not use a module like Math ;)
I think ** is coming to ES7
!!> Math.pow((150/3.141555),1/2)
@Neoares 6.909924399034371
!!> Math.sqrt(150/3.1415)
@Neoares 6.909984886727916
23:34
is this news for you? XD
Math.sqrt is slightly optimized
no
I mean, just wondering, didn't know :D
it's a special case of the non-integer power, so it can do a few things to make the calcs easier on the pc
ending up in possibly different values
oh wait...
since when is PI = 3.141555?
yes, sometimes binary makes things harder
!!> Math.PI
!!> Math.pow( 150 / 3.1415, .5 )
@Neoares 3.141592653589793
@towc 6.909984886727916
23:36
@towc They simplified it a while ago
ok, this value matches Math.sqrt
!!> Math.pow( 150 / 3.1415, .5 ) === Math.sqrt( 150 / 3.1415 )
@towc true
0
Q: regex, match private ipV4 starting with 10 with optional subnet

SrleTrying to match any private ipV4 address that start with 10 and optionally ends with CIDR notation omitting default gateway, such as: 10.123.123.123 match 10.12.123.1 do not match because it ends with .1 => default gateway 10.12.123.2 match 10.123.123.123/23 match What i have for now is matchi...

lol I wrote 3 fives
@OliverSalzburg now I get your joke xD
23:50
@Loktar all 12 bulbous tips
@rlemon Alright, hit me. Why would you need 100 satellites to get coverage of the planet?

« first day (1956 days earlier)      last day (3217 days later) »