PHP 5 Power Programming

Chapter 1, “What Is New in PHP 5?” discusses the new features in PHP 5. Most of these new features deal with new object-oriented features, including small examples for each feature. It also gives an overview of the new extensions in PHP 5. more detail in later chapters.

Chapter 2, “PHP 5 Basic Language,” introduces the PHP syntax to those readers not familiar with PHP. Chapter 3, “PHP 5 OO Language,” continues exploring PHP 5's syntax, focusing on its object-oriented functionality. Using the previous chapter as a foundation,

Chapter 4, “PHP 5 Advanced OOP and Design Patterns,” covers some of the most advanced features of PHP 5’s object model. Chapter 5, “How to Write a Web Application with PHP,” introduces you to the world of writing web applications. The authors show you basics, such as handling input through form variables and safety techniques, but this chapter also includes more advanced topics, such as handling sessions with cookies
and PHP's session extension. Chapter 6, “Databases with PHP 5,” introduces using MySQL, SQLite, and Oracle from PHP, but focuses primarily on the PHP 5-specific details of database access. course, you learn how to interface with them using PHP's native functions or using PEAR DB.
Chapter 7, “Error Handling,” deals with different types of errors that exist, how to handle those errors with PHP, and how to handle errors with PEAR. As one of the important new features in PHP 5 is its renewed XML support, a chapter on XML features in PHP 5 could not be missed.

Chapter 8, “XML with PHP 5,” talks about the different strategies of parsing XML and converting XML to other formats with XSLT. XML-RPC and SOAP are introduced to show you how to implement web services with both techniques. Although not specifically for PHP 5, the five mainstream extensions that Chapter 9,“Mainstream Extensions,” covers are important enough to deserve a place in this book. The first section, “Files and Streams,” explains about handling
files and network streams. The second section, “Regular Expressions,” explains the syntax of a regular expression engine (PCRE) that PHP uses with numerous examples to show you how these expressions can make your life easier. In “Date Handling,” we explain the different functions used to parse and format date and time strings. In “Graphics Manipulation with GD,” we show you through two real-life scenarios the basic functions of creating and manipulating graphics with PHP. The
last section in this chapter, “Multibyte Strings and Character Sets,” explains the different character sets and the functions to convert and handle different ones, including multi-byte strings used in Asian languages.
Chapter 10, “Using PEAR,” introduces PEAR, the PHP Extension and Application Repository. Starting with concepts and installation, the chapter shows how to use PEAR and maintain the local installed packages. This chapter also includes a tour of the PEAR web site.
Chapter 11, “Important PEAR Packages,” gives an overview of the most important PEAR packages, along with examples. Packages covered include Template Systems, the Auth package to do authentication, form handling with the package, and a package used to simplify caching.
Chapter 12, “Building PEAR Components,” explains how to create your own PEAR package. The PEAR Coding Standard and package.xml package definition format, together with tips on including files and package layout, get you on your way to completing your first PEAR package.
Chapter 13, “Making the Move,” deals with the few backward-incompatible changes that were introduced between PHP 4 and PHP 5. Chapter 14, “Performance,” shows you how to make your scripts perform better. The chapter offers tips on standard PHP usage, the use of external utilities (APD and Xdebug) to find problems in your scripts, and PHP accelerators like APC and Zend Performance Suite.

Chapter 15, “An Introduction to Writing PHP Extensions,” explains how to write your own custom PHP extension. Chapter 16, “PHP Shell Scripting,” shows you how to write shell scripts in PHP, because PHP is useful for more than just web applications. We carefully explain the differences between the CLI and CGI executables in which PHP comes, including command-line parameter parsing and process control.
Appendix A, “PEAR and PECL Package Index,” provides an overview of all important packages, with descriptions and dependencies on other packages. Appendix B, “phpDocument Format Reference,” explains the syntax as understood by the PHP Documenter tool to generate API documentation from source code. Appendix C, “Zend Studio Quick Start,” is an introduction to working in the Zend Studio IDE.

Download PDF PHP 5 Power Programming

Read More......

Diabetes

