Writing at University

by Amazing Books

This book is about writing university assignments at degree level. Some parts will also be relevant to students taking postgraduate courses who are new to an area of study. One of the main reasons why we decided to write this book was that we wanted to help students find ways of putting writing at the center of their learning. we believe that writing for your studies and learning for your studies are so integrally related that they cannot be separated from each other. Obviously an important aim for you as a student is that you complete your written assignments on time and get good grades, but writing essays and other assignments is about more than that: it is fundamentally about learning. As you learn to write in a particular way for a particular subject you re learning how to make sense of that subject. Academic disciplines have their own ways of organizing knowledge, and the ways in which people in different subject areas write about their subjects are actually part of the subject itself and something that has to be learnt. This is something that we will return to later in the book.

As  authors we obviously do not know the readers of this book, not how they came to be at university, but we do know that there have been many changes in universities during the last decade and that not everybody makes a simple and smooth progression from school after achieving the required A-level grades. There are now many routes into higher education and it is increasingly common for students to have had a variety of different learning experiences, both good and bad, before deciding to embark on a university course. Therefore, it is quite likely that you have been used to both learning and writing in many different ways. Now, at university, you will be asked to complete written assignments which not only seem very different from each other but also appear to have very different criteria for assessment. We hope that by working through the strategies and tasks suggested in this book you will become familiar with ways of working that will enable you to tackle a range of different writing for university.

Why a book on university writing?
There is a common belief that writing is writing and that, if you are taught the basics, you are either good at it or you are not; that either you can do it or you cannot. We disagree with this point of view. So why is it that some students seem to struggle? From our own experience of working with university students we believe that the key to becoming a successful writer with university students we believe that the key to becoming a successful writer at university level is understanding what is required and what is involved in he process of completing assignments. Once you have grasped what it is that you are meant to be doing, writing tasks become much more straightforward. Our own work has helped us become aware of how complex writing university assignments actually is, and we wanted to write something for student which helped them to understand this. This book is designed to help you to think of yourself as a writer, and to understand the ways in which you may need to adapt what you already know and do in writing to the writing that you have to complete at university level. Whether you are just starting your course or are still wondering about it all after a while, then working through this book should help you clarify matters and tackle your assignments more confidently.


Working with others
Although this book is addressed to the individual reader, we want to emphasize the value of working with others on your writing. Sometimes at university you will have the opportunity of joining a study skills or writing development group, or will get some practice or guidance in the kinds of writing you have to do within your courses, but often you are left to work this out for yourself. It is true that a large part of writing is a solitary activity, an aspect that some people value but others find difficult, especially if you are used to working with others most of the time. However, there are many parts of the writing process where it is enormously useful to get ideas and feedback from others. Many professional academic writers make use of a 'critical friend' to read drafts or talk though ideas.

You as a writer
How do you think of yourself as a writer? You may feel more or less confident about writing, but whatever you background, whether you have come straight from school, whether you left formal education many years ago, whether you have completed an access of foundation course, whether you are fro a professional background or are studying purely for personal interest later in life, you will have already experienced many different forms of writing. At university level, writing can seem strange and unfamiliar. Even for those who have recently done A Levels the requirements can be bery different from what they are used to. Puzzling over the assignment title in front of you, gathering your thoughts and ideas together, and incorporating what you have read about the subject into your work, can feel pretty daunting. Rest assured, this does not only apply to first-year students - even hardened academics feel like this when they are writing articles for learned journals.

Download:  Writing at University

0 comments:

Post a Comment

Trauma and Physical Health

by Amazing Books

RESEARCH AND CLINICAL PRACTICE with trauma survivors has taught us much about the widespread problems of child maltreatment, partner violence, and sexual assault. Numerous investigations have documented links between such trauma exposure and long-term negative mental health consequences. We have also identified risk and protective factors for more resilient functioning. As we learn more about the psychobiology of traumatic stress, however, increasing attention has been drawn to understanding physical health effects of maltreatment and trauma (e.g., Kendall-Tackett, 2003). In a recent book reviewing this research on the link between childhood abuse and adult health problems, Kendall-Tackett (2003) describes a model that explains these links. She points out that much more needs to be learned given that the majority of research on trauma and maltreatment has focused on mental health symptoms.

The appearance of growing numbers of empirical articles addressing trauma and physical health coincides with an increasing interest in collaborating with professionals in medicine and nursing. For example, Frank et al. (2004), in Primary care psychology, outline important roles for mental health clinicians in primary care settings. Several sections of the book describe how trauma both directly and indirectly impacts physical health through its association with psychological distress. This book suggests ways in which clinicians with expertise in trauma treatment may partner in important ways with primary care professionals to better meet the needs of trauma survivors across the lifespan. Indeed, a recent article in Pediatrics (Borowsky et al., 2004) presents research on how primary care physicians can help prevent future violence and aggression when they screen for violence among children.

But where are we to go from here? Merrill and colleagues (2001, pp. 992–993) describe a useful framework for examining progress in research. Although their model focuses specifically on the field of child sexual abuse, it has applications as an organizing frame for the field of trauma, physical health, and primary care intervention. They describe three levels of research that need to occur for a field to move forward. Contributors to this volume have written chapters that fall within each of these levels. These are described below.

“First-generation” research aims to establish clear links between trauma and its effects across a wide variety of samples, for a variety of outcomes. This has been an important focus of research on trauma and physical health to date given that most early research on the short- and long-term consequences of abuse focused almost exclusively on mental health outcomes.

Most of the chapters that follow review the extensive and growing literature that establishes the negative impact of trauma on health symptoms and behaviors across the lifespan. Vanhoudenhove et al., Sachs-Ericsson et al., and Good Mojab continue this line of work in their explorations of links between trauma and health outcomes that have received relatively less attention, including chronic fatigue and pain, and postpartum health.

“Second-generation” studies, according to Merrill et al., are those that move beyond comparisons of victims and non-victims to within-group analyses examining factors which moderate the degree of effects that trauma has on outcomes. In their particular review of research on child sexual abuse, they discuss variations in characteristics of the abuse that may impact patterns of distress and resilience among groups of survivors. Chapters in this volume point to ways in which more work is needed in this area for understanding trauma and physical health. In particular, Banyard points to ways in which gender has been an understudied aspect of this topic and presents implications for both future research and practice. Further, the chapters in the current book demonstrate the impact of a wide array of trauma experiences on physical health, rather than focusing exclusively on child maltreatment as Merrill et al. do, or as was more common in early inquiry into links between trauma and physical health. This work encourages us to ask questions about how different types of trauma may be associated with different health outcomes and the need for different types of intervention and prevention efforts.

