Most voted questions
150,413 questions
Sort by count of
-
4
votes2
answers2352
viewsReset datetime time with SQL
Today, man SELECT returns the following date: 2017-11-16 10:37:16.000 I’d like you to return 2017-11-16 00:00:00.000, can help me with this formatting?…
-
4
votes2
answers1420
viewsHow to prevent the user from making changes to the input?
I have a input in a form, however it should not have its value changed: <input type="text" name="pais" value=""> How can I stop the value from being changed? <!DOCTYPE html> <html>…
-
4
votes1
answer309
viewsSaving values for all iterations in R
Hello, I am making a code in R to calculate the various values of a fuzzy code (using the package "Sets"). I made the logic for him to calculate three Fuzzy variables from the smallest to the…
rasked 6 years, 11 months ago Leonardo Grando 55 -
4
votes1
answer236
viewscom.google.firebase.database.Databaseexception
I looked for that mistake and I didn’t find it anywhere, just a few similar but not this: com.google.firebase.database.Databaseexception: Maps with non-string Keys are not supported Controller…
-
4
votes1
answer205
viewsRounded edge on Google Chrome iOS buttons
I recently updated my Macbook here and now all the buttons on my site are rounded. I even thought it was some CSS error, but no, entering my Windows computer is normal. Can anyone tell me what is…
-
4
votes1
answer183
viewsDiv height is greater than image height. Why?
I have the following pure HTML, no CSS <div> <img src="_img/_banner/banner1.jpg" /> </div> The image banner1.jpg possesses 300px of height and to div no dimensions have been…
-
4
votes1
answer350
viewsHow to initialize an array in this constructor?
I’m trying to initialize a array with 0, however the compiler is generating error, I know I can initialize as well: Constructor() : Value1(0), Value2(0), Initialized(false), vSh(false) { Name[100] =…
-
4
votes1
answer535
viewsWhat is an Over-posting attack?
I came across the term Over-posting while following Microsoft’s guide to creating ASP.NET Core applications. I had made a question regarding the use of attributes in the signature of a method, which…
-
4
votes1
answer2391
viewsBackground-color and transparent color text
need to apply a color: transparent in an element that has the background-color: #fff. I’ve tried applying one opacity: 0 but it applies to the whole element, including the background. my current…
-
4
votes2
answers8557
viewsHow to run the INSERT script with one million lines in SSMS?
I’m trying to run a script on SQL Server Management Studio (SSMS) with more than 1 million records and the following error occurs: Message 10738, Level 15, State 1, Line 1032 The number of line…
sql-serverasked 6 years, 11 months ago hard123 2,329 -
4
votes0
answers40
viewsDifference in Javascript array declaration
What is the difference between these two forms? var a = []; var a = new Array();
-
4
votes3
answers1476
viewsIs it necessary to create a primary key with auto increment?
When I create a table that already has a field with an index unique, that will be referenced by other tables, can I leave it as primary key? Or is it good practice to create another field, with auto…
-
4
votes1
answer346
viewsWhat is a YAML file and when should we use it?
What is a YAML file for and when it is appropriate to create it in a project?
-
4
votes1
answer145
viewsTrigger without replicating data - SQL Server 2012
Guys, I have a Trigger in the FRM_46 table that would replicate the data right after the Insert or update to the FRM_31 table, however, it is not replicating, I already analyzed and made the tests,…
-
4
votes5
answers1186
viewsHow to use the reduce (reduce) operation on objects?
In Javascript, when I need to do a reduction operation, I use the method Array.reduce. Thus: var valores = [1, 2, 3, 4, 5, 1000]; var resultado = valores.reduce(function (soma, atual) { return soma…
-
4
votes1
answer149
viewsCustomers do not communicate in the same multiplayer game in Java
I’m trying to make a simple tank multiplayer game by implementing chat. The game and the chat are all ok! However, I can’t get 2 customers to view the same object Arena. In this case, each customer…
-
4
votes3
answers9942
viewsRemove non-numeric characters from a Python string
Let’s say, I have: a = "0LÁM@UN@D0 I would like something to remove all letters (A-Z) and other characters, I just want to get the numbers, in the example, would be only 0 and 0 b = "A1B2C3"…
-
4
votes3
answers1628
viewsConvert seconds into days
I have a very simple question: How to convert seconds into days? tried using: <?php echo date('d', $userstats['OnlineTime']); ?> but only goes up to 31 days. <?php $userstats_a =…
-
4
votes1
answer5406
viewsWhat’s the difference between cshtml and html
Is there any difference between CSHTML and HTML, mainly in security, performance and application? There is some loss when using HTML on a project ASP MVC, and what are the benefits of using the…
-
4
votes2
answers923
viewsIs it possible to use native query + spring date for paging?
I need to make a pagination using dynamic querys because I have to do many joins, I’m trying to make only one select * to test the use of native query + spring data, but the error message is as…
-
4
votes2
answers142
viewsDelphi does not write to txt file
The code below creates the txt file but does not write to it. Which may be? procedure TForm1.Button4Click(Sender: TObject); var arq: TextFile; begin qr.Active:= true; qr.First; try AssignFile(arq,…
delphiasked 6 years, 11 months ago Italo Rodrigo 4,344 -
4
votes1
answer320
viewsHow to get the Commandtext from a Iqueryable?
I’m trying to catch the sql generated by IQueryable, but is returning: SELECT NULL AS [EMPTY] I expected something like: SELECT i FROM lista WHERE i > 20; Like I’m doing: IDbConnection conn = new…
-
4
votes1
answer22532
viewsHow to open link in a new tab?
Follow the code below that I’m having difficulty using target="_Blank" how could I solve this. <div class="opt" onCLick="location.href='#';">Txt</div> THANK YOU VERY MUCH…
htmlasked 6 years, 11 months ago Luccas Cerqueira 95 -
4
votes2
answers91
viewsChecking whether data persisted successfully
What would be the best way to get one bool indicating whether the method Add() and then SaveChanges() was successfully performed? Am I trying like this? Is that right? public bool…
-
4
votes1
answer406
viewsSelf-signed Certificate Security ( Self-signed Certificate)
I am making a Java Client-Server system that will manage computers in a room, the scenario is as follows: A computer, the server, waits for connections, when an action is made ( Block Screen ) this…
-
4
votes1
answer758
viewsGrab URL table from R
I need to do it here: library(xml) URL <- "http://globoesporte.globo.com/futebol/brasileirao-serie-a/" tabela1 <- readHTMLTable(URL, which = 1, colClasses = ) tabela1$V3 <- NULL…
-
4
votes1
answer345
viewsHow to alert the form correctly?
I have a contact form, so when filled out it is not displaying the failed send alert or successfully sent, it is redirecting to a search page, here my script: <form class="form-inline"…
-
4
votes2
answers1156
viewsslideToggle(); open and close by clicking on the same link, if you click on another just change content of the div
I need to create an effect similar to that site here when you click on the product opens a div with the Infos of it then click on it again that div closes, but if I click on another product and the…
-
4
votes2
answers757
viewsAccess the child components of a Tobject
Ohayou Developers, I’d like to know how you access the children of an object, for example. I have a Trectangle and a Tlabel with your child. I would need to access Tlabel to change, for example,…
-
4
votes1
answer178
viewsError deploying application in Glassfish: org.objectweb.asm.ClassReader. <init> -> java.lang.Arrayindexoutofboundsexception
Questions Why Glassfish 3.1.2.2 runs ASM and this ASM fails to load the classes of my dependency? How do I get my application up? Why doesn’t it happen on other servers than with Glassfish 3.1.2?…
glassfishasked 6 years, 11 months ago Jefferson Quesado 22,370 -
4
votes1
answer298
viewsReading file in C
I use the following structure to read each line of a file: fclose(arq); // fecha o arquivo para em seguida abri-lo em modo leitura apenas arq = fopen(url, "r"); if(arq == NULL) { printf("Erro, nao…
-
4
votes1
answer39
viewsCalculo via Javascript
I’m having trouble making a price calculation for various products on the Front-end. I have a array of products and I need to add them through a function. Example: produto[0] =…
javascriptasked 6 years, 12 months ago Gabriel 43 -
4
votes1
answer532
viewsHow to get the hostname of the client using c#?
I need to save in which machine the user performed certain action, for this I was using the following excerpt: string maquina = Dns.GetHostName(); However, little did I know that this returns me the…
-
4
votes2
answers52
viewsKeep the initial class of the element
I have a script that does the toggle in the icon, interspersed when the element is clicked, my intention is when the second or the others icons were clicked, the elements remained with the class…
-
4
votes0
answers473
viewsTwo different bases with spring data jpa
Good night Would anyone have an example of Spring Data Jpa with two different bases? Ex : Postgres and Sqlserver in the same application? I have a system I need to consult a legacy base. Searching I…
asked 6 years, 12 months ago Marcelo 901 -
4
votes1
answer1440
viewsArrange bars of a bar graph in R
I’m filling the following data into the R to generate a bar chart: structure(c(5483L, 28034L, 7995L, 5199L, 6785L, 7452L, 7692L), .Dim = 7L, .Dimnames = structure(list(c("dom", "qua", "qui", "sáb",…
-
4
votes1
answer770
viewsHow to remove a page from Ionic 2 / 3 navigation
In a hybrid application with Ionic 3 I have 3 pages that are part of the process of buying a product. The process is as follows: The user is in the cart and click on "Choose payment method" In case…
-
4
votes2
answers326
viewsHow to align a mosaic with CSS?
I have the following code: .exemplo { width: 800px; } img { width:100%; height: 100%; } .home-videos { /*@extend .col-md-3;*/ width: 200px; height: 150px; padding: 5px !important; box-sizing:…
-
4
votes1
answer1532
viewsCopy and paste cell when changed
I’m starting to use VBA with the office package, as I still know little I’m having difficulties to get this functionality. I was trying to do something simple and I needed help to understand how it…
-
4
votes1
answer369
viewsHow do I relate tables with json returns to php?
Please help, I’m new to programming and I need to do a table relationship Mysql, with return in JSON, I tried the following code, but it is in error. I already searched a lot on Google and Youtube,…
-
4
votes1
answer1406
viewsDoubt about System.currentTimeMillis()
I was discussing with a friend now little about the origin of the number that results from this method. Where does it come from? It has been counted since when? It reset?
-
4
votes2
answers1296
viewsIs it possible to add more than one item to a list at once?
I would like to know if it is possible to add more than one element to a list, for example: a=[] a.append('abóbora', 'banana', 'maçã') or it will be necessary to use three lines, for example: a=[]…
-
4
votes1
answer84
viewsWhat is the Chainability?
What exactly is Chainability ? It is applicable in languages other than Javascript ? I researched a little, but the term washes me for unrelated articles, I believe that does not leave what exactly…
javascriptasked 6 years, 12 months ago Luis Souza 640 -
4
votes2
answers880
viewsAdjustments to the React.JS CSS
I’m developing a simple system in React and I’m having difficulties in the visual part, for example for mobile: I need to leave my system this way: Is that way: The web system needs to be like this:…
-
4
votes2
answers373
viewsConcatenate variable into array
I have to requisition one json for a api, but I have to redeem data from a form to complement this json, the problem is that when rescuing the data into a variable I cannot put it in the correct way…
-
4
votes2
answers1155
viewsclose div by clicking outside it
I have a div with a botão inside to close it. At first, she’s with display: none, but to the click on on one button on another div, she turns into display: block. I need to find a way to when she is…
jqueryasked 6 years, 12 months ago Carlos Rocha 1 -
4
votes1
answer251
viewsGeneric and Comparable in Java
I have a question I can’t get answered, if anyone can give me a plausible explanation I’d be grateful. Assuming I have two classes: public class Figura implements Comparable<Figura> { private…
-
4
votes2
answers434
viewsJavascript - React JS
How do I take a part of a JSON, put it in a variable and then throw that variable in a "Widget" of my layout? Example: (http://ip.jsontest.com/) I want to take the value of "ip", and put in my…
-
4
votes2
answers838
viewsBasic code error in Kivy(Python)
I made a very simple code using Kivy, but give this error that shows in the image below: The code is as follows:: import kivy kivy.require('1.0.6') from kivy.app import App from kivy.uix.button…
-
4
votes2
answers85
viewshelp here div and html functions
I have this code, when I pass the mouse over the div it moves, but I wanted it to happen when I hit the button: <head> <style> .square{width:100px ;height:100px ;background:red…