Posts by UzumakiArtanis • 9,534 points
129 posts
-
3
votes1
answer808
viewsA: How to get information from the server operating system?
There are a few ways you can use to get this information: php_uname() The php_uname() returns information about the operating system PHP was built on. echo php_uname(); //Windows NT I5 6.1 build…
-
7
votes2
answers2933
viewsQ: What is the difference between global and superglobal variables?
I read some time ago that PHP has the vast majority of its variables declared with local scope. But I found two others concepts variables global and super-global and I didn’t quite understand the…
-
4
votes1
answer84
viewsA: What does version compare?
Definition version_compare() compares two versions, represented by strings, that are/are standardized by PHP. version_compare($versao1 , $versao2); Parameters The parameters to use the…
phpanswered UzumakiArtanis 9,534 -
2
votes1
answer84
viewsQ: What does version compare?
I was reading about version_compare() of PHP. Still, I didn’t understand much of the subject, could you explain a little more about?…
phpasked UzumakiArtanis 9,534 -
5
votes1
answer708
viewsQ: Why does it declare a class or id in the script and link tags?
Several times I see coding in tags <script>/<link> who possess class: <script type="text/javascript" language="javascript" class="init"> <link rel="stylesheet"…
-
9
votes1
answer123
viewsA: Is that piece of code jQuery? And what does it do?
Yes, the bulk of this code is jQuery, but it also has PHP, in the style all together and mixed. What can it be novelty is that this is a code mixed with PHP. Explanation of the code See that it has…
-
2
votes1
answer123
viewsQ: Is that piece of code jQuery? And what does it do?
The code snippet below: <script type='text/javascript'> $('#menu #<? echo $idMenuAtivo; ?>').addClass('active'); </script> Is it written in jQuery or Javascript? And what does it…
-
2
votes4
answers2768
viewsA: How do I enter a value in every record in a column of a table?
An instruction of the kind UPDATE - when you have records in the table and want to update them - it is done as follows through the Mysql: UPDATE nome_tabela SET campo = valor The instruction UPDATE…
-
27
votes2
answers3910
viewsA: Why is it important to inform users of the cookie policy?
As stated in the comments this is a law that involves the European Union. It is not required in other locations, but in all countries belonging to the EU, or for European Union users who access your…
cookiesanswered UzumakiArtanis 9,534 -
6
votes2
answers119
viewsA: Why doesn’t that code work?
I believe you took the code from here. What happens is that some basic things are missing like the use of $ to indicate variables passed as parameters: Variables in PHP are represented by a dollar…
phpanswered UzumakiArtanis 9,534 -
6
votes2
answers614
viewsA: What is code golf?
Definition of code-golf Code Golf is a competition to solve a specific problem in the smallest number of bytes or lines of code. The term code golf is derived from the similarity of its objective…
-
22
votes1
answer18750
viewsA: How to integrate the application with Whatsapp?
If you are trying to use, or already use some API, stop, this is CRIME! There is no official API to send or receive Whatsapp message to no language, at least until the present moment of that reply.…
-
3
votes1
answer180
viewsQ: What are TTML files?
I saw that there is a type of file with extension similar to HTML, TTML, but I still don’t understand them. What are the TTML files, and where I use them? What are the main differences between HTML…
markup-languageasked UzumakiArtanis 9,534 -
11
votes2
answers3018
viewsQ: Is it really necessary to create an auxiliary 3rd table in N-N relationships?
In several places I see that when you have a relationship N-N (if I remember correctly) it is recommended to create a 3rd auxiliary table and then later it will be transformed into a relationship 1…
-
1
votes1
answer368
viewsQ: What is a cipher?
Several times I find some questions related to ciphers here in the ORpt. However I did not find any definition of it. So, What would be a cipher and what its function? I saw that there are several…
-
15
votes1
answer52481
viewsA: How to open a PHP file in the browser?
PHP is a language of scripts interpreted on the server side. It’s not like HTML is a hypertext markup language, which will simply run when opening the file. Once the PHP interpreter starts to act,…
phpanswered UzumakiArtanis 9,534 -
10
votes1
answer751
viewsQ: What does document-oriented mean?
I have seen that there are numerous object-oriented, aspect-oriented, class-oriented and various other terminologies. But what I’ve seen recently is document-oriented, as stated in Mongodb’s…
-
20
votes2
answers390
viewsQ: What is deep learning?
Reading one of the answers, about Algorithm to detect nudity with good accuracy, I have seen that a term that is much quoted and referred to is Deep Learning. For me, translating Deep Learning…
-
38
votes2
answers2688
viewsQ: Why do you usually declare a variable with default value?
In several applications that have been written with strongly typed languages, a variable (usually) is declared with its default value. Example: int x = 0; double y = 0; However, it is possible to…
-
13
votes2
answers699
viewsQ: What would be a tree and a forest?
Sometimes here I found here in the OR, questions about trees, graphs and even forests, in the most diverse languages, but In programming, what would a tree be? And what would a forest be? It would…
-
19
votes1
answer11672
viewsQ: What is a stress test?
I see some questions here in the OS, old and new, in various languages, asking how to do a stress test. What would be a stress test? What this test measures? This test is a reliable way to measure,…
-
7
votes4
answers1249
viewsQ: What is the <canvas> tag for?
I was researching some information and saw that there is a tag called <canvas> in HTML5. What does the canvas tag? It only serves to make geometric shapes? If possible and feasible, could give…
-
7
votes4
answers6112
viewsA: VHDL is a programming language?
According to the own tag wiki ONLYen and of Wikipedia, with free translation, adapted for question: VHDL is a programming language? Depends, you are asking to whom? There are those who disagree,…
vhdlanswered UzumakiArtanis 9,534 -
2
votes2
answers151
viewsQ: How to optimize images?
I was following some advice from Google’s Pagespeed Insights and one of them is: Properly formatting and compressing images can save many bytes of data. However I have already optimised them with a…
-
12
votes1
answer3203
viewsQ: What are the pillars of object-oriented programming?
In general, I’ve seen some places say that object-oriented programming has 3 fundamental pillars, in others I’ve seen saying that it’s 4 pillars. How many and what are the pillars of object-oriented…
-
2
votes2
answers1252
viewsQ: What is the good solution to replace Alert?
In a question, how to do the alert, has a response, the most voted, that says: Alert is not a good solution to show some message to the user in the browser but I will answer what you asked... What…
-
29
votes2
answers463
viewsQ: What’s a loose comparison?
In the documentation of PHP, on the switch says: Note: Note that the switch/case does loose comparison. What is a loose comparison? And what is the difference between a loose comparison and a rigid…
-
7
votes2
answers229
viewsQ: If I can do everything with structural programming, why did you create object-oriented?
In the question about - Everything I can do in POO I can do in PE? - the answer accepted and better voted says: Yes, any programming language can do anything. Now, each paradigm has its own way of…
-
10
votes2
answers1800
viewsQ: What is the relationship between encapsulation and polymorphism?
A few days ago, I was talking to a friend about Java, and asked what part of the story they were studying. Then he replied that they were starting inheritance studies. As they were too late, I asked…
-
7
votes3
answers726
viewsA: Why does Google recommend inline CSS?
It is not everything, it is only what is priority, few fundamental parts of page loading. Follow the tag fragment pagespeed-insights: Pagespeed Insights is a tool made available by Google that…
-
22
votes2
answers19395
viewsQ: What’s the difference between varchar and nvarchar?
What’s the difference between using data types varchar and nvarchar? nvarchar exists in every SQL database? Is there any significant difference in performance between the two? There is a criterion…
-
6
votes1
answer621
viewsQ: What is SPA and what is different from a non-SAP page?
Reading this other post from the OS that talks about: applications isomorphic, is commented on in a reply about SPA. What is a Single Page Application? And what is the difference between a SPA page…
-
7
votes2
answers298
viewsQ: What is the difference of use between mouseClicked and actionPerformed?
What is the difference between these two events: mouseClicked() and actionPerformed()? What differs in their execution and when they will be executed?
javaasked UzumakiArtanis 9,534 -
5
votes1
answer438
viewsQ: How to lock cursor drive in Masked input?
I’m using the plugin jQuery Masked Input. <input name="dueDate" class="form-control input-mask-date" type="text" placeholder="Data de Vencimento" data-parsley-trigger="keyup" required=""> And…
-
13
votes1
answer2408
viewsA: What does the MVW of Angularjs mean?
I warn you that this is a controversial topic that many developers can spend hours and hours debating and discussing, but I will try synthesize a little bit of information. MVW - Model View Whatever…
-
4
votes3
answers691
viewsQ: How to correctly format a monetary value?
I have a value that comes from the form that way: R$ 1.500,95 I need him to stay that way: R$ 1500,95 How to turn him into the second way? I need him to look completely the same as the way he was…
-
0
votes1
answer123
viewsQ: Which type of PDO::FETCH_* is the fastest?
Of the ones I know, there are 5 ways to accomplish, but at official documentation is presented about 8 different ways of performing a FETCH_*. I would like to know, in every way to make one…
-
7
votes2
answers662
viewsA: What is Timing-Attack and where does it apply?
There is a popular saying: Empty mind, devil’s workshop. That could be modified to fit perfectly in this question: Tempo Ocioso, Oficina do Tinhoso (or Hacker, or the evil element in question) But…
security-guardanswered UzumakiArtanis 9,534 -
8
votes1
answer2408
viewsQ: What does the MVW of Angularjs mean?
When Google searches for Angular, it is returned: Angularjs - Superheroic Javascript MVW Framework I know that MVC means Model-View-Controller but what is the W of MVW Framework? Is this a new…
-
10
votes2
answers841
viewsQ: What is an event?
Much is heard of events: Trigger events; Schedule events; Trigger events... Although much is found on the internet, none brings a concrete definition of what is really an event in programming. So…
-
6
votes1
answer986
viewsQ: What is an event handler?
I have read what is an event, but then I saw that there are event handlers, Event Handler. What is a Event Handler? What they’re for and where they’re used for? Exist in all languages?…
-
6
votes1
answer676
viewsA: What is the inherit and initial of the CSS for?
Inherit Inherit simply means that the style will be inherited from the parent element. According to the own W3C the Inherit: Specifies that a property should inherit its value from its parent…
cssanswered UzumakiArtanis 9,534 -
4
votes1
answer539
viewsQ: What’s the difference when you use Inary in the Where clause?
What is Binary and what he does? What is the difference generated when using the Binary in a query in the Mysql and when it does not use the Binary? SELECT email, senha from login WHERE usuario = ?…
-
9
votes3
answers2079
viewsQ: How do I activate the Caps Lock key warning?
How to make a warning for when the Caps Lock key is enabled in the password field? At first I would like solutions in pure Javascript, but using jQuery and related will be accepted.…
-
5
votes1
answer7857
viewsQ: What is the difference between . cer, . pfx and . pvk?
I was tinkering with some files that are certified digital and security certificates, so I came up with the question: What’s the difference between a file .cer, .pfx and .pvk?…
-
10
votes1
answer382
viewsQ: Should we use all variables as private?
We should always use the attributes of a class as private? What private variables help prevent? How do you decide whether a particular property should be private or not? CASE, by default, each…
-
2
votes2
answers192
viewsQ: Why do you need to close the script tag?
Why open only one tag <script> doesn’t work properly? I know it’s not the same thing as Stylesheets of CSS: <link rel="stylesheet" href="assets/css/bootstrap.min.css" /> But why it is…
-
0
votes1
answer1765
viewsQ: How to change the initial positioning of the modal?
How can I change the initial positioning of the Modal Box from Bootstrap? I would like him to stay a little lower, which with 3 <br> have already solved, but in the way quoted seems more a…
-
5
votes1
answer110
viewsQ: What is abstraction from a framework?
In another question I asked here on Stack Overflow about organizing folders in a particular project, I received a comment saying: Folder structure ends up being a more "personal" footprint, the…
-
4
votes1
answer442
viewsQ: How to simulate the event of typing the % (percentage) symbol when pressing Shift+5?
I was developing a calculator in C#, and started doing the activation part of the buttons through the keyboard. if (e.KeyCode == Keys.Add) { btnsum.PerformClick(); } Using the code above, I already…