Most voted questions
150,413 questions
Sort by count of
-
11
votes3
answers1611
viewsDynamic property name in Javascript
I have the following code: var nomePropriedade = "Propriedade1"; var meuObjeto = { "nome" : "valor" } I would like the property name of meuObjeto received the variable value nomePropriedade. Thus,…
-
11
votes3
answers681
viewsLearning in neural networks
How does learning occur in neural networks? What’s the concept behind it? What is your relationship with "Deep Learning"?
artificial-intelligenceasked 9 years, 5 months ago Cold 3,842 -
11
votes1
answer336
viewsWhy serialize object to send in another Activity?
What is the explanation for serializing the object both using the implementation serializable or Parcelable. I know this serves to create a new instance of the object in the other activity, but why…
-
11
votes3
answers25171
viewsHow to write multiple lines in Python?
How can I write a string with multiple lines in Python? As I come from PHP, I usually do so: $string = " uma linha outra linha2 " Or else: $string = <<<EOT uma linha outra linha EOT; When I…
-
11
votes4
answers1541
viewsWhat is the difference between "++$variable" for "$variable++"?
What’s the difference between ++$variavel for $variavel++? I realize that when I execute a for with both forms, the results are the same. Example 1: for ($i = 0; $i < 3; $i++) echo $i; Prints: 0…
-
11
votes1
answer338
viewsC libraries outside the ANSI standard
I am aware that, a C program in ANSI standard can be compiled both on Windows, both on Linux. But when it comes to using sockets? That’s not part of the pattern ANSI C? Because when I use sockets in…
-
11
votes2
answers1506
viewsWhat is the difference between assigning and comparing string variables with function or with assignment and comparison operator?
I came across the following questions: What is the difference between expressions strcpy (s, t) e s = t ? What is the difference between expressions if (strcmp (s, t) < 0) e if (s < t) ? I…
-
11
votes5
answers1015
viewsLine with image in the middle
I wanted to style a hr to support an image in the middle. Type: ------ image ------ I thought of making the image already with line ready in Photoshop, but this makes it difficult to be responsive.…
-
11
votes3
answers794
viewsWhich CSS properties prefixes are compatible with Edge?
With launch of Windows 10 Microsoft eventually retired Internet Explorer, changing the default browser to the Microsoft Edge. To support CSS properties that have not yet been standardized by W3Cen,…
-
11
votes3
answers533
viewsPure Java and Android App
I’m a beginner in Java. I preferred to start studying pure Java, that is, I discarded studying by dragging components. I met Javafx; I preferred to study the construction of these components at hand…
-
11
votes1
answer415
viewsWhy should we use functions that start with mb_?
Sometimes, problems arise in PHP in relation to some string functions, because of the condition of them. An example, is the strlen. $a = strlen('str'); $b = strlen('stré'); var_dump($a, $b); //…
phpasked 9 years, 6 months ago Wallace Maxters 102,340 -
11
votes1
answer886
viewsMultiple Controllers with Javafx 2, as a reference to each other’s instance
UPDATED. I am creating a new Java application using Javafx, when programming with Swing I had the habit of creating multiple specialized controllers for the interface, and in Swing I use a…
-
11
votes1
answer1518
viewsHow to get hardware and system information?
I found only the class Runtime, but it returns only values in numbers, such as total memory and processors. Is there any API that returns data from hardware (processor version, RAM, architecture,…
-
11
votes1
answer1662
viewsError sending Upload with Ajax
I am trying to send a file via Upload to a certain folder but I am not able to do and not understanding the error being accused by the script, I will try to be as clear as possible in the…
-
11
votes2
answers1560
viewsHow to create an aquivo. h?
What good is a arquivo.h and what improvement it brings to the program in C++?
-
11
votes1
answer3443
viewsUser-friendly URL using HTACCESS
I have the following link: dominio.com/?p=filmes_v&m=tt081692 Man .htaccess <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^film/?$ index.php?p=filmes [NC,L] RewriteRule…
-
11
votes3
answers181
viewsWhy in Javascript, 7 (a number) is not an instance of Number?
When we do the following test below, it is returned false. console.log(7 instanceof Number); // FALSE However, in the second test, it is returned true. var number = new Number('3');…
javascriptasked 9 years, 6 months ago Wallace Maxters 102,340 -
11
votes4
answers1737
viewsHow to use "wildcard" in "CLASS" selectors with jQuery.expr?
The class selectors as .exemplo or sorted selectors by spacing [atributo~=valor] behave totally different from selectors like: [atributo=valor] [atributo*=valor] [atributo^=valor] The .exemplo and…
jqueryasked 9 years, 6 months ago Guilherme Nascimento 98,651 -
11
votes2
answers578
viewsRadio stream with Phonegap
I’m developing a App, I have the function below and it is perfect for an online radio. I would like to add others but am not sure how. Follows the function: // Radio Controller var radio = null; var…
-
11
votes1
answer27744
viewsConcatenate Strings into Java Loops - Stringbuilder or '+'?
Java allows us to concatenate Strings in Java using only the operator '+' String str = "a" + "b" + "c"; It’s a simple way to do the job, and much less verbose than with Stringbuilder. But in cases…
-
11
votes3
answers191
viewsHas the standard Java output function accepted several parameters?
My teacher taught the class to use the System.out.println("Mensagem") this way for the class (the type of total_alunos it doesn’t matter): System.out.println("Existem ", total_alunos, " alunos na…
javaasked 9 years, 7 months ago Rafael Almeida 2,585 -
11
votes1
answer395
viewsContinuous integration and agile methodologies
Continuous integration is obligatorily related to agile methodologies? My question is: Is it possible to integrate in order to enable continuous delivery even though there is no agile methodology in…
-
11
votes1
answer255
viewsCanonicalized Mapping and Weakreference
I would like someone to explain the concept (and applications) of Canonicalizing Mapping and how your reference implementation would work using Weakhashmap.…
java performance memory-management hashmap garbage-collectorasked 9 years, 7 months ago Reginaldo Soares 2,256 -
11
votes3
answers487
viewsNavigate horizontal scroll by pressing tab
I’m using the plugin datatables. I built a table where the first four columns are fixed and the others (which will be generated "dynamically") have input for quantity typing. My intention is that…
-
11
votes2
answers32556
viewsHow to remove duplicate lines efficiently?
I’m normalizing a table here and found that there are duplicate lines. The way I chose to clear these lines is through the: CREATE TABLE tabela_nova AS ( SELECT DISTINCT * FROM tabela_antiga ); The…
-
11
votes5
answers1091
viewsPros and cons of a 100% HTML/Javascript web application
I am seriously thinking of developing a web application, using only HTML/Javascript on client-side for performance gain and by which, any and all necessary communication with the server is made…
javascript html web-service web-application single-page-applicationasked 9 years, 7 months ago Iago Correia Guimarães 799 -
11
votes1
answer916
viewsProblems with installing Pip (python package manager)
I use Mac OS and use HomeBrew as a package manager. I installed the python 2.7.10. Together with this installation was to have occurred the pip. However the following problem occurs: ==>…
-
11
votes1
answer455
viewsDetect phase change, Navigator.online
I wear this navigator.onLine to check if the user is connected, however I need to constantly check and use setInterval for this, there is a more elegant way that leaves this gambiarra behind type a…
javascriptasked 9 years, 8 months ago Vinícius Lara 3,750 -
11
votes3
answers3031
viewsWhat better way to create an app that works offline and automatically encrypt data with a server?
I’m deepening into the world Mobile, where I had the first challenge, which is to create a App Android basic registration, name, age, etc. The tricky (at least for me) is that I have to update this…
-
11
votes1
answer8418
viewsWhat does this anti-roboe code in Javascript do?
What this anti-roboe code in Javascript does? <html><head></head><body onload="challenge();"> <script> eval(function(p,a,c,k,e,r){e=function(c){return…
-
11
votes2
answers335
viewsSplit a String dynamically based on screen size
I’m working on an android app and at some point I get a string from a web-service that is quite large, and the client wants this String (which will be shown in a Edittext) be divided into multiple…
-
11
votes5
answers838
viewsIs it possible to integrate GIT with some task manager?
Is there any way to integrate some task manager (let’s say, Trello) where the developer, when giving a commit in his activity, makes the association of the same with some specific task? In research…
-
11
votes2
answers2562
viewsHow to implement the hidden layer in a character recognition neural network?
I’m studying neural networks - more specifically multilayer perceptron neural networks (MLP) - and I’m having some doubts about implementing such a network for character recognition. The question is…
-
11
votes3
answers5893
viewsWhat is operator overload?
In some programming languages such as C++ it is possible to overload operators. What is and what serves?
-
11
votes3
answers11380
viewsHow to copy objects in java
You can make an object copy in Java? MinhaClasse mc = new MinhaClasse(); MinhaClasse mc2 = mc; But I wanted to make changes in mc2 unaffected mc.…
javaasked 9 years, 9 months ago Messias Lima 199 -
11
votes4
answers781
viewsHTML/PHP Detect if form value has been changed
I have a form where I can change things like username, password, morada, etc. On the site I also use a session (login) for each user, which is defined by username. The problem is that by changing…
-
11
votes1
answer12600
viewsHow to remove python-installed packages
downloaded a package with wget, unzipped and downloaded the folder, used the command: python setup.py install It ran without errors, but now I no longer use this program, what is the correct way to…
-
11
votes2
answers4523
viewsInner Class in Java, when to use?
Sometimes I find class codes with Inner class, such as: class ClasseExterna { private int a = 10; // ... class InnerClass { public void accessOuter() { System.out.println("Outra classe " + a); } //…
-
11
votes2
answers1260
viewsJava future in Chrome - possible complications
According to this news from Techtudo Chrome will no longer support the NPAPI protocol used by java to communicate between java and Chrome I have many web programs that need java running, I wonder if…
-
11
votes2
answers1626
viewsHow to use and what is the user-select property for
I’m learning front-end and came across on that website with a CSS property called user-select, I didn’t understand what it was for and I couldn’t find a good explanation. I’d like you to explain to…
-
11
votes3
answers4722
viewsHow to create a box with lines on both sides with CSS only
I’m looking for a help from where to start to be able to create a fully css structure as in the image below. I know this may seem very simple, but I can’t get you started.…
-
11
votes4
answers16866
viewsHow to know which DATETIME format is used in a given column of SQL Server?
I have a table on SQL Server and one of the camps was created as DATETIME. How should I know query or SQL Server Studio, what format default used of this DATETIME in my SQL Server?…
-
11
votes3
answers505
viewsWhat are the native exceptions of PHP?
Where it is possible to check all exceptions (native) that can be released by PHP? I searched and only found ways to treat with try/catch.
-
11
votes3
answers175
viewsWhat is the most correct way to make a query with LINQ?
I am trying to make a LINQ query in my BD SQL Server, but the result of it always comes 'null'. I need the first user ID I query. This is the way I try to consult: public decimal…
-
11
votes2
answers1324
viewsHow to use Template in C++?
I’m learning a little about template and made an example, but when I went to apply to my project I couldn’t, let’s go to the following test: #include <iostream> using namespace std; template…
-
11
votes1
answer1160
viewsWhat’s the difference between Vent and Delegate?
I see how it works delegate and event, but I saw no use of event. For example: public delegate void ChangedEventHandler(object sender, BaseEventArgs e); public ChangedEventHandler Changed; The code…
-
11
votes3
answers1771
viewsCode comments when working in a group
When working in a group, developing code with other people, using specific tools and everything, what is the best way to comment on the code? Well, let’s go to the stage. By owning the project in…
-
11
votes2
answers280
viewsHow to implement a library that has features similar to jQuery?
I would like to create a very simple library containing only the functions I most use, following an idea similar to those in jQuery. For example: I created the following function to get an element:…
javascriptasked 9 years, 10 months ago Renan Gomes 19,011 -
11
votes1
answer152
viewsConvert PDF document pages to Jpgs
The following code is working within the desired, where it receives parameters in order to convert all pages of a PDF file into JPG files: ID (natural number) Absolute path (must exist and point to…
-
11
votes2
answers299
viewsC operator precedence table
In C why y = (y=2 , y+3) returns 5 if the + has priority over = and the ,?