Wednesday, June 07, 2006

Basic study with html

Do You Want to Try It?

If you are running Windows, start Notepad.

If you are on a Mac start SimpleText.

In OSX start TextEdit and change the following preferences: Select (in the preferences window) "Plain text" instead of "Rich text" and then select "Ignore rich text commands in HTML files". This is very important because if you don't do this HTML codes probably won't work.

Type in the following text:



< html >
< head >
< title >Title of page< /title >
< /head >
< body >
This is my first homepage. < b >This text is bold< /b >
< /body >
< /html >

Title of page

Title Save the file as "mypage.htm".

Start your Internet browser. Select "Open" (or "Open Page") in the File menu of your browser. A dialog box will appear. Select "Browse" (or "Choose File") and locate the HTML file you just created - "mypage.htm" - select it and click "Open". Now you should see an address in the dialog box, for example "C:\MyDocuments\mypage.htm". Click OK, and the browser will display the page.

Example Explained

The first tag in your HTML document is . This tag tells your browser that this is the start of an HTML document. The last tag in your document is . This tag tells your browser that this is the end of the HTML document.

The text between the tag and the tag is header information. Header information is not displayed in the browser window.

tags is the title of your document. The title is displayed in your browser's caption.The text between the

The text between the tags is the text that will be displayed in your browser.

The text between the and tags will be displayed in a bold font.

Tuesday, June 06, 2006

Create Flash Animation


Animating in Flash

Animation in Flash is easy! Let's look at a couple of different ways to achieve animation in Flash.

We built tweens in the “Button and Symbols making" tutorial, but let's do a quick review.

Shape Tween

* Draw a shape at frame 1.
(Try a simple shape, like a heart.)
* Insert a blank keyframe at frame 30 in the Timeline. Draw another shape (like a star) in a different color at frame 30. The two shapes should be on the same layer. Click on the area between the two frames in the Timeline. The area will turn black.

Shape Tweening Heart
Shape Tweening Star

* Now, open the Frames panel and choose Shape Tween. A light green bar with a solid arrow will appear between the two frames. When you scrub back and forth in the Timeline, the heart morphs to the star, and changes color.
* See Example 6 in the Flash Examples section of this tutorial for a finished product.


Motion Tween

* Create a symbol or pull one out of the Library onto a new layer on frame 1.
* Insert a keyframe at frame 30. This will keep the symbol on frame 30.
* Modify the symbol by changing the position, scale, rotation, and alpha. (Use the Effects panel for the alpha). Select the area between the frames on the timeline and it will turn black.
* Open the Frames Panel and choose Motion Tween. A light blue bar with a solid arrow will appear between the two frames. When you scrub back and forth in the Timeline, the symbol will move, scale, rotate and the alpha will change.
* Motion Tween has other options. You can choose the direction of the rotation from the pull-down menu in the Frames Panel and have the tween automatically rotate the object the number of times you specify.
* See Example 7 in the Flash Examples section of this tutorial for a finished product.

Animations can be reused. For example, let's say you create an animation in a movie symbol of a bouncing ball. You could pull that ball out of the Library as many times as your computer can handle. You can put them all on independent layers, animate the position, scale, tint, alpha, etc.

Animating along a Path

Let's say you want a small airplane to follow a path from the ground up to the clouds.

