Most voted questions
150,413 questions
Sort by count of
-
4
votes3
answers96
viewsHow to hide a text being bigger than my Div
The purpose of the exercise is focused on study , I’m creating a blog that has articles on dubbing and one of the objectives is to hide the text, which is much bigger than my Div, so when clicking…
-
4
votes3
answers5001
viewsHover effect on JS
I have a problem that is the following: I want that when the user hovers the mouse on a given image another location wins a class so that I can style it, they could help me? I’m trying this way: var…
-
4
votes3
answers1657
viewsConvert string to blob and save to bank
I’m developing a mobile application that has a form where the user can attach an image, the image is being sent as string via Rest to the server and will be saved in the blob database, however, I’m…
-
4
votes1
answer166
viewsIf I have two servers (application and database) with different time zones, which one is better to use as a base?
I am working with the Mysql server of a hosting, I can not change the time zone of the same, I mean it uses the "Mountain Standard time (MST)", on the other hand, I am using the ASP.NET server and I…
-
4
votes2
answers1000
viewsGit log command for all commits of a specific file
You can check git log for all commits of a specific file. I committed to a foo.txt file and now it no longer shows in git history. my command: git log foo.txt I want to search the all commits…
gitasked 6 years, 9 months ago Julio Henrique 4,352 -
4
votes3
answers2732
viewsReturn hours and minutes apart with PHP
I have this simple file: php test. <?php $date1='2018-01-09 16:14:01'; $date2='2018-01-09 17:30:04'; $dateS1 = new \DateTime($date1); $dateS2 = new \DateTime($date2); $dateDiff =…
-
4
votes1
answer84
viewsHow to control migrations in two distinct contexts?
I have two contexts and I would like to know how to activate each of them. For example Add-Migration Contexto 1, Add-Migration 2 How can I add new ones Migrations for each context?…
-
4
votes2
answers1807
viewsWhat is the use of cache = false in ajax?
What exactly does the Ajax code when I write: cache: false, in an ajax request?
-
4
votes1
answer176
viewsFilter in dplyr constrained by the maximum variable value of db Gapminder
I’m making the filter on df gapminder, generating a df empty when I use the variable gdpPercap: library(gapminder) # versão 0.2.0 library(dplyr) # versão 0.7.2 gapminder %>% filter(year == 2007,…
rasked 6 years, 9 months ago Mario Bastos 41 -
4
votes2
answers504
views -
4
votes1
answer229
viewsWhat does this mean: ". append('<scr'+'ipt .. "?
Yesterday this question was asked: Do something after an external script is fully loaded via jQuery append. Looking at the question and its answer, the following piece of code caught my attention:…
javascriptasked 6 years, 9 months ago NoobSaibot 9,554 -
4
votes1
answer229
viewsSpeech Recognition does not recognize special characters
I tried to use result.replace("arroba", "@") javascript to change the word "arroba" to "@" as it is in the code below, but it didn’t work. I want to do this with point, comma, underline, underline…
-
4
votes1
answer47
viewsREGEX of HH:MM:SS may be negative
I’m working with HH:MM:SS and I have this REGEX ^([0-1]?\\d{0,4})(?::([0-5]?\\d))?(?::([0-5]?\\d))?$ I’m using the library Inputmask but I would like to work with negative hours example: Effort:…
regexasked 6 years, 10 months ago Fernando Souza 1,887 -
4
votes1
answer199
viewsHow to save a Filefield template using a preexisting file?
I am importing a set of preexisting files to Django, and would like to refer them to my templates (which they use FileField or ImageField). For example, one of my models is like this: class…
-
4
votes1
answer1221
viewsTake values from a table and place in an HTML graph
I made a database and this is feeding a table. I wonder how it would be to take such table data and plot on a graph. In the code below is already the graph with fictitious values. <! DOCTYPE html…
-
4
votes1
answer699
viewsHow do I create desktop notifications in Chrome extensions?
How to create Desktop notifications to use in web-extensions (Firefox, Chrome and etc) and also would like to know if there is any difference between Chrome, Opera and Firefox? Note: This is a…
javascript google-chrome-extension firefox-extensionasked 6 years, 10 months ago Guilherme Nascimento 98,651 -
4
votes2
answers625
viewsCalculate the factorial by reference passage
I’m studying pointers I’m trying to calculate a factorial of a number, only the result comes out a totally different value than expected. Here is my code #include<stdio.h>…
-
4
votes1
answer255
viewsWhat is the need for an interface to have abstract methods?
We know that in an interface the methods do not have implementation, only signature, ie only the definition of their methods without the body, we conclude then that all are already methods Abstract,…
-
4
votes2
answers88
viewsWhat is the Creation proxy for in the Entity framework?
What is the purpose of disabling this feature?
-
4
votes1
answer334
viewsHow to plot a plot with ggplot
I have the following date.: sample OPN1SW OPN1MW OPN1LW RHO OPN3 OPN4 OPN5 1: GTEX-11WQK-1026-SM-5EQLX 2.365 0.0000 0 4.138 86.322 40.199 12.533 2: GTEX-XQ3S-1426-SM-4BOPR 22.317 0.0000 0 30.693…
-
4
votes1
answer129
viewsHow to place a domino piece to the left of 6|6 in C?
I’m having trouble with the domino game I created. I can add the pieces to the right, but when I try to add to the left it does not perform as intended. Here is an example: Move 1 -> Table 6|6…
-
4
votes1
answer2577
viewsOpen html page in modal
I have the following html pages: client record, cadastral and contact record. In my client record I have two Buttons: id="btnCadastroEndereco" and id="btnCadastroContato". When I click on these…
-
4
votes1
answer241
viewsDraw lines from a specific point and angle
I’m looking for a way to draw a line from a point and an angulation (azimuth) and then construct a polygon with the intersection of these lines. base <- tibble::data_frame( id = c(1, 2, 3), x =…
-
4
votes3
answers2090
viewsHow to add Count output from different tables in SQL Server?
How to add up the result of Count of different tables in SQL Server? Example: Table WORKS has 755614 Records SELECT count(*) from OBRAS; Table TITLES has 85106 Records SELECT count(*) from TITULOS;…
-
4
votes2
answers255
viewsIs it possible to use ng-model with contenteditable?
I need to use a divwith the attribute contenteditable and the result of that precise value put in a ng-model. I did so, but it seems not to be working as expected: <div contenteditable…
-
4
votes2
answers263
views -
4
votes1
answer1351
viewsHow to discover the file extension through the Bytes array?
I wonder if it is possible to get a get on the file extension through the Byte Array. Because I download a file from the server, and it can be both . JPEG and . EPS, however I am not able to know…
-
4
votes1
answer1142
viewsHow to run a script on a page without having to open it in a browser tab or window?
I need to make a web-extension (add-on) that can handle DOM elements, existing events and execute scripts in the context of a page of a website. But I need this to happen in background without the…
-
4
votes2
answers1599
viewsWhat is Github really for?
I see many people talking about it, but I don’t know the real importance of Github.
githubasked 6 years, 10 months ago junior silva 43 -
4
votes2
answers173
viewsTransform text to text on Hover!
Good, I have a paragraph and I want him to have it font-style: italic; when I pass the mouse over, which properties should I :hover?! I wish it was a 0.3-second transition…
-
4
votes1
answer138
viewsChange "copy" to "copied" in Clipboard.js after click
I am trying to make the Clipboard.js change the copy button from "COPY" to "COPIED" after clicking without losing the function it has that selects the target code. Would anyone know how to do? !…
-
4
votes2
answers167
viewsDeserialize Json string[] for string[]
I have the following JSON: {"TicketID":["116","114","112","108","107","104","102"]} When I try to deserialize string[] get the bug: Server Error in Application '/'. No constructor without parameters…
-
4
votes1
answer97
viewsHow is the conversion from String to Float done in Javascript Core?
I’ve always been curious to know how the conversion really works string for float internally in the javascript, so I would like to receive a full and detailed answer explaining what javascript does…
-
4
votes1
answer1457
viewsHow to Capture Span Content by Javascript
On Whatsapp Web, each message sent is stored in a span. I need to assign the value of the last message sent by the caller to a variable, as I do with the contents of the box "Send a message": var…
-
4
votes2
answers489
viewsASP.NET Core Isdevelopment
When creating a project with the dotnet cli dotnet new Razor -o Razorpagescontacts How do I change the environment variable to developer mode when running the application using dotnet run. Since in…
-
4
votes2
answers280
viewsWhat’s the difference between creating a string with quotes and square brackets?
I’ve always created the strings with the quotation marks, like this: local minhaString = "Eu sou uma string" I downloaded a source to give a study in the language and I came across the following way…
-
4
votes1
answer792
viewsDelete php session when closing browser
I’m using Codeigniter to develop a project that involves a restricted area. I am using session to store user data that is logged in. I need this information to be deleted when closing the browser,…
-
4
votes1
answer92
viewsFunctions R - Strange Character
I created a function in the R and detected a strange character appearing on the return of the function. Can you explain to me? Here is the function: funcao_categorica <- function(xx){ rr <-…
-
4
votes2
answers150
viewsReal-time account for table generated with jQuery
I’m having trouble leaving the quantity * price multiplication in a dynamically created table. Better than explaining, it’s showing. Follow the code in jsfiddle: https://jsfiddle.net/koew1s75/ HTML…
-
4
votes1
answer164
viewsRegular expressions, difference between [-] and -
I am working with some regular expressions and I came across the following case: string pattern = @"^.{2,9}[-].{4}[-].{4}$"; string pattern = @"^.{2,9}-.{4}-.{4}$"; I would like to understand, what…
regexasked 6 years, 10 months ago Thomas Erich Pimentel 3,059 -
4
votes1
answer272
viewsHow to create default filters with Entity framework 6?
I have an Excluded field in several classes and when I will make my select I always have to impose this condition in the query, is there any way to make the filter implicitly? recalling that it is…
-
4
votes2
answers775
viewsEnable select option with javascript/jquery
I am developing a software, but I can not enable a select. The intention is when check the select enable automatically. How do I do it? function habilitarSofa() { var radios =…
-
4
votes0
answers36
viewsPassing -Metric compare result to variable - IMAGEMAGICK image
I’m comparing two images using Imagemagick on the LINUX terminal. When I type in the Terminal line this (below) it returns a value to me: $ compare -metric mae 0.jpg 2.jpg null: But I can’t put this…
-
4
votes2
answers1428
viewsOpen a new Activity from within a Fragment
How do I exit the Fragment screen (extends Fragment) and go to a normal activity (extends AppCompatActivity)? Either way, even using a button, I can’t. It never works. public class Teste extends…
-
4
votes1
answer1788
viewsEntity Framework 7, Insert or Update
I’ve been looking for a method to check if an object exists in the base, if it exists, run a update, if there is no, insert. I couldn’t find anything anywhere that would suit me, so I made the…
-
4
votes2
answers1249
viewsShortening the names of people
I need a script that shortens people’s names. For example: Name: Fernando José Silva Machado With the script he cuts the surnames and leaves only the initials and the last surname It would look like…
phpasked 6 years, 10 months ago Nicholas Ruschel Krüger 321 -
4
votes3
answers1821
viewsBasic Doubt Javascript: How to change an object attribute?
I ended up facing a slightly different situation and I was in doubt. I would like to know the following, I have an array of objects and in each object I have two attributes in it {valor: "texto",…
javascriptasked 6 years, 10 months ago Caio Morceli 41 -
4
votes2
answers501
viewsHow do I determine the search path for Controllers and Views?
I’m studying ASP.NET Core MVC on a macOS. When I create a new project, the IDE automatically arrow my Views into a folder called "Home". If I change the name of that folder or change the folder…
-
4
votes5
answers3128
viewsHow to get Firebase data and insert it into a Textview?
I need to set the client data in a Textview. I tried to set the email, but it didn’t work because the return is null. public class PerfilActivity extends AppCompatActivity { private TextView…
-
4
votes1
answer708
viewsWhat does Nodo mean?
I am studying stacks and queues, below I was given a code to analyze. The code first creates queue then queues the values. After this, it removes each of the values from the queue and warns whether…