Most voted questions
150,413 questions
Sort by count of
-
4
votes2
answers139
viewsPrint Checkbox with Jquery
Good morning I created a shopping list with checkbox and would like to print only the selected checklists. follow the codes below: html code <div class="cont-list carnes"> <h3…
-
4
votes3
answers158
viewsDeclaration of Java variables
Is there any difference between the two statements: First: int a; int b; Second: int a, b; Which is the best? Are the variables closer in memory or is that just a myth? Is there any significant…
-
4
votes2
answers873
viewsHow to Make 3D Text with CSS
Is there any way to get to this result with CSS only? Make a kind of 3D effect in text panes with CSS? Type the image below? body { background-color: #880000; } h1 { color: #fff; font-size: 100px;…
-
4
votes2
answers402
viewsUnity: character walks side by side instead of front
Hi, I have a question on Unity3d 5! My character, instead of moving forward, with WASD, he moves sideways. My script: using UnityEngine; public class PlayerController : MonoBehaviour { void Update()…
-
4
votes2
answers1716
viewsChange Javascript input color
My question is this:: I’d like you to change the color of a input according to the value in the calculation made. For example let’s assume that the value of input name="comparar" is 5 and the result…
javascriptasked 6 years ago Christian Sandi 43 -
4
votes3
answers1169
viewsVector sum problem in C
Vector sum problem, I’m trying to put the sum of the vectors directly into loop, but he is not doing the sum of all but duplicating the last vector, I tested the same code in Portugol and it worked…
-
4
votes1
answer627
viewsHow to adjust Background to fit inside container without cutting anything?
I have a Pattern that is repeated in both X and Y that I want to use as background in a div, but I’d like it to fit within the div without cutting on the sides as in the image. (I want them to have…
-
4
votes2
answers98
viewsIs Try-with-Resource in PHP?
Exists in PHP something similar to Try with Resource java? Or I have to close resources in the finally even?
-
4
votes1
answer309
viewsHow to handle a JSON format string?
Let’s say I receive the following content that is stored in a String: { "client_id": 1580, "videos": 4, "remote_urls": [{ "url": "rtsp://aniceurl.com" }, { "url": "rtsp://aniceurl.com" }, { "url":…
-
4
votes3
answers801
viewsExplanation of the function and application of the javascript Sort function
I know what the function below is for (return the candidate with the highest number of votes), but I do not understand the functioning of the function sort, passing another function. Does anyone…
-
4
votes2
answers767
viewsDifference between local variable VS global variable
In my micro controller classes the variables are always defined globally and very rarely locally and I would like to know why, because in my mind it makes a difference between being global or local.…
-
4
votes2
answers86
viewsProblem with @keyframes CSS
I’m making an animation with CSS but the effect is correct only in the first word of the text and the rest not. Would anyone know why this occurs? h3{ position: absolute; font-family: consolas;…
-
4
votes2
answers1089
viewsJavascript function that receives three numbers as parameters and returns the largest
I need to create a function that takes three numbers as parameters and returns the largest of them. If two or three are equal, it shows the same value. I was able to make the comparison, but it…
javascriptasked 6 years, 1 month ago Mario Bignami 41 -
4
votes3
answers69
viewsShouldn’t this function return a bool instead of a pizza?
I am studying Act and I came across the following expression: {this.state.text.split(' ').map((word) => word && '').join(' ')} This summary expression will print a pizza for each word…
javascriptasked 6 years, 1 month ago Vinicius Morais 1,293 -
4
votes2
answers375
views -
4
votes1
answer136
viewsCreating a dataframe based on two other dataframes using dplyr in R
These are my dataframes: df<- as.data.frame(matrix(rexp(200),, 25)) colnames(df)<-c("A","B","C","D","E","F","G","H","I","J", "K","L","M","N","O","P","Q","R","S","T", "U","V","X","Z","W")…
-
4
votes1
answer142
viewsWhat are the differences between macros and constexpr? When is it preferable to use one instead of the other?
I haven’t been in touch with C++, until I decided to create a project to test a solution. As I knew before, I created a macro to use a value as "constant" later, example: #define MAX_ENTRIES = 10…
-
4
votes3
answers1856
viewsHow do I make the logo disappear when I roll the page?
I am creating a menu with version 4.1.3 of Bootstrap and would like to know how I can do when scrolling the page to soon disappear? In this case, only the menu should be. Obs.: When returning the…
-
4
votes1
answer1144
viewsChange menu color by css
I’m trying to leave a menu with a specific color and I’m not getting it, I’ve changed the effect hover but when the mouse is not positioned would like the whole menu to be the color #e70781 and not…
cssasked 6 years, 1 month ago adventistapr 5,498 -
4
votes1
answer119
viewsConfiguration file save directory with User C#scope
Regarding the configuration files in the C#, I’ve always used the App.config only to record strings connection and some read-only variables, but currently I needed to modify some data at runtime,…
-
4
votes2
answers4076
viewsMouse Cursor - Javascript and CSS
The cursor: pointer is a CSS property that defines the mouse cursor as a "pointer" over a given element. So far all quiet, it is worth mentioning that in Javascript I can also add a mouse cursor on…
-
4
votes1
answer93
viewsIncluding columns in a dataframe in R using a rule
This is my dataframe: df<-as.data.frame(matrix(rexp(200, rate=.1), ncol=10)) colnames(df)<-c("one","two","three","four","five","six","seven","eight","nine","ten") This is the entry I will use…
-
4
votes1
answer2803
viewsConvert Localdate to Localdatetime
I have in my Filter class the following attributes: private LocalDate periodoDe; private LocalDate periodoAte; However, the object in which the information is located the attribute that will be…
-
4
votes3
answers134
viewsExplanation of name in php
Could someone explain to me the difference and where I can change it.: $nome=$_POST['nome']; That one $nome I know it’s standard in case I use <input type="text" name="nome"> More in this…
-
4
votes1
answer185
viewsHow to implement a grid and Infinite scroll together?
I’m developing a site style Pinterest but I’m not able to join these two features. To do the Infinite scroll, I used jQuery with AJAX to pull the database posts and append them into the body.…
-
4
votes2
answers160
viewsDifferent behavior inside and outside the function
Good afternoon! For example, I made a script to redirect all people from my site to the home of the site, because, we will change system and with this, sales have to stop so we can do this. I made a…
javascriptasked 6 years, 1 month ago Lucas de Carvalho 6,427 -
4
votes1
answer188
viewsSet timeout for specific function
I have a script with several functions. I would like to set one timeout (guy set_time_limit) specific to a function, and if time runs out, it "disregards" and continues running the loop/script.…
-
4
votes2
answers11353
viewsHow to format dates in python?
When I do so: data = input('data [d/m/Y]: ') print(data) data2 = datetime.strptime(data, "%d/%m/%Y") print(data2) returns to me like this: data [d/m/Y]: 17/08/2018 17/08/2018 2018-08-17 00:00:00 how…
pythonasked 6 years, 1 month ago Natanael Junior 53 -
4
votes1
answer65
viewsError while executing nls in R - 'Arg' must be NULL or a Character vector
When I use the command n0 <- nls(Y~expo.der(x, A, B, C), data=dados_Indice, start=start, na.omit(NA), trace = TRUE) expo.der is the name of the created function that defines the formula used in…
-
4
votes4
answers13602
viewsCheck that the array() is empty with PHP
I have a form with several fields. To get the values, I am doing this way (I put only the first 4): <?php $dados[0] = $_POST["TipoSanguineo"]; $dados[1] = $_POST["PlanoSaude"]; $dados[2] =…
phpasked 6 years, 1 month ago user24136 -
4
votes1
answer614
viewsPrinting all attributes of a class
I have the following class: class Usuario(object): def __init__(self): self.Nome = '' self.Email = '' self.SalarioBruto = 0.0 self.SalarioLiquido = 0.0 self.Cargo = '' self.Despesas = Despesas()…
-
4
votes2
answers66
viewsSearch two numbers at once
Maybe that question has even been answered already, but I don’t know how to do it, and I fell into the typical XY problem. I have a table that has several ids, and I need to search two id’s, 34 e 5.…
mysqlasked 6 years, 1 month ago Layla Comparin 553 -
4
votes1
answer59
viewsReorganize data frame in a list using dplyr in R
This is my dataframe: dput(df) structure(list(ind = structure(c(16437, 16437, 16437, 16437, 16437, 16437, 16437, 16437, 16437, 16437, 16437, 16437, 16437, 16437, 16437, 16437, 16437, 16437, 16437,…
-
4
votes1
answer3811
viewsHow to finish executing code in Python 3?
print('Calcula raizes equação 2º grau') a = float(input('Informe o Valor de A')) while a == 0: print('a equação não é do segundo grau') break b = float(input('Informe o Valor de B')) c =…
pythonasked 6 years, 1 month ago Antenor D. Lopes 43 -
4
votes3
answers596
viewsQuestions about the Count sql command
When I write the command select count(carga > 40) from cursos; what counting logic the command count is running? This command worked on mysql however it returned me a result that I could not…
sqlasked 6 years, 1 month ago Isabela Medeiros 41 -
4
votes1
answer62
viewsLITE ORM problems in saving columns bytes
My app the user can use the camera to take photo and need to save it in the database. To save in the database I convert the image into an array of bytes, however I noticed a problem in this process…
-
4
votes2
answers2252
viewsUnassigned variable in c#
The variable in the last console.writeline is giving that has not been assigned being that it was in ifs, I wonder why. string c, nome; double s, sn; Console.WriteLine("Escreva o nome:"); nome =…
c#asked 6 years, 1 month ago Nathalia Dias 139 -
4
votes1
answer9432
viewsHow to discover the chat ID via the Telegram API?
I am configuring the Telegram BOT API via Guzzle. I am trying to understand what the parameter would be chat_id described in the method documentation sendMessage. I have the following code: $cli =…
-
4
votes2
answers110
viewsHow to do for every time you pass "true", it print the entire instantiated object?
import java.util.ArrayList; public class Loja { private ArrayList<Produto> ListaDeProdutos = new ArrayList<>(); public void cadastrarProduto(Produto produto){…
-
4
votes1
answer377
viewsIf possible, how can I work with integer values of 1 million digits or more in python?
I am running some experiments with primes and needed to process huge integer numbers, but when trying to process a small routine there is an error in the following line: Overflowerror: int Too large…
-
4
votes1
answer219
viewscurl_init php does not work in url friendly?
I’m doing some tests with curl_init php I happen to have the links like this: http://localhost/produto/novo Internally it accesses the new.php file, but I’m using htaccess to work with friendly Urls…
-
4
votes1
answer81
viewsExcel tabs that were saved in html: how to take up
I made a spreadsheet in excel with several tabs and then saved in html because I want to use in my site. The spreadsheet tabs are at the bottom, the site user would have to scroll down to change the…
-
4
votes2
answers221
viewsHow to transform my code with static memory struct to C dynamics?
The exercise asks me to read information in a file, being them, Cpf, name, email and age of several people store in a struct, order in ascending order by age, if equal ages by Cpf, and print in…
-
4
votes0
answers43
viewsHow to make a container deploy by Azure portal?
How to deploy a Docker container to Azure only using the portal? All the explanations I see are using the AZURE CLI, I would like to know if there is a way to do it without using the AZURE CLI.…
-
4
votes2
answers1687
viewsPL/SQL Anonymous block | PLS-00103: Encountered the Symbol "CREATE" when expecting one of the following:
I get the following error : [Err] ORA-06550: line 7, column 2: PLS-00103: Encountered the symbol "CREATE" when expecting one of the following: 'Cause I’m using a create Quence inside my BEGIN with ;…
-
4
votes1
answer54
viewsError handling in consultation
How can I handle errors in this scenario and if there are errors, for example in connection or in the statement, display them on the screen? returnCliente.php <?php $hostname="localhost";…
phpasked 6 years, 1 month ago user60252 -
4
votes2
answers160
viewsSQL Procedures: Can I use a table as a parameter for a procedure?
I’m a beginner in procedures. I am trying to insert data into a table using a procedure, where I get the table name, the column names and the values of these. How to receive the types of data I…
-
4
votes3
answers10794
viewsstore an array of objects in a Storage location with JS
I’m a little layy with Javascript and I’m trying to create a array of objects to save data from a form with the localStorage, but I don’t know how to do it. I already created the code to store the…
-
4
votes1
answer187
viewsWhy does the Edge only move the element Horizontally and not Vertically?
Because the Edge in <span> only moves the element sideways, but vertically the edge is outside the container father? Notice in this example below that when I use the edge on <span> she…
-
4
votes1
answer55
viewsIs it possible to assign a native function to a variable?
A hypothetical example... let _ = document.querySelector; _(".hello").style.color = 'blue'; <div class="hello">Hello world!</div>…
javascriptasked 6 years, 1 month ago Felipe Duarte 6,284