Posts by Sabrina • 909 points
81 posts
-
1
votes1
answer79
viewsQ: Java: Problems using lambda expressions in generic Listing method
The problem would be that I cannot multiply the variables that return from Listing using lambda (e*e), it keeps asking to create a Listing method using Object, but using Generics. I appreciate any…
-
0
votes1
answer746
viewsQ: Java: Dual-chained list (deck) implementation with callback, Generics, Exception and lambda
I’m doing the implementation in java, however I’m having some problems with how to integrate Generics and lambda in the deck: Deque.java: import java.util.ArrayList; public class Deque { private…
-
0
votes1
answer447
viewsA: Iframe error not clicking on Mobile (mobile)
The problems were as follows: 1) https pages cannot have links in iframe with http (one of the 3 pages had http link). 2) the https link certificate from iframe was invalid, and thus in mobile it…
-
1
votes1
answer447
views -
0
votes0
answers31
viewsQ: Wordpress error when adding scripts in footer and styles in header with enqueue
Code functions.php add_action('wp_enqueue_scripts', 'enqueue_scripts'); //add_action('init', 'enqueue_scripts'); //tentei também com o init, chega a chamar as funções do functions.php e mostra algo…
-
2
votes1
answer121
viewsQ: Sort object descending in Java
I need to sort descending the following object and after that I must delete everything that comes after "_" and even him, to see which word is formed: Follow what I’ve done: var str = 'string muito…
-
1
votes2
answers156
viewsQ: Select in the database using "like"
I am trying to make a select in mysql database, but would like to use the like, that should receive the value of a java variable. How can I do this interaction? public void…
-
2
votes1
answer1791
viewsQ: Xampp error Windows 10 apache and mysql not start
I have mysql and SQL server installed and try to install Xampp now, but I get errors when starting Apache and Mysql, already tried to change ports and without success. error log. [Wed Nov 08…
-
3
votes2
answers8186
viewsQ: Mysql using variables in select
I already searched in some tutorials but I do not find a specification of how to declare the variable in select by Mysql, follows what I am trying to do. DECLARE @idPedido INT; DECLARE @idCombo INT;…
-
0
votes3
answers1242
views -
-1
votes2
answers575
viewsQ: jQuery - How to get the first character of an input?
I have an input that I want to create custom validations, I need to take its value and validate the first character of the input, what would be the best way to do this?
-
1
votes2
answers509
viewsQ: jQuery apply function to all div with the same name
Hello, I have an html with several fields that repeat the same div, I want to take advantage of these Divs to apply a jQuery function in all of them. What would be the best way to do that? accounts…
-
1
votes2
answers390
viewsA: jQuery validate input characters
I was able to find the solution to prevent unwanted characters from not being added to the input was to add: Event.preventDefault and Event.stopPropagation in the function, instead of the return…
-
0
votes2
answers390
viewsQ: jQuery validate input characters
I am doing a function activated by input onkeydown, which should check the given characters one by one, and only allow input of those that are valid, this must happen before the characters are shown…
-
1
votes4
answers7010
viewsQ: jQuery delete the last character typed in an input
I would like to know how to delete only the last letter typed in an input field. All the examples I found are cleaning the whole field val.
-
1
votes1
answer166
viewsQ: map jquery keyboard events - Accessibility
I would like to make an accessible menu, can be retracted with Esc and navigable by tab, what would be the best way to do? by keyup, keydown, someone would have a good example to mention?
-
0
votes1
answer176
viewsQ: jQuery read json and show sublevels only if they exist
I would like to do a validation, do a printout for the first level and second level of a json, the second level should be printout only if there is that second level in the current array item. Ex de…
-
0
votes2
answers31
viewsQ: jQuery doubt all elements are affected by the function
I have the following function, which works to change the arrow of an accordon when it is active (open), arrow down to reverse up, and then return to the original state, but all arrows are affected,…
-
0
votes1
answer222
viewsQ: Css dropdown menu when opening should make the page dark
I made a dropdown menu with bootstrap, but I want that when this menu opens (it opens on top of the content of the page), the whole page is in an opaque effect. I tried to do something like this by…
-
-4
votes1
answer5876
viewsQ: Java Import all classes from another package
I have 2 packages, I would like to import to package B all classes of package A.
-
0
votes3
answers405
viewsQ: How to import all Static variables from another class?
I have two classes, A and B. The class A need to access all existing static variables in B. How to make this import? I found a lot to do with get, however it does not seem to be that. I am beginner…
-
2
votes1
answer86
viewsQ: JS: not defined function error (when calling one function inside another)
I’m having the following error: "my name is not defined" With the structure down: var myobject = object.extend({ init: function () { minhafuncao(); }, minhafuncao: function() { console.log("oi"); }…
-
2
votes5
answers5717
viewsQ: Error npm and Ubuntu Node
I had many problems installing npm and Node in Ubuntu, now I have the following error: npm : Depende: nodejs mas não será instalado mais um monte de dependências... E: Impossível corrigir problemas,…
-
4
votes3
answers1847
viewsQ: Jquery: calculate the number of banknotes of the cashout value (deliver as few as possible)
I’m solving an exercise that I’m having doubts about, it refers to a bank system, in which when I present the withdrawal value, I should receive the least possible number of notes for the indicated…
-
1
votes1
answer2861
views -
1
votes1
answer80
viewsQ: Jquery: Switch focus window in browser by clicking link
Hello, I was wondering if you could do the following: By clicking a link from a site, if I’ve already opened it, this tab becomes the focus, if not, it opens a new tab normally. Thank you!
-
0
votes1
answer42
viewsQ: Jquery simultaneous duplicate chat notifications
Hello, I have a chat system that gives notifications in any part of the site where it is or on the same page of Chatt, however when I am with 2 open tabs I receive notification in both, ie,…
-
6
votes3
answers3176
viewsQ: Is there a shortcut to select and modify similar snippets?
I would like to know a shortcut of the Intellij IDEA similar to CTRL+D Sublime, which selects all similar objects and is possible to modify them together.
-
-1
votes2
answers423
viewsQ: How to form a number to have 10 decimal places?
I have a sum operation and have to display the result in a number with 10 decimal places of accuracy. Any idea?
-
6
votes1
answer16437
viewsQ: GIT Switch branch without commiting or discarding current changes
I need to submit my current changes to another branch. When giving git branch-name checkout it asks me to commit or change the current changes, I don’t want any of those options. How can I proceed?…
-
5
votes1
answer163
viewsQ: jQuery doubt append appendTo inject HTML
Hello, I’m having a doubt. I have a variable containing an html structure and I need to inject a basic div (< div > < / div >) around all the contents of this variable, as a parent,…