« first day (4232 days earlier)      last day (699 days later) » 

12:47 PM
This is an Angular PrimeNG Calendar question that I had posted. Is it possible to manually set the Calendar Time HH: MM: SS drop down? This is not the form field value but rather I need to be able to manually set the drop downs when things changed.

Here is the detailed posting: https://stackoverflow.com/questions/72287119/primeng-calendar-how-can-i-manually-set-the-time-slots-h-m-s-of-the-calendar-no
 
1:22 PM
I still think 90% of typescript, javascript and all it's libraries and frameworks errors would be completely nonexistent if Javascript simply had the option to be STATICALLY TYPED!
 
@Paulo-Krg 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.
 
@Paulo-Krg Static typing is better but not a silver bullet. Python is statically typed yet it has similar problems. Less of them and the error messages tend to be more helpful but the nature of the problems is the same.
 
 
1 hour later…
2:26 PM
@Paulo-Krg true, and us who use TS strictly basically treat it as if it was statically typed, although, in defence, no one in Netscape thought JS will actually be used by programmers :)
 
 
1 hour later…
3:42 PM
-1
Q: convert functions javascript language to jquery library

javier palomaresI have been told to pass/convert 3 functions from javascript to jquery and I haven't learned jquery yet. They are very basic functions if any of you can give me a hand. Thank you function showSection (sectionName){ document.getElementById(sectionName).style.display="block"; } function puz...

 
 
1 hour later…
4:55 PM
@KevinB what monster asks to convert from native JS to jQuery these days??
 
5:12 PM
A clueless monster, who thinks the lines numberMovements=-1 and board=['1','2','3','4','5','6','7','8','9'] also need to be converted to jQuery.
 
I am also very pissed off by established contributors thinking we are a code generation service
 
5:28 PM
@OlegValteriswithUkraine i came here today looking to ask "How do I trigger a function when document.getElementsByClassName('sendbtn')[0].disable changes from true to false" but upon seeing your message, I'd probably just read for a few hours on DOM Mutations and things like that, and if nothing works, change the approach.
 
@MisterGeeky btw, you can safely ask it here :) chat is much more freeform - it's the treating of the library of knowledge like a helpdesk that is pissing me (and many other established contributors) off
you will likely need a MutationObserver listening to attribute changes on the target element
 
chat is more like a help desk than SO Main is. things are far less formal here and nothing posted here is meant to contribute to the repository of knowledge that is SO's Q&A area.
ideally in your case you'd just hook in to whatever is changing the button's disabled property
 
speaking of mutation observers, when compared to asking "please convert this for me because I am too lazy to learn it myself", it looks like a reasonable question. Maybe a duplicate of a hypothetical "how do I listen for an attribute change on an element?", but it can be a valuable contribution if written well. We don't generally treat RTFM questions badly provided they are good questions (and if you see any such - flag it).
and what @KevinB said, it'll probably be much easier to just hook into what is changing the attribute (provided you are in control of that - of course, there are a lot of cases where you aren't)
 
5:52 PM
posted on May 18, 2022 by Prudhvikumar Bommana

The Beta channel has been updated to 102.0.5005.61 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 BommanaGoogle Chrome

 
 
1 hour later…
6:56 PM
Hello guys
I've got a question about storing a numerical data on a database, let it be MySQL or MongoDB server, and I need to update this numerical data each second.
Every user will have this data, and there will be an increment amount for that data. You can think of that as this: User A has 10000 woods and user's production is 3600 woods per hour, this means that I need to update user's current wood data by 1 each second.
I think that having a cron job like approch is best for this, but I can't update every user's data each second like that, because it can be very inefficient. What do you guys think about it?
 
if the increment is steady, you can store a value and a timestamp then simply calculate the current value based on time since timestamp.
No need to constantly update the database with a calculatable value
Annoying. A vscode or extension update changed the code theme for dart
now theres yellow brackets for who knows why
 
@KevinB thanks, this makes a lot of sense. So I will need to implement a calculation method that calculates the current value with respect of time passed just before making any action with that value. Thanks!
 
@KevinB huh, I was baffled when the change went live too - although that's not about the theme
it's the "colored paired brackets" change
 
yea
i haven't looked too deep into it yet, so i just assumed it was unique to dart,
 
turned it off after two minutes of thinking that I am going mad
"editor.bracketPairColorization.enabled": false
^ 'tis the setting to save you a couple of seconds of pain
 
7:12 PM
much better
 
yeah. I use dark mode, so when the IDE happily lit up like a rainbow, it wasn't a very pleasant surprise. I wish things that change appearance would be off by default instead of making me waste my time by reading the changelog, finding the thing, updating settings, checking that it works, and only then being able to live normally
 
but but but it's more accessible!
therefore it must be useful/wanted by everyone
 
apparently, it got very positive feedback. I am half-temped to go read the discussion
 
i'm curious why it's just now being enabled
this was apparently introduced in 2021
oic
they just made it the default now..
17
Q: vscode bracket pairs changed colors with v1.67

TheQuestionerI was trying out Swagger for Go. But somehow in Visual Studio Code it changed the colors. Before I installed Swagger the braces and brackets were not pink, yellow or blue. I tried already uninstalling Swagger and Vscode but this didn't help. Any suggestions? EDIT: I'm using this golang implement...

 
7:19 PM
bastards
 
I do not know who needs their bracket pairs colorized, but even if it has to exist, I do not get the idea behind making it the new default. Object literals look incredibly moronic when colored
 
