Most voted questions
150,413 questions
Sort by count of
-
22
votes2
answers153
viewsWhy can’t I call methods directly in a Javascript number?
A simple question, but it’s making me curious. I know that in javascript everything is warpado in some object constructor, so I can call string methods even if the string is not an object in theory.…
javascriptasked 5 years, 11 months ago Máttheus Spoo 1,746 -
22
votes3
answers1335
viewsWhat is the advantage of dependency injection in relation to an object instance?
I’ve been reading and rereading What is addiction injection? but in the end I could not perceive an advantage of the injection of dependence in relation to an object instance. What is the advantage…
-
22
votes2
answers2203
viewsWhat are the differences between the states of the git files (untracked, unmodified, modified, staged)?
I’d like to know what the characteristics and differences between the states of the archives during its life cycle in the git. States: untracked unmodified modified staged…
-
22
votes1
answer4503
viewsWhat’s the difference between global and nonlocal in Python?
In Python, there are two statements that are used to reference variables outside the local scope: global and nonlocal. What is the difference between the two statements? When to use each?…
-
22
votes3
answers29017
viewsWhat is ROW_NUMBER?
What is ROW_NUMBER used in the sql server? How and where we should use it? Has a simple example of use ?
-
22
votes3
answers1780
viewsIs the SQL language object oriented?
Is the SQL language object oriented? If so, could you show an example?
-
22
votes2
answers19395
viewsWhat’s the difference between varchar and nvarchar?
What’s the difference between using data types varchar and nvarchar? nvarchar exists in every SQL database? Is there any significant difference in performance between the two? There is a criterion…
database sql-server string typing character-encodingasked 7 years, 7 months ago UzumakiArtanis 9,534 -
22
votes5
answers2467
viewsWhat is a deprecated code?
What is a deprecated code (code depreciation)? I heard about in a video lesson and I was in doubt.
-
22
votes2
answers8927
viewsIn Python, what is the difference between == and the is command?
I’m confused in the use of two commands, the is and the == that as far as I understood they perform the same thing that is to compare if two objects are equal. Is there any more performatic?…
-
22
votes4
answers1870
viewsWhat are Progressive Web Apps?
Hello, I’ve read references around, and to complement our community, follow the questions. What exactly is Progressive Web App (PWA) or Web Application Progressive? What advantages there are…
-
22
votes1
answer5957
viewsWhat is the meaning of CORS?
I always see the word CORS related to an error occurred while trying to make a request XmlHttpRequest for a given page, which does not have the same domain as the origin. Example: Xmlhttprequest…
-
22
votes3
answers394
viewsWhat are friendly Urls?
What are friendly Urls? What is its purpose? When it is recommended to use friendly Urls instead of regular Urls? Involves some relationship with performance?…
-
22
votes1
answer5420
viewsWhat is the programming paradigm used by Javascript?
What is the programming paradigm used by Javascript or if it is like Python that uses multiple paradigms?
-
22
votes1
answer29792
viewsSet up Cronjob to run every 5 minutes, when it’s between 5 to 20 hours
I need to make a configuration so that mine cronjob function every 5 minutes. However, if the time of day is before 5and greater than 20 I don’t want you to spin. I mean, I want a make one cron…
-
22
votes1
answer311
viewsClick on Loginbutton facebook on android using Xamarin with Facebooksdk nothing happens
I’m using Xamarin to try to log in with facebook, I already generated the Hash and appid. ( Apparently correct, because previously the app returned me an msg saying that the HASH was invalid ).…
-
22
votes2
answers440
viewsWhat does # mean in the name of some languages?
This may be the simplest possible question, but what does # (Sharp) mean in the C# and F language names#?
-
22
votes3
answers1767
viewsWhat prevents an array from being initialized with a variable size in C?
Why does an array need to have a constant size? What prevents it from having a variable size?
-
22
votes3
answers11209
viewsDifference between Any, Contains and Exists
What’s the difference between Any, Contains and Exists? What is the appropriate context for each of them? (Examples of use) What are the advantages and disadvantages?…
-
22
votes4
answers3410
viewsWhat is dynamic programming?
What is dynamic programming ? Dynamic programming NAY is dynamic typing What are its characteristics ? What are its advantages and disadvantages ?…
-
22
votes3
answers7920
viewsWhat is the difference between "git init" and "git init --Bare"?
The question is very simple indeed: What is the difference between these two commands, git init and git init --bare? What is this option for --bare?…
gitasked 9 years, 5 months ago Wallace Maxters 102,340 -
22
votes2
answers3477
viewsApplying licenses to Github
I have applications on Github (public repository) and would like to know if it is possible to license repositories, and if there is any software license that: Ensure that I am the author of the…
-
22
votes3
answers12225
viewsWhat is deadlock in SQL Server?
I am trying to solve a problem with an error in SQL Server and seeing a question in the OS, in the reply is quoted a possible 'deadlock' in SQL Server. What is this?…
sql-serverasked 9 years, 8 months ago William Pereira 3,998 -
22
votes2
answers14617
viewsWhat is the difference and what are operators & and && e | and || in Java for?
I was analyzing some possibilities for the implementation of an algorithm and I went to look up this & and |, and I read some topics in English but it’s not 100% clear to me what it’s for and…
-
22
votes2
answers4822
viewsWhat would be the best practices for commits in Git?
There are best practices to perform commits and write comments on these commits, for better communication and understanding during the software development process?
-
22
votes2
answers574
viewsIs it possible to have month 13 on a date in Java?
I was looking at the class documentation Formatter java 7, this link from Oracle itself, when I noticed myself with the following example below: What intrigued me was the example given for the month…
-
22
votes2
answers4841
viewsHow does the merge work?
I created another branch as backup and give merge in it, suppose I’m in branch daniela3: git merge origin/develop Only my branch daniela3 will be affected or origin/develop too? I mean, I’ll be…
-
22
votes4
answers68381
viewsScript returning Parse error: syntax error, Unexpected end of file
When including this method to a PHP code <?php function meuMetodo($a, $b) { $c = $a + $b; if ($c > 1) { return TRUE; } else { return $c; } ?> This error occurs: Parse error: syntax error,…
phpasked 9 years, 11 months ago Guilherme Nascimento 98,651 -
22
votes1
answer68862
viewsHow to generate a . apk file in Android Studio?
If it is already generated in which folder it is located?
-
22
votes3
answers7874
viewsASP.NET MVC or Webapi?
What is the advantage of using MVC and Webapi (using Visual Studio and C#)? I think that developing in MVC is easier to assemble a form with validations, because just put special attributes for this…
-
22
votes1
answer3430
viewsIn the new browsers now there will be no more synchronous requests?
I saw it today in mine Google Chrome, updated to the version 40.0.2214.91, a message that said Synchronous Xmlhttprequest on the main thread is deprecated because of its detrimental effects to the…
-
22
votes3
answers57329
viewsFormat double with mile and decimal
I have the following value: 43239.110000000001 I used this command: txtSomatorio.Text = String.Format( "{0:#.#,##}", somatorio); I got this: 43239,11 How to do to display like this? 43.239,11…
-
22
votes1
answer9649
viewsWhich UTF-8 "collate" is the most suitable for Web (multi-language)
I usually use utf8_general_ci by default in my projects, but recently I found that other developers use utf8_unicode_ci utf8_general_ci: Unicode (multi-language), Case/Case Insensitive…
-
22
votes3
answers51011
viewsHow to send email from localhost using PHP’s mail function?
I want to send emails from localhost. <html> <head> <meta charset="utf-8"> </head> <body> <h1> Olá mundo!</h1> <?php $enviar = mail(…
-
22
votes3
answers63728
viewsAdd days to a date
I need to add 2 more days on a date coming from a variable. I’m doing it this way but it’s not working. $data = '17/11/2014'; echo date($data, strtotime("+2 days"));…
-
22
votes1
answer1099
viewsWhat is the difference between Integer.valueOf() when using String or int parameters?
Why in the lines below the results of System.out are different? Integer teste = Integer.valueOf("0422"); Resultado: 422 Integer teste = Integer.valueOf(0422); Resultado: 274 If step one int it…
-
22
votes2
answers570
viewsWhat is the difference between Object.create or new Object() in Javascript?
I’m going through a technical doubt in Javascript: What’s the difference between Object.create and new Object()? What cases do I have to adopt one over the other?…
-
22
votes2
answers30102
viewsWhat is WSDL (Web Services Description Language)?
Related to: Web Service Type Differences: SOAP, REST, XML What is WSDL? What is your relationship with REST and SOAP? Where I find the WSDL documentation?…
-
22
votes3
answers10939
viewsHow does the C#lock work?
I was just looking at an article by MSDN, but it was not clear why to use this. class Account { decimal balance; private Object thisLock = new Object(); public void Withdraw(decimal amount) { lock…
-
22
votes4
answers13723
viewsHide Javascript code
I’ve been trying for a while to find out if there is any way to hide the Javascript source code from direct access. Is there any way to do this?
javascriptasked 10 years, 6 months ago Diogo Medina 559 -
22
votes1
answer19909
viewsWhat are the advantages and disadvantages between Apache and Nginx?
I see a lot of people recommending Nginx on Apache [HTTP Server], and I can well understand why the first is Event-driven it brings advantages as to scalability (i.e. low memory consumption under…
-
22
votes2
answers1375
viewsWhat is it and what are the advantages of Currying?
This is a very widespread concept in functional languages, but what it is exactly? Why is it advantageous? Bonus point: Is it possible to use it in non-functional languages? Or more generally, in…
terminology characteristic-language functional-programmingasked 10 years, 7 months ago Maniero 444,682 -
22
votes1
answer1448
viewsHow do you decide whether an application is in alpha, beta, RC or RTM?
Each Windows has alpha, beta, RC and RTM versions, and as you advance from left to right in these versions it gets more "ready". As for RC and RTM, I don’t know if this is used in other software,…
-
22
votes5
answers7447
viewsHow to prevent spam in contact forms without using CAPTCHA?
I am looking for a simple and efficient solution to avoid spam in contact forms. The idea is that the customer does not need to inform that he is a "person" (example CAPTCHA), the form presented…
-
22
votes3
answers624
viewsAnalysis and Project in Javascript
When we work with object-oriented languages like Java and C# we have a whole process of analysis and design that helps us to know how to design the application to write more cohesive, less coupled…
-
22
votes3
answers24286
viewsWhat is the difference between <div> and <Section>?
I was reading here about the element <section>. I read the specification, I read some articles about, and I still can’t understand what benefit this element brings that is no longer covered by…
html5asked 10 years, 8 months ago Oralista de Sistemas 23,115 -
22
votes4
answers33277
viewsUsing the keywords Throws and Throw
How do I use the words Throws and Throw in a Java code?
-
22
votes2
answers2225
viewsCompile string as code
There is how I compile a string within C#? Example: Console.WriteLine(\"Hello World\");. Like a eval javascript? 'Cause I had a project to load a code into a text file or something.…
-
22
votes3
answers742
viewsHow to improve the performance of static files on a website?
My site has 10 sheets of styles (CSS) and 15 scripts (Javascript / jQuery), outside the images, this influences a lot in loading. In your opinion, what is the best way to make the site…
-
22
votes7
answers30495
viewsHow to differentiate phone types
I have the following problem: the customer will send me a phone number and I need to differentiate whether it is fixed or mobile, someone knows some rules that distinguish well the two groups?…
-
22
votes6
answers14122
viewsHow to simulate a higher resolution screen to check the behavior of a website?
Is there any way to simulate a higher resolution screen to check how a website behaves? I currently use 1440x900 and need to test the interface at higher resolutions.