Posts by Guilherme Batista • 341 points
10 posts
-
0
votes2
answers52
viewsA: Compare and print comma separated data
I believe the problem is in your while. In the stretch: while ((leitor[0] = lerentrada.ReadLine()) != null) You are placing all the reading of the file line in the first position of the vector (the…
-
0
votes2
answers177
viewsA: Is it wrong to return null in a task?
Semantically speaking, it makes no sense for a Task Force to return null. In the world of asynchronous execution, you return null is 'as if you had spoken' to code that a task has not been executed…
-
0
votes1
answer479
viewsA: How to save file from one folder to another?
From what I understand, you can already retrieve the source file. The next step is to only make a copy of the source file. Use the function below by passing the source and destination files as…
-
1
votes2
answers146
viewsA: Find a number after a specific word with grepl and regex {r}
You can use the following regular expression pattern (?:km|rua)\s\d{1,9} I have tested with the informed data and others as well, seems to be sufficient. Follows the test link…
-
3
votes2
answers293
viewsA: Uniquely identify the smartphone
Using a MAC Address I believe that the policies say not to use the IMEI because this can be changed and can be unsafe, because "Chinese/pirates" pairs may have IMEI of a non-transpirated apparatus…
androidanswered Guilherme Batista 341 -
0
votes1
answer103
viewsA: How to make Asp.Net MVC application stop logging out, and stay logged in direct?
I believe this behavior is tied to the expiration time of the cookie. There’s a property on file App_Start\Startup.Auth.cs app.UseCookieAuthentication(new CookieAuthenticationOptions {…
-
7
votes3
answers1448
viewsA: Converting word file to pdf
There is another option that is using the interoperability library with Office, Microsoft.Office.Interop.Word. I tested it here and I got to do it like this: using System; using…
-
0
votes1
answer233
viewsA: How to use the Google Maps API on a Windows Form in c#?
You didn’t say whether these addresses will be static or not. If it’s static, you can do it like this: Search each location on the google maps website and adjust the zoom level, terrain type and…
-
1
votes1
answer490
viewsA: Generate Boleto Itau from a shipping file that is in . txt
A long time ago I did something similar using the project boleto. Net . You can download and add references to your project or else you can get through Nuget: Install-Package Boleto.Net After that…
-
1
votes1
answer207
viewsA: Screen capture/screenshot button in Xamarin
The procedure of taking a screen print, consists of drawing an image file with the content displayed on the screen. Assuming you also want to save the image generated on the SD card for example, the…