« first day (3461 days earlier)      last day (1479 days later) » 
00:00 - 23:0023:00 - 00:00

12:09 AM
 
12:44 AM
That is pretty funny
 
1:13 AM
lol
 
 
1 hour later…
2:20 AM
If someone solves an issue they caused, do I thank them?
Firefox has some random ass input min width, but their super good dev browser and tools helped me to figured it out.
 
They caused the virus in the first place, then they solved it, would you thank them? lol
It depends
 
true true
 
 
2 hours later…
4:23 AM
firefox devtools are a pita
screw em
 
i love em
they tell you why it displays stuff a certain way
 
 
2 hours later…
6:21 AM
posted on April 07, 2020 by Ben Mason

Hi everyone! We've just released Chrome Beta 81 (81.0.4044.96) for Android: it's now available on Google Play. You can see a partial list of the changes in the Git log. For details on new features, check out the Chromium blog, and for details on web platform updates, check here. If you find a new issue, please let us know by filing a bug. Ben Mason Google Chrome

 
 
1 hour later…
7:48 AM
hi I want to click li item on document load
i am rendering li in map
and want to click li for i=0 and j=1
how can i do that
 
@PrakashReddyPotlapadu you mean fire the click event programmatically?
it's just .click()
 
yes I want to assign ref based on codition in react
 
|| mdn HtmlElement.click()
 
so, find your li element and call that function
 
7:58 AM
thank you
 
8:23 AM
Passing thru hoping someone can hold my hand and show me how to use "this" keyword to make this work for multiple fields github.com/googlearchive/webplatform-samples/blob/master/…
 
8:39 AM
@Stuart uhm what?
not sure what you want 😕
 
Hi Karel, As we all know, I know just enuff to be dangerous and thought I'd be able to breeze this but have been hung up for a couple days
 
> Sometimes when I'm writing Javascript I want to throw up my hands and say "this is bullshit!"
but I can never remember what "this" refers to.
 
hahahah
 
Allow me to share a wider view
lol
so I can implement it on a form on my site where people can list their dirt bikes for sale
on my classifieds
Well I got it working minus a ton of bloat but the problem is I need this to work on more than one field
and THAT is where things have become incredibly difficult (for me)
I "Know" I just need a dot and a this in there somewhere
I akin it to a sudoku puzzle
Help plz
 
*still confused*
 
8:45 AM
NP
I'll explain
Thinking...
I have a form with a Model and Description field
I want to show the Mic icon in both and make both employ voice input
The shared script will do just that but only for one field
If I want to do this in multiple fields it looks to me like Id have to duplicate the entire code
and since it looks to be OOP anyways, Im thinking im missing .this
somewhere...
Ive been stripping it down to this point
which is about 150 Lbs lighter than the orig
and still trimming fat
but I still dont see where Im gonna shoe horn a this in
So basically, I want this script to work in the Model and description fields here
without having to duplicate the entire 100 lines or so of code
for each field I use it in
 
do you use any library for that?
if you are using native API then you cna wrap it as a class
and give the input to it
 
No Library. Not sure what you mean by the rest
I think it already is wrapped as a class
or Obbject?
IDK
wandering lost
Know enuff to be dangerous but not this much apparently
and I danggg sure dont know what the Range() BS is
or if its even necessary
One thing for sure is dude who created this "Glen" porked it up with a LOT of bloat
Ive been shaving off
 
9:01 AM
well, it seems that it's wise to not support that feature
 
the speech recognizion api is still not so widely supported
 
huh?
 
and you have issues with some basic concepts
 
Oh... Yea I saw that too
Yes I do. Namely this
always have
with "this"
Help Plz?
 
9:26 AM
Hey, people. A (hopefully) quick TS question. I think I'm going mad but I can't seem why this code doesn't work in the TS playground. It's a simple arr.includes("needle"); where arr is of type any[] - so an array.
 
@VLAZ Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
Complains that it doesn't know about includes. I had the compiler option to be target: ES2017 and then I tried everything after ES6 and it still doesn't recognise the method. I also tried the last 4 versions of the compiler + the nightly build but to no avail. Is this something in the playground or am I missing some config setting there? I don't have access to a local TS environment right now to verify, unfortunately.
 
my first thought ES2017 seems missing
but you've that as target
 
