Posts by Vinícius Gobbo A. de Oliveira • 5,575 points
114 posts
-
23
votes1
answer41436
viewsA: Fatal: Not a git Repository
Your repository is empty. You must first initialize it on your local machine, and only then can you do it push. The procedures are as follows:: Creation of local repository: > cd…
-
1
votes1
answer395
viewsA: Delphi registry key permissions
Yes, it is possible but it is not that simple, and it is necessary that the user running the application has permissions to do so. The required permissions may vary with the key you want to change,…
-
1
votes1
answer3661
viewsA: Reading and Comparing C File Login and Password
You said the line, but I don’t know which line is 146 (there’s no line numbering...). Reading your code, I believe the problem is on the line: while(fgets(str, tamanho, stdin) != EOF) { The command…
canswered Vinícius Gobbo A. de Oliveira 5,575 -
3
votes5
answers3766
viewsA: Java - simple program (finding cousins) - does not run
The error is in the fact that you are not restarting the variable value counter for each i. Behold: The code starts with counter == 0. When i == 1 and k == 1, i % k == 0. Soon, counter++ (counter ==…
javaanswered Vinícius Gobbo A. de Oliveira 5,575 -
1
votes1
answer427
viewsA: ng-show/ng-Hide does not update index-html, only the view
The scope of ngView and of his footer are different. So it doesn’t work. The variable autenticado if it exists within the scope of footer. See this OS response in English, it uses $scope.$broadcast…
angularjsanswered Vinícius Gobbo A. de Oliveira 5,575 -
3
votes1
answer286
viewsA: How to create a js function directive
By name of its function, it is a validation function. You must configure the validators in the ngModelController of Directive. The ngModelController is the 4th parameter of the property link of a…
angularjsanswered Vinícius Gobbo A. de Oliveira 5,575 -
6
votes1
answer59
viewsA: Doubt cast with pointer
The cast is just the (int *). The rest is reference and reference. What happens on that line is this: First, the address of an element of the vector is taken buff: &buff[idx]. If buff is the…
-
0
votes1
answer53
viewsA: Doubt about functions and classes
I’ll give you an answer thinking semantically, I believe this is the purpose of your question. If it’s not, I’ll edit it and parse it. This line declares a constructor for the class base_token.…
c++answered Vinícius Gobbo A. de Oliveira 5,575 -
3
votes2
answers5603
viewsA: Check if it is empty regardless of type, javascript
There is no "empty" value for numbers and booleans, unless you define some. This "empty" value, in these cases, would be null, or undefined. I’m assuming that: null is empty; undefined is empty;…
javascriptanswered Vinícius Gobbo A. de Oliveira 5,575 -
4
votes2
answers66
viewsA: Why does the function return me an unexpected value?
Because $nFis is not defined in the function resFis. It is probably a global variable, so you should change your method to: function resFis(){ global $nFis; if($nFis >= 60){ return "aprovado"; }…
-
2
votes2
answers1317
viewsA: Why content-type false AJAX - JQUERY
Yes, that’s right. If you check the request actually performed by the browser (using the development tools) you will see that the Content-Type standard is the application/x-www-form-urlencoded,…
-
34
votes3
answers2481
viewsA: How is a sound interpreted by a computer?
This subject is very extensive and I will not lengthen much, let alone go into detail especially in the physical part. There are basically two ways of sound being worked on in the computer:…
answered Vinícius Gobbo A. de Oliveira 5,575 -
2
votes2
answers1132
viewsA: What better way to analyze a very large json file in java?
The database is probably the best solution because: It is made to work with huge amounts of data; 5GB is much given to be kept in memory, especially in Java; If the data needs to be reused, it will…
-
4
votes1
answer2417
viewsA: How to insert an encrypted field into a table in Postgresql?
Answers to individual questions: I encrypt the field in the java application or in the database? The best option is to encrypt on the application side as soon as you receive the information to be…
-
6
votes1
answer2770
viewsA: Force Urls with www. to without www. com htaccess
Just change the regular expression and redirect URL. RewriteEngine on RewriteBase / Options +FollowSymLinks RewriteCond %{HTTP_HOST} ^www.meusite.com.br [NC] RewriteRule ^(.*)$…
htaccessanswered Vinícius Gobbo A. de Oliveira 5,575 -
2
votes2
answers451
viewsA: Nodejs - Token authentication?
Yes, you can pass the token by the same URL. Note that in the example, JWT is used, which is a standard for moving tokens and session data between client and server, reducing the server’s need to…
node.jsanswered Vinícius Gobbo A. de Oliveira 5,575 -
2
votes1
answer605
viewsA: Close loop when typing specific character
The line with the for this wrong. Note that it is written for(i= 0; i >= 0; i++), which means: for i of 0, while i > = 0, incrementing i in one unit per cycle, run... That is, as your variable…
-
5
votes2
answers1577
viewsA: Security with Angularjs and Rest
If the user is not authenticated, the server must deny access to the Apis. If the user is authenticated, he "has the right" to access them when within the same source (protection against XSS), and…
-
3
votes3
answers1492
viewsA: While repeating structure to recalculate in C
The problem is that the variable res does not have its value reset in the next loop iteration do..while. This can be corrected in two ways 1-Moving the variable declaration res into the loop…
-
2
votes1
answer47
viewsA: ajax upload does not pass variables
I’m assuming you want to do a file upload. File upload cannot be performed on a request GET. Not that it’s impossible (it would be necessary to read the file data and encode it into something like…
-
0
votes1
answer106
viewsA: How to install Magento in virtual host?
Add the option ServerName within your vhost, and check if the option NameVirtualHost this parameter is enabled (this parameter is global): NameVirtualHost *:80 <VirtualHost *:80> ServerName…
-
0
votes1
answer135
viewsA: Problem with Segmentation Fault
I see two problems: The first is in the various calls to the command realloc: when memory region size is increased, realloc does the copy of the memory that was already allocated to the new memory…
canswered Vinícius Gobbo A. de Oliveira 5,575 -
2
votes1
answer1990
viewsA: Input Hidden + select
The problem is the input within the select. Within the select, tags only option may be contained. I don’t know what the domain of your application, but I don’t recommend passing a price through a…
phpanswered Vinícius Gobbo A. de Oliveira 5,575 -
0
votes1
answer86
viewsA: Loading multiple libraries with loadlibrary
The problem with your code is not that it does not find the DLL, but that it is occurring a segmentation fault at the time of loading the DLL. Searching Microsoft documentation for error code 998…
-
2
votes2
answers796
viewsA: Project error after adding Ireport dependency
The file does not exist in the repository. At least I did not find it. Hence the error. It may be that the repository is wrong, or some problem in the repository itself. One solution would be to add…
-
2
votes3
answers129
viewsA: How to create mandatory exceptions in C#?
Unlike Java, no, this is not possible. Here is a reading to read a little about the reasons for this (in English): The Trouble with Checked Exceptions…
-
2
votes1
answer556
viewsA: Open application in the background in C - Linux
I implement the following code (based on other codes, I no longer have their source) that does more or less what you want. The code is to carry out the fork process and then change the execution…
-
17
votes3
answers16866
viewsA: How to check Undefined correctly in Javascript
The most correct is to use typeof variavel === "undefined", for undefined may be superscripted using window.undefined, causing the comparison variavel === undefined return unexpected values. In…
-
0
votes1
answer114
viewsA: What program do I use to compare the performance of virtual machines?
I recommend using the Phoronix Test Suite. It is an open source system for automated benchmarking, allowing the execution of dozens (if not hundreds) of benchmarks with virtually no user…
-
3
votes1
answer225
viewsA: Create document templates in Java
Best solution is to use a reporting component such as Jasper. It allows the creation of templates, either at runtime or development time. It is quite powerful, and allows reports to be exported in…
-
2
votes1
answer1853
viewsA: Add new element to the array
The problem is that in the call to method novoContato(contato.nome, contato.agencia, dado), the variable dado this coming undefined or null, probably. Note that she is out of the ng-repeat, and…
-
1
votes1
answer45
viewsA: Performance for multiple domains on a single server
Performance Just the amount of interfaith resources. The additional work that Apache should do is despicable in my experience. I’ve never seen a benchmark actually evaluating this. What will happen…
-
0
votes2
answers118
viewsA: run Function
This really doesn’t work. The problem is that PHP is a language run within the server, and HTML, as well as Javascript, are "client languages". Therefore, it is not possible to call PHP methods…
phpanswered Vinícius Gobbo A. de Oliveira 5,575 -
3
votes4
answers930
viewsA: Optimize loading of images
There are some techniques that can be employed: Utilize Connection: Keep-Alive Allows the established TCP connection to be re-used for new HTTP requests, removing the time needed to perform…
-
2
votes1
answer154
viewsA: Architectural validation issues
As every action of the application reflects somehow in the business layer, and that for security the validation should be carried out at least in the business layer, I do not see how a validation…
software-architectureanswered Vinícius Gobbo A. de Oliveira 5,575 -
5
votes2
answers12276
viewsA: What is the space limit of each database in mysql
Mysql is more complicated to be evaluated in this sense than other Dbms because the storage engine influences the capabilities of the database. For example, Mysql itself has no table limit, being…
mysqlanswered Vinícius Gobbo A. de Oliveira 5,575 -
2
votes1
answer183
viewsA: Doubts about Javascript and HTML
The idea is to add a Handler to the event onclick of the daughter div, but return false in this event. This will cause the event to stop being processed, and thus div father will not be hidden. I…
-
1
votes2
answers2883
viewsA: Run a. EXE file on Windows from a PHP application on an external server
I imagine you have a server at your house, where Gammu must be running. By being in your home the Gammu, and your home probably use a home link with the internet, you have a dynamic IP address in…
-
1
votes1
answer276
viewsA: Incompatible arguments - Pointers for structures
The problem is passing parameters in the command veclientesativostree. You’re passing a Cliente* for the call mostrainfocliente, while the signature of this command requires a Cliente. Change to:…
-
2
votes1
answer325
viewsA: Overflow-x Hidden no body
To prevent scrolling, it is best not to let the elements exceed the maximum size of the parent element. Otherwise, the only way is with a little Javascript: function wheel(e) { console.log(e); if (…
-
2
votes1
answer84
viewsA: Architecture for Decentralized Distributed App
Database Customer database (especially mobile) I don’t see how to be a good idea. First by the space consumed. Second by the lack of options (I believe Sqlite is your only or practically only…
software-architectureanswered Vinícius Gobbo A. de Oliveira 5,575 -
5
votes1
answer303
viewsA: Use local files if CDN is Offline
Yes. I’ll give you an example with jQuery loaded on Google CDN. In the head of your HTML, you should add the CDN script: <head> <!-- ... --> <script…
-
0
votes1
answer75
viewsA: Broken alignment with Bootstrap
This is because the second item is 263px high, while the first and third have ~262px. You’re probably calculating heights through some Javascript [directly or indirectly]. Fix the heights (for…
-
1
votes1
answer88
viewsA: How does Google Docs text synchronization work in Drive?
The theory is not complicated: take what has been modified, send it to the other person with the file open, and update their version. Nothing special in between, just Javascript, websocket. Probably…
google-drive-apianswered Vinícius Gobbo A. de Oliveira 5,575 -
1
votes1
answer387
viewsA: File . json is not created in Angularjs
Error 404 occurs because the specified resource does not exist on the server (or a handler for the resource). 404 errors are not only related to the GET method, but are related to all HTTP methods.…
-
12
votes3
answers5893
viewsA: What is operator overload?
Over-loading operators is nothing more than altering the behavior of a language operator, as +, -, etc.. His role is more cosmetic, aimed at simplifying the reading and understanding of the code.…
-
1
votes1
answer1117
viewsA: Set $Scope value of a Controller from an Angular Directive
Just add scope.$apply();: element.on("click", function() { scope.setOnClick({ param : "Clicou na directive!" }); scope.$apply(); }); Fiddle updated Tip: use $scope only for passing data between…
-
6
votes1
answer818
viewsA: Whatsapp Web uses Node.js?
Nodejs is not used. In the backend, the server used is Yaws, which is developed in Erlang, one of the first languages completely aimed at competing applications. On the front, there is no specific…
-
5
votes1
answer1114
viewsA: Pass results from an array to variables
To store each result row in a variable, simply create one array and add lines to it: $variavel = array(); while ($linha = mysql_fetch_assoc($resultado)) $variavel[] = $linha; This way, all values…
-
2
votes4
answers1152
viewsA: Is it possible to build an HTML5 app for Android with Material Design?
Yes. Just add a CSS that does all the HTML styling (and obviously use the elements correctly according to the CSS specification). I know two Csss ready that do it. If you like Bootstrap, recommend…