Finally, Merrill et al. describe “third-generation studies,” which aim to illustrate and gather evidence for processes through which trauma impacts outcomes. It allows us to ask questions about what variables may explain the powerful links we find between trauma exposure and physical health symptoms. Such research holds the key to important information for the design of effective intervention efforts. The chapter by Kendall-Tackett provides a review of two newly hypothesized mediating mechanisms in need of future study: self-efficacy and sleep deprivation. The links from such discussions to practice are highlighted in each chapter but particularly by Dallam, Stalker, and Hamberger, who describe guidelines for specific practices within primary care settings, that may address such mediating processes and help interrupt the link between trauma exposure and negative physical health.


Indeed, a key aim of the current volume is to make clear the relationship between both what the fields currently knows about trauma and physical health, and directions for future research as they may be applied to work within primary care health settings. The chapters ground us in a review of what is known while then asking the next set of questions and discussing real-world implications that the answers may hold.

0 comments:

Post a Comment

Word-Formation in Englisht

by Amazing Books

What this book is about and how it can be used
The existence of words is usually taken for granted by the speakers of a language. To speak and understand a language means - among many other things - knowing the words of that language. The average speaker knows thousands of words, and new words enter our minds and our language on a daily basis. This book is about words.

More specifically, it deals with the internal structure of complex words, i.e. words that are composed of more than one meaningful element. Take, for example, the very word meaningful, which could be argued to consist of two elements, meaning and -ful, or even three, mean, -ing, and -ful. We will address the question of how such words are related to other words and how the language allows speakers to create new words. For example, meaningful seems to be clearly related to colorful, but perhaps less so to awful or plentiful. And, given that meaningful may be paraphrased as ‘having (a definite) meaning’, and colorful as ‘having (bright or many different) colors’, we could ask whether it is also possible to create the word coffee, meaning ‘having coffee’. Under the assumption that language is a rule-governed system, it should be possible to find meaningful answers to such questions.

This area of study is traditionally referred to as word-formation and the present book is mainly concerned with word-formation in one particular language, English. As a textbook for an undergraduate readership it presupposes very little or no prior knowledge of linguistics and introduces and explains linguistic terminology and theoretical apparatus as we go along.

The purpose of the book is to enable the students to engage in (and enjoy!) their own analyses of English (or other languages’) complex words. After having worked with the book, the reader should be familiar with the necessary and most recent methodological tools to obtain relevant data (introspection, electronic text collections, various types of dictionaries, basic psycholinguistic experiments, internet resources), should be able to systematically analyze their data and to relate their findings to theoretical problems and debates. The book is not written in the perspective of a particular theoretical framework and draws on insights from various research traditions.

Word-formation in English can be used as a textbook for a course on word formation (or the word-formation parts of morphology courses), as a source-book for teachers, for student research projects, as a book for self-study by more advanced students (e.g. for their exam preparation), and as an up-to-date reference concerning selected word-formation processes in English for a more general readership.

For each chapter there are a number of basic and more advanced exercises, which are suitable for in-class work or as students’ homework. The more advanced exercises include proper research tasks, which also give the students the opportunity to use the different methodological tools introduced in the text. Students can control their learning success by comparing their results with the answer key provided at the end of the book. The answer key features two kinds of answers. Basic exercises always receive definite answers, while for the more advanced tasks sometimes no ‘correct’ answers are given. Instead, methodological problems and possible lines of analysis are discussed. Each chapter is also followed by a list of recommended further readings.


Those who consult the book as a general reference on English word-formation may check author, subject and affix indices and the bibliography in order to quickly find what they need. Chapter 3 introduces most recent developments in research methodology, and short descriptions of individual affixes are located in chapter 4 As every reader knows, English is spoken by hundreds of millions speakers and there exist numerous varieties of English around the world. The variety that has been taken as a reference for this book is General American English. The reason for this choice is purely practical; it is the variety the author knows best. With regard to most of the phenomena discussed in this book, different varieties of English pattern very much alike.

However, especially concerning aspects of pronunciation there are sometimes remarkable, though perhaps minor, differences observable between different varieties. Mostly for reasons of space, but also due to the lack of pertinent studies, these differences will not be discussed here. However, I hope that the book will enable the readers to adapt and relate the findings presented with reference to American English to the variety of English they are most familiar with.

The structure of the book is as follows. Chapters 1 through 3 introduce the basic notions needed for the study and description of word-internal structure (chapter 1), the problems that arise with the implementation of the said notions in the actual analysis of complex words in English (chapter 2), and one of the central problems in word-formation, productivity (chapter 3). The descriptively oriented chapters 4 through 6 deals with the different kinds of word-formation processes that can be found in English: chapter 4 discusses affixation, chapter 5 non-affixation processes, chapter 6 compounding. Chapter 7 is devoted to two theoretical issues, the role of phonology in word-formation, and the nature of word-formation rules.

The author welcomes comments and feedback on all aspects of this book, especially from students. Without students telling their teachers what is good for them (i.e. for the students), teaching cannot become as effective and enjoyable as it should be for both teachers and teaches (oops, was that a possible word of English?).


0 comments:

Post a Comment

Microsoft Visual Studio 2010

by Amazing Books

Visual Studio has been the primary integrated development environment (IDE) for Microsoft software development for several years. Visual Studio 2010 (VS), the subject of this book, is therefore a mature evolution, building upon the success of its predecessors. This book will show you how to leverage Visual Studio 2010 to your advantage, increasing your skill set, and helping you become more productive in building software. The software you will learn to write will be for .NET (pronounced “Dot Net”), which is a Microsoft platform for writing different types of applications.

As the title suggests, this is a book for beginners. However, there are many opinions about who a beginner is, so let’s discuss what beginner means in the context of this book. You should probably have some understanding of what programming is from a general perspective. It would help to have at least written a batch file, macro, or script that instructed the computer to perform some task. A beginner could also be someone who has written software with technology, such as Cobol, Dreamweaver, or Java, but who is unfamiliar with Visual Studio. Whatever your background, this book provides a gradual on-ramp to developing applications with Visual Studio 2010.

This book has 13 chapters and is divided into four parts and a couple of appendixes as reference material. The following provides an overview of each section:

