Posts by Leandro Macedo • 1,143 points
22 posts
-
2
votes1
answer1118
viewsQ: Download previous versions of Edge browser
I need to test my web application on older versions of Micrsosoft’s Edge browser. I am using virtual machine for such purpose, however, I am not able to find where to download the oldest versions of…
-
3
votes1
answer93
viewsQ: Does anyone have any idea how google drive unzips file in real time
I wanted to understand and know if there is any library or strategy to do the same as Google Drive does with the compressed files, to allow you to browse the files inside the files without having to…
-
3
votes2
answers496
viewsQ: Business rules should be in the Entity in the DDD enclosure
Following the DDD (Domain Driven Develop) methodology, my question is whether the Entity class should receive any business rule. Just imagine the situation: We have a Carfactory responsible for…
-
2
votes1
answer766
viewsQ: Extract image text (OCR)
I wonder if anyone knows any library that can do the image reading and extract what is in it (can be in any language), or give me a north of what I must study to understand and develop something…
-
1
votes1
answer151
viewsQ: Composer giving error
I tried to install the phpunit for composer in Windows 7, but is not allowing. Nor the phpunit and no other tool/package/framework. The error you’re displaying is this: and my file of json that’s…
-
5
votes2
answers168
viewsQ: java desktop "ajax" exists?
I wonder if there is any way to return the value to my java desktop application every time a value is added to a table. Something like ajax for browser. For example. We have the requested table and…
-
1
votes1
answer568
viewsQ: Java/eclipse does not recognize Path GET annotation
I am developing a Restful application, using eclipse and jersey (No use framework). But I’m having a problem with @Path annotations, @GET. When I use these annotations there is an error in the line…
-
0
votes1
answer3293
viewsQ: MPDF error: Some data has already been output to browser
Hello, I am having a very strange error using mPDF library to generate PDF. The page fetches data from the database and displays on the page and mPDF in turn generates the pdf. However, when not PDF…
-
7
votes4
answers1466
viewsQ: How best to pass values to attributes
I am studying object-oriented programming. I am very fascinated as this new world. But now a doubt has arisen. I believe you can help me. I’m doing a Person class, which has the attributes name, age…
-
3
votes2
answers944
viewsQ: Every class must have a builder
I know it is a question of beginner, but I need to remedy this doubt. I searched through the internet and not always the sites enter in "agreement". Every class must have a builder ? Example: I can…
phpasked Leandro Macedo 1,143 -
5
votes2
answers2792
viewsQ: Practice deploying, how to do?
Today many languages have practices of deploy that automates the whole process, concept as IC (Continuous Integration). At each commit in the repository is deploy (I believe that Jenkins or…
phpasked Leandro Macedo 1,143 -
1
votes1
answer449
viewsQ: Curl login page in ASP does not authenticate
I’ve searched everywhere possible on the web, but so far I can’t understand what’s going wrong with my code. The thing is, I’m trying to access the student portal of my college, using Curl, my…
-
23
votes2
answers8570
viewsQ: Get "waves" from sound or music frequency
How do I display the sound waves of any sound (music)? I don’t know if it is possible to get this with JS or some other language. Waves of this type: An example is as Soundcloud does, displaying a…
javascriptasked Leandro Macedo 1,143 -
2
votes2
answers2831
viewsQ: use PHP to know if sent email has been opened
I am very curious to know how to know if the email I sent was opened by the recipient. There is a way to know using PHP or some other language ?
-
0
votes1
answer673
viewsQ: access matrix data while in another class?
I have a matrix in a class called Logica. And I’m manipulating her from another class called Game. But when I pass a value of the Game class to the matrix in the Logica class and check if the value…
javaasked Leandro Macedo 1,143 -
12
votes4
answers19850
viewsQ: How to get the key pressed?
I’m breaking my head to create a function that returns the code of the pressed key. I found this: function inicializa(){ document.addEventListener('keydown', pegaTecla); } function pegaTecla(){ var…
javascriptasked Leandro Macedo 1,143 -
7
votes3
answers1335
viewsQ: How to use an object to add to an attribute?
When I do the code below you get this error: Object of class Client could not be converted to string in ... animal.class.php In this part does not allow me to pass an object to be used in the…
-
4
votes2
answers887
viewsQ: Can I use a variable to overwrite a method?
When rewriting a method, in PHP, I can use a variable to receive the method? I did the example below and it worked normally, but I don’t know if this is correct or if it is the best way to rewrite a…
-
1
votes1
answer824
viewsQ: How to represent in UML superscript methods
How to represent in the class UML when a method should be overwritten? If it is enough just to repeat the parent class method for the daughter class or there is another way or, who knows, it should…
-
3
votes1
answer2607
viewsQ: Can I declare a builder in the child classes when the mother class is abstract and already has a builder?
My question is this: If I can declare a constructor in a class abstract and also in the child classes. And also how to access their values. For example: abstract class Animal { private $nome;…
-
6
votes1
answer1230
viewsQ: When using __constructor magic method or set and get
My doubt is with constructor relation, for example, I have a class with name, age. the correct is to use __construct to pass values to them or use set e get ?
-
6
votes3
answers1817
viewsQ: Should I declare Get’s and Set’s at UML?
Every time I create a class UML I have to declare get and set for all classes that come to use them or can leave without, as if it were standard and everyone knew that they must implement them even…