Thursday, April 19, 2007

Data Type Conversion in Java

We have all done and still do datatype conversions (eg:from char to int) all the time.Well most of the time in C and C++ the datatype conversions work out very well seldom causing any problems..
But when it comes to data type conversion in Java it works in a different way..Take an instance ..You want to read file in C and in Java..The data is read in form of bytes and later we convert it to int or char using type conversions..This is where the difference between C and java surfaces..When we convert the 8bit byte to (say) 32 bit int ;in C the remaining positions in the byte excluding the original 8bits are replaced by zeros..But if we do the same conversion in Java the remaining bit positions are replaced by FF..The catch is when we want the read byte (which is effectively the last 8 bits) of this int for another calculation, then in C we can use it directly..However when this is done in Java we have to mask the remaining bits with 0xFF if we don't want to end up with a negative value.. In other words whenever we do a type conversion in Java from a lower size datatype to a upper sized one Java fills all the remaining bit locations with FF and not zeros as in C...hope this is of some help to u guyz


Wednesday, April 18, 2007

HOW TO CREATE A WEBSITE FOR FREE?

There are many free domains for hosting a website of your own. Blogger is the most famous of all and it takes hardly 5 minutes to build a new website. Even for a beginner it’s really an easy job. This is how it is done

1. SIGNUP

  1. Go to www.blogger.com
  2. Click on “CREATE YOUR BLOG NOW"
We will be directed to this window
  1. Fill up with a valid email id Example: yourname@gmail.com
  2. Create a password for your new account and retype the password
  3. Display name: This will be the name shown in the website each time you post some thing it will shown as written by “Display name”
  4. Word Verification is to avoid spamming. This picture shown will be different for different sign up. So fill space with the characters in the picture
  5. Check the Terms of Service after reading it.
So now you are signed in ……….. Great JOB mate

2. Now its time select the title for your website

a. Enter the blog title this will be shown as the heading of the Blog
Example: HOMEPAGE
b.Now enter the address you need for your Example: yourrname4u
Then click Check Availability.
If the address you enter is not taken then it will display Blogname is available
Else try for different address
c. This click “CONTINUE”
Yoo-hoo! Now your website is ready for posting with one small step…..


3. Choose a template of your choice for the website
and click continue

This template can be changed in a later stage or you can change it with your own ideas after setting up this website.
If every is done in the right manner then you have

So now you have the website.
Take a new browser type the address www.yourrname4u.blogspot.com
If “yourrname4u” was address of your choice

Now to start posting into the website click START POSTING

You will be directed to a window show below


    1. In the place of title enter the heading of the content your about to post
    2. Below that in the content of the post. As you should have noticed there are all kinds of options for editing tools like bold,italics.
    3. After that Preview of the post will be shown by clicking Preview
    4. By clicking PUBLISH options the post will be publishing on your site.

An Example


A post once posted can be edited by taking Edit Post

Internet SHUTDOWN Count down begins now.....

From www.dailygrail.com

Researchers say the time has come to rethink the Internet's underlying architecture are exploring tearing the Internet apart and rebuilding it to better address security and mobility

THE BEGINNING OF END

After four decades of building the Internet, some university researchers with the U.S. government's blessing want to shutdown all and start over.

The idea is surely unthinkable, but many believe a "clean slate" approach is the only way to truly address security, mobility and other challenges that have cropped up since Leonard Kleinrock helped supervise the first exchange of meaningless test data between two machines on Sept. 2, 1969.

The Internet works well in many situations but it was designed for completely different assumptions, a Rutgers University professor overseeing three clean-slate projects. "It's sort of a miracle that it continues to work well today."

No longer constrained by slow connections and computer processors and high costs for storage, researchers say the time has come to rethink the Internet's underlying architecture, a move that could mean replacing networking equipment and rewriting software on computers to better channel future traffic over the existing pipes.

Even Vinton Cerf, one of the Internet's founding fathers as co-developer of the key communications techniques, said the exercise was "generally healthy" because the current technology "does not satisfy all needs."

EXPERIMENTS

