Posts by Paulo Henrique • 592 points
21 posts
-
0
votes1
answer12
viewsA: Rabbitmq on Node.js with ampqlib not broadcasting the messages
Based on the answer given in Stackoverflow: https://stackoverflow.com/questions/68324760/rabbitmq-innode-js-with-amqplib-not-broadcasting-fanout-messages/68329407#68329407 Assuming you run multiple…
-
0
votes1
answer12
viewsQ: Rabbitmq on Node.js with ampqlib not broadcasting the messages
This script should be a command-line chat type only for rabbitmq study. Executions of the program would be opened in parallel. Each execution creates a Sumer from the same queue and all text sent by…
-
0
votes1
answer33
viewsQ: Npm remove test folders for production
npm Prune --Production removes the devDependencies packages. Is there any way that it also deletes project folders that I don’t want in production, like my "spec" test folder?…
-
1
votes2
answers1310
viewsA: textarea with notebook lines style
The answer above from Daniel Omine solves the textarea problem, but I solved the problem in a way that I believe is more pleasant for the user. I kept lines in html with stylized inputs, but ,when…
-
4
votes2
answers1310
viewsQ: textarea with notebook lines style
I need to make a form for printing that could be typed in the browser or printed for writing. As it can be written on the printed sheet, I need a style in the textarea that draws the lines as if it…
-
0
votes0
answers73
viewsQ: Query selector /3a
I’m making js of htmls complexes that were not structured by me. To facilitate use of Firebux or Chrome Developer to copy the ready selector. They return me this selector: #dadosCadastrais\3a…
-
3
votes1
answer372
viewsQ: Delimited Context and Modules/Packages
According to Domain Driven Design: Pactoes must tell a story, are part of the ubiquitous language, organize related concepts; The bounded context is the delimitation where the terms of omnipresent…
dddasked Paulo Henrique 592 -
4
votes1
answer896
viewsQ: Angular Directives with object-constructing methods
I am trying to create a directive that is an input that provides an object in $Scope only if it is successfully created by its constructor method. I want the value only to be assigned to the…
-
3
votes2
answers1305
viewsA: Customize javascript object comparison
The other answer of the valueOf answers on the comparison of quantities. For the comparison of equality, I found the following solution: Equality compares the reference of the object. Therefore, two…
-
9
votes2
answers1305
viewsQ: Customize javascript object comparison
How to determine which value javascript should use for logical operations on objects? I am creating a competency object that needs the following functionalities: Encapsulates the logic of creating a…
-
2
votes1
answer494
viewsA: Phpunit and Selenium - How to call specific functions of the test script?
Use the selection options on the command line: $ phpunit -h Test Selection Options: --filter <pattern> Filter which tests to run. --testsuite <pattern> Filter which testsuite to run.…
-
-3
votes1
answer37
viewsQ: Installation of Phpunity Skeletongenerator requires Consoletools
When trying to install Skeletongenerator, the following error occurs: servidor@ubuntu$ sudo pear install phpunit/PHPUnit_SkeletonGenerator [sudo] password for servidor: Unknown remote channel:…
-
2
votes1
answer37
viewsA: Installation of Phpunity Skeletongenerator requires Consoletools
To resolve I included the dependency channel: servidor@ubuntu$ sudo pecl channel-discover components.ez.no Adding Channel "components.ez.no" succeeded Discovery of channel "components.ez.no"…
-
5
votes3
answers337
viewsA: Doubt about the responsibility of a get()
Speaking of object orientation, there are reasons to use getters and setters. Say a Product class that contains the property price. That price is discounted, and every time we get that amount, we…
-
1
votes1
answer58
viewsA: Ubuntu Horizontal Scroll Being Interpreted as Right Button in Netbeans, Astah
An alternative I found was to create a script to enable/disable horizontal scroll, but what interests me even though I still don’t know is how to make it work. I created another question about the…
-
0
votes1
answer124
viewsQ: Script to enable/disable horizontal scroll on Ubuntu
Some programs do not work well with horizontal scroll on Ubuntu, such as Netbeans and Astah (Question on topic). An alternative is to enable/disable horizontal scroll via a script.…
-
1
votes1
answer124
viewsA: Script to enable/disable horizontal scroll on Ubuntu
The alternative I found for horizontal scroll not to disturb while using these programs is a script to enable/disable. Create the file /usr/local/bin/hs_disable DEVICE_NAME='ETPS/2 Elantech…
-
0
votes1
answer58
viewsQ: Ubuntu Horizontal Scroll Being Interpreted as Right Button in Netbeans, Astah
In Ubuntu we can enable the horizontal scroll in dconf Editor. When using it, in Netbeans and some other programs, such as Astah, the horizontal scroll does not work, and is interpreted as a…
-
6
votes1
answer989
viewsQ: Generate UML from PHP code
Is there any software, preferably opensource, that manages the UML of a code already written in PHP? The hassle is having to update the diagram every time the code is updated.
-
0
votes2
answers535
viewsQ: Make a Netbeans project that runs on Virtualbox shared folder not upload
I have a Virtualbox running an Ubuntu/Apache/PHP web server. I set the application folder in apache to /var/sf_www/ this is a shared folder with my host machine. I set up Run Configuration in…
netbeansasked Paulo Henrique 592 -
5
votes4
answers2060
viewsQ: How to create a PDF stream in PHP?
Is there any alternative to implement a stream of Pdfs files that are on the server? I would like the browser to download the pdf as it is viewed. Same as the preview of google books…