Posts by user2989745 • 399 points
23 posts
-
0
votes1
answer120
viewsQ: Error passing variables as parameters in powershell
Hello A Powershell script has the following code: function GetPerfis { [CmdletBinding()] param( [Parameter(Mandatory)] [string]$StartDate, [Parameter(Mandatory)] [string]$EndDate ) $cmd = New-Object…
-
0
votes1
answer70
viewsQ: Delete element from string array in mongodb
Hello. I want to delete an element from a string array, in this case it is the Profiles array, which is present in the Person Document. This in an application developed in . net and with mongodb…
-
-1
votes1
answer801
viewsQ: The specified framework 'Microsoft.AspNetCore.App', version '3.1.0' was not found
Hello I have the following app on . net: I’m trying to dockerize the project. I have the following dockerfile: And the Docker-Compose.yml: And my version of dotnet is 3.1: When I execute the command…
-
0
votes3
answers67
viewsQ: Knowing which element triggered the event
Hello, I can tell inside some_function which class triggered the event click (.Class1 or . class2)? $('.class1, .class2').click(some_function); Thank you.…
-
2
votes0
answers101
viewsQ: Documentation framework for java REST API
Hello, I have a java project, with REST Apis. I wanted to create a documentation wiki (markdown+Swagger) on Apis locally, including also a way to test the API (console API/explorer). These are…
-
-1
votes1
answer54
viewsQ: Why are the string characters being printed as integer numbers?
I have to analyze a code snippet and explain how it works, but I can’t figure out the output: Code: word_norm = 'mundo'.encode("utf8").lower() for idx, value in enumerate(word_norm): print(idx,…
-
2
votes1
answer673
viewsQ: Set timeout on thread execution and save return value
Hello, I have a web service, with backend in java 7. At some point, the backend makes a broadcast RPC call to N servers that are listening. Except that there is no predefined timeout in the call, I…
-
1
votes2
answers4588
viewsQ: define environment variable in application.properties
I have a project in Spring boot where in application.properties I wanted to define the location of files that I will process. I don’t know the best way to do it. I wish I had the directory…
-
0
votes0
answers113
viewsQ: Send java image to javascript
I’m developing a web service Rest with Spring in Java which provides images to front-end, which calls Java with an ajax event. On the server side I am using java Image. import java.awt.Image; I…
-
3
votes0
answers136
viewsQ: Multithreading Crawler problem using jsoup
Hello, I’m developing a multithreaded Crawler, each job (thread) deals with X sites to analyze certain content with the jsoup lib. The sites are all accessible. The problem is that the final results…
-
4
votes1
answer160
viewsQ: Using Callable in java runs code sequentially
I am making a server in java wanted to perform certain tasks in parallel. I have a list of a certain type I want 20 threads to deal with elements of the list. for( Item item : result ) {…
-
0
votes1
answer395
viewsQ: Validate log data (spring-boot + Angularjs)
Hello, I am implementing a web project in spring boot + data + Angularjs. Where the client makes Rest requests to the server. On the Spring side I’m using repositories to develop database research…
-
1
votes2
answers116
viewsA: Word problem with same letters
Here is a solution: static String[ ] solution( String[ ] input ) { //Solution List<Integer> lista = new ArrayList<Integer>( Collections.nCopies( input.length , 0 ) ); int num = 1;…
-
2
votes2
answers116
viewsQ: Word problem with same letters
I’m solving a problem where I get one array of strings with different words, I have to find out for each word (string) which are your friends. Friendly words are those that have the same letters in…
-
1
votes0
answers87
viewsQ: Connections in web application
I am creating a J2EE, jsf project. They have multiple Beans and controller, and the Beans access the Database. I’m having doubts how to manage the Connection for the database, right now I only have…
-
0
votes0
answers89
viewsQ: Call the webservice with an XML
I have to develop a web service (Rest) in java that will be called by an excel add-in developed in .NET. This plugin has to send an xml, what I did was turn it into a string only the XML is huge. A…
-
1
votes0
answers99
viewsQ: Show and receive response from a p:confirmDialog triggered via Managed/CDI Bean
I have a view with a save button, but the method that runs on the save button does some checking on the bean and asks the user if they really want to save. Show dialog:…
-
1
votes1
answer319
viewsQ: Taking reserved SQL words out of a Java string
I’m making a view that has an open field (textarea) where the user can write SQL and then run the same SQL. The point is that the oracle user where it will run SQL has permissions for everything and…
-
0
votes1
answer1680
viewsQ: zoom in/out button of a div
They know some way with jquery and/or css to simulate the zoom in/out effect of a div. Div does not necessarily have an image. Without the increase/decrease div, simulate this effect for the…
-
5
votes1
answer246
viewsQ: Spring MVC getJdbcTemplate Insert in Oracle return column value
I have a project in Spring MVC, I’m using the getJdbcTemplate to make Insert’s. Only I do not insert the key Primary in Oracle from a sequence and need that value to re-enter another table where…
-
2
votes1
answer503
viewsQ: Which language performs best for the multithread webcrawler using parallelism
I will start a project in which one of the phases will fetch certain information on websites of other companies. Bearing in mind that the webcrawler will go through x sites, and on each site will…
-
1
votes0
answers106
viewsQ: Exception java.util.Concurrent.Rejectedexecutionexception:
Good afternoon, I’m back from a JEE project where I used jms and the server is wildfly 8.0. I’ve been working on this exception for a while, but I haven’t been able to figure it out yet. I don’t…
-
0
votes0
answers74
viewsQ: Exception in Initialcontext jboss
Hello, I am developing a java project with jboss. I made the following code: connectionFactoryLookupAddress = new String("jms/RemoteConnectionFactory"); destinationLookupAddress = new…