● Part I: Understanding Visual Studio 2010 Essentials Chapter 1 begins with an explanation of what VS is, its benefits to you, and what type of applications VS will help you build. Hands-on guidance starts at the point of installation, giving you tips as to what is being installed and where it goes on your computer. Chapters 2 through 4 are an introduction to C# and VB, two of the most widely used programming languages supported in VS. Notice that the titles of these chapters include “Just Enough,” indicating that you will learn the language features you need throughout this book. As you progress through the book, you’ll be exposed to all of the language features discussed and see how they are used. Even if you already know how to program, you might want to peruse the programming language chapters anyway because I’ve sprinkled in dozens of valuable tips that will make your coding experience in VS much more pleasurable.

● Part II: Learning the VS 2010 Environment There are a few universal tasks most developers perform every day, which include working with projects, debugging code, and manipulating data. While Chapter 5 is titled “Creating and Building Projects,” there is much involved when working with projects. Pay particular attention to the guidance on assemblies and class libraries, as they tend to become more prominent as your development activities progress beyond simple programs. Regardless of your development philosophy, the need to fix bugs has always existed and will continue to be important in the future. Chapter 6 is designed to help you use the many tools of VS to find and fix bugs. Another common task you’ll have is working with data. VS allows you to create databases, add tables, and much more. When the database is ready to use, you’ll learn how to write code that works with the database. I chose to cover LINQ to SQL because it’s one of the simpler database technologies, yet powerful enough for professional application development.

● Part III: Building Programs with VS 2010 With the foundations of programming languages and a feel for the VS environment, you’ll be ready to use VS to build applications. The .NET platform supports various technologies, and this book takes a forward-looking approach, choosing technologies that were the most recently introduced. The focus in these chapters is not to teach you everything about these technologies, which can fill entire books themselves, but rather to show you how to leverage VS in building applications. You’ll get the foundations that will give you a head start in building your own applications. Both Chapters 8 and 10 use a form of Extensible Markup Language (XML) called XML Application Markup Language (XAML). Considering that this is a beginner’s book, I added a couple of appendixes that cover XML and XAML. I recommend that you read the appendixes before reading Chapters 8 and 10. Additionally, you should read Chapter 8 before reading Chapter 10, because many of the same concepts used to work with Windows Presentation Foundation (WPF), a technology for building desktop applications, are applicable to Silverlight, a technology to build Web applications. The other two chapters in this part will show you how to build Web applications with ASP.NET MVC and how to create Web services with Windows Communications Foundation.

● Part IV: Enhancing the VS 2010 Experience In addition to all of the wizards, tools, and editing help that VS offers, you can extend VS to make it work even better. Chapter 12 shows you how to create your own project and project item wizards, how to create code snippets that automatically generate code, and how to create macros that automate the VS environment. If the macro capability you learn about in VS isn’t powerful enough, read Chapter 13, which shows you how to build an Add-In, a program that you can install to add new features to VS.

From installation to customization of the IDE, VS is a helpful and powerful tool. I hope you enjoy this book and that it helps you learn how to make VS work for you.

0 comments:

Post a Comment

Get Writing Paragraphs and Essays_Third Edition

by Amazing Books

What is considered “good writing” depends on context. Writing takes place in a context that has four parts:

■ the writer’s goal
■ the readers’ needs, expectations, beliefs, and knowledge
■ the discipline, situation, occupation, or event in which the writing takes place
■ the nature of the document

Context explains why the tone, language, and style of a résumé differs from a research paper or a text message sent to your best friend. A school fund-raising letter mailed to parents differs from a formal proposal sent to a government agency.

A letter to people familiar with the school can explain the need for a new roof in a few paragraphs and motivate readers to write checks for fifty or a hundred dollars. A proposal seeking a million-dollar grant from the government, on the other hand, might run twenty pages and include statistics, audited balance sheets, and a formal mission statement. Before you write, establish the context by asking yourself four key questions:

What Is Your Goal?

Are you writing to explain an idea, complete an assignment, answer a question, or apply for a job? Do you want to share ideas or motivate readers to take action?

Who Are the Readers?

Are you writing to an individual or a group? Are readers familiar with your subject, or do they require background information? Are they likely to be sympathetic, neutral, or hostile to your ideas? What evidence will they need to accept your views? Consider the extended audience. Who else may read your letters, reports, and e-mails? Consider the impression these documents will make on others and how they will reflect on your personal and professional image.

What Is the Discipline or Situation?

Disciplines, professions, corporations, and communities have unique traditions, standards, and values. A literature teacher expects students to write individual interpretations of a story or novel. Science instructors, however, demand that students follow uniform standards in conducting objective research. An ad agency rewards creativity, whereas an accounting firm demands accuracy.

What Is Expected in the Document?

People expect newspaper articles, memos, and e-mail to be written in simple words and short sentences for easy reading. Résumés, ads, and brochures have to communicate at a glance and may use bulleted points to highlight important information. Business reports and research papers may be written in highly technical or sophisticated language and devote pages to discuss a single detail. Your word choices, sentences, and paragraphs should suit the document.


0 comments:

Post a Comment

Longman English Grammar Practice for Intermediate Student

by Amazing Books

To the Student
Why do we learn grammar?
There is no point in learning grammar for the sake of learning grammar. Grammar is the support system of communication and we learn it to communicate better. Grammar explains the why and how of language. We learn it because we just can't do without it.

Who is this book for and what does it cover?
This book deals entirely with English as a foreign language (EFL). It is for intermediate students who are working with a teacher or working on their own. It covers every important area of the English language. If you look at the Comtents pages, you will find sixteen major areas which form the basis of English grammar. This book is based on Longman English Grammar and the grammatical information in it is all drawn from this work. Longman English Grammar Practice has been designed to stand on its own. Students who require further grammatical information can refer to the Longman English Grammar. 

How the material is organized
Longman English Grammar Practice is a practice book. It is intended to support (not replace) the material in language courses and is organized for this purpose:
  • The material is laid out on facing pages.
  • Each set of facing pages deals with a major point of grammar.
  • This major point is divided into small, manageable amounts of information. Clear notes explain the points to be practiced, followed by an exercise on just those point.
  • The last exercise is in context, usually an entertaining story with a cartoon illustration. It sums up all you have learnt in the exercises you have just done and shows you how the language works. It is a 'reward' for the hard work you have just been doing!
Cross References

