-
Posts
18752 -
Joined
-
Last visited
-
Days Won
724
Everything posted by Nytro
-
jQuery Fundamentals By Rebecca Murphey http://github.com/rmurphey/jqfundamentals With contributions by James Padolsey, Paul Irish, and others. See the GitHub repository for a complete history of contributions. Copyright © 2011 Licensed by Rebecca Murphey under the Creative Commons Attribution-Share Alike 3.0 United States license. You are free to copy, distribute, transmit, and remix this work, provided you attribute the work to Rebecca Murphey as the original author and reference the GitHub repository for the work. If you alter, transform, or build upon this work, you may distribute the resulting work only under the same, similar or a compatible license. Any of the above conditions can be waived if you get permission from the copyright holder. For any reuse or distribution, you must make clear to others the license terms of this work. The best way to do this is with a link to the license. Contents * Chapter 1: Welcome * Chapter 2: JavaScript Basics * Chapter 3: jQuery Basics * Chapter 4: jQuery Core * Chapter 5: Events * Chapter 6: Effects * Chapter 7: Ajax * Chapter 8: Plugins * Chapter 9: Performance Best Practices * Chapter 10: Code Organization * Chapter 11: Custom Events List of Examples * Example 1.1: An example of inline JavaScript * Example 1.2: An example of including external JavaScript * Example 1.3: Example of an example * Example 2.1: A simple variable declaration * Example 2.2: Whitespace has no meaning outside of quotation marks * Example 2.3: Parentheses indicate precedence * Example 2.4: Tabs enhance readability, but have no special meaning * Example 2.5: Concatenation * Example 2.6: Multiplication and division * Example 2.7: Incrementing and decrementing * Example 2.8: Addition vs. concatenation * Example 2.9: Forcing a string to act as a number * Example 2.10: Forcing a string to act as a number (using the unary-plus operator) * Example 2.11: Logical AND and OR operators * Example 2.12: Comparison operators * Example 2.13: Flow control * Example 2.14: Values that evaluate to true * Example 2.15: Values that evaluate to false * Example 2.16: The ternary operator * Example 2.17: A switch statement * Example 2.18: Loops * Example 2.19: A typical for loop * Example 2.20: A typical while loop * Example 2.21: A while loop with a combined conditional and incrementer * Example 2.22: A do-while loop * Example 2.23: Stopping a loop * Example 2.24: Skipping to the next iteration of a loop * Example 2.25: A simple array * Example 2.26: Accessing array items by index * Example 2.27: Testing the size of an array * Example 2.28: Changing the value of an array item * Example 2.29: Adding elements to an array * Example 2.30: Working with arrays * Example 2.31: Creating an "object literal" * Example 2.32: Function Declaration * Example 2.33: Named Function Expression * Example 2.34: A simple function * Example 2.35: A function that returns a value * Example 2.36: A function that returns another function * Example 2.37: A self-executing anonymous function * Example 2.38: Passing an anonymous function as an argument * Example 2.39: Passing a named function as an argument * Example 2.40: Testing the type of various variables * Example 2.41: A function invoked using Function.call * Example 2.42: A function created using Function.bind * Example 2.43: A function being attached to an object at runtime * Example 2.44: Functions have access to variables defined in the same scope * Example 2.45: Code outside the scope in which a variable was defined does not have access to the variable * Example 2.46: Variables with the same name can exist in different scopes with different values * Example 2.47: Functions can "see" changes in variable values after the function is defined * Example 2.48: Scope insanity * Example 2.49: How to lock in the value of i? * Example 2.50: Locking in the value of i with a closure * Example 2.51: Using a closure to access inner and outer object instances simultaneously * Example 3.1: A $(document).ready() block * Example 3.2: Shorthand for $(document).ready() * Example 3.3: Passing a named function instead of an anonymous function * Example 3.4: Selecting elements by ID * Example 3.5: Selecting elements by class name * Example 3.6: Selecting elements by attribute * Example 3.7: Selecting elements by compound CSS selector * Example 3.8: Pseudo-selectors * Example 3.9: Testing whether a selection contains elements * Example 3.10: Storing selections in a variable * Example 3.11: Refining selections * Example 3.12: Using form-related pseduo-selectors * Example 3.13: Chaining * Example 3.14: Formatting chained code * Example 3.15: Restoring your original selection using $.fn.end * Example 3.16: The $.fn.html method used as a setter * Example 3.17: The html method used as a getter * Example 3.18: Getting CSS properties * Example 3.19: Setting CSS properties * Example 3.20: Working with classes * Example 3.21: Basic dimensions methods * Example 3.22: Setting attributes * Example 3.23: Getting attributes * Example 3.24: Moving around the DOM using traversal methods * Example 3.25: Iterating over a selection * Example 3.26: Changing the HTML of an element * Example 3.27: Moving elements using different approaches * Example 3.28: Making a copy of an element * Example 3.29: Creating new elements * Example 3.30: Creating a new element with an attribute object * Example 3.31: Getting a new element on to the page * Example 3.32: Creating and adding an element to the page at the same time * Example 3.33: Manipulating a single attribute * Example 3.34: Manipulating multiple attributes * Example 3.35: Using a function to determine an attribute's new value * Example 4.1: Checking the type of an arbitrary value * Example 4.2: Storing and retrieving data related to an element * Example 4.3: Storing a relationship between elements using $.fn.data * Example 4.4: Putting jQuery into no-conflict mode * Example 4.5: Using the $ inside a self-executing anonymous function * Example 5.1: Event binding using a convenience method * Example 5.2: Event biding using the $.fn.bind method * Example 5.3: Event binding using the $.fn.bind method with data * Example 5.4: Switching handlers using the $.fn.one method * Example 5.5: Unbinding all click handlers on a selection * Example 5.6: Unbinding a particular click handler * Example 5.7: Namespacing events * Example 5.8: Binding Multiple Events * Example 6.1: A basic use of a built-in effect * Example 6.2: Setting the duration of an effect * Example 6.3: Augmenting jQuery.fx.speeds with custom speed definitions * Example 6.4: Running code when an animation is complete * Example 6.5: Run a callback even if there were no elements to animate * Example 6.6: Custom effects with $.fn.animate * Example 6.7: Per-property easing * Example 7.1: Using the core $.ajax method * Example 7.2: Using jQuery's Ajax convenience methods * Example 7.3: Using $.fn.load to populate an element * Example 7.4: Using $.fn.load to populate an element based on a selector * Example 7.5: Turning form data into a query string * Example 7.6: Creating an array of objects containing form data * Example 7.7: Using YQL and JSONP * Example 7.8: Setting up a loading indicator using Ajax Events * Example 8.1: Creating a plugin to add and remove a class on hover * Example 8.2: The Mike Alsup jQuery Plugin Development Pattern * Example 8.3: A simple, stateful plugin using the jQuery UI widget factory * Example 8.4: Passing options to a widget * Example 8.5: Setting default options for a widget * Example 8.6: Creating widget methods * Example 8.7: Calling methods on a plugin instance * Example 8.8: Responding when an option is set * Example 8.9: Providing callbacks for user extension * Example 8.10: Binding to widget events * Example 8.11: Adding a destroy method to a widget * Example 10.1: An object literal * Example 10.2: Using an object literal for a jQuery feature * Example 10.3: The module pattern * Example 10.4: Using the module pattern for a jQuery feature * Example 10.5: Using RequireJS: A simple example * Example 10.6: A simple JavaScript file with dependencies * Example 10.7: Defining a RequireJS module that has no dependencies * Example 10.8: Defining a RequireJS module with dependencies * Example 10.9: Defining a RequireJS module that returns a function Online: http://jqfundamentals.com/book/index.html
-
Eloquent JavaScript A Modern Introduction to Programming by Marijn Haverbeke Eloquent JavaScript is a book providing an introduction to the JavaScript programming language and programming in general. A concise and balanced mix of principles and pragmatics. I loved the tutorial-style game-like program development. This book rekindled my earliest joys of programming. Plus, JavaScript! —Brendan Eich, the man who gave us JavaScript The book exists in two forms. It was originally written and published in digital form, which includes interactive examples and a mechanism for playing with all the example code. This version is released under an open license. I have published a revised version of the book on paper. The structure of this version remained largely the same, but the whole text has been thorougly edited and updated. You can order from Amazon here. There is still an interactive coding environment for this version, as a seperate page. Errata are here. Contents 1. Introduction 2. Basic JavaScript: values, variables, and control flow 3. Functions 4. Data structures: Objects and Arrays 5. Error Handling 6. Functional Programming 7. Searching 8. Object-oriented Programming 9. Modularity 10. Regular Expressions 11. Web programming: A crash course 12. The Document-Object Model 13. Browser Events 14. HTTP requests Appendices 1. More (obscure) control structures 2. Binary Heaps Alphabetic index of terms Cover page Online: http://eloquentjavascript.net/print.html Sursa: Contents -- Eloquent JavaScript
-
Introduction to Programming Using Java Introduction to Programming Using Java, Fifth Edition Version 5.0, December 2006 Version 5.1.2, with minor corrections and updates, June 2010 (Version 5 Final Release) Author: David J. Eck (eck@hws.edu) WELCOME TO the fifth edition of Introduction to Programming Using Java, a free, on-line textbook on introductory programming, which uses Java as the language of instruction. This book is directed mainly towards beginning programmers, although it might also be useful for experienced programmers who want to learn something about Java. It is certainly not meant to provide complete coverage of the Java language. The fifth edition covers Java 5.0 and can also be used with later versions of Java. You will find many Java applets on the web pages that make up this book, and many of those applets require Java 5.0 or higher to function. Earlier editions, which covered earlier versions of Java, are still available; see the preface for links. You can download Introduction to Programming Using Java for use on your own computer. PDF and print versions are also available. Links can be found at the bottom of this page hort Table of Contents: * Full Table of Contents * Preface * Chapter 1: Overview: The Mental Landscape * Chapter 2: Programming in the Small I: Names and Things * Chapter 3: Programming in the Small II: Control * Chapter 4: Programming in the Large I: Subroutines * Chapter 5: Programming in the Large II: Objects and Classes * Chapter 6: Introduction to GUI Programming * Chapter 7: Arrays * Chapter 8: Correctness and Robustness * Chapter 9: Linked Data Structures and Recursion * Chapter 10: Generic Programming and Collection Classes * Chapter 11: Files and Networking * Chapter 12: Advanced GUI Programming * Source Code for All Examples in this Book * News and Errata Download: http://math.hws.edu/eck/cs124/downloads/javanotes5-linked.pdf Sursa, carte online: Javanotes 5.1.2 -- Title Page
-
Dive Into HTML5 by Mark Pilgrim with illustrations from the Public Domain Dive Into HTML5 seeks to elaborate on a hand-picked Selection of features from the HTML5 specification and other fine Standards. The final manuscript has been published on paper by O’Reilly, under the Google Press imprint. Buy the printed Work — artfully titled “HTML5: Up & Running” — and be the first in your Community to receive it. Your kind and sincere Feedback is always welcome. The Work shall remain online under the CC-BY-3.0 License. Table of Contents 1. Introduction: Five Things You Should Know About HTML50 2. A Quite Biased History of HTML51 3. Detecting HTML5 Features: It’s Elementary, My Dear Watson2 4. What Does It All Mean?3 5. Let’s Call It a Draw(ing Surface)4 6. Video in a Flash (Without That Other Thing)5 7. You Are Here (And So Is Everybody Else)6 8. A Place To Put Your Stuff7 9. Let’s Take This Offline8 10. A Form of Madness9 11. “Distributed,” “Extensibility,” And Other Fancy Words10 12. Manipulating History for Fun & Profit11 13. The All-In-One Almost-Alphabetical No-Bullshit Guide to Detecting EverythingA 14. HTML5 Peeks, Pokes and PointersB Download, capitole: http://diveintohtml5.org/
-
Learn You a Haskell Learn You a Haskell for Great Good! 1. Introduction * About this tutorial * So what's Haskell? * What you need to dive in 2. Starting Out * Ready, set, go! * Baby's first functions * An intro to lists * Texas ranges * I'm a list comprehension * Tuples 3. Types and Typeclasses * Believe the type * Type variables * Typeclasses 101 4. Syntax in Functions * Pattern matching * Guards, guards! * Where!? * Let it be * Case expressions 5. Recursion * Hello recursion! * Maximum awesome * A few more recursive functions * Quick, sort! * Thinking recursively 6. Higher Order Functions * Curried functions * Some higher-orderism is in order * Maps and filters * Lambdas * Only folds and horses * Function application with $ * Function composition 7. Modules * Loading modules * Data.List * Data.Char * Data.Map * Data.Set * Making our own modules 8. Making Our Own Types and Typeclasses * Algebraic data types intro * Record syntax * Type parameters * Derived instances * Type synonyms * Recursive data structures * Typeclasses 102 * A yes-no typeclass * The Functor typeclass * Kinds and some type-foo 9. Input and Output * Hello, world! * Files and streams * Command line arguments * Randomness * Bytestrings * Exceptions 10. Functionally Solving Problems * Reverse Polish notation calculator * Heathrow to London 11. Functors, Applicative Functors and Monoids * Functors redux * Applicative functors * The newtype keyword * Monoids 12. A Fistful of Monads * Getting our feet wet with Maybe * The Monad type class * Walk the line * do notation * The list monad * Monad laws 13. For a Few Monads More * Writer? I hardly know her! * Reader? Ugh, not this joke again. * Tasteful stateful computations * Error error on the wall * Some useful monadic functions * Making monads 14. Zippers * Taking a walk * A trail of breadcrumbs * Focusing on lists * A very simple file system * Watch your step Download, capitole: http://learnyouahaskell.com/chapters
-
Introduction to Design Patterns in C++ with Qt4 Alan Ezust Paul Ezust Abstract C++ is taught "The Qt way", with an emphasis on design patterns, and re-use of open source libraries and tools. By the end of the book, the reader should have a deep understanding of both the language and libraries, as well the design patterns used in developing software with them. Table of Contents Preface Acknowledgments Rationale for the Book I. Introduction to C++ and Qt 4 1. C++ Introduction 1.1. Overview of C++ 1.2. A Brief History of C++ 1.3. C++ First Example 1.4. Input and Output 1.4.1. Exercises: Input and Output 1.5. qmake, Project Files, and Makefile 1.5.1. #include: Finding Header Files 1.6. Getting Help Online 1.7. Strings 1.8. Streams 1.9. File Streams 1.9.1. Exercises: File Streams 1.10. Qt dialogs for user input/output 1.10.1. Exercises: Qt dialogs for user input/output 1.11. Identifiers, Types, and Literals 1.11.1. Exercises: Identifiers, Types, and Literals 1.12. C++ Simple Types 1.12.1. main, and Command Line Arguments 1.12.2. Arithmetic 1.12.3. Exercises: C++ Simple Types 1.13. The Keyword const 1.14. Pointers and Memory access 1.14.1. The Unary Operators & and * 1.14.2. Operators new and delete 1.14.3. Exercises: Pointers and Memory access 1.15. Reference Variables 1.16. const* and *const 1.17. Review Questions 1.17.1. Points of Departure 2. Top of the class 2.1. First, there was struct 2.2. Class definitions 2.3. Member Access Specifiers 2.4. Encapsulation 2.5. Qt Creator - An IDE for Qt Programming 2.6. Introduction to UML 2.6.1. UML Relationships 2.7. Friends of a Class 2.8. Constructors 2.9. Destructors 2.10. The Keyword static 2.11. Class Declarations and Defintions 2.12. Copy Constructors and Assignment Operators 2.13. Conversions 2.14. const Member Functions 2.15. Subobjects 2.16. Exercise: Classes 2.17. Review Questions 3. Introduction to Qt 3.1. Style Guidelines, Naming Conventions 3.1.1. Points of Departure 3.2. The Qt Core Module 3.2.1. Streams and Dates 3.2.2. Exercises: The Qt Core Module 3.3. Review Questions 3.3.1. Points of Departure 4. Lists 4.1. Introduction to Containers 4.2. Iterators 4.2.1. QStringList and iteration 4.3. Relationships 4.4. Exercise: Relationships 4.5. Review Questions 5. Functions 5.1. Function Declarations 5.2. Overloading Functions 5.2.1. Exercises: Overloading Functions 5.3. Default (Optional) Arguments 5.4. Operator Overloading 5.4.1. Exercises: Operator Overloading 5.5. Parameter Passing by Value 5.6. Parameter Passing by Reference 5.7. References to const 5.8. Function Return Values 5.9. Returning References from Functions 5.10. Overloading on const 5.10.1. Exercises: Overloading on const 5.11. inline Functions 5.11.1. Inlining versus Macro Expansion 5.12. Functions with Variable-length Argument Lists 5.13. Exercise: Encryption 5.14. Review Questions 6. Inheritance and Polymorphism 6.1. Simple Derivation 6.1.1. Inheritance Client Code Example 6.2. Derivation with Polymorphism 6.2.1. Exercises: Derivation with Polymorphism 6.3. Derivation from an Abstract Base Class 6.4. Inheritance Design 6.5. Overloading, Hiding, and Overriding 6.6. Constructors, Destructors, and Copy Assignment Operators 6.7. Processing Command-Line Arguments 6.7.1. Derivation and ArgumentList 6.8. Exercises: Inheritance and Polymorphism 6.9. Review Questions 6.9.1. Points of Departure II. Higher Level Programming 7. Libraries 7.1. Code Containers 7.2. Building and Reusing Libraries 7.2.1. Organizing Libraries: Dependency Management 7.2.2. Installing Libraries 7.2.2.1. Points of Departure 7.3. Installing Libraries: A Lab Exercise 7.4. Frameworks and Components 7.5. Review Questions 8. Introduction to Design patterns 8.1. Anti-patterns 8.2. The Iterator Pattern 8.2.1. Directories and Files: QDir and QFileInfo 8.2.2. Customizing FileVisitor using Inheritance 8.2.3. Exercises: The Iterator Pattern 8.2.4. QDirIterator and the Iterator pattern 8.3. Review Questions 9. QObject 9.1. QObject's Child Managment 9.1.1. Exercises: QObject's Child Managment 9.2. Parents and Children 9.2.1. Finding Children 9.3. QApplication and the Event Loop 9.3.1. Layouts: A First Look 9.3.2. Connecting to slots 9.3.3. Signals and Slots 9.3.3.1. Exercises: Signals and Slots 9.4. Q_OBJECT and moc: A checklist 9.4.1. Points of Departure 9.5. Values and Objects 9.6. Exercises: QObject 9.7. tr() and Internationalization. 9.8. Review Questions 10. Generics and Containers 10.1. Generics and Templates 10.1.1. Function Templates 10.1.1.1. Exercises: Function Templates 10.1.2. Class Templates 10.1.3. Exercises: Generics and Templates 10.2. Containers 10.3. Managed Containers, Composites and Aggregates 10.3.1. Exercises: Managed Containers, Composites and Aggregates 10.4. Generics, Algorithms, and Operators 10.4.1. Exercises: Generics, Algorithms, and Operators 10.5. Serializer Pattern 10.5.1. Exercises: Serializer Pattern 10.6. Sorted Map example 10.7. Flyweight pattern: Implicitly Shared Classes 10.7.1. Points of Departure 10.7.2. Exercises: Flyweight pattern: Implicitly Shared Classes 10.8. Exercise: QSet and QMap 10.9. Review Questions 11. Qt GUI Widgets 11.1. Widget Categories 11.2. QMainWindow and QSettings 11.2.1. QSettings: Saving and Restoring Application State 11.3. Dialogs 11.3.1. Input Dialogs and Widgets 11.3.2. Exercises: Dialogs 11.4. Images and Resources 11.5. Layout of Widgets 11.5.1. Spacing, Stretching, and Struts 11.5.2. Moving Widgets across Layouts 11.5.3. Exercises: Layout of Widgets 11.6. QActions, QMenus, and QMenuBars 11.6.1. QActions, QToolbars, and QActionGroups 11.6.1.1. Points of Departure 11.6.2. Exercises: QActions, QMenus, and QMenuBars 11.6.3. Exercise: CardGame GUI 11.7. Regions and QDockWidgets 11.8. Views of a QStringList 11.8.1. Exercises: Views of a QStringList 11.9. Qt Designer 11.10. Review Questions 11.10.1. Points of Departure 12. Concurrency 12.1. QProcess and Process Control 12.1.1. Processes and Environment 12.1.2. Qonsole: Writing an Xterm in Qt 12.1.3. Qonsole with Keyboard Events 12.1.4. Exercises: QProcess and Process Control 12.2. Threads and QThread 12.2.1. QPixmap and QThread Animation Example: Movie Player 12.2.2. Movie Player with QTimer 12.2.3. Multiple Threads, Queues, and Loggers Example: Giant 12.2.4. Thread Safety and QObjects 12.2.5. Exercises: Threads and QThread 12.3. Summary: QProcess and QThread 12.4. Review Questions 13. Models and Views 13.1. M-V-C: What about the Controller? 13.2. Qt 4 Models and Views 13.2.1. QStandardItemModel and Multiple Views 13.3. Table Models 13.4. Tree Models 13.4.1. Extended Tree Widget Items 13.4.1.1. Exercises: Extended Tree Widget Items 13.5. Form Models and Views 13.5.1. Form Models 13.5.2. Designer Forms and QDataWidgetMapper 13.5.2.1. Points of Departure 13.5.2.2. Exercises: Designer Forms and QDataWidgetMapper 13.6. Review Questions 14. Validation and Regular Expressions 14.1. Validators 14.2. Regular Expressions 14.2.1. Regular Expression Syntax 14.2.2. Regular Expressions: Phone Number Recognition 14.2.3. Exercises: Regular Expressions 14.3. Regular Expression Validation 14.4. Exercises: Validation and Regular Expressions 14.5. Review Questions 15. Parsing XML 15.1. The Qt XML Module 15.2. Event-Driven parsing 15.3. XML, Tree Structures, and DOM 15.3.1. Iterator Pattern: DOM Tree Walking 15.3.2. Generation of XML with DOM 15.3.3. Exercises: XML, Tree Structures, and DOM 15.4. Review Questions 16. Meta Objects, Properties, and Reflective Programming 16.1. QMetaObject - The Meta Object pattern 16.2. Type Identification and qobject_cast 16.3. Q_PROPERTY Macro - Describing QObject Properties 16.4. QVariant Class: Accessing Properties 16.5. DataObject: An Extension of QObject 16.6. Review Questions 17. More Design Patterns 17.1. Creational Patterns 17.1.1. Abstract Factory 17.1.2. Abstract Factories and Libraries 17.1.3. qApp and Singleton pattern 17.1.4. Creation Rules and Friend Functions 17.1.5. Benefits of Using Factories 17.1.6. Exercises: Creational Patterns 17.2. Memento Pattern 17.2.1. Exporting to XML 17.2.2. Importing Objects with an Abstract Factory 17.3. The Façade Pattern 17.4. Review Questions 17.4.1. Points of Departure 18. Database Programming 18.1. Intro to MySQL 18.2. Connecting to MySQL from Qt 18.3. Queries and Result Sets 18.4. Long Running Threads and the Command Pattern 18.5. Database Models III. C++ Language Reference 19. Types and Expressions 19.1. Operators 19.1.1. Table of Operators 19.2. Evaluation of Logical Expressions 19.3. Enumerations 19.4. Signed and Unsigned Integral Types 19.4.1. Exercises: Signed and Unsigned Integral Types 19.5. Standard Expression Conversions 19.5.1. Exercises: Standard Expression Conversions 19.6. Explicit Conversions 19.7. Safer ANSI C++ Typecast operators 19.7.1. static_cast and const_cast 19.7.1.1. Exercises: static_cast and const_cast 19.7.2. reinterpret_cast 19.7.3. Why not use C-style casts? 19.8. Overloading special operators 19.8.1. Conversion Operators 19.8.2. Vectors and operator[] 19.8.3. The Function-Call operator() 19.9. Runtime Type Identification (RTTI) 19.9.1. typeid operator 19.10. Member Selection operators 19.11. Exercises: Types and Expressions 19.12. Review Questions 20. Scope and Storage Class 20.1. Declarations and Definitions 20.2. Identifier Scope 20.2.1. Default Scope of Identifiers - A Summary 20.2.2. File Scope versus Block Scope and operator:: 20.2.2.1. Exercises: File Scope versus Block Scope and operator:: 20.3. Storage Class 20.3.1. Globals, static, and QObject 20.3.1.1. Globals and const 20.3.2. Exercises: Storage Class 20.4. Namespaces 20.4.1. Anonymous Namespaces 20.4.2. Open Namespaces 20.4.3. namespace, static objects and extern 20.5. Review Questions 21. Statements and Control Structures 21.1. Statements 21.2. Selection Statements 21.2.1. Exercises: Selection Statements 21.3. Iteration 21.3.1. Exercises: Iteration 21.4. Review Questions 22. Memory Access 22.1. Pointer Pathology 22.2. Further Pointer Pathology with Heap Memory 22.3. Memory Access Summary 22.4. Introduction to Arrays 22.5. Pointer Arithmetic 22.6. Arrays, Functions, and Return Values 22.7. Different kinds of arrays 22.8. Valid Pointer Operations 22.9. What happens if new fails? 22.9.1. set_new_handler() : Another Approach To new Failures 22.9.2. Using set_new_handler and bad_alloc 22.9.3. Checking for null: new(nothrow) 22.10. Chapter Summary 22.11. Review Questions 23. Inheritance in Detail 23.1. virtual pointers, virtual tables 23.2. Polymorphism and virtual destructors 23.3. Multiple Inheritance 23.3.1. Multiple Inheritance Syntax 23.3.2. Multiple Inheritance with Abstract Interfaces 23.3.2.1. Points of Departure 23.3.3. Resolving Multiple Inheritance Conflicts 23.3.3.1. virtual Inheritance 23.3.3.2. virtual Base Classes 23.4. public, protected, and private derivation 23.5. Review Questions IV. Programming Assignments 24. MP3 jukebox Assignments 24.1. Phonon Setup 24.2. Playlist 24.3. Playlists 24.4. Source Selector 24.5. Star Delegates 24.6. Filtering Views 24.7. File Tree SideBar 24.8. AutoDJ A. C++ Reserved keywords B. Standard Headers C. The Development Environment C.1. make and Makefile C.2. The Preprocessor: For #including Files C.3. Understanding the Linker C.3.1. Common Linker Error Messages C.4. Debugging C.4.1. Building a Debuggable Target C.4.1.1. Exercises: Building a Debuggable Target C.4.2. gdb Quickstart C.4.3. Finding Memory Errors C.5. Qt Assistant and Designer C.6. Open Source development tools, Libraries, IDEs. D. Alan's quickstart guide to Debian for programmers. D.1. The apt system D.2. update-alternatives E. C++/Qt Setup E.1. C++/Qt Setup: Open Source Platforms E.2. C++/Qt Setup: Win32 E.3. C++/Qt Setup: Mac OSX F. Errata Bibliography Index Download, capitole: http://cartan.cas.suffolk.edu/oopdocbook/opensource/index.html
-
Data Structures and Algorithms Annotated Reference with Examples This book written by Granville Barnett and Luca Del Tongo is part of an effort to provide all developers with a core understanding of algorithms that operate on various common, and uncommon data structures. Download: http://dotnetslackers.com/Community/files/folders/30283/download.aspx Sursa: Data Structures and Algorithms: Annotated Reference with Examples CHRISTMAS - DotNetSlackers Community
-
Linux Device Drivers, Third Edition By Jonathan Corbet, Alessandro Rubini, Greg Kroah-Hartman February 2005 Pages: 636 Open Book Content Title Pages License/Copyright Table of Contents About the Author/Colophon Preface Chapter 1: An Introduction to Device Drivers Chapter 2: Building and Running Modules Chapter 3: Char Drivers Chapter 4: Debugging Techniques Chapter 5: Concurrency and Race Conditions Chapter 6: Advanced Char Driver Operations Chapter 7: Time, Delays, and Deferred Work Chapter 8: Allocating Memory Chapter 9: Communicating with Hardware Chapter 10: Interrupt Handling Chapter 11: Data Types in the Kernel Chapter 12: PCI Drivers Chapter 13: USB Drivers Chapter 14: The Linux Device Model Chapter 15: Memory Mapping and DMA Chapter 16: Block Drivers Chapter 17: Network Drivers Chapter 18: TTY Drivers Bibliography Index Download, capitole: http://oreilly.com/catalog/linuxdrive3/book/index.csp
-
Let's Build a Compiler by Jack Crenshaw * Part 1: INTRODUCTION * Part 2: EXPRESSION PARSING * Part 3: MORE EXPRESSIONS * Part 4 INTERPRETERS * Part 5: CONTROL CONSTRUCTS * Part 6: BOOLEAN EXPRESSIONS * Part 7: LEXICAL SCANNING * Part 8: A LITTLE PHILOSOPHY * Part 9: A TOP VIEW * Part 10: INTRODUCING "TINY" * Part 11: LEXICAL SCAN REVISITED * Part 12: MISCELLANY * Part 13: PROCEDURES * Part 14: TYPES * Part 15: BACK TO THE FUTURE * Part 16: UNIT CONSTRUCTION Download the tutorial: http://compilers.iecc.com/crenshaw/tutorfinal.pdf Sursa: Let's Build a Compiler
-
Windows 7 Kernel Architecture Changes - api-ms-win-core files Windows 7 introduces a new set of dll files containing exported functions of many well-known WIN32 APIs. All these filenames begins with 'api-ms-win-core' prefix, followed by the functions category name. For example, api-ms-win-core-localregistry-l1-1-0.dll contains the exported names for all Registry functions, api-ms-win-core-file-l1-1-0.dll contains the exported names for all file-related functions, api-ms-win-core-localization-l1-1-0.dll contains the exported names for all localization functions, and so on. If you look deeply into these files, you'll see that all these files are very small, and the functions in them doen't do anything, and simply returns a 'TRUE' value. Just for example, here's the assembly language content of RegDeleteValueW function in api-ms-win-core-localregistry-l1-1-0.dll: 084010CE 33C0 xor eax, eax 084010D0 40 inc eax 084010D1 C20800 ret 0008 By looking in dependency walker utility, we can see that advapi32.dll, kernel32.dll, and other system dll files, are now statically linked to these empty api-ms-win-core files. Moreover, if we look in the assembly language output of many API functions, we can see that they simply call their corresponding function in one of these api-ms-win-core Dlls. Just for example, RegDeleteValueW in advapi32.dll, simply contains a jump to the RegDeleteValueW in API-MS-Win-Core-LocalRegistry-L1-1-0.dll: ADVAPI32!RegDeleteValueW: 77C6F301 8BFF mov edi, edi 77C6F303 55 push ebp 77C6F304 8BEC mov ebp, esp 77C6F306 5D pop ebp 77C6F307 EB05 jmp 77C6F30E . . . 77C6F30E FF25B414C677 Jmp dword ptr [77C614B4] <-- [77C614B4] Points the import entry of API-MS-Win-Core-LocalRegistry-L1-1-0.RegDeleteValueW So if RegDeleteValueW in ADVAPI32 and other functions simply jumps to empty functions, how is it possible that these functions still works properly ? The answer is pretty simple: When Windows loads the dll files, all the import entries of these api-ms-win-core Dlls are replaced with a call to a real function in Windows kernel. So here's our RegDeleteValueW example again: when loading a program into WinDbg, we can see that the jmp call now points to kernel32!RegDeleteValueW function. That's because during the loading of advapi32.dll, Windows automatically replace the import entry of API-MS-Win-Core-LocalRegistry-L1-1-0.RegDeleteValueW to the function address of RegDeleteValueW in kernel32. 75e5f301 8bff mov edi,edi 75e5f303 55 push ebp 75e5f304 8bec mov ebp,esp 75e5f306 5d pop ebp 75e5f307 eb05 jmp ADVAPI32!RegDeleteValueW+0xd (75e5f30e) . . . 75e5f30e ff25b414e575 jmp dword ptr [ADVAPI32+0x14b4 (75e514b4)] ds:0023:75e514b4= {kernel32!RegDeleteValueW (758bd5af)} Another new dll: kernelbase.dll In addition to the new API-MS-Win-Core dll files, there is also another new dll: kernelbase.dll In previous versions of Windows, most of the kernel32 functions called to their corresponding functions in ntdll.dll. In Windows 7, most of the kernel functions call to their corresponding functions in kernelbase.dll, and the kernelbase dll is the one that makes the calls to ntdll.dll Effects on existing applications - compatibility issues. Most of the existing applications should not be affected by this kernel change, because all standard API calls still works the same as in previous versions of Windows. However, there are some diagnostic/debugging applications that rely on the calls chain inside the Windows kernel. These kind of applications may not work properly in Windows 7. My own utilities, RegFromApp and ProcessActivityView failed to work under Windows 7 because of these changes, and that what led me to discover the kernel changes of Windows 7. These utilities problems already fixed and now they works properly in Windows 7. API-MS-Win-Core List Finally, here's the list of all core dll files added to Windows 7 and the functions list that each one of them contain. I used my own DLL Export Viewer utility to generate the list. Sursa si tabelul: http://nirsoft.net/articles/windows_7_kernel_architecture_changes.html
-
Free Feature-rich PHP Mailer Swift Mailer integrates into any web app written in PHP 5, offering a flexible and elegant object-oriented approach to sending emails with a multitude of features. Send emails using SMTP, sendmail, postfix or a custom Transport implementation of your own Support servers that require username & password and/or encryption Protect from header injection attacks without stripping request data content Send MIME compliant HTML/multipart emails Use event-driven plugins to customize the library Handle large attachments and inline/embedded images with low memory use Download: http://swiftmailer.org/downloads/get/Swift-4.0.6.tar.gz Sursa: Powerful component based mailing library for PHP – Swift Mailer
-
CSS 3.0 Maker Interesant zic eu http://www.css3maker.com/
-
Mozilla JavaScript Guide Quick Table of Contents About this Guide JavaScript Overview Values, Variables, and Literals Expressions and Operators Regular Expressions Statements Functions Working with Objects Predefined Core Objects Details of the object model Inheritance revisited Iterators and generators Closures LiveConnect Overview Processing XML with E4X Expanded Table of Contents About this Guide 1. New features in JavaScript versions 2. What you should already know 3. JavaScript versions 4. Where to find JavaScript information 5. Tips for learning JavaScript 5.1. An interactive interpreter 5.2. Firebug 6. Document conventions JavaScript Overview 1. What is JavaScript? 2. JavaScript and Java 3. JavaScript and the ECMAScript Specification 3.1. Relationship between JavaScript Versions and ECMAScript Editions 3.2. JavaScript Documentation versus the ECMAScript Specification 3.3. JavaScript and ECMAScript Terminology Values, Variables, and Literals 1. Values 1.1. Data Type Conversion 2. Variables 2.1. Declaring Variables 2.2. Evaluating Variables 2.3. Variable Scope 2.4. Global Variables 2.5. See Also 3. Constants 4. Literals 4.1. Array Literals 4.1.1. Extra Commas in Array Literals 4.2. Boolean Literals 4.3. Integers 4.4. Floating-Point Literals 4.5. Object Literals 4.6. String Literals 4.6.1. Using Special Characters in Strings 4.6.2. Escaping Characters 5. Unicode 5.1. Unicode compatibility with ASCII and ISO 5.2. Unicode Escape Sequences 5.3. Unicode characters in JavaScript files 5.4. Displaying characters with Unicode Expressions and Operators 1. Expressions 2. Operators 2.1. Assignment Operators 2.2. Comparison Operators 2.3. Arithmetic Operators 2.4. Bitwise Operators 2.4.1. Bitwise Logical Operators 2.4.2. Bitwise Shift Operators 2.5. Logical Operators 2.5.1. Short-Circuit Evaluation 2.6. String Operators 2.7. Special Operators 2.7.1. conditional operator 2.7.2. comma operator 2.7.3. delete 2.7.4. in 2.7.5. instanceof 2.7.6. new 2.7.7. this 2.7.8. typeof 2.7.9. void 2.8. Operator Precedence Regular Expressions 1. Creating a Regular Expression 2. Writing a Regular Expression Pattern 2.1. Using Simple Patterns 2.2. Using Special Characters 2.3. Using Parentheses 3. Working with Regular Expressions 3.1. Using Parenthesized Substring Matches 3.2. Advanced Searching With Flags 4. Examples 4.1. Changing the Order in an Input String 4.2. Using Special Characters to Verify Input Statements 1. Block Statement 2. Conditional Statements 2.1. if...else Statement 2.2. switch Statement 3. Loop Statements 3.1. for Statement 3.2. do...while Statement 3.3. while Statement 3.4. label Statement 3.5. break Statement 3.6. continue Statement 4. Object Manipulation Statements 4.1. for...in Statement 4.2. for each...in Statement 4.3. with Statement 5. Comments 6. Exception Handling Statements 6.1. Exception Types 6.2. throw Statement 6.3. try...catch Statement 6.3.1. The catch Block 6.3.2. The finally Block 6.3.3. Nesting try...catch Statements 6.4. Utilizing Error objects Functions 1. Defining Functions 2. Calling Functions 3. Using the arguments object 3.1. JavaScript 1.3 and earlier 4. Predefined Functions 4.1. eval Function 4.2. isFinite Function 4.3. isNaN Function 4.4. parseInt and parseFloat Functions 4.5. Number and String Functions 4.6. escape and unescape Functions Working with Objects 1. Objects and Properties 2. Enumerating all properties of an object 3. Creating New Objects 3.1. Using Object Initializers 3.2. Using a Constructor Function 3.3. Indexing Object Properties 3.4. Defining Properties for an Object Type 3.5. Defining Methods 3.6. Using this for Object References 3.7. Defining Getters and Setters 3.7.1. Obsolete syntaxes 3.7.2. Summary 3.7.3. See also 3.8. Deleting Properties 4. See also Predefined Core Objects 1. Array Object 1.1. Creating an Array 1.2. Populating an Array 1.3. Referring to Array Elements 1.4. Understanding length 1.5. Iterating over arrays 1.6. Array Methods 1.7. Two-Dimensional Arrays 1.8. Arrays and Regular Expressions 1.9. Working with Array-like objects 1.10. Array comprehensions 2. Boolean Object 3. Date Object 3.1. Methods of the Date Object 3.2. Using the Date Object: an Example 4. Function Object 5. Math Object 6. Number Object 7. RegExp Object 8. String Object Details of the object model 1. Class-based vs. prototype-based languages 1.1. Defining a class 1.2. Subclasses and inheritance 1.3. Adding and removing properties 1.4. Summary of differences 2. The employee example 3. Creating the hierarchy 4. Object properties 4.1. Inheriting properties 4.2. Adding properties 5. More flexible constructors 6. Property inheritance revisited 6.1. Local versus inherited values 6.2. Determining instance relationships 6.3. Global information in constructors 6.4. No multiple inheritance Inheritance revisited 1. Example 2. prototype and Object.getPrototypeOf Iterators and generators 1. Iterators 2. Defining custom iterators 3. Generators: a better way to build Iterators 4. Advanced generators 5. Generator expressions Closures 1. Practical closures 2. Emulating private methods with closures 3. Creating closures in loops: A common mistake 4. Performance considerations LiveConnect Overview 1. Working with Wrappers 2. JavaScript to Java Communication 2.1. The Packages Object 2.2. Working with Java Arrays 2.3. Package and Class References 2.4. Arguments of Type char 2.5. Handling Java Exceptions in JavaScript 3. Java to JavaScript Communication 3.1. Locating the LiveConnect classes 3.2. Using the LiveConnect classes with the JDK 3.3. Using the LiveConnect Classes 3.3.1. Accessing JavaScript with JSObject 3.3.2. Handling JavaScript Exceptions in Java 3.3.3. Backward Compatibility 4. Data Type Conversions 4.1. JavaScript to Java Conversions 4.1.1. Number Values 4.1.2. Boolean Values 4.1.3. String Values 4.1.4. Undefined Values 4.1.5. Null Values 4.1.6. JavaArray and JavaObject objects 4.1.7. JavaClass objects 4.1.8. Other JavaScript objects 4.2. Java to JavaScript Conversions Processing XML with E4X 1. Compatibility issues 2. Creating an XML object 3. Working with attributes 4. Working with XML objects 5. Working with XMLLists 6. Searching and filtering 7. Handling namespaces 7.1. Default 7.2. Non-default 8. Using Generators/Iterators with E4X 9. See also Tutorial: https://developer.mozilla.org/en/JavaScript/Guide
-
JavaScript Garden JavaScript Garden is a growing collection of documentation about the most quirky parts of the JavaScript programming language. It gives advice to avoid common mistakes, subtle bugs, as well as performance issues and bad practices that non-expert JavaScript programmers may encounter on their endeavours into the depths of the language. JavaScript Garden does not aim to teach you JavaScript. Former knowledge of the language is strongly recommended in order to understand the topics covered in this guide. In order to learn the basics of the language, please head over to the excellent guide on the Mozilla Developer Network. The Authors This guide is the work of two lovely Stack Overflow users, Ivo Wetzel (Writing) and Zhang Yi Jiang (Design). Contributors Caio Romão (Spelling corrections) Andreas Blixt (Language corrections) Hosting JavaScript Garden is hosted on GitHub, but Cramer Development supports us with a mirror at JavaScriptGarden.info. License JavaScript Garden is published under the MIT license and hosted on GitHub. If you find errors or typos please file an issue or a pull request on the repository. You can also find us in the JavaScript room on Stack Overflow chat. Objects Object Usage and Properties Everything in JavaScript acts like an object, with the only two exceptions being null and undefined. false.toString() // 'false' [1, 2, 3].toString(); // '1,2,3' function Foo(){} Foo.bar = 1; Foo.bar; // 1 A common misconception is that number literals cannot be used as objects. That is because a flaw in JavaScript's parser tries to parse the dot notation on a number as a floating point literal. 2.toString(); // raises SyntaxError There are a couple of workarounds which can be used in order make number literals act as objects too. 2..toString(); // the second point is correctly recognized 2 .toString(); // note the space left to the dot (2).toString(); // 2 is evaluated first Objects as a Data Type Objects in JavaScript can also be used as a Hashmap, they mainly consist of named properties mapping to values. Using a object literal - {} notation - it is possible to create a plain object. This new object inherits from Object.prototype and has no own properties defined on it. var foo = {}; // a new empty object // a new object with a property called 'test' with value 12 var bar = {test: 12}; Accessing Properties The properties of an object can be accessed in two ways, via either the dot notation, or the square bracket notation. var foo = {name: 'Kitten'} foo.name; // kitten foo['name']; // kitten var get = 'name'; foo[get]; // kitten foo.1234; // SyntaxError foo['1234']; // works Both notations are identical in their workings, with the only difference being that the square bracket notation allows for dynamic setting of properties, as well as the use of property names that would otherwise lead to a syntax error. Deleting Properties The only way to actually remove a property from an object is to use the delete operator; setting the property to undefined or null only remove the value associated with the property, but not the key. var obj = { bar: 1, foo: 2, baz: 3 }; obj.bar = undefined; obj.foo = null; delete obj.baz; for(var i in obj) { if (obj.hasOwnProperty(i)) { console.log(i, '' + obj[i]); } } The above outputs both bar undefined and foo null - only baz was removed and is therefore missing from the output. Notation of Keys var test = { 'case': 'I am a keyword so I must be notated as a string', delete: 'I am a keyword too so me' // raises SyntaxError }; Object properties can be both notated as plain characters and as strings. Due to another mis-design in JavaScript's parser, the above will throw a SyntaxError prior to ECMAScript 5. This error arises from the fact that delete is a keyword; therefore, it must be notated as a string literal to ensure that it will be correctly interpreted by older JavaScript engines. Articol frumos aranjat aici: http://bonsaiden.github.com/JavaScript-Garden/
-
Learning Advanced JavaScript 1) Our Goal 2) Defining Functions 3) Named Functions 4) Functions as Objects 5) Context 6) Instantiation 7) Flexible Arguments 8) Closures 9) Temporary Scope 10) Function Prototypes 11) Instance Type 12) Inheritance 13) Built-in Prototypes 14) Enforcing Function Context 15) Bonus: Function Length Tutorial: http://ejohn.org/apps/learn/
-
MenuetOS MenuetOS is an Operating System in development for the PC written entirely in 32/64 bit assembly language. Menuet64 is released under License and Menuet32 under GPL. Menuet supports 32/64 bit x86 assembly programming for smaller, faster and less resource hungry applications. Menuet isn't based on other operating system nor has it roots within UNIX or the POSIX standards. The design goal, since the first release in year 2000, has been to remove the extra layers between different parts of an OS, which normally complicate programming and create bugs. Menuet's application structure isn't specifically reserved for asm programming since the header can be produced with practically any other language. However, the overall application programming design is intended for 32/64 bit asm programming. Menuet programming is fast and easy to learn. Menuet's responsive GUI is easy to handle with assembly language. And Menuet64 is capable of running Menuet32 applications. Features - Pre-emptive multitasking with 1000hz scheduler, multithreading, multiprocessor, ring-3 protection - Responsive GUI with resolutions up to 1280x1024, 16 million colours - Free-form, transparent and skinnable application windows, drag'n drop - SMP multiprocessor support with currently up to 8 cpus - IDE: Editor/Assembler for applications - USB 2.0 Hi-speed storage, webcam, printer class and TV/Radio support - USB 1.1 Keyboard and mouse support - TCP/IP stack with Loopback & Ethernet drivers - Email/ftp/http/chess clients and ftp/mp3/http servers - Hard real-time data fetch - Fits on a single floppy, boots also from CD and USB drives Site oficial: http://www.menuetos.net/
-
Handbook of Applied Cryptography Chapter 1 - Overview of Cryptography Chapter 2 - Mathematics Background Chapter 3 - Number-Theoretic Reference Problems Chapter 4 - Public-Key Parameters Chapter 5 - Pseudorandom Bits and Sequences Chapter 6 - Stream Ciphers Chapter 7 - Block Ciphers Chapter 8 - Public-Key Encryption Chapter 9 - Hash Functions and Data Integrity Chapter 10 - Identification and Entity Authentication Chapter 11 - Digital Signatures Chapter 12 - Key Establishment Protocols Chapter 13 - Key Management Techniques Chapter 14 - Efficient Implementation Chapter 15 - Patents and Standards Appendix - Bibliography of Papers from Selected Cryptographic Forums References Index Sursa: Handbook of Applied Cryptography
-
Trebuie folosit winsock2.h. La inceput trebuie apelata functia WSAStartUp, la sfarsit trebuie apelata WSACleanup... Problema poate fi aici: sockfd = socket(AF_INET, SOCK_RAW, IPPROTO_TCP) Din cate stiu eu nu se pot crea RAW sockets pe Windows din motive de "securitate". In rest, pe langa cateva functii specifice Linux, se poate porta. Functiile pentru retea, desi Windows are versiuni specifice ale acestor functii, exista si in Windows Sockets API si nu ar trebui sa fie probleme. Edit: Pe Windows 7 cred ca merge: #include <stdio.h> #include <winsock2.h> int main() { WSADATA wsaData; SOCKET hSock; WSAStartup(MAKEWORD(2, 2), &wsaData); // Cream socketul hSock = socket(AF_INET, SOCK_RAW, IPPROTO_TCP); printf("Handlerul socketului: %d\r\n", hSock); closesocket(hSock); WSACleanup(); return 0; } Mai pe seara daca nu am ce face, incerc sa il portez.
-
Nu e cine stie ce, nu prea are optiuni si e detectabil. Nu cred ca are rost sa il uploadez din nou.
-
NTFS On-Disk Structure Visual Basic NTFS Programmer’s Guide © 2004 Alex Ionescu 1. BASIC CONCEPTS........................................................................................................................... 5 1.1 INTRODUCTION............................................................................................................................... 5 1.2 NTFS TERMINOLOGY .................................................................................................................... 5 1.3 GENERAL TERMINOLOGY.............................................................................................................. 6 1.4 NTFS VERSIONS............................................................................................................................ 7 2. THE BOOT RECORD........................................................................................................................ 7 2.1 DEFINITION..................................................................................................................................... 7 2.2 STRUCTURE..................................................................................................................................... 7 3. METAFILES ...................................................................................................................................... 10 3.1 INTRODUCTION............................................................................................................................. 10 3.1.1 Description .......................................................................................................................... 10 3.1.2 Listing (NTFS 3.0+) .......................................................................................................... 10 3.2 $MFT.............................................................................................................................................. 11 3.2.1 Description .......................................................................................................................... 11 3.2.2 Structure .............................................................................................................................. 11 3.3 $MFTMIRR ................................................................................................................................... 12 3.3.1 Description .......................................................................................................................... 12 3.3.2 Structure .............................................................................................................................. 13 3.4 $LOGFILE...................................................................................................................................... 13 3.4.1 Description .......................................................................................................................... 13 3.4.2 Structure .............................................................................................................................. 14 3.5 $VOLUME....................................................................................................................................... 14 3.5.1 Description .......................................................................................................................... 14 3.5.2 Structure .............................................................................................................................. 14 3.6 $ATTRDEF..................................................................................................................................... 15 3.6.1 Description .......................................................................................................................... 15 3.6.2 Structure .............................................................................................................................. 15 3.7 . (DOT) ............................................................................................................................................ 16 3.7.1 Description .......................................................................................................................... 16 3.7.2 Structure .............................................................................................................................. 17 3.8 $BITMAP ........................................................................................................................................ 17 3.8.1 Description .......................................................................................................................... 17 3.8.2 Structure .............................................................................................................................. 17 3.9 $BOOT............................................................................................................................................. 18 3.9.1 Description .......................................................................................................................... 18 3.9.2 Structure............................................................................................................................... 18 3.10 $BADCLUS.................................................................................................................................... 18 3.10.1 Description....................................................................................................................... 18 3.10.2 Structure........................................................................................................................... 18 3.11 $SECURE...................................................................................................................................... 19 3.11.1 Description....................................................................................................................... 19 3.11.2 Structure........................................................................................................................... 20 3.12 $UPCASE ..................................................................................................................................... 21 3.12.1 Description....................................................................................................................... 21 3.12.2 Structure........................................................................................................................... 22 3.13 $EXTEND...................................................................................................................................... 22 3.13.1 Description....................................................................................................................... 22 3.15 $OBJID........................................................................................................................................ 22 3.15.1 Description....................................................................................................................... 22 3.15.2 Structure........................................................................................................................... 23 3.16 $QUOTA........................................................................................................................................ 23 3.16.1 Description....................................................................................................................... 23 3.16.2 Structure........................................................................................................................... 24 3.17.1 Description....................................................................................................................... 26 3.17.2 Structure........................................................................................................................... 26 3. 18 $USNJRNL.................................................................................................................................. 27 3.18.1 Description....................................................................................................................... 27 3.18.2 Structure........................................................................................................................... 27 4. ATTRIBUTES.................................................................................................................................... 29 4.1 INTRODUCTION............................................................................................................................. 29 4.1.1 Definition ............................................................................................................................. 29 4.1.2 Listing (NTFS 3.0+) .......................................................................................................... 29 4.2 TYPES OF ATTRIBUTES ................................................................................................................ 31 4.2.1 Attribute Definition ......................................................................................................... 31 4.2.2 Attribute Structure........................................................................................................... 31 4.2.3 Nonresident Attribute Definition ............................................................................... 32 4.2.4 Nonresident Attribute Structure ................................................................................ 32 4.2.5 Resident Attribute Definition.................................................................................................... 33 4.2.6 Resident Attribute Structure........................................................................................ 33 4.2.7 Named and Unnamed Attributes................................................................................ 34 4.3 $STANDARD_INFORMATION............................................................................................. 34 4.3.1 Description .......................................................................................................................... 34 4.3.2 Structure .............................................................................................................................. 35 4.4 $ATTRIBUTE_LIST.................................................................................................................. 36 4.4.1 Description .......................................................................................................................... 36 4.4.2 Structure .............................................................................................................................. 36 4.5 $FILE_NAME .............................................................................................................................. 37 4.5.1 Description .......................................................................................................................... 37 4.6 $OBJECT_ID.............................................................................................................................. 38 4.6.1 Description .......................................................................................................................... 38 4.6.2 Structure .............................................................................................................................. 38 4.7 $SECURITY_DESCRIPTOR.................................................................................................. 39 4.7.1 Description .......................................................................................................................... 39 4.7.2 Structure .............................................................................................................................. 39 4.8 $VOLUME_NAME...................................................................................................................... 41 4.8.1 Description .......................................................................................................................... 41 4.9 $VOLUME_INFORMATION.................................................................................................. 41 4.9.1 Description .......................................................................................................................... 41 4.9.2 Structure .............................................................................................................................. 41 4.10 $DATA......................................................................................................................................... 42 4.10.1 Description....................................................................................................................... 42 4.10.2 Structure........................................................................................................................... 43 4.11 $INDEX_ROOT......................................................................................................................... 43 4.11.1 Description....................................................................................................................... 43 4.11.2 Structure........................................................................................................................... 44 4.12 $INDEX_ALLOCATION ........................................................................................................ 45 4.12.1 Description....................................................................................................................... 45 4.12.2 Structure........................................................................................................................... 46 4.13 $BITMAP................................................................................................................................... 47 4.13.1 Description....................................................................................................................... 47 4.13.2 Structure........................................................................................................................... 47 4.14 $REPARSE_POINT................................................................................................................. 47 4.14.1 Description....................................................................................................................... 47 4.14.2 Structure........................................................................................................................... 48 4.15 $EA_INFORMATION............................................................................................................. 49 4.15.1 Description....................................................................................................................... 49 4.15.2 Structure........................................................................................................................... 50 4.16 $EA............................................................................................................................................... 50 4.16.1 Description....................................................................................................................... 50 4.16.2 Structure........................................................................................................................... 50 4.17 $LOGGED_UTILITY_STREAM.......................................................................................... 51 4.17.1 Description....................................................................................................................... 51 4.17.2 Structure........................................................................................................................... 51 5.0 ADVANCED CONCEPTS ............................................................................................................ 52 5.1 VCNS AND LCNS .......................................................................................................................... 52 5.2 DATA RUNS ................................................................................................................................... 52 5.2.1 Definition ............................................................................................................................. 52 5.2.2 Structure .............................................................................................................................. 53 5.3 SECURITY CONCEPTS................................................................................................................... 58 5.3.1 SIDs ....................................................................................................................................... 58 5.3.2 ACLs ...................................................................................................................................... 61 5.3.3 ACEs ...................................................................................................................................... 61 5.4 INDEXES ......................................................................................................................................... 61 5.5 SPARSE FILES............................................................................................................................... 61 5.6 ENCRYPTION................................................................................................................................. 61 5.7 COMPRESSION ............................................................................................................................... 61 5.8 USNS .............................................................................................................................................. 61 Download: http://www.alex-ionescu.com/NTFS.pdf Sursa: Publications « Alex Ionescu’s Blog
-
INTRODUCTION TO NT INTERNALS Part 1: Processes, Threads, Fibers and Jobs © 2004 Alex Ionescu Table of Contents 1. INTRODUCTION................................................................................................................ 4 2. STRUCTURES AND TERMINOLOGY........................................................................... 5 3. IMAGE FILE EXECUTION (PROCESS CREATION)................................................. 8 4. USER-MODE PROCESS STRUCTURES..................................................................... 10 4.1 PROCESS ENVIRONMENT BLOCK (PEB)................................................................... 10 4.2 PROCESS PARAMETERS BLOCK (PPB)..................................................................... 23 4.3 LOADER DATA (LDRD).............................................................................................. 28 4.4 LOADED MODULE (LDR_LM)................................................................................... 28 4.5 VARIOUS OTHER STRUCTURES (PEB_FREE_BLOCK, RTL_BITMAP).............. 30 4.6 FLAGS (GLOBAL_FLAG, KAFFINITY)................................................................. 30 4.7 GDI STRUCTURES (HANDLE_TABLE, GDI_OBJECT)....................................... 32 5. KERNEL-MODE PROCESS STRUCTURES............................................................... 34 5.1 EXECUTIVE PROCESS (EPROCESS)........................................................................ 34 5.2 KERNEL PROCESS (KPROCESS)............................................................................. 48 5.3 LPC PORT (LPC_PORT_OBJECT)........................................................................ 53 5.4 HANDLE TABLE (HANDLE_TABLE)....................................................................... 57 5.5 VIRTUAL ADDRESS DESCRIPTOR TABLE (MM_AVL_TABLE) .............................. 60 5.6 TOKEN (TOKEN) ....................................................................................................... 62 6. USER-MODE THREAD STRUCTURES....................................................................... 68 6.1 THREAD ENVIRONMENT BLOCK (PEB) .................................................................... 68 6.2 NT THREAD INFORMATION BLOCK (TIB) ................................................................ 77 6.3 MISCELLANEOUS USER-MODE STRUCTURES ........................................................... 79 7. KERNEL-MODE THREAD STRUCTURES................................................................. 81 7.1 EXECUTIVE THREAD (ETHREAD) ........................................................................... 81 7.2 KERNEL THREAD (KTHREAD) ................................................................................ 87 7.3 IMPERSONATION (PS_IMPERSIONATION_INFORMATION) ........................ 100 7.4 APC STATE (KAPC_STATE) ................................................................................. 100 8. KERNEL-MODE JOB STRUCTURE.......................................................................... 102 8.1 EXECUTIVE JOB (EJOB).......................................................................................... 102 Download: http://www.alex-ionescu.com/part1.pdf Sursa: Publications « Alex Ionescu’s Blog
-
Pentru a fi compilat pe Windows trebuie portat
-
Visual Basic Image Internal Structure Format © 2004 Alex Ionescu Table of Contents STRUCTURE RELATIONSHIP DIAGRAM .............................................................................................. 3 1. THE VB HEADER. ............................................................................................................................. 4 THREAD FLAGS .......................................................................................................................... 4 MDL INTERNAL CONTROL FLAGS............................................................................................ 5 2. THE COM REGISTRATION DATA.............................................................................................. 6 2.1 THE COM REGISTRATION INFO. ........................................................................................ 6 2.2 THE DESIGNER INFO. .......................................................................................................... 7 OBJECT TYPES.......................................................................................................................... 7 3. THE PROJECT INFORMATION.................................................................................................. 8 4. THE SECONDARY PROJECT INFORMATION..................................................................... 8 5. THE OBJECT TABLE....................................................................................................................... 9 6. THE PRIVATE OBJECT DESCRIPTOR................................................................................... 9 7. THE PUBLIC OBJECT DESCRIPTOR.................................................................................... 10 8. THE OBJECT INFO......................................................................................................................... 10 9. THE OPTIONAL OBJECT INFO................................................................................................ 11 10. THE CONTROL INFO.................................................................................................................. 11 Download: http://www.alex-ionescu.com/vb.pdf Sursa: Publications « Alex Ionescu’s Blog
-
Native API Compression and Introduction to NT Design Autor: Alex Ionescu Chapter 1 – How NT works, in the average programmer’s words Chapter 2 – The Native API, for a programmer Chapter 3 – The Compression Application Download: http://www.alex-ionescu.com/Native.Pdf Sursa: Publications « Alex Ionescu’s Blog
-
Windows XP/2003 User-Mode Debugging Internals Autor: Alex Ionescu Windows XP/2003 User-Mode Debugging Internals, Part 1 http://www.alex-ionescu.com/dbgk-1.pdf Windows XP/2003 User-Mode Debugging Internals, Part 2 http://www.alex-ionescu.com/dbgk-2.pdf Windows XP/2003 User-Mode Debugging Internals, Part 3 http://www.alex-ionescu.com/dbgk-3.pdf Sursa: Publications « Alex Ionescu’s Blog