Most voted questions
150,413 questions
Sort by count of
-
4
votes2
answers3823
viewsResponsive menu using Bootstrap
I am wanting to make a fixed menu using booststrap, in such a way that it is responsive; that is, when decrease the screen the menu becomes an icon. However, when I lower the viewport screen the…
-
4
votes2
answers208
viewsDo not allow repeating values in different dropdownlists using jQuery?
I have 3 DropDownList where they have 4 items with the same valor (1,2,3,4). I need to respect each DropDownList do not repeat the value selected in the others. Example: ddl0= 1 ddl1= 2 (não…
-
4
votes2
answers1118
viewsWhat are the differences between Lightbox and Modal box?
I’m developing a system of login for a project and came to me the idea of putting the form in a "window to the center of the screen" superimposing the contents of the current screen. Researching…
-
4
votes3
answers125
viewsSum of intervals
I needed a formula to calculate values with intervals. I mean, I have several grades: Between 0 and 5 = EUR 0,58; Between 6 and 10 = 0,64; Between 11 and 15 = €1,05; Over 15 = 1,46€. If the number…
excelasked 5 years, 10 months ago Luis Silva 49 -
4
votes1
answer117
viewsProblems to plot graph with chartSeries function of the quantmod package from a data.frame to R
I’m having trouble plotting a Candlesticks chart from a file data.frame. Code example # Pacotes necessários ---------------------------------------------- library(BatchGetSymbols) library(quantmod)…
rasked 5 years, 10 months ago Henrique Faria de Oliveira 725 -
4
votes1
answer146
viewshistrogram
good morning I would like to create a histogram with 26 species in the x-axis and the percentage of influence of commercial hunting in the reduction of each species (column 'depletion_rate') on the…
-
4
votes1
answer221
viewsMultiplication and summation of dynamic inputs
Note: Developed with Laravel 5.7. Note 2: This is the view from "New Request". The form will dynamically receive the products according to their previously registered items. Until then ok! The user…
-
4
votes2
answers160
viewsInsert Javascript line
I’m doing a validation example for a dynamic table and would like a bug help here. When I make the first insertion he gives right, when I change, he let insert and duplicate.…
javascriptasked 5 years, 10 months ago frodrigues 181 -
4
votes1
answer267
viewsAccept only one comma in Textbox c# WPF
Hello I have my decimal textbox like this: <TextBox x:Name="TextBox" KeyDown="TextBox_KeyDown" Style="{StaticResource MeuTextBoxValor}" Height="23" Margin="1" Text="{Binding Peso,…
-
4
votes2
answers94
viewsLogin panel does not return the number of accounts
I am creating a login area, but when I click the login button, it does not return any error, for example: if the user does not exist I would like the number 0 to appear according to the variable…
-
4
votes3
answers85
viewsHow do you adjust my query date?
$result_usuario = "SELECT * FROM vendas WHERE DATE(date_created) = '$data' AND tipo_venda = '$tipo_vendas' AND tipo = '$tipo_pagamento' ORDER BY 'id'"; I have this query, but it doesn’t work right…
-
4
votes2
answers87
viewsUpdating OS packages from a Database container
I am redoing a Zabbix server here at the company, where I will upgrade from version 3.2 to 4.0 I’m thinking of using Docker to make life easier, since Dockerhub has images for Zabbix-Server, for…
-
4
votes4
answers29846
viewsRequest with Axios and React blocked by CORS policy
I’m trying to request an API using Axios: axios.post('http://api.teste.com.br/v1/getToken', { withCredentials: true, auth: { username: 'usuario', password: 'password' }, headers: {…
-
4
votes1
answer73
viewsHow do for the child widget of a Column expands to the maximum width of the parent(Column)?
Form( child: Column( children: <Widget>[ CustomTextFormField("E-mail"), CustomTextFormField('Senha'), Expanded( child: FittedBox( fit: BoxFit.fitWidth, child: RaisedButton( onPressed: () {},…
-
4
votes1
answer76
viewsArray Ordering with Value Exchange
Good Afternoon! I have assembled an array that receives 9 records from a single variable and the values are displayed on the user screen. However, when trying to put this matrix in ascending order,…
-
4
votes2
answers397
viewsHow to animate a Radial-Gradient or Linear Gradient with CSS?
I’m trying to make an animation with CSS that would be a "sun" passing through an image. The idea was to have something next of that result: But in my code the "sun" is jumping from one side to the…
-
4
votes3
answers81
viewsDifference in arithmetic and assignment operators practice
package entities; public class Product { public String name; public double price; public int quantity; public double totalValueInStock() { return price * quantity; } public void addProducts(int…
-
4
votes1
answer336
viewsWhat’s new between HTML5.2 and HTML5?
According to Wikipedia on topic HTML, note the following table of versions of HTML and their respective years: Entering the HTML5 topic on the same site, it just says: This new version brings with…
-
4
votes0
answers130
viewsPowerbi Desktop and error with R (GGPLOT)
I’m really stuck and I need help. After installing R 3.5.1, I get this error message in the R views on the Power BI Desktop I was working on earlier. "Error: package or namespace load failed for…
-
4
votes3
answers1629
viewsProblems trying to create a virtual environment with pipenv
I’m having a hard time creating a virtual environment with pipenv, I installed it without problems with the Pip, the problem happens at the time of creating the environment. I’m using Windows 10 and…
-
4
votes1
answer358
viewsBy Divs next to bootstrap
I have 5 Ivs, I want them aligned in the same line... But the center div is not aligned... <section class="content"> <div class="row"> <div class=" col-xs-2 "> <a href="#"…
-
4
votes3
answers715
viewsRead JSON array on Android
I’m having trouble reading a JSON in the format: [{"RESULTADO":"SUCESSO"}] Webclient.java: //PARA LER UM JSON, USAMOS A Scanner Scanner scanner = new Scanner (connection.getInputStream()); String…
-
4
votes1
answer1149
viewsHow to calculate percentage change with 3 variables in R
I have the following data: library(sidrar) Tab1612SojaQde <-get_sidra(1612,variable = 214, period = c("last"=22), geo="State",classific = 'c81', category = list(2713)) head(Tab1612SojaQde)…
-
4
votes0
answers214
viewsDoes anyone know how to make a Web Scraping on the SICONV (Free Access) website - With R?
I’m trying to extract the information from the site of siconv dealing with covenants in R:…
-
4
votes2
answers1303
viewsRequire to mark at least 1 checkbox
I have a table that in each row has two checkbox options, yes and no, as shown in the image: Code to mount the table: $y = 0; while($rows_cursos = mysqli_fetch_array($resultado_cursos)) { $tabela1…
javascriptasked 5 years, 11 months ago Bruno 1,304 -
4
votes2
answers193
viewsJsonobject with multiple values without using Array
Goal Create a JSON with the following structure: { "auth": { "user": "rbz", "token": "abc123" } } Setting Creating the root structure: JSONObject JOraiz = new JSONObject(); Creating the values user…
-
4
votes1
answer142
viewsWhat happens to RAM if a key is pressed on the computer for a long time?
What happens to RAM if a key is pressed on the computer for a long time? Example: computer has been turned on and a key is pressed these bytes are being read by the processor and written in memory,…
-
4
votes1
answer441
viewsPopulate Array args parameters without exiting Eclipse
I have parameters that are passed when running the . jar of my code, in args, as in this example: public static void main(String[] args) { final File diretorio = new File(args[0]); final String…
-
4
votes2
answers75
viewsSplit Column into Other Two Lat Long
I have the following datasheets: BIRDS.GENERO SP1 SP2 XLOCAL Thamnomanes caesius glaucus 0°32'S52°12'W Thamnomanes ardesiacus obidensis 0°10'S51°50'W Thamnomanes caesius glaucus 00°53'44"N52°00'08"W…
-
4
votes1
answer322
viewsWhat are the Jeps in Java?
I was watching the backlog of JDK 12 and saw that the amendments are all mentioned as Jeps. Inclusive, in the list of Features has "targeted Jeps for JDK 12 until then". From what I’ve seen, a JEP…
-
4
votes3
answers1697
viewsRemove 2 specific characters from a String
Good afternoon ! Devs, I’m having trouble solving the following problem: In a calculator app, calculations always return a Double, which automatically inserts a decimal place even if it is to deploy…
-
4
votes1
answer105
viewsWhy does Ruby have two send and __send__methods?
Ruby objects have a method called send that we can call methods dynamically. class MyClass private def true_method? true end end Example: mc = MyClass.new mc.send(:true_method?)…
rubyasked 5 years, 11 months ago Danilo Cândido 713 -
4
votes2
answers528
viewsIn Python, is there any way other than `numpy` and `float('Nan')` to get the special constant`Nan`?
I’ve been reading the website of Underhanded C Contest, in which the goal is to write subtly malicious code that looks normal at first glance. One of the common techniques mentioned was the use of…
pythonasked 5 years, 11 months ago Pedro von Hertwig Batista 3,434 -
4
votes1
answer1077
viewsExecution of multiple functions within loops *pply
dput: dataset=structure(list(var1 = c(93.6192987300456, 89.1180437617004, 73.1943506933749, 99.0350881963968, 32.3240431956947, 94.2517145164311, 53.7740966491401, 64.1642983071506, 83.643307145685,…
-
4
votes3
answers1163
viewsHow to separate HTML from PHP
I read in several places that you should not mix PHP with HTML and vice versa, How then could I separate this code for example: <?php include 'C:\xampp\htdocs\trabweb\sessaoBD.php' ?>…
-
4
votes1
answer12340
viewsHow to clear/remove ALL elements of the javascript array?
I’m creating a javascript calculator for better learning and am having difficulty in remover todos os elementos do array. Know when you click the button "AC" calculator and it removes everything?…
-
4
votes1
answer97
viewsWhat does the ">" operator do in the middle of an arithmetic expression in C++?
I found this line of code in a proposed solution to a certain problem. excedente = a % 10 + b % 10 + excedente > 9; My point is, what function is that the > 9 makes this line me specific?…
-
4
votes4
answers4853
viewsWhat kind of return of a select Count(*) in Spring JPA?
I need to know the type of return that Spring JPA returns to put in the Service package, because it is giving a NullPointerException: Dao: public interface PlaylistDao extends…
-
4
votes0
answers222
viewsTreating JSON Response with Retrofit in Android Studio
To be clear, I am developing a simple application test, where my user type the Cpf of a registered customer and their data as customers appear on the screen. My server returns me a json with a…
-
4
votes2
answers909
viewsGenerate float values between -1 and 1
I’m trying to generate values float between -1 and 1 to test if these are within the defined limits to create a vector with the amount of data that only means that I am only able to generate values…
-
4
votes1
answer1069
viewsHow to merge multiple Excel spreadsheets into one?
I have a set of worksheets (for example, suppose they are called file01.xls, file02.xls, file03.xls etc.), all with the same columns in the Sheet1 tab and with the other empty tabs. How do I join…
-
4
votes2
answers93
viewsWhat are pre-specified classes?
Reading the wikipedia publication about POJO (Plain Old Java Objects), I came across the term pre-specified classes. I understood very superficially that perhaps these are the classes of…
-
4
votes2
answers317
viewsWhy does "echo" accept parentheses in PHP?
In PHP, the echo can you receive parentheses because you consider that an expression? Apparently, some language features do not seem to be standardized and can therefore be used in numerous ways.…
-
4
votes1
answer1930
views -
4
votes1
answer85
viewsDoes using CTE (Common Table Expression) create a type of "cache" in the database?
I have an appointment with several JOIN and queries, and when executed, it takes about 7 seconds to return. Getting the same result, using CTE’s, the query takes around 8 seconds of the first…
-
4
votes0
answers172
viewsHow to optimize the generation of combinations?
I have the following code: const montar = (volante, todos, posicao, restantes) => { if (restantes === 0) { return [volante]; } const tamanho = todos.length - (restantes - 1); let novos = []; for…
javascriptasked 5 years, 11 months ago Sorack 27,430 -
4
votes1
answer80
viewsFormat the Array view in C#?
I have a string array. string[] nomes = { "Maria", "João", "Francisco", "José", "Antonio", "Osvaldo", "Francimar", "Cirineu" }; I would like to display them exactly like this on the Console Maria…
-
4
votes1
answer159
viewsHow to fix CSS problem with Letter-Spacing and right-aligned text?
I and have a situation in which I have a container with two lines of text inside aligned to the right. Only that one of the lines is with the property letter-spacing: 15px; Increase the spacing…
-
4
votes1
answer69
viewsParameters for encrypted columns
I am trying to create a database to save a user’s data to the SQL SERVER database, but the table has columns encrypted with Always Encrypted, resulting in a conflict error. I have tried to change…
-
4
votes1
answer2305
viewsAdd new data in an empty pandas dataframe
I am creating code to read several CSV files and extract some parameters from it and assemble a new dataframe with pandas, however I am facing a problem in this construction. Initially intended to…