Most voted questions
150,413 questions
Sort by count of
-
3
votes2
answers280
viewsHow to write this query using Eloquent?
I need to write a specific SQL in a project Laravel but I can’t convert the SQL for the syntax of Eloquent, basically, I need to do this SELECT: SELECT * FROM `movimentacoes` WHERE nome LIKE…
-
3
votes2
answers307
viewsSearch(Json + Javascript)
I’m a designer and I’m trying to get into this front world...I have some questions. I’m starting a javascript search that accesses the…
-
3
votes1
answer594
viewsWhere do the names "atob" and "btoa" come from?
In Javascript, for example, we use the functions atob and btoa to manage codes in base64, decoding and encoding, respectively. The question is, where do these names come from?…
-
3
votes2
answers140
viewsWhat are CSS default values for?
Almost every CSS command has its default value, which is already being used by default, even if you don’t use it, for example. justify-content: flex-start; If you don’t write anything by default the…
cssasked 5 years, 1 month ago Jonathan Matheus 383 -
3
votes2
answers224
viewsTake part of the CSS class name
Is there any way to get "part of the class name" in CSS? I say this because of the example: <div class="result_itens_id1255454"> Let’s assume that this id1255454 is random, so there would be…
cssasked 5 years, 1 month ago Lucas de Carvalho 6,427 -
3
votes2
answers382
viewsHow not to repeat CSS code
I have the following CSS .icoDuvida { background-image: url(img/Layout/duvida.png); width: 21px; height: 21px; background-repeat: no-repeat; float: left; margin-left: 13px; } I need to modify it to…
-
3
votes1
answer50
viewsEnter sudo password after running Spawn command
I’m trying to make a script on Node.js to update my computer. I’m using child_process.spawn. When typing sudo apt update, it keeps waiting for the password. I have tried to inform with stdin.write,…
-
3
votes0
answers104
viewsHow to proceed to implement a Preparedstatement on Android?
We are using the Sqldroid to work as a JDBC driver for Android. However, Sqldroid is an envelope for Android API calls, and this API does not deal well with nulls. So, for us to use…
-
3
votes1
answer34
viewsClear body keeping only 2 elements
I need to delete everything from body, except for 2 items. I tried the ways below but none worked: body > *:not("div#pedidosRelMensal, h1.resposta"){ display: none; } body >…
-
3
votes1
answer702
viewsHow to stack multiple data frames in R?
I have 5 data frames in R with the same columns. I need to group them into a single data.frame, which command should I use? Filenames are: parse10, parse20, parse30, parse40, parse50.
rasked 5 years, 1 month ago Jéssica Jabczenski Roslindo 43 -
3
votes1
answer89
viewsConvert all strings to lowercase
There is a way to configure the modelBuider, to lower my strings? For example, when I want all my data of type string, be at my bank a varchar, i make the following configuration:…
-
3
votes1
answer91
viewsHow to use indexes beyond the primary key?
I have a question about that. Consider a table with the following columns: id (chave primaria), cliente, cidade, estado I already understood that a consultation with condition WHERE id = X would…
-
3
votes2
answers211
viewsChild element exceeding parent element
I have a child element that is mounted dynamically, the contents of this element can sometimes be long, it makes such element exceed the parent as in the following example: Parent Element: margin:…
cssasked 5 years, 2 months ago Victor Henrique 111 -
3
votes1
answer417
viewsAsync/Await does not work with callback
I have a function that converts an image to base 64 but I want only when the console.log('1') run; should appear is the place where I run a post but even inside the arrowFunction it makes the…
-
3
votes1
answer746
viewsHow to Dropdown Menu Overlay Div Content
I am trying to make a Dropdown Menu, the problem is that I would like this menu to overlap the contents of the div. I have tried using the position: absolute, works, Entering the div of the dropdown…
-
3
votes1
answer504
viewsHow to add an event to all elements with the same class?
How do I add an event to all elements in the same class? The code I wrote doesn’t work: var tabela = document.querySelectorAll('.status'); for (var i = 0; i <= tabela.length; i++) {…
javascriptasked 5 years, 2 months ago FilipeFrs 31 -
3
votes1
answer1251
viewsReload or Refresh Datatables
Good morning, I have a Datatables that is loaded by a WHILE coming from a QUERY in which I mount at the beginning of my page by PHP. My problem is when I need to insert or edit some information that…
-
3
votes3
answers65
viewsvertical menu with select
Could someone give me a north on how to display a vertical menu when the first items select is selected, I’m doing it in a very crude way, as they will notice that I put margin-top to move the…
-
3
votes1
answer732
viewsHow to convert million units into dozens unit in R?
Suppose I have the number 80 million. Numero = 80000000 print(Numero) [1] 8e+07 Because it is a large number the R already shows me in Scientific Number, but I would like to convert that number that…
-
3
votes1
answer116
viewsProblem to use a "System.out" on an object
I’m trying to give a System.out.println on an object I have (even with the toString() in class) I’m getting: Predio [name=LS, aptos=[[Lmodel.Apartamento;@7ba4f24f, [Lmodel.Apartment;@3b9a45b3,…
-
3
votes1
answer122
viewsHow to change two fields in JS
So, I don’t understand much of js, and my problem is this: I have a list of products in my cart that shows the quantity, discount, unitario total and subtotal. js would need to change the quantity…
-
3
votes2
answers536
viewsAdd values between ICT
GOAL: I am trying to add the values between Dict ct_db and ct_db2, whenever the keys are equal. Example: RR-00 == RR-00, so make 14 + 223 Problem: It is not being compared all Dict keys, the…
-
3
votes2
answers48
viewsInsert WHERE into query giving error
I have this query here that is pulling right. However, now I want to put those who have the registration only within the current month (for example September). My created_at is datetime. I’m…
-
3
votes1
answer155
viewsRemove empty spaces Laravel + webscraping
I’m performing a webscraping as follows: $url = 'https://esaj.tjsp.jus.br/cpopg/show.do?processo.codigo=XXXXXXXX&processo.numero=XXXXXXX'; $client = new Client(); $crawler =…
-
3
votes2
answers141
viewsProblem in Python3
Hello, I’m (very) new to Python and would like to know what’s wrong with my simple code (to learn Python): eleitores = (int(input('Digite o total de eleitores: '))) c = 0 cand_a = 0 cand_b = 0…
-
3
votes1
answer134
viewsVariables and methods in the abstract class, where to put?
Cliente and Fornecedor has name, phone and email in common what is the best way for me to treat this, should I create these variables in common in the abstract class? or is there a better way for me…
-
3
votes1
answer75
viewsValidation of inputs does not update
I did the following function: function verifica(){ var csenha = document.getElementById("csenha").value; var csenha2 = document.getElementById("csenha2").value; if(csenha != csenha2){…
-
3
votes1
answer1797
viewsHow to use the if block with variable types in Python?
I am creating a program in Python and need that necessarily the data of the ID field are integer numbers. Basically I want to enter the block if depending on the type of variable I get. Example: ID…
-
3
votes1
answer176
viewsPass parameters with properties c#
I’m putting together a script of fighters, the category I want to be a private method and that it is according to the weight that the user type, but I’m not able to mix these two attributes in the…
-
3
votes1
answer363
viewsWhy when creating a Calendar, do I need to subtract 1 of the month?
When I create a product and call the constructor passing the parameters, including day, month and year, I’m not able to understand why I need to subtract 1 month in the method set, note below:…
-
3
votes1
answer30
viewsR splinefun with NA
Has anyone used splinefun with a set of data with NA? x<-c(0.7948801, 1.3248001, 1.5897601, 8.7436794, 9.5385607, 12.4531202, 13.2480008, 14.0428786, 23.0515214, 23.5814400, 28.3507206,…
-
3
votes1
answer57
viewsHow to place the list of letters received from the database in a horizontal position and join it in a single page to the list of words of the searched letter
I am building the database of a dictionary and I made the code of the page Indice.php that shows the letters of the alphabet: a) The list appears vertically but I wanted to be horizontal. b) How to…
-
3
votes1
answer164
viewsHow to center one div under another, exceeding the limit of the first?
Hello, I’m learning about CSS3 and I’m trying to center one div underneath the other so it’s more or less like this: Yet mine has remained so: I tried using margin-bottom: -150px It didn’t work. And…
-
3
votes2
answers138
viewsDelete Full user
Good morning, I’m trying to delete the items from a list but without success. Listing.php <html> <head> <link rel="stylesheet" href="/assets/_css/menu.css"/> <meta…
-
3
votes2
answers55
viewsDropdown closes every click
Good morning Guys, I have a dropdown where I have several checkboxes contained in it. However when I click on any checkbox the dropdown selects only it and closes, I wanted to keep the dropdown open…
-
3
votes2
answers613
viewsConvert an Arraylist<String> into a String[]
I need to pass on the values that are in my ArrayList<String> for a String[] because I need to make a setInputData("INPUT",input). I mean, I want to convert the next ArrayList<String>…
-
3
votes1
answer591
viewsHow to delete an item from an object using an internal ID (Vue-2)
I have an object with the following format: [ { "id":1, "name":"exemplo1", "email":"exemplo1" }, { "id":2, "name":"exemplo2", "email":"exemplo2" } ] I need to delete an item from this object using…
-
3
votes3
answers4717
viewsI need to write a suit functionDeruco, that given a suit, returns a list of strings, one for each card of this suit following the cards of the truco
TIP: The cards include all numbers except cards 8 and 9. The reasoning I had at first was to create several arrays each with the suit name (spades, clubs, diamonds and hearts) and then use the FOR…
-
3
votes1
answer370
viewsHow to validate an array if it has objects inside it or not? React JS
I have a code made using React JS and it works like this, I have a select component, and this is reused several times and the information it receives always comes from an array, only now I need to…
-
3
votes1
answer97
viewsList exiting order while looping
The script below captures the INTERFACE network of a HOST, and inserts into the database (POSTGRES), I swapped the cursor method for a print to check how it was being inserted into the database, and…
-
3
votes3
answers144
viewsHTML Doubt Send text from an inputtext to php
Hello I’m starting in html + php I’m having trouble sending the information from a text field to my php. follows my html code. <html> <head> <title>.. Telefone ..:</title>…
-
3
votes1
answer107
viewsHTML design looks strange
This is basic HTML structure and I’m running it with a live-server, however, the web design is strange. Some body text is very far from the left edge, the css file that is in the code, is a CSS…
htmlasked 5 years, 2 months ago Vagner Wentz 481 -
3
votes1
answer597
viewsHow to consume a message from a remote MQ queue using MDB on Jboss servers
I have an EJB class that writes a message in a JMS queue and would like to consume this message from a Messagedrivenbean (MDB) installed on another server. My class successfully writes in the JMS…
-
3
votes1
answer691
viewsInsert a Datetime into a date type input tag
I am trying to insert the current date into a tag input of the kind datetime-local. Tag Input: <input type="datetime-local" id="inputDateNow" class="registerInput inputCodeDate"…
-
3
votes2
answers255
viewsHow to make a horizontal line between two <td>?
I have a <table> divided into two columns, and I need that in the vertical middle of each column have a line starting from the <td> from the left to the <td> right, in this format:…
-
3
votes1
answer54
viewsMultiple Choice Fade Effect Quiz
In a multiple choice questionnaire (options 1 to 10), I’m trying to make the effect that the question gets low opacity at first, but when it receives the Focus or click, regardless of the question,…
-
3
votes1
answer62
viewsExcel with Conditional Formula per month
I have this formula in the calculation column in the table: =+(K5+L5)*(1+8%) working! I changed the conditional calculation per month, example:…
-
3
votes1
answer45
viewsInsert line number in SQL Manager
Hello! I’m trying to see the number of rows on the side of my SQL Manager query, but I can’t find where to put, could anyone help me? I’m getting an error in my query and it informs the line, but…
-
3
votes1
answer282
viewsHow to leave bootstrap columns under each other’s collars
<style> #a1 { background-color:#05466f; height:120px; } #a2 { } #a3 { height:303px; background-color:red; margin-top:57px; } #a4 { width:100%; height:51px; background-color:pink;…
-
3
votes1
answer68
viewsHow do I save the output of a REGEX to a new file
const dirfile = 'BIG_DATA.HTM' const reg = /(\<td .*)/g const fs = require('fs') const myReadStream…