« first day (3289 days earlier)      last day (1642 days later) » 

12:00 AM
One sec, I ran the numbers
 
jb do you work at one of the FAANGs?
 
> Ok. I did the calculations. Non taking into account married couples filing jointly (5.3% according to the IRS) an astounding 55.49% would NOT be exempt from the speculation tax (Source: Census Bureau).
I didn't account for a bunch of stuff that would increase the percent not excluded.
 
Wait this is for the speculation tax
 
yes
@55Cancri no, I'm 16 and still in hs lol
 
so yeah it's a bad plan but I don't think it's really meant to represent the general middle class
 
12:03 AM
sorry I meant forrest. Do you work at one of the FAANGs of capitalism?
 
The reason I say it is, is because he says its not supposed to effect the middle class
 
@55Cancri No
I work at a company with 300-500 employees
 
@forresthopkinsa Anyone who looks at the bill and is at least somewhat knowledgeable will see the problems but most voters don't. They hear "free college paid by the rich and my taxes wont go up? BERNIE!"
@55Cancri where you from?
 
New York
you?
 
Oh really lol same
 
12:05 AM
eh yeah I think that some of Bernie's policies are questionable and I'm not voting for him in the primaries because of that
 
small work
world
 
I thought you were out of country based on how you said "capitalism"
 
small world, big city
 
@forresthopkinsa Common misconception: NY is not just NYC
 
I am american, but is clear capitalism is "not de wey my bruddah"
 
12:06 AM
ah gotcha
 
sorry, Ive been watching too much Kony hacking call of duty kids
 
@forresthopkinsa He also doesn't understand taxes. Amazon and GM paying $0 in taxes is extremely misleading and should not be vilified.
I used to support Bernie in 2015 for a little bit, so I know where people are coming from but he truly doesn't understand economics imo.
lol I could spend hours talking about the issues with Bernie but people will support who they will :)
 
I think he was probably the best candidate in 2016, but now all the other candidates have followed him into an area of discussion that we didn't have before
so now there are a number of other, better candidates
who have taken up the torch from where he left it in 2016
 
who? warren?
 
pretty much all of them have taken up policies like, trying to significantly decrease deportation, taking up much more socialist matras, "taxing the rich", etc
universal health care
Yang's UBI proposal would have been unthinkable four years ago
for some people, it still is -- but it's a good idea
the overton window has moved significantly
perhaps it hasn't moved left or right; it's widened
anyway my favorites are Yang, Harris, O'Rourke, and Buttigieg
not a big fan of the big three
Booker seems like a good guy who would get the job done but I don't think he'll make it much farther
 
12:17 AM
@forresthopkinsa I trust you with your money. I don't trust you with mine. If you are gonna take some of mine to help you, I think I should have some say in how its gonna help you.
 
meh, we live in a society, it's in everyone's best interest to pay for roads, bridges, teachers, the foster system, and raising the lower class
 
@forresthopkinsa Biden Buttigieg Yang. But Buttigieg is starting to get more of my support. May choose him.
@forresthopkinsa most don't understand this
 
Biden is way past his prime, he can hardly get out a sentence in the debates
He's done
 
thats why I cant believe in socialism. It is a great and awesome system, in a perfect world. But we don't live in a perfect world.
 
hmmm sounds like you're conflating it with communism
 
12:21 AM
@forresthopkinsa I don't disagree. But his ideas are good and he will surround himself by really smart and good people that will run the country. He will mostly be a figure head, which isn't ideal but better than some alternatives.
@forresthopkinsa Basically the same thing minus the Revolution
 
our country is not either capitalist or socialist, it's a blend of both. And you have to establish the balance at the right place. Too far in either direction and people are dying in the streets
 
morn
 
afternoon tavo
 
o/
 
\o
 
12:23 AM
@forresthopkinsa Yes. Bernie socialists just ironically have lots of faith in people
 
Well I don't want to be exploited, but I don't want to be cynical either
You have to have a certain degree of faith in people to be compassionate
Anyway, good discussion, let's resume later. I'm heading home
 
ah, the old realist or pessimist
ok
thanks for the info about schools and stuff and def good convo
cya o/
 
for sure! ttyl
 
 
7 hours later…
7:02 AM
7 hours later...
Which is the best method to connect a contact form in Angular 7 with firebase realtime database?
Angular -> Database Or Angular -> Cloud Functions -> Database?
 
7:18 AM
hey, anyone got any suggestions on how to parse a text input value into javascript in Vuejs?
 
7:34 AM
@KerrialBeckettNewham you need to be more informative with this
that sentence has various meanings, dependent of the right interpretation
 
converting a string into functioning javascript
 
