Sunday, September 20, 2009

ActionScriptCode for reversing a String

function reverseString(str) {      var sTmp = "";      for (var i = str.length - 1; i >= 0; i--) sTmp+= str.charAt(i);      return sTmp; }

Google's Desktop OS

In case you haven't noticed, Google now has its well-funded mitts on just about every aspect of computing. From Web browsers to cell phones, soon you'll be able to spend all day in the Googleverse and never have to leave. Will Google make the jump to building its own PC operating system next?
What is it? It's everything, or so it seems. Google Checkout provides an alternative to PayPal. Street View is well on its way to taking a picture of every house on every street in the United States. And the fun is just starting: Google's early-beta Chrome browser earned a 1 percent market share in the first 24 hours of its existence. Android, Google's cell phone operating system, is hitting handsets as you read this, becoming the first credible challenger to the iPhone among sophisticated customers.
When is it coming? Though Google seems to have covered everything, many observers believe that logically it will next attempt to attack one very big part of the software market: the operating system.
The Chrome browser is the first toe Google has dipped into these waters. While a browser is how users interact with most of Google's products, making the underlying operating system somewhat irrelevant, Chrome nevertheless needs an OS to operate.
To make Microsoft irrelevant, though, Google would have to work its way through a minefield of device drivers, and even then the result wouldn't be a good solution for people who have specialized application needs, particularly most business users. But a simple Google OS--perhaps one that's basically a customized Linux distribution--combined with cheap hardware could be something that changes the PC landscape in ways that smaller players who have toyed with open-source OSs so far haven't been quite able to do.
Check back in 2011, and take a look at the not-affiliated-with-Google gOS, thinkgos in the meantime.

Window's 7

Whether you love Vista or hate it, the current Windows will soon go to that great digital graveyard in the sky. After the tepid reception Vista received, Microsoft is putting a rush on Vista's follow-up, known currently as Windows 7.
What is it? At this point Windows 7 seems to be the OS that Microsoft wanted to release as Vista, but lacked the time or resources to complete. Besides continuing refinements to the security system of the OS and to its look and feel, Windows 7 may finally bring to fruition the long-rumored database-like WinFS file system. Performance and compatibility improvements over Vista are also expected.
But the main thrust of Windows 7 is likely to be enhanced online integration and more cloud computing features--look for Microsoft to tie its growing Windows Live services into the OS more strongly than ever. Before his retirement as Microsoft's chairman, Bill Gates suggested that a so-called pervasive desktop would be a focus of Windows 7, giving users a way to take all their data, desktop settings, bookmarks, and the like from one computer to another--presumably as long as all those computers were running Windows 7.
When is it coming? Microsoft has set a target date of January 2010 for the release of Windows 7, and the official date hasn't slipped yet. However, rumor has the first official beta coming out before the end of this year.

Your PC Software

The Future of Your PC's Software

64-Bit Computing Allows for More RAM
In 1986, Intel introduced its first 32-bit CPU. It wasn't until 1993 that the first fully 32-bit Windows OS--Windows NT 3.1--followed, officially ending the 16-bit era. Now 64-bit processors have become the norm in desktops and notebooks, though Microsoft still won't commit to an all-64-bit Windows. But it can't live in the 32-bit world forever.
What is it? 64-bit versions of Windows have been around since Windows XP, and 64-bit CPUs have been with us even longer. In fact, virtually every computer sold today has a 64-bit processor under the hood. At some point Microsoft will have to jettison 32-bit altogether, as it did with 16-bit when it launched Windows NT, if it wants to induce consumers (and third-party hardware and software developers) to upgrade. That isn't likely with Windows 7: The upcoming OS is already being demoed in 32-bit and 64-bit versions. But limitations in 32-bit's addressing structure will eventually force everyone's hand; it's already a problem for 32-bit Vista users, who have found that the OS won't access more than about 3GB of RAM because it simply doesn't have the bits to access additional memory.
When is it coming? Expect to see the shift toward 64-bit accelerate with Windows 7; Microsoft will likely switch over to 64-bit exclusively with Windows 8. That'll be 2013 at the earliest. Meanwhile, Mac OS X Leopard is already 64-bit, and some hardware manufacturers are currently trying to transition customers to 64-bit versions of Windows (Samsung says it will push its entire PC line to 64-bit in early 2009). And what about 128-bit computing, which would represent the next big jump? Let's tackle one sea change at a time--and prepare for that move around 2025.

