Posts by falsarella • 499 points
15 posts
-
0
votes2
answers1046
viewsA: Finding numbers in sequence that multiplied is a result
Mathematically, this situation can only occur for positive numbers that are not perfect squares, and to find out if the number in question falls into that situation, it is sufficient to test whether…
-
3
votes2
answers5402
viewsA: Check if day x falls on a Saturday or Sunday
The key is to use the u in the pattern of SimpleDateFormat, as in the code: import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; public…
-
-1
votes2
answers115
viewsA: addClass() is adding class to <a href=""> instead of <img src="">
When $active.next().length is 0, $next receives $('#nov-ger img:first'). Therefore, your code addClass('active') will not be hit, because the .fadeOut will be done under no element (after all,…
-
3
votes1
answer2303
viewsA: Arrow in menu with CSS only
The problem of Hover is simple, just merge the use of two pseudo selectors: :hover and :after: .dropdown:hover:after { /* css aqui */ } About the problem of z-index, If I got it right, just move it…
cssanswered falsarella 499 -
1
votes2
answers592
viewsA: When clicking on a name, appear in another div
Put an id on div below the Products link (say: id="produtoSelecionado"). Now just use it in Javascript, along with the modal closure (I assume the use of jQuery): function Aparecer(produto){…
-
1
votes1
answer373
viewsA: Timezone error importing dump from Oracle 10g
There is a thread in the Oracle community about this problem. After reading it, I would try to set the following in your AddVMOption -Duser.timezone=CET: AddVMOption -Duser.timezone=CET Or else some…
-
4
votes2
answers141
viewsA: How to hide a div only in firefox
According to Css Tricks, you could do something like that, considering your div with id meuDiv: /* Firefox 2 */ html>/**/body #meuDiv, x:-moz-any-link { display: none; } /* Firefox 3 */…
-
0
votes2
answers78
viewsA: Wait variable to be set to "open signaller"
Yes, you can use jQuery Deferred: var defer = $.Deferred(); var x = defer.promise(); x.then(function(value){ alert(value); }); defer.resolve('pronto'); <script…
-
1
votes1
answer160
viewsA: How to Transition in Hover
Apparently Transition is OK: $('button').click(function(){ $('div').toggleClass('show'); }); div { position: fixed; overflow: auto; left: -100px; transition: left 0.3s ease; } div.show { left: 0px;…
-
3
votes2
answers117
viewsA: Is it correct to use $(selector). not(':Visible') here?
In fact, :not([style*='display: none;']) should be translated to :visible, and not to :not(:visible). After all, an element that nay has display: none; is visible.…
-
0
votes4
answers957
viewsA: Intercept Exception
Though he’s only one kick, I believe the following should work: @ViewController @PreviousView("/bookmark_list.xhtml") public class BookmarkEditMB extends AbstractEditPageBean<Bookmark, Long> {…
-
7
votes5
answers409
viewsA: Today (06/30/2015) we will have a second more, what could be the consequences for our systems?
This question is related to one of the themes of one of the most famous answers from Soen, by the renowned Jon Skeet, in the Soen. There will be a time discontinuity. A discontinuity can happen in…
-
1
votes1
answer84
viewsA: Dynamically aligning image
The display: inline-block; should do exactly what you’re asking: li { display: inline-block; } <ul> <li> <img src="http://lorempixel.com/200/150/"/> </li> <li> <img…
-
1
votes2
answers3481
viewsA: Image inside of round div
Considering that the image dimensions will always be the same, try as follows: .img-arredondada { border-radius: 50%; background-position: -15px -15px; height: 195px; width: 195px; } <div…
-
2
votes1
answer134
viewsA: How to set a jcombobox in a Preparedstatement?
Apparently the following works (although the question appears in the title): public static void main(String[] args) { System.out.println(JOptionPane.showInputDialog("Qual é o seu nome?"));…