Interesting questions
-
29
votes6
answers66760
views"foreach" in Javascript
By way of example, in PHP we have the function foreach() (English) which allows us to execute a certain code for each element found in a matrix: <?php $arr = array(1, 2, 3, 4, 5, 6); foreach…
-
0
votes0
answers38
viewsDoubt Query Line - Oracle
In the query below is leaving this way. Unidade Ordem_Compra CNPJ Aprovador Sim Boavista 29021 155454878787 Ivan Sim Boavista 29021 155454878787 Romel The question is: How do I leave on a line just…
-
0
votes1
answer188
viewsConnect android app to a software installed on the pc to transfer file
I will start developing a software in Lazarus and an application for android. I wonder if there is any library or any reference to make communication via usb between the software and the…
-
4
votes3
answers315
viewsReturn in methods
Colleagues. I have a class where my methods contain arguments, but have no return, I usually put in the end the following code: public function metodoRetorno($valor) { // ... return true; } But in…
phpasked 10 years, 10 months ago user24136 -
0
votes1
answer709
viewsHow to change the language of the content of an application with Cordova from Portuguese to English?
I have an application made in HTML, CSS and Javascript using Apache Cordova, it has support in English and Portuguese, but how do I change the content of all of its pages when the person selects…
-
4
votes1
answer152
viewsBean and Annotations with Generics, how to do?
I am in a project with Spring 4 configuring the Redis and a construction like this has emerged: @Configuration @ComponentScan({"com.empresa.sistema.web.util"}) public class RedisConfig { @Bean…
-
0
votes0
answers58
viewsDoubts of modularization of classes
I am developing an application for didactic purposes, end of semester college work, in this will do CRUD of the disciplines in a table in the bank already created, "DISCIPLINES", I thought about…
-
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…
-
-1
votes1
answer30
viewsUnexpected tokens - boostrap4
{% load bootstrap4 %} <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1,…
-
1
votes1
answer193
viewsRandom Forest with very high accuracy
I’m working with this dataset And I applied Forest Random to create a price forecast model, but the accuracy of the model is getting too high, so I’m suspicious if something is wrong. Apparently…
-
4
votes1
answer1827
viewsHow to replace the HTML content of a div using php Domelement
I’m trying this way libxml_use_internal_errors(true); //pegar o conteudo de um pagina web $doc = new DomDocument(); $doc->loadHTMLFile('http://www.astralsaudeambiental.com.br/'); $div =…
-
5
votes1
answer992
viewsImage segmentation with Canny Edge Opencv
I’m trying to target the edge of both the iris and the pupil using Canny Edge from Opencv. However all the parameters I used do not meet the criterion of leaving well delimited the two edges. The…
-
-1
votes1
answer308
viewsFlutter cannot find pubspec.yaml when running run run
I did the installation of Dart + flutter for the first time today, I did the Getting Start oriented configuration of the official website itself, but when giving RUN in the project, this error…
-
-3
votes1
answer1383
viewsFriendly URL with . htaccess
I would like to leave my url which is like this: https://assistir.xyz/embed/filme.php?id=tt0120737 to look like this https://assistir.xyz/embed/tt0120737 You have to let some make a file . htaccess…
-
-1
votes2
answers1898
viewsPerform function from the same class
I have tried several forms here on the site and on the net, no more loads the other function. I have a form that when sending it loads the class and Function: class editar { public function…
-
2
votes1
answer480
viewsProblem "List index out of range"
In a Python code I have several conditions that filter my data, and this data is connected to a position counter i. But within one of these specific conditions I need to record the position of the…
-
1
votes0
answers153
viewsHow to receive Hexadecimal information via serial in C#
Better starting an application that receives via would be the data of an interface in Hexadecimal, however, when the data arrive, they are not shown in a format Hexa, it seems to me that they are…
-
4
votes0
answers217
viewsBetter logic for sheet handling
Good afternoon dear friends, I have a project in hand where I have four spreadsheets, one of each "computer station management program" in which, in all of them, I have a column with the number of…
-
-1
votes1
answer145
viewsHow to use the /authuser flag of the PHP imap_open() function?
imap_open("{".HOST.":143/[email protected]/novalidate-cert}INBOX", $email , $pass); The line above is illustrative, I seek here a help to use these parameters correctly. I’ll…
phpasked 9 years, 6 months ago jonathan trindade 1 -
0
votes1
answer20
viewsProblem alternating fgets and scanf_s
I have a problem that the user has to enter the name and age of 5 people, and have to print on the screen the name of the younger person. I made the following code #include <stdio.h> #include…