« first day (2286 days earlier)      last day (2663 days later) » 

8:00 PM
it's very impressive
!!afk sync with boss
 
@MadaraUchiha yeah I think it shouldn't compile
same as if you would do
function<T>(arg: T): T {
    return 42;
}
but see
what I said looked weird
is this:
<T> (arg: T) => T
I've never seen a generic type used like that
function foo<T>():  (arg: T) => T {
  return function(arg) {
    return 42;
  }
}
^ this gives you the right error
so I would say that is the bug
 
@Mosho Right
But then again, this is the simplified case
This wouldn't work with the decorator example, because T itself is an inferred generic.
 
where
 
29 mins ago, by Madara Uchiha
interface ComponentClass<P> {
    new (): Component<P, {}>;
}

class Component<P, S> { }

function decorator(someArg: string): <P, Comp extends ComponentClass<P>> (DecoratedComponent: Comp) => Comp {
    return function <Props>(DecoratedComponent: ComponentClass<Props>) {
        return class Inner extends Component<Props, void> {}
    }
}

function badDecorator(someArg: string): <T> (DecoratedComponent: T) => T {
    return function <Props>(DecoratedComponent: ComponentClass<Props>) {
        return class Inner extends Number { }
Here
 
8:06 PM
you are trying to make it inferred, but like I said I don't think it works like that
 
Here T is a ComponentClass<Props>
Where <Props> is supposed to be inferred
 
yeah I don't think that works
 
Again, it does work with the decorator() example
It doesn't with the badDecorator()
Now I can understand it not working, that's fine
I can't understand it compiling though
It should complain.
 
Comp extends ComponentClass<P> this is what makes it work
 
@Mosho Right
And that one even enforces that I have to pass a component
Because I get a component
 
8:07 PM
and like we saw, what makes it compile is the weird usage of the generic
 
That's also fine
 
so that might be a bug or at least undefined behavior
 
Right
So I'm opening a ticket about it
Want me to ping you for followup?
 
sure
send me the issue too
 
@Mosho What's your GitHub handle?
 
8:10 PM
@MadaraUchiha Not sure what is nitzan but reading
 
@AwalGarg Nitzan is a name
 
A coworker of mine
@AwalGarg TL;DR
 
@MadaraUchiha Mosho1
 
function foo(): <T> (arg: T) => T {
  return function(arg) {
    return 42;
  }
}

var x = foo()('string'); // typeof x is string, which is wrong
This should fail ^
 
8:12 PM
 
Stop trying to hack me with CSS
 
1774 issues though
Welp
I did my part (for now)
Shower time 😀
 
Anyone please tell me, Is not /plugins/package.json in .gitignore supposed to ignore package.json file in plugins folder in root?
 
@ankitbug94 It's not.
 
@MadaraUchiha depends on the bug
this was fixed in a day
 
8:15 PM
@MadaraUchiha why?
 
@ankitbug94 Why would it?
 
@MadaraUchiha cool bug, add me in the cc list too. I am awalgarg on gh
 
/package.json doesn't match /plugins/package.json
Why would adding /plugins/package.json match /package.json?
It would match /foo/bar/plugins/package.json, sure
Also, why would you want to ignore a package.json?
@ankitbug94 How does your directory structure look like?
 
@MadaraUchiha I think you are mistaken . package.json is not in my root dir
 
And how does your .gitignore file looks like?
@AwalGarg done
 
8:18 PM
.gitignore
plugins
|
---package.json
@MadaraUchiha content of .gitignore is /plugins/package.json
 
.gitignore
plugins/
  |- package.json
Like this?
 
yes
 
package.json is inside of plugins?
Then it should match
If it doesn't, try without the leading slash.
 
running git status --ignored is giving

Ignored files:
(use "git add -f <file>..." to include in what will be committed)

.sass-cache/
docs/
node_modules/
processes.json
themes/
 
2 mins ago, by Madara Uchiha
If it doesn't, try without the leading slash.
Right, shower time for realz
 
8:23 PM
This physics library is killing me
 
Writing my inaugural address at the Winter White House, Mar-a-Lago, three weeks ago. Looking forward to Friday.… https://twitter.com/i/web/status/821772494864580614
 
lol @Mosho try searching for nitzan's name + github, see what you find
 
that face omg
 
@MadaraUchiha Did that but same output. I think I have messed up with git cache. And since plugins folder contains another git repo, I think problem is there
 
please let him not have written his own speech
 
8:23 PM
For some reason, one player's initial velocity is getting set to 120 and the other is set to 10
Even though I manually set both of them to 10
Hopefully this doesn't take forever to debug
 
@KendallFrey Oh, you know he did.
 
user6438653
@littlepootis I do
 
I love how he called Mar-a-Lago the Winter White House
 
@WATERYMEL0N You may now kiss the bride
 
user6438653
Oh, hahahaha.
 
8:24 PM
Two More Days.
 
until business as usual
 
then why are people freaking out?
 
the unknown
 
Because they're overreacting, mainly.
 
but.. but.. business as usual ;)
 
8:26 PM
And partly because there are some truly insane things being said by many people.
 
user6438653
@Mattia @Sheepy Weird.
 
@MadaraUchiha so that's what he does after work
 
morning/afternoon/evening all
 
The one thing that really pisses me off is the people that really do hope Trump fails
I didn't support Obama, but not once did I ever want him to fail
 
Assassination attempt in the first week, calling it
 
8:32 PM
A failed president hurts everybody. Is that worth "i told you so"
 
@SterlingArcher Maybe if you're from another country.
 
yeah lots of other countries want to see the US fail
 
Russia
 
but have no perspective on what that would mean for them
 
The chance to become the next world power?
 
8:33 PM
the chance to forget the imperial system?
 
hi
can any one tell me on button click how to divide the screen into 2 vertical part and right part is use to preview the browse file.
 
He seems to have made Brexit less hard on us, which is a plus
 
@AmanJaiswal Welcome to the JavaScript chat! Please review the room 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.
 
@AmanJaiswal No
 
@AmanJaiswal you mean the debugger?
 
8:34 PM
I don't want to see trump 'fail' per se... I'm more interested in the spicy memes that come out of the next 8 years
 
There will never be another bromance like biden and obama
 
I thought about buying Twitter stock.
 
no not debugger
 
@david Trump memes are already so spicy I got IBS from the election
 
@Loktar did you have the taco bowl at trump tower?
 
8:35 PM
@rlemon really doubt it's worth it
 
I heard it's the best. no IBS. sad
 
@Loktar They burn going in, and coming back out again
 
@AmanJaiswal you need to give a lot more context with a question like that
 
@towc agreed
 
8:35 PM
I don't know what to say
 
say yes
also is that your mom?
 
well neither do I. which is why I didn't buy stock
 
@Loktar I knew someone would say that :P
 
@KendallFrey you must be a genius
 
psychic
 
8:36 PM
psycho
 
psychic genius
 
@AmanJaiswal Like what is your OS?
 
in my page I have 3 button,
1:browse
2:preview
3:upload
after browser file I want to preview that file by dividing the page into 2 part and after that user can upload the file
 
ohh so you want like some web solution that is oddly specific
 
8:37 PM
yup
 
probably pretty easy to build
tonnes of tutorials on how to do all of the things you're asking
 
I did not find any thing helpful for me
 
What filetypes will you be supporting @AmanJaiswal?
 
@AmanJaiswal You need to learn the fundamental skill in programming, which is breaking a large problem into smaller subproblems. Look at your task and identify a small part of it that is easier than the whole thing.
 
have you checked out jQuery plugins?
 
8:38 PM
any test json xml
*text
 
what browsers will you support?
 
I know there are tutorials on how to preview file uploads (both text, and image) and there are also a buttload of css tutorials on how to do split layouts
 
chrome mozila
 
user6438653
@BenFortune That should be Obama and Hitlery.
 
@Trasiva jesus that shower
 
8:40 PM
@Loktar Can't be his mom, they didn't use a satellite to get the photo.
 
Thats one of those questions that doesn't have a specific answer and entails a bunch of grunt-work.
 
@SterlingArcher Lol, right? The comments on there said there's like...two grand worth of toys in there.
 
@AmanJaiswal Heres a snippet for previewing JSON jsfiddle.net/unLSJ
 
https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsText
https://css-tricks.com/left-and-right/
lets see what you can come up with @AmanJaiswal
I did 90% of the work for you
 
man that csstricks theme is uuugly
 
8:43 PM
yea I don't like it either
they've always had weird ui
 
@Loktar That separator/header animation almost made me vom
 
haha
yeah it's super weird
 
Anyone know of a good position:sticky polyfill?
 
user6438653
bye guys.
 
Bye sock
 
8:46 PM
see yah @WATERYMEL0N
 
remarks on teamviewer screen share?
(ubuntu i3)
 
user6438653
@Trasiva sock?
 
@Trasiva that isn't the sock. winter is the sock.
 
@towc not secure
 
8:46 PM
Oh, meh.
 
user6438653
@winter is the bot. That I logged into.
 
@jake I feel familiar with your avatar, but not your nick... should I know you?
 
user6438653
The Winter Lodge room, is where it lives.
 
user6438653
bye
 
Added functionality to bring values over to an edit page but now I can't save because _id is undefined and I'm not sure why :( Previously the if statement was just 'this.id = $stateParams['id'];' new controller looks like this, to me it looks liek the id hasn't changed

    export class EditCarController {
      public car;
      public id;
      public make;
      public model;

      public editCar() {
        this.car._id = this.id;
        this.carService.saveCar(this.car).then(() => {
          this.$state.go('Home');
 
8:48 PM
@towc Nah, also I last used teamview in 2013 so theres that.
 
oh cool it didn't format my code sry
 
hit up twice, then ctrl + k, then enter
 
is cap alright? 0.o
!!are you alive
 
@towc No way
 
the code detect doesn't always trigger
 
8:48 PM
I DON'T KNOW HOW TO FEEL NOW, CAP
it's like a phony teenager who has something to complain about
 
thankyou
 
hmmm is a normal node app supposed to be able to lock my dpkg database?
 
define normal node app
 
as in, that wasn't designed specifically to do some package management on the host machine
 
guys I keep running into a problem where webpack can't build a package that depends on lodash
 
8:51 PM
it does have jspm on it, not sure if that has anything to do with it
 
Sherard Cowper-Coles' anecdote about #KingAbdullah and the Queen at Balmoral in 1998 (reminded by @Doylech): http://t.co/SO9GSp2RR9
That's a really good one, lol
 
I recall hearing about that in a tv show / youtube video
I wanna say top gear talked about it?
but I can't put my finger on it
bugging me now
I do not remember making this folder..
 
hardcore corn
 
it's empty
 
user1596138
Is anyone going to conf.reactjs.org
 
8:58 PM
I just don't remember making it
 
@rlemon An empty top secret folder? That's kinda corny.
 
my memory is going to shit
 
user1596138
We don't even have any outspoken SF members now do we
 
Special Forces? I mean, we have some special keyboard warriors...
 

« first day (2286 days earlier)      last day (2663 days later) »