Most voted questions
150,413 questions
Sort by count of
-
8
votes1
answer400
viewsIn Sass what is the difference between a mixin and a placeholder?
The two have the same end result, but do not know which is the correct or which has better performance example: %borda($circunferencia: 10px) { -webkit-border-radius: $circunferencia; border-radius:…
-
8
votes9
answers23719
viewsInverting sequence (PYTHON 3)
I have to implement the following: Write a program that takes a sequence of integer numbers ending with 0 and prints all values in reverse order. **Note that 0 (ZERO) should not be part of the…
pythonasked 7 years, 7 months ago Reginaldo Barros da Cunha 137 -
8
votes6
answers28831
viewsHow to limit an input of type Number to only 3 characters?
I have a problem with a variable of the type integer, for the maxlength="" only works with string and I need to stop, but it’s like Number. I think you need javascript, if anyone knows the solution…
-
8
votes1
answer80
viewsCan you initialize only a few members of a C array already in your definition?
I know you can do this: int a[5] = { 0, 3, 8, 0, 5 }; or int a[5]; a[1] = 3; a[2] = 8; a[4] = 5; Can you do the same in just one line, already in the definition? IE, you can initialize only a few…
-
8
votes4
answers8945
viewsWhat’s the importance of indenting the code?
It is common to hear that it is important to keep the code indented, which is not a difficult task with the help of an IDE. Excluding languages that require indentation, such as Python, why is it…
indentationasked 7 years, 7 months ago vinibrsl 19,711 -
8
votes1
answer635
viewsIs there a difference between a compiler and an interpreter?
What’s the big difference between a compiler and an interpreter? In languages like C, Java is used a compiler, for example in Javascript an interpreter is used, but I was confronted with the term…
-
8
votes3
answers537
viewsHow to remove the space of "4 980 Raphael" only between numbers
I have a string "4 980 Rafael" and I would like to know how I will remove only the spacing that are between the numbers in shell script.
-
8
votes2
answers107
viewsWhy are some string methods static?
I am learning C# after already working with other languages, I noticed that some methods need to be called by the class string.Concat("123","456") I usually use in other languages this way…
-
8
votes2
answers701
viewsjava email sending does not show error when unable to send the same
I created a system where the user registers and the password is sent by email. If you cannot send the email, it generates an error and does not create the user, notifying the same. It was working…
-
8
votes1
answer5630
viewsWriting on Javascript screen
I need to make an area in the form that the user digitally signs with a touch screen pen to store their signature. As if the same was writing on a paper but on screen. I read about Canvas but only…
-
8
votes1
answer220
viewsWhat is cache in the context of the Web?
It’s often said, "Oh, that’s stored in cache..." Where the browser stores your cache, there is a limit size and has some relationship with the Local Storage`?…
-
8
votes2
answers221
viewsError trying to host app on itunes
We made an iPhone app with Embarcadero xe10 + PHP, but when trying to host it on: He was turned down for not supporting IPV6. I joined the site…
-
8
votes1
answer1138
viewsWhat are the existing layers in an HTTP/HTTPS request?
I gave a special attention this morning to read some questions and answers here on the site that speak specifically about https/ssl. Like for example these: Data received from HTTPS comes encrypted?…
-
8
votes4
answers2820
viewsWhat is the difference between "notice" and "Warning" in PHP?
I always see programmers saying : "Oh if you do this you will receive one notice, but if you do that you get a warning", then I came up with the debt : What’s the difference between them?…
-
8
votes4
answers220
viewsHow many Strings are created in the codes below?
How many Strings the JVM actually creates during the execution time of the code snippets below? 1: String s1 = "s1"; 2: String s2 = new String("s2"); 3: String s3 = "s3"; String s4 = s3 + "s4"; 4:…
-
8
votes3
answers953
viewsHow do you relate the hash which is also called the python dictionary to the encryption hash function?
I would like to understand how the encryption 'hash' function (in which passwords for example are encrypted) relates, with the key-value hash in programming (also known as 'dictionary' in Python for…
-
8
votes3
answers429
viewsHow to use Form in Listview Django?
I am trying to create an action for a Listview, the action would be Delete or change a parameter in the table, for example disable user, using checkbox. If I select all and click on this button the…
-
8
votes2
answers439
viewsSettings . bat running a . dstx
I am running a file . dtsx using a load bat and I am wanting to make some adjustments: Legibly mount the file name date. Adjust in log file to tell which package name . dtsx was executed Decrease…
-
8
votes1
answer692
viewsWhat is the difference between Activity and View on Android?
What’s the difference between Activity and View on Android?
-
8
votes1
answer139
viewsWhat is the correct use of the "in" javascript operator?
This code does not return anything, why? I am running in "window.onload event": if(innerHeight in window){ console.log('true'); } I had already used the operator other times, and it worked, but now…
javascriptasked 7 years, 8 months ago Seu Madruga 2,481 -
8
votes3
answers4139
viewsIn practice, what is a system test and what should it cover?
Among the best known tests then the unit tests which test each class of the system individually, the integration tests which test two distinct parts of the system, such as a DAO and the database.…
-
8
votes1
answer12189
viewsHow to create an executable from python
I’m doing a service where I have to do a program that reads and creates files with numerical data. The problem I have is that the computers on which the program will be used are not accessible to…
-
8
votes2
answers540
viewsHow does an index improve the performance of a query?
Why does creating an index improve the performance of a query? Is any change made to the table structure? Is the data structure for disk storage modified? Is the algorithm used to perform the search…
-
8
votes4
answers763
viewsWhat would be a good way to apply events: onMouseOver and onMouseOut, for all img tags?
I need this function to be automated so that it applies to all images built on the HTML document without any exception Code function aumenta(obj) { obj.height = obj.height * 2; obj.width = obj.width…
-
8
votes2
answers941
viewsImport multiple classes from the same package
I wonder if there’s any significant difference in making import java.util.* instead of import java.util.ArrayList; import java.util.Collection; import java.util.Date; import java.util.List; import…
-
8
votes1
answer17973
viewsWhat is the difference TEXT and LONGTEXT?
I am developing a system where I will import the data from an Excel. As this data will be temporary, I intend to save the information of this imported column in format JSON at the bank. Therefore, I…
mysqlasked 7 years, 8 months ago Wallace Maxters 102,340 -
8
votes1
answer213
viewsWhat is software architecture?
What the term "software architecture" means and how the term differs from "software engineering"?
-
8
votes1
answer2537
viewsConsume Webservice Nfedistribuicaodfe - VB.NET or C# - Manifestation/Download Nfe
On the Nfe Nacional website (http://www.nfe.fazenda.gov.br/portal/webServices.aspx?tipoConteudo=Wak0FwB7dKs=) i already have a software made in VB.NET that consumes the WEBSERVICES (NfeConsultaDest…
-
8
votes1
answer1709
viewsDiv height 100% in div height auto?
I will try to be very explanatory. I have the structure of a common site as you can see in the html below. And I want the height of the sidebar to increase as the height of the container next to it.…
-
8
votes1
answer10928
viewsWhat’s the difference between @Yield and @include on Laravel?
I’m learning Laravel 5.3, @yield and @include seem very much the same to me, the only difference I know is that @include injects the variables of father and may also include other variables. What’s…
-
8
votes3
answers813
viewsWhat is the difference between methods for obtaining a context?
One can, beyond the this, get the context in several ways, with different methods. As shown in the code below, we have the getApplicationContext() and the getBaseContext() which apparently serves…
-
8
votes6
answers422
viewsHow to "call" this correctly?
When the Elements are inside the onCreate, use the (this) it’s very easy... Example 1 : that works from within onCreate itself protected void onCreate(Bundle savedInstanceState) { Spinner spinner =…
-
8
votes3
answers1013
viewsContains in Java, how to search a text in an Arraylist?
In C# there is the method contains of System.Linq that searches text in a list, I did the tests in Java and I did not find a similar way even knowing that in Java 8 has expression, there is some way…
javaasked 7 years, 9 months ago Paula Martins 83 -
8
votes2
answers1159
viewsIs there a C interpreter?
Everyone knows that C is a compiled language. Some know that in theory any language can be interpreted, unless it has some specification that prevents it. Are there C interpreters? They’re good for…
-
8
votes1
answer6294
viewsMultiple INNER JOINS with DAPPER
I’m trying to accomplish multiple INNER JOIN in the Dapper with these classes: public class EventoConfiguracao { public EventoConfiguracao() { //CdEventoConfiguracao = Guid.NewGuid(); Menus = new…
-
8
votes1
answer1840
viewsHow to implement editable table by updating the fields in the database automatically
I have the following table that lets edit directly in cells: The codes are in 4 parts: Mysql table CREATE TABLE IF NOT EXISTS `php_interview_questions` ( `id` int(8) NOT NULL, `question` text NOT…
-
8
votes2
answers213
viewsDo I need to assign null to a variable after use?
There is a need to allocate null in the object after its use? In the example below just after using the list I have a method that takes a lot of time to run. I need to assign null to the list to…
-
8
votes2
answers1956
viewsWhat is Backus-Naur Form (BNF)?
I was reading an answer here and I came across this term, so what does this term mean, and what is the relationship/influence on current languages?
-
8
votes1
answer1179
views -
8
votes2
answers123
viewsFind words between characters { }, and remove text in PHP?
$comoesta = "{A,O} {portador,portadora} é o mais {especializada,especializado} para o serviço ."; If it’s male: $comodeveficar = "O portador é o mais especializado para o serviço "; If it’s female:…
-
8
votes1
answer349
viewsIs there any way to calculate a pattern of extra space from a source?
I am trying to put together a layout as "pixel Perfect" as possible, but I have always come across this problem, using large fonts, there is a space above and below the font, as if it were a…
-
8
votes3
answers3514
viewsHow to store any string in C?
How do I store a string (input) without knowing the size of this string, for example: #include<stdio.h> int main (){ char nome[]; /* a array não tem tamanho determinado porque o input ainda…
-
8
votes4
answers7214
viewsDifference between epics and Features
In Visual Studio Team Services you can organize the backlog in epics, Features and user Stories. For each Epic, a set of Features associated can be defined, and for each Feature a set of user…
software-architecture software-engineering software-project project-management requirementsasked 7 years, 9 months ago SomeDeveloper 18,074 -
8
votes1
answer324
viewsGet all classes that implement a generic interface
I have an interface similar to this: public interface InterfaceA<T> { T Exemplo(); } And other classes implement it. public class ExemploA : InterfaceA<Int32> { Int32 Exemplo(); } public…
-
8
votes5
answers23915
viewsHow do I know if the variable is an integer in Python?
How can I know if the variable is an integer in Python? I know how to do it in PHP: is_int($variable); // bool(true) But how can I do in Python? Example: numero = 1 #é numero nao_eh_numero = 'texto'…
-
8
votes2
answers1621
viewsDifference between AWT and Swing in component rendering
What are the main differences between the Swing and AWT interface construction libraries, regarding how to render the components of both and the performance?
-
8
votes3
answers646
viewsWhat does it mean to put the 'as' command after the 'import' command in the code below?
'as' is in the send_to_twitter function (msg) import urllib.request import time def send_to_twitter(msg): import twitter as t: CONSUMER_KEY = '1wrnsF5lB8fEWVzRdvlIqdTle' CONSUMER_SECRET =…
-
8
votes4
answers5196
viewsHow to save line breaks from a textarea to the database?
I have a textarea and would like to save the user-made line breaks in the database. For example, user writes the following: "Lorem Ipsum. Is simply. Dummy text. Of the printing. And typesetting."…
-
8
votes1
answer478
viewsMatch all coordinates x, y, z from a list of tuples
I have the following list with several points: [(14, 9, 7), (11, 1, 20), (1, 1, 7), (13, 9, 1), (9, 13, 4), (20, 1, 4), (17, 6, 8), (14, 10, 1), (14, 2, 17), (7, 20, 7)] Each element of the list is…
-
8
votes1
answer1004
viewsHow to mount a SELECT to return the last status change of each id?
I have the following table: status_invoices id_fatura | status | data ---------------------------------------- XX-XX-XX | 3 | 2017-01-04 21:00:24 XX-XX-XX | 2 | 2017-01-02 11:10:20 YY-YY-YY | 4 |…