Thursday 8 December 2011

Mommy, Where Did Unix Come From?


Mommy, Where Did Unix Come From?

Sometime in the mid 1960s, a bunch of geeks at AT&T's Bell Labs decided it would be fun to create a new operating system called Multics. (This was no small task, because computers at the time were about the size of a football field and two stories high.) Multics fizzled in 1969 when Bell cut the cord, but some of the geeks continued work on what became known as UNIX; and it became wildly popular inside AT&T.


Since AT&T was not allowed to sell computer software at the time, it gave away UNIX (complete with source code) to any educational institution. AT&T produced new versions of UNIX called System III and System V in the early 1980s, but all the while, geeks at the University of California at Berkeley and other places were busy hacking away on their own versions of Unix based on the AT&T code. Some cross-pollination did occur, but there are still significant differences between the Berkeley (commonly called BSD Unix) and AT&T flavors. In the early 1990s, AT&T sold UNIX to Novell, which was bought by Digital Equipment Corporation, which sold it to SCO (Santa Cruz Operation) in 1995. For the next 15 years, SCO then tried (with little success) to sue just about everyone, claiming that Linux or some variant of UNIX, or a product based on them, violated their copyright and/or licensing terms. SCO now teeters on the edge of bankruptcy, after a court ruled in 2010 that Novell is the owner of the UNIX copyrights. So how does this affect Linux? Much of the legal wrangling was over whether or not snippets of the original UNIX code found their way into Linux, and if so, was it a legal violation of any sort. Novell seems to have put this to rest by stating "We don't believe there is Unix in Linux" and pledging not to sue anyone over UNIX or Linux ownership issues.
Today, there are now lots of Unix variants sold or given away by many different companies and universities. While these various flavors can make it difficult to write portable software, efforts to standardize Unix (two of the more notable ones being POSIX and COSE) offer hope for greater compatibility in the future.
Like any operating system, Unix has some cryptic commands and less-than-intuitive aspects. (Three of the most important Unix commands have the peculiar names cat, grep, and awk .) Either serious hallucinogens or a warped sense of humor came into play at some point in the creation of Unix. I don't let this bother me, though, taking comfort in my favorite platitude: "Unix was written by geeks on drugs." Seriously, though, Unix is really no more difficult to learn than DOS or Windows--it's just different.

 

Can Linux Replace Windows?

Until recently, running Unix meant investing in a powerful workstation that cost megabucks. Linux changes all that, because it's a complete version of the Unix operating system (software that controls the basic functions of the personal computer) that runs on ordinary personal computers. The added fact that it's freely available and "open source" makes it all the more attractive.


Linux is perfect for people who want to operate their own low-cost Internet servers, and it's robust enough to satisfy the needs of many Internet service providers. Linux is a multiuser and multitasking environment, and it can access huge amounts of me mory (gigabytes) and huge amounts of disk storage space (terabytes). Linux offers virtually everything that Windows has been promising for years and may not deliver in a truly stable form for some time to come. Don't make the mistake of assuming that Linux is some kind of watered-down or underpowered Unix for the masses. Linux is Unix. POSIX certification (compliance with the industry standards for Unix) makes it official that Linux can do everything that a Unix system is supposed to do. The only difference is that Linux works on a personal computer, whereas other versions of Unix run on larger workstations or mainframes.
Linux is also being taken very seriously by the computer industry, with new Linux-compatible versions of popular software packages being announced every month. The Apache Web server software running on Linux platforms powers about half of all Web sites today. Even more telling, Microsoft considers Linux a major threat to its Windows empire.

What Is Linux?

