Interesting questions
-
0
votes0
answers46
viewsVariable "forgets" that has been assigned to the other and function returns Undefined
function pegarBotaoClicado (botoes) { let botaoClicado botoes.forEach(botao => { botao.addEventListener("click", function (e) { botaoClicado = botao }) }) return botaoClicado } In this function I…
-
1
votes2
answers15896
viewsHow to stop an execution in Python?
I’m starting programming in Python and would like to know how to stop the program execution? In the language C for example, there is the equivalent command system("pause"). If I open IDLE, more…
-
0
votes1
answer59
viewsI cannot use an attribute started with the constructor in typescript
I am using typescript, typeorm, postgres and express; I am trying to start the Teamrepository class created by me through a constructor within the Teamcontroller class, but within the methods that…
-
2
votes1
answer78
viewsShow the highest value of a field along with the field name
Hello, I have a huge doubt. I need to show in my table, in the home page of my site, which field of my table has the highest value and next to this field, show not only the highest value but also…
-
0
votes1
answer518
viewsHow to Replace Characters with Other with C#
For example: 4587 / 1235 / 7554 And then replaced 4587;1235;7554 Remove the spaces and in place of the bar, put point and comma, as it does in C#?
-
2
votes0
answers483
viewsSpring Security Oauth2 in API Rest
Good morning. I have a Web Service Rest implemented and I am working on the security of it at the moment. This Web Service has been implemented using Spring Boot. Initially I will have as customers…
-
3
votes0
answers95
viewsFile Api Cordova/phonegap
I need help, I can not make work the File api, the commands run all successfully, but when I enter my mobile file manager I can not find the file created I’m using ng-Ordova now, but I’ve tested it…
-
0
votes0
answers110
viewsPersist child objects with parent id 1:N
Guys I’m having difficulty in relationships with Hibernate, I have a 1:N relationship between Provider and Address (1 provider may have N addresses). My problem is this, when I try to persist a…
-
2
votes2
answers179
viewsWhat better way to check if an object is empty?
I have the following object: let obj = {}; If I try to validate obj.length return me a undefined, then I resorted to the Object.Keys alternative.. Object.keys(obj).length.. solved my problem.. but I…
javascriptasked 6 years, 3 months ago wDrik 1,406 -
0
votes1
answer88
viewsVue Js and Pokeapi
I am currently studying Vuejs, I am using Ajax to request the API, and integrate the application, but I have read in different places about Axios. Why use Axios and not the "$. Ajax"? It’s more…
-
6
votes4
answers361
viewsDecrease span field value with preg_replace
I am trying to change all the values of the fields it contains span class. Example the site is like this: <div id="isOffered"> <a class="price addBetButton footballBetButton"…
-
0
votes1
answer137
viewsHow do I login to the database?
I am creating a study application for a simple login screen, on the same black screen. I created 2 files, one where I create the database query and the other with the application code itself. It has…
-
3
votes3
answers492
viewsUsing an operator on a switch case
If I do, good wheel: #include <stdio.h> int op1; int main(){ scanf("%d", &op1); switch(op1) { case 1: puts("Hello World"); } } I wanted to make that by introducing a special character, for…
-
1
votes2
answers63
viewsCondition other than in javascript
Would someone like to explain to me how I put a condition in the script below to say that anything other than these options should return me the value 'Central'? function run(cidadeFilial) {…
javascriptasked 6 years, 1 month ago Marcelo Henrique 11 -
0
votes1
answer245
viewsSend two parameters in a hred using classic Asp
I would like the code below to send two parameters to the page request name DetalheComercio.asp. The parameters would be: Neighborhood and Category (the link below only sends a category parameter).…
-
0
votes0
answers75
viewsStart reading the beginning of the string list
How do I after adding a string to a list (can be on list A or B), my code goes back and starts reading the beginning of the string list, or the first string? I have a list with 20 strings. But it’s…
-
0
votes1
answer801
viewscapture JSON object sent via POST in Mormot’s request payload
I’m sent my object JSON via POST using the ExtJS 6.01. my application server was done in morMot in the Delphi Seattle. Sending in mode GET I usually take the parameters that come by url. But sending…
-
0
votes2
answers1214
viewsRepeated values when making an INNER JOIN
This code below is bringing repeated values on the screen. Could someone help me ? $id_credenciado = $_SESSION['id_credenciado']; //$sql = mysqli_query($conn, "SELECT DISTINCT * FROM tb_protocolo…
-
0
votes1
answer211
viewsCan you assign a function to several css rules in the same Hover, but with different values?
Can you do a css Transition, all triggered by the same element, but with different values? CSS: .co-la { background: none repeat scroll 0 0 green; height: 25px; left: -37px; margin: 0; width: 0%; }…
-
0
votes1
answer254
viewsIs it possible to analyze Instagram data (BI) via API?
You can use the instagram API for BI analytics, such as the number of likes, followers, times that posts have had more interactions, and Etc? I will need to review over 100 accounts with…