« first day (4008 days earlier)      last day (1162 days later) » 

05:49
Hello folks. Our application talks to an oracle database using the oracledb module. For some reason, we find that in production environment there is a firewall that closes idle sessions. When that happens the app for some reason, is unable to establish a new connection, and, subsequent db queries fail with a connection timeout error.
Can I do anything to simulate a stale connection problem as reported above...?
What I have tried so far, is (1) restarting the db, and, (2) proxying the db connection via nginx, and then bringing down/up the nginx instance to simulate this problem. But in both cases, the web server requests fail and then resume as normal.
The observation in the production environment is that once the connection pool in the application has entered into the stale state, it is not able to recover and establish new connections. But after the app restarts, this problem goes away it seems.
06:05
0
Q: How to valid form same name with multiple inputs?

SmallerFor example i have a form like: <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <form class="myclass" id="myid" method="post" action="otp.php"> <input type="text" class="form-control" name="code" maxlength="6"> <input type="submit" id="btnotp" class="...

06:38
@deostroll What if you just pull the ethernet plug? No time for the server to close the connection!
I think what I did with nginx sort of simulates this...the observation there was the requests to the server fail and then resume normally once nginx is up...
During failure, I get errors such as tns no listener. Not connection timeout error though...
Need some help migrating from AngularJs to Angular: In AngularJs there was a $setValidity, allowing to set arbitrary elements to invalid from within a directive. How do I do this in Angular components?
@deostroll Maybe you can use a local oracle install and change...something on the instance itself while the connection is active.
I remember the tns listener thingy but I don't remember what I did to fix it, so I don't know how to explicitly cause either.
 
3 hours later…
09:39
Hello
I have array of objects
tosList = [ { title: 'Title', description: 'Text' } , { title: 'Title 1', description: 'Text 2' } ]
What I want to do is to display link in description
how to do that ?
<p *ngFor="let tos of tosList">
      <strong class="text-uppercase">{{ tos.title }}</strong>
      {{tos.description}}
    </p>
Instead of 'Text 2' I want to display <a href="google.com">google.com</a>
09:56
can somebody help me to resolve this : stackoverflow.com/questions/69462591/…
was stuck for a long time without help :'(
@MileMijatović Then put that tag in there, like this:
<a href="{{tos.description}}">{{tos.decription}}</a>
@mitsu Right before "var map =..." put console.log('colors', data_color); - does it have all the colors you expect?
yes i have all the colors and code_dept
i think that the rendering of the array here is not correct :       data_color.push({ [myJson_departement_list[x]['code_dept']]: { fillkey: interval } });
i have this :
but i should have this instead :
so i think this line is not 100% correct :
  data_color.push({ [myJson_departement_list[x]['code_dept']]: { fillkey: interval.toString() } });
10:12
You directly passed data_color to that log without touching it? Because it's an object when it should be an array.
I initialized data_color as array
let data_color = [];
so i can push data into it :
  data_color.push({ [myJson_departement_list[x]['code_dept']]: { fillkey: interval.toString() } });
but it doesn't have the correct rendering as i expect
just like the second screenshot (gif)
What rendering there is no graphics involved here, just data
The object you log is an object instead of an array
So either somewhere along the way your data_color is overwritten to an object, or you log the wrong object.
Make it const data_color = []; to make sure it isn't overwritten.
const means you can't reassign it - it still lets you push new objects to the array.
still does not work :'(
i made a consolelog
console.log("-----data", map.options.data);
10:23
Before map =
Log data_color
Not whatever is within map
yes that's what i did before
Also don't use var for the map, change it to const or let
i'll show you
okay
Or you know what, just throw console.logs everywhere
After initializing data_color
After data_color.push
Before initializing map
After the for loop
Or like, press F12 and step through the code to see where it changes
this on is just after the for loop
before map =
10:28
Then check the source again that told you how to put the data into the map
Since apparently data_color itself is ok
what source ? :/
Well how do you know to add a property called "data" to the map and assign data_color to it, and how do you know what format it's supposed to have?
Also more console log right after assigning map
And the whole map because why not
i made this :  data: data_color, to assign data colors to the map proprety
i made consolelog before and after map =
and it has the same result
Why did you make data: data_color to assign data colors to the map property?
data:
is part of the plugin Datamaps
so i needed to assign it data_color
normally, it should have something like this :
  data: {
    "YV": {
      fillKey: "201-300",
    },
    "SL": {
      fillKey: "51-100",
    },
  },
