All Questions

1
answer

How does PHP-FPM work?

Well, I have a question regarding the PHP-FPM concept. From what I understand through the documentation, is it a PHP module that manages requests to the server to avoid high loads, or am I wrong? How can it benefit in performance?     
asked on 25.05.2017 / 16:32
1
answer

What does the semicolon at the beginning of the line mean?

I was analyzing a code and found the following excerpt: ;(function ($, window, document, undefined) { //... })(jQuery, window, document); Notice that at the beginning of the first line, the ";" character exists; (semicolon). What is th...
asked on 02.06.2014 / 13:39
4
answers

How do I enable a button only when all inputs are filled?

I have a <button> that is rendered as disabled (disabled) when the page is initially loaded. I would like it to be enabled (enabled) when all data is filled in <input> 's. How could I do this using jQue...
asked on 21.02.2014 / 12:41
3
answers

List all triggers in SQL Server

Is there a command that lists all triggers of a database in SQL Server?     
asked on 01.09.2016 / 20:11
2
answers

Do I need to use a semicolon at the end of a "unique expression" in PHP?

Example scenario: Let's say I have a page that is generated by includes, and even has a loop: <? require_once 'classes/classe1.class.php'; ?> <html> <head> <? include_once 'html/head.php'; ?> </head> <...
asked on 28.08.2018 / 14:40
2
answers

What is Iterator?

Studying STL in C ++, I almost always encounter the term iterator , example: std::vector<int>::iterator it; What is the function of a iterator ?     
asked on 08.11.2016 / 19:44
2
answers

Is it really necessary to use mutator and accessor methods (setter and getter) in PHP? And the performance?

I have come to realize that most other libraries use the setters and getters methods (hereafter referred to as mutator and accessor in>), to change the ownership of some class. For example: class User { protected $name; public...
asked on 29.01.2016 / 19:36
1
answer

What is the difference between factory, service or controller in Angular?

Next, in practice, what is the difference and how do you do service with .service, .factory and controller? service.js angular.module('app.services', []) .factory('BlankFactory', [function(){ }]) .service('BlankService', [function(){ }]...
asked on 22.01.2016 / 20:15
1
answer

Building a "3D" building with HTML, CSS and JS

How can I reproduce the image below using HTML, CSS and JS (maybe images)? The numbers of "floors" are unpredictable and each "floor" should be "clickable," a <a href="#"></a> , or something like that. Is it possible to...
asked on 18.02.2015 / 16:38
3
answers

How to copy objects in java

Can you make an object copy in Java? MinhaClasse mc = new MinhaClasse(); MinhaClasse mc2 = mc; But I wanted to make changes to mc2 without affecting mc .     
asked on 30.04.2015 / 17:40