Posts by Lodi • 1,075 points
57 posts
-
0
votes1
answer30
viewsA: How to run a method until the return is true(true) ? Windows Forms C#
Hello, I would try something recursive. Follow an untested example of how I would do, validate the idea and modify until you get the result you expect... public static bool GetPercentBattery() { int…
-
0
votes1
answer68
viewsA: Error A namespace cannot directly contain members, such as fields or methods
I believe the problem occurs because the method OnTriggerEnter and OnTriggerExit is outside the scope of the Door class. Following corrected example. using System.Collections; using…
-
0
votes1
answer202
viewsQ: Dynamically referencing dll C#
During the development of an application that will connect to a database of different versions, a question arose whether it is possible to load the dll based on the version selected by the user.…
-
0
votes1
answer53
viewsA: Error making select with start and end date
I’m assuming that the datetimepicker is in a windows form application. You can use: data_Final.Value to obtain a Type object DateTime. Or if you want the date in string format you can use the…
-
2
votes2
answers83
viewsA: Form closing without close()
Check the value of the property DialogResult of the button, it must have as value DialogResult.None. Another detail, the form has two properties AcceptButton and CancelButton check that the button…
-
2
votes1
answer295
viewsA: PDO bindValue PHP
bindParam() and bindValue() are methods of Pdostatement that in this context is the return of prepare. Do a test with this model I sent! <?php class funcionario{ private $con; private $nome;…
-
1
votes1
answer61
viewsA: How does "Threadpool.Unsafequeueuserworkitem" work?
Thead Pool: Provides a pool of threads that can be used to perform tasks, post work items, process asynchronous I/O, wait on behalf of other threads, and process timers. Utilizing: You should use…
-
1
votes1
answer234
viewsA: How to fill a Datagridview manually, after having used "Tolist()" from the link as Datasource?
Just redo the initial process, it will update the information of the dgv. var enderecos = from endereco in EnderecoBusiness.Enderecos select new { Logradouro = endereco.Logradouro, Numero =…
-
1
votes1
answer167
viewsA: Error passing information from a datagrid line of a form to the datagrid of another form
This happens because you are trying to access a line that does not yet exist, try to do this way: dataGridView1.Columns.Add("collumName", "HeaderText"); dataGridView1.Columns.Add("collumName1",…
-
1
votes4
answers84
viewsA: Show the output of a custom vector
I made a simpler example, take a look and see if it’s what you’re looking for.. include 'professores.php'; $count = count($Plugins['professores']['plugins']); //Contador de 4 em 4 adiciona um AB…
-
0
votes2
answers36
viewsA: Help with a Grid in Bootstrap4
I made an example below you will need to modify. I advise you to read the documentation of bootstrap so you will feel more comfortable when developing responsive pages... <script…
twitter-bootstrapanswered Lodi 1,075 -
2
votes2
answers291
views -
0
votes2
answers375
viewsA: Multiply input values
I made a change for it to multiply, but if you want to do the other operations will have to improve its function. function Soma(){ var soma = 0; var ipts =…
javascriptanswered Lodi 1,075 -
1
votes1
answer1259
viewsA: DIV side by side
I made a small modification, adding a div and the style display:flex attributed to her. .projeto{ background-color: #F6F3F3; border-radius: 50px; padding: 1%; margin-right: 5%; margin-left: 5%;…
-
0
votes1
answer248
viewsA: Laravel 5.1 access cookie generated in middleware before being redirected to view
Hello, you can access it this way. {{\Illuminate\Support\Facades\Cookie::get('refreshToken_')}} maybe for sure using {{Cookie::get('refreshToken_')}} or {{ cookie('refreshToken_') }} take a test and…
-
1
votes4
answers686
viewsA: How to display the elements of an array where they are arrays?
This is happening to you because you created an array within an array. If you remove the [] of $_SESSION['array1'] and $_SESSION['array2'] will work properly. Example: function cadastrar($nome,…
-
3
votes1
answer90
viewsA: How to get the date and time of the machine to create a folder?
Try using this example below, you should change the path! DateTime dta = DateTime.Now; string dtaStr = dta.ToString("dd" + "-" + "MM" + "-" + "yyyy" + " " + "HH" + "-" + "mm"); //data formatada to…
-
6
votes2
answers1253
viewsA: C program executing commands in cmd
Hello, you need to use shellExecute to do this, it will run a . bat with these commands. Example: it would be something like this. ShellExecute(hwnd, "runas", "c:\\net.bat", NULL,…
-
2
votes1
answer56
viewsA: How to know if a query has returned true
Hello I made a modification in function pesquisarUsuario(), I don’t know if it’s gonna work out, but just run a test there and post the result for us... public function pesquisarUsuario($id){ $query…
-
1
votes1
answer157
viewsA: Laravel: "Could not open imput file: Artisan". What can it be?
Requirements for the installation: PHP >= 7.1.3 Openssl PHP Extension PDO PHP Extension Mbstring PHP Extension Tokenizer PHP Extension XML PHP Extension Ctype PHP Extension JSON PHP Extension…
-
7
votes1
answer155
viewsA: How to stop the SQL Server service using C#
I believe this way he will execute the CMD and run the stop command on the service make a test to see if it solves your problem. System.Diagnostics.Process process = new…
-
2
votes3
answers399
viewsA: pass javascript variable to a php variable
Follow an example: var myval = 'test'; $.ajax({ type: 'POST', url: 'seuphpfile.php', data: {'variable': myval}, }); Receiving variable in PHP (seuphpfile.php) $minhaVariavel = $_POST['variable'];…
-
1
votes1
answer3205
viewsA: Fixed side menu on the left with Contents on the right
Here is an example of how the structure of your website should be, after understanding how it works, just cut the part of the menu and include in the php file referring to the menu and the main file…
-
2
votes1
answer3340
viewsA: Method Difference with Getmapping and Requestmapping
Short answer There is no difference in semantics Specifically, @Getmapping a compound notation that acts as a shortcut to @Requestmapping (method = Requestmethod.GET). Additional reading:…
-
2
votes2
answers3852
viewsA: Why does Bootstrap 4 datepicker API not work?
Hello I made some tests and the problem is in using INPUT you must use DIV in datetimer, I think there is a better library than the bootstrap you are using, try it’s here from jQuery.UI. But anyway…
-
1
votes1
answer402
viewsA: Apache2 does not run php
You need to remove a comment in this file /etc/apache2/httpd.conf. I’ve had this problem and it’s solved. LoadModule php5_module libexec/apache2/libphp7.so if it doesn’t work try adding it to your .…
-
1
votes1
answer196
viewsA: Create dialog boxes within the page
You will need to improve the css and the placement of notifications but the way I did it already creates more than one and then deleta when the timer ends. make tests and modifications and you will…
-
2
votes3
answers481
viewsA: Changing the text of the Button
Follow an example! After capturing the element clicked by the class, just use this to indicate that you want to change the element clicked! $(".btn").click(function(e){ $(this).text("mudei"); });…
-
0
votes3
answers559
viewsA: How to know the type of a variable in Kotlin?
Here is an example for testing and analyzing val obj: Double = 5.0 System.out.println(obj.javaClass.name) // double System.out.println(obj.javaClass.kotlin) // class kotlin.Double…
-
0
votes3
answers1169
viewsA: Calculator in php using buttons
switch ($escolha){ case 'Soma': $result = $n1 + $n2; echo "O Resultado é: $result"; break; case 'Subtração': $result = $n1 + $n2; echo "O Resultado é: $result"; break; } Your problem is in the case…
-
2
votes2
answers990
views -
1
votes1
answer202
viewsQ: Doubt about file generated after using npm run build with Vue-cli + webpack
I’m studying and developing a spa, and I noticed that using the remote npm run build it generates two files app.js and app.map.js I didn’t mean why this file .map someone can explain to me why?…
-
0
votes3
answers50
viewsA: Count data from a table to sum
You tried some query already? Test this example : SELECT COUNT(Nome_do_profissional), valor FROM Servicos WHERE Nome_do_profissional = 'Susana';
-
1
votes1
answer293
viewsA: Currency Conversion Using jQuery API
I made an example below, analyzing the api I realized that it does exactly what you reported, but you must multiply the value to be converted by the result, as I did below!…
-
0
votes1
answer1174
viewsA: FACEBOOK API - APPLICATION DOMAIN
In Settings in the Advanced tab you have some options to configure also from a look at the image below then try to configure your application again!…
-
1
votes3
answers38
viewsA: PHP integer value being modified for no apparent reason
Numbers started with zero, since valid, are interpreted based on 8 (octal), ie 02345674 was interpreted based on 8 and its representation based on 10 is 641980. The warning manual on this on the…
-
0
votes1
answer224
viewsA: Doubt Laravel Queue, Job, Mail
After many attempts I was able to find a solution external to the Laravel, it follows the code used and the link to Phpmailer, the library I used to solve the problem! use…
-
1
votes2
answers51
viewsA: images do not side by side with display-block, vertical align and float(CSS) just below each other
Just add the inline-block in the element <ol> .painel li { display: inline-block; vertical-align: top; width: 140px; margin: 2px; padding-bottom: 10px; } .painel h2 { font-size: 24px;…
-
1
votes2
answers131
viewsA: How to adjust an anchor button to stand next to a`select`field in Bootstrap?
Now it was even with bootstrap in the snippet, if you click on run will see that it will work as you wish :) <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css"…
-
1
votes1
answer867
viewsA: Side-by-side Forms alignments with Bootstrap 4
I modified the html structure, try it this way see if it’s right! If it works, see how I split the Divs, a main flex, and the other two who will stand side by side, one with mr-auto e ml-auto. Test…
twitter-bootstrapanswered Lodi 1,075 -
1
votes3
answers76
viewsA: Doubt in the layout composition
I would do so: HTML / CSS .um{ height: 40%; background-color: blue; } .dois{ height: 60%; background-color: red; overflow:auto; } .conteudo{ height: 800px } .mytable{ max-height: 100%; } <div…
-
0
votes2
answers727
viewsA: Which files go up in an Laravel project
If it is the first deploy you have to upload all the files in the website directory, the folders are: App Bootstrap Config database public Resources Routes Storage tests vendor if using NPM the…
-
1
votes1
answer224
viewsQ: Doubt Laravel Queue, Job, Mail
I’m trying to get my system from a cronjob, send email to a certain list, my problem is this: when I do it through a route have no problem any emails are sent! But when sending the email is done…
-
2
votes2
answers45
viewsQ: Problems with Join Laravel ORM
Hello, I’m trying to create an advanced query, but I’m having some problems following the code for analysis! Anuncio::join('users', function ($users) use ($request){ $users->on('users.id' , '=',…
-
0
votes0
answers243
viewsQ: Problem with Axios headers | Application => Laravel + Vue.js
I am trying to make a request with Xios, but I can’t always get the following error: admin:1 Failed to load http://minhaurlencurtada: Response to preflight request doesn't pass access control check:…
-
0
votes0
answers88
views -
0
votes1
answer42
viewsA: AWS SES CURL ERROR
Problem solved, it was the server us-east-2 that was incorrect!
-
0
votes1
answer42
viewsQ: AWS SES CURL ERROR
I’m trying to set up an email server for my website, but when I try to send some email I get this error: Error executing "SendRawEmail" on "https://email.us-east-2.amazonaws.com"; AWS HTTP error:…
-
0
votes1
answer25
viewsA: Datagridview doubt in C#
The same goes for everyone carrying I will explain only the first! He takes from the Component DataGridView, the element on the line e.RowIndex, the column "Codigo" and in this column the value that…
-
0
votes1
answer1187
viewsQ: Problems loading Static files to Django in deploy on Heroku
I’m trying to deploy an app I started in Jango on Heroku, but I’m having trouble loading the css/js/imgs files, follow below as my folders and settings related to it! py Settings. BASE_DIR =…