10:34
Oh it should?
I understood it the other way around lol sorry
So it should be an object, and it should not be an array?
i made an array so i can make a push like this :
  data_color.push({ [myJson_departement_list[x]['code_dept']]: { fillkey: interval.toString() } });
Then just make an object instead, like
because i don't know how populate object instead
data_color[[myJson_departement_list[x]['code_dept']]] = { fillkey: interval.toString() } });
Just throw the index into [ ]
Like a dictionary or map, depending on what other languages you know
js
10:37
In js, everything is a dictionary :D
object[index]=data
Also works directly,
object["MyProperty"] = data;
is the same as
object.MyProperty = data;
I think there's a closing } too many at the end
Yeah my example code has one too many closing } in the end
it was : )
parenthesis
Grrr, even with array i doen't work
i don't understand why :'O
10:44
Bit it's an object now, like you wanted
i have :

const data_color = [];
data_color[[myJson_departement_list[x]['code_dept']]] = { fillkey: interval} ;
Or is it? Initialize data_color as = {}
Ya need to be {} now instead of []
Now i have the same rendering
but no colors in the map xD
I am going mad x'D
well :/
when i made an object as you told me
i have the same rendering but there is some little thing different in the console inspector
annotating in flow just has become weird..
A function getIndex in a class would be now:
getIndex: (string) => number = (s: string): number => {
 
1 hour later…
12:15
hi mr's :)
Anyone there?
13:13
o/
13:48
Any help for my post please stackoverflow.com/questions/69462591/…
14:38
Hello! Is there anyone that could help me out with this problem? stackoverflow.com/questions/69460642/…
@PabloEstrada 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.
 
1 hour later…
15:54
I had to share this...

https://github.com/VirtoCommerce/vc-platform/issues/2388#issuecomment-936516788
This just blows my mind lol, figured I'd share it on the old stomping grounds. Hope you're all doing well.
how can i compare items of a for loop with each value of a tag (<p>) using js ?
it does not work but it's something like this:

  for (let i in myJson_departement_list) {
    $(".domtom-container [dataset-interval]").each(function () {
        var $this = $(this);
        console.log("dept = ", myJson_departement_list[i]["dep_name"]);
        console.log("paragraph =  ", $this.find("p").html());
        if ($this.find("p").html() == myJson_departement_list[i]["dep_name"]) {
          // code here
        }
    });
  }
 
1 hour later…
17:26
@mitsu jsfiddle.net/loktar/x3dc4tnw something like that could work.
Dang man this room is like a Saturday at 1am in the old days.
Not working :(
you probably don't want a loop in your loop
nothing in the consolelog, and when i inspect 'para' it's undefind
map your myJson_departement_list[i]["dep_name"] into a simple array, then when you loop over your elements, you can use .includes to see if the value is in the array then take action.
your current setup touches the DOM way too many times
additionally, you'll want to trim the output of $this.find("p").html()
and no reason not to use strict equal there
@Loktar yea... it's been dead for a while
Well nice to see you here still holding the fort down :)
17:40
courtesy of SO
and Thiefmaster
@KevinB what do you mean? You employed by them now?
no
i mean this chat dieing
;)
oooooh yeah I know :/
I miss most of "you" people
well, we're all still in the same place
Yeah I left that place back when I had a bunch of personal stuff going on
17:42
well, most of us, anyway
but that place is a secret
Actually man that was 2019 I think? Crazy..
Not asking, but if there's people who don't oppose I'd love to say hi even if segregated into the public portion. If not let them know I said hi and miss them, even rlemon.
I wasn't all that active before you left i think
but my normal place to talk politics died, so i moved it there
hah, I try to avoid that now on the internet if at all possible
far far far away
gang gang
Hey!! Whats up man
17:49
Not much, living my life one day at a time until my inevitable demise
How you keeping?
Same thing basically, kids older (one graduated) new job(s), etc.
Still collecting Vita games and 3d printing so not a ton different :P
damn son, you old
lol yeah 39 this year
like... a week ago actually, 1 more year until death basically
Your bday is in Sep too isnt it?
I never got into vita collecting, I literally just use mine for the ps1 emu
yeah yours is the day before mine haha
that's right I knew we had close ones
lol yeah good luck getting into Vita collecting now anyway it's insane
glad I completed my collection when I did.. now I just want to sell it all lol
17:58
lol yeah I've seen games in the hundreds
new world is fun
cant wait till they get free transfers going so i can get off this crap server
I'm still waiting until ques die down
i'm on nepenthe, want to be on zuvendis
I'm on Mu in NA East
18:18
"free transfers" he.. sounds more like transfers will cost
posted on October 06, 2021 by Prudhvikumar Bommana

 The Beta channel has been updated to 95.0.4638.40 for Windows, Mac and Linux. A full list of changes in this build is available in the log. Interested in switching release channels? Find out how here. If you find a new issues, please let us know by filing a bug. The community help forum is also a great place to reach out for help or learn about common issues. Prudhvikumar Bommana G

