Posts by Pedro Henrique • 1,247 points
41 posts
-
2
votes1
answer49
viewsA: How to know if the "Windows animations" option is disabled in Win32?
You can use the following code: package main import ( "fmt" "syscall" "unsafe" ) const ( SPI_GETCLIENTAREAANIMATION = 0x1042 ) var ( user32DLL = syscall.NewLazyDLL("user32.dll") systemParametersInfo…
-
1
votes1
answer80
viewsA: Table for Excel taking too long
I will add some considerations, but it will hardly be a specific answer to your problem. There are several ways to "attack" this problem, the first of which is to increase the machine’s resources so…
-
1
votes1
answer201
viewsA: Error Mysql PHP connection
You must inform the address of the database (your hostname), which may be a domain, but should not contain http or paths. define('hostname', 'thorpeinnovation.com'); If it does not work try to…
-
5
votes1
answer446
viewsQ: Clang has Character error Too large but Visual Studio builds normal
I’m having a hard time understanding why the Clang presents the error message Character Too large for enclosing Character literal type when trying to execute the code: char c = 'ç'; while Visual…
-
0
votes1
answer422
viewsA: Developing layout for various types of mobile resolutions with Cordova
The easiest way is to use a responsive css framework and develop it as a website. You can use the Boostrap if you are already aware of its grid system or use a framework for developing mobile apps…
-
0
votes1
answer124
viewsA: How to rename photo using media capture Cordova plugin
Hello, looking at the plugin source code we can realize that at some point it records the image in memory. For this he uses getContentResolver().insert (on Android at least), returning an image ID.…
-
1
votes1
answer524
viewsA: Doubt when using the inappbrowser Cordova plugin
Friend, you have a very complicated problem here. Almost no Cordova plugin is only in Javascript, they have a part encoded in Java or other languages depending on each platform besides the fact that…
apache-cordovaanswered Pedro Henrique 1,247 -
0
votes2
answers87
viewsA: Nodejs/Phonegap/Cordova tablet
As commented in the previous reply, unless your Tablet has Windows or Linux as operating system will hardly be able to create a development environment. But there’s an alternative, it’s not the best…
-
1
votes1
answer54
viewsA: Download files with Cordova stored in the database
There is more than one way to accomplish this process, but the simplest is to create a Web Service. What you need to do is choose a Web programming language that you know and use it to chat (search…
-
1
votes1
answer2883
viewsA: Phonegap Plugins: Using camera with flashlight on
Look, your question has become too general, it is not possible to find out for sure what error 3 is. Probably if you look at the log on adb there must be more information about the error, anyway I…
-
1
votes2
answers2207
viewsA: Run Application in 2nd Cordova Plan
To do this is relatively simple since your application works as expected and you just want to add a novelty/function. The first thing to be considered is to create a service to run in the…
-
2
votes1
answer8171
viewsA: Conversion from site to application
The best alternative is to create a Webservice in PHP as Otto commented. Once you have a working Webservice you can create a dedicated application for your system functions and synchronize the data…
-
1
votes1
answer1213
viewsA: font-face error when publishing project
Problems with Webfonts are common mainly with FontAwesome. Can vary from corrupted font’s to uppercase font names. In your case the problem is quite simple, while checking the Google Chrome error…
cssanswered Pedro Henrique 1,247 -
1
votes2
answers237
viewsA: Problem with codeigniter registration
Make sure you really have the column redirect on your table of usuarios. You are probably using a different controller to register when the user is registering from a course. From what I understand…
-
1
votes1
answer414
viewsA: Font rendering on Mac makes the font "Regular" look like "Bold"
From what I know Mac and Windows have different algorithms to calculate font size, if it is a web font the situation gets even more complicated. Anyway you can use the following CSS code…
-
3
votes2
answers1633
viewsA: Splashcreen plugin (Cordova) and icons do not work on Crosswalk
As commented the problem is not presented before using the cordova-android-crosswalk, this is due to the library version of Cordova, Crosswalk requires version 3.6.3, this version has some…
-
2
votes3
answers11265
viewsA: Sessions in JS or jQuery
You can use Cookies if your application is not storing much information beyond the fact that you should pay particular attention to the security and the way in which you will store this information,…
-
2
votes1
answer123
viewsA: Jumping between remote applications using Cordova (complex problem)
Actually the problem is very complex, actually it got a little confusing. But I believe you’ve answered your question. You have several applications for iOS and Android, you want to create a form of…
-
2
votes2
answers1837
viewsA: Hybrid app database using Cordova
When it comes to Cordova (Android and iOS) the options are as follows: Localstorage Websql Or plugins to store files in memory. There are other storage methods also possible, if your application…
-
1
votes1
answer1289
viewsA: How to read and write JSON locally in Cordova?
Consulting the link to Storage of the documentation we can see that there are several methods, such as: localStorage Websql Indexeddb Or use some plugin to do specific storage as the file API. In…
-
11
votes2
answers2109
viewsQ: How to advertise server IP on the network?
I am developing an application composed of a server NodeJS which shall provide data in JSON for customers, in case an application for Android, all running on internal network. I have already managed…
-
0
votes2
answers548
viewsA: Is there anything that works like a "Firebug" for Android?
I’m not going to explain step by step because it takes a while, but I’ll introduce you to the tools. The first tool I can charge you with is Charles Web Debugging Proxy. It is nothing more than a…
-
0
votes2
answers365
viewsA: Cordova battery API does not work
What is the expected result? It is necessary to understand that Cordova does not inform the level of the battery about requisition. Only when the event batterystatus is fired you will get some…
-
7
votes4
answers868
viewsA: How to make Empty() accept the value 0?
You can improve the expression using something like: else if (empty($idade) && $idade != 0) This will check if the $age is empty and is not zero. But it is better to consider a more specific…
phpanswered Pedro Henrique 1,247 -
2
votes1
answer919
viewsA: Google Maps API not working using Cordova
Your code presents some problems. The first thing to note is that when you are developing applications with Cordova or PhoneGAP you should always check by the event deviceready. The way Cordova…
-
3
votes1
answer966
viewsA: Arduino UNO restarts when using serial port outside the IDE
I’m starting with Arduino so I can’t speak properly. However I did some research on Google and found that Arduino makes a Auto Reset On Serial Connection after establishing a serial connection.…
-
4
votes2
answers6519
viewsA: Auto-fill input into a form (php, html)
The simplest way would be using jQuery. Something like: $( "input[name=nome]").change(function() { var nome = $(this).val(); var pEspaco = nome.indexOf(' '); var nomeFinal = nome; if(pEspaco != -1){…
-
2
votes2
answers3403
viewsA: CPF data in a C Struct
Hello, the main problem of storing number with zero start starts when the number has more than 7 digits, as is the case with the CPF. The compiler believes that when a number has more than 7 digits…
-
10
votes2
answers5267
viewsA: How to damage a website using XSS/SQL Injection?
There’s no right way to explore that. Basically you need to understand who accesses the site and what the focus of users and often not just use a technique, for example: Let’s assume that the users…
-
1
votes1
answer749
viewsA: Retouch the App screen - Android Cordova
You can solve this problem in many ways. The first step is to understand what you really need, if you only need the data to validate the user login you can use JSONP, making a simple request with…
-
1
votes3
answers229
viewsA: Good practices to avoid broken page display?
The first step is to identify the problem. There is a reason why the images or the CSS does not load correctly. The positioning of the CSS is not directly linked to the problem. What may be…
uxanswered Pedro Henrique 1,247 -
5
votes1
answer16354
viewsA: What is net::ERR_CONNECTION_RESET and how do I resolve it?
The Error net::ERR_CONNECTION_RESET informs that the connection has been reset. This can occur for several reasons, such as failure during connection. Try to access your system from a different…
phpanswered Pedro Henrique 1,247 -
0
votes1
answer110
viewsA: Insert form data in the same table
Your question is not very clear, if you want to insert new users after you have done an insertion you can use Javascript even for this, you can use the location.href and everything should work…
-
2
votes1
answer188
viewsA: Chrome.tabs.onUpdated.addListener with delay
Like bfavaretto mentioned you only work with the images when the site is fully loaded, which make the browser draw the screen again. What you do is remove all images while the site loads, as…
-
6
votes2
answers364
viewsA: Effect used in Tecmundo?
In Techmundo is used a solution developed by them, you can see the source code using Google Chrome and right-clicking on the page and the option Inspect element. Then click on the tab console and…
-
1
votes1
answer267
viewsA: Populating DIV after selecting a data in the list
Notice the line options += '<option value="' + name + '">' + name + '</option>'; it is responsible for creating the values within the option tag, to change just change the line to the…
-
0
votes2
answers560
viewsA: How to view data from a Cordova database?
Google Chrome has implemented a new technology that allows remote debugging through the browser on any element that uses Webkit, for example a Webview in an App, as Cordova uses or the browser. This…
-
1
votes1
answer121
viewsA: How to use the same Sqllite BD with java and Cordova?
Yes, you can access the Cordova database file through native Android Java, for this you must understand that Cordova uses a version of W3C Web SQL Database, which is basically an implementation for…
-
1
votes1
answer2934
viewsA: Checking internet connection with phonegap
I checked your code and everything works normally, do the following change the function onDeviceReady to the following function onDeviceReady() { alert("Device Ready"); checkConnection(); } And…
apache-cordovaanswered Pedro Henrique 1,247 -
1
votes1
answer1169
viewsA: Close the Inappbrowser Phonegap
There are several ways to solve this problem. According to the documentation when using the window.open you receive an object from the created window. And in this object we have the method close.…
apache-cordovaanswered Pedro Henrique 1,247 -
1
votes1
answer504
viewsA: exec() does not execute the past command
It may be the permission of the User, basically you are running the web server with an X user, so you can only run programs and functions where the X user has permissions due. Try changing the file…