English

Javascript events after dynamically adding content [duplicate]

This question is already answered here: ... -party plugins after loading content using ajax. I am interested in whether there is a more elegant solution to this problem.

Javascript Practice [closed]

Closed. This question should be specified . Answers to it are not accepted at the moment. ... I'm learning JavaScript from a book by David Flanagan, but I really don't have enough practice, what can you advise on this?

How do I open a file or folder from a java application?

How can we open a file or folder, as if we are opening it through a standard file browser / Finder / etc.

javascript get GET parameter

You need to get the value of the get parameter "data" from the url, how can this be implemented?

I can't find the right approach to learning Java and developing for Android

I'm a novice programmer, I'm learning Java and I want to learn Android development. The problem is that I can't find the righ ... ndroid app development campaign, or to study the whole theory of Java,and then start developing something in Android Studio?

java implementation of the string return function in a string only by the length method

Hello! Recently received a task: Write a function implementation: Int pos(String search, String where); Where: search-the se ... ot come to mind. It is not necessary to write all the code, you can give an analogy, direct links to similar tasks. Thanks!

Java. Using the jar.

You need to use a function that is located in a certain jar. There are no source codes. But at the same time, I do not want to increase my program by a couple of MB for the sake of one function. Is it possible to solve this problem somehow?

How do I explain what a bytecode is? [closed]

Closed. It is impossible to give an objective answer to this question . Answers to it are not accepted at the moment. ... it seems that something came to them, but how can you explain the principle of bytecode using life examples on your fingers?

Timer in Java Swing

How do I create a timer that will perform an action after a given time has elapsed? For example, you need to say System.out.print("Hi!"); after 4 seconds

Clearing a string in javascript: removing spaces, tabs

Is it possible to clear the string by removing duplicate spaces, tabs, and line feeds, in general, so that the string is like ... for this, but it will then remove just spaces at the end and beginning of the string. Maybe there is a plugin, or a function?

Java Annotations-Business logic implementation

I want to write my own annotations, as there are several ideas, but I can't figure out how to do it. It seems easy, but the q ... e business logic with it? For example, to put it in a method from another library, scroll through it and return the values..

What is null?

null is it an instance of something? What type does null belong to? What is null? How is it represented in memory? Free translation of the question "What is null in Java?" from the participant @unj2.

How to use java to get the value of the temperature and load of the video card

Hello, please tell me how to use java to get the value of the temperature and load of the video card.

Is it correct to make Java private methods static or not? Pros and cons of each option?

I saw this question in the English version, but I didn't find it in the Russian version. Often, some programmers use private ... is an answer with quotes from books / articles by well-known Java authors or those who were engaged in OOP theory or design.

Where to initialize objects correctly?

I was taught that all variables and objects should be initialized in onCreate(), well, in the sense of global (as a rule). B ... Not how much is it right and does it not interfere with anything? For example, the speed of the program or something else?

Java Selenium video recording

The site has an animation block, which is animated using html5, css, and js. Is it possible to somehow record this animation ... is some other way? Options with screen recording will not work, because it will all be done on the server, without the gui.

Registering event handlers in JavaScript when iterating through document elements

This question is not a duplicate, as it affects not only closures, but also other common errors in JS, as well as their elimi ... </body> </html> Answer: The easiest and fastest way to declare all variables is with let instead of var.

Combinatorics-Permutation in JavaScript

There is an array of five elements. Let's say these are numbers. var a = [1, 2, 3, 4, 5]; You need to go through all th ... want to understand the algorithm, so if someone has it will turn out, please lay out with explanations for each line of code.

How to optimize the algorithm for solving a problem in JavaScript

Task: All the numbers in the unsorted array are present twice, except for the one you need to find. Numbers are always va ... return numbers[i]; } } console.log(findUnique([1, 8, 4, 4, 6, 1, 8])); How can I solve the problem even faster?

How to translate Date and time from Date to seconds from the Birth of Christ in Java?

How do I translate the date and time from Date to seconds from the birth of Christ? date.getTime() - returns from the beginn ... 2018-12-26 11: 39: 27) must first be converted to seconds, with the beginning of the calculation from 01.01.0001 00: 00: 00