Posts by LeoFelipe • 1,455 points
52 posts
-
0
votes0
answers16
viewsQ: Communication between Applications using Httpclient with SSL error
I have an IIS 10 server with two applications developed by the company. The first, older, is an MVC developed in . Net Framework 4.5. The second, newer, is an API developed in . Net Core 3.1. In…
-
3
votes1
answer69
viewsQ: Injection of Dependencies Layers Application / Domain / Repository
In an application using the concepts of DDD I am in doubt about who could inject (dependencies) in a certain class, if there is any standard for such. This is the following between the Application,…
-
1
votes1
answer64
viewsQ: Create nuget package from a REST web API application
I have a WEB API REST service in ASP.NET CORE 2.0 multiple projects(layers) in it. However, by larger forces, it cannot be used as a service. It was then suggested to create a nuget package for this…
-
3
votes1
answer1644
viewsQ: Entity Framework Core 2.0 - Add-Migration does not work
I am creating a new code-first project. When trying to create Migration, using the command [Add-Migration Initial -Context LogAuditoriaContext] it simply does nothing, creates nothing, makes no…
-
0
votes1
answer93
viewsQ: Sort by Reflection with Getproperty
I have a generic class with a method that needs to sort a generic object. However, give error saying that does not recognize the Reflection Getproperty method, because lambda can not translate. How…
-
6
votes2
answers307
viewsQ: Best practice for client to choose response format (JSON / XML)
I would like to know the best coding practice that allows the client to define the response format for the request he made, which can also include filters, conditions, ordering, etc... I made a…
-
0
votes1
answer118
viewsQ: Silex can’t find the routes
I have a Silex 2.0 application with PHP 7.0 and Apache 2.4 (on port 8080) with the following structure: silex/ | - vendor/ | - web/ | - index.php | - composer.json | - .htaccess Composer.json {…
-
0
votes0
answers96
viewsQ: Intel XDK / Cordova: 'Contactfindoptions' is not defined
I am trying to simulate a contact listing with Intel XDK. However it is not working, error appears: Contactfindoptions' is not defined I installed the plugin Contacts from Cordova in the Project,…
-
0
votes0
answers109
viewsQ: Doctrine2 + pdo_sqlsrv createQueryBuilder Order By with varchar field does not work
I’m creating a method that takes values for createQueryBuilder() from parameters. I tested in my local database with pdo_mysql driver and it worked perfectly, sorting both by a field of type int…
-
5
votes5
answers156
viewsQ: Type induction for any type of object
I am wanting to make a method of a certain class accept an object as a parameter. However, this object could be of any type. Example: class classeExemplo { public function meuMetodo(Object $objeto)…
-
0
votes4
answers34147
viewsA: SMTP connection error when sending email using Phpmailer
In the end, the problem was on account of the Server of the company that was blocking in some way. admin pulled the strings on the server and worked.
-
1
votes2
answers777
viewsA: Error installing Composer on Windows 7 64bit with Wampserver 2.5
I hadn’t been able to install Composer on W7 until after I formatted my PC. I think it had some configuration, or lack of it, that SSL was not enabled. After formatting and reinstalling the 64bit W7…
-
1
votes2
answers777
viewsQ: Error installing Composer on Windows 7 64bit with Wampserver 2.5
I am trying to install Composer on W7 64bits. Using the Windows installer that the Composer website provides (Composer-Setup.exe). I have installed Wampserver 2.5 with php5.5.12 and Apache2.4.9.…
-
0
votes0
answers95
viewsQ: Radiobutton inside the popover is not checked via javascript
I have a query screen where I feed an html table with the database records. In one of the columns, of each row, there are some options like edit, delete, add photos and another option that opens the…
-
2
votes1
answer242
viewsA: When opening Popover[bootstrap] the screen loses focus and goes to the top
I decided to remove the href tag from the link. <a class="popoverAlugadoVendido" data-toggle="popover" data-rel="tooltip"><i class="fa fa-cog bigger-130"></i></a>…
-
0
votes1
answer242
viewsQ: When opening Popover[bootstrap] the screen loses focus and goes to the top
I have a query screen where I feed an html table with the database records. In one of the columns, of each row, there are some options like edit, delete, add photos and another option that opens the…
-
1
votes2
answers255
viewsQ: Select repository-specific columns in Doctrine 2
First, we know that depending on the number of columns in a query, you can increase the response time. In Doctrine I call the following repository, which has a relationship and brings all the…
-
1
votes1
answer364
views -
0
votes1
answer220
viewsA: Getting Data from a Manytomany Relationship with Doctrine2
The problem was neither my Entities, nor in the Annotations nor in the relationship. But rather the way I was trying to print, so: $professor->getTurmas()->getNome() I was wrong, instead I had…
-
0
votes1
answer220
viewsQ: Getting Data from a Manytomany Relationship with Doctrine2
I have the following relationship N:N between teacher tables and classes, where there is a third teacher table. I want you to list the teachers and bring me all the classes this teacher teaches…
-
1
votes1
answer65
viewsQ: Resize Multidimensional/Associative Array from a Resultset
I’m trying to feed a array multidimensional and associative from a Resultset, but accuses the following error: Microsoft VBScript compilation error '800a0401' Expected end of statement…
-
2
votes1
answer2608
viewsQ: Assign execute command to a variable
I need the return of the execute command to be assigned to the @PAGO variable because I will insert it into a temporary table only what returns is the script and not the value. DECLARE…
-
2
votes1
answer847
viewsQ: Put WS Restful Project into Production
I’m a beginner in Java and these . jar, . War, etc businesses are news to me. I did my first Restful Webservice project and added 2 *.jars, Gson and JDBC.postgres. I want to put into production (on…
-
3
votes1
answer1561
viewsQ: java.lang.Nullpointerexception Error in JDBC Connection with WS + Postgres
I am creating a WS that connects to a DB Postgresql and performs a query in a single table. I try to run it locally, but the problem is when running the application gives the following error: HTTP…
-
1
votes1
answer100
viewsA: Doctrine DQL with WHERE does not work
I found the mistake. In: //** UsuariosDAO.php extends DAO.php **// public function queryChkLogin(\Projeto\Core\Model\Usuarios $usuario) I traded: return $this->queryDAO($dql); for return…
-
0
votes4
answers2752
viewsA: No access permission for Apache 2.4.6
Starting with version 2.4 of Apache, its root has been changed to /var/www/html/. 1 - You can place your projects within /var/www/html/ instead of /var/www/. And access them normally at…
-
0
votes1
answer44
viewsA: problem when doing update php data and show
This, in my view, is being recorded in the bank in the same way 0000-00-00 and not null, maybe your table field is like not null so recorded in this format. Of two 1, either you change your table if…
-
1
votes1
answer100
viewsQ: Doctrine DQL with WHERE does not work
Good afternoon! I’m trying to perform a query in a table of users that has FK of 4 other tables, but I believe that is not the case, and perform 2 filters in WHERE, for example WHERE login =…
-
3
votes4
answers29756
viewsA: How to change dates from the American format y/m/d to d/m/y?
You can use a set of functions as follows: Moving from American format to Brazilian format: implode('/', array_reverse(explode('-', $data))); E Changing from Brazilian format to American format:…
-
3
votes4
answers34147
viewsQ: SMTP connection error when sending email using Phpmailer
I’m trying to implement email sending with the library Phpmailer, but brought me the following mistakes: Edit: I’m testing it locally. SMTP -> ERROR: Failed to connect to server: Uma tentativa de…
-
2
votes1
answer861
viewsQ: Doctrine 2 - Does not recognize class mapped with $entityManager->getRepository()
Personal iae... In my file bootstrap.php I am trying to take the repository of a certain entity and gives Fatal Error, informing that the Class does not exist, but it does exist. Here is the error…
-
1
votes1
answer307
viewsQ: Doctrine - Access the $entityManager variable created in bootstrap.php from within a Class
I am studying Doctrine and am adapting a project I had already developed in MVC to work with Doctrine. I am having a certain doubt on how to proceed in relation to the variable $entityManager that I…
-
6
votes2
answers5822
viewsA: What is aspect-oriented programming?
About being bad or not, it doesn’t exist, what exists is whether it is suitable or not to a certain situation and will depend a lot on the developer and what is being developed. Particularly, the…
software-engineeringanswered LeoFelipe 1,455 -
2
votes2
answers4896
viewsQ: Jquery Datatables - Pagination Number Quantity
I’m implementing the Datatables pagination and I couldn’t figure out how to modify the number of pagination buttons. As you can see, we have to 1 to 5, or we might have to 7 to 11 the numbers of the…
-
3
votes2
answers1373
viewsQ: Jquery Datatables - Customize Header
I searched a lot and could not figure out how to customize the header of the report in pdf that Gero from the plugin; for example, the "sTitle": "Groups" is the title that is in the header, but it…
-
5
votes1
answer179
viewsA: Col-Md=xx bootstrap
Yes, but there must be another line between them: <div class="row"> <div class="col-md-6"> <div class="row"> <div class="col-md-8">.col-md-8</div> <div…
twitter-bootstrapanswered LeoFelipe 1,455 -
5
votes1
answer1635
viewsA: What is the purpose of using the filter_input function
Reference to filter: http://www.php.net/manual/en/filter.filters.sanitize.php My opinion is that you should always use it (the filter extension in general). There are at least three reasons for…
-
4
votes5
answers4257
viewsA: Row size Too large (> 8126)
Reference: https://stackoverflow.com/questions/15585602/change-limit-for-mysql-row-size-too-large Reference 2: http://docs.oracle.com/cd/E17952_01/refman-5.5-en/innodb-compression-usage.html You…
-
1
votes2
answers2303
viewsA: Event . click() of jQuery, does not work with tag <button> ( with Bootstrap 3 )
Always prefer to use the event .on() in place of click(). Because you may have dynamically generated elements (for example coming from an AJAX call), you may want to have the same click handler that…
-
0
votes2
answers273
views -
3
votes2
answers674
views -
2
votes3
answers2537
viewsA: Detect no characters in a string
To detect characters in a string vc can use the function preg_match: $numero = '/(1|2|345|67|7890)/'; $frase = 'abcdefgh ijklmno pqrstu vxz'; echo preg_match($palavra, $frase); But these characters…
-
0
votes2
answers1122
viewsA: Sqldataadapter Query with Parameters
Well, I ended up getting help from a friend and he helped me with the code, in the end I didn’t use Sqldataadapter, thus getting the code: public DataTable listarPessoas(PessoaModel pessoaModel) {…
-
1
votes2
answers1122
viewsQ: Sqldataadapter Query with Parameters
I’m having difficulties in returning a query in the database using SqlDataAdapter with parameters. Well, I have a layered application in my View when I first access a GridView with a query (this…
-
1
votes3
answers3487
viewsA: What are the ways to measure a programmer’s knowledge?
What has happened a lot nowadays is to know what and how the programmer program. That is, see the open source projects that it contains, Github is currently used a lot to analyze this part. This way…
methodologyanswered LeoFelipe 1,455 -
15
votes3
answers32049
viewsA: How to check if a variable is set?
Use the operator typeof: if (typeof nomeVar != 'undefined') {}…
-
3
votes5
answers1182
viewsA: HTML element does not become visible
1º) Your remove Class is setting #error name_error and should be . error name_error. 2º) I usually use . show() and . Hide(). Example: $('.nome_erro').hide(); if($(this).val() === ''){…
-
2
votes1
answer694
viewsA: Load data from a field after pressing a button
You can solve this with ajax, if you have done the so famous fields select "State X Municipality", follows the same reasoning. Clicking on the button will trigger an event that will have an ajax…
-
4
votes7
answers18353
viewsA: Why is COBOL still the preferred language in the business world?
It has nothing to do with being preferred or not preferred. What happens a lot is that, imagine your company that has a huge system that does a lot of things and that satisfies you and does not give…
-
2
votes2
answers1230
viewsA: Form action for same page or different page?
About "right" or "wrong", it really is something that does not exist in this context. However, it is good practice to separate PHP from HTML, so it is usually by submitting to another page, where…