Most voted questions
150,413 questions
Sort by count of
-
5
votes1
answer574
viewsLoading animation
I have a code that makes a loading animation before starting a page. css. .preload{ position: fixed; z-index:99999; top:0; left:0; width:100%; height:100%; opacity:1; background-color:#fff;…
-
5
votes1
answer848
viewsHow to calculate the percentage difference (or similarity) between two strings?
I’m using PHP in an application I’m developing, where I have a text editor. In this text editor, with each change made, before saving, I create a record with the original data (i.e., how they are…
-
5
votes4
answers11349
viewsWhat is the difference between SMALLINT(3) and INT(3)
I have a question about the difference between two types of data in Mysql: That document has this table: The standard construction of these types is SMALLINT(M) and INT(M) where M = numero máximo de…
-
5
votes2
answers103
viewsHow to make an implicit conversion (inheritance) without losing information
Hello, I am doing a project for college where I have to implement 3 classes. These classes inherit from each other as in the model below: public class AssinanteFree { protected int id; public int…
javaasked 6 years, 4 months ago LeandroLuk 4,989 -
5
votes2
answers323
viewsPython reserved word Yield
What is the difference between the following codes ? def bottom(): yield 42 def bottom(): return (yield 42)
-
5
votes1
answer1303
viewsWhat are the scenarios in which C# has an advantage over other languages?
Here on the site have some similar questions, for example, What are the ideal use scenarios for Node.js? and Why choose C instead of C++ or C++ instead of C? I would like something in this sense but…
-
5
votes2
answers121
viewsPlace row data in columns
SELECT datacc, horacc FROM R070ACC WITH (NOLOCK) WHERE numcad = '2676' AND DATACC between ('2018-16-04') and ('2018-15-05') and oriacc = 'E' In the first column appears the day of the month repeated…
-
5
votes1
answer254
viewsRetrieve item from a picker
I have a project in Xamarin Forms and I want to recover a selected item from a Picker. Picker is being fed by a list of Objects in its "Itemsource" property and I am showing the values of that list…
xamarin-formsasked 6 years, 4 months ago Q.Wesley 405 -
5
votes2
answers858
viewsComparison of variables of different type with conversion returns incorrect result
I have the following code var Valor1: string; Valor2: Double; begin Valor1 := '150.15'; Valor2 := 150.15; If StrToFloat(Valor1) = Valor2 then ShowMessage('Iguais'); end; In this situation, sometimes…
-
5
votes1
answer64
viewsHow to know if the list contains so many elements that meet and do not meet a condition, using stream?
I have a list of columns, I need to know if this list contains both columns that are keys and columns that are not keys. I guarantee the existence of at least one column on the list My class of…
-
5
votes2
answers279
viewsWhat is this "k_BackingField"
I have a project to create a C# Smart Device for Windows CE. I received a code result reverse engineering, but there is a part that I am not able to understand or adapt. Below follows the code:…
-
5
votes1
answer134
viewsLarger bass padding than defined in CSS
I have a situation where I define the padding of a div within the header with: #header_inn{ padding: 5px 2%; width: 96%; } I want them to paddings top and bottom have exact 5px, but the bottom gets…
-
5
votes1
answer85
viewsWhat is the Java equivalent of this Ruby lambda?
In his text on Inversion of Control, Fowler uses as an example an excerpt of code in Ruby that promotes the said principle to "invoke a bind method over the text input field that passes an event…
-
5
votes1
answer9809
viewsOracle - Filter by date
I have a column dt_atualiza_log who’s with the guy DATE in the table (is saved in format 01/12/2011 10:10:48) I’m having trouble filtering through and of my query. I’ve tried several ways, the last…
-
5
votes1
answer103
viewsPrevent git merge when conflict exists
When I’m using Github for Desktop, and I pull or push, the App just tells me that a file is in conflict and nothing happens. but when I use gitbash, it automatically starts a merge. I’d like you to…
gitasked 6 years, 4 months ago user115802 53 -
5
votes1
answer537
viewssqlsrv_num_rows does not work
I have a site that is being done with PHP + SQL SERVER, and to log in needs client code, and it puts there only that always says that is incorrect, and that is correct. Apparently the…
-
5
votes1
answer70
viewsInversion of each line of a C file
I am trying to make a program that basically indents each line of a text file in reverse order, that is, the line is shown from the end to the beginning. For example, the line 'hello world! ' is…
-
5
votes2
answers501
viewsC# | Enlarge the Console Application window
How Do I Enlarge the Application Console Window in C#? I use Visual Studio 2017 Community. My program will be done in Console Application, I need to change the size of the Console window being…
-
5
votes2
answers3295
viewsHow do I stop sending package-lock.json by gitignore?
I can’t "ignore" sending package-lock.json for gitlab, when I run git status it appears to me to be sent. Follow a print showing the .gitignore and my terminal when running git status. File .…
-
5
votes1
answer106
viewsOnly positive numbers in SUM aggregation
In this consultation, in ,SUM(quota_re_mes1) AS NO_MES i would like it to add up only the positive numbers, is there any way to do that? SELECT orcdotac.conta_desp ,orcplade.descricao…
sql-serverasked 6 years, 4 months ago V.Avancini 496 -
5
votes2
answers225
viewsHow to group a list in javascript and calculate subtotals?
I have the following list: nomes = [ { nome: "flavio", valor: 10 }, { nome: "flavio", valor: 20 }, { nome: "fran", valor: 30 }, { nome: "fran", valor: 40 }, { nome: "Roberto", valor: 50}, { nome:…
javascriptasked 6 years, 4 months ago Flavio Cardoso 81 -
5
votes1
answer127
viewsCode Review: Simple MVC
Hello world! I tried to make a very simple MVC in Javafx. My template is a class Pessoa who owns nome and idade (the field idade in case it is not used). Two text Fields represent two views. For…
-
5
votes2
answers771
viewsHow to hide menu items using spring security?
I am using spring security to control access to my web application. I have already managed to implement the control that each type of user will have in relation to the urls, now I would like to hide…
-
5
votes1
answer114
viewsLoad XML file stream in Xrrichtext
In my application, I receive a array of bytes file XML. With it I create a stream, but when I try to load it and insert it into XRRichText, nothing happens. However, the stream on a user’s computer…
-
5
votes1
answer219
viewsIs it incorrect (or problematic) to create a string array struct?
I’m not sure what’s the ideal way to create a structure (struct) that contains a array of string, in case I have a structure like this: #include <stdio.h> #include <stdlib.h> typedef…
-
5
votes6
answers12886
viewsDoubt about logical operators && e || in Java
I have the following code in my app: if (aquaName != null && !aquaName.getText().toString().isEmpty()){ values.put(NAME_COLUMN, aquaName.getText().toString().trim()); } else {…
-
5
votes1
answer209
viewsIf C/C++ are native languages then why do they need runtimes?
Usually the first thing that came to my mind when I heard the term native language, was a program that ran independent of operating system, communicating directly with hardware, I always developed…
-
5
votes2
answers106
viewsDifferences between variable statements in C#
What is the difference between these statements: Classex xx = new Classex(); var xx = new Classex(); Classex xx; If in the end I can use everything in the same way (methods, properties...) Ex.: I…
-
5
votes2
answers226
viewsHow to add space in "boxplot" and center the middle
I would like to make two modifications to the following chart : Leave a small space between the green(F) and orange(s boxplot) Place the point referring to the median at the center of each boxplot…
-
5
votes1
answer310
viewsProblems accessing a website via Rstudio
Problems when connecting there is a particular site via Rstudio url <- "https://www.jusbrasil.com.br/diarios/busca?q=%22licen%C3%A7a+sem+vencimentos%22&idtopico=T10001849&o=data" links…
-
5
votes1
answer1874
viewsHow to collect data from a web page?
Web data collection, or Web Scraping, is a form of mining that allows the extraction of data from web sites by converting them into structured information for further analysis. Present here your…
-
5
votes1
answer396
viewsHow to expose a bean method to use spring dependency injection
I need to expose a method like a bean on ApplicationContext of Spring to use it in the injection of an attribute, which has more than one implementation. What I did was the following: I added the…
-
5
votes1
answer246
viewsError while running main report - Jasper Studio
I am generating a report in Jasper Studio, where the main report has N sub reports, one of which has a connection to a database other than the main report. When I run the main report in Jasper…
-
5
votes2
answers2049
viewsSort CSS DIV positioning
Is there any chance I could position the .divdois above the .divum only with CSS without having to change the HTML position? <style> .divum { width: 100%; height: 200px; background: black; }…
-
5
votes3
answers2286
viewsHow to remove duplicate values from a multidimensional array in javascript?
Good night, I need to remove duplicate results in an array with other nested arrays. I have the following variable: var dados = [ ['maria', 'telefone', '324-5678', true], ['maria', 'telefone',…
javascriptasked 6 years, 5 months ago Aline Vianna 167 -
5
votes1
answer176
viewsHow do you check if two Drawables are the same?
Good night ! I’m having trouble recovering the current image from my android imageView. It is a favorite image for the user(dar like), and I want that when the user click on this image, I check if…
-
5
votes2
answers111
viewsShould I avoid repeated access to the same method within a loop?
I worry about the final performance of an executable, at the same time I don’t want to penalize the programmer with excessive or unnecessary care in the code. In the code below, for example, it will…
-
5
votes1
answer322
viewsError rendering with jQuery Ajax
Quick information on how this code should work: Ajax takes an html, compiles with Handlebars, the same ajax takes a json from an api, packages everything and renders an index with an append. var…
-
5
votes1
answer93
viewsHow to change the distance or rotation of the axis heading of a graph relative to the axis itself
I make the graphic below using the plot3D package of R. I would like to move the label a little away from the z axis ($f(y_{1},y_{2})$) of the values of the axis or leave it horizontal. Does anyone…
-
5
votes2
answers947
viewsCounting weeks between two dates
I am trying to perform a query between two dates that returns the number of the week and counts progressively the week. As an example : Stayed like this : SELECT…
mysqlasked 6 years, 5 months ago Carlos Lopes 185 -
5
votes1
answer129
viewsDifferent regex strategies to get the same result
I have the following input: Detalhamento de Serviços nº: 999-99999-9999 I need to get the number in a group, for that I would use: Detalhamento de Serviços nº: (\d+-\d+-\d+) However I can’t trust…
-
5
votes1
answer249
viewsHow did this site "manipulate" the mouse position?
As usual, that question there is already an answer to that. Unfortunately I was surprised to browse a malicious site unintentionally. He was able to manipulate the mouse position, preventing me from…
-
5
votes1
answer232
viewsTextfield click event conflicts like Joptionpane
I am learning how to create a sales system and created this method to take information from a Textfield and play within a table by clicking the enter button. I created a Try-catch to handle…
-
5
votes1
answer375
viewsWhat is the best way to generate Push notification using Firebase?
I have the following problem: I have a system where it is possible to register a series of tasks to be accomplished by a team or person. What I need is that whenever an order is finalized by a user,…
-
5
votes2
answers2147
viewsZoom effect with CSS
I have a div with an image in which I applied a zoom effect and a slight rotation! but this image must zoom and rotate within the limits of the DIV without overflowing but hide the parts that exceed…
-
5
votes1
answer373
viewsIntegrating Delphi to Word (enabling Save Word button)
Some time ago I created a system that integrates the MS Word with the Delphi, only that the button of Save Word gets disabled. It would be important that this button was enabled, because it is…
-
5
votes1
answer9144
viewsUPDATE WITH CASE SQL
Is there any way I can use more than one column of the same table in a case statement in an update? for example, I have this table with these 3 lines create table produto2( codigo int primary key,…
-
5
votes2
answers133
viewsHow to filter a Hashmap by returning another Hashmap using Java 8 lambda?
The following code traverses a Set and filters only the objects that the isActive() is true. public Set<InvoiceLineDocument> getActiveLines() { Set<InvoiceLineDocument> activeLines = new…
-
5
votes2
answers558
viewsHow to make concentric circles in r Plot
I need to make concentric circles, preferably displaced from the origin, in function plot() to serve as a visual reference to a function. I tried the abline(), but I was unsuccessful.…
-
5
votes1
answer595
viewsImport multiple excel tables at the same time
I want to import 27 Excel tables into R without having to type 27 times the import command already, that the table names go from tab101 to tab127. I tried that way, but you made a mistake:…