Posts by Lucas Miranda • 1,314 points
78 posts
-
4
votes3
answers680
viewsA: How do I read the output of a loop-based process? [C#]
Whereas it is looped, have you tried using Peek? Example: processo.Start(); while (process.StandardOutput.Peek() > -1) { MessageBox.Show(processo.StandardOutput.ReadLine()); }…
-
0
votes1
answer94
viewsA: Data scraping with jsoup and saving in txt
From what I understand researching the problem is on this line: escreve.println(i+"_ "+bd.get(i).pais +"\n "+atletas+"\n"); Using Printwriter on Windows is correct to use " r n" and print instead of…
-
0
votes1
answer136
viewsA: Xamarin.Forms - Listview only displays if I click on the screen.
What happens is that a secondary thread cannot change the UI, try to replace its Task.Run(async () => await LoadItems(sentido)); for something like Device.BeginInvokeOnMainThread(() =>{…
-
1
votes1
answer525
viewsA: ASP.NET MVC - How to upload a file with more than 5mb using ajax?
This limitation is from Asp, to change just change the parameterization in your web.config file, example: <configuration> <system.web> <httpRuntime maxRequestLength="xxx" />…
-
1
votes1
answer296
viewsA: Error: "Cannot implicitly convert"void" to "Eventhandler"
The description of your error already says it all, the clicked expects a return Event Handler and your method is of type void, the correct way to call your method would be more or less like this:…
-
0
votes3
answers1908
viewsA: How to upload image using Spring Boot?
@Lob //representa um campo do tipo blob no bd private byte[] img; //armazena arquivo como um byte array
-
1
votes1
answer20
viewsA: How to add another column to my query found in another table
This error occurs by generating more than one result in the subselect because it is without any type of filtering, I suggest for a Where, example SELECT DEPARTMENT_ID ,(SELECT nome_dep FROM…
sql-serveranswered Lucas Miranda 1,314 -
1
votes3
answers684
viewsA: Call database function that receives a list as parameter
You can do something like this: public interface PersonRepository extends JpaRepository<Objeto, Long> { @Query("SELECT fnGetEmailUsuarios(:lista)") public List<Objeto>…
-
0
votes1
answer147
viewsA: How to know which part of the code an exception happened by looking at Visual Studio Output
Opening the Exception Settings window (shortcut Ctrl+alt+e) takes a look at whether the exception in question is selected (has a search there that makes it easier), if it is not selected just select…
-
0
votes2
answers60
viewsA: Error while reading a Json string
Your json is not in a correct pattern, the right thing would be to do something more or less like this: {"Times":[{ "id": "1", "nome": "Palmeiras", "Atleta": [ { "id": "0", "nome": "Fernando Prass",…
-
1
votes1
answer4449
viewsA: How to fix these and other errors: Failed to Convert from type [java.lang.String] to type [java.lang.Long] for value 'list'?
it is falling into this exception because you are incorrectly calling your endpoint, when you call the path /clients/list in fact you are passing the string "list" to your view method, which causes…
-
0
votes2
answers2460
viewsA: Export. xlsx with Java
For xlsx you should use Xssfworkbook instead of Hssfworkbook. example: InputStream ExcelFileToRead = new FileInputStream("C:/Test.xlsx"); XSSFWorkbook wb = new XSSFWorkbook(ExcelFileToRead);…
-
0
votes3
answers121
viewsA: Dataannotations problem in string fields[]
Change your regex to accept voids: ^$|^(([A-Za-z0-9]+_+)|([A-Za-z0-9]+\-+)|([A-Za-z0-9]+\.+)|([A-Za-z0-9]+\++))*[A-Za-z0-9]+@((\w+\-+)|(\w+\.))*\w{1,63}\.[a-zA-Z]{2,6}$…
-
0
votes1
answer33
viewsA: Display a text box formatted for filling
The simplest way is to use an inputbox. Example: ip = InputBox("Coloque o IP fixo", "Mudar IP") Another way more laborious but that would bring better aesthetic results would be to make a form and…
visual-basic-6answered Lucas Miranda 1,314 -
1
votes2
answers1233
viewsA: Pass Json object array to Controller C# . NET
Your code has some micro-things adding up that make it not run, but come on: First: <select name="Servers" id="servers" multiple> <option value='{ "Id": "1", "Site": "234", "Tecnologia" =…
-
1
votes1
answer91
viewsA: Adjust columns csv with Scrapy
When creating your Writer change your delimiter to ";" Example: csv.writer(f, delimiter =';')
-
0
votes1
answer26
viewsQ: Save information about execution days
Good afternoon, you guys. I have an automation monitoring system that consumes a table that contains information about n automations registered, about 40 currently. I would however like to do a…
-
1
votes2
answers152
viewsA: How to recover the second text in a validation with Assertequals
Your search is incorrect, by capturing by the id dropdown-menu-profile you are taking the entire text from the div. To only get the paragraph text you would need to be more specific, taking the…
-
0
votes1
answer400
viewsA: How to place the table in a certain position
I would divide your right div into two more, then the top one would put the club share, and the bottom one the table. Merely illustrative example: html <!DOCTYPE html> <html>…
-
1
votes1
answer1609
viewsA: Close ok button in popup with Selenium Driver
whereas it is only a warning you can simply do the following: Alert alert = driver.switchTo().alert(); alert.accept(); you can call the Dismiss() method too, if for example it is one of those…
-
1
votes4
answers1201
viewsA: Check for parameter in javascript URL
I think your own logic already indicates that what you need to do is an if. Ex: if(document.referrer.contains("/?")){ window.location.href = document.referrer+'?id=CS' } else{ window.location.href =…
-
0
votes3
answers84
viewsA: scrollTop in Fullscrenn jQuery
Test this: var suaDiv = document.getElementById("leitor"); suaDiv.scrollTop = 0;
jqueryanswered Lucas Miranda 1,314 -
0
votes2
answers99
viewsA: Image Processing? Doubt on the subject and usability
Complementing the ederwander response, I think what you’re really looking for is something related to OCR, and one widely used tool is the Tesseract The issue of training will not always be a…
-
0
votes1
answer232
viewsA: What does the addViewControllers method of the Webmvcconfigurer Spring boot class do?
addViewController is responsible for mapping the path while setViewName is responsible for mapping the jsp to be loaded. it is also possible to use this method for redirects,example:…
-
1
votes2
answers311
viewsA: Return Value ID C# Npgsqlcommand
There is a command called returning that serves to precisely return your query one of the fields, example based on its string: INSERT INTO public.localpo(NOME) VALUES ('exemplo') returning id;…
-
0
votes2
answers53
viewsA: jQuery - How to add event to control after DOM loading?
You can perform this server-side validation through for example a button. <input id="foo" runat="server" type="button" onserverclick="ex_OnClick" /> from the server side you would then create…
-
0
votes1
answer381
viewsA: Error in this page script
Disable this option here in your VS: Tools > Options > Debugging > General > Enable Diagnostic Tools This solution is palliative, the ideal is to upgrade IE to version 11.…
-
0
votes4
answers958
viewsA: Send form without close modal
Try changing the type of the Submit button to button. Example: $('input').prop('type','button'); However after this you will not be able to catch the Ubmit event, but could map by clicking the…