Most voted questions
150,413 questions
Sort by count of
-
6
votes1
answer2378
viewsWhat are the differences in performance when using querys with EF vs ADO
What is the difference in performance when using the basic query methods SqlQuery<TElement> and ExecuteSqlCommand of Entityframework in relation to directly using the ADO.NET? If there is…
-
6
votes1
answer150
viewsIf is executed even with the condition being false
I have an excerpt from a function with the following code: printf("caminho: %d\n", t); printf("min: %d\n", min); if( min >= t && t != -1); { printf("oi\n"); min = t; printf("min:…
casked 8 years, 6 months ago vitor martins 73 -
6
votes2
answers9189
viewsReturn today’s date in C# in specific format
My way out has to be "2015-02-01" I tried to get DateTime.Now.ToString("yyyy-m-d"), but she doesn’t 0 between days and months.
-
6
votes1
answer1128
viewsWhy put . jsp file in WEB-INF directory?
Taking Maven as an example, when starting a new web project, the structure is equal/similar to this: Meu Projeto |- src |- main |- java |- resources |- webapp |- WEB-INF Where, in the directory…
-
6
votes2
answers536
viewsMake an HTML checklist
Hello, I wonder if it is possible to make a checklist, as the image below, only with css (please disregard blue lines): i found the Nth-Child css function, but I was only able to do this:…
-
6
votes1
answer1122
viewsHow do I use GPS Location in my WEB application?
I’m creating an application and I found a barrier, this application is for restaurants to monitor deliveries and in the same way the user, also do it, I was doing by way of checkup’s whenever he…
-
6
votes2
answers159
viewsBetter applicability to make an interface functional
Starting from java 8, for an interface to become functional, it needs to have only one right method ? However we have the @Functionface annotation, which explicitly defines that this interface is…
-
6
votes6
answers37862
viewsHow to remove characters from a string?
The program must read two strings and remove from the first string all the letters that occur in the second string. Example: Be the strings "chocolate" and "hollow", then the program should print…
-
6
votes1
answer2259
viewsUse of the Consumer interface
What is the advantage of using the interface Consummer java-like? Example: I have a class UsuarioConsummer implementing the interface Consummer and calls his way acept, follow suit: public class…
-
6
votes3
answers434
viewsIs it correct to omit the html start tag in HTML5?
Should we or should we not omit the start tag html in an HTML5 document? Several developers ignore its use. Thank you! <!DOCTYPE html> <head> <title>...</title> </head>…
html5asked 8 years, 7 months ago Ingrid Farabulini 1,002 -
6
votes1
answer1251
viewsHow to filter separate dates by day , month and year in Mysql
Hello, I have a table "Meetings" in Mysql with the following structure: id:Int(11), subject:String(40), day:String(2), mes:String(2), year:String(4), active:String(2) except in the field day the day…
-
6
votes1
answer666
viewsPassing optional arguments in Java
I’m trying to learn how to run the class SwingWorker<T,V>, I’ve even done another question regarding one of its methods. Looking at the source code of this class, I found the method publish()…
-
6
votes1
answer23089
viewsHow to pass excel data to Mysql?
First, I have a newsletter system that I modified for email marketing, it’s all in PHP (obvious) and first, I add the emails manually through a part of the site add.php but there are over 3000…
-
6
votes3
answers1779
viewsHow not to repeat values in a Python list?
If I create two lists, and then add the two, I create a third that owns all the items of the previous two: >>>a = [1, 2, 3] >>>b = [3, 4, 5] >>>c = a + b >>>print…
-
6
votes0
answers1020
viewsDigital Certificate Login ( E-CPF, E-CNPJ ) with Servlet / JSP
Hello. I’m looking to develop a login system similar to what government portals use ( E-CAC, NFE and the like ), where E-CNPJ is used to log in. I did the following: 1) I created and signed an RSA…
-
6
votes1
answer9280
viewsImport, analyze and extract data from a PHP CSV
How can I import a csv file with PHP and take the data from a specific column and write that data to the database? You can do this analysis and only record specific data (like a column, or row)?…
-
6
votes1
answer787
viewsHow to find out if a directory is empty by the terminal?
I sent some files, via ftp, to put my application into production. Due to some error occurred in the application, I realized that some files were missing. When I gave a ls I realized that some…
-
6
votes2
answers45970
viewsLimit text display by number of CSS characters
Friends, usually the overflow: hidden; has a text limit by the size of the DIV from it, say 105 pixels... example: <div style="overflow: hidden; width:105px; border:1px; white-space:nowrap;">…
-
6
votes3
answers1172
viewsHow to make change in order sequence with SQL statement
I have a form where I display to the user some phases that a particular contract needs to respect, follows image of the said form: I’ve already done the update that makes the order change and is…
-
6
votes2
answers985
viewsHow to make an INNER JOIN not repeat information
I got the following SQL INNER JOIN: $sqlxml = " SELECT clientes.id, clientes.nome, clientes.status, clientes.cliente, clientes.tipo, clientes.disponibilidade, imoveis.id, imoveis.cod,…
-
6
votes2
answers737
viewsConcatenate fields in a more performative way
I am concatenating the description lines of a record so that instead of having N records for a description it has only one. I can make it happen, but I wanted a more performative way, because I’m…
-
6
votes1
answer74
viewsIs there a difference in creating HTML elements in javascript?
There is a difference in the creation of HTML elements in javascript ? Example: Like String: document.body.innerHTML += '<h1>foo</h1>'; And with createelement: var elemento_pai =…
-
6
votes2
answers289
viewsNumbers with zero start in Javascript
I’m having a confusing problem, where I send a number 000214 by AJAX to a controller PHP, and there he arrives with result 140. I gave a simple console.log(000214); and the result in JS itself was…
-
6
votes0
answers1142
viewsSigning Nfs-e in C# generates error Poorly formed Reference Element
out of nowhere my code in C# stopped signing the Nfs-e of Curitiba. In the code line below, gives the error: signedXml.ComputeSignature(); Errro Elemento Reference mal formado Does anyone know if it…
-
6
votes2
answers334
viewsHow to protect an Assembly from decompilation?
Nowadays there are many water heaters and recompilers for . NET Framework, the guy goes there, makes an application and everyone who has a decompiler (for example IL Spy) can go there, select the…
.net security-guard cryptography decompilation .net-assemblyasked 8 years, 7 months ago CypherPotato 9,292 -
6
votes2
answers86
viewsIs it safe to use Javascript’s String.Concat method in current browsers?
I was observing that in Javascript the object String has a method called concat. Serves to do the same thing as the operator + ago. "Meu nome é " + nome Already with concat would look like this:…
-
6
votes2
answers946
viewsAJAX Javascript Pure Asynchronous
I am trying to recover a data coming from Ajax to use in another function, but I am not succeeding. In jQuery I do this using a parameter called async: false. But in pure JS I am not able to do. The…
-
6
votes1
answer947
views -
6
votes3
answers62099
viewszero to left (LPAD) in Sql Server
How is done in Sqlserver so that the result comes with zero left ? in mysql would look like this: select lpad(mes,2,0 ) as 'mes', ano from tab_qualquer; How does something equivalent in Sql Server?…
sql-serverasked 8 years, 7 months ago SneepS NinjA 7,691 -
6
votes2
answers7668
viewsWhat does the @Component annotation do?
What Spring actually does when we write it down @Component in a class? How does it work "underneath the scenes"
-
6
votes3
answers1884
viewsJavascript timer
Well what I wanted was to make a 60-second timer. which would work as follows: Count 60 seconds down 60.59.58, 57, etc... and when you hit 0, pause 0 for 3 seconds, and start all over again 60.59,…
javascriptasked 8 years, 7 months ago Gonçalo 2,525 -
6
votes3
answers1020
viewsHow to send data from a form received from an ng-repeat with Angularjs
Hello, folks maybe my question is not enlightening, but I’ll try to enlighten here. I have a code in Angularjs and html, if it is a form, which receives the data in array/json format, and populates…
-
6
votes2
answers2640
viewsSum days on input date
I have a input date type, I would like to add to it 7 days and put this value in another input also date type, I tried to do so: <script> $('#txtSolicitacao').on('blur', function(){ data =…
-
6
votes1
answer1571
viewsComposer - What is it and what is it for?
I have seen several times in projects the archive composer.json! I’d like to know what it is and what it’s used for?
-
6
votes1
answer477
viewsTime difference between stdio. h and iostream
I made two codes so that an online Judge corrected. They are essentially the same. But the with stdio. h is accepted and the with the iostream is not, because it exceeds the time limit. Why this…
-
6
votes2
answers436
viewsDelegates and methods
When to use delegates? Being that a delegate points to a method, it is not the same thing as creating a normal method? What’s the difference and when to use and why to use? It’s better? Is worse?…
-
6
votes1
answer246
viewsHow to prove that the algorithm solution is optimal?
I need to argue that the solution found after running Prim’s Greedy Algorithm is great. But I don’t know how, someone could help?
-
6
votes1
answer392
viewsAlign text horizontally to image
I’m trying to align the text of some products in relation to image, but I’m not succeeding in what I’m doing, what I have is this: <div class="col-md-3 portfolio-item"> <a…
-
6
votes1
answer493
viewsHow to recover the page HTML generated with Angularjs via C# ?
How to recover HTML code from a page that uses Angularjs to process some information and generate a graph? I was able to easily recover the HTML code using Webrequest as demonstrated in the example…
-
6
votes2
answers1032
viewsGenerate sequential java number with Hibernate
Is there any way using Hibernate generate a custom number to be the identification number of a particular record? I have a system that stores care performed to a patient, every time a new care is…
-
6
votes3
answers488
viewsWhat is the 'do' statement’s function?
What the 'do' alone waits and makes? do ... end
-
6
votes1
answer298
viewsWhat are the differences between Friend and Static classes/members?
What are the differences between classes and member variables friend and static within the definition of a class, including its applications. I only know which class members static belong to the…
-
6
votes2
answers9159
viewsRead multiple numbers on the same line with raw_input
I need to write a program that reads values and then use them to calculate areas of different geometric figures. My problem is: how to enter the data on the same line? Example: 3.0 4.0 2.0 followed…
pythonasked 8 years, 8 months ago Guilherme Santana De Souza 743 -
6
votes1
answer164
viewsHow to move characters with mouse?
I am developing a hobby (browser game), where the user will guide his plane through the scenery! I have 2 div, at first I create a rectangle where when moving the mouse I capture the axis X and Y, I…
-
6
votes1
answer304
viewsHow to simulate a logged-in user in an application with Demoiselle 2.4.2?
I have an app Demoiselle 2.4.2 already in operation that needs to use the SecurityContext to obtain the User currently logged in and make some decisions. The time now is to write the unit tests…
-
6
votes1
answer80
viewsMax of a numeric field returning NA
I’m starting to learn R and I came across a situation I don’t understand. I downloaded the data from ENEM 2014 (CSV file) and read using: dados_enem <- read.csv(file="MICRODADOS_ENEM_2014.csv",…
-
6
votes2
answers1377
viewsHow to identify a USB device?
I have two types of devices (A and B) that communicate serial through USB and can be connected to the PC using linux. Is there a way to identify which device is connected without having to talk to…
-
6
votes2
answers350
viewsSolve a bug in the middle of a sprint?
It is valid that the user has a bug that prevents their work from continuing to be reported for development and wants to commit to the new bug and stop the development of the platform? When it is…
scrumasked 8 years, 8 months ago Guilherme Lima 3,129 -
6
votes1
answer3474
viewsFunctional requirements, non-functional requirements and domain requirements, what are the differences between them?
Functional requirements in my understanding are those that describe what the system will do, ie the main functionalities of a system (I do not know if it is the best definition). See the example of…
software-engineeringasked 8 years, 8 months ago gato 22,329 -
6
votes1
answer2200
viewsWhat is the maximum amount an array can support in PHP?
In PHP I often work a lot with frameworks. Generally, they bring the results of the query to a database in a array. In some cases, when the number of data from a table or a relationship reaches a…