Posts by ronssm • 147 points
9 posts
-
0
votes1
answer582
viewsQ: Error returning a query’s value with php and ajax (Request failed: parsererror)
I am trying to return the result of a query via ajax with php and jquery, but it is not working, I get a parser error message and am unable to identify the problem. FUNCAO JS function buscaCliente()…
-
2
votes2
answers160
viewsA: Annotation @Scheduled Spring check environment
If there is any table of parameters for the system, you could add the information of the environment and check if it is of production to be able to execute the method. Depending on your scenario…
-
3
votes1
answer177
viewsQ: How to open a full screen size popup on extended displays?
I have a scenario where two vertically extended Tvs are used to display a list of orders. I’m trying to open a popup that gets the full screen size of the two Tvs, but even putting the height as…
javascriptasked ronssm 147 -
2
votes1
answer1790
viewsA: Identify phone type (landline/mobile)
If you need to validate current numbers: - starting with 9 would be mobile - 7 is Nextel (another "type" of mobile) - the rest would be fixed If you need to treat history, it depends on the period…
-
1
votes1
answer1247
viewsQ: Deleting children records with @Manytoone annotation from Spring JPA
I have the classes Presente and Reserva, as below: @Entity public class Presente { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long codigo; private String nome; //getters e…
-
2
votes1
answer182
viewsA: How to improve this algorithm?
Could change from: NS1 <- Randi(100) NS2 <- Randi(100) To: NS1 <- Randi(100) NS2 <- Randi(NS1) Thus it would not need to validate if one is larger than the other besides facilitating the…
-
0
votes3
answers1401
viewsA: I would like to know what is the function of: {} in the Python language and more specifically within the PRINT function as in this code?
{0} will be replaced by the return of the format function. More details here https://pyformat.info/
-
0
votes2
answers98
viewsA: Instantiation problem using Pdo/Fatal error: Uncaught Error: Class
Change the fourth line of: $Usuario new Usuario(); for: $Usuario = new Usuario();
-
0
votes0
answers108
viewsQ: How to edit an image stored as BLOB
Using Spring MVC, thymeleaf and mysql, I have an image stored in the database as BLOB, along with other attributes and can render the image on the screen normally in a list. From the list, I can…