Saturday, September 19, 2009

JavaServerPages

JavaServer Pages (JSP) technology provides a simplified, fast way to create dynamic web content. JSP technology enables rapid development of web-based applications that are server- and platform-independent.  » Read More
The JSP Standard Tag Library (JSTL) is a collection of tag libraries that implement general-purpose functionality common to many Web applications.
 
JSP Technology in the Java EE 5 Platform
The focus of Java EE 5 has been ease of development by making use of Java language annotations that were introduced by J2SE 5.0. JSP 2.1 supports this goal by defining annotations for dependency injection on JSP tag handlers and context listeners.
Another key concern of the Java EE 5 specification has been the alignment of its webtier technologies, namely JavaServer Pages (JSP), JavaServer Faces (JSF), and JavaServer Pages Standard Tag Library (JSTL).
The outcome of this alignment effort has been the Unified Expression Language (EL), which integrates the expression languages defined by JSP 2.0 and JSF 1.1.
The main key additions to the Unified EL that came out of tbe alignment work have been:
  • A pluggable API for resolving variable references into Java objects and for resolving the properties applied to these Java objects,
  • Support for deferred expressions, which may be evaluated by a tag handler when needed, unlike their regular expression counterparts, which get evaluated immediately when a page is executed and rendered, and
  • Support for lvalue expression, which appear on the left hand side of an assignment operation. When used as an lvalue, an EL expression represents a reference to a data structure, for example: a JavaBeans property, that is assigned some user input.
The new Unified EL is defined in its own specification document, which is delivered along with the JSP 2.1 specification.
Thanks to the Unified EL, JSTL tags, such as the JSTL iteration tags, can now be used with JSF components in an intuitive way.
JSP 2.1 leverages the Servlet 2.5 specification for its web semantics.

What's New
 
 
Maintenance Review on JavaServer Pages JSR 245. There are two sets of changes

Follow JSP development (API and implementation) at https://jsp.dev.java.net a sub-project of GlassFish project. Get the latest source or binaries there.

Follow EL development (API and implementation) at https://uel.dev.java.net a sub-project of GlassFish project. Get the latest source or binaries there.
 

Final Release of JavaServer Pages Specification Download the final release of the JavaServer Pages Specification, version 2.1. This version of JavaServer Pages technology is part of the Java EE platform.
 

Web Tier to Go With Java EE 5: A Look at Resource Injection Read about the support for annotations by Java web tier technologies and how they can simplify access to resources, environment data, and life-cycle control.
 

What's New in JSP Technology 2.1 In this first article in the Web Tier to Go with Java EE 5 series, we discuss the major contributions of JavaServer Pages technology version 2.1 to the Java EE platform.
 

Learn about the New Unified Expression Language! Read about the new unified expression language and what it offers all web-tier Java technologies. Also, see a demo that illustrates the capabilities of this powerful, yet easy-to-use expression language.
» Read more
 
Community
 
 
To learn about webtier technologies in GlassFish please visit the GlassFish Webtier page and post questions on GlassFish Webtier forum or send e-mail to webtier@glassfish.dev.java.net

JavaServer Pages Developers! The JavaServer Pages Technology Forum is a great place to learn more about developing with JSP technology.
 
Events
Sun Tech Days - Advance your development skills with in-depth technical training.
Topics include Java EE, Java SE, Java ME, Tools, Solaris, Cool Stuff, plus bonus NetBeans Day and OpenSolaris Day. Attend in a city near you.   » Read More
Subscribe to Newsletters

Flash

Flash is a vector animation software, originally designed to create animations for display on web pages. Vector graphics are ideal for the web because they are so lightweight.

