Posts by Vinícius Lima • 5,059 points
106 posts
-
2
votes1
answer771
viewsQ: What does @at-root do?
Well I used the translator to read is SASS documentation and I don’t understand what he can do... so: What the @at-root ago?…
-
24
votes3
answers21803
viewsA: What is CGI and what is its purpose?
What is the CGI(common gateway interface) and what it does? CGI(Common Gateway Interface) is a technology that allows generating dynamic pages with interaction between scripts HTTP servers with…
-
9
votes1
answer8659
viewsQ: What is the purpose of stdClass in PHP?
What is the purpose of the predefined class stdClass in PHP? In detail what he does? What is its importance?
-
0
votes1
answer137
viewsA: Data loss in session
The problem in the code is quite simple and really is silly, you are restarting the sessions, the session_start() should be used only 1 time. You can much call it at the beginning of the code.…
-
3
votes1
answer200
viewsQ: Phpstorm displays a message when using "include" and "require"
What reason my IDE Phpstorm, this message appears with include and require: Dynamic include Expression 'require_once $file' is not analysed. Include Expression is not resolved.…
-
1
votes2
answers295
viewsA: Save bank value to same user
You may be doing it 2 ways, it’s more an outline than a solution. But I hope you can help him: Create a field that he reports on a type of password, or own identification code and then write to the…
-
2
votes2
answers635
viewsA: Organize website by folders in directory
I believe I must have understood your question is very simple indeed. If you just want to organize the URL and the files in question, you can simply create a folder, for example called ucp and by…
-
3
votes1
answer409
viewsQ: How to pass an array as parameters or arguments?
I have two functions: function example($param1, $param2) { echo $param1 . $param2; } function frutas($fruta1, $fruta2, $fruta3) { echo $fruta1 . $fruta2 . $fruta3; } And I also have a variable that…
-
8
votes1
answer10637
viewsQ: Thread Safe(TS) and Non Thread Safe(NTS) - What are they, what’s the difference?
When someone goes to download PHP, they have these 2 options: ts and nts, as well as language extensions. My doubts are as follows:: What are Thread Safe(TS) and Non Thread Safe(NTS)? There are some…
-
6
votes4
answers742
viewsQ: What is the difference between PHP’s "Exception"?
Has several Exception defined in PHP, as ErrorException PDOException Error ArithmeticError, etc.... But what’s the point of having so many exceptions? There’s a difference between using one and the…
-
4
votes2
answers425
viewsQ: What’s the difference between "require" and "require-dev"?
In the Composer, Grunt for example, has the require and the require-dev. My question is what’s the difference between them? Example phpBB "require": { "php": ">=5.3.3,<7.0",…
-
9
votes2
answers4065
viewsQ: What are modules in programming?
I know there’s this question: What are modules? But the explanation does not go straight to the point and left me confused, as well as properties, methods, arguments and other words I have seen…
-
14
votes2
answers22374
viewsQ: How do I delete commit from a branch in Git?
How can I exclude commit of a branch? I made an attempt to try and delete one commit I didn’t want to, but I ended up making the situation worse. I’m afraid to do something wrong. Git tells me to…
-
3
votes1
answer808
viewsA: Sort sequence of numbers in a database with PHP
I believe that what you want is to change the ordering and so change the other sequences avoiding that there are 2 equal values. You might be doing the following! Let’s assume it has the following…
-
22
votes3
answers394
viewsQ: What are friendly Urls?
What are friendly Urls? What is its purpose? When it is recommended to use friendly Urls instead of regular Urls? Involves some relationship with performance?…
-
2
votes1
answer1991
viewsQ: Is it possible to use . htaccess with IIS?
Is it possible for me to use the .htaccess with the IIS?
-
2
votes2
answers806
viewsA: How to create an animated Hover icon
You can find icons of this type on Metro Icon Font, in home page from the framework you can download it as well as take the icons separately, and in it you have the instructions how to use. You can…
-
1
votes1
answer172
viewsA: Traverse an array of a php function
I don’t know if I got it right, but it looks like you want to add the values through the function and then call a specific one. You may be doing it this way: function numeros_pequenos() { return…
-
1
votes1
answer1174
viewsA: How to make a DIV adjust its height according to the background image?
I believe it is not possible using only CSS, but you may be doing so: HTML <div class="guaraparivirtual-guiacomercial-banner"> <img src="img-guaraparivirtual/icone-whatsapp.png" />…
-
1
votes1
answer170
viewsQ: Do em and rem use html or body tags as a reference?
Reading about, I saw places saying that measures In and Rem use the tag html as other reference saying it is the tag body, but what really is the tag that is used as reference?…
-
4
votes3
answers1686
viewsQ: Is saving the user ID in COOKIES safe?
Guard the ID of the user in Cookies is safe as it is easy to see it from the browser. My questions are as follows:: Guard the ID of the user in Cookies is safe? If it’s not safe, what method seguro…
-
1
votes1
answer459
viewsQ: How can I set the time pattern as UTC or GMT in PHP?
Several systems, large sites when it is possible to inform the time they ask for the choice of UTC or GMT. I tried this in PHP, but I was not successful using default_date_timezone_set(), how can I…
-
41
votes2
answers21537
viewsQ: Oauth - What is it? What is its purpose?
What is Oauth? What is its purpose? What does he do? There are other alternative technologies to it?
-
2
votes3
answers636
viewsQ: Less is a programming language, or just something more complex than CSS?
Well I believe that Less may not be a programming language, so what is it? where does it rank? If it really is a programming language what makes it?
-
2
votes1
answer44
viewsA: Calling a variable from other variables in LESS
Oops, after trying hard I got!!! Less: @name: stack; @level: 900; @nameVariable: ~'@{name}@{level}'; @@nameVariable; // chama variável: @stack900 Why to use @{name}@{level} instead of @name@level…
-
2
votes1
answer44
viewsQ: Calling a variable from other variables in LESS
How can I call a variable from other variables as in other languages in Less? PHP: $name = 'stack'; $level = '900'; $nameVariable = $name . $level; ${$nameVariable}; // chama variável: $stack900…
-
2
votes2
answers81
viewsQ: How to use the LESS "when" operator?
I quickly searched the site of Less to see how it is used, but I was not successful, so I wanted to know how the operator works when less!? Examples: box-shadow(@style, @c) when (iscolor(@c)) {…
-
1
votes1
answer35
viewsQ: How can I use a Less variable to give the source address?
In my file Less I have a variable called @address with the main address where the fonts are, I have several fonts and need to put the directory in all with this variable, but it does not work. One…
-
7
votes1
answer3054
viewsQ: Bower - What is, what is its utility and how to use it?
In project files and mostly front-end frameworks I’ve seen much, much even the file Bower.json and I believe he’s a file like composer.json, package.json, Gruntfile.js, README.md, so I’d like to…
-
2
votes2
answers127
viewsQ: Editorconfig Plugin - What’s it for?
I accessed the official website of the plugin Editorconfig, I’m not very good in English so I tried to translate to read and it didn’t work very well, so I didn’t understand very well the…
-
1
votes2
answers164
viewsQ: How do I save software versioning with GIT?
I did the project, ta all the versioning in GIT, but how can I make a kind of backup of that data? Why let’s assume I format the PC, saved the project but lost the versioning done. I searched and…
-
1
votes1
answer179
viewsQ: Character SET and Character Encoding - What are they, what are they for?
What are they, what are they for? Character SET Character Encoding
-
2
votes2
answers6895
viewsQ: How to define "charset" of a table in SQL Server?
In Mysql to define the charset of a table we can use so: Mysql: create table user_details (...) default character set = utf8; How can I do the same in SQL Server?…
-
0
votes1
answer113
viewsQ: How to do software versioning based on Microsoft recommendations?
Well I’ve seen a lot about semantic versioning: Major, Minor and Patch. But something very curious is the software version recommended by Microsoft: Major, Minor, Build, Revision. Now the questions:…
-
11
votes2
answers13280
viewsQ: What are the differences between the available versions of Visual Studio 2015?
Last year it was announced 3 versions of Visual Studio 2015: Community, Professional and Enterprise Based on the tools available in each version: what I miss between using one and the other in part…
-
4
votes1
answer792
viewsQ: How does the system of voting and rating by stars work?
I see the rating of the apps in the stores of Microsoft and Google and I can not understand the logic of both, I would like to make ratings by stars! But first I need to understand the logic of…
-
13
votes2
answers2284
viewsQ: TODO - What is, what is its utility and how to use it?
I’ve seen enough of that word "ALL OVER", especially in IDE’s and I’ve always been curious to know what it is. Example: // TODO: alguma coisa escrita código.... Now the questions: WHAT’S ALL? What…
-
0
votes1
answer102
viewsQ: How to display errors in the production environment?
I’m coming from the groove of this question here. Is there any way, in the production environment, when any error occurs I warn, that the error occurred and I should look at the log file? I wanted…
-
1
votes1
answer358
viewsQ: What is the safest way to get errors in PHP?
There are several methods to get the errors in PHP, but I’ve seen many people saying that it is not safe I displayed the default PHP error on the screen since it makes it easier for them to have…
-
8
votes3
answers5416
viewsQ: Phpdoc - What is, what is its utility and how to use it?
These days I’ve been doing a lot of work on frameworks files, projects, etc...and I’m seeing a lot of things I’ve never seen, one of them is the one with Phpdoc (I got the name thanks to my IDE),…
-
2
votes2
answers105
viewsQ: What would be a parameter call before the string in a function
I’ve seen it done over and over again: interface LoggerAwareInterface { public function setLogger(LoggerInterface $logger); } Put a parameter before the variable, in which case what it would be and…
-
12
votes2
answers3152
viewsQ: What is CSRF attack and what damage can it cause?
I’m seeing some people mentioning such attacks CSRF here at Stack Overflow. What I’d like to know is: What is an attack CSRF? How it’s done? What damage can it cause? How can I avoid CSRF attacks?…
-
1
votes2
answers76
viewsQ: How to install Grunt offline?
I’ve got the Node.js and Npm installed and wanted to know if there is a way to install Grunt and use it offline?
-
6
votes1
answer1571
viewsQ: Composer - What is it and what is it for?
I have seen several times in projects the archive composer.json! I’d like to know what it is and what it’s used for?
-
5
votes1
answer930
viewsQ: What is the difference between Classes and Interfaces?
What’s the difference between classes and interfaces? I’ve read that apparently the difference in interfaces is because they are 100% public, but I have no idea. Could someone explain the difference…
-
1
votes1
answer142
viewsQ: How to use PHP files with custom error page in Web.config
I have a file called error.php, he takes the value GET or an already defined variable and display errors in multiple languages and of all types. I use IIS and have tried on Web.config to use PHP…
-
4
votes2
answers18066
viewsQ: Access variable inside and outside a function
It is possible to access a variable inside a function outside of it? I would like to use a variable that was created in a function outside of it, but without returning by return of function. In PHP…
-
7
votes5
answers7569
viewsQ: How to delete COOKIES in PHP?
How can I delete COOKIES in PHP? I know that for sessions you have the session_destroy() but for Cookies how do I?
-
1
votes3
answers2716
viewsQ: How to add attributes to an element that was created with Javascript?
I created a elemento javascript: $("<div />").addClass("placeholder").appendTo(element); But I can’t give him attributes, how can I do that? I tried the following code, but it doesn’t work:…
-
19
votes7
answers22208
viewsQ: Is using MD5 the safest way to encrypt passwords in PHP?
I know there are several methods of encrypting passwords in PHP (md5, sha1, Base64...) although I don’t know much about, what I see most is the use of MD5. Using MD5 to encrypt passwords is the…