Posts by Vitor Arbex • 252 points
11 posts
-
6
votes2
answers268
viewsA: Null attributes on an object is Bad?
So here’s my question: It’s bad to have an object with multiple fields null value? All attributes are part of the object scope and the object itself is already specialized. Responding objectively,…
-
0
votes2
answers152
viewsA: Bilingual site with JS
Bilingual site with JS? Just one comment, The title of the question was perfect but its description induces the answers to fix the code posted, and not propose the most correct solution that would…
-
1
votes1
answer761
viewsA: Use PDO Prepared statements in function
Actually this is not the right way. php PDO already supports variable bind without having to edit the query. See the example below. (It’s a snippet of a service that records GPS data in a table in…
-
0
votes2
answers244
viewsA: alternative to send JS data to a new PHP page to use the data
In Javascript you can call the URL of the new page by passing the two values in the URL Query String. Ex. http://seudominio.com.br/teste.php?width=" + screen.availWidth + "&height=" +…
-
1
votes2
answers1837
viewsA: Hybrid app database using Cordova
The most current technology and standard to be adopted for HTML5 development is Indexeddb, although it is not listed on the Cordova website Android and IOS webviews support Indexeddb and support…
-
0
votes2
answers2413
viewsA: Configure Cordova Sqlite Storage
On the Plugin website indicates that the function to be used is sqlitePlugin.openDatabase() without the window in front. Another point is that this flame only works after the event deviceready(). As…
apache-cordovaanswered Vitor Arbex 252 -
0
votes2
answers1046
viewsA: Problems with using Phonegap
To solve the second error, the correct is not simply install version 19, it works, yes, but if you want to use an older or newer version of the SDK just put the following lines in the config.xml…
-
2
votes3
answers393
viewsA: Phonegap only plays games?
No, Phonegap (Adobe Project) as well as Cordova (Apache Project) are nothing more than development frameworks that allow you to package any application made with HTML, CSS and Javascript, in native…
apache-cordovaanswered Vitor Arbex 252 -
1
votes1
answer565
viewsA: Phonegap does not change package name
When you created the project you could have passed the complete package name as parameter. Here is a list of the files that possibly changing the package name may solve the problem. Especially those…
-
0
votes2
answers2291
viewsA: Storing measure drive in Mysql table
The best practice would be to have a column for feet and another for meters in my table? No, remember that in a database you should not have different columns with the same data, because it…
-
1
votes4
answers4937
viewsA: Generate string securely random in PHP
Already exists in PHP 5.3.0 or higher specific routine for this. http://www.php.net/manual/en/function.openssl-random-pseudo-bytes.php Use Openssl to generate the strings, with one parameter being…