Posts by OnoSendai • 36,218 points
614 posts
-
6
votes3
answers203
viewsA: Licensing: How to deal with date/local time tampering of a computer?
If the user in question breaks the subscription (stops paying) or no longer connects to the licensing server, he can use the product until a certain date (expiry date of the last downloaded…
-
2
votes1
answer64
viewsA: How to identify exactly which record has changed from one list to another? By ID
Your model can be simplified. The functional example below has only one collection, $scope.dados, whose items have the boolean property consultaNotasDestinadasAutomaticamente. In the view, tables…
-
1
votes2
answers1198
viewsA: Get network path
There is no native function in the current implementation of the framework that transforms a path into a directory mapped to your network URI. You can, however, implement a function: public static…
-
3
votes1
answer312
viewsA: Capture image by url
Using ng-src. Example to follow: var app = angular.module('sampleApp', []); app.controller('SampleController', function ($scope, $http) { $scope.codigos = ['Nautilus','Azir','Ekko']; }); <script…
-
0
votes1
answer5784
viewsA: ERROR: "only one use of each socket address is normally allowed"
There is a Listener binding to the door port in exclusive mode. To indicate shared binding, initialize your Udpclient as follows: listener udpServer = new UdpClient();…
-
2
votes1
answer64
viewsA: Would an alphabetical sequence counter be possible?
Yes, is possible. Assuming 26 letters in the alphabet, you can create a base-26 system to express numeric values as text. This format is called bijective hexavigesimal. In this format, the value…
-
2
votes1
answer268
viewsA: Angular request $http is not returning data
Yes, Angular’s $http service request is returning data and working as expected. The content returned is exactly the answer of endpoint, which seems to me to be the focus of the problem: var app =…
-
0
votes1
answer81
viewsA: Is it possible to extract the header from a DLL? If so, how?
If you are using C#, use the class FileVersionInfo: myFileVersionInfo = FileVersionInfo.GetVersionInfo("dll-alvo.dll"); Instance properties expose compilation details - for example CompanyName,…
-
2
votes2
answers139
viewsA: Doubt Angularjs with array
You can iterate over the list and turn the information to the pattern you want. For example, the code below returns the following array:…
-
2
votes3
answers117
viewsA: Function on the hyperlink
ng-click causes Angular to intercept the click event by changing the default behavior. This is true for any hook via javascript. However, even the default behavior changes from browser to browser.…
-
20
votes4
answers1512
viewsA: What is reverse engineering?
It is the reverse flow to the engineering of a solution. The traditional flow can be expressed as follows: Specification > Architecture > Implementation > Demeanor Reverse engineering, in…
-
1
votes1
answer1840
viewsA: Application Pool stopping at IIS7
Your image has the answer to your problem: A DLL of C modules:[ilegivel] Can not be loaded (...) AMD64 processor architecture. You are trying to load a compiled Assembly to another type of…
-
3
votes1
answer58
viewsA: JRE 8, TDM-GCC Mingw: Silent installation
According to the oracle documentation, [...] you may use the option /s for the JRE Windows Offline Installer to perform a Silent installation. The provided example is the following:…
-
7
votes2
answers121
viewsA: Is there an alternative to Removeat()?
An instance of List<> uses, internally, a array to keep the references to members of the collection. It needs to be manipulated/resized when you insert or remove an item. For insertion/removal…
-
1
votes1
answer748
viewsA: Select option in select otherwise with Angularjs
If I understand correctly, yes - just change ng-model="Choice.SelectedOption" for ng-model="selected" and the Directive will use $Scope. as the aspect of the model to suffer Binding.…
-
4
votes1
answer855
viewsA: How to filter with ng-repeat?
Apply the filter directly via directive filter, specifying an object that represents the properties you want to filter and the criterion value: [...] <option ng-repeat="c in clientes | filter: {…
-
0
votes2
answers2720
viewsA: View control via authorization with Angularjs + Webapi
There are several ways to implement process controls and visibility. The current implementation in the applications I work with is as follows: Creation of an endpoint to obtain permissions…
-
0
votes2
answers625
viewsA: Web Api 2 - Routing not working
In your case IIS is unable to resolve the routes. If you are using inheritance chain to implement their endpoints, use the following solution: public class CustomDirectRouteProvider :…
-
5
votes1
answer332
viewsA: data bind with arrays - Angularjs
Your model can be simplified, making its implementation also simpler. (There is a small error in your object definition candidate - double quotes (skill : ""56b615193afbfa041a9261b9",[...]). I…
-
3
votes2
answers4341
viewsA: What is the best way to log in with Angularjs
The best way to log in with Angularjs is... Do not log in with Angularjs. Seriously. Being a technology that runs on the client, any and all credential validation rules (connection to a endpoint to…
-
10
votes1
answer87
viewsA: How is a "360º Tour"?
360º video market is still incipient, and there are not many industry standards. That being said, emerging platforms are similar in some ways. For example, video capture takes place with devices…
web-applicationanswered OnoSendai 36,218 -
15
votes3
answers8395
viewsA: Deserialize JSON Array in an Object Array
First a few points, and at the end a solution. Your JSON is the representation of an object that has a property, games, which in turn is a collection. Simplified, it can be expressed in this way: {…
-
4
votes3
answers10597
viewsA: Add element at the beginning of a key object/value
Your example is not an array - actually you are using indexed properties of a hashmap. Why exemploLista be treated as a array, you must popular the variable as follows: var exemploLista = [ {nome:…
-
0
votes1
answer14
viewsA: Two Accounts Managing the Same Google API.
Yes. The key belongs to a project. A project can have multiple users, with different associated permissions:…
-
2
votes1
answer60
viewsA: Doubt in Angularjs! (Factory, Controller, View) Why is 'Identity' not updated in the VIEW?
You’re preserving a value, not the object. messages and identity are service properties messageService. The sequence in your code is as follows: messageService is initialized. Property identity…
-
4
votes3
answers4599
viewsA: Javascript - save/update content
Yes, it is possible. You can use LocalStorage to store local content via method setItem(), and get it back via getItem(). The code below exemplifies this functionality: function dataSave(){ var…
-
0
votes2
answers3348
viewsA: Call function in $state.go() Ionic/Angular.js
Set your route to accept an optional parameter: $stateProvider .state('tab.home', { url: "/home/:parm", templateUrl: 'home.html', controller: function ($stateParams) { var parm = $stateParams.parm;…
-
9
votes1
answer12988
viewsA: Get the $index of an ng-repeat that contains an ng-controller in $Scope in Angularjs
Use the constant $index normally, it is referenced in the scope Parent. The sample below demonstrates this behavior: function listCtrl($scope) { $scope.items = [{name:'a'},{name:'b'},{name:'c'}]; }…
-
2
votes1
answer104
viewsA: Show Description instead of angular value
First we need to adjust your collections, because the object statement is not correct: [ cod_anv: '1', fabricante: '1' ] // colchetes ([]) definem uma coleção de objetos, // porém objetos precisam…
-
1
votes1
answer585
viewsA: My video does not run in background css on tablets or ipads. Only on PC
In a similar situation I got the video to be shown on both iOS mobile devices and desktops with two actions: 1 - Privileging the version . mp4 (putting it first) <video autoplay loop…
-
5
votes3
answers332
viewsA: How to make the data appear in the fields in Angularjs
You are using the service $http. The returned object includes several parameters. Make the following changes to your code: $scope.endereco = {}; $scope.pegaCep = function () {…
-
3
votes1
answer115
viewsA: What is this warning on the console using Angularjs?
You are using a minified version of Angularjs, so errors are not being displayed in extended format. In a quick analysis, it seems to me that you are using the injector $stateParams, that belongs to…
-
1
votes1
answer93
viewsA: Problem ng-click with Angularjs
This is because the new content has not passed through the Angular compiler. This is an example of pre-compilation before inserting content via jQuery: $("#conteudo").html( $compile( "<button…
-
3
votes2
answers130
viewsA: How to insert 200 new records?
Two possibilities: Sequential inserts You can concatenate instructions INSERT just the way: INSERT INTO pessoafisica (coluna1, coluna2, coluna30) VALUES (1, 2, 3); INSERT INTO pessoafisica (coluna1,…
-
1
votes1
answer1759
viewsA: Is there a difference between core and CPU? If so, which(is)?
There is a very good answer in Stack Overflow in English. Below the translation: A kernel is usually the basic computing unit of the CPU, which can run a single program context (or multiple if it…
terminologyanswered OnoSendai 36,218 -
2
votes2
answers382
viewsA: Update ng-repeat outside ng-view?
A possible model may implement a service that is responsible for containing the collection, displayed via a member. Inject this service in controller that feeds its view, and binds this member to…
-
22
votes4
answers4310
viewsA: Enter key do not give Submit
You can replace Handler for standard behavior: $(document).ready(function() { $(window).keydown(function(event){ if(event.keyCode == 13) { event.preventDefault(); return false; } }); }); Or, on the…
-
3
votes1
answer1595
viewsA: Identify if your computer has a QR Code reader
You can use HTML5 to detect whether or not the user has a video recording device available: navigator.getMedia = ( navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia…
-
4
votes1
answer227
viewsA: Freeaspupload ASP Classic stopped working
Check that servers with classic ASP applications have received the update KB3104002. He updated the files VBScript.dll and JSCript.dll, which interject the scripts. In time: This type of occurrence…
-
9
votes4
answers332
viewsA: In relation to object orientation, should queries have a class of their own or can they stay in a specific class?
Applique Separation of Interests up to its maximum possible extent. In an ideal world your Users class would not need to know how to enter a new record. In situations like this, an ORM adapter is…
-
9
votes3
answers1527
viewsA: How to find the negative of a color in hexadecimal?
The reverse color can be calculated via OR exclusive (XOR) versus the maximum value (#FFFFFF). The hexadecimal color format is already a hint of how to perform this operation: each of the double…
hexadecimalanswered OnoSendai 36,218 -
4
votes1
answer487
viewsA: Angularjs consume Restful in different domains
This is a limitation imposed by CORS. Two possibilities: Ask the blinktrade.com service maintainers to include their source domain in the list of authorized domains, or Implement a local proxy…
-
2
votes1
answer40
viewsA: DMZ with Ajax on client
By DMZ I understand that you have a network segment only with incoming connections and limitations to services that can be exploited as access vectors. Therefore, a viable implementation follows the…
-
2
votes1
answer199
viewsA: table Angularjs ordering does not change
The problem may lie in the fact that at no time the object sort is mentioned in ng-repeat, or applied to the collection. Another factor - nowhere in your code the collection $scope.user2 is…
-
18
votes6
answers502
viewsA: Empty semicolon doesn’t make a mistake?
This is a perfectly valid, yet innocuous syntax. Each semicolon represents the end of a statement; without any content, the block is simply ignored when compiling.
-
2
votes2
answers1730
viewsA: Time-out expiring faster than expected - ASP.NET
Some possibilities: Some aspect of the application is programmatically adjusting the session timeout value via Session.Timeout; Some process is modifying monitored files (such as web.config, or…
-
4
votes2
answers73
viewsA: Audio compatibility problem with firefox API
Audio API support in Firefox is at the moment partial, as you can see in this list of the Mozilla Foundation: <audio>: MP3 Firefox (Gecko): Partial (see below) To avoid Patent issues, support…
-
1
votes2
answers343
viewsA: Error passing PHP Array to Angularjs by JSON
There is an error in the generated JSON. In column 295, the collection is being incorrectly closed: "user_nv_acesso":"1"}]}]{"userupdate" When it really should be:…
-
6
votes2
answers521
viewsA: How to use unit of time less than milliseconds in a setInterval or setTimeout
The body of your question expresses a different doubt than the present title. This answer refers to the title. Is not possible, unless you rewrite the Handler for scheduling events in an engine like…
-
2
votes1
answer734
viewsA: Spring, Angular JS and Exception Handling in Service Layer
Get the binary content of the file if successful. For this, use the service $http together with Blob: $http({ url: 'site/endPointQueRetornaConteudoBinario', method: "POST", data: json, //caso você…