In the early 90s, a geek named Linus Torvalds at the University of Helsinki in Finland thought it would be fun to write a Unix kernel from scratch. He called it Linux, and it was cool but pretty much useless without all the utility programs needed to make it a complete operating system. At the same time, Richard Stallman and his pals at the Free Software Foundation were writing a bunch of freeware Unix utilities collectively known as the GNU Project. It was cool but pretty much useless without a kernel to make it a complete operating system. News of Linux spread quickly over the Internet, and many other Unix programmers joined the effort to enhance it. What we now know as Linux is a combination of Torvald's Linux kernel, the GNU Project software, and some other nifty software bit and pieces developed by programmers from all around the world.
Today Linux is a complete and reliable implementation of the Unix operating system, with the following notable features:
  • 32-bit or 64-bit operation (it uses all the speed and power of your CPU)
  • Virtual memory (it can use all of your system's RAM)
  • Full support for X Windows (Unix's standard graphical user interface)
  • TCP/IP networking support (allowing connection to the Internet)
  • GNU software support (including a huge amount of free Unix software from the GNU Project)
Linux was written totally from scratch without using any of the original AT&T UNIX code. (Throughout this site, UNIX refers to the original trademarked UNIX project invented by AT&T. The term Unix is used here as a generic term for other variants of the operating system.)
Because of that (and because the author is a nice guy), Linux is free. You can obtain the source code, modify, sell or give away the software so long as you provide full source code and don't impose any restrictions on what others do with it.

OS


Uh, What's an Operating System?

For a computer to do anything useful, it needs both application software (programs you use) and an operating system (programs the computer uses). The operating system sits between the physical hardware that makes up a computer (the monitor, keyboard, CPU, hard drive, and so forth) and the end-user software that people use to process documents, play games, and all that good stuff.

We commonly think of the CPU as the brain of a computer, but in reality, it can't do much besides crunch numbers and move data around in the computer's memory. The job of the operating system (OS) is twofold:
  • To work with computer hardware to process user requests by
    • interpreting keystrokes from the keyboard,
    • displaying text and images on the screen,
    • storing files on the hard disk,
    • sending documents to a printer,
    • communicating over a modem.
  • To manage the application software's use of memory (RAM) and processor time.
If you've used a multitasking environment like Windows or a multiuser mainframe system, you've seen the concept of "time-slicing" in action. While your computer has only one CPU, which can do only one thing at a time, the OS can make it seem like several people or programs are using the CPU simultaneously. Similarly, even though the real memory (RAM) is shared by all running applications, the OS can make it seem like you have it all at your disposal, all the time, by sharing it between applications--using a technique called paging.
The OS time-slices by giving one user or application exclusive use of the hardware for a brief instant, and then doing the same for the next user or application. On systems with adequate horsepower, this approach works so that you never even know about that little game of round-robin going on behind the scenes. On a wimpy computer or a mainframe with too many users, it's toe-tappin' time for everybody.


win 7 shortcut key's


ASP & JSP question?

Thursday, December 08, 2011

JSP FAQ


. What is JSP ? Describe its concept.
2 . Explain the benefits of JSP?
3. Is JSP technology extensible?
4 .Can we implement an interface in a JSP?
5 What are the advantages of JSP over Servlet?
6. Differences between Servlets and JSP?
7 . Explain the differences between ASP and JSP?
8 . Can I stop JSP execution while in the midst of processing a request?
9. How to Protect JSPs from direct access ?
10. Explain JSP API ?
11. What are the lifecycle phases of a JSP?
12. Explain the life-cycle mehtods in JSP?
13. Difference between _jspService() and other life cycle methods.
14 What is the jspInit() method?
15. What is the _jspService() method?
16. What is the jspDestroy() method?
17. What JSP lifecycle methods can I override?
18. How can I override the jspInit() and jspDestroy() methods within a JSP page?
19 . Explain about translation and execution of Java Server pages?
20 . Why is _jspService() method starting with an '_' while other life cycle methods do not?
21. How to pre-compile JSP?
22. The benefits of pre-compiling a JSP page?
23.How many JSP scripting elements and explain them?
24. What is a Scriptlet?
25. What is a JSP declarative?
26. How can I declare methods within my JSP page?
27. What is the difference b/w variable declared inside a declaration and variable declared in scriplet ?
28.What are the three kinds of comments in JSP and what's the difference between them?
29. What is output comment?
30. What is a Hidden Comment?
31. How is scripting disabled?
32. What are the JSP implicit objects?
33. How does JSP handle run-time exceptions?
34. How can I implement a thread-safe JSP page? What are the advantages and Disadvantages of using it?
35. What is the difference between ServletContext and PageContext?
36 . Is there a way to reference the "this" variable within a JSP page?
37 . Can you make use of a ServletOutputStream object from within a JSP page?
38 .What is the page directive is used to prevent a JSP page from automatically creating a session?
39. What's a better approach for enabling thread-safe servlets and JSPs? SingleThreadModel Interface or Synchronization?
40. What are various attributes Of Page Directive ?
41 . Explain about autoflush?
42. How do you restrict page errors display in the JSP page?
43. What are the different scopes available fos JSPs ?
44. when do use application scope?
45. What are the different scope valiues for the ?
46. How do I use a scriptlet to initialize a newly instantiated bean?
47 . Can a JSP page instantiate a serialized bean?
48.How do we include static files within a jsp page ?
49.In JSPs how many ways are possible to perform inclusion?
50.In which situation we can use static include and dynamic include in JSPs ?
51.Differences between static include directive and include action ?

Difference between ASP & JSP

Difference Between JSP and ASP

asp_bookJSP vs ASP
JSP (Java Server Pages) and ASP (Active Server Pages) are two of the commonly used server side scripting languages that are used today in web development. ASP was created by Microsoft as part of its IIS that provides the user with tools needed to create a web site on his Windows computer. It can be considered as free as ASP itself does not cost money, but the fact that you need Windows means that you are still going to spend money. JSP was created by Sun Microsystems as an extension to Java.
Despite having the same task, JSP and ASP achieves their tasks in different ways. ASP code are interpreted on the fly each time it is accessed while JSP pages can either be interpreted or compiled into a servlet. This means that JSP pages actually takes a little bit longer to load because it needs to be compiled first. But after it has loaded, it would actually perform faster just as long as the code does not require any changes. Once the code changes, it needs to be recompiled which takes longer. In cases where code changes happens very often to the point that the performance deteriorates a lot, the coder can opt to have his pages interpreted on the fly just like ASP with the more or less the same level of performance. JSP coders also have a choice of either compiling into a Java servlet, which are still platform independent, or into the operating system’s native bytecode.
As of today, most web developers are using either JSP or the improved version of ASP called ASP.NET. For people who are using a web server that’s running Microsoft Windows, using ASP or ASP.NET is already a given. Those who use open source software like Linux can choose between a few options that are either free or not. Most people use other open source software like PHP while JSP stands a distant second.
Summary:
1. JSP and ASP are both server side scripting languages
2. JSP is from Sun Microsystems while ASP is from Microsoft
3. ASP costs money while JSP is free.
4. ASP code is interpreted while JSP code is compiled at run time
5. JSP code can run faster than ASP if there are fewer changes
6. Majority of Windows users use ASP while users of open source operating systems like Linux use JSP among others.

Read more: Difference Between JSP and ASP | Difference Between | JSP vs ASP http://www.differencebetween.net/technology/difference-between-jsp-and-asp/#ixzz1fxMnoIl5