like "1+1" will be evaluated and shown as 2 ?
 
eval, eval, eval, eval :P
 
you can use the new Functionconstruct but be aware that it is a very risky behavior. It is not secure.
 
eval is along the right lines
@KarelG yes, or creating functions.
 
7:42 AM
but ... why don't you sandbox it?
 
@KarelG that's what i'm trying to build lol needs to be inhouse
 
treat the content of the textarea as a javascript file -> create a sandboxed iframe and let that file run as a javascript file there
it is just
 
@KarelG yeah, that's what I thought. but Vue doesn't seem to like you doing that
 
screw Vue. Demand it to obey you.
 
Vue is my bitch lol
 
7:46 AM
you have to do that outside vue as a regular javascript script
 
@KerrialBeckettNewham can't you run vanilla in vue?
 
use vue to create your template view
then include your js file that does that sandbox stuff
and let it run
vue.js allows that
 
include as in import it?
 
yup. Import/require it in your script session. that easy :)
there should be examples on SO
 
@SagarV I think so yeah
 
8:16 AM
Hi, how does one logically return 0 or whatever number value x is, otherwise "". My problem is that both 0 and "" are falsy, so I get "" whenever x = 0:
`(x && x) || ""`
 
explicitly check that it's 0
 
((x || x === 0 && x) || "") gives "" too when x = 0
Must be an incorrect statement
 
Any reason you're returning both a string or a number?
 
operator precedence
 
also that
 
8:18 AM
&& gets executed first before || in an expression
but I second with Ben: returning two different results is not a good idea
that is just asking for problems
 
it is for a value attribute in pure js client code
 
if you want to invalidate a number, use NaN
 
value=${...}
good idea
 
or return only string then. Depends of what you want to do with that value
(but attributes are always string when getting it)
 
8:58 AM
@KarelG vue is won't run the JS ugh
just keeps saying the function name is undefined
`let script = document.createElement('script')
 script.setAttribute('value', value.toString())
document.head.appendChild(script);`
 
._.
that is not what I meant
 
Seemed like a better approach and didn't want to have to refactor everything as i'm not using an iframe.
but it's outputting the desired result now :)
 
9:33 AM
hi All,
i came across one interview question, for which i dont have any clear answer, if someone can help.
1. The question was which framework of javascript you are using for you Client(UI) application.
2. What standards are you using for CLIENT (UI) application.

Briefing about my client application, its designed in javascript. All the components are custom designed by our technology partners.
We have a node module installed in the client application. Every component has three files
1. js
2. pug
 
just know which framework/platform uses those extensions?
1. is obvious
2. had to google: https://pugjs.org/api/getting-started.html
3. LESS = preprocessor CSS
 
9:48 AM
Hello Everyone,
Is anyone can help me to understand the workflow of express.js. i want to make a framwork like express.js for learning purpose. so, i study the express.js code from the github branch repo from old tags. but i don't understand from where i start ?
Can someone help me with a better advice ?
 
don't
it is a very large framework, progressed during multiple years
just try to learn the concepts, how express tries to provide solutions to its users.
 
Okay, but i just want to learn node in depth by the help of this framework.
Thanks for the better advice :)
 
10:09 AM
if you want to learn how node.js works, then learn its basic and work with it
a framework is intended to abstract it and "assisting" the developer to create a product without having a vast (and deep) knowledge of how the technology works
 
10:29 AM
Okay, Can you suggest me how i better handle the mysql store procedures with node js ?
 
a SPROC?
calling it is just using the call syntax.
create it at db
however, AFAIK it really depends of the selected npm lib you have used to work with a MySQL db
some allows SPROCs, others not
 
10:44 AM
Heyas. I'm working on a React-Native project, using react-native-navigation and AsyncStorage.. I want to load a prop from the AsyncStorage and set the defaultOptions header color based on that prop's name. I'm not sure how to go about it. Any ideas?
 
Okay, currently I'm using the call syntax to create the function wuth the help of phpmyadmin -> Routines. is any better or easy way to manage this ? or i'm using i the best way for this.
 
So I'm creating a navigator with createStackNavigator, and it has a property defaultNavigationOptions where I can set the default header color. I'm then loading my App Component, which just holds the AppContainer wrapped with a Redux Provider and a PersistGate (redux-persist) that loads my data.
The PersistGate has an "onBeforeLift" property that runs once the data has been fetched. But I don't understand how to change the defaultNavigationOptions from there, if it's perhaps too late to do it by then.
I would like not having to fetch the header color for each Screen in the stack.. been trying out different ideas for the last 4 hours but I just can't get anything to work.
 
