Posts by mcamara • 1,237 points
47 posts
-
2
votes1
answer23
viewsQ: Set Spending Limit by Resource Group
It is possible to define spending limits within an Azure subscription by Resource Groups? Ex.: Subscription 1 - 500 USD Resource Group 1 - 100 USD Resource Group 2 - 400 USD…
windows-azureasked mcamara 1,237 -
8
votes2
answers2203
viewsQ: Is a View faster than a regular Query?
When using a query of type SELECT * FROM myView is faster than SELECT * FROM (query para gerar a view acima) I have an appointment and would like to curl or make it faster, but I am in doubt if I…
-
1
votes1
answer682
views -
2
votes1
answer112
viewsQ: Error reading text file line by line
I am trying to read a very large file row by row and add in a list, but when it arrives at a certain point I get an error: System.OutOfMemoryException Is there any way to read this whole file in a…
-
1
votes0
answers99
viewsQ: Error calling REST service - Url Encode
When trying to make an HTTP GET call, the service returns an error 500 because querystring should use the + encoded symbol instead of spaces. Ex.: LOS+ANGELES = LOS%ANGELES autocomplete(term:…
-
1
votes2
answers324
viewsQ: Firstordefault, Singleordefault, Elementatordefault
What is the difference between the elements FirstOrDefault and First, SingleOrDefault and Single or ElementAtOrDefault or ElementAt. When to use with and without the Default?…
-
0
votes1
answer173
viewsQ: Find places close to a certain coordinate
I would like to find places close to a certain geographical co-ordination. I have a database with a list of reference points and their respective coordinates. Ex.: var points = [ ['cristo redentor',…
-
1
votes0
answers293
viewsQ: Best practices for using Try / Catch blocs
What is the best strategy to use Try / Catch blocks: try { //FAÇA ALGO } catch(Exception ex){ //LOGAR O ERRO //LANÇAR O ERRO PARA CIMA? } Example: A tax calculation operation starts the process by…
-
1
votes0
answers60
viewsQ: Multiple calls to the webservice
I would like to know the best way to make N calls to the same Webservice. Ex.: In a search system / hotel quotation, as a strategy, we use N calls for a specific quote because in each call is sent a…
-
1
votes3
answers750
viewsA: Is it correct in a DTO class to have attributes of two or more tables?
DTO or Data Transfer Object or Transfer Object is a model you define for transporting data between different components of a system, different instances or processes of a distributed system or…
-
1
votes3
answers73
viewsQ: How to debug code with Object Initializer format
Following some good practices that Visual Studio itself recommends, we cannot debug values of an object one by one using the "Object Initializer" or "Object Initializer". How best to get around this…
-
1
votes2
answers654
viewsA: How to replace one substring within a string with another?
You can also use the function strtr ("hello my name is santa", array ('hello' => 'ola')); In this case all occurrence 'hello' will be exchanged for 'olá'. If you want to change more than one…
-
0
votes1
answer42
viewsQ: Azure Web Roles and Worker Roles
What is Azure Web Role and Worker Role? What are the differences between them and what scenarios can we use each?
windows-azureasked mcamara 1,237 -
0
votes1
answer1359
viewsQ: What is the difference between Ecmascript and Javascript?
What is the difference between ECMA Script and Javascript? I hear the term Ecmascript a lot, SE5, SE6, linked to the Javascript language. There is similarity between these two terms?…
-
2
votes1
answer249
viewsA: What are the differences between Container(Docker), App Service(App service) and Fabric Service in Azure?
Although you get some identical results with the 3 options, it is necessary to evaluate the scenario that most fits your problem, since it does not make much sense to climb a simple site with…
-
8
votes2
answers1582
viewsQ: Variable of the foreach loop
When we use a loop loop foreach, the local variable we create to receive the contents of the list in question is passed by value or reference? Ex: foreach (var item in listItems) { //TODO } The…
-
3
votes3
answers187
viewsA: How to understand and deal with the cost of Azure?
It is really easy to arrive at such high costs in Azure? Yes, you can reach high costs if you don’t properly configure the resources you really need. The purpose of Elastic Cloud is to scale exactly…
-
1
votes1
answer87
viewsQ: Stop all services in Azure
I have several services in some Resource Groups in Azure, today I have to stop one by one when needed! It is possible to stop all at once?
windows-azureasked mcamara 1,237 -
2
votes1
answer14
viewsQ: Scalar Collection at Cosmosdb
Is it possible to scale a Document database in Cosmosdb? If so, it is possible to scale only one collection instead of the database as a whole?
-
3
votes1
answer42
viewsA: Cosmosdb Bind in Azure Functions Local
To bind to a Function you need to add the following configuration: 1 - Install the Nuget package Microsoft.Azure.WebJobs.Extensions.DocumentDB 2 - Include the attribute [DocumentDB("%DatabaseName%",…
-
2
votes1
answer42
viewsQ: Cosmosdb Bind in Azure Functions Local
How to bind Azure Cosmodb to Visual Studio in Azure Functions? Note the code below, the inputDocument parameter would be the Cosmosdb Bind. When we create Funcão direct in the Azure portal, it…
-
2
votes2
answers88
viewsA: Email Differentiating two environments in the system
The best option for you to solve your problem is to work with Config Web Transformations, that is, you will have a Web file.Config -> Web.Producao.config -> Web.Homologacao.config. First of…
-
2
votes2
answers10554
views -
1
votes1
answer59
viewsA: Tags in a table for each?
You don’t need a table for each TAG, you create only another table with the tags and the news id as an example below. Another way is to create a column within the news table where you can put tags…
-
1
votes1
answer158
viewsA: Area Routes in ASP.NET MVC?
To access the route of an area in Asp.Net MVC, use the following Razor directive: Html.ActionLink("Link Text", "ActionName", "ControllerName", new { Area = "NomeArea" }, new{})…
-
0
votes1
answer19
viewsQ: Azure Remote Debugging - Simultaneous Connections
I am using Azure Remote Debugging and I have the following question. In the Free, Shared or Basic layer, how many simultaneous connections can I make?
-
3
votes2
answers57
viewsA: How to create a checkbox that cannot be changed (readonly)
@Carloshenrique, you can do something like: <input type="checkbox" checked="checked" disabled> Checkbox Note that includes the disabled attribute in the input. Follow an example link:…
-
0
votes1
answer155
viewsA: Generate transparent image through a form
I think you can do something like: index.html <form action="arquivo_gera_imagem.php" method="post"> <input name="nome" type="text" placeholder="Texto a ser Gerado" size="100"/> <input…
-
2
votes1
answer1158
viewsA: Specify command for the CMD to open
You can use the same command with one more parameter: System.Diagnostics.Process.Start( @"cmd.exe", @"/k c:\app.exe" ); For more details follow an English link I found:…
-
-2
votes1
answer608
viewsA: Friendly URL whose ID is the headline of the news
The easiest way to follow in your case is to use url rewriting in the . htaccess file. What is a. htaccess file? The files. htaccess files are Apache access and configuration files, they are files…
-
2
votes1
answer432
viewsA: Hide password from database
You can encrypt your web.config file with a component called aspnet_regiis. To encrypt the sections and the web.config file. In a text editor, open the web.config file for your application. If you…
-
7
votes4
answers2743
viewsA: Javascript has a xor operator?
Javascript does not have a logical XOR operator. It has a bit-by-bit XOR operator that can perform a bit-by-bit comparison of two numbers, but this does not help when you want to get the result of a…
javascriptanswered mcamara 1,237 -
0
votes1
answer168
viewsA: Xamarin Method 'Plugin.Geolocator.Abstractions.IGeolocator.Getpositionasync' not found
Delete the BIN and OBJ folders of all projects and then do a RESTORE of the packages! Xamarin has a lot of these little details! ;) I hope I have helped!
-
7
votes2
answers2136
viewsA: Web API x Webservices
Take a look at these sites, they make a very interesting comparison about the difference between the web service models that we have.…
-
0
votes1
answer95
viewsA: How can I intercept click on link within Webview?
Creates a Customwebview class that inherits from Webview and intercepts the click on the navigating event. Ex: public class CustomWebView: WebView { public String Code { get; set; } public…
-
3
votes1
answer209
viewsA: httppostedfilebase always empty when switching to controller
Try placing the attribute enctype = "multipart/form-data" in form.
-
2
votes3
answers620
viewsA: Check when global variable changes
There is a specific interface for this - Inotifypropertychanged which has a member Propertychanged which is an event that we can subscribe to. public class MyClass : INotifyPropertyChanged { private…
-
0
votes1
answer128
viewsA: Save uploaded file to Ajax in backend Node
Try using something similar to the code below. var path = require('path'), fs = require('fs'); // ... app.post('/salvarAssinatura', function (req, res) { var tempPath = req.files.file.path,…
-
2
votes1
answer71
viewsA: Service Bus - Performance Test with Service Bus
You can use Microsoft Application Insights' own service with Azure Functions to do service telemetry, I already followed this link below for this type of test. Any doubt just talk!…
-
5
votes2
answers233
viewsA: problems with string and split C#
Try to do something where you take the first char from the spliter, but remember that you will always have to have the same characters throughout the string if it doesn’t, it doesn’t work! Note: The…
-
0
votes1
answer17
viewsA: Display warning when the page opens in Mozilla Firefox
if (navigator.userAgent.indexOf("Firefox") > 0) { alert("Alguns elementos desta página podem não ser exibidos no Firefox. Para evitar problemas, utilize o Google Chrome. Atenciosamente -…
-
3
votes1
answer890
viewsA: Create Database without Migration in Entity Framework Core
Yes, it is possible! EPH 1 - Dbcontext startup, runs before instantiating Context. Database.SetInitializer(new MigrateDatabaseToLatestVersion<YourDbContext, YourMigrationConfiguration>()); 2 -…
-
1
votes1
answer928
viewsA: Backup and Restore using Postgresql in C#
There is a question similar to yours, you have tried using this method below? (https://stackoverflow.com/questions/23026949/how-to-backup-restore-postgresql-using-code) public void PostgreSqlDump(…
-
3
votes3
answers1085
viewsA: How to insert row at the top of a table using JS?
$("table > tbody").prepend("<tr><td>Linha Nova 1</td><td>Linha Nova 2</td><td>Linha Nova 3</td> </tr>") <script…
-
2
votes3
answers849
viewsA: Linkbutton : Open link in a new window (Right Mouse Button)
You can use the Onclientclick event or Asp:Hyperlink control OnClientClick="window.open('OtherPage.aspx', 'PageName');"
-
2
votes5
answers1059
viewsA: Is it possible to convert a 16-bit number to a single byte?
Impossible to put 16 bits in 1 byte. What you can do is put in an array of bytes with Bitconverter and then do the process backwards. Int16 numero = 2017; var StrToByte =…
-
0
votes4
answers166
viewsA: C# WPF How to separate a long string into several positions of an Array?
You can create a string extension method to help with this task. using System; using System.Collections.Generic; namespace StackOverflow { class Program { static void Main(string[] args) { string…