Most voted questions
150,413 questions
Sort by count of
-
6
votes2
answers1558
viewsMedia CSS queries not working and conflicting
I’m developing the one-page responsive and the documentation says to do the media queries as follows: @media(max-width:767px){} @media(min-width:768px){} @media(max-width:992px){} Uso Bootstrap 3.…
-
6
votes2
answers144
viewsWhen using method in a string, it is not including parentheses "()"
I have the following method in a class: public function cadastrar( $pastor ) { print $pastor->getIdMembro(); // IMPRIME 6 $string = "INSERT INTO pastores ( idMembro ) VALUES (…
phpasked 5 years, 9 months ago Carlos Rocha 1 -
6
votes2
answers1259
viewsHow to get the month or day of the week in Portuguese on C#?
In PHP, through the function strftime, I can return the name of the day of the week or month, in the language installed in the operating system. Example: echo strftime("%d %B", time()); Upshot: 16…
c#asked 5 years, 9 months ago Wallace Maxters 102,340 -
6
votes1
answer332
viewsHow to make the border thickness responsive to this Brazilian Flag made with CSS?
I’m trying to make a flag of Brazil that is responsive. But I came across a problem with the white banner of the flag. OBS: I won’t put the text on the track! What happens is that the track is…
-
6
votes1
answer1040
viewsMake edge effects in CSS such as chamfer
I need to do some effects on the edges of images and rectangles, as in the image below: Notice that they are in the corners, in the gray rectangle this in the top right, in the images in the base…
-
6
votes3
answers155
viewsError with variable naming functions in a list
I try to run a function to rename variables from data.frames of a list and get only error messages. When I run the function for a database the analysis takes place: library(tidyverse)…
-
6
votes1
answer140
viewsWhat algorithm to use for a diff mechanism?
You know these mechanisms of Difference of content that we use in control of various versions, where can be seen on Wikipedia or on Github, even here on the site? Just as there are algorithms known…
-
6
votes1
answer259
viewsSorting algorithm, Java stream
When working with Stream I currently use the Sorted method to sort, example: Stream<Integer> stream = Stream.of(3, 2, 1); stream.sorted(); // saida será 123 What is the sorting algorithm for…
-
6
votes0
answers272
viewsFetch the certificate from the client, not from the server
I need to get the certificate, and I would like you to search the client, not the server, I try to do this way: public static X509Certificate2 EscolherCertificado(string serial) { var store = new…
-
6
votes1
answer295
viewsWhy does Fractions.Fraction(1/3) not return "1/3"?
import fractions a = int(input()) b = 1 / a b = fractions.Fraction(b) print(b) This is a piece of code I’m developing. This part had the function of taking the decimal resulting from the division "1…
-
6
votes3
answers237
viewsQuery SQL Add duplicate value
When running the SQL query I get the following result; However, I would like to receive the result as follows; Executed SQL query; SELECT CODIGO_BARRAS.barra, produtos_eventos.quantidade FROM…
sqlasked 5 years, 10 months ago Hugo Rutemberg 307 -
6
votes2
answers325
viewsecho is printing the HTML tags
I made a script for subscription newsletter, the user sends the email to register.php and from there the script receives an echo in a message with button, the problem is that the button does not…
-
6
votes1
answer56
viewsIs it possible to access a shared variable with another thread without a competition problem?
I have that code List<Object> myList = new ArrayList<>(); public void RunOperation(){ myThread = new Thread() { @Override public void run() { for (int i = 0; i < ReallyHighNumber;…
-
6
votes1
answer37
viewsHow to optimize the removal of lines in an array?
I have a matrix of dimensions: > dim(filtro1) [1] 2806519 31 I need to remove the lines of this matrix that meet a condition. So far so good. However, computationally the loop for this has been…
-
6
votes0
answers4119
viewsShortcut to Identar Query Sql
Good afternoon, everyone! Is there any keyboard shortcut that makes the Query SQL identation and leaves the code organized? In the Database.Net application the command is Ctrl+M If anyone knows…
-
6
votes1
answer138
viewsIs it appropriate to use layers in an application using microservices?
Structuring a layered web application is used only in monolithic applications or also in microservices? Presentation layer Application layer Business Logic layer Data access layer…
-
6
votes3
answers158
viewsMinor Date in a Dataset
I have a data set and would like to select only the smallest date among each primary key (column MATRICULA). Follow the example of my DF: MATRICULA <- c(1,1,3,3,3,4,5,5,5,5,6) DATA <-…
rasked 5 years, 10 months ago Bruno Avila 867 -
6
votes3
answers810
viewsRecord Javascript session using cookie and button
I set up a banner, where I need that when the user enters the site and clicks on the GOT IT button it disappears and when the user re-enters the site or loads another link no longer appears.…
-
6
votes2
answers384
viewsCan the <link> tag be used outside the <head> tag?
Practically all documentation relating to tag <link> suggest her call inside the block <head></head>. Example: <head> <link rel="stylesheet" type="text/css"…
-
6
votes1
answer76
viewsAre all the Fontawesome folders useful?
I use Font Awesome 5.2 just this way to insert the icons: <i class="fab fa-500px"></i> I wonder if for this it is necessary to leave in the project all these folders and files that comes…
-
6
votes1
answer118
viewsIn Devtools is there any way to capture the entire screen of the site, even if it has scroll?
I’m not looking for Chorme extension or screenshot code etc. I just want to know if this developer tool has some native option of this type. I know if you open the DevTools chrome and press…
-
6
votes2
answers438
viewsConditional VUE array count
I need to find out how many records of the array below has the active field as true, how can I do? [ { "name": "Quero Vender", "active": false }, { "name": "Quero Comprar","active": false } ]…
javascriptasked 5 years, 10 months ago Victor M. 597 -
6
votes1
answer400
viewsHow to return the last value of an sql string?
I need to use the last character of a string G. Like I get it with sql server? SET @VALOR = '0000050529-G' I want to take the letter G
-
6
votes4
answers1051
viewsIs it possible to change Placeholder in Focus with CSS?
Imagine I have one input to the phone number, but that when the user focuses on it I want to change the text of the placeholder, for example of "telephone" for "only numbers". You can do this with…
-
6
votes2
answers823
viewsWhat is the difference between [] and [[]] in the R?
I just used the [ ] to define the position of an element in a vector or matrix ([ ], [,], [, ,]...), but how does the [[ ]]?
rasked 5 years, 10 months ago Márcio Mocellin 1,443 -
6
votes1
answer102
viewsAdd a distant circle around a CSS image
I need to circle around a div with photo, however my image is not centering on the expected circle, having this result: I tried to do it that way: #avatar { margin: 0 auto; background-image:…
-
6
votes3
answers425
viewsIs it mandatory to put the same attributes on different constructors?
I have these builders: //1st Constructor - Create bike with a new frame public Motociclo (String marca, String modelo, float peso, int robustez) { //Nivel 2 this.marca = validarMarca(marca);…
-
6
votes3
answers110
viewsDoes the File(String) constructor create a file?
When we use the constructor method File f = new File(aquiVemOEnderecoDoArquivo), if the file does not exist, it is created?
-
6
votes2
answers419
viewsExport graphs from an Excel spreadsheet without Interop
I need to read and write data from Excel spreadsheets, and export some charts using C#. But I cannot use the interoperability library (Microsoft.Office.Interop) for that reason. How can I do? Does…
-
6
votes2
answers1288
viewsWhat do "re:" and "im:" mean in Rust?
I want to know what re and im mean/do let mut z = Complex { re: 0.0, im: 0,0 }; I’m learning Rust by the book Programming Rust and this re: and im: it must have appeared before, but only now have I…
-
6
votes1
answer196
viewsWhat is the difference between performance between different types of string concatenation?
I know 4 different types of concatenation of string in the c#: // string Interpolation $"valor {variavel} R$"; // Verbating string @"texto qualquer pula a linha e continua o texto"; // concatenar 2…
-
6
votes1
answer135
viewsIs the assembly code of a compiled program different from what was written?
I compiled this Assembly code global _main extern _printf section .text _main: push message call _printf add esp, 4 ret message: db 'Hello, World!', 10, 0 when I went to give u dump in code Assembly…
-
6
votes1
answer183
viewsHow to make animation with SVG or CSS of a Text walking the way?
I have an SVG that is a Text aligned on a Path. But my intention is to do the text "running" by Path, as a Marqueer. The idea would be something like this image. But what I got was to animate the…
-
6
votes3
answers475
views -
6
votes3
answers4481
viewsDifference from: "git commit -am" and "-m"
What would be the difference between typing: git commit -m "Teste" and git commit -am "Teste"? I’m learning about Git and would like to know how to differentiate it.…
-
6
votes3
answers362
viewsCharset statement in file . css
Sometimes I come across some examples of archive .css with the declaration of charset right in the first line: @charset "utf-8"; Even my code editor (Dreamweaver CC 2015), when I create a new CSS…
-
6
votes4
answers148
viewsMy functions only return 0
I was trying to do Bhaskara’s formula in functions, but something went wrong and only return 0 no matter what inputs I put in. Here’s the code: function bhaskaraP(ab, bb, cb) { var Mb = bb * -1 var…
-
6
votes1
answer863
viewsDeadlock concept in Java
I came across the term deadlock in Java. But, I can’t understand it. So I would like to ask these questions: What is a deadlock? Why and how to avoid a deadlock?
-
6
votes2
answers3839
viewsHow to remove a Key from a JSON
Suppose the following JSON: {"id": 1, "preco": 100, "detalhe": "nenhum"} If I build an array with 100 of these objects and want to take the "detail" key from everyone, for example, it is possible…
-
6
votes2
answers169
viewsAnimation with Javascript/jQuery
I have this html: I wish that when the user dragged, the buttons would appear like this: When you drag it again, disappear ... How could I do this with Javascript/jQuery? Follows the code: <div…
-
6
votes1
answer197
viewsWith CSS, is there any way to change the style of Text-Overflow:Ellipsis?
Imagine I have a situation where the text is bigger than the container, then I’ll use text-overflow: ellipsis to place the 3 dots ... showing that the text continues and there inside the container…
-
6
votes1
answer185
viewsIn CSS what is the difference between Pixel Density and Pixel Ratio? How does DPI, DPCM and DPPX work
With the "popularization" of retinal screens, mainly on Apple devices, I have seen some people using media queries with measures like: @media (-webkit-min-device-pixel-ratio: 2) { ... } @media…
-
6
votes1
answer91
viewsHow to solve the 53 categories limit of R randomForest?
In R, using the library randomForest, when executed randomForest() I receive the following error message: Error in randomForest.default(m, y, ...) : Can not handle categorical predictors with more…
-
6
votes3
answers417
viewsCounter of a subsequence of repeated strings in C
Consider a string composed of several subsequences. for example: cccaaaabbbbxdddddddaaannn. The smallest subsequence is the letter x, with only one element; the largest subsequence is the letter d,…
-
6
votes1
answer396
viewsOrder by command with Sqlite accent
I am programming for Android and using the native database(SQLite). I want to make a query in the product table ordered by name, but while doing the SELECT thus: SELECT * FROM produtos ORDER BY…
-
6
votes3
answers151
viewsCheck if URL contains number
I would like to check if the current URL contains numbers after the #. I don’t need to know if it contains a specific number or a quantity of numbers, I just need to know if there is any number…
-
6
votes1
answer525
viewsHow to place a Video inside a CSS Text? Is it possible to place a Video as a text background?
I saw this effect and I’m trying to put in a project, but I don’t know how to put a Video inside Text, I only got with images... Here I put an image as text background, but how do I put a video like…
-
6
votes1
answer320
viewsRecursion in R error
I have the following recursive function: tamanho <- function(v){ if (is.null(v)){ return(0) } i <- tamanho(v[-1])+1 return(i) } I’m using Rstudio, and when I call the function with this…
-
6
votes2
answers91
viewsWhat is the Hanging-punctuation property for and how?
I know the property hanging-punctuation provides a control over typography on the web, but I’m not sure what this control is and how it works. I also saw that the property supports some values, such…
cssasked 6 years ago João Pedro Schmitz 2,974 -
6
votes1
answer499
viewsR - download CVM data via POST (package httr) method (new - continue)
Good afternoon guys!! I would like to have asked this question there in this post, which I reference in the title, however it was not possible. What happens is this: I am using, for the same…