Posts by Marccus Zavadzki • 466 points
16 posts
-
1
votes1
answer32
viewsA: On which project layer with DDD concept, should I create a function or routine for the reorganization of portions of a receivable?
Depends! If business rules happen within the reorganization of installments, it is more certain to create a command for this, but, thinking that it is only a query to be executed, as you are already…
-
3
votes2
answers318
viewsA: "-" operator cannot be applied to a string
Dude, no referral error is no, because he’s wearing dudes 'primitivos'. I believe the problem is that the compiler gets lost in the signals, it first converts the inteiro for string and then apply…
-
2
votes1
answer62
viewsA: Make Sort of a list
Come on. First you need to sort the list from the name or the score? If it’s from the name, it’s quiet. Just use the Linq Thus: Classificacoes = Classificacoes.OrderByDescending(c => c).ToList();…
-
6
votes3
answers17023
viewsA: Do while in python
Not! But you can Simular one of the while... Language C: int i = 1; do{ printf("%d\n", i); i = i + 1; } while(i <= 3); Python: i = 1 while True: print(i) i = i + 1 if(i > 3): break…
-
2
votes1
answer57
viewsQ: How to set a Returnpath in SMTP email sending
I’m making a console that sends emails. I need the emails sent with error to return to another email (other than the one sent). I managed to set the ReturnPath in the header email, but it didn’t…
-
-1
votes1
answer38
viewsQ: Camouflage Sender using Smtpclient
Eae you guys, beauty? I am making a very simple email Nder, but I found myself in a question that I can not solve... My first idea was to get a temporary email address to use as a Sender... But…
-
1
votes2
answers102
viewsA: List something from a constructor
You can override the method toString() returning a String concatenated with the data you want... Example: public String toString(){ return "Nome: " + this.nomeCompleto + ", Nascimento: " +…
-
1
votes1
answer61
viewsA: How to compare variable value with increment operator?
To make the comparison with a variable first you need either create it or pass it as Parameter... Follow an example passing it as Parameter: function addBanner($i, $numerovar) { static $conta1 = 0;…
phpanswered Marccus Zavadzki 466 -
2
votes1
answer64
viewsA: Show in PHP a query that is done directly in phpMyAdmin
Dude, you’re going to have to create a table in html, and pull the data that came from select through a While, after that and just structure the data in the table that they get "Cute" haha. Come on:…
-
2
votes2
answers373
viewsA: Difference between Arraylist and Mutablelist in Kotlin
Mutablelist is a type of Generic List, ja Arraylist is a more specific type... When you create a MutableList you say you don’t care about the kind of implementation of the list, ja na ArrayList you…
kotlinanswered Marccus Zavadzki 466 -
4
votes2
answers94
viewsA: Incorrect Output when Printing Array Elements
When you try to print an object directly, it prints the memory address where the object is allocated... That is, you can’t directly print the b, there are two ways to do this... 1st) In class…
javaanswered Marccus Zavadzki 466 -
1
votes1
answer47
viewsA: How to call the method of one class within another (bluej)
Use Static... public static void valorConta(){ int i=0; float totalConta=0; for(i=0;i<listaligacoes.length;i++){ totalConta+=(listaligacoes[i].calcularDuracao()*listaligacoes[i].getvalor()); } }…
javaanswered Marccus Zavadzki 466 -
2
votes1
answer39
viewsA: how to connect to Phpmyadm database?
You forgot to put an "i"... $con = new mysqli($Conexao, $User $Senha, $Database)) It Creates the Connection For you, where:$Conexao = localhost (no teu caso)$Database = Nome da tua base de dados...…
-
0
votes2
answers806
viewsA: Regex date validation with 2/2/4 characters
Man, I don’t quite understand your question, but... I believe this Regex solves your problem: \d{2}[-\/\.]\d{2}[-\/\.]\d{4}|\d{8} It accepts date formats like (I believe that’s what you asked…
-
2
votes1
answer51
viewsA: Delete hostname from a computer name via REGEX
^.*?\. use that Regex should solve... ^: to indicate that it is at the beginning of a string .*: Delete everything... ?\.: Until the first Point.…
regexanswered Marccus Zavadzki 466 -
0
votes1
answer307
viewsA: Insert Array into JSON
I didn’t quite understand the question, but if I understood correctly you want to play a list in your Json, I recommend Serialize your list in a Json... JsonConvert.SerializeObject(cidades,…