Most voted questions
150,413 questions
Sort by count of
-
14
votes3
answers20505
viewsHow to resolve the error - The superclass "javax.servlet.http.Httpservlet" was not found on the Java Build Path
I’m using Eclipse Mars.1 for web development, I received this error when including a file JSP, The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path. I also have…
-
14
votes4
answers3299
viewsTyping the return in PHP 7. What are the advantages?
I was giving a test in PHP 7 and I checked that the same now accepts to define which type of data will be returned. Here are some tests: Defining the instance to be returned function test_object():…
-
14
votes2
answers36430
viewsUpdate with Inner Join
If I make a consult like update using the clause Inner Join, the update will affect all fields that satisfy the condition imposed on Inner Join or just the first field?…
-
14
votes2
answers329
viewsDomain-Driven Design and Requirements Survey
When we use Domain-Driven Design an important part of the development process is to contact business experts to have a good understanding of the domain in question. This can be done, for example,…
oop software-architecture ddd software-project requirementsasked 9 years, 4 months ago SomeDeveloper 18,074 -
14
votes3
answers823
viewsCan I have Javascript write PHP?
I can do the javascript write down php? Related: I can write in Javascript inside PHP? I can write ajax and javascript together?…
-
14
votes3
answers261
viewsWhat is the advantage of using the Set<> method?
What is the advantage or difference in using the method Set<> and I can do the same thing without him as in Alternative 2? Alternative 1 var aluno = contexto.Alunos.First(x => x.Id ==…
-
14
votes1
answer2472
viewsWhat is spl_autoloader_register in PHP?
What is the role of the spl_autoloader_register, and in which possible scenarios this function could be included?
-
14
votes3
answers4398
viewsHow to force load JS and CSS files with each new published version?
Every time I publish a new version of my web application (a multienterprise system) that has changes in JS and CSS files, some clients complain of errors and I end up finding that is the cache of…
-
14
votes2
answers3574
viewsWhy is set theory so important to computation?
For computer theory, formal languages among other areas as well as for programming (development) set theory is always present, I know that mathematics is strongly linked to computation, but why do…
-
14
votes1
answer276
viewsWhy is using String in a switch block more efficient than in an if-Else block?
According to the java documentation: The Java Compiler generates generally more Efficient bytecode from switch statements that use String Objects than from chained if-then-Else statements. Not to…
-
14
votes2
answers306
views#Region is an antipattern or a Smell code?
The #region from Visual Studio he hides the codes, everyone says he’s bad, because he exists? It’s a antipattern or a code Smell?
-
14
votes4
answers7972
viewsHow can I make a copy of an array without reference?
I would like to know how to make a copy of an array without reference. Example of what I would like to do: var a = [1,2,3,4]; var b = a; a[0] = 3; b[0] = "nao me copie!" console.log(a[0]) //mostrar…
-
14
votes6
answers1655
viewsHeritage and Polymorphism
I have the class Funcionario. private String nome; private int idade; public function vender (Funcionario f) { ... } I have the subclasses Gerente and Professor that inherit (extend) from…
-
14
votes1
answer1047
viewsWhat is the cardinality between a request and the services included in it?
I have the class Solicitacao and the class Servicos. After insertion in the database I intend to recover in a query all the services associated with that request. For example, on a screen I insert…
-
14
votes1
answer12287
viewsConcurrent Programming x Parallel x Distributed
What are, what are the characteristics of each? Problems that each one proposes to solve? Main difference between them?
-
14
votes2
answers481
viewsWhat are the Types of Ioc?
Reading the Book "Pro Spring Security" by Carlo Scarioni of Editora Apress, 2013 edition, I came across the following text that left me confused about Ioc: The basic idea of DI, a type of Inversion…
-
14
votes6
answers2762
viewsHow to walk an Enum?
Here’s what I need to do: string and go through it and pick up each letter found and add with its corresponding value, type: a = 1, s = 19 and etc. Well, I made a enum with all the values of string,…
-
14
votes2
answers14814
viewsWhat is the difference between an XML file and an XSD file?
We know that these two types of files are correlated - .XSD e XML. What’s the difference between the two? What good is a .XML(Extensible Markup Language) and the .XSD? It is possible to work with an…
-
14
votes2
answers11938
viewsGet national holidays
I am making an application and would like to know if there is any way to get the national holidays. For example: Some Google Calendar API where I can get some XML to consume..
-
14
votes2
answers445
viewsE-mail marketing, theoretical
I want to remind you that this question is not a question of opinion, but based on experience. This question is just to get an idea of how to create an e-mail marketing, more detailed and specific…
emailingasked 9 years, 8 months ago Felipe Jorge 1,479 -
14
votes2
answers5459
viewsWhat are middleware in Nodejs?
What are middleware and how important it is for the Node platform?
-
14
votes1
answer2315
viewsReal time with PHP
I am developing a system and soon I will have to start the real-time interaction part (for notifications and chat). I am using jQuery, PHP and MySQL so far and I intend to continue with these…
-
14
votes1
answer1783
viewsHow to read binary file content in Javascript
How to read binary file content in Javascript?
-
14
votes4
answers36247
viewsList files from a Python folder
I’d like to know how I use the library os to list files from a given directory.
-
14
votes2
answers2102
viewsint and Integer - Java
I’m developing a project in Java and he’s in error, I’ve found it but I don’t understand it. public class Time{ private String nome; private ArrayList<Jogador> jogadores; private Integer gols;…
-
14
votes1
answer3265
viewsHow to program Artificial Intelligence with Minimax
My first question here, I recently started a "Jogo Da Velha" in Java and it is already ready, however I want to implement the decision-making capacity, or artificial intelligence. I’ve found that…
-
14
votes1
answer2902
viewsHow does google’s "Search for similar image" feature work?
I need to create a manager for a very large image bank, where in this manager besides the search for title and description, there should be a resource that searches for visually similar images. For…
-
14
votes2
answers288
views -
14
votes4
answers1112
viewsIs there an XHTML5 (XHTML + HTML5)?
XHTML is HTML with strict syntax (must be a valid XML). I can use it in conjunction with HTML5?
-
14
votes2
answers13123
viewsIdentify if set of coordinates is within a radius on Android
I want to delimit a radius from a central coordinate (the red marker in the figure) and, from a set of coordinates (the green markers), check that these are within the area bounded by this radius.…
android mysql google-maps google-maps-android-api-2asked 9 years, 10 months ago Geison Santos 4,428 -
14
votes3
answers3855
viewsDifferences between Git and Mercurial
What are the main differences, advantages and limitations of these two distributed version control systems? If anyone has practical experience in both (for example I only know the Mercurial more…
-
14
votes2
answers2001
viewsDoes Delphi own a garbage collector?
Does Delphi have an automatic garbage collector? How does it work. If not, what tools can do this?
delphi memory memory-management garbage-collector object-pascalasked 9 years, 10 months ago Giovani 2,875 -
14
votes1
answer3096
viewsHow to place authorship using MIT license
According to the MIT license I have to put the copyright and where? Or I do not need to put? MIT license The MIT License (MIT) Copyright (c) 2014-2015 almasaeed2010 Permission is hereby granted,…
-
14
votes1
answer11725
viewsCLSID component COM class factory recovery failure
I have developed an application on my pc that does the following: from an upload of a word document, it generates a new document with some basic information. To generate this information, it opens…
-
14
votes1
answer7883
viewsMap of Brazil - what is the best way to do it?
I have the following map: When the customer hovers the mouse over a state, it has to change color. I thought to do several Ivs, to assemble the map. Only this will generate a problem, as the Divs…
-
14
votes3
answers9801
viewsWhat’s the encoding for in Base64?
Virtually every self-respecting programming language has its implementation of encoding and Decoding from a string to a string in Base64 characters. But what is the Base64 itself for? Thank you!…
base64asked 9 years, 11 months ago Rodrigo Rigotti 12,139 -
14
votes2
answers3077
viewsWhy in class statements in Python should we extend Object?
In the Python, when we declare a class, we extend object. class StackExchange(object): def __init__(self): pass I do not know if I am mistaken, but I had the impression that in some versions this is…
-
14
votes2
answers1293
viewsXpath with Python
I have the following XML (simplified): <produto refid="cat01" idprod="tv01"> <marca>xxx</marca> <modelo>xxxx</modelo> <genero>xxx</genero> </produto>…
-
14
votes2
answers683
viewsWhat is the Declare keyword in PHP for?
After all, what is the key word for declare in PHP? I’ve seen explanations around, including in Manual for PHP, but still I did not find its functionality very clear. It can be useful for…
phpasked 9 years, 11 months ago Wallace Maxters 102,340 -
14
votes4
answers2074
viewsHow to get the format in hours when it exceeds 24?
I’m developing a PHP system where I need to get the total time of an audio file at some point. This time is saved in the database in seconds and also in the format of hours. The problem is that when…
-
14
votes2
answers511
viewsWhat are nesting guys for?
I know that C# supports nested types, that is, it is possible for me to declare one class within another. For example: public class A { // Propriedades e métodos da classe A public class B { //…
-
14
votes5
answers1721
viewsIs it possible to change the type of the variable in Java?
Is it possible to change the type of my variable in Java? For example, I created a variable x, she being a Double: double x; I want to continue using my variable x but she is now a int: int x;…
-
14
votes1
answer5442
viewsWhat is big-endian and what is the difference to little-endian?
I have a basic notion of what the big-endian and the little-endian are, but I cannot see exactly how the different form of storage can complicate portability. What portability problem occurs due to…
-
14
votes2
answers352
viewsWhat does the operator = mean in C#?
I have a function in C#, where I decrypt a string and need to convert into a function in SQL Server for technicians to be able to work with the decrypted value. There is a foreach, I don’t…
-
14
votes1
answer1274
viewsSelect Multiple with dynamic operation
I have a select with 4 options. These 4 options are the number of options that will appear in a multiple select. What I want is as soon as the user selects the option of number of frequently asked…
-
14
votes3
answers18167
viewsPDO Drivers for SQL Server
I am trying to run a PHP application (version 5.5.8) with connection to SQL Server database with PDO, but returns the following error: could not find driver I’ve tried enabling features in php.ini…
-
14
votes1
answer41651
viewsFormat value with Brazilian currency mask
I have a stored trial that returns a credit amount for a certain consortium quota. The return of that value would be like this: 167900. But it should be so: R$ 167.900,00. This value I feed a…
-
14
votes2
answers16859
viewsHow can I get the lottery results?
I searched for lottery API’s to get the results of the contests, unfortunately I could not find any. The response of @fpg1503 can read only the result of the current game, I wonder if it is possible…
-
14
votes3
answers13485
viewsChange the Datetime Timezone.
I am hosting my system on a server that is in the USA. So when using the DateTime.Now returns the date and time of the US. I would like you to return the date and time of Brazil. It is possible?…
-
14
votes1
answer10040
viewsHow to Stop a Thread?
How do I stop a running thread with Java commands?
javaasked 10 years, 1 month ago Leonardo Villela 1,620