Tuesday 23 February 2016

Dynamic Array in PHP

     The array is a collection of similar data types which occupies continuous location in memory. There are two types of array static and dynamic. In dynamic array size can be decreased and increase as requirement which best uses of memory utilization on the other hand static array is fixed in nature you cannot increase and decrease array capacity when require so it’s not popular in PHP. We deal with mostly dynamic array in PHP.

Dynamic Array example code :

<?php

$ar=array("Red","Green","Blue");
for($i=0;$i<count($ar);$i++)
{
echo  "<br>" . ($i+1) . "'st element value " . $ar[$i];
}
?>

Example 2:

$ar[]="";
for ($i = 0; $i <$10; $i++)
{
array_push($ar,$i);
}

for($i=0;$i<count($ar);$i++)
echo "<h2>" . $ar[$i] . "</h2>";

Monday 22 February 2016

Thrashing

     If the number of frames allocated to a low-priority process falls below the minimum number required by the computer architecture, we must suspend that process's execution. We should then page out its remaining pages, freeing all its allocated frames. This provision introduces a swap-in, swap-out level of intermediate CPU scheduling.

     In fact, look at any process that does not have "enough" frames. If the process does not have the number of frames it needs to support pages in active use, it will quickly page-fault. At this point, it must replace some page. However, since all its pages are in active use, it must replace a page that will be needed again right away. Consequently, it quickly faults again, and again, and again, replacing pages that it must bring back in immediately.

     This high paging activity is called thrashing.A process is thrashing if it is spending more time paging than executing.

Reason of Thrashing

     Thrashing results in severe performance problems. Consider the following scenario, which is based on the actual behavior of early paging systems.

SHA1 PHP encryption function

SHA1 accept a string as a key and return hash string which is encrypted. For decryption key is required, which is used in the encryption.

Syntax

string sha1 ( string $str [, bool $raw_output = false ] )

If the optional raw_output is set to TRUE, then the sha1 digest is instead returned in raw binary format with a length of 20, otherwise the returned value is a 40-character hexadecimal number.

Sunday 21 February 2016

Preemption in OS

In computing, preemption is the act of temporarily interrupting a task being carried out by a computer system, without requiring its cooperation, and with the intention of resuming the task at a later time. Such a change is known as a context switch. It is normally carried out by a privileged task or part of the system known as a preemptive scheduler, which has the power to preempt, or interrupt, and later resume, other tasks in the system.

Friday 19 February 2016

Tags - Display HTML code in HTML

There are many times when we want to show HTML tags on our web page mainly when we make some HTML tutorial type application. This enables you to show an HTML code example on your webpage. Following code help you


<xmp>
<h1>Test </h1>
</xmp>

&lt marquee &gt

Thursday 18 February 2016

PHP Variable Scope

Local Variable

     A local variable is accessible only the block where it has defined. When a code block over then the entire local variable inside of block automatically released by the compiler.
<?php
           
            function fun1()
            {                      
                        $a=10;
                        echo $a;
            }
            function fun2()
            {
                        echo $a+10;
                        // Error : Undefined variable: a because it has not defined in fun2 and a is local variable for  fun1
            }          
?>
<?php
            //fun1();
            fun2();
?>

Global Variable

     The scope of a PHP variable depends on where it has defined I.e. when a variable is declared in top side of the PHP code block, then it becomes global variable for all PHP code block but not inside of a function.

Saturday 13 February 2016

M4.1-R4 Application of .NET Technology

M3-R4 Programming and Problem Solving through ‘C’ language

Internet Technology and Web Design

IT Tools and Business Systems

Thursday 11 February 2016

HTML: Special Characters

Punctuation
HTML Entity(case sensitive)
ISO Latin-1 code
name or meaning
&ndash;
&#8211;
en dash
&mdash;
&#8212;
em dash
¡
&iexcl;
&#161;
inverted exclamation
¿
&iquest;
&#191;
inverted question mark
"
&quot;
&#34;
quotation mark
&ldquo;
&#8220;
left double curly quote
&rdquo;
&#8221;
right double curly quote
'

&#39;
apostrophe (single quote)
&lsquo;
&#8216;
left single curly quote
&rsquo;
&#8217;
right single curly quote
«


»

Wednesday 10 February 2016

Java Script Then and Now

Java Script Then and Now

HTML VS CSS

HTMLvsJavaScript

Tuesday 9 February 2016

HTML Tutorial

HTML-Banner


What Is HTML?

