Most voted questions
150,413 questions
Sort by count of
-
12
votes3
answers3527
viewsHow to find the Javascript version (via code)?
Is there any simple way [or not] to find out which version of Javascript is being used in a particular browser - by the code itself written in Javascript? Something like:…
javascriptasked 9 years, 5 months ago Wallace Maxters 102,340 -
12
votes2
answers322
viewsComparison of search algorithms within text strings
I am trying to implement the following algorithms for searching expressions within Java text strings: Knuth-Morris-Pratt (KMP), Brute Force, Boyer-Moore and Levenshtein How could show the similarity…
-
12
votes3
answers3072
viewsHow to convert a string to List<int>
I have the following variable and would like to convert it to an integer list: string variavel = "1,2,3"; How to convert it to a list of integers?
-
12
votes1
answer2421
viewsWhat is the best way to store money in Sqlite?
Li that post on the lack of precision of double, and virtually every link in the post. Then I realized that this was a vulnerability of my software in production (since I have rounds to every corner…
-
12
votes2
answers1942
viewsHow to insert EMOJI - SMARTFONES into Mysql database with PHP?
Well, since the question is very self-explanatory I will only reinforce the question. I have an APP chat system, which through the HTML, command to PHP with Ajax, but if the usurer tries to insert…
-
12
votes1
answer6642
viewsWhat is a memory dump?
What is a dump from memory? How it can help in the possible identification of an inconsistency in the code? How the analysis is performed?
-
12
votes3
answers1869
viewsWhy (1 == true) is "true" and (2 == true) is "false"?
I was explaining to a friend of mine the difference between == and === in PHP and wanted to demonstrate this through the javascript console. I was going to demonstrate to him that in PHP, the…
-
12
votes3
answers423
viewsHow to choose a digital certificate? What to take into account?
I’m working in a virtual store, and I need to know which is the best certificate Custo x Benefício, need to indicate a certificate to the client, but this is the first time I work with a.…
-
12
votes2
answers2549
viewsCodeigniter + Pagseguro
I’m having some difficulty to integrate a system with pagseguro using codeigniter. I’ve already downloaded the official pagseguro library.…
-
12
votes4
answers23451
viewsHow to convert seconds to "Hour:Minute:Second" format?
How can I convert a value in seconds to a format of 'hours:minutes:seconds'. Example: 685 converted to 00:11:25 As I can do?
-
12
votes1
answer2987
viewsCan I sell a product by-product under the Apache License 2.0?
I’m working on a project with Opencart (as freelancer) and need to use a certain extension, but the extension is outdated (compared to Opencart) and licensed under Apache 2.0. So I was thinking of…
licenseasked 9 years, 6 months ago KaduAmaral 11,472 -
12
votes4
answers24420
viewsTurning HTML into PDF
I noticed that on the website of Banco do Brasil it is possible to choose the output format of a voucher txt, pdf, csv without the need to resubmit the page. Is there a library that converts the…
-
12
votes4
answers17968
viewsRemove elements from a Python List
I have a problem with lists in Python. I have a list of 2 different variables with the same value, but if I remove an element from any of the lists, the list that was meant to be intact also has its…
-
12
votes2
answers2820
viewsWhat’s the difference between @import of css and html Link?
I created a file containing css that are used in my system. I wonder what is the difference between calling css by link or by @import thus: /* ou dentro do codEventos.css */ @import "../padrao.css";…
-
12
votes2
answers613
viewsDynamically delete multiple lines with PDO?
Let’s say I have a user table (id | nome) and that where they are listed (client-side) i can select several of them and delete them at the same time. How could I do this in a Mysql database using…
-
12
votes3
answers10354
viewsInsert with accents in Oracle
When I make one INSERT for example: INSERT INTO TESTE (NOME) VALUES ('INSCRIÇÃO ESTADUAL'); You’re saving it on the table this way: REGISTER THE STATE And on the screen displays "INSCRIÃÃO…
-
12
votes6
answers16210
viewsHow do I return a value in the Brazilian currency format in the Django view?
How to return the value 1768 in BRL currency format 1.768,00 in the Django view? def moeda(request): valor = 1768 # formata o valor return HttpResponse('Valor: %s' % valor)…
-
12
votes1
answer1008
viewsProblems with JSF Fileupload
I am able to save the disk image in this JSF project <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"…
-
12
votes2
answers1823
viewsCan I use Empty and isset in a variable?
Follow an example: if(isset($_POST['nome']) && !empty($_POST['nome'])) { session_start(); $_SESSION['nome'] = $_POST['nome']; } See demonstração If I can’t use this, what would be…
-
12
votes2
answers732
viewsHow to leave an invisible Tabpage inside a Tabcontrol?
How can I leave a certain invisible Tabpage inside a Tabcontrol ?
-
12
votes2
answers11353
viewsWhat is the correct way to stop a "for" loop?
Let’s say I have this loop for that works based on my array name: var nomes = ["Nome 1", "Nome 2", "Nome 3"]; for(i = 0; i <= 2; i++) { if(nomes[i] == "Nome 2") { console.log(nomes[i]);…
-
12
votes4
answers15034
viewsDifference between mysql_connect() and mysqli_connect() functions in PHP
I wanted to know the difference between the two and which is the best one to use. $x= mysqli_connect("localhost","my_user","my_password","my_db"); $y= mysql_connect("localhost", "my_user",…
-
12
votes2
answers1221
viewsSpring Security with Java EE
Hello, I am developing a Maven Enterprise Application EAR project and am currently implementing the authorization part using Spring Security with Annotation instead of xml. Structure of the Project:…
-
12
votes1
answer20870
viewsWhat does compiling mean?
I have some questions about the process of compiling a code: What is the compilation process? How it works? What are the steps in the compilation process? What is the difference between build x…
-
12
votes2
answers274
viewsIs there a hash structure in R?
Is there any hash structure in R, similar to Python and javascript Dictionaries? This makes programming much easier.
rasked 9 years, 9 months ago Guilherme Duarte 918 -
12
votes1
answer6870
viewsDate problem with globalize.js and jquery.validation.globalize.js. How to resolve?
I’m having problems with the date fields of my application. Follow this answer that seemed more appropriate, Datetime field error message, I configured my ASP.NET MVC application as follows: I…
-
12
votes2
answers15638
viewsWhat is the difference between Function and Procedure?
What are the differences between the two, and examples of where and generally are used.
-
12
votes3
answers2583
viewsinclude, require inside functions methods
Use include (or require) within a function or method may cause some conflict or problem with older versions of PHP (such as 5.3)? I noticed that most frameworks working with MVC use require within a…
-
12
votes2
answers1688
viewsDesign Patterns in C?
I’ve initiated the development of a system embedded in pure C. The project requires detailed documentation of software and hardware, as well as using the recommended design standards. It is known…
-
12
votes4
answers8023
viewsWhen to use size_t?
Already research on the subject, but I always end up getting confused. I found a article in English that explains very well some reasons for the existence of the type and how to use it. According to…
-
12
votes2
answers1331
viewsWhat is the difference between Animation and Transition CSS
What is the difference between the properties animation: and transition: of the CSS?
-
12
votes4
answers23448
viewsVehicle consultation by the Board on the site sinesp via PHP - without captcha
Someone managed to query Sinesp, via php ? I’m trying to get this code to work but without success. $placa = 'KCK2486'; $request = '<?xml version="1.0" encoding="utf-8" standalone="yes"…
phpasked 9 years, 9 months ago Pedro Augusto 2,392 -
12
votes3
answers10773
viewsIs it possible to use Java pointers?
In the C language we can use ponteiros as follows: int *ponteiro, teste; ponteiro = &teste; And in Java there is some alternative?
-
12
votes1
answer498
viewsIs a framework based on a programming language?
I know that a framework is like an application to be used in applications, but it is correct to say that a framework is based on a certain language? Example: jQuery is a Javascript-based framework…
-
12
votes2
answers1195
viewsDifference from #! in the first line of a Python script
For a Python script to be executable on a Linux/Unix-based operating system, it must start with the designated shebang (#!): #! /usr/bin/env python But followed by the same I have seen used two…
-
12
votes4
answers20055
viewsHow to open a pop-up without using Javascript?
How to open a pop-up without using onclick or any other Javascript function?
-
12
votes1
answer832
viewsWhat is the baseline?
Studying Flexbox (layout type in HTML/CSS), I came across this concept of baseline, I’ve never seen before: align-items ... ... baseline: items are aligned so that their baselines line up Looking…
-
12
votes2
answers151
viewsName for anonymous functions
In some example code frameworks, libs, etc. I found that anonymous functions were passed with a name to the same. minhaFuncao(function minhaFuncaoAnonima() { // ... }); What is the purpose of naming…
-
12
votes3
answers1382
viewsHow do I delete a file, which has quotes in the name, by CMD?
I am deleting a folder from my hard drive and could delete everything except that file. Because it has quotes, I can’t use short names, and I can’t erase it the way it is. I tried to fsutil file…
-
12
votes1
answer129
viewsHow to extract the path to the file
In a variable that contains the path to a file and its name, the file name can be extracted as follows: #!/bin/bash filenamepath="/caminho/para/ficheiro.pdf" filename=$(basename $filenamepath) Which…
-
12
votes3
answers2689
viewsHow to rename all tables in a Mysql database
I have a Mysql database with several tables and am migrating to another database. I have Client and must stay Cliente_pe I have product and should stay How can I accomplish this without however…
-
12
votes2
answers11673
viewsRemove a property from an object contained in an array
I have a variable array: Bola = []; I added the properties to it: Bola[0] = { peso:0.5, cor:"branca", marca:"nike", nota:8 }; Bola[1] = { peso:0.7, cor:"verde", marca:"adidas", nota:9 }; I would…
javascriptasked 9 years, 10 months ago Joao Paulo 11,760 -
12
votes1
answer10002
viewsDifferences between Natural Join and Inner Join
What characteristics differentiate a consultation performed with the use of Natural Join other with the use of Inner Join? Is there any question related to performance or any other condition that…
-
12
votes2
answers2347
viewsWhy does my Try/catch only accept "Exception and" (Generic)?
I want to specify the exceptions, not in this general way but the item.write only accepted Exception e public File saveFile(FileItem item, File dirFile, String filename) { dirFile.mkdirs(); File…
-
12
votes4
answers1580
viewsIs this a common practice in object orientation?
In object orientation, one way to ensure encapsulation is to maintain the attributes of the private classes and modify their state via methods. In addition, to ensure the integrity of objects, it is…
-
12
votes2
answers699
viewsOrigin of object orientation
I have been working for 4 years with object orientation but to this day I have not asked myself the origin of this paradigm. What I’m trying to understand, basically, is what were the motivations…
-
12
votes3
answers419
viewsAssign type to parameters
It is possible to assign types for the parameters in functions in PHP? Example: public function random(int $length) { // ... }
-
12
votes2
answers2077
viewsWhat Class Does in Python
I’m new to programming but there’s one thing I don’t understand. What’s the point of class in Python? Because it seems to me that with function I can do everything without using class. I’ve already…
-
12
votes1
answer225
viewsDoes the name size of a variable affect your weight?
There’s a size difference between that: string packet1234 = "123"; And that? string packert1234556 = "123";
-
12
votes4
answers19850
viewsHow to get the key pressed?
I’m breaking my head to create a function that returns the code of the pressed key. I found this: function inicializa(){ document.addEventListener('keydown', pegaTecla); } function pegaTecla(){ var…
javascriptasked 9 years, 11 months ago Leandro Macedo 1,143