« first day (2351 days earlier)      last day (2599 days later) » 

3:00 PM
you could argue that parameter initialization is unnecessary as a whole
and I don't see why it's impossible
 
or foo(argP) { const arg = await argP;
 
maybe hard to implement around the existing implementation
 
what happens if the await throws?
 
you can call regular functions that can throw
 
what happens if you put that syntax in a constructor?
those can't be async
 
3:01 PM
you can put async stuff in a constructor
though you shouldn't
 
you can't make the ctor itself async
 
@Mosho I don't think you can have an async constructor() { though
 
having await requires returning a Promise
 
so.. i guess I am going with type guards.. I find it redundat, but it still makes more robust code and then TS knows my types..
 
constructor can't do that
 
3:01 PM
if (typeof productionSheet.workDescription === 'string') {
    throw new TypeError('productionSheet.workDescription should be pre-populated');
}
productionSheet.workDescription.foo // works
 
@ssube sure, but why does it matter
if it can't be async in the first place
it would be moot anyway
 
@Luggage Maybe you need to better define your types
 
since you can't have await
 
@Luggage I find that most of my typeguards, the alternative is throw new Error('this should never have happened')
 
without async
 
3:02 PM
Can you explain the scenario again?
 
@Mosho because the syntax for parameter defaults is shared between all functions
 
@ssube In that case just cast let foo = bar as string
 
@MadaraUchiha that hides any de/serialization bugs tho
 
I do want the type check, the alternative should never happen (but does often while breaking things)
 
3:04 PM
@Luggage They don't, I still don't understand where those types apply in your API, or what the other options are.
 
@ssube it would still not be ambiguous, since not being able to have the async keyword would enforce not having await in the arguments list of a constructor
 
The withRelated changes the return type?
 
withRelated returns an object for that key instead of jsut an id: string for that key
 
@Luggage like I said, you can do a cast
 
If I was re-doing it, i would likely make them two seprate properties
 
3:06 PM
@Mosho that would make the grammar so much more complicated for no reason
 
@Luggage Use a function overload in that case
 
@Mosho yea.. A cast wasn't working for those the other day but is now. I was doing something wrong. IT keps telling me it can't convert to the type
also a type guard is working.
 
@ssube maybe, but it's not impossible (which I take as an ambiguity)
 
So.. I'm good. I was resisting a type guard because I considered it redundant, but I have changed my mind.
 
a type cast is a smell anyway
sometimes it's just a compiler bug you're smelling, though :(
 
3:08 PM
I think that having something that can be two different types is the smell
 
I'm not 100% happy that I re-use this property the way I do, but I want to convert more code to typescript before refactoring such things as it'll help.
@Mosho I won't argue that. Sometimes I make code that isn't perfect.
And have to live with it for a while, while I carefully untangle so as not to make things worse.
 
@BenFortune ugh it's so janky
either my bte drivers suck, or I suck.
 
spotty on connecting
 
@Luggage that sounds responsible
 
3:11 PM
@Luggage That uses the ambient version of a function declaration, but with an actual declaration, you declare all the overloads, then the actual implementation that provides correct return values.
 
@MadaraUchiha yea.. i was thinking about that.. only in reality there are multiple props that do that, they refer to different types.. and.. they can be nested.
 
@Luggage any
And use casting on the lower level
 
['workDescription.workType.facility', 'user']
 
And refactor the method when possible.
 
that one does 3 levels deep
 
user7480455
3:12 PM
Hi can I ask a question about Ajax or Json and how it works with mvc?
 
@rlemon Can't you just wrap bluez?
 
that's what bleno does
I don't think it is the node lib
 
@Luggage Yeah, so do what we did with Immutable's .getIn()
 
I connect, can discover the services and shit, but then I immediately disconnect.
 
You make the type of object2 any, and cast it on the lower level, until you get a chance to refactor.
 
3:13 PM
Hmm
 
Alternatively, you can make byId() generic and pass the type explicitly at call time.
 
yea...
 
user2620028
@rlemon found a cbc channel that tries to debunk scams, it just targeted fuel grades and is giving really one sided information
 
I just randomly got the bronze JS badge... about time
 
3:14 PM
But I prefer the explicit any because it gives me a linting error that I know to forget to address later.
 
aye.
 
@BenFortune I'm writing a peripheral
 
user2620028
also sorry for the double ping, tried to autocomplete the mention and it sent instead lol
 
Day 3 without registry.npmjs.org... it might be unblocked by EOD guys!
 
@HatterisMad I only buy lowest grade
 
user2620028
3:15 PM
thats what they recommend as well
 
user2620028
but for some reason they forget to mention that it's not a universal blanket statement that they can make
 
> Connecting....
Discovering Characteristics...
Disconnected.
ffs
 
@rlemon Pretty much all car manufacturers explicitly tell you "Buy the normal fuel, no additives, no premium shit" etc.
 
@FilipDupanović neat
 
3:17 PM
pi@raspberrypi:~/Development/simple-led-example $ sudo node app
on -> stateChange: poweredOn
on -> advertisingStart: success
on -> accept: 55:7a:e7:2b:bc:28
on -> disconnect: 55:7a:e7:2b:bc:28
@BenFortune :/
It sees the accept, and the disconnect...
 
bt needs sudo?
 
yea 😒 device shit
 
additives? never. premium? some cars, yes (but normal won't hurt a modern car, it'll adjust)
 
pi@raspberrypi:~/Development/simple-led-example $ node app
bleno warning: adapter state unauthorized, please run as root or with sudo
 
@Vap0r quickest way you can try is npm_config_registry=$url npm i foo
 
3:19 PM
Somehow in installing webpack-dev-server I lost the ability to use webpack.
 
@rlemon Do you have to send anything back on the accept?
 
A solution online said to use "npm link webpack" as a command in order to get it back, not sure what happened.
 
the api provides no callbacks
 
I'm doing it in Windows though if it matters
 
on('accept', clientAddress => {})
 
3:20 PM
@Luggage My dad can (and have) take an engine apart, clean it up, and rebuild it.
I don't think he'd ever bought premium gas, or anything outside the normal recommended by the manufacturer, that is.
 
user2620028
@MadaraUchiha not always, lots of sports cars will tell you to run premium
 
user2620028
and higher compression engines with low grade gas will ping and have knocks
 
@HatterisMad Again, use what the manufacturer recommends, that's about it.
If the manufacturer recommends higher yielding fuel, use that
 
user2620028
newer cars just have electronic trickery to eliminate ping and knock with higher compression engines and lower grade fuel
 
user2620028
@MadaraUchiha ok and what does the manufacturer recommend for my vehicle then?
 
3:23 PM
has anyone dealt with a req before about dragging attachments from Outlook to a drop zone in JS? Seems like the only way to get it to work is to install an addon onto outlook
 
user2620028
if you think the best thing to do is not be educated on the subject and blindly do what the manufacturer spec says
 
@HatterisMad I dunno, you received a manual with your car, look it up
 
MadaraUchiha Yup. As I said, you don't need it. But some cars will perform a little better. Specifically those with high compression ratios or high boost pressures.
 
@ndugger that sounds nasty af
 
user2620028
@MadaraUchiha engine swap, i don't even have an identification of what the engine is
 
3:23 PM
If you car benefits from it, but you don't use it, it'll just adjust the timing to compensate.
 
can you even drag attachements?
 
@Loktar yeah, welcome to enterprise document management, lol
 
@HatterisMad Why'd you swap engine without knowing what engine you place in your car? ;/
 
@ndugger yeah you might be right though
because it needs to download from the server iirc right?
 
yeah
 
3:24 PM
I guess it could have downloaded it locally already in some cases
but if not it's not like draggin a file
 
user2620028
@MadaraUchiha ehh i looked it up to see the model year but didn't investigate further
 
more like dragging a link to a file
 
user2620028
it isn't the same engine as it came off the block
 
@Vap0r huh? sounds like something's messed up with your environment
 
@HatterisMad sux2bu then :/
 
3:25 PM
yeah, obviously chrome doesn't recognize it as a file, so it doesn't active the drop zone
 
@ndugger Forget about it
 
I wouldn't know which fuel fits best then. Figure out what engine you have and look it up
 
@FilipDupanović yeah but I don't know what or how to diagnose issues w/ webpack or npm
 
user2620028
@MadaraUchiha just makes the point, if i were to go by what the manufacturer says then i have a good change to hurt my engine
 
But then again, I can't even get clipboard to work reliably :P
 
user2620028
3:26 PM
so just learn the correct information instead of blindly telling people to follow the manufacturer spec. The manufacturer will sometimes tell you to run premium in a car where it doesn't help regardless anyways
 
@Vap0r did you add webpack as a dependency too? npm i webpack webpack-dev-server --save
 
@FilipDupanović --save-dev
 
@HatterisMad Wouldn't it be against the manufacturers interest to have their customers buy more expensive fuel? I mean, that's like tell them to intentionally spend more money on gas, when they buy their care instead of a competitors
 
user2620028
@OliverSalzburg think of it more as a status symbol
 
@FilipDupanović no I didn't, but I'm currently having issues downloading from any of the repositories
Waiting for my connection to timeout again on nodejitsu
 
3:30 PM
@rlemon Do you need to do anything with github.com/sandeepmistry/bleno#set-services ?
 
@HatterisMad So they do that as a marketing ploy? Tell people to buy more expensive gas, so they can be more proud of how much money they're spending on being mobile?
Have you heard of "conspiracy theories"?
 
@Vap0r webpack-dev-server and webpack-dev-middleware don't have webpack listed as a peer/dependency
 
trying to get this echo server working
 
@HatterisMad if anything people are off-put by it, it's far from a status symbol
 
3:31 PM
Accepted connection from address: 78:d3:33:25:79:dc
Disconnected from address: 78:d3:33:25:79:dc
Accepted connection from address: 78:d3:33:25:79:dc
Disconnected from address: 78:d3:33:25:79:dc
 
Oh, that looks easy as fuck
 
won't keep a connection :(
 
user2620028
@ssube off put by buying premium fuel?
 
yeah, rich people hate being told they'll have to pay for things
 
user2620028
3:32 PM
you don't think those people exist in the world? Who are proud to buy premium fuel because it means their vehicle is "better" than other people who buy regular?
 
infomertials in a nutshell
 
> "My car needs premium cause it's such a tight tolerance precision machine"
 
@rlemon code?
 
I don't think those people exist, I think they're using e85 instead of premium
 
I wanna try it on mine
 
3:32 PM
exact code in that article
 
Hey screw you my car needs premium gas
 
copy pasta'd
 
nobody thinks premium is fancy, it costs a couple cents more
 
my experience says otherwise
 
user2620028
@SterlingArcher :P
 
3:32 PM
Now I'm getting openSSL issues when I try to change my repository to npm.strongloop.com
 
and every car with a turbo uses it
 
I use e93 on my car because that's the highest it goes
 
you definitely don't run e93
that's a lot of ethanol
 
if anything, people have an inflated idea of what premium is / does
 
user2620028
@ssube have to because of the compression ratio's
 
3:33 PM
Want me to show you my gas cap? I think it recommends 91 minimum
 
@SterlingArcher 91 !== e91
e means corn alcohol
 
user2620028
@SterlingArcher what do you drive?
 
ignore me then
 
> @VinceBT at this time bleno does not support incoming pairing requests.
well what the fuck
 
3:34 PM
"Want me to show you my gas cap?" Worst. Pickup. Line. Ever.
 
@HatterisMad S4
 
cc @BenFortune
 
@KendallFrey I mean...
 
and yeah, mine is 91 recommended, 89 minimum
 
Maybe it would work for gay men
 
3:34 PM
cause it's got some turbos
 
user2620028
10.3 compression
 
I thought you had a 335?
I didn't know they be turbo'd
 
@Vap0r looks like none of the mirrors are any good
 
335s have 2 turbos
 
@rlemon oh lol
 
3:35 PM
No shit?
 
lol damn
 
a smol one and a real one
 
I wrecked one on the highway the other week
 
@BenFortune doesn't that make it pretty useless? I'm not that versed on bte
 
@HatterisMad I think those people exist. I don't think a manufacturer would recommend it to all their customers just to appeal to that group.
 
3:35 PM
335s are quiet powerful. and they are even de-tuned, really. you can get a lot more power with just some software changes.
 
I just want to press a button on my phone (or send a string) and have this damn led turn on
 
@ssube our cars are direct competitors lol they're almost exactly equal
 
who has a ferrari here o.O
 
Quattro > X tho
 
@Luggage super detuned and the transmission can handle something like 450
 
3:36 PM
Maybe the 335 wasn't driven by a child that races all-out on public roads.
 
@rlemon Wait, is BLE different?
 
@SterlingArcher bimmers AWD is way better than VW
 
@Luggage hey I was only half out
 
user2620028
@SterlingArcher ~10 compression is about where you would want to start using premium gas, but with all the detergents in it and the new car tech you can probably get away with running even higher compression without abnormal detonation
 
Hi Peeps
 
3:36 PM
> You should not see a connect/disconnect Bluetooth option. If you are using an Android phone/tablet, this is a bug. Try rebooting the phone to see if that allows you to connect via BLE.
 
@ssube no way, have you seen those quattro vs X AWD competitions?
 
Hi ogres
 
yeah dude
audis are all over
although neither can compare to the AWD that was in my Evo
that was a whole different level of grip
 
@BenFortune I turned off the adapter. did nothing
 
I've actually never seen a AWD demo from an evo
 
3:37 PM
@BenFortune BLE and Bluetooth 4.0 are incompatible
 
I'll actually reboot.. but that seems like it should be unnecessary.
 
I want a WRX STi, but the only people who drive those are kids who think that putting exhaust on a car means they're professional street racers
 
@Shrek What? BLE is a part of Bluetooth 4
 
aka my older sister..
 
@SterlingArcher they're a literal rally car
like, the Evo and the STI are a pair, the S4 and the 335 are a pair
 
3:38 PM
BT 4 Serial*
 
That's true, my first car was almost a lancer ralliart
 
the S4 is the fastest in a straight line, Evo is best around corners, 335 is the nicest
 
@ssube our cars are a couple?
 
STI is the best for putting a duck call on the bov
 
the ralliart is just some dress-up
 
3:39 PM
wait Bluetooth Serial
 
@BenFortune same shit
 
the ralliart was just rims
 
gah bluetooth makes my head hurt
 
@Luggage sorry, first car as in literally 18 years old first car
 
3:39 PM
evo awd test :p
 
I wasn't judging, just correcting you that the ralliart isn't comparable to the evo
 
we need a new operator in javascript
 
we already have a 'new' operator. :)
 
Why are the tires so skinny on that evo?
 
3:40 PM
to dig into the ground
you want wide tires for track racing and narrow tires for rally racing
 
we need d/dx in javaScript
const fn = d/dx (x**2 + * x)
 
Ahhh that's some pretty driving tho
nice video
 
hey using mobx outside of react, when I need something to change that's the case for autorun right? @Luggage
 
autorun or reaction
 
3:42 PM
@ssube I know mathjs
 
@SterlingArcher as much as I hate on the STI, it can do a lot of that too, because they're both actual race cars.
 
ah nice I'll check out reaction as well
 
Our cars are somewhat nicer, though.
 
infact I'm using like 3000 of those d/dx :D
 
I think reaction is the lower level version.
 
3:42 PM
None of that plastic dash.
 
@ssube and faster. STis and Evos are driven by kids mostly
 
the high level helpers are autorun, when, .. some others I forget.
 
heh yeah just realized I've only used it within react
 
@SterlingArcher not necessarily faster. An evo could easily beat you on a mountain road.
 
There's a stigma on those cars now, just like BMWs and Audis are driven by douchers who don't know what a turn signal is
 
3:43 PM
yeah reaction seems nice but I might just opt for autorun at first
 
also, you can just 'subscribe' to an observable.
 
@ssube when I say faster I mean highway
 
ahhh that's what I need actually
 
yeah, the S4 and 335 have a lot more straight line power
 
and idk, my car grips harder than a ... not gonna finish that thought but i've taken crazy ass turns
 
3:44 PM
the other two are 4 bangers
 
with all of those, you'll have to dispose the autorun / reaction / subscription when you are done.
 
@SterlingArcher oh, I've taken cloverleafs at 80 while racing S4s
 
yea
 
we were both slipping
 
ty you gave me some stuff to look at appreciate it!
 
3:44 PM
yup
 
I've never slipped in my car, but I haven't taken a clover at 80
I know my driving limits and hard corners I'm not risking
 
find a concrete on ramp somewhere and push yourself just a little bit sideways
it's a ton of fun
 
zsh, what on earth??
tslint -c tslint.js  `client/foo.ts`
zsh: permission denied:
 
I've slid sideways off the road on a few occasions.
 
it's also good to know what your car does when it looses grip, like if the traction control is going to flip you
 
3:46 PM
I spun out once, but that was in a cobolt on an icy exit ramp going 23MPH
 
well, the traction control was off at the time. That's how I got sideways.
 
Missed the guard rail by inches, was very freaky
 
@SterlingArcher Harder than Steph after a week of not seeing me
 
@MadaraUchiha pong
 
3:47 PM
@FlorianMargaine <3
 
@SterlingArcher </3
2.9
 
I've had the rear slide out in a FWD eclipse, going downhill in a turn at about 80.
 
hi guys, can you recommend a good backend database to use for a wordpress site? something easy for a client to update the data
 
@SterlingArcher Check your hangouts by the way.
 
3:48 PM
@erotavlas since you're using wordpress just use mysql.
 
@erotavlas Mongo, definitely go with Mongo.
 
@FlorianMargaine Can you give me a quick reiteration on how to do systems in CL?
 
something easy for the client to use?
wat
client will be using db directly?
 
Though if your client is doing the updates you have a major issue
 
And have put multiple mustangs into ditches.
 
3:49 PM
(There really needs to be a tutorial about this somehow)
 
That's why I suggested MongoDB. We all know it's the best if the client needs to update the database.
 
@Luggage never crashed ever. Parking lot fender bender (mutual fault) and I got rear ended at a red light but I've never crashed into anything
 
@KevinB not directly, but I suppose they want the ability to add new content - I think maybe wordpress has that ability, I don't know I never used it yet
 
@Trasiva 10-4
 
None of these caused any damage.
Also, I have jumped my mustang on several occassions. All 4 wheels off the ground
 
3:50 PM
@Trasiva ok I'll take a look at mongodb, what about sqllite?
 
have you looked at what db's are supported?
 
@erotavlas If it trips your trigger, sure.
 
@Luggage I did that once in the evo, so many lights lit up
 
lights in your rearview?
 
I've never jumped a car, because I'm not a dumbass or trying out for the Fast and the Furious lol
 
3:51 PM
ha, no, the little dash graph that showed torque vectoring
 
@SterlingArcher I was 16 at the time
maybe 17
 
Nuff said
 
@SterlingArcher well that's on you
 
This was WAY before the fast and the furious
 
I am both and will continue taking sweet jumps
 
3:52 PM
When I was 16 I was put in the back of a pickup truck and we went muddin'. Unfortunately for me, there was also a computer monitor back there with me
It hurt
 
hehe
 
ouch
 
that's what you get for hanging out with J
 
It was my brothers friend lol
 
3:55 PM
@BenFortune 😛 restarting the rpi solved it
mostly.
haha
 
This is the idiot that tried to throw an orange soda in a cup at me, but forgot his window was closed
 
I am so smrt
 
Its 2017 and restarting the device to fix things is apparently still a thing. Fuck lazy developers -_-
 
This is also the idiot that tried to throw a crushed up open bag of doritos out the back window of his truck, not knowing about air currents. The bag came back in, exploded, and he was covered in dorito crumbs. They were in his eye. He tapped a wall lol
 
@rlemon haha
 
3:57 PM
so I can send / receive values from my android to my rpi now
via bte
 
!!giphy fuck yea
 
UCK YEA
 
@rlemon Just curious, are you using Web Bluetooth?
or just good ol android native bluetooth libs
 
3:58 PM
and on android I'm just using a BTE test app
haven't looked into that side yet. need to get react-native setup
 
I'm not an expert on BT
 
but, like always.
 
but webbluetoothcg.github.io/web-bluetooth works on android afaik @rlemon so you can skip react-native
 
!!afk half day fridays
 

« first day (2351 days earlier)      last day (2599 days later) »