Posts by bpinhosilva • 284 points
16 posts
-
1
votes4
answers14202
viewsA: How are prime numbers important in cryptography?
Because the theory is based on the difficulty in factoring prime number, say extremely long prime numbers, with hundreds of digits. Cryptography is a science based on number theory. And integers can…
cryptographyanswered bpinhosilva 284 -
1
votes1
answer51
viewsA: Tool to calculate performance and/or power consumption on a mobile device
You need to utilize the platform’s low-level resources to obtain such information. Here on this link there is a description of an API for device power consumption analysis. As well as statistics…
-
0
votes1
answer264
viewsA: Cart php quantity
You can do this via software, create a field with the amount of each product and its maximum in the database. When you go to make the queries, do a bank search and check if the limit has already…
-
2
votes2
answers54
viewsA: Help with user typing
You declared the array but did not determine its size. If you will decide the size of it at runtime, you need to allocate memory to it. One solution is to use the malloc function. It is part of the…
canswered bpinhosilva 284 -
0
votes3
answers144
viewsA: How to check if the user is currently online?
Just register an event to be executed before closing the window and within the event make a call to the server using ajax, for example, and update the table in the database. window.onbeforeunload =…
-
1
votes2
answers377
viewsA: How to use the <audio> tag in Phonegap?
For Android, you need to set permissions in addition to handling the media object with the appropriate plugin. Permissions on Android (in app/res/xml/config.xml) <feature name="Media">…
apache-cordovaanswered bpinhosilva 284 -
1
votes1
answer444
viewsA: Enrollment in Courses - Joomla 3.4
There are many plugins that allow you to customize the inscription using joomla. This here allows you to set an event, set dates and the fields you want to collect from users. Edit That one another…
-
0
votes2
answers2207
viewsA: Run Application in 2nd Cordova Plan
Use the plugin to check the connection status and put the execution in a list of tasks to be done. When the connection comes back, an event will be triggered then you run that list of pending…
-
-2
votes1
answer373
viewsA: Resolve caches using PHP
I could identify the letters in the images using some AI algorithm and help you solve the problem. Or even do a pixel-by-pixel analysis of the image and manually identify the letter. A good tool…
-
2
votes2
answers695
viewsA: SQL does not return all results that should return
SELECT Eletrodomestico FROM Produtos, Sites WHERE Sites.URL LIKE CONCAT(Produtos.URL, '%') AND Sites.id = 1; Basically searches the site url within the product url, makes a merge between the records…
-
2
votes2
answers1232
viewsA: Using Java together with C
Yes, make sure your microcontroller allows serial communication (USART) and simply deploy the communication using Java. There is a very good class that can assist you in this process called RXTX.…
-
-2
votes4
answers8023
viewsA: When to use size_t?
size_t is a typedef for unsigned int. So any situation that fits your use, is valid and you can use. Of course by observing the ceilings for the situation. Historically, this definition was made for…
-
3
votes3
answers2209
viewsA: map in C works?
Does not work in the C language. Map is a C language resource++ (details here), since it uses features that are not found in C and are characteristic of object orientation. What you can do is find…
canswered bpinhosilva 284 -
0
votes2
answers1725
viewsA: Print the largest N notes and names among the values that are in the struct array
You can simply scroll through the entire dataset and go updating the values of the resulting vector. At the end you will get the top five notes. An immediate algorithm would be to assume that the…
-
0
votes4
answers409
viewsA: How to transform, for example, "0" to "ZERO" in C? What problem in this code?
In the C language you cannot assign a string to a vector simply using the assignment operator '='. This serial possible if using the C string type++. However, there is a set of functions in C…
-
0
votes2
answers1667
viewsA: Can I enter records in Sqlite using Phonegap?
Yes, phonegap works with Sqlite, you just need to add the plugin and start using. In addition, with the new web API you can use local data storage and it’s even easier to manipulate data in your…
apache-cordovaanswered bpinhosilva 284