« first day (2707 days earlier)      last day (2243 days later) » 

7:16 AM
ohai
 
ohayou
 
Hello, I have a random question. Is it possible that console.log("Hi"); can ever print "Bye"?
 
yes
 
Interesting! How so?
 
the string you pass to console.log() can be any one you like
 
7:31 AM
I think you missed the point of my question
 
get a copy of the log function then override it
like
const loggie = console.log;
console.log = msg => {
   if (Math.random() > 0.4) loggie(msg);
   else loggie('bye');
};
 
Oh, I see. Yes, that is pretty straightforward now that I think about it
Thanks :)
 
7:46 AM
I need a help. I have 10 input boxes and I want to count the number of boxes user has filled the values. any suggestion or logic. I am new to angular 2.
 
Looks like I missed a wee bit of fun last night
 
@MukulSharma select them, check if value is not empty. if so, add.
there you go
 
1 message moved to Trash can
@MukulSharma 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, pastie.org or a demo site like jsbin.com
 
I tried this But I know this is completely wrong
 
1 message moved to Trash can
@MukulSharma 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, pastie.org or a demo site like jsbin.com
 
7:51 AM
@kare
 
uhm wut
The Power of JavaScript :D https://t.co/eeNkoYBOAL
 
@KarelG how should i check the value (i means onclick or onchange )
 
this one's for sterling:
Cannibalism.
 
Anyone has experience setting up a slack bot that post reocurring poll?
 
Why doesn't Typescript shows an error here ? It is an invalid object !
interface IContract {
    jwt: string;
}

let _jwt = {
    jwt: "123",
    NOTVALIDPROP: 2
};

function set<T>(state: T) {
}

set<IContract>(_jwt); //WHY THERE'S NO ERROR HERE ?
I know that I can do let _jwt:IContract and it will fail , But why doesn't it prevent me from doing this error ?
 
8:16 AM
@RoyiNamir It's only invalid in object literals.
Generics are more forgiving.
 
wow it's bad
 
_jwt does implement the interface
It has all the properties you asked for (and one extra)
 
No "strict mode" / "remove forgivness" solution ?
 
finally got around to make the react bootstrap, configuring was such a pita gitlab.com/SaitamaTan/react-bootstrap
 
Not that I'm aware of
Why do you care?
@Ikari Why is dist in your source control?
 
8:18 AM
becuase I've removed that NOTValidprop in my solution , and I didnt see any errors
 
@RoyiNamir Extra properties can be safely ignored in almost all cases
 
Where I was expected that some objects would be red underlined (errors) becuase they not conform to the new IContract
 
Think about it a little further
 
oh, I should keep that in gitignore as well?
 
In Java or C#, if you have an interface log(message: string): void, does that mean that implementing objects can't have anything else?
@Ikari Is it source code?
 
8:19 AM
@MadaraUchiha I know what you mean. I will. Thanks :)
@MadaraUchiha ^ You're right. (I guess it's one of the things which I should've think deeper)
thank you
 
@MadaraUchiha no, yeah can be just generated with webpack. Makes sense. Thanks!
 
@Ikari Then it shouldn't be in source control :)
2 days ago, by Feeds
I am a teapot, short and stout. Here is my handle, here is my spout.
 
Everything is switching to subscription these days :\ .. more profits I assume?
 
8:47 AM
@cswl Depends on your audience and your business model.
 
why do you think gyms have subscriptions
 
I mean most software are now monthly subscriptions.... and ofc.. cloud is pay what you use already :\
 
people tend to use 2 months max, then forget about it, and just let it run because they "might " use it agian
so it's very easy revenue
personally i'm of the opinion companies should offer both
Either subscription model, with continuous upgrades
or buy once, and keep that version
I like for example how php storm works. When your subscription ends, you get stuck with the version you last updated, but you are entitled to use it as long as you want
 
@MadaraUchiha removed
 
I'd wish I could switch to ES6 on my project
shakes fist at IE11 Die already
 
8:51 AM
@Tschallacka Heard of Babel/TypeScript?
 
yea
 
just support Chrome 60+ and Firefox 58+
and everything else can go die in a corner
 
@Tschallacka I dunno about you, but we use async/await and modules in production, and we support IE 11.
 
nah, I want to use classes xD
 
madara, you do not have to ask about typescript. Babel is sufficient
 
8:53 AM
right now i'm still prototyping the lot
 
