Posts by casscarraro • 421 points
11 posts
-
6
votes1
answer223
viewsA: Comparison of PHP schedules
You can make the comparison by creating a new object of type DateTime Let him receive the time of the setting of the sun in his city, according to his example. After that, it is possible to create…
-
1
votes2
answers5338
viewsA: Android connection to Mysql
Well, the best suited for this situation would be for you to create a web service, as you cannot access a Mysql database of Android applications, natively. Create a web service, which makes the CRUD…
-
2
votes3
answers1299
viewsA: Simple multiplication in Javascript with decimal
Renan, in this case you do not need to convert, because the Google API returns the text value and the numeric value. If you debug the return of the variable Sponse.Rows[0]. Elements[0]. Istance,…
-
1
votes1
answer662
viewsA: HMVC and HTML Componentization
Bruno Augusto, HTML components can be organized, in the HMVC structure, in separate scripts. That is, separate the template of your application from the HTML scripts referring to the content. Based…
-
1
votes2
answers1171
viewsA: Can you use the same query and define two different "ORDER BY"?
Well Ivan Veloso, as for the question of resources, to make these queries separately, will not be so expensive, because Mysql works with Query Cache and this way, before the query’s are executed,…
-
3
votes1
answer9581
viewsA: Multi-thread in Java Socket
Well, so that you can accept more client connections on your server, one solution is to adapt your server to work with Multithread. The concept of Multithread, to put it simply, it makes it possible…
-
1
votes1
answer88
viewsA: Mouse position when moving an SVG object
Well, you can take the height and width of the svg object, divide by 2 and subtract from your X and Y. This will result in your object located in the middle of the mouse pointer. Your Javascript…
-
8
votes1
answer10339
viewsA: How does Rewritebase work on . htaccess?
Well, the RewriteBase is a directive that specifies the URL prefix that will be used to replace a relative path, i.e., you can write a base path for your rewrites. It is quite useful in situations…
-
0
votes2
answers4535
viewsA: How to apply internationalization in an Android app?
Well, to translate the apps, you should work with your app’s string files. For each desired language a file containing the translated text can be created. This way you can work with the location…
androidanswered casscarraro 421 -
-1
votes1
answer1714
viewsA: Error 5: Access denied in an attempt to install a service created on Windows Server 2012
You may be having problems with the permissions of directory access or firewall lock, for not having declared the necessary rules.…
-
3
votes2
answers1280
viewsA: Treating XML file with PHP
Well, according to your XML, you are working with an offer, so when you use foreach to traverse XML, it will go through all the parent nodes of the main tag. So when you make the call, for example,…