11:13 AM
@Amsvartner no idea
I know this is JS but can anyone help with this CSS problem.
I am trying to center text in a div while positioning the div's child element to the far right corner.
Can this be achieved using flexbox alone, if so how? Link to demo: https://jsfiddle.net/hsbvx1kz/
 
11:56 AM
In a web context we can browse elements, get their size and offsets, etc with the browser's console / dev tools. Is there anything analogous to the dev tools in an expo / react native context?
 
@HelloWorldPeace a plain text in a div?
 
what's wrong with using the right tag for texts? ._.
use divs as containers
not to hold some text
 
just an example
 
@Amsvartner this should be a question on stack overflow--why not make a proper question for better searchability?
 
11:58 AM
wanted to look minimalist
 
that is not possible. Just put the text in an element and then you can use flex yes
 
can you show an example from the fiddle i posted
I was only able to get it to working using position absolute on the child element
 
@HelloWorldPeace can you draw a hot pic of what you're after? Do you just want the text element to float right in the container, and to text-align center in the text element?
 
a hot pic, but not NSFW :)
 
@HelloWorldPeace it is possible with flex, but not with that HTML you have given
 
12:12 PM
@duhaime this jsfiddle.net/vx6u13cn/4 but without using position: absolute
 
due of how flex work you have to add a "ghost" element to balance the flex spacing
 
why not use pos absolute?
 
@KarelG i see. Guess I'll have to just use pos absolute
 
Just change position absolute in the child to float: right;
if you want IE 9 support for your grandpa's browser
 
12:18 PM
@HelloWorldPeace or use CSS GRID
 
how exactly is that ghost element centering the text
 
> to balance the flex spacing
if no item, flex spaces two elements instead of 3
gives a 25 50 25
not 33 33 33
hmm forgot that I have to do something. brb
 
thanks
 
 
1 hour later…
1:22 PM
don't want to dive too deep into source code but why would one ever do

jQuery(function() {... })
question would be why someone is passing function as a constructor param for init() function
 
@Raimonds when you want to run code only after the page loads
@Raimonds maybe as a callback?
 
won't it do same if I place it at bottom of body tag
seems like regular code to me
I am cleaning up unused code and stumbled across that example
 
@Raimonds yes, but generally you're supposed to put script in head tag
also, that may not work with earlier browsers
 
Not sure we are targeting those :D
 
there's also a load event for body that you can use if you don't want to use jQuery
 
1:27 PM
I mean I remember times when people used $(document).ready()
 
oh, well then you should probably be using jQuery then :P
 
and placed scripts in head
 
it does the same thing
 
My colleagues thinks its awesome thing :D
 
I think earlier versions only supported $(document).ready()
 
1:28 PM
I will use jQuery only to animate stuff
 
I only say to use jQuery because it genuinely helps with older versions of browsers because it has a lot of polyfills
 
Or some sick selector logic maybe
 
@Raimonds that's a shorthand
 
I am sure we can get polyfills as a standalone thing now
 
been a while that I have seen that
 
1:29 PM
I was thinking about it
But it was liek 8 years maybe
since I wrote jQuery code
 
and it is good that you use jquery only for anim stuff
good.
 
I think there should be lib that covers animation part
 
do you know for which that shorthand is for? 😛
 
$.ajax was another thing
but well fetch api kinda wins :D
doc ready?
 
however, jquery animation can be replaced with css animation keyframes
@Raimonds yup
that is just jQuery(document).ready(function(){ ... })
 
1:31 PM
do keyframes handle emm what you would call animation end callbacks
and when you cancel it basically
 
yes
uhm cancelling ? why?
 
I found it particularly difficult
 
don't want to cancel a slide pop in a half...
 
sliding dropdowns?
if i decide to close it midway
or interact with another one
I think I had those cases long ago
I guess you can achieve a lot with keyframes but it lacks "logic" if it makes any sense
 
javascript animations are slower, but you can interrupt them midway
 
1:33 PM
just fix its state by changing the class ...
 
and by interrupt, I also mean you can start a new animation mid-way of another animation
though that said, use css unless you have a reason not to
 
yeah I remember that
from what I can see
in file I am looking at
only use of jQuery is to do shorthand for doc ready
and that it goes into vanilla js :D
 
I think jQuery UI actually integrated an existing library for the animations
just like jQuery is just a light framework on top of the Sizzle library
I just don't remember the name of the library
 
I know that jQuery UI adds a lot to animations
 
hey all, just read the faq - what's a "onebox"?
 
1:53 PM
@NickReed it's where you post an image and the chat will show it
if you posted more than one or if you added some text with it, it turns into a link
 
cool, i'll keep that in mind
 

« first day (3289 days earlier)      last day (1642 days later) »