Posts by rubStackOverflow • 7,372 points
226 posts
-
1
votes1
answer1288
viewsA: Print width on thermal printer, WPF and C#
The likely solution will be to adopt the standard ESC/POS we believe that all thermal printers adopt this standard. By experience, EPSON, ELGIN, BEMATECH, I have already tested, obviously some…
-
7
votes1
answer115
viewsQ: Internal X public access modifier
When using public or international? Is there any advantage/disadvantage between them?
-
10
votes2
answers525
viewsQ: When is it recommended that a class implement Idisposable?
I use the IOC standard in my project which facilitates the call of procedure type Resolver.Resolve<IPedido>().GerarPedido(), however, I did not want to leave "loose" in this way, I would like…
-
6
votes2
answers191
viewsQ: Does the List<T> Method. Foreach exist?
I’m trying to implement the example of this page, but VS2015 (.NET 4.5) says the method ForEach() there is no class Program { static void Main() { List<String> names = new…
-
8
votes1
answer140
viewsQ: Premises for a testable software
Based on development in object-oriented language, what would be the premises for software to have robust testability (coverage and testing facility) ?
-
1
votes2
answers466
viewsA: Is there a model to document the "Ubiquitous language" in the DDD?
In the book Implementing Domain-Driven Design - Vaughn Vernon he suggests as an experiment for documenting the ubiquitous language the following: Draw images from the physical and conceptual domain…
-
2
votes1
answer4409
viewsQ: Datetime "Null" = 01/01/0001
How to treat a field DateTime that comes as "null" (I know that DateTime can’t be null) of a legacy basis? Consulting a WebService it returns a field DateTime as 01/01/0001 (no value) in the case of…
-
7
votes3
answers660
viewsQ: LINQ corresponding to SQL with clause LIKE 'XXX%'
I am using the following LINQ to return a query: .Where(c => c.Nome.Contains(nome)).OrderBy(c => c.Nome) But if the name is Maria, he brings: José Maria Maria José How to bring organized as if…
-
10
votes4
answers621
viewsQ: Create Windows Service Auto-Updatable
I would like to know the recommended procedure for a Windows service to auto-update. The main questions are: After the service download a new version of itself, how to stop the service and restart…
c#asked rubStackOverflow 7,372 -
3
votes2
answers94
viewsQ: Simplify LINQ p => p.Tipo.Toupper(). Equals("S") && p.Modo.Toupper(). Equals("S")...,n
How to simplify LINQ expression? p => p.Tipo.ToUpper().Equals("S") && p.Modo.ToUpper().Equals("S")...,n
-
2
votes1
answer905
viewsQ: Beta iOS App with Testflight
I’m sent the first version of a app to the Apple Store, however, before shipping to production, I will make available first to Beta Testers. Currently, the status for External Testing is: Waiting…
-
4
votes1
answer727
viewsQ: Fundamental principles REST
In this Article by Infoq, the author highlights the five fundamental principles of REST: Give all things an identifier Link things (resources/identifier) Use standardized methods Features with…
-
2
votes1
answer1406
viewsQ: Add formatting to an app description in Google Play
Does anyone know how to "embellish" the app description in the play store? For example putting "novelties", formatting text, etc. See highlighted in the example below:…
-
7
votes1
answer110
viewsA: What are Native Hybrid and Web Applications?
Native or Native These are apps developed using the device-specific programming language, such as Java for Android, Apple’s Objective-C for iOS. The advantages of developing a mobile application…
-
2
votes1
answer525
viewsQ: Build Output: Consider app.config remapping of Assembly
I am receiving the message below regarding several Assemblies, the project compiles and runs normally, however, wanted to know how to solve and whether it can cause future problems. Consider…
-
1
votes2
answers353
viewsQ: Versionar project with Visual Studio 2013 and 2015
A project that uses two versions of Visual Studio (2013 e 2015) conflicts can occur, for example, with file .csproj or any other? Note: I don’t want to ignore this file in versioning.…
-
7
votes1
answer330
viewsQ: Is it recommended to use C# 6 in Visual Studio 2013?
In the Visual Studio 2015 I see that it is possible to define the version of C#: Source: http://www.codeproject.com/Tips/865579/How-to-change-targeted-Csharp-version-in-Visual-St But in the Visual…
-
24
votes2
answers4960
viewsQ: What is the difference between "lambda" and LINQ? How to differentiate them in a sentence?
I often see terms like LINQ query and expressions lambda. Then the question arose, What I’m doing is a LINQ query, an expression lambda or both? Ex1: var query = Produtos.Where(p =>…
-
6
votes1
answer407
viewsQ: Is it possible to show exception message in en-BR?
I would like my exception message to be shown in English, someone would know how? catch (Exception ex) { Debug.Writeline(ex.Message); }
-
1
votes1
answer68
viewsA: Remove Return Header Owin Webapi
I found that the return of JSON with header is related to the signature of the Webapi method that is called, for example: If it’s a method sincrono public List<Produto> GetAllProducts() the…
-
9
votes1
answer515
viewsQ: What are the pros and cons of the Task<List<Object>> implementation on List<Object>
What are the advantages between the two implementations below. Both return a list with multiple products (more than 1k): public Task<List<Product>> GetAllProductsAsync() { var query =…
-
3
votes1
answer698
viewsQ: Testing simultaneous queries on the REST server
I have a server REST/WebApi and wanted to test its performance with simultaneous consultations. My goal is to test, logically the performance, and also if the same is treating each request…
-
3
votes1
answer68
viewsQ: Remove Return Header Owin Webapi
A simple return query to my REST service brings the following answer: { "Id": 1, "Descricao": "TIROLESA DE AÇO", "Und": "UND", "Fabrica": "STARROW", "Estoque": 9, "Preco": 0.39 }, But the query with…
-
6
votes2
answers1307
viewsQ: What does a "Thread Safety" class mean?
According to the MSDN to Webapp Class (Microsoft.Owin.Hosting) is Thread Safety. What exactly does that mean? This class specifically has a method Start that: Start a web app.... Every request to…
-
1
votes1
answer215
viewsQ: IIS Express or Owin self host (as a service)
What are the advantages/disadvantages of these two approaches. Some characteristics: Will be a server REST. The project at first will have few requests Local server (not cloud)…
-
10
votes1
answer2093
viewsQ: OWIN and Oauth What are they and how to use them?
I am seeing Webapi tutorials with authentication/ authorization and I came across these two concepts, although explained in the tutorials the settings are not clear. Even searching the web, the…
-
2
votes1
answer584
viewsA: How to debug in C#?
The first 3 options shown here is necessary to add a break point in your code to view the structure of objeto: 1. After the IDE pause the code on Break Point, click on the tab Immediate Windows,…
-
5
votes1
answer608
viewsQ: Differentiate interface "instance" class instance
Got some way of differentiating v1 of v2 in the code below, by reflection or other method? var v1 = new MinhaClasse(); IMinhaClasse v2 = new MinhaClasse(); I want to run a method only if a variável…
-
1
votes1
answer298
viewsA: Half Gauge (Half Fleece) for Xamarin Forms
Here are two examples of semi-circular: http://www.infragistics.com/products/xamarin-forms/gauges/radial-gauge https://www.syncfusion.com/products/xamarin/circular-gauge/shapes…
-
3
votes1
answer186
viewsQ: Meaning of class member icons in Visual Studio
I wonder if there is any documentation that deals with the meaning of images/ icons of Visual Studio (obviously some are explicit (salvar = disquete) or whose function is shown when positioning the…
-
1
votes2
answers1341
viewsA: Dynamic Graph using Xamarin Forms
There are several (I don’t know if you need them), here are some I found: Oxyplot - Free of charge Official website: Documentation Xlabs - Free of charge Syncfusion - Pago* (Unless mistaken has…
-
6
votes2
answers466
viewsQ: Is there a model to document the "Ubiquitous language" in the DDD?
I would like to know if there is a model to be followed for documentation of linguagem ubíqua or Ubiquitous language DDD. (ubiquitous language) Explaining better, it would be something that would…
-
0
votes2
answers1762
viewsA: Visual Studio Test Explorer does not find the tests
With the latest version of xUnit.Net is already possible, according to the documentation (http://xunit.github.io/docs/running-tests-in-vs.html) it is necessary to install via nuget the package…
-
2
votes2
answers4443
viewsA: How to create a login screen using Xamarin?
See more details here: Show me the code UI Design (Individual no cross): Andoir and iOS…
-
2
votes1
answer113
viewsA: Windows 10 Technical Preview with Hyper-V
The available Preview version is Professional (last downloaded) so Hyper-V is available. Remarks: WIN10 Preview is not recommended for production; It may contain several bugs, including Hyper-V;…
-
1
votes1
answer177
viewsA: VB.NET - Public Shared Function
Maybe I didn’t quite understand the question, in my understanding you’re confusing the modified access Public Shared with BD competition. If so, they have no relationship. With respect to concurrent…
-
1
votes1
answer399
viewsA: Error getting developer license on Windows 8.1
According to this answer in MSDN, the problem must be solved by following the following steps: Click Start, click Run, type services.Msc, and then click OK. In the service list, find Windows Update,…
-
3
votes0
answers138
viewsQ: Bug Intellisense VB6 (Visual Basic 6) when referencing DLL C#
I have a DLL in C# which is used in applications VB6, but whenever it DLL is referred to in the intellisense gets bored. See below the difference in first image without reference to DLL…
-
1
votes1
answer917
viewsA: How to force an entry Numeric on android work with comma instead of point to decimal numbers?
I found a solution in forum of Xamarin (source code is at the end of the reply) You should create a custom keyboard layout (resource XML). This code below is already customized for your need:…
-
1
votes1
answer418
viewsA: Write a Cód to the magnetic probe
Try changing the ANYCPU configuration to x86 in the project settings:…
-
1
votes1
answer39
viewsA: Error in Savedialog c#
Alter: salvar.FileName = label1 + ".cnf"; To: salvar.FileName = label1.Text + ".cnf";…
c#answered rubStackOverflow 7,372 -
2
votes2
answers514
viewsA: How to register lack in electronic point system?
Today there are specific standards for electronic point development. Since 08/25/2009 all companies that adopt the electronic point registration must use the Point Registration Treatment Program…
phpanswered rubStackOverflow 7,372 -
9
votes2
answers144
viewsQ: Is it redundant to use LIMIT in a QUERY whose ID is the primary key?
My question is if using LIMIT there will be some performance gain in the QUERY. Example: SELECT descricao FROM produto WHERE id = 9999 LIMIT 1 Has better performance than? SELECT descricao FROM…
-
3
votes1
answer3348
viewsA: PDF reading . NET
It is even possible to read, however, it is only feasible if the PDF maintains a "clean" format (with well defined rows and columns, no multiline, etc.). Even so a change in layout can break all the…
-
5
votes2
answers2228
viewsA: Is it possible to compile for IOS using Delphi XE7 on Windows?
With experience with other platforms (Xamarin) I can state that to compile/debug it is necessary to have a MAC machine (and not just any one, you have to run the newest Yosemite version). Here are…
-
1
votes1
answer33
viewsQ: Static or Resource class?
I want to abstract the phrases/words often used in my project, however, arose the doubts where to put them Static Class or create a Resource? What is the recommendation for best practice and…
-
3
votes1
answer600
viewsA: Site Republica Virtual off the air
The post office website itself has a service: https://apps.correios.com.br/SigepMasterJPA/AtendeClienteService/AtendeCliente?wsdl…
-
2
votes1
answer95
viewsQ: Same different result code (Visual Studio 2012 X dotnetfiddle.net)
Follows image with the results on both platforms, has some explanation or is a bug in the online compiler? Both are console application, the only difference is that in VS is being compiled with…
-
1
votes2
answers818
viewsA: Store decimal value
var textBoxValor = "10.8"; decimal variavel = Decimal.Parse(textBoxValor.Replace(".", ",")); Must treat to have only one decimal point be it point (.) or comma (,) Heed also regarding the language,…
c#answered rubStackOverflow 7,372 -
1
votes2
answers710
viewsA: Error when adding reference to a web service
Maybe the address has changed, try this: https://apps.correios.com.br/SigepMasterJPA/AtendeClienteService/AtendeCliente?wsdl Tests done here worked:…