Most voted questions
150,413 questions
Sort by count of
-
12
votes2
answers610
viewsIs it bad to use the standard PHP session engine?
What I understand is that many frameworks, like Codeigniter and Laravel 3 and 4 use their own session storage engine. They don’t use the standard PHP engine (Variable $_SESSION and session_start,…
-
12
votes2
answers5686
viewsWhat is the difference between htmlspecialchars() and htmlentities()?
I once had to use htmlentities() to solve a certain encoding situation (words with accents were not with characters) and saw that there was this htmlspecialchars(). In Php.net, I saw the following…
-
12
votes4
answers651
viewsdisplay:One consumes data?
Some questions about what happens when we use the property display:none of css: Is the element loaded and not displayed? Or it is not loaded (and therefore does not consume data)?…
-
12
votes1
answer11265
viewsHow to create a dynamic progress bar considering all fields of a form?
I’m trying to create a progress bar a little different from the ones I found around. This for example, take the values of the fields and plays in the aria-valuenow from the progress bar. In my case,…
-
12
votes1
answer2480
viewsDifferences between Java application servers
I would like to know the main differences between Glassfish, Jboss and Apache Tomcat application servers. Is there any specific aspect I should check before choosing one to start development? Are…
-
12
votes4
answers4310
viewsEnter key do not give Submit
How to make the enter key fail Submit on a form? Example: in an input by pressing the enter nothing happens. Today I press the enter, the browser gives a Submit, as and had clicked on send button.…
-
12
votes5
answers1943
viewsIs it possible to program to web with Lua?
I see many tutorials on the Internet that assimilate the use of language Lua to the development of games. But I’d like to know the following: It is possible to develop for web using the language…
-
12
votes3
answers13730
viewsWhat is the difference between simply-chained and double-chained list?
I’m having a hard time understanding the functioning and difference of a simply-chained list and a double-chained list, the two seem to have the same purpose and functioning. I know that both are…
-
12
votes3
answers7644
viewsHow to create a Datetime object that represents the last day of a given month?
On an object of the type DateTime, how do I get a new object object DateTime representing the last day of the month of the first object? var data = new Date(2017, 3, 1); // 01/03/2017 var…
-
12
votes1
answer1319
viewsDisplay data with Google Chart - Stacked
I’m using the Google Chart - Stacked to create a chart on my system. Even this part is working correctly, as can be seen in the example below: <script…
-
12
votes2
answers785
viewsSelectize.js with Tags, reload key and value in edit form
I posted the same question in the Gringo OS too. I’m making a research form (action=GET) where a field uses Selectize.js: $("#selectize").each(function () { $(this).selectize({ plugins:…
-
12
votes2
answers596
viewsHow to animate the display of dynamically sized elements with CSS only?
I’m building a site that has some state transitions using CSS only. In one of them the user clicks the header and the div below displays or hides. In the other there is a sequence of images and when…
-
12
votes2
answers669
viewsJAAS or Spring Security on page control
I’m doing an Eclipse project with JSF 2.2, JPA 2.1, Hibernate 5, Primefaces 5.3, CDI (Weld 1.1). I want to implement the security part of the application and I’m in doubt between JAAS and Spring…
-
12
votes2
answers23371
viewsHow does the BLOB field work?
Hello, directly asking, how does this kind of field work? I know there are three types: BLOB = 64KB, MEDIUMBLOB = 16MB and LONGBLOB = 4GB Given this example: CREATE TABLE COMPROMISSOS ( ID INTEGER…
-
12
votes2
answers1686
viewsVBA/Excel Combobox : Disable Auto-Complete
I’m typing a text that’s in a Combobox of VBA/Excel, but the initial part of the text matches another already included in the list, besides completing it automatically (which I do not want), it…
-
12
votes4
answers750
viewsHow to limit the resources used by the system?
I have a loop loop that makes several iterations and has in its scope calculations that require a lot of processing. The problem is that when executing the code snippet, the use of the processor…
-
12
votes2
answers52864
viewsHow to check if the Term is contained in String in PHP?
I need to check if a certain tag is inside the string. I get this string from the database that comes in the form of tags comma separated without spaces as below: String canais,proteses,implantes…
-
12
votes3
answers8338
viewsWhat does %=mean?
I have a code that contains the situation below: id %= 1000 But I don’t know the function of that operator.
-
12
votes1
answer8949
viewsList states, cities and neighborhoods on registration form
I have a table called "ad", where I need to register the information coming from other 03 tables, are they: Tables of States, Cities and Neighborhoods. The objective is that the user himself makes…
-
12
votes3
answers16185
viewsCalculate difference between dates
I need to calculate the difference between the registration date and the current date, if it is greater than 6 months, return boolean. I am registering at the bank the registration date as follows:…
-
12
votes3
answers490
viewsHow is a Framework developed?
I’ve used a few frameworks they really streamlined the development of my project, helped me, I didn’t have to waste time building the common part of my problem that other people had already…
-
12
votes4
answers33522
viewsHow to read a CSV file in Python?
I need to read a very large CSV file (+ 300,000 lines). What is the best way to read a CSV file in python?
pythonasked 9 years, 2 months ago Leo Ribeiro 581 -
12
votes2
answers720
viewsWhat Means Two Keys in Javascript
I understood the "===" that tests value and type, different from the "==" that tests only value, but I didn’t understand the double key, type: {{alguma_coisa}}, for example in a Javascript that I…
-
12
votes2
answers955
viewsPutting a background color after recognizing and cropping people’s faces
I found a tutorial of an app that recognizes the face of people using the camera and creates a rectangle around the recognized face. - (void)processImage:(Mat&)image; { Mat grayscaleFrame;…
-
12
votes1
answer162
viewsIs "Then" really necessary at the end of the If block?
The Visual Basic . NET compiler seems to ignore the reserved word Then, the one at the end of the block If. If (1 + 1 = 2) Then Console.WriteLine("Passou no teste.") End If And now, without the…
-
12
votes3
answers1195
viewsPHP + Delphi(Pascal), issue real-time warnings
I would like to design a small, simple system encoded in the Pascal language (IDE Delphi), to receive notifications (such as a warning that an event has occurred), upon receiving the warning play…
-
12
votes4
answers489
viewsHow does jQuery make parameters dynamic?
I noticed that in jQuery, parameters can often be passed or omitted, and regardless of order, they work as expected. What I mean is this. See the following codes below: $('#x').fadeOut(function(){…
-
12
votes3
answers4953
viewsHow is the module math calculation (%) done in Javascript?
I am trying to use "reverse engineering" to understand what is the calculation done by the module (%), but I’m not getting it and I wanted to understand and clarify, to make this part clear, before…
-
12
votes2
answers10649
viewsCheck if a word is within a sentence
There is how I check if a word is within a phrase described by the user? Ex: palavra = "criativo"; Phrase written by the user: "Eu sou criativo"…
-
12
votes2
answers213
viewsWhat is the name of the operation when we make an ajax request to the internal server that in turn takes information from external?
I always do that, but I don’t know what the technical name of it is. When I need to make a request, where I take information from an external content (for example facebook), I always use my server…
-
12
votes4
answers595
viewsHow to create a variable where to access its properties via string?
I’d like to access by string the properties of an object: (EXAMPLE 1) var cor = casa["cor"]; var tamanho = casa["tamanho"]; Instead of accessing like this: (EXAMPLE 2) var cor = casa.cor; var…
-
12
votes2
answers3131
viewsHow can I turn line breaking into <br /> in Javascript?
In PHP, we can convert a line break to a <br/> through function nl2br. What about Javascript? How can I do this safely? I decided to ask the question because I don’t know if a simple…
-
12
votes1
answer631
viewsWhat is SASS technology?
Nowadays dynamism in producing styles for a page or set of pages is essential for the developer. And CSS sometimes becomes somewhat complex with complicated, repetitive, and math-heavy selectors. A…
-
12
votes2
answers141
viewsDynamic declaration in attribute property
As part of a microplataforma ORM I’m developing, I’m defining a generic class that implements exclusively tight Coupling (1 record x 1 object). public class Course : MicroEntity<Course> {…
-
12
votes1
answer3277
viewsHow does the Linq Aggregate() extension method work?
I just saw some examples that used the method Aggregate() of namespace System.Linq, but I couldn’t find any good explanation for how to use it. What does this method and how it should be used?…
-
12
votes1
answer789
viewsWhat is SOAP technology?
I’ve been following a project (a high school news site) where multiple languages (PHP to build the site where the news is posted and android, Ios, c#, where they will be accessed by the site…
-
12
votes7
answers1017
viewsIs there any way to know if an array is associative or sequential?
In PHP, a array can be both associative as it can be a list, with sequential numbers. Is there any way to detect this difference in PHP? Example: $a = array('item 1', 'dois' => 'item 2'); //…
-
12
votes1
answer950
viewsJava Interface 8
Java 8 allows you to implement methods in the interface itself. So I’d like to know what an abstract class can do that an interface cannot. Source:…
-
12
votes1
answer786
viewsIs there a way to use two types of payment methods in a transaction on the market?
For example I want to sell a product that includes membership and tuition, R$X,XX + R$X,XX automatic debit. Example of automatic debit: $preapproval_data = array( "payer_email" =>…
-
12
votes3
answers17172
viewsHow to pick up content within a string up to a "bar/" character
I got the following String: $link = '13542345/essa_e_minhastring'; How do I take only the value up to the "/" bar and ignore the rest ? I would like to assign this value to a variable. I’m using the…
phpasked 9 years, 4 months ago Charles Fay 1,197 -
12
votes1
answer1740
viewsWhat are the differences between the concepts of polymorphism and superscript in OOP?
I was a little confused when researching polymorphism. The concept of polymorphism resembles the concept of superscript. What are the differences between polymorphism and superscript in OOP?
-
12
votes3
answers637
viewsIs it correct to state which interface solves the multiple inheritance problem in Java?
It is known that Java does not support multiple heritages. Is it correct to say that the interface concept solves the multiple inheritance problem in Java? If so, why?
-
12
votes2
answers489
viewsHow to organize the code to be reused
Consider the following scenario: As you can see, Prefab (red) consists of 3 elements: The sprite (which is the ground, the brown squares and the green tube) The enemy (pink) which is another Prefab…
-
12
votes3
answers366
viewsVariable in main is global?
I read that global variables are those that we declare outside of all functions using #define and this way they could be used by all functions of a program. However, I was informed that the…
-
12
votes2
answers6437
viewsOpen Whatsapp when you click on the icon
Does anyone know how to make that by clicking on the Whatsapp icon on a website by smartphone, some function open the application and already start a conversation at the number set in link of the…
-
12
votes3
answers1828
viewsHow does version naming work for private or public projects?
I’m developing a project that serves as bootstrap for future contributions via Git, and would like to know which version scheme is most used, say "version" relative to the state the software is,…
-
12
votes2
answers516
viewsAll keys work as enter
I’m developing a small PHP system where the user just passes a badge and presses enter. Somehow I need to make this enter be automatic after a few seconds (the button is already in Focus after…
javascriptasked 9 years, 5 months ago Diego 4,520 -
12
votes3
answers14451
viewsTurn the first letter of a string into uppercase?
Example: I have a string "stack exchange", how do I transform your first character, getting "Stack exchange"?
-
12
votes2
answers2381
viewsRouter and URL-friendly with Asp.net mvc
How I Route and url friendly (dynamically) in my web application, using Asp.net mvc 5? Currently I have the url: http://myapp.com/Produto/Details/7 And I want to route it so it looks like this:…
-
12
votes2
answers437
viewsPerformance difference of Any() and Count()
When I need to check whether a Collection has or has not elements which of the two methods will be faster, .Count() =! 0 or .Any()? I’ve heard that the .Count() may be faster in some cases. But by…