Thursday 19 May 2016

Line Configuration

A network is a combination of more than one devices which connect from some medium (wire , wireless) called channel line configuration refer physical communication channel  access method . Three types of access method are follows..


  • Point to Point
  • Multi Point

Sunday 15 May 2016

Computer Fundamental MCQ answer

This is 50 question/answer set useful for BCA, MCA, O Level,CCC,PGDCA students 

Q 1 : Basic Application of computer
(A)Education
(B)Games
(C)Business
(D)All the above

Q 2 : Technology after IC
(A)LSI
(B)VLSI
(C)SSI
(D)All the above

Thursday 12 May 2016

Difference between Computer Architecture and Computer Orgzanization

Computer organization

This is implementation of Computer Architecture. It deals with operational feature of computer that how hardware are working by Computer Architecture and helps programmer to understand working model of hardware and enables them coding for accessing different method of hardware and interrupt ,control signal etc.

Tuesday 10 May 2016

Modes of channel operation

Mode of channel operation define accessing mode of the medium for send and receive data. Types and examples of different types of modes are follows

Simplex

Data in simplex channel is always moves in one direction. Simplex is suitable for many kind of application where reply is necessary because it is not possible to send back error or control signals to the transmit end.

Monday 9 May 2016

Proper Case String VB

Function Name : StrConv

Convert a string into desire specified format.

Syntax

StrConv(String,VbStrConv) as String 

Tuesday 3 May 2016

Difference Between Coupling and Cohesion

Coupling Indicate the relationship between the different modules. Cohesion indicates a relation inside of a single module.
Coupling Cohesion

Saturday 30 April 2016

Resized and Saved Uploaded Image in PHP

Image resizing is an important task because if uploaded image size is bigger than requirement and we are not resizing it then it will consume server space and bandwidth which is not good.
So Resizing is necessary .you need to use four PHP GD functions for achieve this.

imagejpeg PHP GD Function

Creates and output an image to browser or saved into a file

Syntax:

bool imagejpeg ( resource $image [, string $filename [, int $quality ]] )

imagecopyresized PHP GD Function

Copy and resized the specific part of an image

Syntax:

bool imagecopyresized ( resource $dst_image , resource $src_image , int $dst_x , int $dst_y , int $src_x , int $src_y , int $dst_w , int $dst_h , int $src_w , int $src_h )

imagecreatefromjpeg PHP GD Function

Create a new image from a url or uploaded by file control

syntax:

resource imagecreatefromjpeg ( string $filename )

Argument Detail:

filename Path to the JPEG image.

Return Values :

imagecreatetruecolor PHP GD Function

The imagecreatetruecolor () function is used in PHP to create a new true color image using the GD Library.

resource imagecreatetruecolor ( int $width , int $height )

width
Image width for creating

height
Image height for creating

getimagesize PHP Function

Get the size of an image

array getimagesize ( string $filename [, array &$imageinfo ] )

The getimagesize() function will determine the size of any given image file and return the dimensions along with the file type and a height/width text string to be used inside a normal HTML IMG tag and the correspondent HTTP content type.

list($width, $height) = getimagesize($_FILES['file']['tmp_name']);
echo $width;
echo $height;

Thursday 28 April 2016

Difference between Terminal and Non-Terminal Symbols (Compiler Design)


Terminal Symbol

  • A terminal is a symbol which does not appear on the left-hand side of any production.
  • Terminal symbols cannot be changed using the rules of the grammar.
  • terminal symbols, which are the characters of the alphabet that appear in the strings generated by the grammar.
  • a terminal symbol is one that cannot be broken down further, e.g. a literal character or digit (but not necessarily as it depends on the grammar).
example : Contant etc

Monday 25 April 2016

Histogram Digital Image Processing

The histogram is in digital image processing used to indicate the intensity of colors with the help of graph as follows

Wednesday 20 April 2016

Passing Dynamic Array to function in php

<?php
function test_array($ar)
{
for($i=0;$i<count($ar);$i++)
{
  echo  "<br>" . ($i+1) . "'st element value " . $ar[$i];
}
}
?>

Monday 18 April 2016

Get Record gridview to window control by select a row form gridview


Private Sub DataGridView1_RowHeaderMouseClick_1(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellMouseEventArgs) Handles DataGridView1.RowHeaderMouseClick

Context Free Grammar

     The analysis phase of a compiler breaks up a source program into constituent pieces and produces an internal representation for it, called intermediate code. The synthesis phase translates the intermediate code into the target program. 

     Analysis is organized around the "syntax" of the language to be compiled. The syntax of a programming language describes the proper form of its programs, while the semantics of the language defines what its programs mean; that is, what each program does when it executes. For specifying syntax, we present a widely used notation, called context-free grammars or BNF (for Backus-Naur Form)

Compilation Process

=====> COMPILATION PROCESS <======

                     |
                     |---->  Input is Source file(.c)
                     |
                     V
            +=================+
            |                 |
            | C Preprocessor  |
            |                 |
            +=================+
                     |
                     | ---> Pure C file ( comd:cc -E <file.name> )
                     |
                     V
            +=================+
            |                 |
            | Lexical Analyzer|
            |                 |
            +-----------------+

Sunday 17 April 2016

Print array without using loop in c language

Q . Write a program to print an array value without using loop.

#include<stdio.h>
#include<conio.h>
/*  Girfa : student Help
    for more question visit: http://girfahelp.blogspot.in/2012/09/some-program-of-c-language.html
*/
void main()
{ int ar[5],i=0;
clrscr();
goinput:
if(i<5)
{

Saturday 16 April 2016

Scrollbar Using HTML

<html>
<head>
<title>
Girfa : Scrollbar Demo
</title>
</head>
<body>