Posts by Jônatas Trabuco Belotti • 656 points
23 posts
-
1
votes1
answer78
viewsQ: How do Ionic app running task in the background?
Hello, I am developing an Ionic application (Android and IOS) and this application needs to perform a task in the background every 1 minute even if the application has been closed or the mobile…
-
0
votes1
answer45
viewsQ: Doubt with data protection in application
Hello, I am developing an Android app and Iphone that will store various sensitive information of my customers in the mobile database. My question is being in what is the best way to protect this…
-
0
votes2
answers146
viewsQ: How to show all markers?
I am developing an Ionic app where I need to show several points on the Google Maps map, I add all points as markers on the map and place the camera position to the center of the points. pontos =…
-
6
votes1
answer200
viewsQ: Is a Python dictionary as efficient as a tree or a hash?
I use a lot of Python dictionaries: dic = dict() #ou dic = {} dic['113654'] = {'nome': 'João', 'idade': 21} dic['853872'] = {'nome': 'Maria', 'idade': 27} dic['427845'] = {'nome': 'Fernando',…
-
-2
votes1
answer31
viewsQ: Direct output of a program to 2 places
I know that on Linux or Windows I can redirect the message of a program to be saved in a file instead of being shown at the end of the command >: ./a.out > arqSaida.txt Or still write at the…
-
0
votes1
answer123
viewsQ: Error with xlswrite in Matlab 2016
I am having problems saving Matlab data in Excel spreadsheets. I took a very simple example code: A = [1:257;1:257]; [status message] = xlswrite('teste.xls', A) But it doesn’t work. The error that…
matlabasked Jônatas Trabuco Belotti 656 -
1
votes2
answers165
viewsQ: Calling the method of a specific superclass
Suppose I have the following hierarchical structure in Java: First a class Avo: public class Avo { protected String nome; public void falar() { //Codigo aqui } } Next I have a class Pai who inherits…
-
15
votes1
answer170
viewsQ: What is the use of "= delete" in the declaration of a constructor in C++?
I came across a builder declared as follows: State(const State& em) = delete; Does anyone know what the = delete at the end of the signature of the manufacturer?…
-
1
votes1
answer297
viewsA: String check inside a C function
Dude, your problem is you’re going over the vector by parameter. The correct way to receive an array per parameter is to receive its address, i.e., you need a pointer. The second point is that to…
-
1
votes1
answer285
viewsA: How to read files with accents on Android?
After a long time researching I managed to solve the problem. The problem was the file encoding, Filereader by default uses the default OS encoding, in the case of Android UTF-8. When the file did…
-
0
votes1
answer285
viewsQ: How to read files with accents on Android?
Hello, I’m having trouble reading files with accents on Android. I am using the following method to perform the reading: public String lerAquivo(File arquivo) { String texto; String linha;…
-
1
votes1
answer1505
viewsA: Data normalization in a neural network
If you have the data use the largest and smallest as range, or check the largest and the smallest and from them set a range that you consider acceptable. Once you have the range you can normalize…
answered Jônatas Trabuco Belotti 656 -
0
votes1
answer1113
viewsQ: Swap the contents of a panel in Jframe
In my app, I have a main screen with a menu. The contents of each menu screen should appear within a main screen panel, do not want to open a new screen for each thing. What I need then is to change…
-
3
votes1
answer96
viewsQ: How to view equations on Android?
Does anyone know how to display mathematical equations in Android apps? Actually there’s something like Latex where I put $f(x) = \frac{x^3}{\sqr{x}}$ and it shows on Texview: Does anyone know if…
androidasked Jônatas Trabuco Belotti 656 -
1
votes1
answer296
viewsA: Problem reading file line by line in Java
I was able to solve using the objects Filereader and Bufferedreader, the code went like this: FileReader arq = new FileReader(caminhoAbrirArquivos + nome); BufferedReader lerArq = new…
-
1
votes1
answer52
viewsQ: When the keyboard is hidden the space is not rendered
I have a problem in one of the Activitys, in this Activity I have a lot of content, so I’m using a Scrollview. The problem is that once I finish typing in Edittext and the keyboard is hidden the…
-
3
votes1
answer296
viewsQ: Problem reading file line by line in Java
Hello, I’m making a java program to convert csv files to Bib. As the csv file may be 200kb or 2G I decided to read line by line so I wouldn’t have memory problems. I did the code as follows: try {…
-
6
votes3
answers17188
viewsQ: Apply CSS when two classes are together
How to apply a CSS setup only when a tag is with the classes nome1 and Nome2 at the same time? I tried with the following code, but it’s not working. Does anyone know how to do? .nome1 { color:…
-
1
votes1
answer387
viewsA: Change timeout SQL Server 2008 request
I was able to increase the timeout with the command: exec sp_OAMethod @Object, 'setTimeouts', null, '5000', '6000', '7000', '8000'; Where: 5000 - [dwResolveTimeout] Time to resolve the server url in…
sql-serveranswered Jônatas Trabuco Belotti 656 -
1
votes1
answer387
viewsQ: Change timeout SQL Server 2008 request
I am sending a request inside a database by SQL Server using Winhttp.WinHTTPRequest. 5.1, the problem is that the request is taking too long and is giving timeout error. I would like to increase the…
sql-serverasked Jônatas Trabuco Belotti 656 -
3
votes1
answer328
viewsA: It is possible to determine the access path to the file in Function
You bumped into a security issue. By default browsers do not allow web applications to access local files without the user’s permission. What is right, imagine you accessing any site, and while you…
-
3
votes2
answers74
viewsA: How to use @in SQL SERVER?
Try to do: SELECT @W_NUM = COUNT(P_CODE) FROM PRODUCTT WHERE P_PRICE>@W_P1 AND P_PRICE<@W_P2;
sql-serveranswered Jônatas Trabuco Belotti 656 -
4
votes1
answer233
viewsQ: Passing multiple parameters as an Array
I have a method that takes an unknown amount of parameters like an Array, thus: public void enviarCampos(String funcao, String... campos) { // Ação do método } To call this method do:…