* Create a movie symbol of a little airplane with an animated propeller.
* Drag the symbol out onto the stage. You may want to add a runway and some clouds in the sky to make your animation more complete.
* Select the airplane layer and from the Insert menu, choose Timeline > Motion Guide. This creates a new layer called a Guide Layer on top of the airplane layer.
* Insert another keyframe in the Guide:airplane layer at the point where you want the motion to stop.
* Using the Pencil tool, draw a curve that you want the airplane to follow from the runway to the clouds. (It won't show up in the movie)
* Select the first keyframe in the airplane layer. Select the Arrow tool and move the airplane to the beginning of the curve.
* Now select the last keyframe. Move the airplane along the curve to the end of the curve.
* Double-click the first keyframe to open the Frame panel. Choose Motion from the Tweening menu and check Snap (snaps the registration point to the path).
* Scrub along the Timeline, and the airplane will follow the curve from first to last frame. When you publish, the plane's propellers will move. (Movie animations do not display in Flash on the stage.)
* See Example 8 in the Flash Examples section of this tutorial for a finished product.

Frame by Frame Animation

This is the most file-size intensive method, but sometimes it's the only way to get the effect you want.You can turn on a nifty feature called Onion Skinning to see surrounding frames so you can more accurately draw your frame.

Onion Skin Icon

Exercise:

* In frame one, draw a smiley face but with no mouth. (We'll add it in a minute.)
* In frame four or five, from the Insert menu, choose Keyframe. This copies the smiley face from frame one through frame four or five.

* Insert a new layer above the smiley face layer. You can call it "mouth."
* Draw the smiley mouth on the smiley face.
* Click on the Onion Skin icon from the options under the Timeline. You will see a faded version of the first frame.
* In frame two, draw another mouth on top of the faded version of frame one. Make the curve of the mouth a little straighter.

Smiley Face Animation

* Continue to do this for another few frames.
* Turn off the Onion Skin button.
* Now scrub through your animation. The smiley face loses its smile… oh, too bad!
* See Example 9 in the Flash Examples section of this tutorial for a finished product.

Monday, June 05, 2006

Intel exec: Apple pushing us in new directions

June 05, 2006 (IDG News Service) -- One year after Apple Computer Inc. announced plans to use Intel Corp. processors in its computers, Apple is pushing the world's largest chip maker into new directions, a top executive said today.

"They push us to think about things that we may not always think about," said Anand Chandrasekher, senior vice president and general manager of Intel's sales and marketing group. "We were hoping for that to happen and that certainly happened."

Apple's view of how the computer market will evolve has influenced Intel's product roadmap, Chandrasekher said. That impact will be felt over the long term, rather than showing up soon, he said.

Chandrasekher declined to give specific examples of how Apple had influenced the roadmap. His comments came during the Computex show, which runs through Saturday.

One area of importance to Apple is heat dissipation. Intel's ability to deliver mobile chips that consume less power while offering better performance was one of the reasons that convinced Apple to make the switch from IBM Corp.'s rival PowerPC chips.

Prior to that decision, IBM Corp. and Freescale Semiconductor Inc., which also supplied PowerPC chips to Apple, had been unable to produce more powerful mobile processors that met the computer maker's heat requirements. As a result, Apple could not refresh its product line with faster and more powerful notebook PC models, creating an opportunity for Intel.

Apple's demand for processors that produce less heat has been felt at Intel. "You can anticipate that they probably pushed us on packaging and thermals and things like that," Chandrasekher said.

On Tuesday, Intel is expected to announce several additions to its processor line that promise better performance and lower power consumption.

Sun, Microsoft eye high-performance computing, AJAX

June 05, 2006 (InfoWorld) -- Sun Microsystems and Microsoft are progressing with programming language research efforts aiming at high-performance computing (HPC) and AJAX (Asynchronous JavaScript and XML), respectively.

With its Fortress language, Sun researchers are developing a general purpose language intended for HPC applications such as weather simulation or large-scale enterprise-level transactional applications. Fortress will be offered to the community at large via an open-source format, although plans on exactly when and how that will be done still are undetermined.

Fortress attempts to overcome current HPC programming issues with Fortran and C++, said Eric Allen, principal investigator in the programming languages research group at Sun. These languages suffer from ill-defined semantics that cause bit-level compatibility problems and are unsafe, requiring programmers to often focus on insidious bugs, said Allen, who spoke during an "Open House" event at Sun offices in Menlo Park, Calif.

"Currently, high-performance computing is dominated by two languages: Fortran, and C++. Unfortunately, both of these languages are ill-suited for the task," Allen said.

He said the languages also have no provisions for concurrency, which must be graphed on top of them and can cause conflicts with syntax.

"What's the result? We see programs that are often unnecessarily long, there are errors that are even difficult to detect, much less diagnose, and hardware parallelism is often difficult to exploit," Allen said.

With Fortress, Sun researchers want to change how high-performance computing is done and allow scientists to program more closely to their own domain, he added. Goals include allowing for abstraction and reuse without overhead, making errors easier to correct and detect and making it easier for parallelism and distribution.

"The most important thing to know about Fortress is that it is parallel. In fact, it's really parallel," said Allen.

Although Fortress follows in the footsteps of Java in the area of syntax, it is a separate language, one that has been in development for three years.

"Our strategy with Fortress is to foster community development by establishing a series of open-source projects for the language," and seeding them with initial code and contributing extensions, Allen said.

At Microsoft, Nikhil Kothari, an architect on that firm's "Atlas" team, is working in his spare time on a project called Script#, which enables developers to more easily leverage C# skills to build JavaScript, according to Microsoft. Atlas is a framework for building rich Web applications on top of ASP.Net 2.0; it is planned for inclusion in the upcoming "Orcas" release of the Visual Studio development tools platform.

Pronounced "script sharp," Script# brings the C# developer experience, including programming and tooling, to the JavaScript and AJAX world, according to a Microsoft representative.

"As Microsoft began to build Atlas, we explored a number of different approaches for creating a state-of-the-art experience for building AJAX-enabled Web applications. Script# is a prototype of one such exploration," Microsoft said in a prepared statement.

A Script# compiler and a sample became available on Kothari's blog on May 22.

At this time, however, there are no plans make Script# an officially supported Microsoft product. But the company continues to look for ways to improve the quality of its developer platform to enable the development of compelling Web experiences, Microsoft said.

Red Hat Halts Development of App Server

June 05, 2006 (Computerworld) -- NASHVILLE -- At its annual Summit user conference here last week, Red Hat Inc. disclosed plans to halt development of its Red Hat Application Server (RHAS).

The move had been anticipated since Red Hat in mid-April announced plans to buy open-source application server provider JBoss Inc. for about $420 million.

The company will support RHAS users over the life of their contracts, which span one year, it said.

Aaron Darcy, director of global strategic services, declined to disclose the number of RHAS users, but he said that they won't be rushed to migrate to JBoss. RHAS is based on the Jonas J2EE application server from the open-source ObjectWeb Consortium.

Raleigh, N.C.-based Red Hat also announced at the conference plans to create a community called 108 for developers seeking collaboration from open-source developers or guidance from Red Hat engineers. The company also said it will provide two internally developed testing tools to the open-source community and that it is revising the shipment schedule for Red Hat Enterprise Linux (RHEL).

Red Hat said the developer Web site, www.108.redhat.com, will be similar to rival Microsoft Corp.'s MSDN Web site for Windows developers. Although the site will host open-source code and projects, it doesn't directly compete with the Open Source Technology Group's SourceForge Web site, said Todd Barr, director of enterprise marketing. A Useful Tool

Kevin Fox, a programmer and analyst at The Sherwin-Williams Co., said the mysteriously monikered 108 -- Red Hat executives declined to reveal the origins of the site's name -- should help him plan future rollouts of Red Hat.

"I don't have a crystal ball," he said. "I want to better know what features are going to be stable."

The $7 billion Cleveland-based paint manufacturer runs its Oracle databases and supervisory control and data acquisition applications on Red Hat Linux.

Red Hat officials outlined plans to release the company's internal tool, called Dogtail, for testing graphical interfaces, along with a suite of tools for testing nongraphical applications.

One Red Hat user who works at a Mississippi bank said his development team would welcome the availability of open-source automated testing tools for Linux applications. "We're mostly a Windows shop, including our quality assurance team," said the user, who asked that he and his employer not be identified. "If they have to test a Linux system, they don't know what they're doing."

Both applications, which Red Hat uses internally to ensure that third-party applications run on its Linux distribution, will be available under the General Public License, said Jay Turner, quality engineering manager at Red Hat.

Red Hat also disclosed plans to lengthen its release schedule for major versions of and updates to its Linux operating system. "We're slowing things down to cover customers who don't want to change so often," said enterprise marketing manager Nick Carr.

For instance, starting with RHEL 5's expected release in December, major versions will come out about every two years instead of the prior 18-month intervals, Carr said.

Red Hat will release a beta of RHEL 5, which adds virtualization capabilities, to a limited set of partners and customers at the end of July, and a public beta in mid-September.