Menus

Nov 10, 2015

How to block unwanted ads in Google Chrome?

How to block unwanted ads in Google Chrome?

(Based on true story)
From some days in google chrome, when I was opening websites there were always unwanted ads. When I was clicking on something in the web page, then it was automatically redirecting to a unwanted (www.topclick…) website.

I asked for the solution of this problem to Google and Google told me following steps to follow which solved my problem.

Step 1: Full system scan your computer with free or purchased Antivirus software.

Step 2: Download chrome_cleanup_tool.exe.

Step 3: Open it.

It removes some malwares from our computer which causes the problem.

Step 4: Reset Chrome.

After following above steps my problem was solved I hope your also.


55 Formulas for Successful Student Life

Formula 1: Prepare a daily routine.
Formula 2: Always be self-disciplined.
Formula 3: Use leisure time in right way.
Formula 4: Always be studious.
Formula 5: Always have a balanced diet.
Formula 6: Keep up regular physical exercise.
Formula 7: Write attractive handwriting.
Formula 8: Set goal and hard labour together.
Formula 9: Be friendly to all.
Formula 10: Take part in all ECA’s very actively.
Formula 11: Be lovely to all.
Formula 12: Complete homework regularly.
Formula 13: Wear neat and clean dresses.
Formula 14: Take care of educational materials.
Formula 15: Participate in educational tours.
Formula 16: Go to the school regularly.
Formula 17: Pray the god everyday.
Formula 18: Be curious.

Oct 25, 2015

How to solve the error "CPU acceleration status: HAX kernel module is not installed!" in android studio.

To solve the above problem at first you have to open android SDK manager.

Then goto extras and install "Intel x86 Emulator Accelerator(HAXM installer" .

Then goto following address in your computer:
C:\Users\UserName\AppData\Local\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager

There you will get "intelhaxm-android.exe". Install it and then create a virtual device in your android studio.

It may take some time but now your virtual device will sure run.

:) Thank You


Oct 23, 2015

After watching Hinduism Shrimad Bhagavad Geeta video by downloading from #Youtube.

For a doctor- doing patients treatment is worship of God.

For an Engineer- "building earthquake not harming home" is worship of God.

For a teacher- teaching, loving students is worship of God.

For a student- studying, respecting teachers, making health is worship of God.

For children- respecting, helping their parents is worship of God.

For parents- loving their children, "showing their children right path" is worship of God.

Oct 21, 2015

How to Create Your Own Shutdown Button in Windows 8?

-Right click on your desktop.
-Goto new shortcut.
-Then type "shutdown -t -s 00"(without quotes).

Oct 19, 2015

Concept on Web Server and PHP Server Configuration

Concept on Web Server
Web servers are computers that deliver (serves up) Web pages. Every Web server has an IP address and possibly a domain name. For example, if you enter the URL http://www.webopedia.com/index.html in your browser, this sends a request to the Web server whose domain name is webopedia.com. The server then fetches the page named index.html and sends it to your browser.
Any computer can be turned into a Web server by installing server software and connecting the machine to the Internet. There are many Web server software applications, including public domain software and commercial packages.

Oct 15, 2015

Introduction of CSS (Cascading Style Sheet)

