Most voted questions
150,413 questions
Sort by count of
-
6
votes1
answer110
viewsToggle javascript functions
In my code there is a button, which, when clicked, plays a song <div class="botao" id="btn1"><audio id="audio1" controls loop="true" style=" visibility: hidden;"> <source…
-
6
votes3
answers4229
viewsCheck the running time of a Javascript function
I wonder if it is possible to know the running time of a certain javascript function.. This function does not need to bring external data, it can only handle form tags, set value, calculate fields,…
-
6
votes1
answer856
viewsHow to separate HTML files into a MVC architecture?
I have an application that uses Angular.js, which I started using now and never understood how to apply the concept of MVC to a project. I have two HTML pages, veiculo.html and index.html, both are…
-
6
votes2
answers338
viewsComments on regular expressions?
REGEX is a very complicated language and not easy to read, but is there any way to describe what that little letter does? Example: Nessa regex: \{.*?[^\}]+\} will capture everything you have in a…
-
6
votes2
answers894
viewsJavascript does not work if it is placed in the head tag
Guys, I need the "Tag Script" inside the "Tag Head" but unfortunately it’s only working when I put it at the end of the html. Please, if anyone knows the reason why this is happening, please help.…
-
6
votes1
answer803
viewsHow to use parse.com?
With the parse.with it is necessary to pass my database to their website? I have a database on the company server, and I don’t intend to put it on their website. They offer the option to access my…
-
6
votes1
answer226
viewsWhy a loop FOR faster than 10 FOR together
I made a for alone count up to 1000000 (sending 1 message each loop) and it took 14 seconds. public class main { public static void main(String[] args) throws InterruptedException { long init =…
-
6
votes2
answers15301
viewsDate formatting with Calendar dd/MM/yyyy
I’m having trouble formatting the date to the dd/MM/yyyy format Como aparece: Sat Feb 26 11:38:28 BRT 2015 Como eu quero que apareça: 04-07-2015 Here’s how I show it on the screen…
-
6
votes2
answers963
viewsThe if command in java is not working within a method
I’m a beginner and I’m not getting my code to work as expected with regard to "if/Else". I am using this command within a method and doing as follows: private boolean AutentificaSenha(String s) {…
-
6
votes2
answers7676
viewsHow to add SQL Server dependency to Maven?
I’m trying to add dependency on SQL Server in my POM but gives Missing Artifact. <dependency> <groupId>com.microsoft.sqlserver</groupId>…
-
6
votes3
answers14381
viewsAre there interfaces in python?
In languages like PHP and Java, there are interfaces, which, when implemented in a class, requires it to contain the methods of this interface in the same way as they were declared. Example in PHP:…
-
6
votes1
answer53
viewsClass standards
I’m not getting literature in Portuguese, so I found an article in English that I didn’t quite understand the concept, someone could help me by explaining the differences: Writing a Class with the…
-
6
votes1
answer1428
viewsInfinite scroll in Angularjs with external JSON
I’m having a bit of trouble creating an infinite scroll in Angularjs from a JSON file generated on an external site. What I need is for the infinite scroll to be called when the variable item posts…
-
6
votes1
answer305
viewsString para Date
I’m creating some parsers and was doing some tests to develop Date’s. This code: value = '2015-12-31 23:16:00' value = value.replace(/(\d{4}-\d{2}-\d{2}) ?(\d{2}:\d{2})?(:\d{2})?.*/, '$1T$2$3');…
-
6
votes5
answers2278
viewsIs it safe to use $_GET in PHP? (Parameter in URL)
In the old days it was very common to visit web pages and see on URL the parameters being passed right there, on the website of php.net it shows that it is already obsolete, there are sites like…
-
6
votes2
answers680
viewsReal time update on Android apps
Looking at the API from instagram and doing searches on the internet I came across a big question, how they do synchronization of data in Real Time without having to save "photos and videos" in…
-
6
votes2
answers12679
viewsWhere to find the android database path?
SQLiteDatabase BancoDados = null; String NomeBanco = "Cadastro"; CriaBanco(); public void CriaBanco(){ try{ BancoDados = openOrCreateDatabase(NomeBanco, MODE_WORLD_READABLE, null); String SQL =…
-
6
votes1
answer217
viewsWhat is behind the malloc() dynamic allocation function?
What mechanisms the function malloc() uses in practice to manage dynamic memory allocation in a program?
-
6
votes1
answer688
viewsHow to print music sheet music in PDF?
I’m developing a website for a church where music scores will be available on a particular part of the website for the orchestra members, and I have no idea how to do that. I was thinking of using…
-
6
votes3
answers3015
views -
6
votes2
answers415
viewsHow to check if Eval has null value?
I’m using the Eval property to load a field from GridView instantiated an object, the problem is when the object has no value , instead of appearing blank wanted to show a dash indicating that…
-
6
votes1
answer742
viewsImprove the performance of a query
How could I improve this query, which returns me the top 10 sales to assemble a chart, so that it processes more quickly? set @startDate :='2015-01-03'; set @endDate :='2015-05-31'; set @dst_id:=1;…
-
6
votes1
answer609
viewsMysql JOIN with or without Foreign key?
What’s the difference between relating 2 tables using and not using a Foreign key? With regard to performance, it is recommended to use Foreign key to make the relationship? In which situation would…
-
6
votes2
answers942
viewsProperly configured hibernate does not insert into database
My code does not enter in the database Mysql. It identifies all database, tables and fields, but insertion is not done. Usuariodao.java package br.com.sistec.dao; import org.hibernate.Session;…
-
6
votes1
answer4297
viewsConfigure FTP on AWS
need to configure FTP to access the folders inside /var/www on a server in AWS, using Filezilla. Can you help me?
-
6
votes1
answer361
viewsHow to Run Javascript in Java 8’s Nashorn Engine Programmatically
From Java 8 we have a new engine for Javascript execution, this is Nashorn. Which Java SE platform classes are involved in engine discovery and script execution? How to run Javascript through the…
-
6
votes1
answer1044
viewsSave the result of a variable to the Mysql database using python passed as parameter
I have a database on mysql which contains a table with several expressions. I can extract the expressions through a procedure, solve them, but when I want to return the value of the calculation to…
-
6
votes1
answer7019
viewsReceive vector size
I would like to know how to have the size of my vector in VBA. I searched some things but could not locate anything. How can I recover this value?
vbaasked 9 years, 8 months ago Paulo Henrique Gallo 105 -
6
votes1
answer7000
viewsTreat event when closing browser
I am having problems regarding this event handling when closing the browser using javascript. I did some research and found an idea through onbeforeunload: <script> window.onbeforeunload =…
-
6
votes1
answer1761
viewsHow to validate format and compare two dates to enable buttons
I am using a script* to enable a button when two validations are made. The first one checks the format, and the second one if the initial date is lower than the final one, but I’m having some…
-
6
votes2
answers679
viewsMenu to select color
I’m making a tool, and I need a menu for color selection. Could someone tell me how to do? Something like that:
-
6
votes1
answer781
viewsConnection pool with ADO.NET and Sqlconnection Dispose, what is correct to do?
I asked a question yesterday about What is the difference between Idisposable implementations? I was implementing a class to help obtain instances of SqlConnection, SqlCommand, SqlDataReader methods…
-
6
votes1
answer400
viewsHow to Change the VM Heap Space on a Netbeans Platform Project
I’m having the following problem: I have a project from Application of the Netbeans Platform that during the execution the application hangs for good and nothing else responds (one minute of…
-
6
votes1
answer276
viewsWhat is the assignment in Action parameter method for?
I had a question regarding some codes I found in a project of a former employee of the company. It is a code that contains assignment in the parameters of the variables. Below follows an example:…
-
6
votes2
answers1068
views2 Foreign key in one field
Good, I have 3 tables: Athlete Id (Pk) Name Athlete Id (PK) Name Nfed Escorts Id (PK) Name Type Athlete (FK) The field Athlete on the table Escorts is the Id table Athlete and table Athlete. How do…
mysqlasked 9 years, 8 months ago Bruno Gibellino 1,110 -
6
votes1
answer5665
viewsResize an image in a canvas element with js
Problem Image resizing with Javascript Possible solution Use the widget canvas to redesign the image, resize it and then render the image again. Below will be cited 2 cases of use merely…
-
6
votes2
answers8910
viewsPopulating selects of cities and states with AJAX (PHP and jQuery Mobile)
I’m riding a webapp with the Jquery Mobile, PHP and AJAX framework. In this app I have a form with selects of ESTADO and CIDADE, was made an AJAX that when selects the ESTADO, carries the CIDADES…
-
6
votes1
answer2358
viewsHow to send data via POST and recover in a PHP?
How to send the data via POST with send-json method, value 0, following my PHP code: // Recupera os dados $nomeUsuario = $_POST['nome']; $cpfUsuario = $_POST['cpf']; $bairroUsuario =…
-
6
votes1
answer1287
viewsHow to resolve Networkonmainthreadexception error?
I have an error in passing the JSON HTTP Client to Android. Follow my JSON code: // constructor public void JSONParser() {} public JSONObject getJSONFromUrl(String url) { // Making HTTP request try…
-
6
votes1
answer7886
viewsHow to view two files side by side in Notepad++?
You can view two files side by side on Notepad++? For example, in the vim, the command :split does that.
notepad++asked 9 years, 8 months ago Fábio Perez 1,662 -
6
votes1
answer989
viewsHow to reduce the size of a variable passed via POST by compressing it
My application in Android picks up the String sends to the arquivo.php that processes the data. I soon realized I couldn’t pass the code on base64 to the arquivo.php. I need some function in java…
-
6
votes2
answers466
viewsIs there a model to document the "Ubiquitous language" in the DDD?
I would like to know if there is a model to be followed for documentation of linguagem ubíqua or Ubiquitous language DDD. (ubiquitous language) Explaining better, it would be something that would…
-
6
votes1
answer347
viewsHow to distinguish FALSE from empty string?
Various PHP functions (e. g. Splfileobject::fgets) return FALSE in case of error (e.g. end of file), but can also return an empty string (in this example, if the file has an empty line); it is…
phpasked 9 years, 8 months ago user25930 -
6
votes2
answers2492
viewsJOIN with two columns in the same table
Good morning. How can I make a two column JOIN in the same table? On the table quotation, has the column with cpf_cnpj from warhead and fate. SELECT cotacao.*, clienteOrigem.ID_Cliente as…
-
6
votes3
answers954
viewsVertical slider navigation including highlight thumbnails
There is a slider here on this website that has a vertical navigation that is located on the right side, which includes the thumbnails of the previous slides and also of the following slides. I’d…
-
6
votes1
answer125
viewsWhat are the risks of putting an ASP.NET application in an environment with Load Balancing?
Regarding the code... there is some risk that may affect my application from the moment it works in a Load Balancing scenario?
-
6
votes3
answers1165
viewsProblem leaving automatic field width in responsive layout
I have the following situation. I’m working on a responsive layout that features three columns, left sidebar, center and right... It turns out that inside the right sidebar there is a text field and…
-
6
votes1
answer2687
viewsString signature in Base64
In my project, I have a rule that I need to sign the string of a XML that I have you on Base64 with the user’s CPF... I’ve been doing some research, but I couldn’t quite understand how this…
-
6
votes1
answer1179
viewsSend SMS via Php
I was using a gateway for texting (nowsms) however the evaluation period ended and I went to buy the license, U$995 to send 12 sms per minute, I did not find viable. Searching found a Php-Serial…
-
6
votes2
answers12917
viewsWhat is the difference between a symbolic link and a hard link?
In the Unix context, what is the difference between a symbolic link (soft link) and a hard link and which commands are used to create them?