Posts by João Paulo Massa • 564 points
16 posts
-
3
votes4
answers1120
viewsA: Error Deserialize Json in C#Template
If you need a list of commands, you missed creating the root class that encapsulates the list of your Json commands. public class Rootobject { public List<Comanda> Comandas { get; set; } } The…
-
1
votes2
answers271
viewsA: Check if file exists for 20 seconds C#
Taking into account that your validation method is not asynchronous, I will assume that you need to check every 20 seconds if there is a file in a given directory. Following your line of reasoning…
-
3
votes2
answers543
viewsA: How to find out if I need to rotate the image
The latest OCR technologies have automatic rotation settings. A Computer Vision API contains this setting via the property detectOrientation. According to the tests I made this property by default…
-
2
votes1
answer83
viewsQ: Keep branch history when moving or renaming folder
I need to reorganize a structure in which the source codes of my applications are maintained, however, when I move the branch for a new folder, your modification history is lost. How can I move or…
-
2
votes1
answer661
viewsA: Cannot implicitly Convert type error
The guy UnityEngine.UI.Slider is an object that contains the property Value. You must set values in this property. void Update () { xpSlider.value = Player.totalXp; } For more information on.…
-
2
votes1
answer64
viewsA: Query execution problem in Elasticsearch
You can change your query to: { "query": { "term": { "login": "2" } } } With Elasticsearch.js cliente.search({ index: 'usuarios', body: { "query": { "term": { "login": "2" } } } }) Finally, you can…
-
3
votes1
answer858
viewsA: windows service c# - error 1053
If you used the folder files debug to perform the installation, try to install using the files from the folder release. (In my case I used Installutil.exe) Related post.…
-
3
votes1
answer383
viewsA: Using Elasticsearch, how to obtain data between certain hours using range
Maybe the problem of not returning the filtered documents is related to type formatting datetime indexed. I tested your query and the result was as expected, returned the documents filtered by the…
-
4
votes2
answers292
viewsA: Doubt Search in Elasticsearch
To filter through more than one field we use Combining Queries with the clause multi_match that allows us to search for the term searched in more than one field. "fields":["nome","sobrenome"] The…
elasticsearchanswered João Paulo Massa 564 -
6
votes2
answers283
viewsQ: Modifying a list item shared by multiple threads
I have the following pseudo-code: public void Associar(List<Data> dados) { List<Task> tasks = new List<Task>(); foreach(dado in dados) { tasks.Add(AdicionarAsync(dado)); }…
-
1
votes1
answer131
viewsA: Problems with three Forms and picture box
Using the available code there is at no time the image assignment to the Picturebox component, just when running the line that has the . Save() null reference error occurs. Follows modified code:…
-
2
votes1
answer62
viewsQ: How to work with Parallel using the Ninject library
How can you configure ninject to provide an instance of a given object for each thread that calls it? The ninject kernel can be run before a code with parallelism or it is necessary to instantiate a…
-
3
votes1
answer86
viewsQ: String truncate when performing append
The code below serializes a JSON list and gives a append the variable result. However, from a certain amount of records (350), the text contained in result has a modified part for "..." . I…
-
2
votes1
answer68
viewsQ: Query with Parameter causing timeout
I have a query that when running with ADO.NET it takes less than a second to return your data. When adding Parameters to this query, the return remains the same. However, when adding a type…
-
2
votes0
answers39
viewsQ: How to change the DOM and click using ABOT
How can I capture the return of a button request submit using Abot? With the code below I can search through the árvore DOM, modify the values of my inputs and capture the element that performs the…
-
3
votes1
answer331
viewsQ: Robot to perform Phantomjs-like web procedures
Is there any framework or implementation way to navigate a website programmatically through c code#? I studied the frameworks phantomJS and Selenium, but these have some limitations in relation to…