do not try to convert him to typescript you filthy fanatic
 
I can't, IE11 is still 3.5 of customer base
 
babel provides you a mean to support IE11 ...
 
yea, but it will mean redesigning the workflow
 
Isn't its ES9 already? why people still saying ES6
 
8:55 AM
I'm the only dev with 3 websites, 2 backend apps, 3 databases and 4 servers to reconfigure. Sadly I don't have the time yet to learn babel and to adapt the workflow to transpiling
 
@KarelG vOv, we used to run ts files through TypeScript, then Babel (TypeScript from TS -> ES2015, Babel for ES2015->ES5), and JS files just through Babel
Now we run everything, including JS files, directly through TS
With JS files having error emits turned off
Works like a charm, and you don't need extra dependencies like regenerator runtime and whatnot
@cswl It's actually ES2015
And it's because ES2015 was the big one
 
lol how fitting
 
@Tschallacka Do you have webpack?
 
okay, I've wondered about this for a pretty long time, does anybody use coffeescript anymore?
 
8:56 AM
@Ikari No.
 
And this also answers my question of what setting is the right one to use :D
 
@OliverSalzburg Because it's an alias for ES2015 for braindeads who don't know their version numbers right <3
 
Thanks @MadaraUchiha ;D
 
iirc the first iteration of atom was written in coffee
 
So no we are into ES2018.. and theres stage-3 on canaries.. and stage-0.. if you use babel.,,
 
8:58 AM
@OliverSalzburg eh, ES6 is commonly used as alternative for ES2015
 
no, I have nothing of that. When I started here 2 years ago, my boss who doesn't know coding except onhover=this.style.color="#111111" tried to dictate how to order stuff so he could look into it and control me. That's how the current codebase came to be, now i'm more free, but it's a too massive undertaking to redisign everything
especially since i'm the sole and alone dev :S
 
Use stage-0 babel presets in production.. (y)
 
!! afk meeting meeting and something.
 
@KarelG "SyntaxError: unexpected token: identifier"
 
sorry cap
 
8:59 AM
@Tschallacka It's really not nearly as big and scary as you think it is.
 
yea probaly :-)
 
I've added build systems to existing projects in the past.
 
I should see if octobercms has a thing for it
 
@KarelG Still not listed as a valid option :P
 
or laravel
 
8:59 AM
@KarelG s/!! afk/!!afk
 
It's a matter of pulling up your sleeves and diving into it, you'll be done in 2 days, 3 tops.
 
I also can't get any benefit out of declaring a jsconfig.json, even though I feel like I should
Not quite sure what I'm expecting though
 
yea, the entire website needs a rework because of the rough starting days. I will do it then
 
yeah, setting up webpack + babel and react stuff took me 2 days with no prior knowledge
 
good thing i'm not forced anymore to write to stupid standards
if it were up to my boss, and this is from 2 days ago:
 
9:01 AM
Also there's slew of things called generators.. or what was it.. create-* something
 
Why do we need a testing api access? Why don't we use the live fast system for testing bookings, and just let the ticking department know we made a test booking?
 
create-react-app but it's full of bloat, that is you might want only the packages that you're going to use, and create-react-app doesn't really do that
 
If all the code in my NodeJS project is in a lib folder, should the jsconfig.json also be in the lib folder?
 
@MadaraUchiha there will be strong competition for the next JS RO lmao:
10 hours ago, by TheOneWhoMade
How do you become an owner of a room?
 
9:08 AM
Shouldn't IDE sepcific settings be in .vscode.. unless thats not IDE specific
 
@cswl Yes, they should be located there, but only from a design perspective ;D
From the perspective of reality, it should be located in relation to the source code and you can have multiple configurations in a project
I was hoping for better signature inference and stuff, but, if anything, I get less
 
9:30 AM
TIL canvas applies the shadowBlur to the edge pixels in images with alpha, which was a really pleasent surprise
it got me to do this :D
 
@towc I like it
 
I think it's great branding/marketing
 
morn
 
you're showing a lot of "people" who are in various states of happiness
+ emojis are generally in vogue
+ yellow fits well in the JS theme
 
After that stupid analysis, I don't like it anymore
 
9:33 AM
@towc why
 
@OliverSalzburg yay
 
no u
 