If you see e.g. [>7.3A] in the notes, it means that a similar point is discussed in some other part of the book. Follow up the reference for parallel practice or information if you want to. If you see e.g.[>LEG 4.30] at the top of the notes. It means that the point is dealt with in the Longman English Grammar. Follow up the reference if you want 'the whole story'.



0 comments:

Post a Comment

The Complete Guide to Climate Change

by Amazing Books

Climate change has emerged as one of the defining political and socioeconomic issues of the twenty-first century. Although it has been part of the scientific agenda since the 1970s, it only really began to attract widespread international attention during the 1990s. It is now a mainstream political issue that people need to understand and respond to. Climate change is a complex issue that covers the full spectrum of scientific, economic, social, and political disciplines, and few people have the opportunity to attain a comprehensive and in-depth understanding of all facets of climate change. The purpose of this book is to assist readers to gain a better understanding by distilling current knowledge and key issues in an easily understandable form.

Over the past two decades, enormous progress has been made in the understanding of climate science, the likely repercussions of a changing climate on human and natural systems, and what options are available to reduce the extent of future climate change. Thousands of research papers, reports, articles, and opinion pieces have been published on climate change, and these have presented a wide range of divergent, nd often opposing, views. Climate change is an issue that has been the subject of ongoing, and at times heated, scientific and political debate. Although uncertainty remains in respect to the magnitude, timing, and extent of climate change and its impacts, the vast body of scientific evidence presents a compelling case that human activities have already changed the earth’s climate and, if present emission trends persist, the changes that are projected to occur over the course of this century are likely to be very dangerous indeed.

The book consists of 64 separate entries, each of which covers a specific topic or issue relevant to climate change. Each entry is, in effect, a stand-alone essay that provides the reader with a summary overview of the current knowledge and understanding of the topic. The information contained in each entry is sourced from the most recent and authoritative literature on the subject. Each entry contains cross references to other entries, so that readers can find more detailed information on related issues. At the end of each entry, readers are directed to other entries most relevant to the topic under discussion and to further information sources that cover the topic in more detail. The book covers all the key concepts of climate change, including climate science, projected impacts, social and political drivers underlying future emissions, finance and carbon markets, the potential contribution of different mitigation options, and the international political and administrative infrastructure that guides the international community’s response to climate change.

As authors, and practitioners in the field of climate change, we have attempted to present an objective and balanced account of the differing views and levels of uncertainty surrounding various climate change issues. We have generally refrained from drawing definitive conclusions on most topics, unless the empirical evidence is overwhelming, or it covers our particular areas of professional expertise.

0 comments:

Post a Comment

The Ultimate Phrasal Verb Book

by Amazing Books

TO THE TEACHER
The inspiration for The Ultimate Phrasal Verb Book came about when a student asked me for a textbook to help her learn the meanings of common phrasal verbs. I had nothing to offer. The only textbook focusing on common verbs that I could give her contains not one phrasal verb — it teaches arise but not get up, awake but not wake up, seek but not look for.

Phrasal verbs are verbs, not idiomatic curiosities. There is no logic to classifying take over with take the bull by the horns. Phrasal verbs are an essential part of spoken and written English at all levels, and no student who hopes to master the language can afford to overlook them.
Although this textbook is intended primarily for high-intermediate to advanced students, ambitious students at lower levels will benefit from it as well. Only some FOCUS sections may prove to be a little beyond them; otherwise, there is nothing to prevent any student from studying the definitions and examples and attempting the exercises.

A vocabulary textbook should provide mechanics as well as meaning. Students want to know more than what a word means — they want to know how to use it correctly.
The importance of mechanics is the reason for the emphasis on the prepositions required when some phrasal verbs are used transitively and for the inclusion of reviews of points of grammar not specific to phrasal verbs. Prepositions are the glue that holds English together, but many students falter when using newly learned verbs because they do not know that a preposition is also required, or if they do, which one. This aspect of English is not given the attention it deserves because it is difficult to teach — there are no rules that govern when a preposition, or which preposition, is required, and no teacher likes to say "You just have to remember."

The hope of the latter feature, the discussion of points of grammar not specific to phrasal verbs, is that combining practice with phrasal verbs and practice with a variety of grammatical structures will increase not only the student's confidence in the knowledge of phrasal verbs but also his or her willingness and ability to use them in a wider range of situations.

There is inevitably a degree of oversimplification. That phrasal verb particles are sometimes prepositions and sometimes adverbs is mentioned only once. No purpose is served by differentiating between them, and the overlap between the two is confusing to the student. Phrasal verbs are not identified as transitive or intransitive because this is dictated by logic. Less common meanings of some phrasal verbs have not been included. Adverb placement is presented and illustrated in simplified form without discussion of the different types of adverbs — doing so would have gone beyond the scope of this textbook.

And no differentiation is made between recognized adjectives derived from past participles and past participles with adjectival meaning. The adjectival use of past participles (both phrasal and no phrasal) is an extremely important aspect of spoken English - something every student of English should be familiar with - yet the dividing line between true adjectives derived from past participles and passive sentences employing past participles with adjectival meanings is ill-defined and problematic. Native speakers of English regularly use past participles in superficially passive sentences with purely adjectival meaning. Whether the past participles are verbs or actually adjectives is of no concern to the native speaker and is entirely irrelevant to the student of English. Rather than distract the student with an unnecessary element of confusion, both are referred to as participle adjectives throughout this textbook.

The exercises in this textbook are intended to reinforce meaning and mechanics. A close exercise always comes first, followed by exercises focusing on sentence structure and the FOCUS discussion. Last are exercises that ask the student to answer questions or write original sentences.

There is a good deal of review built into this textbook. Every section contains two or more exercises requiring the student to refer back to a previous section in order to review a phrasal verb, participle adjective, or noun. When a phrasal verb has two or more meanings, it is intentional that no help is provided to the student in determining which meaning applies; students have to review them all and figure it out for themselves.

I have tried in this textbook to imitate the form and content of everyday English. If occasionally the register and subject matter of some examples and exercises seem not quite right for formal discourse that is deliberate. Students need to learn formal English, of course, but since most people speak informally most of the time, students need to gain familiarity with the syntax, usage, and content of the informal English they read and hear every day at work, at school, at home, and on television.

TO THE STUDENT
Phrasal verbs are combinations of ordinary verbs like put, take, come, and go and particles like in, out, on, and off. They are a very important part of everyday English. Every student of English needs a basic understanding of the most common phrasal verbs and also of common nouns and adjectives made from phrasal verbs.