there will certainly be paid transfers, but they specifically promised everyone a free transfer when they opened up the second wave of servers to entice people to move to a low pop until things settle
but meh, i'd be willing to pay either way, ive already got my money's worth
40$ game, 60 hours in,
19:01
Anyone get Windows 11?
19:11
yes, but javascript version
 
1 hour later…
20:17
who can convert javascript to jquery?
What are you trying to do
Hi @Smaller, I just updated the code above. Did you managed to run it? Let me know if you have other problem on it. — Navi Oilab 11 hours ago
look the script replied by @Navi Oilab
which is i need jquery method
wdym
it's got jquery in it
document.querySelector('input').addEventListener("paste", function(p)
its jquery?
that's not, does it need to be?
why can't you convert it
20:24
jquery like $('input').on("paste", function(p)
seems like that'd serve your needs
it's not a 100% copy, but i suspect a 100% copy wouldn't do what you want anyway
so can make jquery solution of that question?
i won't, no
i don't understand the question
right
> jquery copy paste numbers to fillup input fileds
doesn't mean anything to me
If you have a solution, you can post an answer
20:33
see @Navi Oilab example
20:47
Is anyone familiar with Vue JS and JS promises? I'm using FETCH API to fetch data sequentially with multiple promisesand the second promise is inside a for loop but for some reason it outputs "Promise<pending>" with console.log. I haven't used Vue nor promises before, i'm transitioning from jQuery.

If anyone has an idea how to resolve this issue then please check this url https://jsfiddle.net/j08abywL/
I'm just learning Vue
i don't know vue, but this doesn't sound liek a vue problem
^^
How is Towc speaking of Vue? He's all I think of when I see Vue lol
I understand, but it sure is a problem i'm trying to solve :D
err, that console.log isn't valid there
Mybad
20:50
where is it actually?
yeah
i fixed it just now
i haven't seen towc in a long time
Sad thing is now at two different jobs I've had to argue for React over Vue Towc was right.
20:50
Why react over vue though?
i use react over vue because i learned react and not vue
¯\_(ツ)_/¯
lol same thing here basically, I also hate keeping styles in the same file
probably ways around it, but meh, I like my React way
But you don't have to?
listData.json() returns a promise
you have to await it if you want the result
20:52
{reminds me of Angular too much}
I understand but how
await console.log(...);
dont work
nor
console.log(await listData):
listResponse = await fetch(...);
listData = await listResponse.json();
Damn, thank you, i didn't know i had to do it like that! Kinda saved my night rn
!!stat 3161092
Username: towc
ID: 3809783
Reputation: 1863
Reputation Change Month: 0
Last Accessed: Wed Oct 06 2021 04:46:57 GMT-0400 (Eastern Daylight Time)
21:00
last seen 309d ago
Wow.
Hope he's doing well
21:50
posted on October 06, 2021 by Krishna Govind

Hi everyone! We've just released Chrome Beta 95 (95.0.4638.40) 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

ohhi
i need help with a minor thing
it's called ;; .... text is truncated due to size
i have a 3.5MB WASM module i want to debug
and Chrome refuses to load my function which is a bit further in the file than the above message
are there any easy fixes for that?
I've even downloaded the file to disk in devtools, but editing wasm files manually is... challenging
that's something i've never used
I assume you've come across this already: diverto.github.io/2020/08/15/WebAssembly-limit
which imo sounds like a pretty heavy handed approach, but
yeah, recompiling entire devtools sounds like a lot
right now I'm stepping through the binary without seeing it
i'm just navigating by the program counter
and cross-referencing it with the binary

« first day (4008 days earlier)      last day (1162 days later) »