Most voted questions
150,413 questions
Sort by count of
-
15
votes1
answer357
viewsHow to use Bilge and stream?
I can understand expressions lambdas perfectly in simple cases such as: () -> 42 // Não recebe nada e sempre retorna "42" x -> x*x // Recebe algo e retorna seu quadrado (x,y) -> x + y //…
-
15
votes0
answers312
viewsCardview does not display JSON information
Guys I’m trying to set some information in a Cardview, where these are obtained from a JSON, however, it does not display, the information search this ok, it returns the values normally but does not…
-
15
votes3
answers16809
viewsHow to generate an executable . jar using Maven?
Is it necessary to make some extra configuration to generate a Maven executable . jar? How have I never used this technology under development desktop I’m a little lost. When I build the project…
-
15
votes5
answers667
viewsUse JS to relieve PHP
Well, I have a PHP file that generates a document (I get it by AJAX). This document goes through some functions (which I did in PHP), such as converting a string to code, adding fields.. Well, for…
-
15
votes1
answer7582
viewsWhat is the advantage of using CHAR instead of VARCHAR?
What is the advantage of using CHAR instead of VARCHAR in database since the advantages of VARCHAR exceed those of CHAR (if it has? ). There is time difference of field size definition since VARCHAR…
-
15
votes3
answers2003
viewsIn PHP the correct is Else if or elseif?
In PHP, the correct is else if or elseif? What’s the difference between them? The language allows writing everything together and separately, and apparently the results are identical…
-
15
votes3
answers5066
viewsWhat is parallel programming?
I have some doubts about parallel programming: What is parallel programming? It is a technique or a programming paradigm? Is there a specific language for parallel programming? Where parallel…
-
15
votes1
answer1791
viewsHow to apply Dexes to improve the performance of the queries?
I’m looking to increase the performance of my database, which has over 1 million records. Research I have undertaken Sobre index link1 Cluster-wise link1 Link2 Doubt The idea of cluster it seemed…
-
15
votes1
answer7144
viewsWhat is Data Warehouse and what are its advantages and disadvantages?
What is Data Warehouse and what are the advantages and disadvantages of using it.
-
15
votes3
answers10708
viewsWhat is the main difference between a Tuple and a List?
What are the differences between a Tuple and a List in the Python? Example: >a = [1, 2, 3] # [1, 2, 3] >b = (1, 2, 3) # (1, 2, 3) The Tuple, grotesquely speaking, it is a constant that accepts…
-
15
votes1
answer398
viewsWhat does '2>' and '&>' mean in Bash?
I’m starting to study Bash and while analyzing some codes on Github, I came across the following excerpts for creating a Heme: which rbenv &> /dev/null || return $(node -v 2> /dev/null)…
bashasked 9 years, 11 months ago filipelinhares 2,417 -
15
votes4
answers957
viewsMultiple Contexts Migrations Entity Framework
I have several projects and each project has a context. I would like to know, how to use the Migrations to update and generate only one database of these various contexts?
-
15
votes1
answer2041
viewsSQL LIMIT parameterized in PHP with PDO
A few days ago, I stopped using the functions mysql_*(already obsolete), and I switched to PDO. I have a function that does query database, but I’m having some problems using the LIMIT with Prepared…
-
15
votes2
answers500
viewsDoes data received from HTTPS come encrypted?
If I install certificate SSL and use HTTPS on my website, for example, I run a form POST, form data arrives encrypted to the server? If yes, how to decrypt using PHP?.…
-
15
votes1
answer693
viewsHow to discover the mobile operator of Android?
I’m developing an app on Eclipse and I want it to work only on devices of a particular carrier. Any idea how to check the operator?
-
15
votes4
answers92747
viewsConvert String to whole in Java
How do I capture a String of the user through the Scanner and turn into whole?
-
15
votes1
answer2407
viewsHow to update my Mysql code to Mysqli?
I have codes that use mysql and need to upgrade to mysqli. I need to make two changes, being them on the pages .php which insert the data into the database table and also into the pages displaying…
-
15
votes1
answer318
viewsHow do Proguard remove a class method?
I’m not getting Proguard 4.10 to make a method static turn inline. I can only do that with instance methods. For example, this little bit: public final class Calc { private int x = 0; public int…
-
15
votes4
answers6237
viewsHow does the "#include" directive work?
C++ "include" does what exactly? I know it "matters" a header/library. But if I have a Header. h com: #include <string> using namespace std; string a() { return "PTSO"; } and on Main.cpp:…
-
15
votes1
answer214
viewsIs it possible to make a text box with negative border Radius?
I would like to do this negative curve using CSS or Jquery, it is possible?
-
15
votes1
answer10089
viewsDifference between Integer.valueOf(String) and Integer.parseint(String)
I need to convert a String in int, and I came across these two options, which have an equal result. Is there any difference between them? Is there any rule/convention that says which to use or is…
-
15
votes3
answers17342
viewsHow to use more than one separation character in the split() method?
I’d like to break a String in various substrings, for this I am using the method split(). Turns out, I’m not sure which characters might be in the variable I use. Exemplifying: String words[] =…
-
15
votes2
answers2992
viewsDecimal places of the float
I am developing an application to control product sales. However, sometimes the added value of reports does not beat decimal places. Gives small differences. How to make the float stop giving these…
-
15
votes2
answers2622
viewsWhat to save in a login session?
I am developing a login system in PHP and Mysql for an administration panel, and I have seen many "secure" login systems where they store in the session the user login or password, that is when they…
-
15
votes1
answer1351
viewsWhat is an ergonomic?
1) What the concept or meaning of Ergonomics? 2) What features should a software possess to be considered ergonomic?
-
15
votes3
answers5859
viewsDevelop for multiple platforms using C# and Xamarin Studio
To not have to learn various technologies to develop for the various mobile platforms, wanted to use only C#. However I have some doubts, namely: Xamarin Studio is free? With the same code, the…
-
15
votes1
answer37878
viewsXms, Xmx, XX:Maxpermsize, XX:Permsize - What’s the difference?
I need to improve the performance and availability of my Glassfish application server that from time to time causes the application to launch Outofmemory error. Searching the internet, I checked…
-
15
votes3
answers1089
viewsWhat are the pros and cons of indexing vectors by zero or one?
Most programming languages I know have zero as the first index of a vector. I know that several programming languages have content um as the first vector index. Until recently I thought this was…
-
15
votes2
answers7861
viewsCreating and Validating Java Digital Signature
I’m trying to sign a test NFE with a self-signed digital certificate through the code below. The code at first works, the signature is generated in the file and the validation done through the…
-
15
votes3
answers1122
viewsIs it possible to manipulate PHP errors via code?
As you all know, PHP returns runtime syntax errors in the browser, such as fatal errors and exceptions. It is possible to handle these errors via code so that I can save to the database in a table…
-
15
votes5
answers3666
viewsHow do I know the last commit to move the same file as my commit?
I actually read the question How do I see which commits change a certain file? It’s almost what I need, in case what I want to know is if it’s possible I get the last commit that changed any file…
gitasked 10 years, 4 months ago Felipe Avelar 9,507 -
15
votes6
answers21826
viewsHow to remove auto-fill inputs?
I have my email input/password. But always when typing an email that I have already saved login/password, the browser automatically fills in my form. How to solve?
-
15
votes1
answer105429
viewsInsert line break (enter) using HTML codes
I’m trying to enter/break a line (\n, <br />, etc) in a title an html element. To do so, I searched for HTML Codes something that was equivalent to   used to give a "space". I found…
htmlasked 10 years, 4 months ago CesarMiguel 4,800 -
15
votes1
answer166
viewsWhy does HTML accept color with random names/strings in the <body> tag?
Some time ago I read somewhere about it, but I never understood how it works: Take the example with the word 'chucknorris': jsfiddle Not only with the word 'chucknorris' but any random word always…
htmlasked 10 years, 5 months ago Franchesco 5,144 -
15
votes2
answers2610
viewsWhen to use prototype (JS)
What’s the difference between: Person.prototype.sayHello = function() { alert("Hello, I'm " + this.firstName); }; and Person.sayHello = function() { alert("Hello, I'm " + this.firstName); }; ?…
javascriptasked 10 years, 5 months ago helderburato 1,019 -
15
votes3
answers2752
viewsWhat are indexes in SQL Server for?
For what the index serves, I know it improves performance, but what the database does behind that improves this performance. When is it recommended to use? And where should I use an index?
-
15
votes1
answer167
viewsWhat is the character function ? in the variable type in C#?
I see many third-party codes and I often see the use of the question mark on the type of the variable. Example: public bool? Status Could someone explain to me the difference between not having this…
-
15
votes1
answer1050
viewsReserved word "this"
I would like an explanation with an example if possible on the reserved word this in Java, I didn’t understand very well.
javaasked 10 years, 6 months ago Bruno Neuman 559 -
15
votes2
answers921
viewsWhat is the use of pointers?
What is the use of pointer pointers, example: int var; int *p; int **pp; var = 50; I even understand the use of the simple pointer(*), but why use another pointer to reference this?…
c++asked 10 years, 6 months ago Weslley C X Sardinha 1,427 -
15
votes3
answers6360
viewsWhat is Google Polymer?
I saw some recent studies on foreign websites about this Google Polymer, but still not understood where it should be used, for example in a mobile application. I could not find Brazilian blogs or…
-
15
votes4
answers844
viewsrtrim() to remove "<br>" also removes the letter "r" if it is the last letter in the string
If a string ends with an HTML tag, for example <br> or <hr>, when making use of the PHP function rtrim() to clear said tag, in cases where the letter immediately before is an "r", the…
-
15
votes3
answers1209
viewsWhat is SQL? How to use?
I already know at least that SQL has relation with database, with the query of values in database. But it’s not clear what would be SQL. What would you use this resource for? And how do you use SQL,…
-
15
votes4
answers1443
viewsShould an enumeration be constant in the lifetime of the solution?
Modern languages often have a type of enumeration that is usually a range of related constants. Its members are usually constant. In most languages this is even guaranteed by the compiler. But…
software-engineering encoding-style enums constant lifespanasked 10 years, 7 months ago Maniero 444,682 -
15
votes1
answer9351
viewsWhat are the differences between Wireframe, Prototype and Mockup?
In the contexts of Interaction Design, Usability and User Experience, there are differences between the artifacts called Wireframe, Prototype and Mockup? If yes, what are?…
-
15
votes1
answer2705
viewsHow to sort array of strings disregarding accents?
If I have an array like the following: exemplo = ["Árvore", "Casa", "Computador", "É", "Poste", "Pássaro", "Índia", "Ar", "Ásia"] The exemplo.sort() considers the accentuation of the words to order,…
-
15
votes2
answers2984
viewsGoogle Play private app
There is the possibility to do the upload of an app for Google Play and it is only available for a list of users of my interest? As happens on youtube that can only see that video who has permission…
-
15
votes2
answers7112
viewsHow to translate a website into PHP?
I’m making a simple website with just a few pages PHP. I would like this page to be translatable to portuguese and english. I already use the function gettext in python and saw that in PHP the…
-
15
votes3
answers22703
viewsWhen is the use of composite primary key recommended?
A key simple is associated with a single value, or field, of the record. A key composed corresponds to the combination of two or more keys, and may be required to eliminate ambiguity by forming a…
-
15
votes2
answers298
viewsDoes the syntax '//' have any special meaning?
I was using Notepad++ (v 6.5) to write a javascript file when I noticed the following: I wrote a comment line starting with ///, three instead of the usual two. When running this line seems to be…
-
15
votes1
answer17504
viewsHow to smooth the scroll of a page?
How do you make the scroll (scroll bar) of a page smooth? And if you can, how to customize it. Example: http://themenectar.com/demo/salient/blog/…