Most phrasal verbs are nor informal, slang, or improper for educated speech or formal writing. Exactly the opposite is true — most phrasal verbs are acceptable at all levels of spoken or written English. In fact, for many of the phrasal verbs in this textbook, there is no alternative to the phrasal verb — there is no other way to say it.
However, a few phrasal verbs in this textbook are identified as informal, and it is better not to use them in serious, formal speech or writing. But these informal phrasal verbs are important because they are very common in everyday informal speech and writing.

Some phrasal verbs are very easy to understand. For example, it is not difficult to understand sit down or come in because their meanings are obvious. But many phrasal verbs are very idiomatic. Idiomatic means that there is no way to know what the verb and particle mean together by knowing what the verb and particle mean separately. For example, every beginning-level student learns what the words call, run, off, and out mean, but that does not help the student to know that call off means cancel or that run out means use all of something.

Each section of this textbook starts with a FOCUS, an explanation of something important about phrasal verbs. Then eight phrasal verbs and an explanation of each important meaning of each one are presented along with one or more example sentences for each meaning. Following that are several exercises to help you understand and remember what the phrasal verbs mean and how to use them in a sentence. And like real conversation, questions asked with I or we are answered with you, and questions asked with you are answered with /or we.

And because there is a lot to learn in this textbook, there is a lot of review to help you learn it. Every phrasal verb is reviewed at least twice later in the book. The more idiomatic phrasal verbs are reviewed more often, and the more important meanings of phrasal verbs with several meanings are reviewed more often.


0 comments:

Post a Comment

PHP Objects, Patterns, and Practice

by Amazing Books

When I first conceived of this book, object-oriented design in PHP was an esoteric topic. The intervening years have not only seen the inexorable rise of PHP as an object-oriented language, but also the march of the framework. Frameworks are incredibly useful, of course. They manage the guts and the glue of many (perhaps, these days, most) Web applications. What’s more, they often exemplify precisely the principles of design that this book explores. There is, though, a danger for developers here, as there is in all useful APIs. This is the fear that one might find oneself relegated to user land, forced to wait for remote gurus to fix bugs or add features at their whim. It’s a short step from this standpoint to a kind of exile in which one is left regarding the innards of a framework as advanced magic, and one’s own work as not much more than a minor adornment stuck up on top of a mighty unknowable infrastructure.

Although I’m an inveterate reinvent or of wheels, the thrust of my argument is not that we should all throw away our frameworks and build MVC applications from scratch (at least not always). It is rather that, as developers, we should understand the problems that frameworks solve, and the strategies they use to solve them. We should be able to evaluate frameworks not only functionally but in terms of the design decisions their creators have made, and to judge the quality of their implementations. And yes, when the conditions are right, we should go ahead and build our own spare and focused applications, and, over time, compile our own libraries of reusable code. I hope this book goes some way toward helping PHP developers maintain design-oriented insight into their platforms and libraries, and provides some of the conceptual tools needed when it’s time to go it alone. I recently took a year or so out to return to school. This is something I recommend for all sorts of reasons. One benefit is the new perspective you gain afterwards when you revisit a once-familiar world. I came back to consulting and found that most of my old clients and contacts had taken the plunge and migrated to Git (I follow suit in this edition). And everyone, but everyone, was calling their development methodology agile.

However, of my first four new clients, three asked me to help evaluate hastily-built and inflexible codebases. Each project required the retrofitting of unit tests, the creation of basic documentation, and the design of automated build mechanisms before re factoring could safely commence. I found myself drawing heavily on the tools and practices I discuss in the last section of this book. I very much hope you find them as useful and powerful as I do, and they help you to create robust and flexible systems.

Download: PHP Objects, Patterns, and Practice

0 comments:

Post a Comment

Principles of Economics_Carl Menger

by Amazing Books

The history of economics is full of tales of forgotten forerunners, men whose work had no effect and was only rediscovered after their main ideas had been made popular by others, of remarkable coincidences of simultaneous discoveries, and of the peculiar fate of individual books. But there must be few instances, in economics or any other branch of knowledge, where the works of an author who revolutionized the body of an already well-developed science and who has been generally recognised to have done so, have remained so little known as those of Carl Menger. It is difficult to think of a parallel case where a work such as the Grundsätze has exercised a lasting and persistent influence but has yet, as a result of purely accidental circumstances, had so extremely restricted a circulation.

There can be no doubt among competent historians that if, during the last sixty years, the Austrian School has occupied an almost unique position in the development of economic science, this is entirely due to the foundations laid by this one man. The reputation of the School in the outside world and the development of its system at important points were due to the efforts of his brilliant followers, Eugen von Böhm-Bawerk and Friedrich von Wieser. But it is not unduly to detract from the merits of these writers to say that its fundamental ideas belong fully and wholly to Carl Menger. If he had not found these principles he might have remained comparatively unknown, might even have shared the fate of the many brilliant men who anticipated him and were forgotten, and almost certainly would for a long time have remained little known outside the countries of the German tongue. But what is common to the members of the Austrian School, what constitutes their peculiarity and provided the foundations for their later contributions is their acceptance of the teaching of Carl Menger.

The independent and practically simultaneous discovery of the principle of marginal utility by William Stanley Jevons, Carl Menger, and Léon Walras is too well known to require retelling. The year 1871, in which both Jevons’ Theory of Political Economy and Menger’s Grundsätze appeared, is now generally and with justice regarded as the beginning of the modern period in the development of economics. Jevons had outlined his fundamental ideas nine years earlier in a lecture (published in 1866) which, however, attracted little attention, and Walras began to publish his contribution only in 1874, but the complete independence of the work of the three founders is quite certain. And indeed, although their central positions, the point in their system to which they and their contemporaries naturally attached the greatest importance, are the same, their work is so clearly distinct in general character and background that the most interesting problem is really how so different routes should have led to such similar results.

To understand the intellectual background of the work of Carl Menger, a few words on the general position of economics at that time are required. Although the quarter of a century between about 1848, the date of J.S. Mill’s Principles, and the emergence of the new school saw in many ways the greatest triumphs of the classical political economy in the applied fields, its foundations, particularly its theory of value, had become more and more discredited. Perhaps the systematic exposition in J.S. Mill’s Principles itself, in spite or because of his complacent satisfaction about the perfected state of the theory of value, together with his later retractions on other essential points of the doctrine, did as much as anything else to show the deficiencies of the classical system. In any case, critical attacks and attempts at reconstruction multiplied in most countries.

