Posts by Sileno Brito • 1,437 points
68 posts
-
0
votes0
answers31
viewsQ: How to access the getter and Setter methods of one class through another in a generic C++
I would like to be able to assign and/or retrieve values of an object through another class, where I can declare which properties I would like to access, their types, the method to access the…
c++asked Sileno Brito 1,437 -
0
votes0
answers18
viewsQ: How to disable the Doctrine shipment in the deserialization?
I use the JMSSerializerBundle (jms/serializer-Bundle) to make data serialization and deserialization, recently updated the project now when deserialize the object is already loaded by Doctrine,…
-
2
votes0
answers68
viewsQ: What is the ideal way to close a C++ thread
I’m trying to close a thread, but it appears the message "Process terminating with default action of Signal 6 (SIGABRT)", with memory error including Leak. How hard I try to execute: valgrind…
-
0
votes1
answer174
viewsQ: How to run cmake using MSYS2 without having to configure environment variable on Windows
I’m trying to use cmake to compile a project written in C++, the project builds smoothly if I use an IDE (tested in Qt Creator and Clion), but need to compile by command line, as I’m setting up the…
-
1
votes0
answers41
viewsQ: Linkage problem "Undefined Reference"
I’m trying to compile a dynamic library that uses a static library. I’m using cmake and the problem I’m having are linkage errors, where static library methods are giving error "Undefined…
-
1
votes0
answers20
viewsQ: Problems with Makefile when switching from debian to freebsd (ifeq and endif)
I am using netbeans to compile some programs in C/C++ it compiles the code remotely on a debian machine (GNU), everything works smoothly, but I tried to compile the same project on a freebsd that…
-
0
votes1
answer529
viewsA: How to call Angular 4 method in HTML code generated by jQuery?
I was able to solve it this way: ngAfterViewInit(): void { const self = this; const dtAccount = $('#dt-account'); dtAccount.DataTable({ pageLength: 10, fixedHeader: true, responsive: true,…
-
0
votes1
answer529
viewsQ: How to call Angular 4 method in HTML code generated by jQuery?
I’m using a template I bought made in Angular, but not everything in Angular has a lot in jQuery. I’m using jQuery’s Datatable (because it’s already native to the template, it has all the css ready…
-
0
votes1
answer260
viewsQ: Is it possible to send data in the body and in the url using the PUT and libcurl method?
I’m trying to send the data both in the URL and in the body using PUT the idea was to make it work exactly like the POST method, but being the PUT method. This is because I see many requests where…
-
2
votes2
answers271
viewsA: What is a language builder?
What would be a PHP language builder? What are they? The language constructor or reserved Palavas are the grammars defined/used by the lexical parser to interpret a syntax. Programs such as lex/flex…
-
-1
votes1
answer60
viewsA: Failed to recover a custom item in a Qlistwidget
The cast is being done wrong and in the wrong place to retrieve this information if you use itemWidget, it will return the widget that was created. Changing where you have: ContactListItem * cItem =…
-
0
votes1
answer60
viewsQ: Failed to recover a custom item in a Qlistwidget
I am trying to recover data from a Qlistwidgetitem when I click on the list but am not getting it. I made a custom Widget to list the elements, but although I can not see in the event click recover…
-
3
votes2
answers122
viewsQ: What is it for { } inside the main
I came across a situation in C that I do not know and had never seen anyone use before. Within the method main() there are several keys, I believe that to isolate the code but there is a same…
-
1
votes1
answer78
viewsQ: How to assign recover ip from a service within Docker-Composer?
I’m trying to raise Zabbix on Docker, I created a Docker-Compose with several services, one of them is the database. I need to survey the database first and then take the IP of the database and set…
-
0
votes0
answers81
viewsQ: Am I required to deliver my source code if I use gpl library?
If I use some gpl libraries in my source code and write my entire application, but using some libraries for some specific functions of my system I have to deliver the source code of my entire…
-
2
votes0
answers68
viewsQ: How to solve libxml2’s Leak memory problem?
I am making an application, but I am having problems with the Leak memory when I use libxml2, already removed all the code to isolate only libxml2 and still have the Leak memory error when I use…
-
0
votes1
answer38
viewsQ: Does Git have the feature that Subversion had keyword substitution or something?
When I worked with cvs and Subversion I remember a resource where we put some notes in the archives and each time we did one commit these data were updated. In general the data referred to the date,…
gitasked Sileno Brito 1,437 -
3
votes1
answer125
viewsQ: Socket Javascript does not connect (Stomp + Rabbitmq)
I am trying to establish a communication between Rabbitmq and Javascript, to recover the log information that is sent to a Rabbitmq topic, but without success. In the console is displayed the…
-
1
votes0
answers102
viewsQ: Updating the language of a Javafx application at runtime
I have a combobox that contains the languages, while selecting it stores and I would like to already apply the language update. But I wanted to do it dynamically. The problem is that I don’t know…
-
2
votes1
answer243
viewsA: Failed to customize javafx tab, top panel border does not appear
Should be changed in the style where it is: .tab-pane .tab-header-area .tab-header-background { -fx-opacity: 0; } To the code below .tab-pane .tab-header-area .tab-header-background {…
-
1
votes1
answer243
viewsQ: Failed to customize javafx tab, top panel border does not appear
I would like the Tabpanel area that has no tab to have a border according to the image below. Currently my Tabpanel is like this, no right edge of "Enter" I would like it to be like this, but I do…
-
1
votes0
answers163
viewsQ: Mapping issues in Microsoft.Entityframeworkcore
I am trying to create in a class two Mappings Manytoone using the Entity Framework, but I’m not succeeding, if I take either of the two mappings and leave the other, it works but if I leave the two…
-
2
votes1
answer204
viewsQ: How to create a compound index in Sqlite via Microsoft.EntityFrameworkCore.Sqlite?
I’m trying to create a unique composite index, but I don’t know how to do it on Microsoft.EntityFrameworkCore.SQLite, I’m used to working only with the Doctrine and Hibernate and I’m totally lost.…
-
2
votes1
answer201
viewsQ: How to build a reusable and manageable symfony Bundle via Composer
Even after reading the best practices for code reuse in symfony and research on the use of commiserate, I still can’t understand how in practice I should create my Barcode to be reusable. I know the…
-
0
votes2
answers50
viewsA: Is there an API to create a similar Google Directory API service?
Apidoc is a library that can be used to generate documentation for Rest services. In addition to supporting documentation, this tool also includes the sandbox, which is a testing environment that…
-
0
votes1
answer157
viewsA: How to use Fosoauthserverbundle authentication?
Introducing There are different "paths" to "connect" with Oauth2 and recover an access_token you will need to consume your API. Whatever the way you use to recover the access_token, you will get…
-
0
votes1
answer157
viewsQ: How to use Fosoauthserverbundle authentication?
I followed a tutorial to configure the authentication via Rest using Basic Symfony 2, Fosrestbundle, Fosuserbundle and Fosoauthserverbundle perfectly worked, even if someone has any questions in…
-
2
votes1
answer45
viewsQ: How to use Paramconverter inside the controller or in service
The Paramconverter is a note that I use constantly in Symfony to recover the data sent already in object, so parse is made automatic, in my case, simply add comment in the method of the respective…
-
2
votes0
answers29
viewsQ: Remote Debugging . NET in Different Operating System
It is possible after installing and debugging an application that is running on linux through the mono of a windows machine? The Environment is the following: An application was developed on Windows…
-
1
votes2
answers50
viewsQ: Is there an API to create a similar Google Directory API service?
I find Google’s Directory API very interesting for bringing together documentation and testing environment in an objective and well organized way. I wonder if there is a similar plugin that can be…
-
0
votes1
answer96
viewsQ: How to run methods of all classes extending an interface on symfony
I needed something similar to that console doctrine:fixtures:load in relation to class DataFixtureLoader and the interface OrderedFixtureInterface that is, I want to make a Command where it searches…
-
0
votes1
answer44
viewsQ: How to use Datafixtureloader
I’m basing myself on this tutorial, but I have the Country and State classes. I’m trying to import the data using the command: php console doctrine:fixtures:load when I execute him works for the…
-
3
votes1
answer335
viewsA: Do controllers necessarily need to be classes?
The ideal is to always use classes, this will make your life much easier. I also advise you to leave the management of includes automatically, if you are not going to use any framework and do…
-
2
votes1
answer159
viewsQ: How to import CSV into Symfony2
I am trying to create a generic way to import CSV the $data represents a full line of csv data. I am trying to generate a answer to register the data using the form public function…
-
2
votes1
answer539
viewsQ: How to upload using php without forms
I need to upload a file from the local server to another server. In this environment I compact the file on the local server and send the compressed file to the remote server. The remote server will…
-
0
votes1
answer315
viewsQ: Failed to perform a request with Angular.js $http is not defined
I’m starting to use angular.js, I’m studying one. Tutorial (Definitive Guide to Learning Angularjs in One Day), but at first I had problems with the $http request. I’m getting the message: $http is…
-
0
votes1
answer591
viewsQ: How to optimize memory consumption using Doctrine
I need to read and save in the database two files the first (smallest) has about 49,000 lines (each line will be become a record). I parse this file by creating an instance for the object and then…
-
1
votes1
answer2084
viewsQ: How to use Github private repository in Packagist and reuse code in Composer
I have some private repositories on github, I would like to reuse the code in my applications that are being made in Symfony, because I will need modules that already exist in more than one project…
-
2
votes1
answer8181
viewsA: How to make a button with rounded corners in C# (Winforms )
On the website of MSDN has an example that is working, the code snippet below was taken from there. I changed the function name SuArredondaRect for BorderRadius, but it’s working. For this code to…
-
1
votes1
answer8181
viewsQ: How to make a button with rounded corners in C# (Winforms )
I’m trying to customize the appearance of a button, basically I’m trying to customize the edges, background, font color and round the corners of the button. I was able to do everything except round…
-
1
votes1
answer1611
viewsQ: How to organize a C++ project into folder structure in Visual Studio
I would like to separate my source code into folders to have a better organization in the code by grouping the files into directories. In general, you usually have a lot of files . h and . cpp and I…
-
3
votes1
answer3066
viewsA: UI for PHP report design
An interesting alternative is the iReport which is a tool developed by the same company Jasperreports (much used in Java). There are at least two possible ways to use reports generated in the visual…
-
6
votes2
answers6101
viewsQ: Is there an audio transcription Api that can be used in PHP, C library or Java?
I’m looking for an api that you can get when you receive the audio, try to recognize the text. Does anyone know any opensource api for this? The opposite (receiving a text and generating an audio…
-
1
votes1
answer834
viewsQ: How to customize Symfony CRUD generated form?
I’m changing the Symfony template so that CRUD already has the format I need, I was able to change almost everything, but now I had the need to change the form, to edit the css classes and other…
-
0
votes1
answer201
viewsQ: How to work with I18N in PHP and Symfony?
There is an add-on to Symfony that allows you to work with i18n and . po and . mo or similar or is it really necessary to implement a solution for this? Ideally I could call the translation both on…
-
1
votes1
answer1827
viewsA: How to replace the HTML content of a div using php Domelement
To resolve this issue, using only Domdocument, you must use the importNode, as it is two different Domdocument the link of this documentation has the solution to your problem, below is the example…
-
0
votes1
answer147
viewsQ: How to retrieve the contents of a rendered template in Symfony2 and store in a String
I’m using the Symfony2, I’m still getting familiar with this framework. And when using my controller I’m not sure how to pick up the output generated by it and play for a string. I need to play for…
-
2
votes1
answer1783
viewsA: Solution for while in HTML structure
I am maintaining the same code structure that you used, where php and html are mixed, to resolve this issue you can use the % operator in this situation it will check if 3 records have been…
-
0
votes1
answer473
viewsQ: Relationship in the Doctrine
I have a problem that is analogous to the following situation: A car may or may not have a driver, or a car may have at least 0 and at most 1 driver. A driver may or may not have a car, ie a driver…
-
0
votes1
answer281
viewsA: How to pick up an Array on all view pages
I believe one of the possible implementations (following as a basis the documentation provided in the comment where the source is available on github) that if you turn $data into a class attribute…