Most voted questions
150,413 questions
Sort by count of
-
6
votes1
answer4695
viewsHow to identify the type of variable in C?
In languages such as Nodejs, Ruby, Moon, etc. When I want to know what the type of my variable is just use the function typeof (not necessarily in the cited languages) that returns a String with the…
-
6
votes2
answers2918
viewsEntity Framework WITH (NOLOCK)
We can use the NOLOCK in the SELECT, thus avoiding the blockages with the commands of INSERT SELECT COUNT(Descricao) FROM Produtos WITH (NOLOCK) Is there any way to use the WITH(NOLOCK) in the…
-
6
votes4
answers1662
viewsComparing and updating data from an HTML table with data returned via JSON?
Problem: I have a table that is populated by data coming from multiple JSON files, so far no problem. The point is, I need to update the data if the values contained in JSON are different than in…
angularjsasked 7 years, 8 months ago Fábio Jânio 3,407 -
6
votes2
answers849
viewsWhat is the difference between SET and SETX?
To fix a new environment variable in Windows I checked that there are commands SET and SETX. What is the exact difference between the two commands?
-
6
votes2
answers68
viewsHow can I indicate the directory where my assemblies should be found?
My company has an installation that hits the gigabyte home. We have a set of applications in our installation that share the same libraries. By default, when . NET executes an application it looks…
-
6
votes2
answers875
viewsHow to load Facebook content?
How does Facebook do this with loading your page? It uploads content gradually and not all at once like most websites, Stackoverflow is an example that loads once and for all. What do you call this…
-
6
votes1
answer1969
viewsHow to receive multiple socket requests on one server?
Hello! I’m doing a server/ client schema program in Python in which I wanted to have only one server and several clients. Imagine having 3 clients each make a request to the server via socket…
-
6
votes2
answers644
viewsArc tangent function in C#
I did the following calculation on the calculator: arctg(50/10) = 78,69° However, when doing in the code, using the function Math.Atan, the result is as follows: Is there any other way to calculate…
-
6
votes2
answers606
viewsWhat is a tail recursion?
In that question I asked about performance. One of the users replied that the compiler does several interesting optimizations, such as inlining, Loop unwinding, tail recursion and caches. How Tail…
-
6
votes1
answer6325
viewsProblem with Nuget Packages Visual Studio
Trying to compile the application, I come across the error: Severity Code Description Project File Line Suppression State Error This project References Nuget package(s) that are Missing on this…
-
6
votes2
answers263
viewsHow do I make mysql_num_rows of various results
Well, what I want is this: I have 1 table designated by items, in this table I have 4 columns: nomeitem iditem (Single id) numerobot What I intend to do is: I want to do a mysql_num_rows of all…
-
6
votes4
answers7473
viewsHow do I display the same phone number from the OLX site?
In OLX, the advertiser’s number is partially visible and only after you click on "See number", and the full number is displayed. How do I do this in Javascript?
-
6
votes1
answer495
viewsHow to filter logcat by command line?
I was reading the android documentation and saw that it is possible to monitor logcat by command line, without necessarily having the IDE open. I installed a minimalist version of ADB (only what is…
-
6
votes1
answer3033
viewsDate in Portuguese (en-br)
I have the following code in PHP: <?php setlocale(LC_ALL, "pt_BR", "pt_BR.iso-8859-1", "pt_BR.utf-8", "portuguese"); $tz_object = new DateTimeZone('Brazil/East'); $datetime = new DateTime();…
-
6
votes3
answers17188
viewsApply CSS when two classes are together
How to apply a CSS setup only when a tag is with the classes nome1 and Nome2 at the same time? I tried with the following code, but it’s not working. Does anyone know how to do? .nome1 { color:…
-
6
votes2
answers1395
viewsWhat is the difference between ~0.0.1 and 0.0.1 in package.json version control?
This code is an example: { "dependencies": { "gulp": "~0.0.1", "browser-sync": "^0.0.1" } }
-
6
votes3
answers42294
viewsSelect option from a select
I have the following HTML: <select id="faturamento-mes-referencia"> <option value="1">Janeiro</option> <option value="2">Fevereiro</option> <option…
-
6
votes2
answers531
viewsMysql Auto increment even number
I have a Mysql database with a field id that is AUTO_INCREMENT. Has some configuration problem in it because when doing auto increment is coming out exactly in this sequence: ID: 2 ID: 12 ID: 22 ID:…
-
6
votes1
answer1546
viewsHow to round up time?
I have the following function which treats an hour coming from the bank: SELECT f.chapa AS chapa, f.nome AS nome, f.secao AS cod_secao, f.nsecao AS desc_secao, c.codigo AS cod_funcao, c.nome AS…
-
6
votes2
answers1041
viewsWhat is the difference between "step over" and "step into" in Debugger mode?
I wonder what the difference is between F10 (step over) and F11 (step into). When should I wear F10 and when to use F11?
-
6
votes2
answers174
viewsHow do I create an alias to run multiple commands with git?
I wonder how to create an alias for git that runs the following commands: git add (all modified files) git commit (including a message) git push I tried the following gitconfig setting: [alias] upl…
-
6
votes2
answers915
viewsCreate filter based excel table
Hello, I have a table in Excel of 3 columns: Pessoa | ID | País João | 1 | Flórida Maria | 2 | Flórida Ana | 3 | Miami Ana | 4 | Califórnia Pedro | 5 | Califórnia João | 6 | Flórida etc.... I would…
-
6
votes1
answer221
viewsDoubt about inserting Javascript object
Context I am trying to make the persistence in the database of a purchase as well as all of its items. For this I am using a file .jsp. But I need to send the data from a web page. The purchase data…
-
6
votes2
answers1862
viewsGroupby in Javascript
I’m getting the following result from a query: [ { "disciplina":"Portugues", "periodo":"1º Bimestre", "tipo":"1ª avaliacao", "valor":9.5 }, { "disciplina":"Matematica", "periodo":"1º Bimestre",…
-
6
votes2
answers1510
viewsHow to view the last 30 days of a query
I’m trying some alternatives to show only the records of the last 30 days, but I couldn’t make it work, the query I have is like this: SELECT comunidade.descricao AS nomeunidade ,comcargo.descricao…
-
6
votes1
answer1657
viewsEntity Framework - What is the difference between With Entitystate.Modified and Without Entitystate.Modified?
What’s the difference between the two ? With Entitystate: var registro = db.MinhaTabela.Where(a => a.MeuCampo == "Valor_Antigo").FirstOrDefault(); registro.MeuCampo = "Valor_Novo";…
-
6
votes2
answers382
viewsWhich means [] in angular.module
I’m a beginner in Angularjs and started reading about modules in an application. When I want to create a new module, I write the following line of code: var myAppModule = angular.module('myApp',…
-
6
votes1
answer84
viewsHow to convert NFA to datatime and vice versa?
Having a date (e.g.: 2017-01-18 11:08:09 (format y-m-d H:i:s)), the generated NFA results in A70171480. Searching on, I found little, even more in Portuguese. To be honest, I haven’t seen enough…
-
6
votes1
answer1292
viewsWhat are the disadvantages of using Redis?
There are many advantages to using Redis as a database, but we already know this. I would like to know what the disadvantages of using redis or in which scenarios would be very "against" using it.…
-
6
votes1
answer1391
viewsConnection with Webservice SOAP WSDL with XML return
I have the following code that works perfectly. The return of the webservice is a XML, but the return I’m getting is a string. What should I do to receive the XML as return and not a string? $client…
-
6
votes3
answers234
viewsGlobal variables recursion
I’m learning recursion and have doubts about using global variables, particularly I think a gambit inelegant, maybe I’m wrong. I made a code to add positive numbers and used a variable called sum. I…
-
6
votes1
answer111
viewsCan LINQ be considered business rule?
Sometimes I pull active objects with LINQ expression. Utilise filtering with LINQ can be considered a business rule and in a scenario such as DDD (Domain-Driven Design)? What is the best place to…
-
6
votes2
answers277
viewsDifference Italic and emphasis in HTML?
What’s the difference between tags <i> and emphasis <em> in HTML? When using each of them?
-
6
votes2
answers592
viewsBetter performance for few accesses: Hashmap or Treemap?
I use the structure a lot java.util.HashMap<K,V> even for small scopes with few inputs (up to 50). But I’ve been wondering if the structure java.util.TreeMap<K,V> would not be better for…
-
6
votes2
answers720
viewsCan memory leak occur in Java?
In the C language, for example, memory leaks are common because the responsibility for shifting memory lies with the programmer. In the example below (taken from Wikipedia) we can see a classic…
-
6
votes1
answer232
viewsUser who has permission to create other SQL Server users
I’m trying to use a user other than SA to create new users on an SQL Server 2014 basis, I’ve tried the roles db_accessadmin and db_securityadmin, but they do not give permissions to change other…
-
6
votes1
answer90
viewsHow is it correct to declare a variable that is a pointer?
I see some people do int* variavel; And some people do int *variavel; What is right?
-
6
votes2
answers332
viewsDesigns of a C#Solution
I have a question about projects and solutions in visual studio. Suppose I have a solution that has three projects, being two Winforms projects (exe) and one of class libraries. It is correct that I…
-
6
votes1
answer719
viewsHow to get only the domain of a URL?
The domain is not that of localhost. If the user types a link, for example, http://exemplo.com/pasta/pasta2/past/ficheiro.php, i intend that PHP returns only this part of the url exemplo.com…
-
6
votes2
answers10617
viewsHow to change image when clicking?
I have a work course and I had the following idea: There are several images that will represent the chairs of a cinema (all are the same images, the same are in my HTML file), and I want to make the…
-
6
votes2
answers622
viewsCanvas delete correct text
I do research and there is no way to make it work, the first try works well, but the second no longer, that is, it does not erase the text that was there and replace it with the new one (in the…
-
6
votes2
answers4614
viewsCharacter size (ASCII vs other encodings) in bytes
Seeing this issue a doubt arose, coming from PHP and in the past having "problems" derived from character encoding, ex: srtpos vs mb_strpos, i knew that all ASCII characters have 1 byte, but I…
-
6
votes4
answers366
viewsWhat’s the difference in using sprintf in relation to using variables within the string?
Seeing some libraries and examples is common find the sprintf in some situations where I find it strange. Reading your documentation I noticed that there are several types of formatting, however I…
-
6
votes4
answers150
viewsBasic JS exercise: simple text search
I was trying to create a JS search to find a given name in the body of a text. However, the search does not return any value. The logic I used is: <script> var text = "Xxxxx, xxxx x xxxx x…
javascriptasked 7 years, 9 months ago Lucas Menezes 65 -
6
votes1
answer289
viewsDropdown filter using C# MVC 4
I have a dropdown in my view that I fill in the following way: ViewBag.NfeStatus = EnumHelper .ListAll<NfeStatus>() .ToSelectList(x => x, x => x.Description()); My model Nfestatus is an…
-
6
votes1
answer518
viewsWhat is a Binary-safe function? And what are its applications?
I was browsing through the php.net when I came across the following note on the function str_replace: Note: This function is Binary-safe. I gave a researched here on the net and found nothing about.…
-
6
votes2
answers307
viewsBest practice for client to choose response format (JSON / XML)
I would like to know the best coding practice that allows the client to define the response format for the request he made, which can also include filters, conditions, ordering, etc... I made a…
-
6
votes4
answers517
viewsWhy Artificial Intelligence and Machine Learning are different subjects?
When looking for specialized programming courses or with market demand, two of them stand out: IA - Artificial Intelligence (or AI - Artificial Intelligence) AM - Machine Learning (or ML - Machine…
-
6
votes1
answer112
viewsTables with unconventional names like ABC1234
I have seen some that some systems adopt a different way of naming tables with letters and numbers like ABC1234, XX_900, etc.. These days I’ve been working on creating some queries in a system that…
-
6
votes1
answer67
viewsHow to apply Pathfinding in a structure of nodes?
I have a node structure that represents my pages and their links, for example, from page A I can go to page B or page C. In addition I can have page A pointing to page B pointing to C pointing again…
logicasked 7 years, 9 months ago Marcus Becker 724