I'm genuinely proud of the idea, however simple it was
@Neoares the js logo is yellow
I don't think I've ever seen a JS meetup logo that didn't have yellow as the background thematic color
which is not innovative, but great for branding for all the meetups
 
Hello guys. I'm an iOS developer and have experience with React. Do you think is there a lot of demand for react native developers?
 
9:35 AM
 
@wieblinger 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.
 
@towc does JS have a logo?
 
@Neoares google it
 
I see logos of all colors
 
@towc You're over-analyzing, as you often do
 
9:36 AM
I think this is the official one:
the green one that you might see as first is probably some unofficial node logo
the shield is I think from w3c?
a lot of the rest don't seem to be about javascript
 
and that onw is from...?
 
@towc I'd try to lose the drop shadow on the font
 
fkin internet connection
 
huh, not official apparently: github.com/voodootikigod/logo.js
@GNi33 yeah :/
was the easiest way to make the text still readable
 
other than that, I like it as well
hmm, I see
@towc it is the most commonly used though
 
9:39 AM
what have emojis to do with JS?
 
user7858150
Am I barking up the wrong tree by putting events in an unordered list for FullCalendar.js?
 
so I think you made a good choice by expanding that one
 
nothing 🤣
 
@Neoares they're yellow
@GNi33 well, it's what most JS meetups seem to do
I didn't really question it
 
I like it as well
 
9:40 AM
:41641051 when you'll make a js meetup, you can use that
 
@KamilSolecki oh god
 
if I'd do a JS logo for my city, I'd probably just use that logo and put in a contour line of the most well known sight or the skyline
yes, it's over done. yes, I still think it looks good
 
 
I wish I didn't have removed my message
 
this one has less blur on the bratislava
 
9:41 AM
@towc Remove the dark emoji part behind the B
Then tweak other spots like that
 
@Neoares lmao speak of bad timing
yeah what Oliver Said
 
Clean it up, don't dropshadow it
 
@OliverSalzburg they're randomly placed. Maybe I should use seeds
 
what Oliver said again
 
Put a white outline on the text as an alternative
 
9:41 AM
it's canvas code
 
basically, never dropshadow text at all
 
^ (almost always correct)
 
but yeah, I can tweak it maybe somehow
@OliverSalzburg like a stroke/border?
 
Write an AI to regenerate it until it looks good
@towc Exactly
 
that might actually work
 
9:42 AM
I has also made a banner yesterday
 
it would
s/ba/bo/
 
Watcha think?
 
@OliverSalzburg uhmm :/
@KamilSolecki looks professional :D
 
@KamilSolecki Could use more contrast on the text
 
@OliverSalzburg Yeah I was thinking that. The text seems too blended into the bg
 
9:44 AM
I can put the adidas stripes on the JS XD
 
@KamilSolecki Pick some of the stronger darker colors from the right edge for the text
 
@towc JavaSlavic
 
That should also balance it a bit more
 
good point
 
@KamilSolecki that should so be a conference
let's make it
 
9:45 AM
You hear that? I said "balance". I'm such a pro
 
one day
 
@OliverSalzburg equilibrium, duh.
^ proof that Im super smart and stuff
 
I know difficult words sophisticated vocabulary.
 
@KamilSolecki you have the best words senpai
 
9:48 AM
@KamilSolecki good, but hard to read
 
yea, working on that right now
 
Ah, an easter promotion. You should have made something about light shining down from the heavens onto Jesus our savior and it resurrects him. But it's actually a lamp from your shop. Then make some pun about heavenly discounts
Should be clear that that is the way to go
 
^
 
Alright, I don't get jsconfig.json. Whatever I do, I get worse results than when I simply don't have one
 
Go to bed
 
10:01 AM
@OliverSalzburg poland Christian masterrace
 
It's 11am here
 
@ndugger it's not fair
you can't just 'no u' me like that
 
guys , i have json object
need to convert one property of it to array of int
via typescript
 
@Bassem Is the property already an array of int?
 
yes
 
10:03 AM
That helps
What's the problem?
 