A CHRONIC, DEBILITATING AND OFTEN DEADLY DISEASE
• Diabetes is a chronic condition that arises when the pancreas does not produce
enough insulin, or when the body cannot effectively use the insulin produced.
• Insulin is a hormone made by the pancreas that helps ‘sugar’ (glucose) to leave the
blood and enter the cells of the body to be used as ‘fuel’. When a person has
diabetes, either their pancreas does not produce the insulin they need (type 1
diabetes) or additionally the body cannot make effective use of the insulin they
produce (type 2 diabetes).
• Diabetes is the fourth leading cause of death in most developed countries.
• Each year, over three million deaths worldwide are attributable to diabetes-related
causes.
A GLOBAL EPIDEMIC
• Diabetes is reaching epidemic proportions. In 2003, the International Diabetes
Federation estimated that nearly 200 million people around the world had diabetes. By
2025 this figure is expected to rise to over 300 million, when over 6 % of the world’s
population will be living with diabetes.
• The prevalence of type 2 diabetes is rising at an alarming rate throughout the world,
due to increase in life expectancy and obesity, and adoption of sedentary lifestyles. Of
particular cause for concern is the dramatic rise of type 2 diabetes in children and
adolescents.
• Examples of the dramatic rise in diabetes prevalence can be found in India and China.
India is host to the largest diabetes population in the world with an estimated 35
million people, amounting to 8% of the adult population. In China, where 2.7% of the
adult population is affected by type 2 diabetes, the number of people with this
condition is likely to exceed 50 million within the next 25 years.

Download PDF now.

Read More......

LEARNING AND STATUS IN SOCIAL NETWORKS

The patterns in which individuals interact with each other have important con-
sequences for determining outcomes across a wide variety of contexts. One notable
phenomenon that relies on these interactions is social learning. Social learning oc-
curs when asymmetrically informed individuals have the opportunity to observe the
choices of others and to incorporate this information when making their own choices.
Under certain assumptions this process leads to information cascades in which the
ability to learn from others ceases before any sound conclusion is reached. To the
extent this theory is valid, the implications for information aggregation are quite
negative. However, casual empiricism suggests that such an ine±ciency is unlikely:
many people making similar decisions over time are very unlikely to be continually
wrong. The ¯rst two chapters address this discrepancy.
Experiments that implement a standard social learning paradigm are reported.
A novel feature of the data is that we examine long sequences of decisions (up to
forty) and study the e®ects of di®erent signal qualities. In contrast to standard
equilibrium predictions, a pattern of cascade formation, collapse, and re-formation is
routinely observed. The main implication of these dynamics is that learning continues
throughout the sequence of decisions, so that the truth is nearly revealed. Quantal
Response Equilibrium, augmented to allow for non-rational belief updating in the
form of base-rate neglect, explains nearly all the features of the data.
One assumption underlying most studies of observational learning is that the order
in which individuals choose is exogenously ¯xed. In many applications, however,
strategic considerations play a major role in determining the timing of decisions. To
understand how timing issues impact the ability to learn from others' decisions, I
study a model in which decision times are strategic variables and individuals have
heterogeneous signal qualities. The main ¯nding is that with two players, the player
with better information announces ¯rst in (the unique) equilibrium. Consequently,both players make the same decision, as in a herd, but because of the sorting e®ect, the
outcome is informationally e±cient. It is also shown that the game ends immediately
as the time interval vanishes. In comparison to the standard exogenous sequence
assumption, welfare is always higher under strategic timing. When there are many
players, a herd forms immediately, and it is always on the correct action because early
decision makers have the best information, and their choices reveal the true state.
We next study a model that addresses how social networks form in strategic
settings. Individuals allocate a budget of resources across others, creating directed,
continuously valued links. In many applications, a (directed) link confers bene¯t to
both individuals involved in the link. By separating this bene¯t °ow into \giving"
and \taking" components, we are able to study the implications for e±ciency. The
main ¯nding is that ine±ciencies at equilibrium are due only to the giving of bene¯t.
We also relate network structures to underlying heterogeneity of players.
The ¯nal chapter analyzes large-scale social networks. The main question concerns
how correlation patterns in links across individuals a®ect the di®usion of a virus or
rumor. A surprise is that in all of the simulations considered, the Susceptible-Infected-
Susceptible (SIS) model behaves identically on networks with varying correlation
patterns. These are the ¯rst results in this context that isolate the role of correlation
structures.

