Posts by rods • 419 points
22 posts
-
0
votes1
answer166
viewsQ: Problem when saving date in mysql database with spring
I am trying to save a date in the database using spring + jpa in mysql. In my class I have the following field: @Column(name = "dataNasc") @DateTimeFormat(pattern = "yyyy-MM-dd") @NotNull private…
-
-1
votes1
answer49
viewsQ: Mock and inject a service class at the same time
I have a spring test class that in some cases I want it to behave in the normal flow, that is, when it is done a findAll() hitting the repository it returns the value it selects from the embedded…
-
-1
votes3
answers110
viewsA: How to access img of a JQUERY figure?
Try performing by swapping for the class of the photo: $('.caraDoFotografo').attr('src');
-
1
votes0
answers34
viewsQ: Sonarqube validating methods from other JAVA files
I am developing a sonarqube rule, but I find myself with the following problem: If a method of one class calls another method, I want to validate if the so-called method exists, but I only have…
-
4
votes2
answers2531
viewsQ: API request mails returning null
I have a problem with my code c#, I am trying to consume the Post Office API but the data is null. I found another tutorial on the internet that said to instantiate the class trace and grab the…
-
0
votes1
answer36
viewsQ: Node assync Function does not return data
index js.: $.ajax({ type:'POST', url: 'http://localhost:3000/login', dataType: 'application/json', data: {username: username, password: password} }) .done(data => { console.log(data); }); in my…
-
1
votes1
answer319
viewsQ: Node js problem when picking function value
I have the following structure in Node : module.exports.find = function(pesquisa,frase){ return new Promise((resolve,reject) => { pesquisa.find(frase, function(err,data){ if(err) throw err; else…
-
0
votes2
answers1426
viewsQ: Render an html in Node with js
I can route in the Node where it calls an html page, but the html page has a file. js and when it is called the error of not finding the JS file. Can someone help me? Structure: main folder :…
-
0
votes2
answers519
viewsQ: JSON Javascript external file
I would like to upload an external json file to my html page through javascript. When I tried, the following error occurred: " Cross origin requests are only supported for Protocol schemes: http,…
-
5
votes2
answers183
viewsQ: Docker Compose image container
How to connect 3 images in Docker-Compose ? i would like Elasticsearch, Kibana and panthomJS to be inserted in only 1 container, but I only got Elasticsearch with Kibana. How can I do that? Any…
-
2
votes2
answers1302
viewsQ: call php function in c#
As by c# in Windowsformsapplication call a function from a php page and take the value from it, example: php page: function retornar() { $valor = "aa"; return $valor; } In case I would like to call…
-
2
votes1
answer32
viewsA: problem with multidimensional array does not take value
Try it this way: $dados= '[{"nome":"teste","cpf":"teste"}]'; $value= json_decode($dados, TRUE); foreach($vaue as $in) { $nome = $in['nome']; $cpf $in['cpf']; }
-
1
votes1
answer56
viewsA: listbox item (UWP)
while (reader.Read()) { int index = listbox.Items.IndexOf(reader.GetString("id")); if(index< 0) { listBox.Items.Add(("Registro: " +reader.GetString("id"))); } } if it does not find the index…
-
2
votes1
answer57
viewsA: C# add controls to my form
TextBox t1 = new TextBox(); t1.Location = new Point(10, 10); t1.Text = "Olá Mundo!"; this.Controls.Add(t1); See if it works ^^
-
0
votes1
answer831
viewsA: php another page function
try like this: <?php $GLOBALS['host'] = "host"; $GLOBALS['port'] = 587; $GLOBALS['username'] = 'usuario'; $GLOBALS['password'] = 'senha'; $GLOBALS['secure'] = 'tls'; $GLOBALS['from'] =…
-
3
votes3
answers213
viewsA: Function explodes() into a vector
$VAR = joao.silva/jose.ferreira/maria.jose/carlos.eduardo/ $pieces = explode("/", $VAR); echo $piece[0]; //joao.silva See if it solves ^^
-
2
votes1
answer80
viewsA: Create controls dynamically in WPF
CheckBox ch1 = new CheckBox(); ch1.Location = new Point(10, 10); ch1.Text = "Olá Mundo!"; this.Controls.Add(ch1); See if you solve, also enter your default options, for example if you want it to…
-
-1
votes1
answer966
viewsQ: Phpmailer does not work email
I have the code to follow: require_once('c:\wamp64\www\phpmailer\class.phpmailer.php'); $mail = New PHPMailer(); //$mail-> ErrorInfo; //exit; $mail->IsSMTP = true; //$mail-> ErrorInfo;…
-
1
votes5
answers1205
views -
0
votes1
answer1324
views -
0
votes1
answer108
viewsQ: Catch value of a li Angularjs Ionic
<div class="list"> <li class="item" ng-click="city()" ng-repeat="seg in segmento">{{seg}}</li> </div> I have this code in my Ionic framework I would like to get the value of…
-
1
votes1
answer213
viewsQ: Cellular Ionic http request framework
I have an Ionic page that makes request for a page in codeigniter, I send the data and receive correctly, no problems in the browser, but when I turn into . apk and I run the application on the…