Introduction of CSS (Cascading Style Sheet)
The Cascading Style Sheets specifications from the World Wide Web Consortium (the W3C, which develops Internet standards; http://www.w3.org) allows designers to specify the look of page elements, including type, as well as position those elements precisely on the Web page. Besides these abilities, CSS allows designers to easily do something at which they excel: change their minds.

 If the look of the elements of your site is defined according to a style sheet, in order to change the look of the site, you simply need to change the definitions in the style sheet, and the changes are automatically applied. Using CSS allows Web designers to spend more time designing, rather than wasting time with HTML's limitations.

Oct 6, 2015

Because I Love You

(Inspired by Infatuation of teen age. I wrote this poem while I was in class 11 in 2011 AD.)
I am looking down
I am looking high
I am not looking at you 
because of shy.
It is the cause of your voice

I'm attracting at you 

but you don't even look at me

what can I do.


I think you think that

what type of man I am

please talk with me.

Oct 4, 2015

Explain in Detail About Software Qualities

8. Software Qualities 
8.1 Software quality and quality assurance
8.1.1 Software quality factors
8.1.2 Software quality assurance
8.1.3 SQA activities
8.1.4 Software quality standards: SEI, ISO
8.2 Software reviews
8.2.1 Cost impact of software defects
8.2.2 Defect amplification and removal
8.3 Formal technical reviews
8.3.1 The review meeting
8.3.2 Review reporting and record keeping
8.3.3 Review guidelines
8.3.4 A review checklist
8.4 Formal approaches to SQA
8.4.1 Proof of correctness
8.4.2 Statistical quality assurance
8.4.3 The cleanroom process

Sep 30, 2015

Software Development Models

4. Software Development Process 3 hours

4.1 Software development process models,
4.2 Organizing the process.
Software Development Process
software development process, also known as a software development life cycle (SDLC) or software life cycle or software process, is a structure imposed on the development of a software product. It is often considered a subset of systems development life cycle. There are several models for such processes, each describing approaches to a variety of tasks or activities that take place during the process. It aims to be the standard that defines all the tasks required for developing and maintaining software.
Software development process models
The major software development process models are:
1. Waterfall model
2. Evolutionary/Increment model
a. Prototyping model
b. Spiral model
3. Transformation model

Sep 27, 2015

What is Software Specification?

3. Software Specification
3.1 Uses of specification,
3.2 Classification of specification,
3.3 Verification of specifications,
3.4 Operational and descriptive specifications, building and using specifications.
Software specification
In broad term, specification means definition. Software specification is used in different stages of the software development for different purpose. In general term, software specification is the agreement or contract between producer of the service and consumer of the service or the implementer and the user. All the desirable qualities and requirements are specified in software specification document. There are different types of specifications such as requirement specification (which is the agreement between end user and system developer), design specification (is an agreement between system designer and implementer) and module specification (is an agreement between programmer using module and programmer implementing module.

Introduction to XML

XML stands for EXtensible Markup Language.
XML is a markup language much like HTML.
XML is a subset of SGML (Standard Generalized Markup Language).
XML tags are not predefined. You must define your own tags.
XML was designed to transport and store data, with focus on what data is, whereas HTML was designed to display data, with focus on how data looks.

XML is used in many aspects of web development, often to simplify data storage and sharing.
Once the data is on the client machine, it can be manipulated, edited and presented in multiple views without return trips to the server.


XML Separates Data from the Presentation and the Process. The power and beauty of XML is that it maintains the separation of the user interface from the structured data.

HTML is about displaying information, while XML is about carrying information.

XML is defined by 4 specification
XML :
Defines the syntax of XML.

XLL (Extensible, Linking Language):
Defines a standard way to represent links between resources.

XSL (Extensible Style Language):
Will define a standard style sheet language for XML.
XUA (XML User Agent):
Will help standardize XML User Agents (like browser).

Writing Well-Formed XML Documents
An XML document is well-formed if it follows some basic rules. The XML format has a simpler set of parsing rules than HTML, allowing an XML parser to read and expose XML data without an external description or special knowledge about the meaning of the XML data.

Basic rules for Well-Formed XML documents:

Start tags and End tags must match:
Each start tag must have a corresponding end tag.

Elements cannot overlap:
Wrong overlapping:
<title>Sample XML<Sub>Introduction to XML</title></sub>


Correct overlapping:
<Title>
<sub>Introduction</sub>
<author>Mr Carry</author>
</Title>

XML tags are case-sensitive
The following tags represent different element:
<City> <CITY> <city>

Empty elements:
A sole tag ending with ‘/>’ signal that the element has no contents.  For example, the following two lines are equivalent:
  <title />
<title></title>

Reserved characters
Several characters are part of the syntactic structure of XML and will not be interpreted as themselves if simply placed within an XML data source.
Desired character
Character Sequence
< 
&lt;
&
&amp;
> 
&gt;
&quot;
&apos;

Each XML document must have a unique root element: ( XML Tree)
XML documents form a tree structure that starts at "the root" and branches to "the leaves". Several characters are part of the syntactic structure of XML and will not be interpreted as themselves if simply placed within an XML data source.
<LGIC>
<Courses>
<BBA>
<RegdNo>001</RegdNo>
<Name>Himesh Pokharel</Name>
<Address>Pokhara 10</Address>
<Phone>9846033212</Phone>
</BBA>
<BBA>
<RegdNo>002</RegdNo>
<Name>Rakesh Mishra</Name>
<Address>Pokhara 4</Address>
<Phone>9846067212</Phone>
</BBA>
<BBA>
<RegdNo>003</RegdNo>
<Name>Iron Dhoni</Name>
<Address>KTM 10</Address>
<Phone>9841334212</Phone>
</BBA>
</Courses>
</LGIC>

How do Browsers read XML?
A tool for reading XML documents is popularly called a ‘XML parser’, though the more formal name is a ‘XML processor’.
XML processors parse data to an application for authoring, publishing, searching or displaying.
XML doesn’t provide an API to an application, it just passes data to it.
Most of new Browser already included XML parser.

How do XML document looks?
<?xml version=“1.0” ?>
<Mail>
<to>John</to>
<from>Mary</from>
<heading>Reminder</heading>
<body>Don’t forget me this weekend!</body>
</Mail>

The first line in document – ‘the XML declaration’ – should always be included. It defines the XML version of the document.
The next line describe the Root Element of the document.
The next 4 lines describe 4 Child Elements of the root.
And finally the last line defines the end of the root element.

What is Prolog?
The part of a XML document that precedes the first start tag is collectively known as the prolog.
XML documents should start with a prolog that describes the XML version, document type and other characteristics of the document.
Syntax:
<?xml version=“1.0”?>
<!DOCTYPE DOCBOOK SYSTEM “http://www.eduus.com/docbook”>
This DTD says that the document conforms to XML versin1.0 and declares adherence to particular document type DOCBOOK.
Document Type Definition (DTD)
A specification for a SGML or HTML document that specifies structural elements and markup definitions that can be used to create documents that describe content.
The DTD can put constraints on the occurrence and content of elements and other details of the document structure.

Document Type Declaration
A document type declaration is a statement embedded in a XML document whose purpose is to acknowledge the existence and location of a document type defination(DTD).

A document type declaration is different from document type definition.
The first is a statement that points to the second.

A DTD is a set of rules that defines the structure of an XML document whereas, a document type declaration is a statements that tells the parser which DTD to use for checking and validation.

All document type declaration starts with string “<!DOCTYPE”>.
The DTD declaration can be internal or external.
If external then the DTD must be specified either as “SYSTEM” or “PUBLIC” in the document type declaration.
If “PUBLIC” the DTD can be used by anyone by refering the URL.
If “SYSTEM” that means it may not be available for use by other applications.

CDATA Sections
In a document, a CDATA section instructs the parser not to interpret the data defined within it as a markup. CDATA stands for “Character Data”.
Syntax:  <! { CDATA [content]}>

Between the start of the section, “<!CDATA[“ and the end of the section “]}>” all character data is passed directly to the application.
The only string that cannot occur in a CDATA section is “]}>”. Which known as CDEnd.