Nowhere, however, had the decline of the classical school of economists been more rapid and complete than in Germany. Under the onslaughts of the Historical School not only were the classical doctrines completely abandoned—they had never taken very firm root in that part of the world—but any attempt at theoretical analysis came to be regarded with deep distrust. This was partly due to methodological considerations. But even more it was due to an intense dislike of the practical conclusions of the classical English School—which stood in the way of the reforming zeal of the new group which prided itself on the name of the “ethical school.” In England the progress of economic theory only stagnated. In Germany a second generation of historical economists grew up who had not only never become really acquainted with the one well-developed system of theory that existed, but had also learnt to regard theoretical speculations of any sort as useless if not positively harmful.

The doctrines of the classical school were probably too much discredited to provide a possible basis of reconstruction for those who were still interested in problems of theory. But there were elements in the writings of the German economists of the first half of the century which contained the germs for a possible new development.1 One of the reasons why the classical doctrines had never firmly established themselves in Germany was that German economists had always remained conscious of certain contradictions inherent in any cost or, labour theory of value. Owing, perhaps, partly to the influence of Condillac and other French and Italian authors of the eighteenth century a tradition had been kept alive which refused to separate value entirely from utility. From the early years of the century into the ‘fifties and ‘sixties a succession of writers, of whom Hermann was probably the outstanding and most influential figure (the wholly successful Gossen remaining unnoticed), tried to combine the ideas of utility and scarcity into an explanation of value, often coming very near to the solution provided by Menger. It is to these speculations, which to the more practical minds of the contemporary English economists must have appeared useless excursions into philosophy, that Menger owed most. A glance through the extensive footnotes in his Grundsätze, or the author’s index which has been added to the present edition, will show how extraordinarily wide a knowledge he possessed of these German authors and also of the French and Italian writers, and how small a role the writers of the classical English school plays in comparison.

0 comments:

Post a Comment

Network Intrusion Detection, Third Edition

by Amazing Books

Our goal in writing Network Intrusion Detection, Third Edition has been to empower you as an analyst. We believe that if you read this book cover to cover, and put the material into practice as you go, you will be ready to enter the world of intrusion analysis. Many people have read our books, or attended our live class offered by SANS, and the lights have gone on; then, they are off to the races. We will cover the technical material, the workings of TCP/IP, and also make every effort to help you understand how an analyst thinks through dozens of examples.

Network Intrusion Detection, Third Edition is offered in five parts. Part I, "TCP/IP," begins with Chapter 1, ranging from an introduction to the fundamental concepts of the Internet protocol to a discussion of Remote Procedure Calls (RPCs). We realize that it has become stylish to begin a book saying a few words about TCP/IP, but the system Judy and I have developed has not only taught more people IP but a lot more about IP as well—more than any other system ever developed. We call it "real TCP" because the material is based on how packets actually perform on the network, not theory. Even if you are familiar with IP, give the first part of the book a look. We are confident you will be pleasantly surprised. Perhaps the most important chapter in Part I is Chapter 5, "Stimulus and Response." Whenever you look at a network trace, the first thing you need to determine is if it is a stimulus or a response. This helps you to properly analyze the traffic. Please take the time to make sure you master this material; it will prevent analysis errors as you move forward.

Tip
Whenever you look at a network trace, the first thing you need to determine is if it is a stimulus or a response.

The book continues in Part II, "Traffic Analysis" with a discussion of traffic analysis. By this, we mean analyzing the network traffic by consideration of the header fields of the IP and higher protocol fields. Although ASCII and hex signatures are a critical part of intrusion detection, they are only tools in the analyst's tool belt. Also in Part II, we begin to show you the importance of each field, how they are rich treasures to understanding.

Every field has meaning, and fields provide information both about the sender of the packet and its intended purpose. As this part of the book comes to a close, we tell you stories from the perspective of an analyst seeing network patterns for the first time. The goal is to help you prepare for the day when you will face an unknown pattern.

Although there are times a network pattern is so obvious it almost screams its message, more often you have to search for events of interest. Sometimes, you can do this with a well-known signature, but equally often, you must search for it. Whenever attackers write software for denial of service, or exploits, the software tends to leave a signature that is the result of crafting the packet. This is similar to the way that a bullet bears the marks of the barrel of the gun that fired it, and experts can positively identify the gun by the bullet. In Part III of the book, "Filters/Rules for Network Monitoring" we build the skills to examine any field in the packet and the knowledge to determine what is normal and what is anomalous. In this section, we practice these skills both with TCPdump and also Snort. In Part IV, we consider the larger framework of intrusion detection. We discuss where you should place sensors, what a console needs to support for data analysis, and automated and manual response issues to intrusion detection. In addition, this section helps arm the analyst with information about how the intrusion detection capability fits in with the business model of the organization.

Finally, this book provides three appendixes that reference common signatures of well-known reconnaissance, denial of service, and exploit scans. We believe you will find this to be no fluff, packed with data from the first to the last page.

Network Intrusion Detection, Third Edition has not been developed by professional technical writers. Judy and I have been working as analysts since 1996 and have faced a number of new patterns. We are thankful for this opportunity to share our experiences and insights with you and hope this book will be of service to you in your journey as an intrusion analyst.




0 comments:

Post a Comment

MySQL-PHP Databases Applicaiton_Jay Greenspan and Brad Bulger

by Amazing Books

Welcome. If you are thumbing through these pages, you’re probably considering writing Web-based applications with PHP and MySQL. If you decide to go with these tools, you’ll be in excellent company. Thousands of developers – from total newbies to programmers with years of experience – are turning to PHP and MySQL for their Web-based projects; and for good reason.

Both PHP and MySQL are easy to use, fast, free, and powerful. If you want to get a dynamic Web site up quickly, there are no better choices. The PHP scripting language was built for the Web. All the tasks common to Web development can be accomplished in PHP with an absolute minimum of effort. Similarly, MySQL excels at tasks common to dynamic Web sites. Whether you’re creating a content-management system or an e-commerce application, MySQL is a great choice for your data storage.

Is this book for You?
There are quite a few books that deal with PHP and a few that cover MySQL. We’ve read some of these and found a few to be quite helpful. If you’re looking for a book that deals with gory details of either of these packages, you should probably look elsewhere.

The focus of this book is applications development. We are concerned with what it takes to get data-driven Web sites up and running in an organized and efficient way. The book does not go into arcane detail of every aspect of either of these tools. For example, in this book, you will not find a discussion of PHP’s LDAP functions or MySQL’s C application program interface (API). Instead, we will focus on the pieces of both packages that affect on another. We hope that by the time you’re done with this book you’ll know what it takes to get an application up and running using PHP and MySQL.

