Posts by Dorathoto • 7,426 points
252 posts
-
0
votes0
answers35
viewsQ: How to delete all files from one branch and copy from another branch
I have a branch called stage and another dev dev gets all temporary branchs from Features and fix but not all of them are approved and go to Stage. The problem is that dev has so many commits that…
-
0
votes1
answer286
viewsQ: Datatable order by Data en
I’m using the component Datatables.net version 1.19 and I’m having trouble sorting by date by default DD/MM/YYYY HH:mm:ss already tried with Moment, date-me and nothing makes it stay correctly…
-
1
votes1
answer1109
viewsQ: Regular expression to validate car plate
I would like a regular loan to validate license plates. Today in Brazil we have 2 models: the old and Brazil. The difference is that in the 5th character, in the South is only text while in the old…
-
0
votes1
answer164
viewsQ: Named async Python class
I would like to call a class that does a post for an Endpoint but that this call was not blocking, because it is inside an event that sometimes triggers 5 cohorts in a row and I can’t wait for the…
-
1
votes2
answers137
viewsA: Problem sending data from a console application to Webservice
made without testing, may be necessary small adjustments, I believe that by Httpclient is the best, easiest way. using System; using System.Net.Http; public class Program { public static void Main()…
-
2
votes1
answer95
viewsQ: C++ language standard for pointer
I’m starting studies on C++ would like what is the language recommendation (market standard) to reference a pointer. ex: l->propriedade; or (*l).propriedade; I believe there’s no difference in…
-
0
votes5
answers3392
viewsA: One below the other input
You can do it in various ways as already said, you should only decide if the CSS will be put in the input (that is, all input will have this effect) or any .classeDefinida (then you specify when you…
-
1
votes1
answer248
viewsA: Record Email and Phone Array in Database with Entity
The problem is that you create fields dynamically and therefore the name="Fieldname" is not recognized by the controller. Remember that when making an Asp-for="Model.Property" you are just making a…
-
0
votes1
answer75
viewsA: Visual Studio not respecting ASP.NET Core Templates
I found that as my project was created with the .core 1.0 and after updates of . net the folder was missing Templates\ViewGenerator_Versioned\Bootstrap3 So before he wore the…
-
1
votes1
answer75
viewsQ: Visual Studio not respecting ASP.NET Core Templates
I have a project ASP.NET Core 2.2 And within the project I have the Templates folder that has my Custom Scanfolding, for some reason it stopped working, I used it a lot. Today after several updates…
-
0
votes1
answer68
viewsA: Rotating alternative in Azure
Azure allows yes, but it will have to be plans S1 up. Or if you want at low cost, create a VM and host manually.
-
5
votes1
answer131
viewsQ: code-prettify does not work with linear code (a single line)
I’m using the Google library to format code: Google code-prettify It works very well in almost every case, but as my text comes in a single string, it doesn’t work as well. It works well for:…
javascriptasked Dorathoto 7,426 -
2
votes1
answer262
viewsQ: How to draw 3 CSS circles with 1 div
I would like to do 3 icones in CSS, but I don’t want to do with several div, div filhos, etc. I’d like something clean, like <div class="Status1"></div> <div…
-
4
votes0
answers216
viewsQ: File config Serilog Sink Asp.net Core
I am using the Serilog log log library on ASP.NET Core 2.1 I am using based on the Serilog manual: https://github.com/serilog/serilog-sinks-mssqlserver Normally the configuration file is in…
-
-1
votes4
answers425
viewsA: Is it not recommended to use scaffolding?
Old question, but I would like to add opinions in 2019. Today several frameworks allow you to configure and customize your scanffolding templates, ex: ASP.NET You can customize everything from the…
software-engineeringanswered Dorathoto 7,426 -
2
votes0
answers95
viewsQ: Service with Filesystemwatcher does not listen forever
I’m doing a windows service in C#, which listens to a folder and every time it has an audio file it uploads. The problem is that it works, but after a few minutes of listening to the folder, it does…
-
0
votes2
answers59
viewsQ: Jquery Validation only after dropdown is selected
I have a dropdown and want to validate, make it mandatory only if a checkbox is checked, otherwise it is not required I tried to do as Jsfiddler https://jsfiddle.net/dorathoto/zoh72rx5/6/ <form…
-
0
votes1
answer1627
viewsQ: Bootstrap breaking line
I am mounting a modal in bootstrap and inside it using a form. with the <div class="form-group"> within each of these sets a grid, with col-Xs- that the sum of 12 (one with 2, 2 and 8) but…
-
0
votes1
answer38
viewsQ: How to play a background audio?
I’m making a python program that runs inside an infinite loop.. Under certain conditions I need to play an audio, but I cannot wait for the audio to finish to continue the process. I thought of…
-
4
votes3
answers512
viewsQ: Jquery monitoring key sequences
I’m making a form, where data is entered by scanning barcodes (default code 128). After scanning each value, the handheld scanner is already set to give a <TAB> and go to the next field,…
-
0
votes2
answers65
viewsQ: Validation based on a word list
I want to validate a form with Jquery + Jquery Validation, using a list of authorized words. Ex: var PalavrasAutorizadas = ['foo', 'bar', 'fizz', 'buzz' ]; if he enters any word that is not on the…
-
6
votes2
answers1675
viewsQ: Translating Identity in English
I’m using the Identity on my application MVC 5.2.3 Microsoft.AspNet.Identity.Core 2.2.1 also installed the translation package of the same Microsoft.AspNet.Identity.Core.pt-br 2.2.1…
-
14
votes3
answers10675
viewsA: What are Path Parameters in a URI?
There’s a subtle difference between Path params and params Query that I take the liberty of translating to Parâmetros do caminho da Url and Parâmetros de Consulta Both do the same thing but in…
-
1
votes1
answer45
viewsQ: custom rangeValidation
How to make a Validator range where Max is the current year + 1 ? I’m wanting to do a validation in dataannotation on my models I want to do a validation range from 1950 to current year +1 By…
-
2
votes1
answer83
viewsQ: Modeling - Model
I’m having trouble creating my models. Let’s imagine that I have 4 different types of products (Here as A,B,C and D) public class Produto { public int ProdutoId { get; set; } public TipoProduto…
-
1
votes1
answer317
viewsA: Calculation of currency sum
You have 2 paths. Do through SQL (Stored Procedure, or computer by, etc) and already return the ready data. Or through the Gridview1_rowdatabound (ASP.NET) property if it is Windows.Form…
-
1
votes1
answer1260
viewsA: c# read a remote source XML file
The problem is how to read the attributes, recommend desiccate to a class. A valid example of a class to deselect its xml in model https://paste.ofcode.org/BDAVPU5T5sZ7xZ4kfjUmea NOTE: Just copy the…
-
1
votes1
answer964
viewsA: How to delete objects within a list?
By default Entityframework already does the deletecascade by default, only if you turn it off with the following command it will not do it: protected override void OnModelCreating(DbModelBuilder…
-
1
votes1
answer108
viewsA: How to detect the mouse wheel?
There are some ways. Call Readconsoleinput you will receive a MOUSE_WHEELED if the mouse Whell is rotated. Create a Windows.Form program without the windows.form environment so you’ll have mouse…
-
2
votes1
answer710
viewsA: Transforming synchronous into asynchronous method
Yes, it is possible to have a synchronous method in an asynchronous process. What will happen? Several Task will be created and each task will run a synchronous process. OBS: Sometimes there is no…
-
0
votes3
answers230
viewsA: Bi-directional asynchronous communication in layers
I would do ViewLayer work with javascript (AJAX) calling async your BLL (businessLayer) so it would be quite easy to stop the execution of the process. The Behavior of $Ajax is already async by…
-
0
votes2
answers469
viewsA: Sum recursive sequence
We can use this answer to your question: Recursive function simulating a number elevated to a power def potencia(base, power, show_steps=True): """show_steps serve só para dizer se amostrar os…
-
3
votes1
answer115
viewsQ: Codetemplate in . net core [scaffolding]
As in . net core 2.0 I do to create custom scaffolding templates? On the old system . net 4.6 copied the Codetemplates folder to the project. No . net core < 2 instavala o…
-
4
votes2
answers1072
viewsA: How to make the business logo icon appear in outlook message box
First it may not work for all cases, so I tested and researched only for: The concept is the same that appears here in Gmail. Here the icone alone: Short description They are referred to internally…
-
0
votes2
answers599
viewsQ: jquery n.fn.init(0) in production in n.fn.init test(1)
I have a form that creates the input fields dynamically (ASP.NET MVC C#), when the user type in a field, I want to execute an ajax to fill the other fields. When I created a test.html, with the…
-
0
votes2
answers386
viewsQ: jquery Blur in dynamic inputs
I have a form where I dynamically create the <inputs> With the following structure: <input class="form-control placaCss Tamanho200 text-box single-line valid"…
-
0
votes2
answers194
viewsQ: Different errors in C code on different compilers
In the following code below there is an error that the Lccx86 compiler for Windows claims to exist, but I copied the codes from a C class I am watching. Class link, for those interested In the C…
-
1
votes1
answer73
viewsA: Transform a byte array into Dataset
I would do otherwise: //Declaro o StreamReader para o caminho onde se encontra o arquivo StreamReader rd = new StreamReader(@"e:\file.csv"); //Declaro uma string que será utilizada para receber a…
-
2
votes1
answer607
viewsA: Format @Html.Label - MVC
The problem is that your CSS has something that formats this line based on the tag <a> of HTML Link about CSS Nested Example: .Topo{} .Topo a { aqui está o codigo que alinha e deixa branco} So…
-
8
votes1
answer387
viewsA: Spring MVC and turnstile integration
Model Ratchet Box - with serial communication standards RS232 and RS485. RS232: cable up to 100m RS485 length: cable up to 500m long, allows connection of up to 32 turnstiles or Inners to the same…
-
1
votes4
answers488
viewsA: How to treat this Nullreferenceexception
viewmodel.PessoaJuridica is empty, so it’s not possible for you to access his sublevel.. can give a breack point and check. do something like var teste = viewmodel.PessoaJuridica; and see and in the…
-
12
votes1
answer1251
viewsA: Demonstrating a slowloris attack on apache server using Python
The approach is correct, the script is also. But I would start from something a little more robust like: Slowloris.py https://github.com/gkbrk/slowloris Basically an HTTP denial of service attack…
-
1
votes1
answer424
viewsA: Two classes mapping the same table with the Entity Framework
is using Identity must not use DbSet<Usuarios> and yes db.Users.
-
1
votes1
answer266
viewsA: Problem with Fast Colored Textbox (indentation)
You just want to fix the identation? Ctrl+K+D If you want a tool that does this on multiple pages or even in the entire project, I recommend Codemaid, 100% free http://www.codemaid.net/ There is…
-
0
votes1
answer52
viewsA: Queuing Problems for Asynchronous Controllers
If you want to release the resources even without them being 100% executed, just change await Task.WhenAll(tasks); for await Task.WhaitAll(tasks);…
-
0
votes1
answer177
viewsA: Escrenvendo on the Async Island
The goal was to create a progress bar, I managed to develop something like below. public class ProgressBar : IDisposable, IProgress<double> { public int blockCount = 20; private readonly…
-
0
votes1
answer793
viewsA: blocked:Mixed-content in https calling iframe without https
Unfortunately I think I’m going to close my question or ask myself an answer, because it’s impossible to do what I want. Motive:…
-
0
votes1
answer793
viewsQ: blocked:Mixed-content in https calling iframe without https
I have a website on https and I need to call through a iframe a page on another server, which unfortunately does not have https. The Navigator Chrome blocks this request for being outside of https.…
-
1
votes0
answers26
viewsQ: Output MS SQL server bandwidth
I have a MS SQL server, with 14 Databases, ranging from 2mb to 20gb. His outgoing traffic through the network is around 92GB/day. I wonder if there is how I monitor to know: Which Databases consume…
sql-serverasked Dorathoto 7,426 -
3
votes1
answer839
viewsQ: Jquery Validate max as per condition
I’m making a jquery.validate, can make max dynamically, something like: ... max: function () { return $('#QtdEstoqueHidden').val(); ... ok, it worked! (I store the max value in a Hidden field that…