XML Elements
Elements are the most common form of markup.
Delimited by angle brackets, most elements identify the nature of the content they surround.
XML elements breakdown into two category.
The elements which have content, elements or both are called content element.
An element which doesn’t have content or elements are called Empty element.

XML Attributes
Attributes are a way of attaching characteristics or properties to elements of a document.
Attributes are name-value pairs that occur inside tags after the element name.
In XML, all attribute values must be quoted by double quotes or single quotes.
Attributes cannot contain any sub-attributes.
Example: <person name=“Mr.John”>

Internal DTD example
<?xml version="1.0"?>
<!DOCTYPE Mail[
<!ELEMENT Mail (to, from, heading, body)>
<!ELEMENT to (#PCDATA)>
<!ELEMENT from (#PCDATA)>
<!ELEMENT heading (#PCDATA)>
<!ELEMENT body (#PCDATA)>
]>
<Mail>
<to>Peter</to>
<from>Julia </from>
<heading>Reminder</heading>
<body>Don't forget me!</body>
</Mail>
!ELEMENT Mail  defines the element “Mail” having four elements: “to, from, heading & body”.
!ELEMENT to defines the element to be type “CDATA”.
And !ELEMENT from, heading & body elements be of type “CDATA”.

External DTD example
The XML file
<?xml version="1.0"?>
<!DOCTYPE Mail SYSTEM “mail.dtd”>
<Mail>
<to>Peter</to>
<from>Mary</from>
<heading>Reminder</heading>
<body>Don't forget me!</body>
</Mail>
The file “mail.dtd” containing the DTD:
<?xml version=“1.0”?>
<!ELEMENT Mail (to, from, heading, body)>
<!ELEMENT to (#PCDATA)>
<!ELEMENT from (#PCDATA)>
<!ELEMENT heading (#PCDATA)>
<!ELEMENT body (#PCDATA)>

Element Declaration
Element type declarations must start with the string: “<!ELEMENT”, followed by the name and finally content specification.
Every element has certain allowed content.
There are four kinds of content specification.
Content Specification Type
Description
EMPTY content
May not have content.
ANY content
May have any content at all
Mixed content
May have character data or a mix of character data and sub elements
Element content
May have only sub-elements
Example of Content Specification
Empty content
<!ELEMENT myfirstelement EMPTY>
ANY content
<!ELEMENT mysecondelement ANY>
Mixed content
<!ELEMENT language (#PCDATA)>
Element content
<!ELEMENT mail (to, from, subject, body)>

Occurrence Indicators
XML also allows you to specify whether a content particle is optional or repeatable using an occurrence indicator. There are three occurrence indicators:

Occurrence Indicator
Description
?
Optional (0 or 1 time)
*
Optional and repeatable (0 or more times)
+
Required and repeatable (1 or more times)

Associating CSS Style Sheet with XML
XML has emerged as a "universal" data format in a variety of application areas.
Style sheets are an essential step in XML deployment to define the presentation of XML documents.
The association consists of inserting the XML processing instruction at the top of the document, before the root element of the XML document and after the XML prolog.
The processing instruction has two required attributes type and href which respectively specify the type of stylesheet (Internet Media Type text/css) and its address (path).
<?xml-stylesheet type="text/css" href="foo.css"?>

Example of CSS with XML
<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="style.css"?>
<PU>
<Centers>
<Center>
<Code>001</Code>
<Location id="Pkr">Pokhara</Location>
<Phone>344333</Phone>
<Email>pkr@webcom.com</Email>
</Center>
<Center>
<Code>003</Code>
<Location id="Ktm">Kathmandu</Location>
<Phone>3444433</Phone>
<Email>ktm@webcom.com</Email>
</Center>
<Center>
<Code>004</Code>
<Location id="Tnu">Tanahu</Location>
<Phone>342223</Phone>
<Email>tanahu@webcom.com</Email>
</Center>
</Centers>
</PU>

Secondly create “style.css” file
PU {
font-family: verdana;
color:brown;
}
Center {
background:yellow;
display:block;
margin:5px;
}
Location {
font-size:large;
display:block;
}
Email {
font-size:small;
display:block;
}

XML Schema
XML Schema is an XML-based language used to create XML-based languages and data models.
An XML schema defines element and attribute names for a class of XML documents.
The schema also specifies the structure that those documents must adhere to and the type of content that each element can hold.
DTDs are similar to XML schemas in that they are used to create classes of XML documents.

As a means of understanding the power of XML Schema, let's look at the limitations of DTD.
DTDs do not have built-in datatypes.
DTDs do not support user-derived datatypes.
DTDs allow only limited control over cardinality (the number of occurrences of an element within its parent).
DTDs do not support Namespaces or any simple way of reusing or importing other schemas.
An XML schema describes the structure of an XML instance document by defining what each element must or may contain.
An element is limited by its type. For example, an element of complex type can contain child elements and attributes, whereas a simple-type element can only contain text.
Example of XML Schema

The “schema.xsd” file:
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="p" type="xsd:string"/>
</xsd:schema>

The “schema.xml” file:
<?xml version="1.0"?>
<p>Hello world!</p>

XML – JavaScript

The XMLHttpRequest Object
The XMLHttpRequest object is used to exchange data with a server behind the scenes.
Using XMLHttpRequest object you can:
Update a web page without reloading the page
Request data from a server after the page has loaded
Receive data from a server after the page has loaded
Send data to a server in the background

Create an XMLHttpRequest Object
All modern browsers (IE7+, Firefox, Chrome, Safari, and Opera) have a built-in XMLHttpRequest object.
Syntax for creating an XMLHttpRequest object:
xmlhttp=new XMLHttpRequest();
Old versions of Internet Explorer (IE5 and IE6) use an ActiveX Objects
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");

XML Parser
All modern browsers have a built-in XML parser.
An XML parser converts an XML document into an XML DOM object - which can then be manipulated with JavaScript.
The following code fragment parses an XML document into an XML DOM object:
if (window.XMLHttpRequest)
  {
  xmlhttp=new XMLHttpRequest();
  }
xmlhttp.open("GET","books.xml",false);
xmlhttp.send();
xmlDoc=xmlhttp.responseXML;

XML DOM
The XML DOM defines a standard way for accessing and manipulating XML documents.
The XML DOM views an XML document as a tree-structure.
All elements can be accessed through the DOM tree. Their content (text and attributes) can be modified or deleted, and new elements can be created. The elements, their text, and their attributes are all known as nodes.

Example
Create a XML file with filename: “myxml.xml”
<?xml version="1.0" ?>
<LGCI>
<BBA>
<ID>11</ID>
<Name>Ram Gurung</Name>
<Address>Pokhara</Address>
</BBA>
<BBA>
<ID>22</ID>
<Name>Bibek Shrestha</Name>
<Address>Lekhnath</Address>
</BBA>
</LGCI>

Create a HTML file with filename: “XMLtoHTML.xml”
<html>
<body>
<script>
if(window.XMLHttpRequest)
{
xmlhttp = new XMLHttpRequest();
}
xmlhttp.open("GET", "myxml.xml", false);
xmlhttp.send();
xmlDoc = xmlhttp.responseXML;
var x = xmlDoc.getElementsByTagName("BBA");
for(i=0;i<x.length;i++)
{
document.write(x[i].getElementsByTagName("ID")[0].childNodes[0].nodeValue);
document.write(x[i].getElementsByTagName("Name")[0].childNodes[0].nodeValue);
document.write(x[i].getElementsByTagName("AddrFess")[0].childNodes[0].nodeValue);
}
</script>
</body>
</html>


Contact Form

Name

Email *

Message *