0 comments:

Post a Comment

Teaching English as a Foreign Language

by Amazing Books

The increased learning and teaching of English throughout the world during recent years in both state and commercial educational institutions has produced a new cadre of professionals: teachers of EFL. Some have moved across from teaching English as a mother tongue, others from teaching modern languages; many have been drawn into service for no other reason than that their own spoken English is good, or perhaps because they are native English speakers.

Many have started without specific training, others feel they need to rethink the basis of their teaching.

This book is written for teachers of all backgrounds. Our aim is to discuss a wide range of teaching problems—from classroom techniques to school organisation—in order to help practising teachers in their daily tasks. We have adopted an eclectic approach, recognising that the teaching of English must be principled without being dogmatic, and systematic without being inflexible. We have tried to show how the underlying principles of successful foreign language teaching can provide teachers in a wide range of EFL situations with a basic level of competence which can be a springboard for their subsequent professional development. We gratefully record our debt to colleagues and students past and present at the London University Institute of Education, whose experience and thinking have helped shape our own.

Particularly, we would like to thank our colleague John Norrish for compiling the bibliography.

0 comments:

Post a Comment

Academic Writing from paragraph to essay

by Amazing Books

To the Teacher

Non-native English speakers who enroll in a college or university want to develop writing skills that will lead to academic success. This book is a combination text and workbook. Its focused lessons, specific exercises, and ample opportunities for practice are designed to help your students gain confidence in writing academic prose.

This book is designed to take university-level students with and intermediate ability in English as a Foreign Language from paragraph writing to essay writing. The course combines a process approach to writing (where students work on invention, peer response, editing, and writing multiple drafts) with a pragmatic approach to teaching the basics of writing (with direct instruction on such elements as topic sentences, thesis statements, and outlines).

To the Student

Writing is a very important part of your university study. You will write assignments that may range from one paragraph to several pages long, and will write answers on tests and exams that may be a few sentences long or a complete essay.
 
Academic writing in English may be different not only from academic writing in your own language, but even from other writing in English. The purpose of this book is to help you recognize and produce the sort of writing that you will do for your university courses.

During this course, you will have many opportunities to study and discuss examples of English academic writing. Naturally, you will also have many opportunities to discuss your own academic writing and the writing of your classmates. You will learn how important the reader is to the writer and how to express clearly and directly what you mean to communities. We hope that what you learn in this course will help you throughout your academic studies and beyond.


You should come to your writing class every day with energy and a willingness to work and learn. Your teacher and your classmates have a lot to share with you, and you have a lot to share with them. By coming to class with your questions, taking chances and trying new ways, and expressing your ideas in another language, you will add not only to your own world to the world of those around you. Good Luck!

0 comments:

Post a Comment

Discovering Language

by Amazing Books

This book is one of three companion books in the series Perspectives on the English Language. The others are Studying Language: English in Action by Urszula Clark and Thinking about Language: Theories of English by Siobhan Chapman. Together these three books provide the student of English with the foundation in descriptive apparatus, theoretical background and research skills needed at the undergraduate level. The current volume provides tools of analysis that students can use in their own linguistic studies in English, and sets aside (to the other volumes) the question of how one actually goes about studying ‘real’ language data (see Clark, 2006) and of the theory underpinning these tools (see Chapman, 2006).

This book introduces the levels model of language, which enables students to learn about the smallest linguistic items (sounds) and work through the subsequent levels (morphology and syntax) until the sentence is reached. Many introductory books address the structural issues considered here, but they also usually include contextual and theoretical discussions that are dealt with in the other volumes in this series. As a result there is enough room to include a chapter on the basic lexical semantics without which the rest of the levels of language would not work.

Students of the English language should find this book useful, whether they are taking a single honors degree in English Language, a linguistics degree or a combined degree that includes some element of the English language. It can stand alone as a wide-ranging guide to describing English or serve as the foundation for more advanced work on the linguistic features of English. It also combines effectively with the books by Clark and Chapman to provide a rounded education in the study and description of the English language.

After many years of teaching undergraduates I have come to the conclusion that development of their understanding and knowledge often reflects the development of linguistics itself. It is therefore feasible to learn the formal description of language, as described here, and then progress to considering the ways in which the theory underlying this description may be flawed, and from there move to the higher reaches of phonological, grammatical and semantic theory. It is not so easy to start from problems of description and complications of theory as students can quickly become disillusioned with tools that appear not to work well. What they need first is something practical they can use (this book), together with advice on how to apply it to real data (Clark, 2006) and stimulating discussions about the basis of the tools they are using and that might lead them into other models and tools (Chapman, 2006).

The aim of our main approach to language description and the analytically tools we shall introduce is to help the reader to develop strategies for describing English texts in linguistic terms. It is important to note that the word ‘text’ will be used throughout this book to mean linguistic data of any kind, whether spoken or written, prepared or impromptu. Thus the text that we study could be a conversation in our kitchen over breakfast, a poem or a political speech. It is worth noting that in some disciplines the word text is taken still further to include communications that are largely visual in nature, such as advertisements, photographs and films. While this extension of the term is an interesting development it is largely irrelevant to this book, which aims to develop the ability to describe only linguistic texts. The final chapter introduces the more contextual aspects of linguistics, leading towards a more integrated analysis of texts that may be both visual and linguistic in their form. For now we shall stay with the linguistic.

In order to be in a position to describe language data, the analyst needs ‘tools’ that can be shared with other analysts, so that they have a common vocabulary to compare their findings and debate issues of real concern about language and how it is used. Not all theories of language use the same tools, and some theories contradict each other. They may produce models that explain different aspects of the data. Human language is a very complex phenomenon and it is unlikely that a single theory, producing a single model, will be able to describe language comprehensively and in ways that are useful for all purposes. This book is written with the student of English language and/or linguistics in mind, and its purpose is to enable such students to describe English texts from a variety of angles with a degree of accuracy and clarity, so that they can progress to discussing the English language in wider contexts using the kind of technical knowledge that enhances the quality of such discussions.
The theory underlying the book is largely a structuralist theory of language, though it is also informed in various places by the work of function-al linguistics and the transformation-generative theory of language. This eclectic use of theory is practical, for the reasons given above: the reader requires a manageable and accessible set of tools for describing English. It is also theoretically sound, for reasons that are beyond the scope of this volume to explain.