The National Science Foundation wants to build an experimental research network known as the Global Environment for Network Innovations, or GENI, and is funding several projects at universities and elsewhere through Future Internet Network Design, or FIND.Rutgers, Stanford, Princeton, Carnegie Mellon and the Massachusetts Institute of Technology are among the universities pursuing individual projects. Other government agencies, including the Defense Department, have also been exploring the concept.The European Union has also backed research on such initiatives, through a program known as Future Internet Research and Experimentation, or FIRE. Government officials and researchers met last month in Zurich to discuss early findings and goals.

A new network could run parallel with the current Internet and eventually replace it, or perhaps aspects of the research could go into a major overhaul of the existing architecture.These clean-slate efforts are still in their early stages, though, and aren't expected to bear fruit for another 10 or 15 years — assuming Congress comes through with funding.

And it could take billions of dollars to replace all the software and hardware deep in the legacy systems.Clean-slate advocates say the cozy world of researchers in the 1970s and 1980s doesn't necessarily mesh with the realities and needs of the commercial Internet.

THE NEED FOR NEW BEGINNING

The Internet's early architects built the system on the principle of trust. Researchers largely knew one another, so they kept the shared network open and flexible — qualities that proved key to its rapid growth.But spammers and hackers arrived as the network expanded and could roam freely because the Internet doesn't have built-in mechanisms for knowing with certainty who sent what.The network's designers also assumed that computers are in fixed locations and always connected. That's no longer the case with the proliferation of laptops, personal digital assistants and other mobile devices, all hopping from one wireless access point to another, losing their signals here and there.

Engineers tacked on improvements to support mobility and improved security, but researchers say all that adds complexity, reduces performance and, in the case of security, amounts at most to bandages in a high-stakes game of cat and mouse.The Internet will continue to face new challenges as applications require guaranteed transmissions — not the "best effort" approach that works better for e-mail and other tasks with less time sensitivity.

MISSION CRITICAL WORKS

Think of a doctor using teleconferencing to perform a surgery remotely, or a customer of an Internet-based phone service needing to make an emergency call. In such cases, even small delays in relaying data can be deadly.Even if the original designers had the benefit of hindsight, they might not have been able to incorporate these features from the get-go. Computers, for instance, were much slower then, possibly too weak for the computations needed for robust authentication.

Of course, a key question is how to make any transition — and researchers are largely punting for now.

"Let's try to define where we think we should end up, what we think the Internet should look like in 15 years' time, and only then would we decide the path," McKeown said. "We acknowledge it's going to be really hard but I think it will be a mistake to be deterred by that."

Kleinrock, the Internet pioneer at UCLA, questioned the need for a transition at all, but said such efforts are useful for their out-of-the-box thinking.

CLOCK TICKS

"A thing called GENI will almost surely not become the Internet, but pieces of it might fold into the Internet as it advances," he said.

Think evolution, not revolution.Princeton already runs a smaller experimental network called PlanetLab, while Carnegie Mellon has a clean-slate project called 100 x 100.Construction on GENI could start by 2010 and take about five years to complete. Once operational, it should have a decade-long lifespan.FIND, meanwhile, funded about two dozen projects last year and is evaluating a second round of grants for research that could ultimately be tested on GENI.These go beyond projects like Internet2 and National LambdaRail, both of which focus on next-generation needs for speed.

Any redesign may incorporate mechanisms, known as virtualization, for multiple networks to operate over the same pipes, making further transitions much easier. Also possible are new structures for data packets and a replacement of Cerf's TCP/IP communications protocols.

———
Associated Press Business Writer Aoife White in Brussels, Belgium, contributed to this report.
———

Ebook sites

hii friends,,
If you are in search of good Ebooks Plz checkout this site..

www.esnips.com

It contains a vast collection of ebooks ranging across various domains....

Wednesday, April 11, 2007

My PROCESSOR DESIGN

Hi friends,
I tried to design a 16 bit processor in verilog .It is based loosely on the famous 8085 architecture .But since it was a study project complex designs have been omitted to suit a processor that performs all the basic functions and mathematical operations .But the main point is that it helped me to understand the basic working and functionalities of a processor regarding how an instruction is executed and how the softcode stored in the memory is decrypted into meaningful result...So friends if any body is interested in obtaining the code for study purposes just let me know..I will be happy to help you..You can also help me by sharing your ideas with me...

HELLO MY DEAR FRIENDS

Hi
I am the great sreejith .........

Search

Google