Most voted questions
150,413 questions
Sort by count of
-
9
votes2
answers148
viewsWhy does the Chrome console return 8 when I type 010?
You could tell me why when I type on the console 010 and press enter it returns to me 8 ? and if I type 0100 he returns me 64.
-
9
votes3
answers1414
viewsIs it possible to obtain timestamps with millisecond fractions accuracy?
I have to calculate the running time of a javascript function, I have my code ready and working, my only problem is the limit of the getMilliseconds() that only goes up to 999 and the execution of…
javascriptasked 10 years, 10 months ago ralfting 812 -
9
votes5
answers7529
viewsHow to search recursively using grep
How to search for a given word recursively in all files in the current directory and its subdirectories? I tried to travel with: find . | grep "palavra"
-
9
votes2
answers835
viewsHow to make an effect by adding a new item to a list
I have a list that updates from time to time and would like to add an effect equal to this site: Website It’s the list that’s in the middle of the site. Where, when a new item enters the list, the…
-
9
votes4
answers459
viewsWhat happens when I convert int to char?
A whole has 4 bytes, whereas a char has only 1 byte. When I make that definition: int a = 1000; // 1111101000 char b = (char) a; I believe it will take only 1 byte of data, but what I want to know…
-
9
votes1
answer11808
viewsHow does parseFloat()' function work?
I wanted someone to explain to me how this function works. For example: What is the difference of: var valor1 = 50; var valor2 = 40; var result = valor1 + valor2 To: var valor1 = 50; var valor2 =…
javascriptasked 10 years, 10 months ago Samir Braga 10,016 -
9
votes1
answer478
viewsProblem with Background Html/Css
I created a id in css with a background. When I put the div in html the background looks beautiful, but when I put a <form>, the part he occupies turns white. Note: when I put the text in bold…
-
9
votes1
answer159
viewsHow to find a table by category with minimum observations?
Suppose you have the following data: a<-c(rep("agosto",3),rep("janeiro",4),rep("maio",6)) table(a) I want to know the month with the minimum of observations? With the function min(table(a)) the…
-
9
votes1
answer666
viewsMulti-step form, losing values of variables when page changes
We have three PHP pages with html form. In the first page we have the fields showing the values of the variables and the fields Hidden containing the values of the variables like this: <input…
-
9
votes2
answers4823
viewsHow to access a specific RAM location by address?
I’m starting to study C/C++ pointers and it was something that caught my attention by the robustness and the range of possibilities. However, I can only access memory positions by assigning to my…
-
9
votes1
answer6826
viewsHow to transform non-digital data into digital data
I would like to know how you would develop a software that displays the statistics of a car for example. Speed is not a digital data until I turn it into one. How to do it ? Is microcontroller,…
-
9
votes1
answer58526
viewsHow do I make a SELECT in 2 or more Tables with 2 or more conditions?
I have a problem making a select with the following conditions: I want to show the data either with condition1 or with condition2 Select * tabela inner join tabela2 WHERE campo = 0 and campo2 = ''…
-
9
votes3
answers1784
viewsHow to format a table (data.frame) with pdf publishing quality (latex) in R?
Suppose the following table: tabela <- structure(list(Sexo = structure(c(1L, 1L, 2L, 2L), .Label = c("Homem", "Mulher"), class = "factor"), Grupo = structure(c(1L, 2L, 1L, 2L), .Label = c("A",…
-
9
votes0
answers219
viewsSimulate Insufficient Balance Error in Paypal
I am developing an application for Android in which I need to integrate Paypal in the purchase part, I am using Paypal Sandbox to test, seemed to be working perfectly. I create my personal account…
-
9
votes2
answers3276
viewsHow to make a Stored Procedure dynamic by taking data from other tables in the database?
I’m on a project to build a social network with the @Rodrigoborth, and we have the problem of How to index and update a user comparison system... We were given the idea of working with Stored…
-
9
votes2
answers6704
viewsCreating JAR with Maven dependencies
I want to use the Maven to generate the JAR with its dependencies in format .jar, the solutions I found are not valid. The Eclipse has three forms of generate a executable JAR. Extract required…
-
9
votes2
answers5943
viewsConvert row to column
I have a field called "Shift" kind STRING, storing data in Mysql in this way: '1,2,3,4,5,6,7,8,9' I need this string line to transform (transpose) into a single column (in this case, it would be the…
-
9
votes2
answers185
viewsHow to make an IO "equivalence" in Java and C++?
I made the following code in C++: #include <iostream> template <typename type> class Foo { public: Foo(type FooTest) { std::cout << "Foo " << FooTest; } }; int main { new…
-
9
votes2
answers991
viewsHow to select element in the lowest hierarchical level?
I need to select the ul parent of the element li that is being clicked. But as a li is inside the other javascript understands that I am clicking on li and in all li parents. <ul…
-
9
votes3
answers740
viewsIs sending data to the same form a good method?
I have a login form, which after given submit he is sent to himself with the information via POST, and if it is wrong, it displays an error message and shows the same form again. I did so to avoid…
-
9
votes4
answers601
viewsInternal navigation with Jquery
I have the following structure in my header: <header> ... <div id="header-reserva" class="cf"> <a href="#header-reserva-iframe" class="scroll">Reserve aqui!</a> </div>…
-
9
votes2
answers1921
viewsAsync operations on ASP.NET
When it is advantageous to use asynchronous operations in an application ASP.NET (classic, MVC, MVC Web API)? When do I use the ThreadPool to perform some operations may be useful?…
-
9
votes2
answers33949
viewsHow to catch the current year on ORACLE?
I need to get the annual year on ORACLE, but I only know how to get the current date, so: SELECT SYSDATE FROM DUAL You can manipulate it to get only the Year?
-
9
votes3
answers949
viewsScrypt, Bcrypt or anything else
I’m choosing a hash algorithm for passwords from a system I develop. At the beginning of my "programmatic" I used the MD5, the SHA-1 and its derivantes. After a while I preferred the Whirlpool and…
-
9
votes4
answers14813
viewsI need to lock Ctrl+v in a text box
I want to create an input type="text" which does not allow them to glue anything to it. You do not need to present any alert or anything like that, just don’t allow the necklace.…
-
9
votes3
answers465
viewsHide image generated by Javascript
I am using the sharethis plugin to share content on social networks. For this I am making the following call: <script type="text/javascript"…
-
9
votes6
answers2374
viewsHow to select all "empty" elements
Is there any way to select all the empty elements of a page? For some reason that I cannot explain, the code below does not select the input without text on my page: $("input[value=''],…
-
9
votes2
answers3211
viewsHow to improve considerably the security of Apache?
I am setting up a web server using Apache. My question is the following: Which modules I use to improve security against malicious attacks and hits on the pages posted on my server? I know there are…
-
9
votes2
answers1950
viewsClose connection to database c#
I am making a login system and get the message of sql Exception when I try to create new account in the database: MySqlCommand usuaExiste = new MySqlCommand( "SELECT * FROM contas WHERE nome =…
-
9
votes3
answers1752
viewsHow to take the current position of a div by his class?
For example: <div class="container"> <div class="position"></div> <!-- Essa tinha que ser position [0]--> <div class="position"></div> <!-- Essa tinha que ser…
-
9
votes2
answers5356
viewsUsing methods from a DLL
I am in need of using methods from a DLL that was developed by third party. I only have the file ". DLL". DLL documentation is scarce... there is an example of the method execution I need in VB…
-
9
votes1
answer589
viewsSSL socket dying on client and no errors on server
I have a problem with connections with Sockets ssl in python When performing a stress test on the SMTP daemon I am writing the client some sending threads die with "Connection reset by peer" ,…
-
9
votes3
answers2241
viewsHow to control tuition and access to the application?
I’m developing a system that should block the access of those who do not pay the monthly bill. I took a look at the design Boletophp for generating billets and partially attends me. I can generate…
phpasked 10 years, 11 months ago Lucas Marçal Dos Santos 135 -
9
votes4
answers8280
viewsHow to put the regression line on a graph?
Suppose a linear regression model like the following: set.seed(1) x <- rnorm(100) y <- rnorm(100) + 2*x +10 modelo <- lm(y~x) If I plot y against x, how do I include the regression line in…
-
9
votes2
answers8587
viewsHosting Windows Azure website for free?
Windows Azure allows a 30-day trial time to test the platform, but what about after that? There is a free application hosting option. net, but it is not clear if Voce will have some cost or after…
windows-azureasked 10 years, 11 months ago Eduardo Bottcher 709 -
9
votes3
answers2825
viewsCheck whether a date and time (timestamp) represents the current day
I have a table with the following field: dh_send (TIMESTAMP) and I want to mount a query to get all records of this table in which the dh_send is equal to the current date (TODAY). I thought as…
-
9
votes1
answer3748
viewsHow to create automatic subdomains from a form?
I am developing a large system, which already serves almost 30 companies in the state and some more are to join. The system is accessed by companies from this url: meudomínio.com.br/business1…
-
9
votes1
answer5562
viewsCreating timer with JAVA
Guys in need of a help here want to make a timer with Jframe more not being able to make it repeat until it reaches zero, and if I leave the setRepeats in true I can’t make it stop when it reaches…
-
9
votes2
answers29287
viewsTake JSON data array and print with jQuery
I have a JSON in the following format: { "representantes": [ { "nome": "Foo LTDA", "endereco": "Alameda dos Anjos", "cep": "12345-000", "telefone": "(11) 1234-1234", "site": "www.foo.com.br",…
-
9
votes1
answer4824
viewsJavascript code documentation standard and automatic documentation generation on Ides and exportable
Java has the Javadoc, PHP has Phpdoc and other languages, has documentation standards. Which standard most used to document javascript, already integrated with Ides, so that when using functions, it…
-
9
votes4
answers5887
viewsIs it possible to clone objects in Delphi?
It is possible to clone objects in Delphi at runtime? For example, there is a Data Module with a zTable. If I use that zTable on two screens at the same time, with different filters, the second…
delphiasked 10 years, 11 months ago Thiago Thaison 1,938 -
9
votes7
answers30383
viewsHow to dump a Mysql database with PHP?
Currently, to export only the structure of a given database, I use the following: mysqldump -h host -u usuario --no-data --database banco > dump.sql -psenha This generates an SQL file, all…
-
9
votes3
answers2597
viewsHow to write commands in a console program through a batch (.bat) file?
I want to automate a routine through a .bat which will call a console program which, in turn, will receive successive commands from this .bat. This console program could be, for example, an ftp…
-
9
votes5
answers10429
viewsHow to exchange the value of two variables in Java?
You can create a Java function that changes the value of two variables without having to declare a temporary variable? For example: int a = 8, b = 3; if(a > b) { // algo aqui, sem declarar uma…
-
9
votes3
answers308
viewsHow to "create" a variable in "Runtime"?
I’m doing a project that implements a Python-style console. It has several functions, it has many things. But I need to implement a command called set. set declare a character string and define its…
-
9
votes1
answer1077
viewsHow to run a group of suites in Junit?
I have the following suites below: @RunWith(Suite.class) // this other matters @Suite.SuiteClasses({ TestC.class, TestB.class, TestA.class }) public class MySuiteA {} @RunWith(Suite.class) // this…
-
9
votes7
answers16282
viewsUnderstanding the JSON file
I have a code similar to this on Jsfiddle. On my home WAMP server I did to try working with JSON (Jsfiddle does not contain the JSON file to test). In a question I asked about how to insert data…
-
9
votes7
answers31206
viewsHow to insert data into DB with jQuery/Javascript without using PHP?
I am learning Javascript and jQuery and I am wanting to make a small site to test the insertion of data in a database. I have no knowledge in PHP, I wonder if it is possible to insert data in a…
-
9
votes3
answers2321
viewsIncrement version automatically, and get version number via code
In the software in which I am working there are users, whose doubts should be met by observing the version number of the software. Something like 10.0.1.1000 configured in project properties. I…
-
9
votes1
answer774
viewsRewrite URL for "root" accesses but do not block access to sub-domains
I have the following code that rewrites the entered URL to correctly identify the areas, sub-areas and content ID the visitor is trying to access: # Rewrite the url <IfModule mod_rewrite.c>…