i am typescript beginner
:(
 
So am I. Maybe that's why I'm not getting the problem :D
 
same
 
i find the solution
353
Q: From an array of objects, extract value of a property as array

hydeI have JavaScript object array with the following structure: objArray = [ { foo: 1, bar: 2}, { foo: 3, bar: 4}, { foo: 5, bar: 6} ]; I want to extract an array containing the values of key foo, resulting in a value of [ 1, 3, 5 ]. I have accomplished this with the trivial approach, as follows...

Thanks Guys
 
10:04 AM
that's not typescript
 
^ was about to say!
 
you just wanted to know how to map an array
 
@Neoares yes you are right
 
Maybe you should start with JavaScript first
 
map is a javascript function ?
 
10:06 AM
Yes
 
Yes
 
Typescript is a superscript ot JS
 
i am writing in a file .ts
i thought it has a different syntax than js
 
it has more things
also, the file extension doesn't matter
except you have things set up to interact with file extensions, like webpack
 
10:08 AM
hmmm
 
Fuck. My code signing cert expires tomorrow :(
 
actually, I don't really know what happens if you send a JS file with another extension to the browser
never tried... I want to think that nothing bad happens xD
 
Double-fuck. It expires today O_o
 
Bed to go
 
@OliverSalzburg instarenew
or self-sign it
:trollface:
 
10:10 AM
@Neoares kinda. But at a certain point the Typescript team decided to not implement features over the EcmaScript specification
 
@Neoares Nobody want's to cross-sign my CA :(
 
as they introduce more confusion that provide usefulness
(in their opinion)
 
s/their/my/
 
@OliverSalzburg I'll do it
 
I can let you a pen
 
10:11 AM
Thats' the way they feel, for example, with private / public access modifiers
The same reason why they wont introduce new syntaxes to TS
 
they're trying to do javajavascript
 
because ultimately, it should be a superset of JS, and not evolve into its own thing
 
@BenFortune With a relevant signature? :D
 
@OliverSalzburg It's my signature, so it's always relevant
 
Good answer
 
10:13 AM
I can put my handwritten signature on your cert if you want
I like to think its a cool one
 
Certificate rockstar
 
c3rt boi
 
I just need to make sure to get the ampersands into our company name in the new cert this time
I've been looking at those "and"s for a year now and it's annoying me
 
why?
you just need to verify your company
they'll give you whatever you want for the good price
 
Well, I was scared to put a & in the form when I got the certificate
As one should be
 
10:16 AM
sorry misunderstood
I thought you were talking about asterisk certification
 
can't remember the technical name
 
feel free to use it
 
@Neoares What's that?
 
> kamil's seal of trust
@OliverSalzburg you get all your subdomains validated
 
10:17 AM
you mean wildcard?
 
wildcard cert
yeah sorry xD
 
@Neoares Ah. I'm about code signing right now. That's a slightly different game
 
ahhh ok
 
@KamilSolecki way better than the first version
 
is that the thing you see in the popup when you open a .exe in windows?
"Author: Microsoft Corporation"
 
10:20 AM
@Neoares Exactly
 
nice
 
lmao
 
Author: Oliver Salzburg, The Cert Signing CTO
 
Works neither in Edge nor Chrome btw
 
10:22 AM
wtf
you have to use IE5
 
It needs access to SSL key generation APIs
 
I had to self sign a cert for my vagrant box yesterday, because otherwise chrome won't let me use the microphone
 
IE11 works
No idea what's so special there. But I think it needs to store the PK in your OS key store
And only IE implements that interface
Which one was the right one again...
stackoverflow.com/questions/252180/… is all purple for some reason
 
uh, RSA
go ECC
 
Ugh, now they need to revalidate because I changed the company name. This is not ideal!
 
10:33 AM
Olivers Cool Computer Company, LLC
 
> They added a "&", maybe now they sell drugs
 
lol
 
From "HARTWIG Communication and Events GmbH and Co. KG" to "HARTWIG Communication & Events GmbH & Co. KG"
But now I can't roll new releases, which is a bit of a bummer :P
 
u fucked up
:D
 
I'm still hoping for a resolution within the day
Maybe add the +1 for international as well you gits!
And why put the number as an image on your website?
 
10:56 AM
so now I wonder why you pay them for the cert
tell me it's not godaddy
 
@Neoares Comodo
 
like the dragon? :o
 
I guess :D
 
#randomfact: "cómodo" means "comfortable" in spanish
 
Teacher accidentally fires gun and injures student during safety lesson I know I shouldn't find this humorous, but I can't help it
 
10:58 AM
why backslash () don´t work on JSON?
\
 
> ok guys, today you learnt a way to not use your gun safely
 

« first day (2707 days earlier)      last day (2243 days later) »