Download PDF now.

Read More......

Modeling an Avian-Human Hybrid Flu Virus

influenza A viruses, how they replicate in a cell, and how their RNA can
reassort when a person is infected simultaneously with an avian and a human virus. Using the student
sheet, students make avian and human influenza A virus models, infect a model lung cell, and make a
hybrid virus that has some avian and some human RNA segments. They see that some hybrids have surface
proteins from both the avian and human influenza A viruses. Unfortunately, the human immune system does
not quickly recognize and respond to this combination of surface proteins, making it particularly dangerous.
Background Information
While there are three main types of influenza viruses (Types A, B, and C), this activity focuses on influenza A
and its strains. Influenza A in humans is mainly a respiratory virus that typically infects cells of the nose and
throat, but it can infect lung cells. It spreads when an uninfected person touches contaminated surfaces or
inhales viruses coughed or sneezed out by an infected person.
Download PDF now.

Read More......

Kama Sutra : the first illustraded ebook

MODERN KAMA SUTRA INTERPRETATION
l Over 40 sexual positions with images and detailed explanations
PART I: INTRODUCTORY
l Preface
l Observations on the three worldly attainments of Virtue, Wealth, and Love
l On the study of the Sixty-four Arts
l On the Arrangements of a House, and Household Furniture; and about the
Daily Life of a Citizen, his Companions, Amusements, etc.
l About classes of Women fit and unfit for Congress with the Citizen, and of
Friends, and Messengers
PART II: ON SEXUAL UNION
l Kinds of Union according to Dimensions, Force of Desire, and Time; and on
the different kinds of Love
l Of the Embrace
l On Kissing
l On Pressing or Marking with the Nails
l On Biting, and the ways of Love to be employed with regard to Women of
different countries
l On the various ways of Lying down, and the different kinds of Congress
l On the various ways of Striking, and of the Sounds appropriate to them
l About females acting the part of Males
l On holding the Lingam in the Mouth
l How to begin and how to end the Congress. Different kinds of Congress, and
Love Quarrels
PART III: ABOUT THE ACQUISITION OF A WIFE
l Observations on Betrothal and Marriage
l About creating Confidence in the Girl
l Courtship, and the manifestation of the feelings by outward signs and deeds
l On things to be done only by the Man, and the acquisition of the Girl thereby.
Also what is to be done by a Girl to gain over a Man and subject him to her
l On the different Forms of Marriage
Download PDF now.

Read More......

tutorial : MICROSOFT ACCESS 2003

Microsoft Access is powerful software designed for PC. It allows you to create and
manage databases. A database is an organized body of related information that is
arranged for ease and speed of search and retrieval. Some of the examples of
databases are: Jerome Library online catalogue, telephone directories, address books,
cookbooks, tour books, etc.
Most BGSU offices and departments work with Access as their database application.
The examples in this tutorial present common features of databases used on campus.
Microsoft Access is equipped with a few options that help you to enter, organize, and
edit data in an easy and intuitive way. You can also effectively perform such tasks as
storing, filtering, and retrieving data, as well as asking questions about the data and
receiving instant answers. In Access, you can create professional reports and save your
data in HTML format for viewing in a browser.

Download PDF now.

Read More......

Microsoft Office : Microsoft Word Tutorial.pdf

Microsoft Word 2007™ is a popular word processing program which allows users to create a variety of documents. You can use MS Word to create papers for class, brochures, resumes, etc. It can be used on both PC and Macintosh computers. This tutorial covers the basic functionality of the software.

Word 2003, the latest version of the best-selling word processor, takes customer experience and feedback to deliver innovations you can use to create impressive-looking documents and help you work better with others. Microsoft Word can be used on both Macintosh and PC computers

Download PDF now.

Read More......