Most voted questions
150,413 questions
Sort by count of
-
13
votes1
answer641
viewsHow does the Conditional Random Fields algorithm work?
I’ve been researching the algorithm for a long time "Conditional Random Fields", but I can’t find any deep explanation for how it works and I can’t understand it. I understood that it would be a…
algorithm artificial-intelligence machine-learningasked 8 years, 5 months ago Nicolas Bontempo 1,652 -
13
votes2
answers864
viewsDifferences between Jagged Array and Multidimensional Array in c#?
There is difference in these arrays in c#? int[][][] int[,,] As far as I can see, it’s the same thing, but c# can’t cast from one to the other.
-
13
votes3
answers4688
viewsWhat is the difference between Function() {} and () => {}? Why doesn’t $http.get work?
When I use $http.get('/products').then((response) => { this.products = response.data; this.allProducts = response.data; }); the page is loaded with the products in Google Chrome, but when I use…
-
13
votes2
answers2090
viewsWhat is the IL code and where can I find this code?
In my question about static builders the user Maniero showed how is the code generated from a static constructor by . NET, this code is called Code IL according to his reply. See the IL code of my…
-
13
votes3
answers25273
viewsTable and column nomenclature
For at least four years I’ve been working with the following table and column nomenclature which is exactly like this: The column name will always be tableName + column name =…
-
13
votes1
answer292
viewsWhat is the difference between "using" and "using Static"?
In a question I asked about C#, @Maniero answered me and put an example code in Dotnetfiddle. The code is this: using static System.Console; public class Program { public static void Main() { var…
-
13
votes3
answers1511
viewsHow can I replace a part of a string by itself plus the "~" character?
How can I replace a part of a string by itself plus the character "~"? I’m doing it this way: only when the string has two equal numbers as the 51 that comes just after AP and the contained in the…
-
13
votes1
answer924
viewsWhen does it make sense to have only static methods and attributes in a class?
Studying about static methods and attributes in OOP, I came across the following question: because in some codes we have ONLY classes with static attributes and methods? Is there a design pattern…
-
13
votes2
answers618
viewsHow to list methods of a class in C#?
Again I have to say this: I come from PHP and am learning C# now. I usually like to list the methods that the class has, because I always did this in PHP, to test or debug. $a = new ArrayObject();…
-
13
votes2
answers4510
viewsWhat is the difference between Activity, Fragmentactivity and Fragment?
What are the differences in functioning, performance etc. in inheriting from each of the classes in controllers views (XML) on Android?
-
13
votes2
answers2429
viewsHow to recognize and change the encoding of Latin characters in R?
Is there any efficient way to recognize the encoding of texts downloaded from the internet? I made a scraping of any site (see code below) and I can’t find the correct encoding. In the META tag of…
-
13
votes1
answer546
viewsFilter locations in an area of X km
I am trying to set up a small project where I have a list of locations and can filter them according to a x km amount. Ex: Filter all places within a 5km radius of my current location. I have a Json…
-
13
votes2
answers791
viewsApprove or refuse a request through Handlerinterceptoradapter
It is known that all requisitions by @RequestMapping are "public", where any user can access them through the browser. The question is, how to approve Requests where only the system can request and…
-
13
votes1
answer1673
viewsHow to do a text break in Excel programmatically with a C check #
I am using the Microsoft.Office.Interop.Excel to create an Excel report from a txt file. Everything works perfect, but sometimes some columns become extremely large and when we need to print, it is…
-
13
votes2
answers1019
viewsConvert.Tostring() and . Tostring()
Is there any glaring difference between them? Whether in performance or ways of dealing, what are their particularities? What would be the correct way to use (if there is any difference)?
-
13
votes2
answers2284
viewsTODO - What is, what is its utility and how to use it?
I’ve seen enough of that word "ALL OVER", especially in IDE’s and I’ve always been curious to know what it is. Example: // TODO: alguma coisa escrita código.... Now the questions: WHAT’S ALL? What…
-
13
votes1
answer180
views"this" a reliable reference?
Situation I was riding a widget when I started to analyze a possible error, because by the tests actually occurred : Testing document.getElementById('teste').addEventListener('click', function(){…
javascriptasked 8 years, 10 months ago Guilherme Lautert 15,097 -
13
votes1
answer1308
viewsWhat are the design standards for Serviceprovider and Servicecontainer used in Laravel and Symfony?
In frameworks Laravel 4 ou 5 and Symfony, I realize that there are two classes that are essential for the operation of the whole system: Servicecontainer and Serviceprovider. It seems to be a way…
-
13
votes4
answers1072
viewsWhat is the practical use of bitwise operators in PHP?
Operators bit by bit, used to manipulate specific bits, are somewhat unusual (not to say rare) their use in an application PHP. If we talk about escovação de bits in compiled languages, such as…
-
13
votes4
answers10456
viewsWorkbench for Postgresql
Does anyone know of a Workbench for Postgresql? I need it because I don’t want to mess with postgres per command line.
postgresqlasked 8 years, 11 months ago Jessica Costa 381 -
13
votes1
answer2693
viewsDifferences between Python versions 3.x and 2.7
I will start a project in college related to search engines and want to take the opportunity to also learn Python. I don’t know much about the language and my biggest doubt is about which version,…
-
13
votes1
answer498
viewsWhen does the Entity Framework execute the query of a Iqueryable?
I am developing a method for an API that consists of the following: fetching all customer reviews and, if specified, limiting the amount of records that will be returned. For example: public…
-
13
votes1
answer568
viewsWould it be right to leave the attributes of the abstract class as private or protected?
I don’t know how I should leave these attributes.
-
13
votes2
answers8777
viewsDelete Javascript and Render Lock CSS?
Analyzing link in Pagespeed occurred the following warning Delete Javascript and CSS from blocking rendering content above the edge Basic layout <!DOCTYPE html> <html lang=pt-br>…
-
13
votes3
answers1303
viewsWhat is a git submodule for?
One day I went to clone a library in the github and there was an instruction to use the command git submodule update. I’ve been working with the git and until then had no knowledge of this command.…
gitasked 9 years ago Wallace Maxters 102,340 -
13
votes2
answers2794
viewsWhat is the difference between setInterval/setTimeout and Web Workers?
I was taking a look at some HTML5 features and came across this Webworkers whose definition is: When executing scripts in an HTML page, the page Becomes unresponsive until the script is finished. A…
-
13
votes4
answers2497
viewsMerge two Javascript arrays
Imagine I have two arrays: var array1 = ['abc', 'def', 'ghi']; var array2 = ['123', '456', '789']; I can use the function .concat() to join both arrays one after the other, example:…
javascriptasked 9 years ago Kazzkiq 11,493 -
13
votes3
answers600
viewsWhat does this() do alone in the builder?
In the code: public Livro(Autor autor) { this(); this.autor = autor; } public Livro() { this.isbn = "000-00-00000-00-0"; }
-
13
votes1
answer16196
viewsDifference between keyup(), keydown() and keypress()
I’d like to know the difference between keyup(), keydown() and keypress(), in my opinion I think they do the same thing, but what is the purpose of each? Performance improvement for each type?…
-
13
votes1
answer1093
views -
13
votes1
answer1010
viewsAndroid Studio does not open new project (stay transpatente)
when I installed and tried to open for the first time, it worked perfectly, however, when I tried to open again later, when I click on "Start a new Android Studio project", the window opens, but is…
-
13
votes3
answers4752
viewsWhat is the difference between 'Yield' and 'Return' in PHP?
I have been trying to remove this doubt, but without success. At first glance they seemed to me similar commands or they would be the same thing. After seeing some explanations, I was a little…
-
13
votes3
answers1372
viewsWhat is "Object-oriented" and what other methods?
I work a lot in AngularJS (Javascript) and with version 2.0 knocking on the door, which will have as main change the use of ECMAS6 I read a lot about Object-Oriented Programming. If you can keep the…
-
13
votes2
answers1166
viewsIs it acceptable to use <H2>, <H3>, <p>, <div> tags within links/anchors (<a></a>)?
It is acceptable in question SEO and semantics to use tags like <h2>, <h3>, <p> and <div> inside <a href=""></a>? I noticed that to make items on a page people…
-
13
votes2
answers995
viewsPHP 7 has argument typing and return, but is it optional. Is that good or bad?
I would not like to raise here a controversial issue regarding the PHP 7 language, which was released recently, but only understand a few points regarding typing. Come on: In versions prior to PHP…
-
13
votes2
answers2975
viewsIs it possible to create an input uppercase and keep the placeholder in lowercase only in CSS?
How can I leave my placeholder in lowercase and my text in uppercase in css? I’ve tried to: input { text-transform: uppercase; } <input type="text" placeholder="usuário">…
cssasked 9 years, 1 month ago Gabriel Rodrigues 15,969 -
13
votes1
answer1466
viewsHow to make a bubble chart, each filled in according to a ratio
I’m trying to make a chart like this on R: The graph is available on this link. I don’t need it to be dynamic like the link, but if it is, no problem. In it, each bubble is divided between the blue…
-
13
votes1
answer755
viewsDifference between casting and Promotion
What is casting? What is Promotion? What is the basic difference between these Java conversion types?
-
13
votes3
answers1124
viewsJavascript Access Modifiers
Situation function x(){ var f = null; // PROPRIEDADE PRIVADA DE x this.a = null; // AS INSTANCIAS DE x TERÃO ACESSO A PROPRIEDADE a x.b = null; // ACESSIVEL COMO x.a } function y(){ x.call(this); //…
-
13
votes5
answers11978
viewsHow to get the current file name
I recently had a problem identifying the current page. Was using __FILE__ to get the current file, and used substr() to retrieve the string after the last occurrence bar, it turns out that in some…
-
13
votes1
answer10939
viewsWhat is parse, and how the parse of DOM works in HTML5
I started to study more CSS3 in depth, and I ended up wanting to better understand how the HTML rendering works in the Document Object Model (DOM), and how this HTML and CSS (and JS) markup is made…
-
13
votes2
answers460
viewsWhat is Closure Object and how do I get the anonymous function return as parameter?
Let’s say I have a class, and in that class i have a method, and in a parameter that method it is possible to use a anonymous function thus: Class and method: class Classe { private $exemplo = [];…
-
13
votes2
answers241
viewsWhat is the purpose of the => operator in the use of lists?
What is the purpose of the operator => in the use of lists List<T>, I am starting to use generic lists and came across this operator, it is only used in this method LISTA.ForEach(i =>…
-
13
votes1
answer7485
viewsLaravel 5 and Sql Server
I need a help, I made several attempts to connect Laravel with SQL Server and all without success. However, I managed to make it work with pure php, using sqlsrv_connect and Code Igniter. Windows 10…
-
13
votes3
answers753
viewsDoes Java have a class to work with command line arguments?
I need to create a Java desktop app, and with it pass several parameters of the type: java meuapp.jar -DB c: base.db -user admin -password admin Is there an easy way to get these parameters?…
-
13
votes3
answers29788
viewsMeasuring the run time of a function
How can I measure the running time of a Python function? In C#, I can use the class Stopwatch in that way var sw = new Stopwatch(); sw.Start(); AlgumaFuncao(); sw.Stop(); WriteLine(sw.ElapsedTicks);…
-
13
votes3
answers2891
viewsWhat is the need to maintain a`name` attribute in a`HTML`tag?
What is the need to maintain an attribute name on a tag HTML? its characteristics are equal to those of the attribute id that still has other utilities like being the key of the arrays $_POST and…
-
13
votes2
answers315
viewsfilesize for files larger than 2GB on x86 platforms
I was reading the PHP documentation and I noticed this information: Note: Because PHP’s integer type is Signed and Many Platforms use 32bit integers, some filesystem functions may Return Unexpected…
-
13
votes1
answer1431
viewsDifference between pseudo-class (colon :) and pseudo-element (double colon :: ) in CSS
I would like to know the differences between these two concepts of CSS in order to understand and point out what one is, and what may be the other. For example: :hover, ::before. What I’ve…
-
13
votes1
answer718
viewsWhy should I use the Stringbuilder class instead of the String class?
Why these two classes are different, because it seems to me that they could be one class. For example, the method Append, it seems to me that he does the same thing as the operator +.…