HTML is a markup language, not a programming language. In fact, the term HTML is an acronym that stands for Hypertext Markup Language. You can apply this markup language to your pages to display text, images, sound and movie files, and almost any other type of electronic information. You use the language to format documents and link them together, regardless of the type of computer with which the file was originally created.
HTML is written as plain text that any Web browser or word processing software can read. The software does this by identifying specific elements of a document (such as heading, body, and footer), and then defining the way those elements should behave. These elements, called tags, are created by the World Wide Web Consortium (W3C).
simple HTML page
<html>
<head>
<title>My Second Web Page</title>
</head>
<body>
Place Your Code Here
</body>
</html>

Paragraphs


In HTML, a paragraph is created whenever you insert text between the <p> tags
<p>This is my first XHTML page.</p>

Headings
HTML enables you to add six different heading tags to your pages by using the tags <h1><h6>. These tags are very simple to use.

<h1>This is Heading 1</h1>

Saturday 6 February 2016

Object Oriented Programming (OOPS)

Object Oriented Programming Banner OOP

Class

     In object oriented programming basic working unit start with a class. Class is a template which comprises all the aspect of an object which is a instance of a class.

     In OOP we first create a class to solve any problem. A Class is divide into two parts first is Data section other is function or method section. In data section we get data member which are needed to solve a problem and function section we implement function section functions are defined which handle data.

Class Diagram example OOPs

Monday 1 February 2016

How to make HTML File using PHP

If you are familiar with C filing programming then your knowledge will be work here. Just copy and paste the following complete code and implement your logic as you want 

<?php 
if($_POST['submit'])
{
$myfile = fopen($_POST['fnm'].".html", "w") or die("Unable to open file!");
;
fwrite($myfile, $_POST['msg']);
fclose($myfile);
}
?>

YouTube HTML 5 Embed iframe code from URL with PHP

Hi folks
I was making a website and my client request me to upload youtube video on his website. For do this take some fact about youtube video



  • When upload video. Youtube provide a unique URL for every uploaded video which user can use to share their video to other platform or other youtube user.
  • Iframe is used to show youtube video on other website
  • An embedded URL need in iframe SRC

Wednesday 13 January 2016

Discrete Mathematics Tutorial



Deductive logic

Deductive logic reasoning, a conclusion makes on the behalf of some intact fact which show conclusion is true.

Example

  • All man is mortal
  • Rakesh is a man
  • So rakesh is mortal

Deductive logic some time contra of inductive logic because it has strong fact which to mostly conclusion is true. Deductive logic tends to specific conclusion.

Inductive logic

In inductive logic reasoning a conclusion makes on the behalf of some fact like deductive but it is not always necessary that conclusion will be true.

Example

  • Some parents are addicted to alcohol
  • Then it is necessary to their children will also be addicted to alcohol

Is it always happened ? answer is no, not at all. So fact is strong but not showing conclusion will always be true it may be false. Inductive logic make fact specific to general

Friday 11 December 2015

Software Engineering


Data Flow Diagram (DFD)

Overview

Data flow diagram (DFD) represents the flows of data between different processes in a business. It is a graphical technique that depicts information flow and the transforms that are applied as data move form input to output. It provides a simple, intuitive method for describing business processes without focusing on the details of computer systems. DFDs are attractive technique because they provide what users do rather than what computers do.

Monday 7 December 2015

Synopsis : computer Science Project


        A synopsis is a brief summary of your project which you are going to working on. A computer science student of various courses like Btech,MCA,PGDCA,BCA,Bsc-IT,Bsc-CS,’O’ Level,’A’ Level,’B’ Level has to submit a project for complete their course in last semester. In synopsis include a brief detail of our project it’s just like a prototype which shows that how will be project.The page size of the synopsis should be near about 20-25 pages. 

        Following are topics which at least should be cover and student can increase many things depend on the complexity of the project.

Synopsis Topic :

  • Introduction of Project
  • Objective of the Project
  • Scope of the Project
  • Project Plan
  • The Existing System
  • Background of the Organization
  • Current Problems
  • Areas for Improvement
  • Proposed System
  • Input/Output Requirement
  • Hardware and Software Requirement
  • Database Requirement
  • System Design
  • Tables and Fields for Database
  • Database Dictionary
  • E-R Diagram
  • Level 0DFD
  • Level 1 DFD
  • Security Control
  • Future Scope of the Project
  • Conclusion
  • Reference or Bibliography

Download Synopsis :

    Education Hotel/Hospitality
    Commercial Medical


  1. IGNOU Synopsis


    MBA Project Synopsis


    Mini Project Python

    Request for word file : rajkumar9795@gmail.com