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

2:00 PM
how does TS solve that class issue ?
 
although the compiler is actually smart enough to prefer Constructor<T>
 
I believe that they check it somehow internally
 
gist.github.com/ssube/… is what I'm trying to do
 
you love your DI
 
well there are still a lot of workaround for type erasure
 
2:02 PM
permanent type ink
 
I do love DI, and I was able to rip out a few hunded LoC by adding it.
 
I hate it when stackoverflow says me to edit your questions and I get downvoted -_-
 
me too
 
thanks
 
yes but I am editing a 5 months old question
so that I get unbanned
 
2:11 PM
Maybe you should stop asking such bad questions
 
I did
but I didnt get upvoted on my legit questions
 
I'll call the FBI
 
user2620028
@rlemon i just became interested in working with a raspberry pi, how easy/hard is it to work with sensors?
 
4
maybe 4.5
 
user2620028
out of 10?
 
2:12 PM
cool I will call CBI
 
@HatterisMad no, out of 10!
 
user2620028
alrighty then
 
4.5/3628800
 
:)
I assidentle ftp'd my node_modules but didn't notice at first
now I'm hanging on for the ride
 
user2620028
i honestly have to wonder if i know enough about electronic circuitry to even try workign with it
 
2:14 PM
@HatterisMad it is easy
'modules' are basically plug and play
 
user2620028
they are talking about breadboards and soldering
 
breadboards are easy
 
yea. so? they show you the diagrams.
 
but not delicious
 
breadboards are the easy path.
 
user2620028
2:15 PM
i just want to read from the sensors in my car :(
 
veroboard is for the pros
@HatterisMad yea, should be easy peasy
 
your car has sensors?
 
@littlepootis 0.000001240079365079365
 
see if you can find an obd2 module to slap on your chip
 
figure out what voltage range they put out, maybe reduce that, put it on a analog in
 
user2620028
2:16 PM
@Luggage i am installing them
 
Joe
I have a question
 
you can probably do it with an arduino if you don't need a full blown pc
 
user2620028
@rlemon i think 0-1
 
0-1v?
or 0-5? 0-3.3?
 
car sensors vary
 
user2620028
2:16 PM
i think between 0-1v
 
either way. just make sure you don't push > 5v into the analog ins
 
0-1 is not safe :P
 
0-1, 0-5, 0-12 (volts)
 
use a multi and check first
 
Joe
why it is different radio channels have big difference in its transmitted power while there frequencies are close to each other?
 
2:17 PM
wait. double check that. might be 3.3 depending on the pi
I'm thinking arduinos right now
 
I keep wondering what is elasticsearch
 
if it's OBD2, you can get a USB->OBD2 cable and just use that
 
@ssube it's pre-obd
 
hm
@AtharvaPandey it's a search engine that scales... elastically
 
@HatterisMad bottom line: it's easier than you're probably expecting
rpi OR arduino
 
2:18 PM
it does text search with some basic keyword/field/operator nonsense
 
(reading analog inputs)
 
user2620028
@rlemon yeah just need to figure out how to send the board lots of different inputs and read from them fairly quickly
 
buy a $5 arduino and some leds.
 
lol, the SO transcript has been banned from the school network:
> Category: Alcohol and Tobacco, Discussion Forums, Safe Content Filetypes, Web Content
 
there's at least 4-5 of us in the room that can help you figure it all out
 
2:20 PM
only certain transcript links apparently
this is weird
 
user2620028
ahh looks like water temp sensor actually is between 0-4v
 
> Safe Content Filetypes, Web Content
 
@towc the ones involving sterling are banned
 
user2620028
i think that is wrong though...
 
Joe
any body knows??????
 
So, got this bug report: Two-Factor authentication isn't working at all!
Me: What's the time on your server?
A: Something that deviates 2 hours from UTC
... They disabled the NTP service on their server...
 
@Joe it's magic
 
Meaning their server's UTC time differs from the rest of the world's, which makes it rather difficult to generate accurate time-sensitive tokens -.-
 
what's your current understanding of radios?
is that a homework question?
 
Joe
2:26 PM
@towc do you have a formula for that?
not at all
 
that really sounds like homework
 
Joe
I just was reading on internet
and found this page
 
and you wanted us to do your homework?
for a few pennies, ndugger will do your homework
 
again, what's your current understanding of radios?
 
Joe
2:28 PM
I told you it is not homework ? is that clear now or I need to say it again?
 
@Joe look at it very closely. What relations do you see between frequency and power consumption?
if you could confirm it for the record it would be nice
say it to the camera
 
Joe
I think higher power gives more amplitude of the signal
 
how can you test that idea?
 
Joe
but that does not affect the frequency
oscilloscope I guess
 
well, that's one way
I was thinking about google
 
2:30 PM
I used a Cathode Ray Oscilloscope today.
 
Joe
so there is no relation between transmitted power and frequency
 
if you have thoughts than need confirming, google something that might lead you to an answer
 
Joe
I did search little bit
 
@littlepootis do you finally have your copy of doom?
 
@Joe true
 
Joe
2:31 PM
thank you
@littlepootis
 
I don't enjoy using my oscilloscope.. I've had too many ups and downs with it
 
@Joe a very negligible one
 
It depends on voltage, current and the phase difference between them.
Or just voltage, current if you're talking about DC.
 
Joe
you mean that frequency depends on transmitted power? @littlepootis
 
Joe
2:32 PM
f=1/time
 
v = (lambda)*f
 
Neither time nor frequency has anything to do with power.
 
radio is electromagnetic, so v is always constant (2.998*10^8)
so the energy dependant on the frequency is also constant
so the power dependant on the energy dependant on the frequency is also constant
it don't change if frequency changes
 
Oh you're talking about electromagnetic waves?
nvm
 
@littlepootis radio = em, right?
 
2:34 PM
yeah
 
then yeah, we talkin' em now
 
Joe
@towc thank you
 
please mention me at the bottom of the page when you hand it in :)
 
