Archive for the 'Software Development' Category

iPad Programming Guide

The introduction of iPad creates new opportunities for application development using iOS. Because it runs iOS, an iPad is capable of running all of the same applications already being written for iPhone and iPod touch. However, the larger screen size of iPad also means that there are now new opportunities for you to create applications that go beyond what you might have done previously.

This document introduces the new features available for iPad and shows you how to use those features in your applications. However, just because a feature is available does not mean that you have to use it. As a result, this document also provides guidance about when and how you might want to use any new features in order to help you create compelling applications for your users.

Safari HTML5 Audio and Video Guide – Audio, Video, & Visual Effects

Audio and Video HTML

In its simplest form, the <audio> and <video> tags require only a src attribute to identify the media, although you generally want to set the controls attribute as well, so the user can play and pause the media. The browser allocates space, provides a default controller, loads the media, and plays it when the user clicks the play button. It’s all automatic. There are optional attributes as well, such as autoplay, loop, height, and width.

Device-Specific Considerations

There are a handful of device-specific considerations you should be aware of when embedding audio and video using HTML5.

Java A Tutorial for Migration from C++

What is Java?

  • An object-oriented programming language that runs on a Java Virtual Machine (JVM). A JVM is a program that interprets the Java language, JVM’s for different operating systems all interpret Java in the same way…
  • Java is platform independent. e.g. Write code on Windows, Run on Linux. In practice, C++ is platform dependent e.g. Write code on Windows, Change (break) code to work with Linux, Run on Linux (now have 2 versions!)
  • Java was designed for a networked world. Java applets for the web; Execute code remotely

Classes
Similarities to C++:

  • Constructors
  • Member variables and methods
  • Access modifiers (public, private, protected)
  • Note: Slight differences within all of the above

Differences:

  • No copy constructors
  • No destructors (finalizer is equiv. but rarely needed)
  • File structure: Each public class must be in a file named after that class, No separation of declaration and definition (no header files)

Object-Oriented Programming using Java

Chapter 1 – Introduction to Objects

OBJECT-ORIENTED PROGRAMMING (OOP) represents an attempt to make programs more closely model the way people think about and deal with the world. In the older styles of programming, a programmer who is faced with some problem must identify a computing task that needs to be performed in order to solve the problem. Programming then consists of finding a sequence of instructions that will accomplish that task. But at the heart of object-oriented programming, instead of tasks we find objects – entities that have behaviors, that hold information, and that can interact with one another. Programming consists of designing a set of objects that model the problem at hand. Software objects in the program can represent real or abstract entities in the problem domain. This is supposed to make the design of the program more natural and hence easier to get right and easier to understand.

Programming Windows Phone 7 Series

Chapter 1 Phone Hardware + Your Software

Sometimes it becomes apparent that previous approaches to a problem haven’t quite worked the way you anticipated. Perhaps you just need to clear away the smoky residue of the past, take a deep breath, and try again with a new attitude and fresh ideas. In golf, it’s known as a “mulligan”; in schoolyard sports, it’s called a “do-over”; and in the computer industry, we say it’s a “reboot.”

A reboot is what Microsoft has initiated with its new approach to the mobile phone market. On February 15, 2010, at the Mobile World Congress in Barcelona, Microsoft CEO Steve Ballmer unveiled the Microsoft Windows Phone 7 Series and promised a product introduction in time for year-end holiday shopping. With its clean look, striking fonts, and new organizational paradigms, Windows Phone 7 Series not only represents a break with the Windows Mobile past but also differentiates itself from other smartphones currently in the market.

Fortran Programming Guide

This guide presents the essential information programmers need to develop efficient applications using the Sun WorkShop™ Fortran compilers, f77 (Fortran 77) and f95 (Fortran 95). It presents issues relating to input/output, program development, use and creation of software libraries, program analysis and debugging, numerical accuracy, porting, performance, optimization, parallelization, and the C/Fortran interface.

This guide is intended for scientists, engineers, and programmers who have a working knowledge of the Fortran language and wish to learn how to use the Sun Fortran compilers effectively. Familiarity with the Solaris operating environment or UNIX® in general is also assumed.

The companion Fortran User’s Guide describes the compile-time environment and command-line options for the Sun WorkShop™ 6 Fortran compilers: f77 (FORTRAN 77) and f95 (Fortran 95).

Other Fortran manuals in this collection include the Fortran Library Reference, and the FORTRAN 77 Language Reference. See “Accessing Related Documentation” on page 6.