Most voted questions
150,413 questions
Sort by count of
-
9
votes1
answer517
viewsWhat is the name given for the number of columns in a table?
What is the name given for the number of columns in a table? And the name for the number of lines?
-
9
votes2
answers967
viewsHow to test private methods in C#?
How to test private methods using Microsoft.VisualStudio.Testtools.Unittesting and Moq My test class is like this: [TestClass] public class ClasseDeTeste { private MinhaClasseComMetodosPrivados…
-
9
votes2
answers1682
viewsGet data from each row of a column in C#
Here’s the thing, I got a DataGridView with several columns. In each row of this DataGridView a program installation path will be shown. With this value displayed, I would like to use it to get the…
-
9
votes4
answers8192
viewsHow to exclude an item from an array by the attribute value?
I got the following array with a few items: var arr = [ {id: 1, name: "Jon Snow"}, {id: 2, name: "Michael Scolfield"}, {id: 3, name: "Dexter Morgan"} ]; To add new item the method is used push.…
javascriptasked 7 years, 8 months ago viana 27,141 -
9
votes2
answers2120
viewsWhat’s the difference between "this" and "$Scope"?
In the AngularJS we use $scope to share information between the domains of a controller. There is also the syntax Controller as which allows us to use the this to the same end. With $scope: function…
-
9
votes2
answers11213
viewsIs it possible to create a C/C++ app for Android?
I want to create an application for Android using the C or C++ language. What are the advantages and disadvantages of this?
-
9
votes2
answers1680
viewsDisconnect case sensitive in Postgres
When I make the command select * from tabela where name like '%teste%' the line with the name TesTe returns, but the same does not happen in postgres, I do not want to put lower(name) to work, how…
-
9
votes2
answers662
viewsWhat is Timing-Attack and where does it apply?
I have received a somewhat interesting reply to this question: What is the possibility of finding a given string of 192 characters in 10 minutes? But I didn’t understand what the timing-Attack.…
security-guardasked 7 years, 8 months ago Renan Cavalieri 2,748 -
9
votes1
answer98
viewsWhat are the benefits of using the => operator in common methods that are unrelated to Lists or Lambda Expression?
I asked the following question: What value is checked in a condition operation with a variable value assignment? and the user @Maniero answered me, however, in the reply he used an operator and that…
-
9
votes4
answers2076
viewsHow to check if IP exists with bat
I can drip all the network addresses with something similar to this: for /l %%x in (1, 1, 100) do ping 10.1.1.%%x However, not all addresses are valid, and in that case, he of the timeout. Is there…
batchasked 7 years, 8 months ago Artur Trapp 5,175 -
9
votes2
answers5167
viewsWhat is "stdafx. h" and what is its importance?
When creating a C++ project in Visual Studio, it automatically brings a line into the main file: #include "stdafx.h" How I am at the beginning of the study of language, seeing some "hello world",…
-
9
votes3
answers3355
viewsWhat is the difference between LOCATE and INSTR functions?
The description of the function LOCATE, in free translation, it is: Returns the position of the first occurrence of substring. The description of the function INSTR, in free translation, it is:…
-
9
votes3
answers1480
viewsHow to make a query through LINQ ignoring accents?
I wonder if it is possible to make a query with LINQ to compare two strings and ignore their accents. That without my Collation in the database is set as AI (Accent Insensitive) and I don’t need to…
-
9
votes1
answer126
viewsA property occupies space in the object?
I was reading a question about properties and saw that she is at the same time one or two methods. Do you have any additional cost in memory and processing in using it? If you don’t use the code you…
-
9
votes1
answer3480
viewsWhat is ACID in a database?
I’m not talking about web implementation indicator. Besides the acronym, because it’s important?
-
9
votes3
answers2079
viewsHow do I activate the Caps Lock key warning?
How to make a warning for when the Caps Lock key is enabled in the password field? At first I would like solutions in pure Javascript, but using jQuery and related will be accepted.…
-
9
votes2
answers93
viewsMethod equivalent to Biginteger.and() in C#
I need to convert the java code below to C#: public static boolean verificaPermissao(BigInteger perm1, BigInteger perm) { if (perm1 == null || perm == null || (perm1.equals(BigInteger.ZERO) ||…
-
9
votes2
answers742
viewsDeny/hide access to files starting with dot, like . git, . svn, . Ds_store, . yml
By default Apache denies access to files whose name begins with .ht, as an example .htaccess: <Files ~ "^\.ht"> Require all denied </Files> But I notice that many files use the prefix .,…
apache htaccess security-guard iis web.configasked 7 years, 9 months ago Guilherme Nascimento 98,651 -
9
votes7
answers49622
viewsHow to add elements from a list and return the result as an integer?
I need to define the function soma_elementos This function takes a list of integer numbers and returns an integer corresponding to the sum of the elements of the received list. How do I do this? def…
-
9
votes3
answers557
viewsSee if a video has been paused to upload?
I’m using the shaka-player to play a Dash stream from a Nimble server, but I’ve been reading that event waiting is not always the most reliable option, and in fact when the video stops to load the…
-
9
votes1
answer84
views$ and $$ are now native browser functions?
When using the console on a Javascript-free page I noticed that when typing $ had the same effect as document.querySelector and while typing $$ had the same effect as document.querySelectorAll.…
-
9
votes3
answers1700
viewsEmbedded (Embedded) or external (traditional) application server?
There is currently a tendency to deploy Java applications as an executable jar on embedded server (Embedded server). There are very popular frameworks aimed at this approach as Spring Boot and Play.…
-
9
votes2
answers113
viewsUse of@in variables
I see in some languages that compile for javascript, such as Typescript and Coffeescript, the use of @ variables, as well as cases where it is not used. For example: w = 10; @v = 11; After all, what…
-
9
votes2
answers2414
viewsWhat is Travis CI?
I am doing a research on software testing (integrated test environments, debugging and maintenance) and I found this Travis CI, but my English is not very good and I did not find articles in…
-
9
votes3
answers447
viewsPrevent cookies from being viewed/obtained with javascript
I was reading an article and I found curious a sentence of this, where the author makes a list (right in the first paragraphs of the article) of the main safety care that we developers should take…
-
9
votes4
answers760
viewsWhat are Path Finding Algorithms?
In college studies, I came across the Path Search algorithms. The theoretical part confused me a lot and I am limited to understand the uses of this algorithm in practice. What Are Path Finding…
-
9
votes1
answer3600
viewsHow to put subtitles (subtitles) in videos?
How can I add subtitles/Subtitles to the video tag: <video> <source src="video/video.mp4" type="video/mp4"> </video>
-
9
votes1
answer272
viewsWhat do the terms "forward Compatibility" and "backward Compatibility" mean?
I have seen these two terms, in English, being used to refer to the compatibility of some functionality of a given language, library and the like. What it really means forward Compatibility and…
terminologyasked 7 years, 10 months ago Wallace Maxters 102,340 -
9
votes1
answer2436
viewsWhat is the correct order of the ICP-Brazil certificate chain so that the certificate of an e-CPF and e-CNPJ is requested via TLS Handshake?
To authenticate a user using the digital certificate, and to obtain this certificate in the backend it is necessary to enable the "SSL/TSL Handshake" option on the web server with the option to…
authentication ssl certified digital-signature brazilasked 7 years, 10 months ago LeonanCarvalho 3,527 -
9
votes4
answers12426
viewsHow do I detect a mobile device in Javascript?
I have a web application with Angularjs, where I need to know if the user is on a mobile device to improve their experience, putting buttons to make calls, send message, etc. I have a directive that…
-
9
votes1
answer242
viewsWhat are the differences between BCL and FCL?
The Base Class Library (BCL) Framework Class Library (FCL) are components of the .NET. This defines what each one does? What goes into each one?
-
9
votes2
answers395
viewsDifference between Alter Table Foreign Key
I would like to know the difference between the execution in the clauses Alter Table when inserting the ADD CONSTRAINT , such as running the following code: ALTER TABLE Orders ADD FOREIGN KEY…
-
9
votes6
answers300
viewsHow do I transform an array that is in a string for javascript array?
I have a string representing an array as follows: var = "['aaaaa', 'bbbbb', 'ccccc', 'ddddd']"; Wish I could transform this array that is in the string into an Array to perform manipulations. var =…
-
9
votes2
answers2252
viewsHow to check real-time database change with php websocket?
I want to update a div only when there is change in a certain field in the database, I’m currently using Polling, but I want to switch to websocket for performance reasons, but I only found examples…
-
9
votes1
answer568
viewsHow does inheritance work in Postgresql?
How does inheritance work in Postgresql? Is it a good practice in relational databases? How to use it?
-
9
votes4
answers10562
viewsPerformatively calculate the divisors of a Python number
The code I’m using is: import time def divisores(num): for i in range(1, int(num/2+1)): if num % i == 0: yield i yield num inicio = time.time() d = divisores(47587950) [print(i) for i in d]…
-
9
votes3
answers4539
viewsForce client-side update after site update
The scenario of my problem is this, I have a website that has been updated, but some customers are reporting that the update was not made for them, which are still in the old model of the site…
-
9
votes2
answers1038
viewsHow to remove tags in Python text?
In PHP we have a function called strip_tagsthat remove HTML tags from a given text. Example: $text = "meu nome é <strong>Wallace</strong>"; strip_tags($text); // 'meu nome é Wallace' How…
-
9
votes1
answer5620
viewsWhat is the difference between inner class, nested class and anonymous class?
I often read about these three types of classes when I’m researching something about java, but the truth is that it often causes some confusion about what each one of them really is and whether…
-
9
votes1
answer22460
viewsNon-relational Database vs Relational Database
Some time ago I was in doubt about the differences between these two models, I even looked on the Internet but I did not find anything to take away the doubt so I will ask some questions. 1 - What…
-
9
votes2
answers4792
viewsWhat is Yenumerable and Yenumerator for?
I made a combo of questions about IEnumerable and IEnumerator not only to help me but to help everyone who needs a more didactic explanation. Question 1 Could someone explain in a more didactic way…
-
9
votes2
answers2912
viewsWhat is the purpose of the Gethashcode() method?
I’m using Resharper to automate the method override Equals and the operator ==. One of the methods the tool has overwritten is GetHashCode: public override int GetHashCode() { unchecked { return…
-
9
votes1
answer38768
viewsClick the button and open another Activity
I am developing an application in JAVA , and will have 2 options for the person to choose, I want when she press in 1 of the 2 buttons open a new Activity in the application, Can anyone please tell…
-
9
votes1
answer151
viewsWhat is "global::" in C#?
I was editing a source code for an application I’m writing in C#, which uses GTK+. I have some knowledge of C#, but did not understand why some variables were written when I mounted the UI in "drag…
-
9
votes1
answer90
viewsWhy are there two const in the variable statement?
I can do it: const int* const objeto = &x; Why are there two const? What is the function of each?
-
9
votes2
answers373
viewsWhat is the purpose of the Model folder of the Inphinit framework?
In the Inphinit micro-framework there is the Model folder inside the folder application, and that’s where the classes are, but I’m very confused about those classes. See a class inside the Model…
-
9
votes2
answers34544
viewsHow to get column names from a table in SQL Server?
Table Languages: How to select the Column Names of this table? The result would be: "Ididiome", "Acronym", and "Language".…
-
9
votes1
answer5927
viewsFileuriexposedexception error on Android N
Hello friends I am facing the following error: android.os.Fileuriexposedexception: file:///Storage/Emulated/0/Pictures/1488344088086.jpg Exposed Beyond app through Clipdata.item.getUri(). The…
-
9
votes3
answers302
viewsWhat is a module in PHP?
I’m studying this one documentation and I came across that term : The Return statement returns control of the program to the module that called it. The execution will continue in the expression…
-
9
votes2
answers4636
viewsWhat is the csrf_token present in the Laravel layout file for?
I am aware that to submit a form in Laravel, you must add a csrf_field, or declare that the route must ignore this protection. However, in the layout file there are the following occurrences:…