Most voted questions
150,413 questions
Sort by count of
-
11
votes2
answers353
viewsIs that a polymorphism?
Is that polymorphism? If so, why? I think it’s because there’s no method call. Please explain to me if I’m correct or correct me. Thank you :) OutputStream saida = new…
-
11
votes5
answers64617
viewsMonetary mask with jquery.inputmask
How do I create a mask for a monetary value? I’m wearing this: $(".ValoresItens").inputmask('R$ 999.999.999,99', { numericInput: true}); was like: R$ ____. ____. _25,00 But I didn’t like these…
-
11
votes1
answer2490
viewsPattern recognition
I have hundreds of digital images of dogs and cats, I need to make an algorithm to recognize when the dog is and when the cat is. What steps should I take?
-
11
votes3
answers1063
viewsWhat is the difference between System.Web.Http and System.Web.Mvc?
I have an MVC project and in it I will have normal controls and controls providing services via webservices (Controller and ApiController). And I don’t know which one to use because I don’t know…
-
11
votes1
answer127
viewsQvideowidget displays nothing
I’m trying to use the classes QMediaPlayer and QVideoWidget to display a video on a system I’m producing. Only these class rays don’t work as expected. The QVideoWidget just doesn’t show up, doesn’t…
-
11
votes1
answer469
viewsWhat is the purpose of empty parentheses in a lambda statement?
I created an example of a Lambda statement with no arguments, however, I have doubts regarding the omission of the empty parenthesis () in the statement. Take the example: class Program { public…
-
11
votes2
answers2457
viewsHow to exclude element from a list in R
I have this list: x = list(1, 3, 5, 8, 13) How do I delete the second element?
rasked 8 years, 8 months ago Daniel Dutra 2,283 -
11
votes1
answer578
viewsWhy does iteration of a list with an anonymous object work with an array but not with List<Object>?
I tried the following iteration with C#: var objects = List<Object>{ new {Id = 2, Nome = "Wallace"}, new {Id = 4, Nome = "Cigano"} }; foreach (var user in objects) { Console.WriteLine ("Meu id…
-
11
votes2
answers14208
viewsWhen to use WITH (NOLOCK)?
Select * from MinhaTabela with (NOLOCK) I know colleagues who always insert the clause With (NOLOCK) in their selects and I know others who preach that NOLOCK is bad practice and should never be…
-
11
votes4
answers160
viewsHow can I make a string code work with > or <?
Apparently I’m having problems with strings: public partial class Form1 : Form { private int _adicionar; private int _retirar; public Form1() { InitializeComponent(); } private void…
-
11
votes4
answers12823
viewsHow to make a countdown with javascript?
Hello guys I don’t understand practically anything Javascript, so for weeks I was trying to make a script that did the following: 00:00:00 1º start a countdown of 20 minutes after clicking a link.…
-
11
votes1
answer756
viewsHow does terrain generation work in a game?
The game No Man’s Sky has not yet released but I’m curious about the technique they used to generate the terrain of the planet. I believe that processing a planet on real scales would be very…
-
11
votes3
answers2738
viewsHow does the browser handle infinite loop in Javascript?
I was doing an exercise on loop repetition for in Javascript on Codecademy, however, in the exercise I came across the following warning: codecadeny Be very careful with your syntax - if you write a…
-
11
votes3
answers508
viewsWhat is a Kiddie Script?
I saw that term in a movie, Who Am I (Invaders in PT-BR), and basically what I understood is an attribution to the famous ctrl c + ctrl v. To better specify, what actions make a person be considered…
terminologyasked 8 years, 10 months ago João Victor Gomes Moreira 1,968 -
11
votes4
answers870
viewsWhy can an if be redundant?
Using a method that returns a boolean the system would determine whether a number is positive or negative. So I did it this way: public boolean isPositive(float num) { boolean positive; if (num…
-
11
votes1
answer413
views"Referer" or "Referrer"? Is that a spelling error or is that correct?
Honestly, I’m in tremendous doubt right now. I just gave that answer here at stackoverflow: /a/123445/4995 In this answer, I teach that, to refer to the previous page, we should use the variable…
-
11
votes3
answers1682
viewsIs it common to have multiple different servers for the same web application?
Setting: I’m starting to participate in the development of a web application. This application is not yet available "online", IE, we only have it here on the test server where we have, on the same…
-
11
votes2
answers13280
viewsWhat are the differences between the available versions of Visual Studio 2015?
Last year it was announced 3 versions of Visual Studio 2015: Community, Professional and Enterprise Based on the tools available in each version: what I miss between using one and the other in part…
-
11
votes1
answer4373
viewsHow to popular a Jtable with own Tablemodel?
When you’re messing with swing, we almost always come across having to handle tables and populate them with some kind of information. For simpler situations, the DefaultTableModel resolves, but when…
-
11
votes1
answer2979
views"java.lang.Securityexception: Permission Denial" on Android 6 Marshmallow (API 23)
I’m trying to register a broadcastreceiver so I can check a new sms that might arrive on the device. I’m getting an error only on android marshmallow in the following snippet of my code: public…
-
11
votes1
answer2988
viewsWhat is the purpose of the "/dev/null" path in some commands?
Many times, I have seen some people teaching to do some commands (mainly related to text outputs or things like), where is used this directory or file called /dev/null. Example: wget -qO- $url…
linuxasked 8 years, 11 months ago Wallace Maxters 102,340 -
11
votes3
answers2753
viewsSolution to scan documents by browser
I want users to digitalizem documentos straight from browser and then up to server. I found APIS who do this but all get paid and the licenses dearest ! Can someone present a solution ? Even if the…
-
11
votes4
answers1407
viewsHow to work with values that far exceed the long (64 bit) limit value
How is stored and performed operations with numbers that exceed the limit values of type long and double? How the four primary operations are done with these numbers (sum, subtraction,…
-
11
votes3
answers10205
viewsHow to format date in full?
Is there a Java class that works with date formatting in full? For example: Input: [dd/mm/yyyy] 27/02/2016 Check-out: Twenty-seventh February 2016 I tried to: import java.util.Calendar; import…
-
11
votes2
answers21117
viewsWhat does "Return" do in Python?
What "really" the return does in Python, mainly in recursive functions. Ex. factorial: def fatorial(n): if n==1: return n return fatorial(n-1) * n…
-
11
votes1
answer219
viewsHow was the relationship between Web Api and Asp.NET MVC in Asp.NET 5?
Us ASP.NET 4.6 or less there were differences between Web Api and Asp.Net MVC. O controller, may inherit from controller or of ApiController. However, with the arrival of the Asp.Net 5 will not have…
-
11
votes3
answers2099
viewsIs it safe and feasible to minify PHP files?
I was left with this question after reading an answer of this question on HTML. I have only minified with PHP, only with HTML, with PHP and HTML... and I didn’t notice any problems... Can it become…
-
11
votes10
answers1739
viewsHow to count the zeroes to the right of a number?
I have a number, nnnnn000. I must count how many zeros on the right has that number. Test cases: 123000 zero numbers 3 102030 zero numbers 1 Open to suggestions!…
-
11
votes2
answers121
viewsIs there an alternative to Removeat()?
I am using Entity Framework in an ASP.NET MVC project where I have a simple list of strings and need to remove only the first item. I used the following command: minhaLista.RemoveAt(0); Well, but…
-
11
votes1
answer87
viewsHow is a "360º Tour"?
I would like to know what is the process of developing a 360º tour. Click here to see the example I believe such a "system" is not made all in the "big hand", in a primitive way, line by line. What…
web-applicationasked 9 years, 1 month ago Zkk 831 -
11
votes3
answers242
viewsWhy do I need to declare a guy inside the "foreach"?
Why in a foreach we always need to declare a variable. Example: for(Pessoa pessoa : pessoas) { //qualquer coisa } In other words, I want to know why it is not possible to do this: Pessoa pessoa;…
-
11
votes1
answer385
viewsIs the C# language recommended to be distributed online with a database?
It is very easy to get the entire code of a C# program using . NET Reflector. Would it be possible for me to put the same security in a C# program a program made in C++? I found that answer no Stack…
-
11
votes1
answer284
viewsDoubt about the IF
Does the IF function only work with Integers or does it also work with String? I was trying to create a program that would ask if you are sure you want to create the password. You can check the code…
-
11
votes1
answer7086
viewsWhat is the difference between Factory, service or controller in Angular?
Next, in practice, what’s the difference and how to do service with . service, . Factory and controller? service js. angular.module('app.services', []) .factory('BlankFactory', [function(){ }])…
angularjsasked 9 years, 1 month ago GustavoSevero 2,567 -
11
votes3
answers2360
viewsVoice recognition in php
This question is of curiosity indeed, I am not touching anything of the type, but in the future who knows. I wanted to know if there is any type of system or if it is possible to create a system…
-
11
votes3
answers2014
viewsWeb scraping with R
I am trying to make a Web Scrapping of the following link: http://empresasdobrasil.com/empresas/alta-floresta-mt/ I want to access all categories and extract a data frame with the name of all…
-
11
votes1
answer28766
viewsList files from a PHP folder / directory of certain extensions
I need to list the files of a folder, and display them by name linked to his directory for download. I use that code: $pasta = 'uploads/'; $arquivos = glob("$pasta{*.jpg,*.JPG,*.png,*.gif,*.bmp}",…
-
11
votes1
answer3531
viewsHow to change the Namespace of a C#project
The project was created with the name Windows and I want to change. The problem is that if I just right-click the project and rename it, the project gets full of error. I tried to change Assembly…
-
11
votes3
answers147
viewsHow to put Html snippet on all child elements except the last one?
I have a dynamically generated table, and I want to put a input within each td. I can get the id of the tr, then I do: $("#id").children().html("<input type='text' value='" + valor + "' />");…
-
11
votes6
answers3120
viewsHow can we not allow numbers in a textbox?
Good people, I’m trying to do a validation but I haven’t succeeded yet. I want to do a function that won’t let me enter numbers into a textbox. Follow an example of how I currently do.…
-
11
votes1
answer347
viewsHow to get facebook share information with R?
I’d like to know how I can get information about Facebook post shares, such as user name and id and date and time of sharing. In the package RFacebook you can obtain the same information, but…
-
11
votes4
answers277
viewsHow do the objects created following Singleton work?
I would like to understand how objects created work by following the Pattern Singleton javascript design. My main doubts refer to the methods and attributes of this object, where and how to create…
-
11
votes1
answer339
viewsCreate python executable: Pyos_inputhook is not available for Interactive use of Pygtk
I just finished my first program with python and would like to create an executable for distribution. However, I’m having trouble doing this. I’ve tried using py2exe, pyinstaller and cx_freeze…
-
11
votes1
answer1648
viewsDifference between method and constructor?
Reading a friend’s notes I came across the following statement: "method does not allocate space in memory". This statement is correct? It may not be the main difference between them, but it is…
-
11
votes2
answers1551
viewsWhat is the difference between repeat and while on the moon?
Is there any difference as to the usability of repeat and while on the moon? In my opinion, the two appear to have the same purpose. Not taking syntax into account, there is some difference between…
luaasked 9 years, 2 months ago Wallace Maxters 102,340 -
11
votes1
answer30199
viewsWhat is the difference between x-www-form-urlencoded and form-data?
Is there any relevant difference between content-type x-www-form-urlencoded and form-data? I always have doubts when I should use between one or the other, because I don’t know if there is any…
-
11
votes2
answers701
viewsSave and send selected item id in dropdowlinst
I’m trying to do a search, filtering through a dropdowlist. In short, I select a level of instruction in a list and when I click 'Search' I want to return to the list of people who have that level…
-
11
votes1
answer3203
viewsLeft Join or Not Exists
I needed to retrieve information that was in a certain table, but were not in another one. Searching found that NOT EXISTS would serve this case, but I saw that Left Join brings the same result: NOT…
-
11
votes1
answer363
viewsCustom global variable
In that question here, I explained that I was afraid to save my settings in the variable $GLOBALS because she turns my settings into global values, then the guy answered me that there was no…
-
11
votes1
answer323
viewsWhat are build cache structures?
In that question where I wanted to know if I should store settings in a global variable $GLOBALS, I got some very good answers, and there was one that talked about something that I hadn’t even…