Posts by Luiz Sergio • 370 points
15 posts
-
2
votes1
answer73
viewsA: Java array with alphanumeric indices
In your case the ideal would be an object that concentrates these attributes and a list of this object. I created a use case that might resemble your need, a Student class, a Class Class with…
javaanswered Luiz Sergio 370 -
3
votes1
answer36
viewsA: pascal algorithm with an error
Missing Begin and end for if and some variables were written different from declaration. program valormaior_oumenor ; Uses Crt; var valorinicial, valorfinal:integer; begin writeln('Digite um valor…
pascalanswered Luiz Sergio 370 -
1
votes2
answers1247
viewsA: SQL Error [42601]: ERROR: syntax error at or near "Foreign"
The name of the constraint: ... constraint nome_constraint foreign_key (tipo_agendamento_id) REFERENCES tipo_agendamento (id), ... Or inhibit the word constraint ... foreign_key…
-
0
votes2
answers672
viewsA: error starting apache tom cat(home page) HTTP state 404
By logging Tomcat started without errors, but it seems that there is no application deployed on it, you can check and/or deploy the applications on Tomcat https://localhost:8080/manager , in the…
-
0
votes1
answer1334
viewsA: Error 6118 on command promt
It’s exactly what you said in the question, the server list is not available, you may be out of the group, I advise: Check that each pc is in the same Workgroup; Disable firewall and Antivirus on…
.netanswered Luiz Sergio 370 -
2
votes3
answers3885
viewsA: Javascript/Jquery - Calculating days between two "DD/MM/YYYY" dates
Below is an example of a calculation of the difference between dates, returning an integer in days. <script…
-
0
votes2
answers624
viewsA: How to use AJAX in an iframe?
I think you should annotate the Log parameter with @Requestbody: @ResponseBody public String iframeLogPost(@Valid @RequestBody Log log, BindingResult bindingResult, And the fields of this class…
-
0
votes3
answers682
viewsA: How to change the properties of a directly imported image in CSS?
You are assigning the properties of div with: #div { background: #111111 url(../imagens/imagem1.jpg) top center; background-size: cover; filter: grayscale(100%); opacity: 0.2 } So that the image…
-
3
votes3
answers2113
viewsA: Why use Git for individual development?
It is also noteworthy that unlike CVS and SVN which are centralized versioning systems, Git is a distributed versioning system and this makes it present the following advantages:: less processing is…
-
0
votes2
answers31
viewsA: AWS Amazon - I changed the default Ubuntu user folder
The private key is the one in your possession, when you try to access: ssh -i ~/privateKey.pem [email protected] The public key is in the . ssh folder inside your user’s home folder, type:…
-
1
votes3
answers17170
viewsA: How to generate numerical sequences in SQL without creating tables?
SEQUENCES are DBMS objects to generate auto numbering values, where we can define the initial values and their increments. Here’s an example of creating Quence on Oracle: create sequence SEQ_EXAMPLE…
-
0
votes1
answer201
viewsA: Make a select with 3 tables and return in table 3 the id records of the first
According to the comment: SELECT i.nome, MAX(o.id_ocorrencia) FROM individuo i LEFT JOIN ocorrencia as o ON i.id_ocorrencia_ind = o.id_ocorrencia GROUP BY i.nome;
-
5
votes2
answers1088
viewsA: How to work efficiently with branch in git?
I find Gitflow an efficient and organized approach, below follows a link and image to illustrate better: https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow…
-
1
votes5
answers289
viewsA: Capture text within the option tag
For the selected option element, with Javascript: document.getElementById("id-do-elemento").value For a specific element of the options list, with Javascript:…
-
1
votes3
answers99
viewsA: Run Shell Script by checking the 32bit or 64bit system architecture
Below is the check of the system variable LONG_BIT: if [ $(getconf LONG_BIT) = 64 ]; then echo "64bits"; elif [ $(getconf LONG_BIT) = 32 ]; then echo "32bits"; else echo "another"; fi Another option…
shell-scriptanswered Luiz Sergio 370