Most voted questions
150,413 questions
Sort by count of
-
11
votes3
answers3924
viewsInsert external video or HTML or JS into a div
On the site I’m developing, I’d like to call an external video within a div, just using the video ID. Example: https://www.youtube.com/watch?v=UJAwNkhbYWM In this case the video ID is this:…
-
11
votes2
answers6730
viewsHow does the hash table implementation work?
The concept of hashes (or tables hash) is already embedded in various programming languages such as Javascript, Python, Ruby, etc., and is known to be much faster than, for example, chained lists.…
-
11
votes3
answers2648
viewsAutomatic calculation in text box
Good morning. Is there any way when the user type this in a text box: A script runs the account automatically and results, in this case=1 ? It is also important that it does this with all operations…
-
11
votes5
answers83787
viewsPassing variables through the URL using friendly URL via GET
I am trying to mess with friendly URL. Before, to pass the variables I used for example: pagina.php?variavel=valordavariavel by clicking on this link I could use a echo and display the variable. I…
-
11
votes2
answers2611
viewsWhat are Javascript "mixins"?
What are "mixins"? I see in some Javascript codes and would like to know what it is; real examples of use.
javascriptasked 10 years, 6 months ago Rod 9,412 -
11
votes4
answers28007
viewsHow to read CSV files in Java
I am developing a web application, where after the user uploads a CSV file, my java application needs to read this CSV. Preferably separate the data into fields, for example to add these into a…
-
11
votes5
answers33239
viewsHow to make a character counter of a textarea?
I tried to make one, but always ran into some limitation. I think my logic will not work, but I still could not think of another. Javascript: $(document).on("keydown", "#TxtObservacoes", function ()…
-
11
votes5
answers64148
viewsDifference between two dates in days, hours, minutes and seconds
Problem: How to subtract between two dates and return the value in Days, Hours, Minutes and Seconds in an SQL query with SQL Server 2014? Example: Dados: DataRecebimento DataEnvio 2013-11-29…
-
11
votes1
answer1726
viewsDifference between Stathread and Mtathread
What is the difference between Stathread and Mtathread and when I should use one or the other? Why and how do they only concern the COM?
-
11
votes5
answers29209
viewsReset to input fields after Ubmit with Jquery
By sending input fields values via Jquery to a PHP page I can do the action without "refreshing" the main page but I can’t make input fields "empty" again?!? How to apply "reset" after submission?…
-
11
votes3
answers3726
viewsWhat good is a "self Join"?
I would like an example for me to understand why I use a self relationship on the same table? I have intermediate knowledge in SQL but still do not understand Self Join.
-
11
votes2
answers35240
viewsHow to develop programs for Android through Python?
To develop programs for Android in Python it is necessary to build a framework in such a way that the application is executable on Android phones? I am new as Android programmer, I am studying and I…
-
11
votes3
answers318
viewsIs referring to an element via its id considered bad?
In Javascript, you can refer to any element that has a id (and in some cases a name) using simply an identifier with the same name - without the need to declare it: <div…
-
11
votes2
answers1149
viewsWhat are the metaclasses?
Some modern programming languages such as Ruby implement the so-called "Metaclasses". What is this? What good is? How and when to use?
-
11
votes2
answers2958
viewsWhat are Loaders? How to implement a Loader to load from the database without content Provider and how to implement a custom Loader?
On the Internet, at least in my research, I found little material on Loader in Portuguese. That is why I record here this question, to have documented answers to the android programming community as…
-
11
votes2
answers197
viewsNomenclature or language in lambda
We have that expression: var teste = meucotexto.minhatable.Where(x => x.meu_campo.....) How I read that part x => x.meu_campo Leio x is for x.meu_campo or x of x.meu_campo or something else?…
-
11
votes3
answers3508
viewsHow to make a site multilingual?
I have a site made in PHP, now I came up with the obligation to make the site multilingual. I need to translate titles, menus and error messages. User added texts do not need to be translated. I’ve…
-
11
votes1
answer99
viewsHow to create a "Glass pane" in Javascript?
I’m trying to create a "Glass malfunction" in Javascript, similar to supported by Java. The goal is to offer a kind of interactive help to the user, where information about each element is…
-
11
votes0
answers241
viewsReload form.custom.inpval after saving form
I am developing a system in web2py and I have the following doubt: I made a custom form that has a field that sends an image with preview. The code is like this: {{=data['form'].custom.begin}} {{dsp…
-
11
votes1
answer290
viewsWhat does the semicolon at the beginning of the line mean?
I was going through a code and I found the following excerpt: ;(function ($, window, document, undefined) { //... })(jQuery, window, document); Note that at the beginning of the first line there is…
javascriptasked 10 years, 8 months ago Filipe Moraes 8,737 -
11
votes4
answers2950
viewsDraw where the name cannot be drawn more than once
I need to make a simple drawing software, but I don’t know how to take the names that were entered in the list box and draw one among them. The same name cannot be drawn more than once. How to do…
-
11
votes7
answers57425
viewsCheck/Deselect Checkbox from a button
I would like to use a button to mark/uncheck checkbox. I have this button that calls a function, look: <button class='btn btn-large' type='button' title='Todos' id='todos'…
-
11
votes2
answers15918
viewsDelete lines containing NA in a data frame
I have a data frame and in the fourth column there are several NA cells. I would like to know how to delete all lines that have NA. I used this command but they keep showing up dataframe1 r <-…
-
11
votes2
answers483
viewsASP.NET Identity and Windows Identity Foundation (WIF)?
Once again talking about ASP.NET Identity. There is another theme within this same subject that I believe is of great importance to the community (mainly to me, the main interested). This is the…
-
11
votes1
answer1230
viewsHow to make README.Md multilingual for Github?
In one of my git projects, the archive README.md is in English, so I made another call README-pt.md and a link to navigate between them, for example: [Read this page in English](http....README.md)…
githubasked 10 years, 8 months ago anisanwesley 2,280 -
11
votes3
answers1211
viewsConcepts of Mesomorphic Allocation and Liberation in C#
I’m making a web application that has a finite recursive loop. But during the process the memory consumption is constantly growing and at the end Visual Studio has more than 2 Gigas of memory use. I…
-
11
votes3
answers25097
viewsHow to validate jQuery Validator mobile and landline number?
I need a method of validation of landline and mobile phone with the jQuery Validator plug-in. The differentiation of numbers from fixed to mobile is important to validate the sending of SMS.…
-
11
votes4
answers913
viewsIs multiple includes bad for performance?
If I use many includes on my page will make it slower or something?
-
11
votes1
answer1494
viewsJavascript ternary condition with only one value
A very basic Javascript question, in a ternary condition how can I have action only in an if without the need of Else? Example (test) ? test1() : test2(); If you don’t want anything to happen to…
-
11
votes5
answers17141
viewsIgnore CSS on a particular page snippet
Let’s assume I have some CSS of the type: #foo input { background-color: black; color: white; /* seguem mais um milhão de propriedades */ text-align: center; z-index: 9000; } All input son of foo…
-
11
votes2
answers2686
viewsRunning JAR by Browser
I’m having a hard time figuring out how to do it: What I Wish I want to create a Google Chrome/Firefox extension that when I press a button in the html of my extension, it will run a file. JAR…
-
11
votes3
answers7424
viewsHow to get the last business day of the month?
Is there a reliable Brazilian library of holidays that we can integrate and get the last working day of some month? Anyway, if there is no such library, how could I get the last weekday of any…
-
11
votes2
answers661
viewsWhy does the month numbering of the Date object start at zero?
For example: var data:Date = new Date(); trace(data.month); //Supondo que o mês seja Janeiro: 0 I would like some details, because I know that it is not only in Actionscript and Javascript that this…
-
11
votes1
answer789
viewsDownload text from a textarea as a server-side language-free file
I need the user to click a button to download the text that is within of textarea as a JSON file, for example: User click on button lower -> Start downloading the file textarea.json An example…
-
11
votes1
answer1619
viewsThe order function in R
I don’t understand what happens. Watch > x<-c(-2,4,-6,5,9,7) > x [1] -2 4 -6 5 9 7 > order(x) [1] 3 1 2 4 6 5 I don’t understand why vector x is not ordered. Note, when I give order(x)…
-
11
votes2
answers1331
viewsRuby - What’s the difference if you use two dots or quotes in a string?
In Ruby I can write some things in two different ways: I can do this: :algo Or this: 'algo' What is the difference?
-
11
votes1
answer132
viewsWhy do CDN web addresses not specify protocol?
Usually web addresses start with http:// or https://, but CDN addresses like jQuery and Bootstrap start with //. Example: <link rel="stylesheet"…
-
11
votes1
answer25900
viewsIs it possible to create Android apps using HTML5?
I really wanted to start developing applications for Android phones, but I have almost no knowledge about the operating system SDK, I have more knowledge about HTML, Javascript, CSS. I have in mind…
-
11
votes7
answers3901
viewsWhat does incrementing mean?
I wonder what the term means increase, and in what situation I should use it. I’m learning programming logic and I hear a lot about it, but I don’t understand exactly what it means.
terminologyasked 10 years, 10 months ago user3330978 143 -
11
votes1
answer21808
viewsE-mail with PHP attachments
I am sending an email, everything works fine. Now I wanted to add some files as an attachment. I have the following code: $from = $_SESSION['email_cliente']; $email_destino = "[email protected]";…
-
11
votes2
answers17877
viewsWhat are the syntax of the for loop in java?
Hello! Everyone programming in Java should be tired of using loops for, that almost always has a syntax similar to this: for (int x = 0; x < y; x++) { ... } I was analyzing some codes and came…
-
11
votes2
answers7686
viewsHow the android:Ems attribute works (Textview)
I would like to understand how this attribute works (android:ems). I saw something citing that he acts on the source of the text, but I did not understand how. I tried to do some tests, and did not…
-
11
votes2
answers1153
viewsConsulta Lambda
I have the following consultation at T-SQL: SELECT TOP (60) COUNT(*) AS QTD, SUM(Duration) AS Total, AVG(Duration) AS Media, MIN(Duration) AS Menor, LEFT (TextData, 80) AS TextData FROM Traces WITH…
-
11
votes2
answers677
viewsWhat is the difference between typeof(T) vs. Object.Gettype()
What’s the difference? Is there any difference between performance?
-
11
votes1
answer2651
viewsWhat does the CSS selector :first-Child and :last-Child mean?
I have a code using jQuery that was based on CSS selectors :first-child and :last-child (and that worked for a long time), to get the first input and the last input within a group containing input +…
-
11
votes2
answers536
viewsWhy invert the array index in a for, to popular the array, makes the process faster?
I was doing some tests in Java and I noticed a very strange behavior. I made an array with two dimensions and populated the array in two different ways, filling with random numbers up to 2 31-1 and…
-
11
votes4
answers3455
viewsIs it possible to communicate Client-Server in real time via HTTP?
Using TCP sockets I can put a server app on Listening and have clients connect and wait for requests both on the server and on the client, with the possibility of the server sending information to…
-
11
votes1
answer796
viewsHow to bring the total of each column in Footerrow from a jqGrid?
I’m using the property grouping of jqGrid (4.6.0) with jQuery(1.11.0), but I could only generate the total per column and that’s not what I want, I would like the overall total. jqGrid contains the…
-
11
votes4
answers3989
viewsHow the relationship between the same table works
Performance changes? (Compared to different tables) In which case it could be used? It is recommended?
-
11
votes3
answers2755
viewsHow to assign the results of a function that returns a list of objects?
In R we can make a function return more than one object through a list. But how to assign these objects to two distinct variables? Example: f<-function(){ primeiro<-1:10 segundo<-11:21…