Posts by Andre • 691 points
14 posts
-
5
votes2
answers95
viewsQ: Is doing unstable code commits in Git bad practice?
I have a very big change to make or I have cause of a class that has many relationships. Do I need to leave the project in a stable situation before doing local commits? Or is tested and stable code…
-
1
votes0
answers1186
viewsQ: PHP - file_get_contents('php://input') is the only way to read contenttype=application/json request?
I have the following Jquery Ajax method function postRefreshJson(_action, jsonModel) { $.ajax({ url: _action, method: 'POST', beforeSend: function (xhr) { $("body").css("cursor", "progress"); },…
-
5
votes1
answer57
viewsQ: PHP xf0 represents 0xF0?
If \xF0 represents a hexa as well as 0xF0, because their exit is different? echo "\xF0"; echo 0xF0; I can’t really find any information on that notation \xF0 in the PHP manual.…
-
0
votes1
answer79
viewsQ: Alternative to Unit of Work + Repository for Dbcontext sharing
I’ve seen many times people talking that it makes no sense to use Unit of Work + Repository with Dbcontext Work unit (Unit of Work) with repository Supposedly it would be "more certain" to use…
-
0
votes1
answer212
viewsQ: Java Stream converter Map<String, Obj> to List<Obj>
I have this object filled: Map<String, List<LogLine>> logMap = new TreeMap<>(); And after I’ve made a filter, I’d like a flat list of it, but I can only create a list…
-
3
votes1
answer156
viewsQ: Excel days function Dates does not work
I do not know what to do, excel does not show me the correct result in the date formula below, the expected result should be 30 days, but appears 30/01/1900…
-
0
votes1
answer809
viewsQ: Alternative Flow in Alternative Use Case Flow can?
I would like to know if I can have an alternate flow within an alternate flow in a use case. Type A1 alternate flow which has A2: A1: O usuário clicou em Excluir 1 - O sistema solicita aprovação 2 -…
-
4
votes1
answer100
viewsQ: Aspnet MVC database first or code first
I have an Aspnet MVC 5 project in which I will use Owin and Identity, I needed to customize Identity (attributes and relations) to meet my needs, but I already have all the tables of the database…
-
3
votes2
answers446
viewsQ: Java Spring Extender @Scheduled to read a file
I have tasks to do as soon as I top up my application, they run over and over again that way: @Scheduled(fixedRate = 10000) public void scheduleFixedRateTask() { System.out.println("Fixed rate task…
-
2
votes1
answer3789
viewsQ: C# Digital Certificate A3 CPF Token
I have to put a digital certificate type CPF A3 token with password, in an Httpwebrequest, so I was trying to use the X509certificate2, as follows: private X509Certificate2 GetCert(string CertFile,…
-
11
votes3
answers1063
viewsQ: What is the difference between System.Web.Http and System.Web.Mvc?
I have an MVC project and in it I will have normal controls and controls providing services via webservices (Controller and ApiController). And I don’t know which one to use because I don’t know…
-
27
votes4
answers1698
viewsQ: Why use C#extension methods?
What I get with extension methods I don’t earn with inheritance? Simply using it as the same name is complicated, since it creates more confusion than anything else.
-
0
votes2
answers452
viewsA: How to run a Timer class (always) on deployment?
The output was to create some other java class annotated with @Component and in it create a method with that signature.. @EventListener public void onCreate(ContextRefreshedEvent e) {} This method…
-
1
votes2
answers452
viewsQ: How to run a Timer class (always) on deployment?
I have a non-web project and I will turn it into a web project using Spring MVC. Today in my method static main of my main class, I create it here: Exec.principalTimer = new Timer();…