Joe
?????????
not funny at all
you making me angry
@towc
 
ok :D
 
2:36 PM
@Joe you've been spamming off-topic questions and demanding answers for days
that's making me angry
please stop
 
HAMMERTIME!
 
I suck so bad at networking.
 
what's schadenfreude
 
So bad I don't even know what to Google to solve my problem.
It sounds german.
> pleasure derived by someone from another person's misfortune.
 
thank you.
 
2:37 PM
@littlepootis computer networking?
 
soz
my cat
(mates be mates)
 
hello
 
hello
 
2:42 PM
:D
 
@BenFortune success!
 
> Monster Superstar BackFloat
 
@KarelG I sent it out 2 days ago, but the final grade will take up to 2 months
 
that's a quite long evaluation period
I got feedback at my defense, which was 3~4 weeks after the deadline
 
pce
mornin! is interact.js a good choice for vanilla js drag n drop dom elements or would you prefer another microlib like draggabilly.js ?
 
2:48 PM
@BenFortune great speakers
got em for free when I bought my living room set
 
@KarelG you know just how I like my memes... full of dank
 
type ReferenceTo<T> = T | string;

interface Object1 {
    id: string;
    name: string;
    object2: ReferenceTo<Object2>;
}

interface Object2 {
    id: string;
    name: string;
}

let foo: Object1;

foo.object2. // only shared props between string and Object2 here :(
I am trying to have objects that can either have a string id, or a full object (if it was fetched)
 
pce
@BenFortune thx! i'll evaluate dragula, hope it works in daylight, too ;-)
 
@FlorianMargaine Ping
 
2:50 PM
But I can't even 'cast'. (foo.object2 as Object2).name tells me that I ..
ohh wait.. casting is working now
 
how does TS handle generators?
 
@FilipDupanović Very well
 
@pce that's dracula. Dragula is a rob zombie song GAWD
 
It will handle async generators starting the next version too.
 
@Luggage to need to check and branch
 
2:51 PM
@Luggage You'll need to type guard
if (typeof foo.object2 === 'string') {
  // only string stuff here
} else {
  // only Object2 stuff here
}
 
> [ts] 'await' expressions cannot be used in a parameter initializer.
how come :(
 
I always know in a particular code block if it'll be populated or not since i fetched.
so the "else" will always be blank / useless.
 
@Mosho what
 
@Luggage you should tell the compiler about that
 
I am thinking a 'cast' is wha I want, but that wasn't working beofre. I might have been doing something wrong.
 
2:53 PM
it's still thinking the value might be a string
 
As in, class Foo { public bar = async () => 42; } that's invalid?
 
@MadaraUchiha what what
eh
 
you have to clarify that it's only a string or only an object
 
no
parameter initializer
in a function argument list
 
2:54 PM
@ssube like by merging it with another interface in the file wher eI use it?
 
Ah
wut
 
savage
 
@Luggage you probably want a type guard like Madara said
instanceof or any function that returns is Foo
 
@Luggage you can cast
 
2:55 PM
// this is why my types support string OR {}, but I 'know' which to expect
let object1 = api.Object1.getById('123', { withRelated: [ 'object2' ] });
 
@MadaraUchiha that is still not what I mean
 
Example pls
 
async function foo(arg = await Promise.resolve('wat')) {

}
 
@Mosho I think that's invalid in the specs
Something about the arguments being calculated before you can enter the async context, or something like that
 
meh
 
2:58 PM
(I might be totally bulshitting, btw, better ask benji)
 
that's both impossible and unnecessary
const arg = await thing; foo(arg);
 

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