Posts by TTKDroid • 240 points
9 posts
-
2
votes1
answer77
viewsA: How does the Deploy process in Golang work?
Unfortunately it is not possible and you have to restart the service, which is relatively fast. Golang has numerous other advantages and that’s just a detail. If this is a critical factor, an option…
-
1
votes2
answers2433
viewsA: How to make a local variable global in C (or C++)?
Do as everyone has said, or even better, declare outside the scope of the function and as Static. static int variavel=0; void X() { variavel++; } int main() { cout << variavel; variavel ++;…
-
1
votes1
answer145
viewsA: Why doesn’t Clang recognize the basic header (iostream)?
As far as I know, Apple created the CLANG pq GCC uses the GPL license. Apple needed to implement some "language improvements" to support its products, and if they implemented these improvements in…
-
2
votes2
answers366
viewsA: Error on Android connection with Restfull Web Service
Download a tool called POSTMAN (https://www.getpostman.com) and simulate the call using the method, data and parameters you are using in your java code. If you get the correct answer in POSTMAN, the…
-
1
votes3
answers879
viewsA: Store in the database or in sessions
You can change session timeout parameters in php // manter sessão por 1 hora ini_set('session.gc_maxlifetime', 3600); // cada cliente vai se "lembrar" da sessão por 1hora…
-
1
votes2
answers197
viewsA: how to fix Refusal in Webservice Post
This is an existing protection in the Web Browser that blocks requests in Javascript (AJAX) that are not made from the same origin of your site. This will happen if you are running a local…
-
0
votes1
answer110
viewsA: callback from a server
I don’t know if Fitbit uses Oauth2, but if so, it works like this: Step 1: Vc redirects the user to the authentication page by passing the id and callback URL via GET method Step 2: Fitbit calls the…
-
-1
votes1
answer518
viewsA: Basic API Rest authentication (C#)
You have to add the following field to the HTTP header Authorization: Basic QWxhZGRpbjpPcGVuU2VzYW1l where Qwxhzgrpbjppcgvuu2vzyw1l is the user and password encoded in Base64. Know that your…
-
0
votes3
answers815
viewsA: How to change page content according to the end inserted in the link (URL)?
If the problem is to put the fields in the url, type: Http://site/usuários.asp?id=123 And you want something like: Http://site/usuário/123 The easiest way to solve it is by enabling the URL REWRITE…