Over the releases of new versions of Flash, Macromedia has made Flash more and more controllable via programming, where they have it positioned as a competitor to HTML to build interactive web sites and applications such as an e-commerce store. Macromedia argues that Flash is the way to go instead of HTML because of the following reasons:
  • Flash movies load faster and save on download time because Flash is vector based whereas HTML is not.
  • Flash intelligently ‘caches’ it’s movies so they don’t have to be reloaded.
  • Flash gives the user (the person viewing/using the Flash movie) a more responsive ‘rich-client’ like experience.
All of these points are true, but they can be true for HTML pages as well (except for the vectors). I will address these points now:
Flash pages can be made to load faster, but most of the time, the way they are designed in the real world, they do not. That is not a Flash problem, it is more an issue of the Flash developers going nuts with fancy and heavy Flash movies.
HTML caches pages as well, once images are downloaded they are held in your browser's cache. The cached images are then used instead of downloading them from the server again.
With new technology like ASP.net and Java Server Faces, HTML now can react just like a ‘rich-client’ application. Even without these new tools, properly designed HTML for most dynamic sites can provide a good user experience.

What DO I have against Flash?

Before I start trashing Flash, I have to first say that I think it is a great tool, but not in all things and certainly not in the all-encompassing way that Macromedia would suggest. Here’s why:
Flash handles text very poorly. The web for the most part is about text, we go to the web to read about things, whether it be articles like this one, or what is in your shopping cart, or the latest baseball stats, it is all text.
Flash text rendering/displaying is much slower than HTML and noticeably less clear. Macromedia knows this and that’s why they include the ability to display basic HTML in Flash and that’s why on their own site, they make heavy use of  HTML.
Flash development usually takes much longer than the HTML equivalent. This has been helped to a great degree starting with the release of FLASH MX where they essential provided HTML form components, but it is still slower to create a Flash site than an HTML site.

What I like about Flash development?

1. You can do some really nice work in Flash that would be difficult and sometimes impossible in HTML alone. Things like complex animations and playing video spring to mind.
2. Practically no browser issues: For the most part, Flash movies will work the same if the user is on Netscape or IE, on Mac or PC. The browser issues (where people coming to your site have different browsers that can ‘break’ your pages) are quickly becoming a thing of the past since most people (thank the web gods) are using IE. But even today, I still have to deal with people who may be using some old browser that can break all but the simplest of HTML code.

So when should you use Flash?

In my humble opinion, I would use Flash to create a presentation that is similar to a television commercial. This type of presentation is something where the user sits back and enjoys the show as the Flash movie delivers the message to the client with animation, sound, and possibly video. Please do not get this confused with those ubiquitous ‘intro’ animations that still plague many Flash sites. Rather I am talking about informative movies that the user can decide to view to learn about something like a product or a service.
I can also see Flash being used in straight animations, like what your kids watch Saturday morning. One last use where I find Flash handy, is with so called ‘rich-ui’ components like calendars or fancy navigational systems. The only danger here is that if the user doesn't have the proper Flash plug-in, they won't be able to use those components and as such in many cases (like with a Flash based navigation bar) the user will not be able to use your web site!
Instead of Macromedia’s vision, I see Flash being used selectively to enhance an HTML based site.

Flex

I heartily welcome all the Computer Science Students to explore a new way to create an excellent front-end using the Adobe's most popular tool flex.
I welcome u to post any queries related to the use of the software or in writing a code.

Create engaging, cross-platform rich Internet applications

Flex is a highly productive, free open source framework for building and maintaining expressive web applications that deploy consistently on all major browsers, desktops, and operating systems. While Flex applications can be built using only the free open source framework, developers can use Adobe® Flex® Builder™ software to dramatically accelerate development.

Introduction

This question was asked of the panel: How can CS be made a more attractive choice for students? One panelist answered that he thought social relevance played a big part in attracting minorities to computer science. Other things, such as law and medicine have a bigger perceived social impact than computer science. Interpretation: computer science is boring and has no social relevance. I beg to differ.