Posts by Juciano Victor • 143 points
10 posts
-
-4
votes2
answers14208
viewsA: When to use WITH (NOLOCK)?
In short, if you choose to use WITH(NOLOCK) you will be performing a consistency-by-performance trade-off.
-
-1
votes2
answers571
viewsA: How to handle multiple conditionals (if and if if followed) in Java and how to compress them?
You can create a value key object where the key is the Keycode of the button pressed and the value can be a function that arrow the direction. I did the example in js, because it is more practical…
-
0
votes3
answers1919
viewsA: Align CSS Bootstrap Cards
Use the flex display in the div you use as a container for your card and use "Justify-content: space-Around;". Following example. I recommend you take a look at flex display and grid. This code is…
cssanswered Juciano Victor 143 -
2
votes3
answers69
viewsA: Select by varchar position
You can filter with REGEXP in the document column, so Mysql will use the regular expression you specify to find its result. Here has a good tutorial on. Example of the use of REGEXP in Mysql: SELECT…
mysqlanswered Juciano Victor 143 -
0
votes1
answer104
viewsA: How to Make a Field Mask in HTML with Pure Javascript?
I used the regex that was in an answer here, in the link the user who responded also explains the regular expression. function validaCampo(c) { let valor = c.value;…
-
0
votes1
answer305
viewsA: Move column items to grid css column
I’ve never seen someone using grid-template-areas that way, but if you want to swap the positions of elements like Divs just use grid-Row on the items to switch between top/bottom and grid-Columns…
-
0
votes1
answer87
viewsA: Method to insert into the database is not pulling value [JAVA]
The problem is that you are most likely picking up the wrong client object and there are also other things to improve on the architecture of your project so come on. First this guy here…
-
0
votes2
answers154
viewsA: Repeat loop while user choose option to continue
You can kill this charade by looking at the condition of the while, in your condition "(choice.equalsIgnoreCase("Do you want to calculate again? S/N");" you are comparing if the user wrote "Do you…
javaanswered Juciano Victor 143 -
3
votes1
answer53
viewsA: How do the width and height of an element start from the center and expand to the left and right?
I think you can achieve this effect by leaving the negative margin, try this. Here has a link to codepen.io where you can play a little bit. <!doctype html> <html lang="pt-br">…
-
2
votes2
answers3601
viewsA: How to compare two different lists in Java?
Maybe that’s what you want, but either way he’ll run the two lists. I’m practically beginner in Java and I’m not sure if this is the best way. List<Object1> arrayObj1 = Arrays.asList( new…