Interesting questions
-
0
votes0
answers20
viewsAdd title to table row
Conditionally sometimes we need to put one title in a table row to inform the user about what is happening, some status, etc. Using vuetify, I would like to add this title in some lines…
-
1
votes1
answer72
viewsPredicate with CAST
Accessing the database .sqlite via sql normally I can use the function CAST('coluna' as decimal). Via NSPredicate using CoreData, how do I do the same thing? I have a column like String and I need…
-
0
votes2
answers53
viewsautocomplete works only with jQuery 1.2.6
Well I am using an autocomplete plugin with 2 input, where I put the value in 1 input and the 2nd and filled. The problem is that my system works with jQuery 1.7.2, because I have several functions…
-
4
votes1
answer616
viewsThread problem
public class ThreadTest implements Runnable { private String word; private long time; public ThreadTest(String word,long time){ this.word = word; this.time = time; } public void run() { try {…
-
2
votes2
answers781
viewsGroup items by a field into different arrays
$resultado = $modelSga->getConsultaSga($ano, $mes, $unidade); foreach ($resultado as $res) { $idServico = $res->id_serv; $servico = array(); if($idServico != $idServicoAnterior) {…
-
1
votes0
answers26
viewsAndroidstudio error "Unexpected char 0xe3 at 45 in Referer value: [LINK]"
I have an app that has been in use for a while, but recently it gave problem in one of the links that uses a word with accent. But before that error did not appear. What do you think may be?
-
3
votes1
answer1354
views -
1
votes1
answer309
viewsAlternative to using view variables in mysql
I need to create a view that gets the percentage of each product in relation to the total of products, I made the query below and this working as a normal select: set @total := (SELECT…
-
0
votes0
answers38
viewsCheck whether a string is contained in a char matrix in horizontal or vertical JAVA
For the time being I’ve written this function public static boolean isHidden(char[][] board, String word){ boolean check = false; for(int i = 0; i < (board[0].length); i++){ for(int j = 0;…
-
-2
votes2
answers178
viewsTake option value and save to a variable to register in the bank
<p>Escolha a categoria: <select name="categoria"> <option></option> <option value="v1">Conhecimentos gerais</option> <option…
-
0
votes1
answer108
viewsThymeleaf hide button
I have a single modal which I call in two pages. I want the button ALTERAR CLIENTE appears in the modal of page "A" and on page "B" this button disappears. Like I said it’s the same modal for two…
-
2
votes1
answer152
viewsList has_many Relation Elements :through
I am creating an application and realized a has_many :through relation in my template. So far so good, worked smoothly, saved, edits and deletes. The problem is that I would like to list all the…
-
0
votes1
answer936
viewsHow to run multiple onEdit functions in the same script (google Sheets)?
I tried several ways and none worked. I want a function that when someone types something, the cell content automatically becomes all uppercase and no accents. E.g.: if I type "aaaauu", it…
-
0
votes1
answer165
viewsMy Repeater does not render in the browser
I created a Repeater and I can’t render it. When I inspect the object, it doesn’t appear. I took the code above it, called Analyze registration data and repeated after the Reset and can view, but…
-
1
votes1
answer346
viewsButton does not change expansion arrows
In my project, I have some "Steps" to be followed and to advance the Steps, I put "Continue" Buttons at the end of each Steps, they expand the next Collapse and close the previous one, however, I…
-
-3
votes2
answers220
viewsWhy does my Javascript with Class not work?
<!DOCTYPE html> <html lang = "pt-br"> <head> <meta charset = "UTF-8"/> <title>JS 1</title> <style type="text/css"> * { font-family: arial; } body { margin:…
-
0
votes0
answers51
viewsValue collection via PHP and Json
I have a select where the data is in a JSON database that are available in the link: https://gist.github.com/letanure/3012978.js The select option works normally , that is, the data appears in the…
-
-1
votes1
answer122
viewsHighlighting words from a paragraph using Javascript only
As part of learning, I’m trying to underline words that are contained in a paragraph in a document html. By my logic, I would have to store this content in a variable and then scroll through it for…
-
1
votes2
answers987
viewsAngularjs | How to define a boot process for a controller?
I have an app full of Ajax that needs to get data via Webservice when the page loads. I’ve already initialized via ng-init but I don’t know how to have the controller "load" and execute the code…
-
2
votes1
answer300
viewsPHP - How to find the least common element in an array
The job is to create 2 arrays with random numbers between 0 and 30. These 2 arrays should be drawn from the most common element to the least common. Next I have to show to the screen the most…