Symfony is a full-stack, open-source PHP framework. It’s well known for its independent components which can be easily integrated into any other PHP project. The Symfony framework is suitable for building personal home page applications of any length, consisting of console programs supposed to run only at the command line. This article explains about – How to install and get started with symfony 2 on Ubuntu.Before we get started out, we’ll want to put in PHP for the command line environment. To install the php7.0-cli package, use the following command-$ sudo apt-get install php7.0-cliYou should now have PHP installed on ... Read More
Given with an array and the task is to find the number of odd and even elements in an array using standard template library in C++.To solve this problem we are using the function count_if() present in C++ standard template library. What is a count_if() function?Syntaxcount_if(LowerBound, UpperBound, function)Description − This function returns the number of elements in an array that satisfies the given condition. It takes three parameters.Lower Bound − It points to the first element of an array or any other sequence.Upper Bound − It points to the last element of an array or any other sequence.Function − It ... Read More
Isprint() in C++ is inbuilt function in “cctype.h” header file which checks whether the character is printable or not.Isprint returns true for constant cases as Isprint aside from the house character (' '), that returns true.A locale-specific model version of this function (Isprint) exists in cctype header file.-Isprint() function can be used to check any Non-Printing character in a series of sentences.-Isprint() is an Inbuilt function that provides efficient way to handle non printing characters-Isprint() helps to minimize the lines of code for programmer.-Isprint() is in true sense decreases the compilation time of program.Including cctype.h in your program not only ... Read More
In this article, we will learn how to install and configure R on Ubuntu 16.01. “R” is an open-source programming language which can be specially used for statistical computing and performing analytical data. Where “R” has the community well know for the packages generated by the users in a specific area of study. We will install the “R” package using the CRAN (Comprehensive “R” Archive Network).PrerequisitesWe need a Linux machine install with Ubuntu 16.04 server with a minimum of 1 GB of RAM.A non-root user with Sudo permissions on the machine.Adding the CRAN repository to the Machine and Install R ... Read More
Given is the task to show the working of forward_list::emplace_after() and forward_list::emplace_front() functions in c++.A forward_list only keeps linkage with the next element unlike normal list that keeps linkage with the next as well as the preceding elements, which helps iterations in both directions. But forward_list can only iterate in the forward direction.The forward_list::emplace_after() and forward_list::emplace_front() functions are a part of the c++ standard library.The forward_list::emplace_after() function is used to insert a new element inside a list after the element whose position is specified inside the argumentThe forward_list::emplace_front() function is used to insert an element in the beginning of the ... Read More
To match any string containing a sequence of two to three p’s with JavaScript RegExp, use the p{2,3} Quantifier.Example JavaScript Regular Expression var myStr = "Welcome 1, 10, 100, 1000, 1000"; var reg = /\d{2,3}/g; var match = myStr.match(reg); document.write(match);
In the year 2005, with the sole purpose of internal enrichment of its employees, Google started the program, Google talks, thru this program, brings actors, actresses, authors, filmmakers, actresses, musicians, chefs, women, politicians, scientists, innovators and speakers of all kinds, to Google talks centering on their recent works. This program has gained popularity in very short time and it evolved to become a public facing program, reaching millions of viewers, with varieties of interests on YouTube Channel. The talks are hosted by Googlers in Google offices across the world.In this program, a disclaimer is also posted, that the views or ... Read More
In this article, we will learn about how to install and configure the Nginx Web server. Nginx is the most popular web server where some of the most popular and high traffic sites are hosted where it is more friendly and secured than Apache and it is also used as a web server.PrerequisitesUbuntu 16.04 installed on the machine with a non-root user with sudo permissions on the machine.Installing the Nginx in MachineWe can install the Nginx, which is available on Ubuntu’s default repository so can directly install the Nginx using the apt command.Before we install the Nginx we needed to ... Read More
Given is the task to show the working of forward_list::cend functions in C++.A forward_list only keeps linkage with the next element unlike normal list that keeps linkage with the next as well as the preceding elements, which helps iterations in both directions. But forward_list can only iterate in the forward direction.The forward_list::cend() function is a part of the C++ standard template library. It is used to obtain the last element of the list. header file should be included to call this function.SyntaxForward_List_Name.cend();ParametersThe function does not accept any parameter.Return ValueThe function returns a constant iterator that points at the last element ... Read More
Given is the task to show the working of forward_list::cbefore_begin() function in C++.A forward_list only keeps linkage with the next element unlike normal list that keeps linkage with the next as well as the preceding elements, which helps iterations in both directions. But forward_list can only iterate in the forward direction.The forward_list::cbefore_begin() function is a part of the C++ standard template library. It is used to obtain the position before the first element of the list. header file should be included to call this function.SyntaxForward_List_Name.cbefore_begin();ParametersThe function does not accept any parameter.Return ValueThe function returns a constant iterator that points at ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP