Posts
Showing posts with the label Web Designing and Programming
Change VIM colorscheme
- Get link
- X
- Other Apps
Change Color Scheme in VIM editor Example Dear Reader, Today, I am writting about how you change VIM Editor colorscheme as per your choice. VIM editor is a very versatile text editor which have a great feature for syntax highlighting, completion, search and replace. It requires skill and you must have memorized the commands as remember shortcuts for new editors. Alongwith, You need to install plugins for you choice and the feature you want. Today We gonna see about changing color/colorsheme in VIM Editor. You can follow the blog and also can find a YouTube video link below the Page. Let's Begin with by open the terminal. Terminal Now, type vim and hit enter button. VIM without any file. You must see something very identical to it. By Default you vim will open in command mode or in normal mode . enter :color morning <cr> <cr> carriage return or enter button VIM in command mode. (:colo...
Install the packages in Linux
- Get link
- X
- Other Apps
Install the PHP/Java/Apache in Linux (For the student of BSc. (Computer Science). You can use the tricks for the Fedora Based System/Debian Based System ( Fedora Based System (.rpm) - Redhat, CentOS,Fedora etc/ Debian Based System(.deb) - Ubuntu ,mint,debian etc). For Fedora Based System:- yum install package-name e.g. yum install php-cli* (for the php-cli package in CentOS/Redhat etc). yum is used to install the online package from the respected OS repo location. If you have offline package as .rpm so follow this instruction.. rpm -q packagename (it is use to query whether package is installed or not) e.g. rpm -q php-cli (To query that PHP interpreter is installed or not for install a rpm package rpm -ivh package-name.rpm e.g. rpm -ivh php-cli_xxx_xxx.rpm (to install the jdk in centos/redhat). xxx_xxx version and build name that means you have to enter the correct name of package and install. For Debian Based System:- sudo apt-get...
String Operations in PHP
- Get link
- X
- Other Apps
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Strings</title> <style> h3{ font-size: 25px; color: lime; font-size-adjust: true; text-align: center; text-shadow: 2px; } *{ color: skyblue; font-size: 15px; font-family: "Console"; } </style> </head> <body bgcolor="gray"> <h3>String functions</h3> <hr width="1024px"></hr> <center> <pre> <?php $str1="Welcome to tutorital of PHP"; $str2="Thanks for Visiting this Page!!"; //String function and their output.. echo "<h4><u> Original String is (i): {$str1} & (ii) is {$str2}.</u></h4...
Assignment 1 Question 3 (Server side and Client Side Scripting)
- Get link
- X
- Other Apps
<?php /** * @author : Rajendra Kumar Yadav * @filename : a1q3.php * @date : 23:53:58 Sat 27- Jun - 2015 IST * College Work: Assignment 1 Question 3 * College : ATSS College PHP Practical */ ?> <html Copyright (c) 2015 Copyright Rajendra Kumar Yadav All Rights Reserved. lang="en"> <head> <title> Assignment 1 Question 3 </title> </head> <h3 class='test'> Assignment 1 Question 3 </h3> <hr align=center color=red size=2px> <body align=center bgcolor= antiquewhite> <style media="screen"> .test { font-weight: normal; font-family: "Times new Roman"; align-items: center; font-language-override: normal; color: inherit; ...
Assignment 1 Question 2 (Server Side Scripting Part using PHP).
- Get link
- X
- Other Apps
<?php /* @autor Rajendra Kumar Yadav @Check the Substring position @Check First and last occurance Position @ Replace Small Substring with some new substring. */ $n=$_POST['str1']; $n1=$_POST['str2']; $n2=$_POST['str3']; $ch=$_POST['ch']; function POSITION($n,$n1) { $c=strpos($n,$n1); $c1=strrpos($n,$n1); echo "The Substring 2 Occurs at position ".$c." and ".$c1; } function OCCUR_SUBSTR($n,$n1) { $c2=substr_count($n,$n1); echo "The Substring ".$n1 ." occured ".$c2." times."; } if($ch=="first_last_pos") { POSITION($n,$n1); } if($ch=="occ_substring") { OCCUR_SUBSTR($n,$n1); } function REPLACER($n,$n1,$n2) { $c3=strlen($n1); $c4=substr_replace($n,$n2,$c,$c3); echo "First String is ".$n; echo "Second String is ".$n1; echo "New String is ".$n2; } if($ch==...
Assignment 1 Question 2 (HTML Form Part)
- Get link
- X
- Other Apps
<?php /** *@author Rajendra Kumar Yadav *@File a1q2.php (Assignment 1 Question 2). * Other Page name is "a1q1_server_Script.php" * which control the server script */ ?> <html lang="en"> <head> <title> Assignment 1 Question 2 </title> </head> <h3 align="center"> Assignment 1 Question 2 </h3> <hr color="lightblue" size=0.5px width=1024> <body align=center bgcolor=lightgrey> <pre> <div id=main> <form method="post" action="a1q1_server_Script.php"> Enter the First String <input type=text name=str1><br/> Enter The Second String <input type=text name=str2><br/> Enter The Third String <input type=text name=str3><br/> <hr color="navy" width=800px size=0.5px align=center> First and last Position <input type=radio name="ch" value="first_last_pos"/> Occu...
Assignment 1 Question 1
- Get link
- X
- Other Apps
<?php /* * @author Rajendra Kumar Yadav * @date 23:55:40 26-Jun-2015 IST * ATSS First PHP Program * Filename a1q1.php * Assignment 1 Question 1 for Semester III. */ ?> <html lang="en"> <head> <title> Assignment 1, Question 1! </title> </head> <body bgcolor='#000000'> <center> <h3> Welcome to Assignment 1 and Question 1!</h3> <?php if($_SERVER['REQUEST_METHOD']=='POST') { $str=$_POST['str']; //Global variable $ch=$_POST['ch']; //Global variable function COU($str) //Function to check the vowel occurance ...