Showing posts with label Programming. Show all posts
Showing posts with label Programming. Show all posts

Friday, 1 February 2013

How to restart your computer, C restart

#define B_ADR (0xFFFF0000UL)// You point it at memory location 0xFFFF0000 which is where the cold boot function is located

#define R_ADR (0x00400072UL)

#define C_BOOT (0)
#define W_BOOT (1)
void Restart( int type )
void ((far *fp)()) = (void (far *)()) B_ADR;
if ( type==C_BOOT )
*(unsigned int far *) R_ADR = 0;
*(unsigned int far *) R_ADR = 0x1234;
(*fp)( );

Sample programs in c

Simple c programs


long Fact ( int n )
if ( n>0 )
return( n * Fact (n-1) ); //recursion
return( 1 );

2) GCD
int GCD( int x, int y ) {
if ( x>=y AND x%y==0 )
return( y );
else if ( x
return( GCD( y, x ) );
return( GCD( y, x%y ) );

Tuesday, 22 January 2013

What Are The Basics Of Web Design?

Web design uses almost all those elements as used in print design. One requires exploring layout and space, manage colours and fonts, and arrange it all together in a format in order to put all the intended messages across. Those resources will enable one know details of web design even if one is a professional web developer or just on one�s beginning stage leading to the web arena.

Understanding of Designing Elements:

One must know that a good web design is equivalent to the good design. If anyone has the right understanding about the elements that appropriately suits with a good design, then one will undoubtedly have a Web page that works well. One applies those elements of good design if and when one is producing a web page, a business card, or a raiment logo, and once one makes out them and their necessities and differences, one will acquire the skills and expertise that requires for becoming a great web designer.

Use of Colours:

Colour is present everywhere. With it we make our world up and help ourselves see things from different angles. In short, it is what as we see the things around us and as we dress up our world. The �red� or the �black� is not mere colour; they have meaning beyond their apparent looks. And they have larger important effects on design elements. The pools of colours show influences in their varieties as how they could be used effectively in web designing services.

Application of Web design software:

Create Impressive Website Design with CSS3

Getting creative with CSS3

Mime Types

The mime types is an array  which contains one mime type object for each MIME Type that is defined on computer. Each MimeType object in java script has four properties which are as follows.

  1. description :- It represents the short description of Mime Type
  2. enabledPlugin:- If value of this property is null, it represents no corresponding plugin available. Else it shows reference to particular plugin which handles it.
  3. suffixes:- It is list of of the file name extensions that may be found on files of this Mime type
  4. type:- Actual mime type specification . example text/html, text/css, etc
Below is an example to find ot the available MME types on your computer and check the associated plugin to handle that mime type. Just type this on notepad and watch result on firefox browser

Wednesday, 16 January 2013

XML file

What Can XML Do

What is XML file : collection of  well formed tags , supported by structure definition.
·         You can use XML file as a data store like a database,
·         XML is well suited for large and complex documents because the data are structured                 
      Design the structure and implement it using your own elements to describe the data enclosed in the element. 

Tuesday, 15 January 2013

Javascript, Browser Object Model

Browser Object Model

If you think that JavaScript lives in web browser, you are only partially correct, It is true that web browser is the host for your JavaScript programs, but your programs will never interact directly with the web browser. Instead you will be working with a collection of JavaScript objects that act as an intermediary between your JavaScript and web browser. This collection of objects is called as BOM(Browser Object Model). Its objective is to provide a simple, consistent interface between your javascript programs and the web browser

Programs written for one platform (like the UNIX) won't run on another platform (like windows) without a lot of conversion work. This is because they use very different programming interface to accomplish the same task. Now consider the web browser industry. The JavaScript code you create for Internet explorer should be able to work perfectly on Netscape Navigator. You can even use the code you wrote for Navigator on Linux with Internet Explorer on Macintosh. This is because both browsers support the same programming interface, namely, the Browser Object Model.

Wednesday, 9 January 2013

Java Script on user choice

What javascript can do

  • Generate custom webpages and dynamically alter the appearance of a web page
  • validate the contents of a form 
  • communicate with java applets
  • create custom animation

what is javascript

Saturday, 29 December 2012

HTML CSS Javascript mix Example

The program below the demonstration of HTML 5 style coding with new tags. Here you will find the mix of HTML, CSS and Javascript. Go through the program well, it will help you to learn some new concepts different from traditional css, html programming. Download some code editor like Aptana, php coder, Visual Studio 2010, or any other and paste the code below there. For further clarification of code post comments, Its my pleasure to sought out the problems. Replace &gt with > and &lt with <

Friday, 28 December 2012

Ajax Example

Here is an simple example of Ajax with javascript

script language ="javascript" type ="text/javascript" 

//simplexhr object with three methods

simplexhr = {

// doxhr method
doxhr : function( container, url )

//check for compatibility
if( !document.getElementById || !document.createTextNode)
alert("Not supported");

Thursday, 8 November 2012

Arrays in PHP

Arrays in PHP

Hi everyone was up? One of the very first challenge new users face in their programming carrier is the concept of array. It is the window, from which you have to jump off to enter the programming world. So let’s start by discussing them.
There are three different types of arrays:
Numeric array – Normal arrays which start at index zero.
Associative array - An array where each ID key is associated with a value
Multidimensional array - An array containing one or more arrays

Monday, 5 November 2012