Most voted questions
150,413 questions
Sort by count of
-
9
votes9
answers2096
viewsHow to assign a function with parameters to click without executing it?
Explanation: I have an application that has by default an event mostraGrupos() and when it is executed, at the end it detaches itself from the element and tries to assign the function…
-
9
votes3
answers1650
viewsHow to make a POST that passes beyond the form, a file?
My question is the following: I can pass to the controller OR the file OR form. I wanted to know if there is any type (like Formcollection, but this apparently only receives the form itself, the…
-
9
votes2
answers588
viewsWeb Components - What is the difference between Polymer and Reactjs?
With the advancement of the web, we now also have the web components. Google created and maintains a framework named Polymer, although it does not have much compatibility with several browsers. At…
-
9
votes2
answers4470
viewsConvert date dd/mm/yyyy to yyyy-mm-dd’T'HH:mm:ss
How do I convert a date into format dd/mm/yyyy for the format supported by Sqlite yyyy-MM-dd'T'HH:mm:ss? Example: public static String converteStringEmData(String stringData) throws ParseException {…
-
9
votes3
answers3926
viewsWhat is XHTML and when should it be used?
What I know is that XHTML needs to be valid XML. This implies, for example, that all tags need to be closed. For example: Errado: <br> Certo: <br/> But what is the use of it? What is it…
-
9
votes1
answer1585
viewsWhat is the difference between Knockoutjs and Angularjs/Emberjs?
What’s the difference between Knockoutjs and Angularjs/Emberjs? What I’ve been researching: Apparently Knockoutjs has a much smaller learning curve, can be integrated into existing static sites and…
-
9
votes2
answers11971
viewsHow to count selected checkbox quantity
I’m trying to make a code that checks how many checkboxes are checked by clicking a button, because I’m making a system that duplicates records. I have a list with several checkboxes, and when the…
-
9
votes1
answer15796
viewsMapping and getting mileage between two points
I’m developing a web application, and I’m getting two addresses for a text field, and I’m using to calculate the distance the Matrix API from Google Maps, until then beauty, but I also wanted to…
-
9
votes1
answer304
viewsRead message from USSD Android code
Using the API on Android is possible to communicate via USSD? It is possible otherwise? If yes how can I get, in Java, the reply message when entering a USSD code?
-
9
votes2
answers9737
viewsHow to send email with PHP?
I have a site under construction that people have the possibility to insert an email, I would like as soon as they insert their email and click on the "sign up" button, be sent an automatic reply…
-
9
votes1
answer25431
viewsHow to make a click shoot another click?
I wonder if there’s a way to click on an element by clicking on another place, something like this: jQuery $("#button1").click(function(){ $("#button2").click(); }); I tried that and it didn’t work.…
-
9
votes1
answer5915
viewsGeneric Tree, how to do?
I’m trying to assemble a Generic Tree in java to assemble a Boolean expression within a gene expression algorithm, this tree would hold several types of variables, I’m not sure which is the most…
-
9
votes1
answer536
viewsWhy do we have to use mplements?
What’s the difference between using btn.setOnClickListener(new OnClickListener() { and public class MainActivity extends Activity implements OnClickListener{ I’ve been doing an Android course and my…
-
9
votes1
answer391
viewsInterruption of an asynchronous request
What happens when the user, for example, reloads the page with an asynchronous request in progress? Does the server continue to run the script? And how can I interrupt an ongoing request via JS?…
-
9
votes1
answer1846
viewsWhat is the difference between "action based" and "Component based" MVC?
This answer of this question reflects the advantages and disadvantages of each, but without explaining the difference between them. I ask you: What’s the difference between them? Examples of…
-
9
votes1
answer2214
viewsJavascript performance: switch or if nested?
Which of the two alternatives provides the best performance in Javascript: nested switch or if? if { ... } else { if { ... } else { if { ... } else { ... } } } or switch(expression) { case n: code…
-
9
votes2
answers55209
viewsSet OPTION as SELECTED based on database values
I am preparing a form where I am setting the values of the fields with the database data. I’m having trouble setting the chosen option as selected to the <select/> in the code below: PHP…
-
9
votes2
answers660
viewsCDN vs. join JS/CSS
Among the performance recommendations of a web system are: Use CDN (in case of jQuery, Bootstrap, etc) Join JS and CSS to decrease the number of requests Turns out those two rules go against each…
-
9
votes1
answer936
viewsIn the Entity Framework, do the Singleordefault() and Firstordefault() methods exhibit different behaviors?
What are the differences between SingleOrDefault() and FirstOrDefault(), and when to use?
-
9
votes2
answers418
viewsWhich improves the performance: use "async" or put <script> at the bottom of the page?
It is often cited as good practice for performance: Tag <script></script> at the bottom of the page, before the </body> Async: <script async="async" src="..."…
javascriptasked 10 years, 8 months ago user7261 -
9
votes2
answers3245
viewsRecord audio and stream live
I need to record audio and broadcast live, I found that with HTML5 and Javascript/jQuery is possible and that has plugins that can help me. I’m wearing one of them, the Mediastreamrecorder and I’m…
-
9
votes2
answers2639
viewsHow to hide source code from PHP file?
I developed a system and the place where I work wants to distribute it to all the branches, I have no intention of charging for it while I work there, but if one day I leave yes. The system is made…
-
9
votes2
answers3065
viewsMysql Nicknames in Inner Join
I tried to do this internal merge in SQL to connect two tables in my report. What I’d be doing wrong, why is giving "ffccf column unknown", even though I nicknamed the column? Follows the code:…
mysqlasked 10 years, 8 months ago Ramon Ruan 1,018 -
9
votes1
answer5967
viewsWhat’s the difference between drawing in Activity and in Fragment?
After the last SDK update in Eclipse, when creating a new project, a fragment next to activity_main. I would like to know why the fragment, since before it opened directly to activity_main. Is there…
-
9
votes4
answers243
viewsWithin a decision structure, does the order of terms change the outcome?
Is there any difference between: if (variavelA == variavelB) and if (variavelB == variavelA) In Java and C#, is there a difference between the examples? I stress that the question is not limited to…
-
9
votes4
answers2855
viewsHow to merge multiple text files into one?
Does anyone know how to select all text files from the same directory and join the information of all of them in just one final text file? Example: In folder X, I have files 1.txt, 2.txt and 3.txt.…
-
9
votes2
answers9432
viewsCreating app that runs in the background
Some famous apps, among them Facebook, Whatsapp, Hangouts, use a service running in the background that does not end even with the disconnection/ connection of the device. My question is how to…
androidasked 10 years, 8 months ago Geison Santos 4,428 -
9
votes1
answer261
viewsOptimize the collision between particles
I need to optimize as much as possible the algorithm that makes the particles collide, is there anything that can be done to do that? And I also want to add a background image, it’s possible?…
-
9
votes1
answer17765
viewsFill Data Grid View with object property
I have a form where I need to fill out a DataGridView with data from a user list. To generate this data, I used 3 classes: User class namespace TesteDataGridView { public class Usuario { public int…
-
9
votes2
answers312
viewsPHP : Upload File
I’m here with a problem making one upload of an XML file in PHP. I have a form that allows me to select a file: <form id="upload" action='' method='post' enctype="multipart/form-data" >…
-
9
votes3
answers1021
viewsHow to add object properties in Javascript?
Suppose an object as follows: vendas = { obs1:{ Venda1:{Regiao:"Norte", Valor: 200}, Venda2:{Regiao:"Sul", Valor:100} }, obs2:{ Venda1:{Regiao:"Norte", Valor: 50}, Venda2:{Regiao:"Sul", Valor:20} }…
javascriptasked 10 years, 9 months ago Carlos Cinelli 16,826 -
9
votes3
answers26625
viewsSimple comparison between dates
I need a simple comparison between javascript dates the end date cannot be less than the start date. I found some scripts on the internet and tried to adapt to mine, but since I know practically…
javascriptasked 10 years, 9 months ago Vinicius 425 -
9
votes3
answers1225
viewsMysql Transaction When? How? Why?
I’ve been reading the question What is a Mysql Transaction for? and I was left with many doubts on this subject. When we should use transactions? Why should we use transactions? How we should use…
-
9
votes2
answers471
viewsFactorial series from thehuxley.com site
Make a program that calculates and writes the sum of the n first series terms: seriefatorial http://www.thehuxley.com/data/images/app/problems/temp/e68085c6d699d2c7029907f994c57b80.png Input format…
-
9
votes3
answers2326
viewsCSS Transition top
I’m creating a CSS that simulates cards from a deck, with cards and card hands. When a one-hand card is selected it is highlighted above the others. This works well, but I would like to apply a…
-
9
votes1
answer4141
viewsHow to load js scripts dynamically?
I am developing a web system that needs to load js files dynamically. The reason for this is that there is a necessary logic for selecting which scripts are required, so that unnecessary scripts are…
javascriptasked 10 years, 9 months ago SomeDeveloper 18,074 -
9
votes1
answer7577
viewsHow to customize the arrow of a select
I have a price list, it has a select for the person to choose the payment cycle as shown in the image: which I did with CSS: -webkit-appearance:none; background:#E9E9E9…
-
9
votes2
answers6651
viewsImage Upload
I am trying to upload images to my application. I have made a prototype upload, but it does not show the image, but its ID or NAME. And I’m uploading it to a folder I created in my project. My…
-
9
votes1
answer138
viewsSwitching from 16 to 64 bits while booting an Intel PC compatible
Some time ago I studied to create a draft operating system for Intel PC compatible computers, which actually didn’t need to do much, besides putting the computer in 32-bit mode, handle keyboard…
-
9
votes2
answers990
viewsHow to verify collision between particles?
I need to know how to make each circle collide with each other along with the part of how I’m going to go in such a direction after this collision. This is the class of the main program window:…
-
9
votes4
answers1531
viewsHow to assign a value to an Enum with binary notation?
To work with hexadecimal numbers, just add 0x in front of the number, this way: var numeroHexa = 0xff1120; The same goes for octal numbers, adding the 0: var numeroOct = 037; But how do you declare…
-
9
votes2
answers4878
viewsJavascript function does not wait for another to start
Problem My role is not waiting for the other to be finished so it can continue, for example: Example: function buscando_dados(){ $.post('ajax.php',{},function(dados){ alert(dados); }); } function…
-
9
votes1
answer343
viewsHTML5 video without context menu
How to disable the right mouse button context menu in videos, so the video menuzinho does not appear? $('#nome').contextmenu( function() { return false; }); The above code, but does not work in…
-
9
votes2
answers2006
viewsProblem with delay in jquery
The delay of this function in jquery is not getting, wanted to know the reason, or another way to make a delay in it. $("header").delay(1000).css("display", "none");…
-
9
votes2
answers4809
viewsEntity Framework with Oracle Banks
I am creating an application in which will use an Oracle database, but when inserting the .edmx (Entity Data Model) I came across the following situation! I can’t create a connection with Oracle…
-
9
votes3
answers2329
viewsCSS: Firefox and Chrome problem using padding
When I define the padding of some div gives a difference of 1px, I’m building a menu, defines the padding in #menu ul li a and the difference from one browser to the other is more 4 px, there’s some…
-
9
votes4
answers47343
viewsRemove element from an Arraylist in Java
I’m having trouble removing an element from my Arraylist, someone can help me as? public String remover(Pessoa umaPessoa) { String mensagem = "\n******** Pessoa removida com Sucesso! ********\n";…
-
9
votes1
answer402
viewsIs it true (yet?) that each Tor router maintains a connection with each other router? Why?
The original article describing the tor project, in the first paragraph of section 4, it says: Each onion router (Onion router) maintains a TLS connection with each other onion router. The paper is…
-
9
votes2
answers1210
viewsHow to list more than 50 Youtube videos using Curl
I’m needing to return all videos from a particular youtube user, but my current function only returns 50, which is the maximum allowed by the API. there is some method of doing this? $cURL =…
-
9
votes3
answers4914
viewsRun VBA code from text file
I have a code in VBA that queries the database and saves it in a text file, but to run this script I have to open the Excel and perform the macro, this process has to be carried out from minute to…
vbaasked 10 years, 10 months ago Lucio Rubens 3,384