One of the fundamental aspects of structuralism, which no other theory has explicitly denied or contradicted, is that language is an arbitrary system of communication. We shall discuss arbitrariness in Chapter 7, but let us consider the concept of systematical here as one of the more influential ideas coming from structuralist theory. The basic idea is that linguistic items (for example words) have meaning not because they refer to something in the world, but because they contrast with other units in the language. So the meaning of a word such as dog is not the sum of all possible dogs in the world, but the fact that it contrasts with all the other animal words in English; it is not the same as cat, horse, bird and so on.

This concept of a language system led to linguists spending half a century or more looking almost entirely at the units and structures of language, and trying to work out how they related to each other, often without much reference to language use in real contexts. Though this has since changed, and many linguists now work mainly with real language data in real contexts, the idea that linguistic items and structures are defined largely in terms of each other remains a radical departure from the earlier common-sense notion that human language is basically a way of labeling some pre-existing reality. Linguistic activities in the twentieth century also produced very detailed and comprehensive descriptions of languages, particularly English, as did the other two main theories of language that arose during that period: transformational-generative theory and functional theory. We do not have sufficient space to consider these theories in depth, but they are all drawn upon in this book in places where they have the most to contribute to our declared purpose: to provide a workable toolkit for students of the English language. Before embarking upon a detailed description of the sounds, units and structures of English it is helpful to have a mental ‘map’ of the territory we shall be covering. It has become almost unavoidable in all linguistic descriptions to divide the description into sections that deal with different sizes of unit, often called the levels of language. This is a convenient way of coping with the complexity of language, and it also reflects the theoretical understanding that language is indeed organised on a number of levels.

Note, incidentally, that the levels model of language is a metaphorical device that enables us to visualise the relationship between different sizes of unit as though they were physically separate, when in fact they all occur in the same stream of speech. Many scientific models, including linguistic ones, have a metaphorical basis of a similar kind.
Download: Discovering Language

0 comments:

Post a Comment

Analyzing Grammar_An Introduction

by Amazing Books

Analyzing Grammar is a clear introductory textbook on grammatical analysis, designed for students beginning to study the discipline. Covering both syntax (the structure of phrases and sentences) and morphology (the structure of words), it equips them with the tools and methods needed to analyze grammatical patterns in any language. Students are shown how to use standard notational devices such as Phrase Structure trees and word-formation rules, as well as prose descriptions, and are encouraged to practice using these tools through a diverse range of problem sets and exercises. Emphasis is placed on comparing the different grammatical systems of the world’s languages. Topics covered include word order, constituency, case, agreement, tense, gender, pronoun systems, inflection, derivation, argument structure, and Grammatical Relations, and a useful glossary provides a clear explanation of each term.

paul r. kroeger is Associate Professor and Head of the Department of Applied Linguistics at the Graduate Institute of Applied Linguistics, Dallas. He has previously published Phrase Structure and Grammatical Relations in Tagalog (1993) and Analyzing Syntax (Cambridge University Press, 2004). He has carried out linguistic fieldwork in East Malaysia, and has written for many journals including Pacific Linguistics, Oceanic Linguistics, and the Philippine Journal of Linguistics.

0 comments:

Post a Comment

IPV6 Network Programming

by Amazing Books

This book tries to outline how to write an IPv6-capable application on a UNIX socket API, or how to update your IPv4 application to be IPv6-capable. The book tries to show portable and secure ways to achieve these goals.

Write Portable Application Programs

There are a large number of platforms that support socket API for network programming. When you write an application on top of socket API, you will want to see your program work on as many platforms as possible. Therefore, portability is an important factor in application programming. As many of you already know, there are many UNIX-like operating systems, as well as non-UNIX operating systems that implement socket APIs. For instance, Windows XP does implement socket API; Mac OS X uses BSD UNIX as the base operating system and provides socket API to the users (Apple normally recommends the use of Apple APIs). So the book tries to recommend portable ways of writing IPv6-capable programs.

Be Security Conscious When Writing Programs

Security is a great concern these days in the Internet—if you are a network administrator, I guess you are receiving tons of spam, email viruses, and vendor advisories every day. To secure the Internet infrastructure, every developer has to take a security stance—to audit every line of code as much as possible, to use proper API, and write a correct and secure code. To achieve this goal, in this book, efforts are made to ensure correctness of the examples. The examples presented in this book are implemented with security stance. Also, the book tries to lead you to write secure programs. For instance, the book recommends against the use of some of the IPv6 standard APIs; unfortunately, there are some IPv6 APIs that are inherently insecure, so the book tries to avoid (and discourage) the use of such APIs.

This book does not try to cover every aspect of IPv6 technology—the book constrains itself to the IPv6-capable programming on top of socket API. There are numerous reading materials on IPv6 technology, so readers are encouraged to read them before starting to work on this book.
Also, the book assumes a certain level of expertise in socket API programming. The book does not try to explain every aspect of socket API programming; please read the material listed in the References for an introductory description to socket API.

Terminology and Portability

This section describes notations and terminologies used in this book. Here we also discuss porting issues of examples when you are using operating systems that are not 4.4BSD variants.

Terminology

System calls and system library functions are usually denoted by UNIX manpage chapters: socket(2) or printf(3). “Nodes” means any IP devices. “Routers” are any nodes that forward packets for others. “Hosts” are nodes that are not routers (however, in this book, we don’t really need to make distinctions between them).

Portability of Examples

The examples in the book compile and run on latest *BSD releases. I tried to make the examples as correct as possible. If you are planning to use the examples on other platforms, here are some tweaks dependent on OS implementations.

Solaris, Linux, Windows XP

struct sockaddr has no sa_len member. Therefore, it is not possible to get the size of a given sockaddr when the caller of the function passed a pointer to a sockaddr. The only ways to work around this problem are:

1. To always pass around the length of sockaddr separately on function calls:
struct sockaddr *sa;
int salen;
foo(sa, salen)

2. To have a switch statement to determine length of sockaddr. With this approach, however, the application will not be able to support sockaddrs with unknown address family.
struct sockaddr *sa;
int salen;
switch (sa->sa_family) {
case AF_INET:
salen = sizeof(sockaddr_in);
break;
case AF_INET6:
salen = sizeof(struct sockaddr_in6);
break
default:
fprintf(stderr, “not supported\n”);
exit(1);
/*NOTREACHED*/
}

0 comments:

Post a Comment