Posts by Sóstenes G. de Souza • 180 points
12 posts
-
1
votes2
answers993
viewsQ: How to convert a string array[] to an integer array int[]
What is a simple way to convert a string[] array to an integer array[] string[] arrayString = new string[] {"10", "20", "30"} To: int[] arrayInt = new int[] {10, 20, 30}…
-
1
votes2
answers993
viewsA: How to convert a string array[] to an integer array int[]
A simple way to make this conversion is: string[] arrayString = new string[] {"10", "20", "30"}; int[] arrayInt = arrayString.Select(int.Parse).ToArray(); Or int[] arrayInt = arrayString.Select(lnq…
-
1
votes5
answers5699
viewsA: How to get the current iteration index of a foreach?
I do not know is the most effective and performative way, but following the analogy to perform the interaction on top of a list in python, we can get the index in a foreach in c# and interact using…
-
0
votes1
answer1826
viewsQ: Sharing module globally at Angular
I created a project used the Angular-Cli tool and together installed npm install --save @angular/material @angular/cdk npm install --save @angular/animations And as in the documentation itself…
angularasked Sóstenes G. de Souza 180 -
1
votes1
answer116
viewsQ: How to check if after selecting a file the same still exists in the Javascript directory
In my application I use as a javascript framework the Angularjs, and to select the files I use the following button: <md-button class="md-accent md-raised button-arquivo-margin"…
-
1
votes1
answer116
viewsA: How to check if after selecting a file the same still exists in the Javascript directory
This is how I can solve my problem. When files are moved or deleted from the folder where they were selected, in Event.target.files the model’s selection input and bind with Angularjs, the size of…
-
2
votes1
answer111
viewsQ: Filehelpers . NET CORE 2.0
I’m migrating an application to. NET CORE 2.0 and the application used the Filehelpers library, I entered the library’s github and found that it has not yet been migrated to . NET CORE ... I wonder…
-
1
votes1
answer196
viewsA: How to configure IIS for its proper functioning?
Have you ever tried to disconnect from your machine using another machine as a server to test ? Because I had a similar problem and when I published on another machine as a server, it worked…
-
1
votes0
answers102
viewsQ: Differences and advantages between typescript and javascript
I would like to know the differences between typescript and javascript And what would be the advantages and disadvantages of each ...
-
1
votes1
answer156
viewsA: Google Drive . NET Quickstart Error to get Credentials
I managed to find the problem My problem was that when I created the path to save the Token: "Users NOVA Documents.credentials drive-dotnet-Quickstart.json". Windows was blocking the project access…
-
3
votes1
answer156
viewsQ: Google Drive . NET Quickstart Error to get Credentials
I’m starting to study the Google Drive Api for a personal . NET project, and followed the step by step made available on the google website…
-
2
votes1
answer133
viewsQ: Injecting $state (ui-router) into $http Interceptor is causing circular dependency error, how to resolve?
What I need: I need when http request returns error 401 or 403 the user is redirected to login screen. Problem: The problem happens when I inject $state into my Factory, causes circular dependency…