its the way of making the design they want the mainstream one, by force. sure, we can disable it, but now all new users of vscode will see it that way by default and just get used to it
 
Yeah, that's standard practice, I guess. Just that I would like to see the reasoning for having brackets colored in an IDE. I used to have trouble determining paired brackets the first month or so of me programming before I reaned about not writing deeply nested blocks, loops, etc. and use abstractions properly
 
i'm fine with colorized brackets that are consistent
{foo: {bar: "foobar"}} shouldn't have two different colored brackets
neither should foo(bar())
 
Not to mention that in dark mode it looks like a platoon of clowns descended on the IDE. And I have no idea why some are yellow, some are purple, and some are blue - and have no intention to add yet another mental strain on my head...
And I agree that semantically identical brackets should be colored... identically
 
7:28 PM
a clown fiesta
 
Hello
I deleted repository yesterday
and created a new one
 
It's probably the most baffling change, IMO, since the one that broke shell preferences
 
I am trying to push changes to that newly created repository
$ git push origin master
error: src refspec master does not match any
error: failed to push some refs to 'https://github.com/mile-mijatovic/Google.com-React-UI.git'
 
Read the transcript :)
22 hours ago, by Oleg Valter is with Ukraine
yes, you just need to add a new remote, set upstream, and push
^ from here, sorry for the lack of a ping
 
How to do that ?
 
7:32 PM
Two messages after that :)
 
click the "22 hours ago" link
 
Ok , thanks
One more question
 
git simply stores remotes in its config, so it's just a matter of updating/setting the corresponding remote URL
 
I want to push changes on master branch
 
Hello
 
7:35 PM
@user3079987 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.
 
@MileMijatović yeees, and?
 
When I create a new branch, changes will be commited to that branch, and not master ?
 
Hello
I have a pdf form, the below code is not working as intended when a key is pressed.
Can anyone guide me please?
var one = this.getField("15");
var two = this.getField("15two");

if(two.value==''||two.value==null){two.value=one.value}
 
depends on what you have checked out, @MileMijatović
pushing to another branch that you have checked out is also possible, just specify the name of the branch
 
What about it isn't working?
 
7:40 PM
$ git remote add origin "https://github.com/mile-mijatovic/Google.com-React-UI.git"
error: remote origin already exists.
 
then it, well, exists. Did you recreate it with the same name?
 
Oh, my fault
istead of git push origin main
I type git push origin master
it's ok now
 
:)
say thanks to GitHub giving in to "master branches are racist" agenda
 
Yes masta
:D
 
@user3079987 Please don't post unformatted code - use the up arrow to edit your post, then hit Ctrl + K to format the code in that post. 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
 
7:51 PM
@MileMijatović :) the sheer amount of energy released by all the busywork of that pointless change was probably enough to power a first-world country for a year
 
I have two fields in a pdf form. When I input in the first field, the second field should get filled with the same data automatically on keypress. Unfortunately Acrobat DC has mouse events only by default. So I added the below code. But it's not working on keypress event. Can anyone please guide me?

	var one = this.getField("15");
    var two = this.getField("15two");

 one.onkeyup = function () {
        two.value == one.value;
    };
 
@user3079987 answer this, please: "how many equality signs are needed in an assignment?"
 
@OlegValteriswithUkraine one
 
@user3079987 now look at the code again :)
 
@OlegValteriswithUkraine I have changed it now. It's working but only after I put my cursor after entering my input. What I need is the second field should get filled at the same time I input in the first field.
 
8:03 PM
that's what that code would normally do, i'd suspect you're running into a limitation of your environment.
 
var five = this.getField("17");
var six = this.getField("17-two");
if(six.value==''||six.value==null){six.value=five.value}
 
I don't know how Acrobat handles UI updates
 
Here is my another code. How can I trigger keypress event for the below code? Your valuable support is much appreciated.

var five = this.getField("17");
var six = this.getField("17-two");
          if(six.value==''||six.value==null){six.value=five.value}
 
it looks like it calls something on focus event being dispatched
so you just need to figure out what it is
 
@OlegValteriswithUkraine It has only mouse and on focus events only by default. But we have to add the keypress event seperately.
 
8:07 PM
2 mins ago, by Oleg Valter is with Ukraine
it looks like it calls something on focus event being dispatched
 
Anyway, Thanks for your time. Let me see if any other options are there.
 
just figure out what actually updates the UI and call it after setting the value
 
@OlegValteriswithUkraine Sure! Thank you.
 
hello
 
@RoninHunter 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.
 
8:10 PM
@user3079987 NP - I don't know what it is in Acrobat, but there has to be something. Since you get the value updated after you put the cursor, it means that something is called on focus event. Just find what it is, and you should be all good
 
!!hi
 
Hello
 
!!choose xnet routers
 
routers
 
@OlegValteriswithUkraine Yeah, You are right. I had done it very long back. But now I just forgot it. That's why. Thank you so much.
 
8:13 PM
1
A: Value not being updated on form

Max WyssThe defaultName is a property of the field which is not really visible; you'd have to refresh the field values to display the new defaultValue. To do that, you have various possibilities: a) set the field value as well: this.getField("FirstName").defaultValue = "John" ; this.getField("FirstNa...

^ looks like this might be of help
 
 
2 hours later…
10:04 PM
posted on May 18, 2022 by Ben Mason

Hi everyone! We've just released Chrome Beta 102 (102.0.5005.58) 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. Erhu Akpobaro Google Chrome

 

« first day (4232 days earlier)      last day (699 days later) »