Yeah, it really puzzled me. It seems like a problem with the sandbox - it doesn't recognise flatMap or flat among other things. It seems to really not understand ES6+ methods. Strange.
 
9:45 AM
hi guys someone use angular?
 
10:00 AM
@VLAZ I'm not a TS expert so idk why it shows that error. Not sure if that would occur when running ts locally
 
@KarelG hmm, I think I found something. You apparently need to add the --lib compiler option in order to let TS know about these methods. However, I don't see a way to do this in the TS Playground. So, it should work locally but I can't see an option to do this online. A shame - I use it a lot for making snippets to share.
 
 
1 hour later…
11:43 AM
Has this syntax invalid?
if(props.fontFamily === undefined) props.fontFamily = '';
 
there is any vue js developer I have I problem with vue and vuex.
 
@RohitNishad Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
@RohitNishad it's react
 
no bro its vue js
 
@Shafizadeh why do you think it's invalid?
 
11:51 AM
I don't think it's invalid, someone asked me and I'm asking you guys .. since I'm not a JS developer
 
@Shafizadeh if the props is defined then its right.
 
I see ..
 
@Shafizadeh it's valid syntax. Whether or not it's behaving correctly is another matter.
 
I see, ok thx guys
 
here is any vue js developer
???
 
11:56 AM
@forresthopkinsa Thanks! I didn't find this issue when I was looking around. OK, so it is something they are aware of and (so far) appear to want to do something about it. I'll not submit a separate issue, then.
 
 
1 hour later…
1:20 PM
github pages down :(
 
Hello guys, can i ask a quick questioon? How can i use dynamic value in a .map() function
 
@Ozzie Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
@Ozzie Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
1 message moved to Trash can
 
example: data.map( item =>{
  item.friend.`${name}`
]);

name will come dynamically from outside, purpose of this is, to make mapping in different sections of my array, ... i mean i want to set where i want to look for my data not only in certain place..
 
@paul23 yeah, right on the moment when I was checking documentation of a lib I was using in my implementation >.>
no mirror
so went into the source code
🙄
(github itself is online, so just check their pages)
 
1:37 PM
well when learning on a large library (knex) going to the source isn't really a handy solution ;P
back online though
 
just now ?
when I finished my implementation?
it's building atm for testing.
GRRR
 
can anyone tell me about what is benefit of the webpack image loading.
 
fun fact: I'm using more left joins than inner joins
 
inner join has a specific use case :P
best data aggregation is left join imo
if that part is not present then ok. the variable is just null or has an empty object
 
Hi guys i have a question
in angular javascript
i ave this objct
 
2:26 PM
I have this object: {"m":1,"b":67,"a":4}
when i do
ng-container *ngFor="let proprieta of trasformaArray(rowData);" it prints me "a" value first but i want that prints me the order that I set
 
if you want order preserved, you should use an array
 
<ng-container *ngFor="let proprieta of rowData | keyvalue">
 
> if you want order preserved, you should use an array
 
||mdn Map class thing
 
2:34 PM
lol
 
> The Map object holds key-value pairs and remembers the original insertion order of the keys.
 
@JBis yes lol
but we have a triage. People is afraid to go to hospital for other issues
<.<
 
I don't care how many commands it takes, it's better than looking it up
 
like that there are suddenly no heart attacks anymore
 
2:43 PM
lol
 
What's so frustrating is that it isn't like we don't have laws to prevent this bullshit, we do, it's that no ones willing to enforce them.
 
he will use his common counter-responses: "FAKE NEWS"
so, FDA is not so independent?
have to go, groceries time. Gotcha queue up
 
Good luck o/
 
Why do you guys in the us not vote by means of electronics so you don't have to walk towards a voting stall which is a risk?
 
because that would increase voter turnout which benefits only one party
 
2:59 PM
No, more because our government is too incompetent to make an app that works.
 
we already have a system for remote voting that is widely accepted
it's just most people aren't allowed to use it
 
We use mails in ballots
 
the mail in ballot. it's heavily used in some states, washington for example
 
@KevinB higher voter turnout should be favored
 
3:01 PM
should be, but people will do anything to retain power
see Wisconsin right now
 
yeah but that's so old fashioned, now with corona era we need to embrace a full digital life. Where digital environment is protected from privacy pirates like they are terrorists by the government.
 
if 90% of the population is for party A and 10% is for party B, but the party A people just cant be bothered to actually vote, (which means 100% of the votes go to B), does that mean that 100% of the population is for party B?
@paul23 the second video is from 2019/12/09
 
I think they should just contract Apple or google to make an app
 
they're not even being quiet about it, political hacks in georgia were openly arguing against mail in ballots by saying it would increase turnout and hurt their chances of winning
 
and he explains why it is still a bad idea
 
3:03 PM
like...
duh
lol
 
yes and all his arguments rest on a government which doesn't understand the internet
 
I must disagree
 
@paul23 so hire people who do
 
Just like in real life my identity is strictly controlled by the government: no one can just take it.
On the internet suddenly identity theft isn't a crime at all it seems.
 
google could spit out a 10x better app in a week than the government could do in 2 years.
 
3:04 PM
microsoft had an opensource solution to it 4 years ago
 
really? Link?
 
can't atm
search microsoft voting opensource
 
Real life identity theft is even quite actively hunted internationally by many countries, and those who do not follow suit often have severe restrictions on joining the international trade/people trafficking.
Yet on the internet I haven't seen anyone like interpol who actively hunt and capture hackers, and who remove connections from countries which do not support the hunting.
 
@paul23 not even a minute into that video, Scott already made a good point...
with voting at a place with personell and stuff, no one can force you to vote for a particular party
 
3:06 PM
I think that needs to be put in place, and then we can do all things we want as you can be safe online.
 
if you do it from home, someone could put a gun to your head
 
@Wietlol and you cannot be put a gun against your head before entering the stall?
 
sure, but people will prevent multiple people going into that stall
also, they could notice the gun perhaps
 
someone put a gun against your wifes head and demand you lifestream your voting using a hidden camera.
 
@Wietlol it's not really an issue I don't think
 
3:08 PM
just fearmongering
 
it is not an issue with the largest effect, no
the issue with the largest effect is probably hacking
 
Online voting means it's safer to vote - as you can vote from the safety of your house. Instead of having to maybe go in line where a terrorist can attack.
 
Hacking is an issue, but every software system every has that issue and we rely on it for nuclear warheads.
 
Thus it prevent people clustering and can lead to more people voting and hence is better for the democracy.
 
attacks against paper voting dont scale
 
3:10 PM
Hacking can also be done by a group of people who deliberately "lose" ballots... I think that's actually more easy to organize than hacking modern security.
 
@paul23 not for a country like Russia
 
@Wietlol tell that to the many new democracies like africa and the us.
 
just watch the video
 
3:32 PM
hi
how can I append <br/> to string here
{contact.Name && contact.Name + ","}
<br></br>
{contact.ContactFullName && contact.ContactFullName + ","}
<br></br>
{contact.Phone && contact.Phone + ","}
<br></br>
{contact.Email && contact.Email + ","}
<br></br>
I want to put br inside {} so that <br/> will render only if there is content
 
Hi Prakash, are you using Pug? I think you can make an "if" statement in Pug that will render an HTML tag when a condition is filled. pugjs.org/language/conditionals.html
 
 
1 hour later…
4:44 PM
bit of a simple question: but what is the sql to offset "based on data in an entry"?
IE: I have entries with which I order by a "index" and a unique different id. now I wish to get the next 100 entries -ordered by index- after the index of entry with id "20".
 
 
1 hour later…
6:03 PM
> It's been pointed out that keyCode is now deprecated. The next best alternative which has also been deprecated.
 
@techie_28 Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
1 message moved to Trash can
 
I tried this to redirect to a URL on click of back button but is not working
sorry
if (window.history && window.history.pushState) {
        jQuery(window).on('popstate', function() {       console.log('baked')
                window.location.href = 'https://www.google.com/';
                return false;
        });
      }
 
6:19 PM
!!mdn popstate
 
What you appear to be trying to do, would be a bug if it worked
 
ya it is discouraged to hack a browser feature
but need to disable back button or have a redirection on it
 
that's impossible
 
if you abuse that functionality, browsers will think your site is malicious
 
6:27 PM
onbeforeunload is the only acceptable way to implement that feature
 
onbeforeunload is sometime not invoked in Chrome if user interaction is not there?
 
Probably exactly for this reason
 
i'm not sure of that
afaik, it should happen if you bind to it and return a string.
you can't stop the action, but you can let the user stop the action.
 
@techie_28 Don't break back buttons. Why do you want to do that? What problem are you trying to solve?
 
It is for job starting... time at which it is started is a crucial thing.. this is done through a button on a page.. after clicking JOB START button on page if a user clicks back button after like 5 mins.. he can click the start job button again & it would update the time which we do not want
 
6:33 PM
sounds like you're trusting the client too much
 
^ sounds like you want your job to be on the server side and poll for completion state after returning a status 202
 
look at it this way... you're spending all this time with client-side solutions to solve a problem some clever person figured out to abuse your system. You may be able to find some way to fix it by messing with the logic around the back button and unload events, however... it's gonna take way less time for said clever individual to find another way to break it than it will for you to fix each problem they find.
but if you handled the logic server-side... they have no tools to mess with it
 
I think the page dosnt reloads completly when back button is clicked.. it is using the BACK FOREWARD mechanism there?
 
like, you could bind this new onbeforeunload event, or popstate if it still worked, but... the user could just... unbind it.
 
yea.. I tried to have a server side solution but it is on a web tool which doesnt have code layer open
QuickBase
 
6:49 PM
@cpog90 Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
@cpog90 Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
For posting large code blocks, use a paste site like like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
1 message moved to Trash can
 
posted on April 07, 2020 by Ben Mason

Hi, everyone! We've just released Chrome 81 (81.0.4044.96) for Android: it'll become available on Google Play over the next few weeks. This release contains the following features, as well as stability and performance improvements: 27 languages were added, including Burmese, Armenian, Urdu, Central Khmer, and Punjabi.When a password is saved in Chrome’s password manager, Chrome will

 
fucking CORS
 
7:10 PM
lol
 
oh yeah congrats @forresthopkinsa
 
user11867329
Odd question, is this possible on frontend (to act as filter)?
Button one runs: .class1 {visibility:hidden} .class2 {visibility:visible}
Button two runs: .class1 {visibility:visible} .class2 {visibility:hidden}
 
posted on April 07, 2020 by Prudhvikumar Bommana

The Chrome team is delighted to announce the promotion of Chrome 81 to the stable channel for Windows, Mac and Linux. This will roll out over the coming days/weeks. Chrome 81.0.4044.92 contains a number of fixes and improvements -- a list of changes is available in the log. Watch out for upcoming Chrome and Chromium blog posts about new features and big efforts delive

 
user11867329
I'm sure with javascript this would be easier (button = #function)
but I don't know JS properly enough
 
user11867329
7:16 PM
This makes sense?
 
user11867329
$(".class").toggle();
or
$(".class").show(); $(".class").hide();
 
Do you guys organize your react components or just throw em all into one folder?
I feel like Chat could be its own folder, with sub folder messages, etc
 
@JBis organize
otherwise you go mad if you need semi-complex setups, esp. for large apps
 
React can often grow in massive size
 
Yeah thats pretty much how its done with angular, make a folder 'components' and the subfolders will be 'chat' and 'app' etc
 
user11867329
7:24 PM
is there a simple way, in JS, to run CSS on-click
 
run css?
 
@OakDev use toggle
 
user11867329
then call toggle how? (0 experience with JS)
 
its jquery, thats what you provided
 
user11867329
I'm trying to do that in JSFiddle but it's not working.
 
user11867329
7:26 PM
like, at all.
 
user11867329
I'm on jquery api doc
 
:shrug:
works for me
 
:shrug:
works for me
How can we possibly know if you're doing it right
 
user11867329
 
user11867329
>_>
 
7:28 PM
err
what is book
 
what the heck....
 
you also didn't include jquery
 
lot of errors
 
user11867329
 
user11867329
 
user11867329
Yep yep yep, sorry, switched and added something that made more sense
 
you arent including jq
 
user11867329
I just did
 
user11867329
 
@Feeds yus
o frabjous day
callooh! callay!
 
7:31 PM
You now solved it yourself
 
meh
 
user11867329
Doesn't work tho...
 
its working for me
 
user11867329
OoooooOOooo
 
user11867329
kindda works
 
user11867329
7:36 PM
On the website, how do I call/include/invoke/therightword jquery
 
user11867329
<script src="jquery-3.4.1.min.js"></script>
and that's it?
 
yep all you need is that script tag
 
user11867329
suspicious
 
@VLAZ Use repl.it instead
 
user11867329
https://jsfiddle.net/2d3w8a0x/6/
What if both test1 and test2 can't be visible at the same time?
 
7:42 PM
@Unbreachable cool thanks
 
@OakDev huh?
anytime jbis
 
user11867329
@Unbreachable well, say by default (pageload) I need only to see test1
 
you only have the toggle on tes1
 
user11867329
when I click "clickme"
 
Lol I can't believe this is considered news usatoday.com/story/news/politics/2020/04/07/…
 
user11867329
7:45 PM
test1 should disappear
test2 should become visible
 
user11867329
and loop upon click
 
just hide test2 then
 
user11867329
?
 
user11867329
but how will the same button know which one to toggle
 
user11867329
after first click
 
7:48 PM
What kind of news is that lmao
 
> unveil a new hashtag
 
user11867329
and how do I "hide test2"
 
user11867329
 
user11867329
I'm almost finished making noise.
 
What you can do is just put test2 inside of test1
how you had it before, but just put test2.toggle inside of test1.toggle
 
user11867329
7:55 PM
in function(HERE) bracket?
 
user11867329
$( "#test2";"test1" ).toggle( function() {
 
user11867329
??
 
user11867329
in where
 
$("#test2").hide();

$( "#clickme" ).click(function() {
  $( "#test1" ).toggle( function() {
 		$("#test2").toggle();

    });
});
 
user11867329
7:58 PM
$( "#test2;#test1" ).toggle( function() {
 
user11867329
uhhhh, ok! let me try
 
user11867329
Perfecterino.
 
user11867329
Can I call elaborated classes?

.something-161 .element.something-element-6704259:not(.something-motion-effects-element-type-background), .something-161 .something-element.something-element-6704259 > .something-motion-effects-container > .something-motion-effects-layer
 
weird. i clicked invalid on that flag, but it says i've flagged it
 
 
1 hour later…
user11867329
9:27 PM
@Unbreachable ?
 
yep whats up
 
user11867329
Can I use the same mini-script from earlier with elaborated classes
 
user11867329
if so, I don't know how to properly (syntax-wise) insert it
 
use the script with the classes? Im not sure what you mean by that
You don't know where to insert the jquery script?
okay, I think you are referring to the code right above, my mistake. If you mean using multiple classes within selectors, then yes.
 
user11867329
9:46 PM
yes, section class="textabove"
 
user11867329
with spaces and dots and etc...
 
Of course, thats possible
 
user11867329
How do I properly insert it?
 
user11867329
Do I add # in front of every new class?
 
Thats what I am not understanding....insert it where?
In this case i am talking about CSS
Are you talking about what you tried earlier ?
$( "#test2;#test1" ).toggle( function() {
#id#id { } will work, but thats pretty weird
.class#id {} works too
 
user11867329
10:01 PM
I have this element that I need to hide/show (via toggle):

<section class="has_ae_slider something-element something-element-6f75d311 something-section-stretched something-hidden-tablet something-hidden-phone something-section-boxed something-section-height-default something-section-height-default ae-bg-gallery-type-default something-section something-top-section" data-id="6f75d311" data-element_type="section" data-settings="{&quot;background_background&quot;:&quot;classic&quot;,&quot;stretch_section&quot;:&quot;section-stretched&quot;}" style="width: 1420px; left: 0px;">
 
user11867329
I can do so by using CSS (visibility:hidden) with the selector(s):

.something-161 .element.something-element-6704259:not(.something-motion-effects-element-type-background), .something-161 .something-element.something-element-6704259 > .something-motion-effects-container > .something-motion-effects-layer
 
user11867329
How can I use the script to select this section/element?
 
user11867329
10:19 PM
(Side-note: I added a small bounty for my question > stackoverflow.com/questions/61038707)
 
brb getting a bite
 
user11867329
nooOOoooo
 
10:53 PM
huh lol
 
00:00 - 23:0023:00 - 00:00

« first day (3461 days earlier)      last day (1479 days later) »