This document provides a quick reference to various VBScript elements including:
1. Sections for displaying output, handling errors, declaring variables, and connecting to WMI/LDAP.
2. Examples of common queries for processes, services, users, and OUs.
3. Covers conditional statements, loops, arrays, functions, and interacting with Office applications.
4. Shows how to execute scripts from the command line using cscript.exe or wscript.exe.
This document provides an explanation of VBScript for use in HP QuickTest Professional (QTP). It covers key VBScript concepts like data types, variables, arrays, constants, functions, subroutines, and arguments. It includes examples to demonstrate each concept. The document is organized into 12 sections covering these topics at a high level.
Presentation derived from the "What's new in Python 2.6" document on http://www.python.org/ including much reformatting for presenting and presenter notes.
Please download the Keynote original - that way the presentation notes aren't burned into the slides.
The document provides examples of how to perform various actions in QuickTest Professional (QTP) such as selecting items from a web list, setting values in a web edit, reading and writing data to text files, and using descriptive programming. Key examples include selecting the third item from a web list, setting the pincode value to "23" in a web edit, reading lines from one text file and writing them to another file, and setting the value "oshoworld" in the first web edit on a page using a descriptive program.
The document provides an overview of VBScript, including how it works when inserted into HTML documents, how to format VBScript code within HTML tags, and where to place VBScript code within an HTML document. It also discusses VBScript variables like declaring, assigning values to, and creating array variables. Finally, it covers VBScript procedures like Sub and Function procedures.
Groovy: to Infinity and Beyond -- JavaOne 2010 -- Guillaume LaforgeGuillaume Laforge
The document discusses features and changes in different versions of Groovy, a Java-based scripting language. It summarizes highlights from Groovy 1.6 including improved performance, multiple assignments, optional returns, annotations, AST transformations, the Grape module system, and more. It then discusses new features in Groovy 1.7 such as anonymous inner classes, nested classes, annotations anywhere, Grape improvements, power asserts, an AST viewer, and an AST builder.
This document provides an overview of scripting with VBScript, including the anatomy of a VBScript, error handling, reading from and writing to files, reading command line results, querying WMI and Active Directory, and building GUIs with HTA. It discusses variables, constants, objects, functions, and subroutines as the main elements of a VBScript. It also provides examples of reading from and writing to files, executing commands and reading the output, and querying WMI classes. Finally, it mentions tools like Microsoft Scriptomatic and WMIGen that can help generate VBScript code.
Descriptive programming allows testers to directly enter object information into test scripts without using an object repository. There are two main types: static programming, where object information is directly provided in the script using properties and values, and dynamic programming, where description objects are created and used in the script. Descriptive programming is useful when objects are dynamic, the object repository is large, the application is not ready for recording, or modifications are needed but the repository is read-only. It offers benefits like faster execution, portability, easier maintenance, and the ability to start testing without the full application.
The document discusses object-oriented programming and design principles. It defines OOP as a programming paradigm based on classes and cooperating objects. It then discusses the SOLID principles of object-oriented design, which are guidelines for writing reusable, flexible and maintainable code. Specifically, it emphasizes that classes and methods should have a single responsibility, code should be open for extension but closed for modification, and software should be designed to be easy to test, change and add new features to.
This document provides an explanation of VBScript for use in HP QuickTest Professional (QTP). It covers key VBScript concepts like data types, variables, arrays, constants, functions, subroutines, and arguments. It includes examples to demonstrate each concept. The document is organized into 12 sections covering these topics at a high level.
Presentation derived from the "What's new in Python 2.6" document on http://www.python.org/ including much reformatting for presenting and presenter notes.
Please download the Keynote original - that way the presentation notes aren't burned into the slides.
The document provides examples of how to perform various actions in QuickTest Professional (QTP) such as selecting items from a web list, setting values in a web edit, reading and writing data to text files, and using descriptive programming. Key examples include selecting the third item from a web list, setting the pincode value to "23" in a web edit, reading lines from one text file and writing them to another file, and setting the value "oshoworld" in the first web edit on a page using a descriptive program.
The document provides an overview of VBScript, including how it works when inserted into HTML documents, how to format VBScript code within HTML tags, and where to place VBScript code within an HTML document. It also discusses VBScript variables like declaring, assigning values to, and creating array variables. Finally, it covers VBScript procedures like Sub and Function procedures.
Groovy: to Infinity and Beyond -- JavaOne 2010 -- Guillaume LaforgeGuillaume Laforge
The document discusses features and changes in different versions of Groovy, a Java-based scripting language. It summarizes highlights from Groovy 1.6 including improved performance, multiple assignments, optional returns, annotations, AST transformations, the Grape module system, and more. It then discusses new features in Groovy 1.7 such as anonymous inner classes, nested classes, annotations anywhere, Grape improvements, power asserts, an AST viewer, and an AST builder.
This document provides an overview of scripting with VBScript, including the anatomy of a VBScript, error handling, reading from and writing to files, reading command line results, querying WMI and Active Directory, and building GUIs with HTA. It discusses variables, constants, objects, functions, and subroutines as the main elements of a VBScript. It also provides examples of reading from and writing to files, executing commands and reading the output, and querying WMI classes. Finally, it mentions tools like Microsoft Scriptomatic and WMIGen that can help generate VBScript code.
Descriptive programming allows testers to directly enter object information into test scripts without using an object repository. There are two main types: static programming, where object information is directly provided in the script using properties and values, and dynamic programming, where description objects are created and used in the script. Descriptive programming is useful when objects are dynamic, the object repository is large, the application is not ready for recording, or modifications are needed but the repository is read-only. It offers benefits like faster execution, portability, easier maintenance, and the ability to start testing without the full application.
The document discusses object-oriented programming and design principles. It defines OOP as a programming paradigm based on classes and cooperating objects. It then discusses the SOLID principles of object-oriented design, which are guidelines for writing reusable, flexible and maintainable code. Specifically, it emphasizes that classes and methods should have a single responsibility, code should be open for extension but closed for modification, and software should be designed to be easy to test, change and add new features to.
Tom Lazar Using Zope3 Views And Viewlets For Plone 3.0 Product DevelopmentVincenzo Barone
A hands-on workshop on how to use Zope3 Views and Viewlets in Products targeted for Plone 3.0 (and why you would want to do so). Special emphasis will be on best practices in general, handling and validation of forms and how Zope3's shiny new toys make it easier to write reusable code and cleaner markup. Finally, the talk will deal with how Views and Viewlets can help you make your product better cacheable. Although the talk is targeted at Plone integrators who already have experience using the older CMF-based approach it will also try to address people new to Plone who want to customize it in a future-proof manner.
Presented at Confoo (Montreal, Cananda)
Let's spend some time seeing how easy it can be to set up Mocha and Chai, a testing framework for JavaScript/CoffeeScript, in your application. We'll learn how to test that our jQuery or Backbone code is doing what it supposed to. It's really not as hard as you think it might be.
1. The document describes the initialization process of SurfaceFlingerService in Android.
2. SurfaceFlinger is instantiated which creates the main SurfaceFlinger instance. This triggers the initialization of various core Android services.
3. The main display is initialized by creating a DisplayHardware instance and a graphic plane for the display. Shared memory is allocated to share display information.
Rewrite few familiar Cocoa Touch code examples from Obj-C to Swift by learning to use Closures, Enums, Switch-Case with Pattern matching, Singleton, GCD, CoreGraphics.
Presented at Tel Aviv iOS Developers Meetup.
My Favourite 10 Things about Xcode/ObjectiveCJohnKennedy
The document provides a summary of the author's favorite Xcode and Objective-C techniques. It discusses 10 techniques including: 1) Xcode keyboard shortcuts; 2) dragging from the NIB editor into header files; 3) useful NSString initialization; 4) useful NSString comparisons; 5) testing if a file exists; 6) time delay before method call; 7) delegate callback to parent AppDelegate; 8) using delegates to perform actions when a modal dialog closes; 9) two-part animation blocks; and 10) using UICollections, tags and iOS 5. For each technique, it provides an example code snippet and a brief explanation of when and how to use the technique.
Apache Cassandra in Bangalore - Cassandra Internals and Performanceaaronmorton
Cassandra internals and performance was presented. The key points covered include:
1) Cassandra has a layered architecture with APIs, a Dynamo layer, and a database layer. The Dynamo layer implements the Dynamo paper and handles replication and failure handling.
2) The database layer includes the memtable, SSTables, commit log and more. It handles writes, flushes, compactions and reads from storage.
3) A number of performance tests were shown measuring the impact of configuration parameters like memtable flush queue size, commit log sync period, and secondary indexes on write and read latency. Bloom filters, compactions and concurrency were also discussed.
Testing JavaScript/CoffeeScript with Mocha and ChaiMark
Presented at the Burlington Ruby Conference on July 28th.
Learn just how easy it is to test your JavaScript and CoffeeScript code. Don't be scared by events, DOM interactions, or AJAX requests any more!
This document discusses JavaScript looping statements. It describes for, for...in, for...of, while, and do...while loops. For loops run statements a specified number of times or iterate over properties of an object. While and do-while loops run code while/until a condition is false. Examples are provided for each loop type to demonstrate their syntax and usage.
This document provides an overview and introduction to JavaScript basics and best practices. It covers what JavaScript is, how engines work, language features, and future developments like ES6. The basics section discusses types, variables, expressions, statements, functions, objects, and prototypical inheritance. The best practices section focuses on techniques for enterprise applications. The document is intended to help front-end developers learn JavaScript fundamentals.
This document provides best practices for writing JavaScript code. It recommends using strict comparison operators (=== and !==), declaring variables with 'var' to avoid globals, adding comments with /* */, using object literals for configuration, validating external data, optimizing loops, and using dot and bracket notation wisely based on property visibility. Braces {} should be used to clearly delimit blocks. Variable types should not be changed after declaration and shortcuts like conditionals (?:) can optimize code.
Javascript basics for automation testingVikas Thange
This document provides an overview of basic JavaScript examples and concepts. It covers topics such as writing JavaScript code, variables, conditional statements, functions, loops, events, and error handling. For each topic, it provides short code snippets to demonstrate the concept. It concludes by referencing W3Schools as a resource and thanking the reader.
Delegates allow methods to be passed as arguments or returned as the value of functions, while interfaces define contracts that classes implement. Delegates can reference a single method, while interfaces may define multiple methods and properties that implementing classes must support. Delegates are commonly used for event handling, whereas interfaces are more general contracts for implementing common behaviors across unrelated classes.
This document summarizes a presentation given by Colin Gemmell, a developer who transitioned from .NET to Ruby on Rails. It discusses his motivations for the switch, compares the development environments and practices between the two platforms, and touches on some of the benefits and challenges of Rails development.
You may all know that JSON is a subset of JavaScript, but... Did you know that HTML5 implements NoSQL databases? Did you know that JavaScript was recommended for REST by Roy T. Fielding himself? Did you know that map & reduce are part of the native JavaScript API? Did you know that most NoSQL solutions integrate a JavaScript engine? CouchDB, MongoDB, WakandaDB, ArangoDB, OrientDB, Riak.... And when they don't, they have a shell client which does...
The story of NoSQL and JavaScript goes beyond your expectations and open more opportunities than you might imagine... What better match could you find than a flexible and dynamic language for schemaless databases? Isn't, an event-driven language what you were waiting for to manage eventually consistency? When NoSQL doesn't come to JavaScript, JavaScript comes to NoSQL, and does it very well...
The document provides an overview of the Objective-C runtime and how it can be used in practice. It begins with introductions and then covers key topics like what the runtime is, how it supports object-oriented features in Objective-C, and how Foundation provides a simpler interface to interact with the runtime. It then demonstrates various runtime capabilities like dealing with classes, protocols, messages, and dynamic messaging. It also covers more advanced techniques like lazy method resolution, forwarding, swizzling, dynamic class generation, and property generation. Code examples are provided to demonstrate many of these runtime features in practice.
Making Java more dynamic: runtime code generation for the JVMRafael Winterhalter
While Java’s strict type system is a great help for avoiding programming errors, it also takes away some of the flexibility that developers appreciate when using dynamic languages. By using runtime code generation, it is possible to bring some of this flexibility back to the Java virtual machine. For this reason, runtime code generation is widely used by many state-of-the-art Java frameworks for implementing POJO-centric APIs but it also opens the door to assembling more modular applications. This presentation offers an introduction to the complex of runtime code generation and its use on the Java platform. Furthermore, it discusses the up- and downsides of several code generation libraries such as ASM, Javassist, cglib and Byte Buddy.
This document provides a quick reference to VBScript concepts and syntax. It includes examples of how to connect to computers and retrieve objects, query for services and processes using WMI, open and read/write to text files, create dictionary objects, use conditional statements and loops, work with arrays and functions/subroutines, and automate Microsoft Office applications like Excel, Word, Access and Outlook. It also provides tips on sending output and setting defaults for the cscript and wscript hosts.
This document discusses why every tester should learn Ruby. It notes that testers often use scripting languages like VBScript, SQABasic, RobotJ, and VU to automate tests, but that Ruby is a better alternative being a simple yet powerful object-oriented and dynamic programming language. Ruby has a high testing culture in its community and is used for test automation with frameworks like Selenium and Watir for web testing, JRuby for GUI testing with Java libraries, and can interface with databases using Ruby-PLSQL-Spec for testing Oracle PL/SQL code. The document provides examples of test scripts in Ruby and argues that Ruby allows tests to serve as executable specifications.
Tom Lazar Using Zope3 Views And Viewlets For Plone 3.0 Product DevelopmentVincenzo Barone
A hands-on workshop on how to use Zope3 Views and Viewlets in Products targeted for Plone 3.0 (and why you would want to do so). Special emphasis will be on best practices in general, handling and validation of forms and how Zope3's shiny new toys make it easier to write reusable code and cleaner markup. Finally, the talk will deal with how Views and Viewlets can help you make your product better cacheable. Although the talk is targeted at Plone integrators who already have experience using the older CMF-based approach it will also try to address people new to Plone who want to customize it in a future-proof manner.
Presented at Confoo (Montreal, Cananda)
Let's spend some time seeing how easy it can be to set up Mocha and Chai, a testing framework for JavaScript/CoffeeScript, in your application. We'll learn how to test that our jQuery or Backbone code is doing what it supposed to. It's really not as hard as you think it might be.
1. The document describes the initialization process of SurfaceFlingerService in Android.
2. SurfaceFlinger is instantiated which creates the main SurfaceFlinger instance. This triggers the initialization of various core Android services.
3. The main display is initialized by creating a DisplayHardware instance and a graphic plane for the display. Shared memory is allocated to share display information.
Rewrite few familiar Cocoa Touch code examples from Obj-C to Swift by learning to use Closures, Enums, Switch-Case with Pattern matching, Singleton, GCD, CoreGraphics.
Presented at Tel Aviv iOS Developers Meetup.
My Favourite 10 Things about Xcode/ObjectiveCJohnKennedy
The document provides a summary of the author's favorite Xcode and Objective-C techniques. It discusses 10 techniques including: 1) Xcode keyboard shortcuts; 2) dragging from the NIB editor into header files; 3) useful NSString initialization; 4) useful NSString comparisons; 5) testing if a file exists; 6) time delay before method call; 7) delegate callback to parent AppDelegate; 8) using delegates to perform actions when a modal dialog closes; 9) two-part animation blocks; and 10) using UICollections, tags and iOS 5. For each technique, it provides an example code snippet and a brief explanation of when and how to use the technique.
Apache Cassandra in Bangalore - Cassandra Internals and Performanceaaronmorton
Cassandra internals and performance was presented. The key points covered include:
1) Cassandra has a layered architecture with APIs, a Dynamo layer, and a database layer. The Dynamo layer implements the Dynamo paper and handles replication and failure handling.
2) The database layer includes the memtable, SSTables, commit log and more. It handles writes, flushes, compactions and reads from storage.
3) A number of performance tests were shown measuring the impact of configuration parameters like memtable flush queue size, commit log sync period, and secondary indexes on write and read latency. Bloom filters, compactions and concurrency were also discussed.
Testing JavaScript/CoffeeScript with Mocha and ChaiMark
Presented at the Burlington Ruby Conference on July 28th.
Learn just how easy it is to test your JavaScript and CoffeeScript code. Don't be scared by events, DOM interactions, or AJAX requests any more!
This document discusses JavaScript looping statements. It describes for, for...in, for...of, while, and do...while loops. For loops run statements a specified number of times or iterate over properties of an object. While and do-while loops run code while/until a condition is false. Examples are provided for each loop type to demonstrate their syntax and usage.
This document provides an overview and introduction to JavaScript basics and best practices. It covers what JavaScript is, how engines work, language features, and future developments like ES6. The basics section discusses types, variables, expressions, statements, functions, objects, and prototypical inheritance. The best practices section focuses on techniques for enterprise applications. The document is intended to help front-end developers learn JavaScript fundamentals.
This document provides best practices for writing JavaScript code. It recommends using strict comparison operators (=== and !==), declaring variables with 'var' to avoid globals, adding comments with /* */, using object literals for configuration, validating external data, optimizing loops, and using dot and bracket notation wisely based on property visibility. Braces {} should be used to clearly delimit blocks. Variable types should not be changed after declaration and shortcuts like conditionals (?:) can optimize code.
Javascript basics for automation testingVikas Thange
This document provides an overview of basic JavaScript examples and concepts. It covers topics such as writing JavaScript code, variables, conditional statements, functions, loops, events, and error handling. For each topic, it provides short code snippets to demonstrate the concept. It concludes by referencing W3Schools as a resource and thanking the reader.
Delegates allow methods to be passed as arguments or returned as the value of functions, while interfaces define contracts that classes implement. Delegates can reference a single method, while interfaces may define multiple methods and properties that implementing classes must support. Delegates are commonly used for event handling, whereas interfaces are more general contracts for implementing common behaviors across unrelated classes.
This document summarizes a presentation given by Colin Gemmell, a developer who transitioned from .NET to Ruby on Rails. It discusses his motivations for the switch, compares the development environments and practices between the two platforms, and touches on some of the benefits and challenges of Rails development.
You may all know that JSON is a subset of JavaScript, but... Did you know that HTML5 implements NoSQL databases? Did you know that JavaScript was recommended for REST by Roy T. Fielding himself? Did you know that map & reduce are part of the native JavaScript API? Did you know that most NoSQL solutions integrate a JavaScript engine? CouchDB, MongoDB, WakandaDB, ArangoDB, OrientDB, Riak.... And when they don't, they have a shell client which does...
The story of NoSQL and JavaScript goes beyond your expectations and open more opportunities than you might imagine... What better match could you find than a flexible and dynamic language for schemaless databases? Isn't, an event-driven language what you were waiting for to manage eventually consistency? When NoSQL doesn't come to JavaScript, JavaScript comes to NoSQL, and does it very well...
The document provides an overview of the Objective-C runtime and how it can be used in practice. It begins with introductions and then covers key topics like what the runtime is, how it supports object-oriented features in Objective-C, and how Foundation provides a simpler interface to interact with the runtime. It then demonstrates various runtime capabilities like dealing with classes, protocols, messages, and dynamic messaging. It also covers more advanced techniques like lazy method resolution, forwarding, swizzling, dynamic class generation, and property generation. Code examples are provided to demonstrate many of these runtime features in practice.
Making Java more dynamic: runtime code generation for the JVMRafael Winterhalter
While Java’s strict type system is a great help for avoiding programming errors, it also takes away some of the flexibility that developers appreciate when using dynamic languages. By using runtime code generation, it is possible to bring some of this flexibility back to the Java virtual machine. For this reason, runtime code generation is widely used by many state-of-the-art Java frameworks for implementing POJO-centric APIs but it also opens the door to assembling more modular applications. This presentation offers an introduction to the complex of runtime code generation and its use on the Java platform. Furthermore, it discusses the up- and downsides of several code generation libraries such as ASM, Javassist, cglib and Byte Buddy.
This document provides a quick reference to VBScript concepts and syntax. It includes examples of how to connect to computers and retrieve objects, query for services and processes using WMI, open and read/write to text files, create dictionary objects, use conditional statements and loops, work with arrays and functions/subroutines, and automate Microsoft Office applications like Excel, Word, Access and Outlook. It also provides tips on sending output and setting defaults for the cscript and wscript hosts.
This document discusses why every tester should learn Ruby. It notes that testers often use scripting languages like VBScript, SQABasic, RobotJ, and VU to automate tests, but that Ruby is a better alternative being a simple yet powerful object-oriented and dynamic programming language. Ruby has a high testing culture in its community and is used for test automation with frameworks like Selenium and Watir for web testing, JRuby for GUI testing with Java libraries, and can interface with databases using Ruby-PLSQL-Spec for testing Oracle PL/SQL code. The document provides examples of test scripts in Ruby and argues that Ruby allows tests to serve as executable specifications.
The document discusses the basics of JavaScript including:
1. JavaScript allows adding programming to webpages and is not a standalone language like Java.
2. Common uses of JavaScript include browser detection, storing cookies, controlling browser windows, and validating forms.
3. Scripts can be placed internally between HTML tags or externally via link tags.
4. JavaScript includes objects, properties, methods, variables, operators, statements, and event handlers.
5. Common output methods are alert, write, and print while input methods include confirm and prompt.
6. Other basics covered are variables, conditional statements like if/else, switch, and iterations like for and while loops.
"Applied Enterprise Metaprogramming in JavaScript", Vladyslav DukhinFwdays
Is it possible to write a program that significantly changes its behaviour during the runtime without changing its source code? Have you ever wondered about native TypeScript support in Node.js? Or whether it is possible to write JavaScript code that syntactically feels a lot different but is still valid? The answers to these and a lot of other questions will be discussed in detail in this talk. From the basics of metaprogramming theory to practical examples of its application in enterprise projects. We are going to talk about metalinguistic abstractions, domain-specific languages, and how they can help us solve software engineering problems. We will take a look at how popular frameworks and libraries like React.js, Express.js, Nest.js and Lodash use metaprogramming to develop systems that are used worldwide. Moreover, we will learn how to think in terms of metaprograms and broaden our outlook towards the great world of metasystems.
Playing With Fire - An Introduction to Node.jsMike Hagedorn
node.js is an evented server-side Javascript framework powered by the Google V8 Javascript engine. It is a platform ideal for creating highly scalable web applications. It has the same simplicity of frameworks such as Sinatra, but is designed to be more peformant from the ground up. This performance is achieved by making all network I/O non blocking and all file I/O asynchronous. We will go over how that impacts the development experience, and walk through a simple web application. Javascript is foundational to this type of I/O because it is already evented by design. We will also take a brief look a similar evented frameworks such as ruby`s EventMachine.
Workshop Consul .- Service Discovery & Failure DetectionVincent Composieux
This workshop uses a Docker Swarm cluster to deploy a Consul agent and uses Registrator to automatically register Docker containers services into Consul and add a health check on it.
Beyond simple benchmarks—a practical guide to optimizing code Particular Software
We know it’s vital that code executed at scale performs well. But how do we know if our performance optimizations actually make it faster? Fortunately, we have powerful tools which help—BenchmarkDotNet is a .NET library for benchmarking optimizations, with many simple examples to help get started.
In most systems, the code we need to optimize is rarely straightforward. It contains assumptions we need to discover before we even know what to improve. The code is hard to isolate. It has dependencies, which may or may not be relevant to optimization. And even when we’ve decided what to optimize, it’s hard to reliably benchmark the before and after. Only measurements can tell us if our changes actually make things faster. Without them, we could even make things slower, without realizing.
In this webinar you’ll learn how to:
- Identify areas of improvement which optimize the effort-to-value ratio
- Isolate code to make its performance measurable without extensive refactoring
- Apply the performance loop of measuring, changing and validating to ensure performance actually improves and nothing breaks
- Gradually become more “performance aware” without costing an arm and a leg
The document discusses automatic programming and proposes a recipe for generating test code to automatically test functions by saving the current environment and state, generating code to load this and instantiate the function with current inputs, running the function, and asserting the output matches what is expected. It provides links to resources on model driven architecture, documentation generation, and code generation tools like Doxygen that are relevant to automatic programming.
JavaScript is a scripting language used to make web pages interactive. It was created in 1995 and standardized as ECMAScript. JavaScript can access and modify the content, structure, and style of documents. It is used to handle events, perform animations, and interact with forms on web pages. Common uses of JavaScript include form validation, navigation menus, lightboxes, and sliders on websites.
Andrii Dembitskyi "Events in our applications Event bus and distributed systems"Fwdays
События являются довольно сильным инструментом для приложений:
коммуникация между компонентами системы;
история действий над данными;
триггеры для операций;
интеграция с посторонними системами.
Во время доклада я расскажу о применениях событий. На какие грабли можно наступить спеша в выборе инструмента и какое место они имеют в нашей архитектуре.
PVS-Studio was used to analyze the code of the ReactOS operating system project. Over 200 errors and code quality issues were found, demonstrating the need for regular static analysis in large, distributed projects. Examples are provided of various types of errors found, including misprints, logical errors, uninitialized variables, and issues with whitespace and formatting. The author argues that static analysis should be a mandatory part of the development process for projects like ReactOS, and that the project would benefit from disallowing the use of tabs in code formatting.
We have checked the Windows 8 Driver Samples pack with our analyzer PVS-Studio and found various bugs in its samples. There is nothing horrible about it - bugs can be found everywhere, so the title of this article may sound a bit high-flown. But these particular errors may be really dangerous, as it is a usual practice for developers to use demo samples as a basis for their own projects or borrow code fragments from them.
This document provides an overview of JavaScript, including its history, uses, syntax, variables, data types, operators, conditional statements, loops, functions, and ways to display output. Some key points:
- JavaScript is a scripting language used to add interactivity to HTML pages. It was originally developed by Brendan Eich at Netscape under the names Mocha and LiveScript.
- JavaScript code can be embedded within HTML using <script> tags or linked externally via the src attribute. Common uses include form validation, dynamic updating of content, and interactive effects.
- The language supports variables, arrays, objects, numbers, strings, booleans, and other data types. Conditional statements like if
VBScript is a scripting language that can be used to add interactivity to HTML pages. It allows scripts to be inserted into HTML documents and executed when the page loads or in response to events. There are different types of statements that can be used in VBScript, including conditional statements to perform different actions depending on decisions, and looping statements to repeat blocks of code a specified number of times or until a condition is met. Procedures like subroutines and functions can also be created to organize blocks of VBScript code and potentially return values. Variables are used to store and manipulate data during script execution.
Better Open Source Enterprise C++ Web ServicesWSO2
In this webinar/presentation presented on November 10, 2009, Nandika Jayawardana explores the capabilities of the WSO2 Web Services Framework for C++ (WSO2 WSF/C++) to develop and deploy Web services in C++.
The document discusses loops and arrays in JavaScript. It describes the different types of loops - while, do-while and for loops. It provides examples to demonstrate each loop. It also describes arrays, including single and multi-dimensional arrays. It explains how to declare and access array elements. Finally, it discusses various array methods like concat, join, push etc and provides examples to use these methods.
QA Fest 2019. Антон Молдован. Load testing which you always wantedQAFest
Десь рік тому ми почали працювати над новою версією наших продуктів. Саме тоді ми почали випробовувати різні технології, архітектури, підходи, а головне це — міряти performance, бо без цього в highload проектах взагалі не вижити.
При проектуванні “любої” системи нам потрібно знати її ліміти:
- скільки паралельних запитів може обробити мікросервіс за допустиму latency?
- як багато запитів може витримати база даних, яку ми використовуємо?
- як довго потрібно чекати на Push повідомлення?
- як довго триває розподілена транзакція та між якими сервісами відбувається найбільша затримка?
І таких питань у нас було безліч. В процесі тестування ми використовували різний tooling: JMeter, ab, Gatling, але всі вони надавали дуже лімітовані можливості. Нам не вдавалося нормально покрити push flow (WebSockets/SSE), різні бази даних, було складно імітувати різний workloads (update/read).
На цій зустрічі я розповім про наш досвід застосування load testing:
- що використовуємо для тестування баз даних, мікросервісів;
- як готуємо Pull/Push тести та як адаптуємо тести під різні протоколи (HTTP/WebSockets/SSE);
- які виникають проблеми з замірами latency.
Моя доповідь дуже практична, тому після неї ви зможете з легкістю почати застосовувати load testing у себе на проекті.
This document provides an introduction and overview of MSpec and behavior-driven development (BDD) testing. It discusses the Arrange-Act-Assert pattern for unit testing, describes what BDD is and how to structure tests around user stories and acceptance criteria. It demonstrates creating MSpec and Machine.Fakes tests using contexts, behaviors, subjects, and fakes. It also provides resources for learning more and examples of open source projects using MSpec.
Conf soat tests_unitaires_Mockito_jUnit_170113SOAT
Vous subissez les régressions à chaque livraison ? Vous ne voyez pas l’intérêt des tests unitaires car ils ne servent qu’à tester des additions ? Si c’est le cas, suivez David dans la quête du Test Driven Development. Nous rencontrerons pléthore d'ennemies contre lesquels nous aurons à combattre : bugs, complexité, code statique, couplage fort. Ils essaieront de nous barrer la route, mais heureusement, nous pourrons compter sur nos alliés jUnit, Mockito, refactoring et injection/dépendance
This document discusses the different types of statements used in QuickTest Professional (QTP) test scripts, including declarations, comments, utility statements, object calls, flow control statements, function/action calls, checkpoints, output value statements, synchronization points, and VBScript statements. Declarations are used to define variables and constants. Comments explain parts of the test script. Utility statements launch applications and control program flow. Object calls interact with application objects. Flow control statements include if/else, select case, loops, and more. Functions and actions encapsulate reusable code. Checkpoints and output values verify test results. Synchronization waits ensure objects are ready. VBScript provides additional programming constructs.
Gender and Mental Health - Counselling and Family Therapy Applications and In...PsychoTech Services
A proprietary approach developed by bringing together the best of learning theories from Psychology, design principles from the world of visualization, and pedagogical methods from over a decade of training experience, that enables you to: Learn better, faster!
Communicating effectively and consistently with students can help them feel at ease during their learning experience and provide the instructor with a communication trail to track the course's progress. This workshop will take you through constructing an engaging course container to facilitate effective communication.
Chapter wise All Notes of First year Basic Civil Engineering.pptxDenish Jangid
Chapter wise All Notes of First year Basic Civil Engineering
Syllabus
Chapter-1
Introduction to objective, scope and outcome the subject
Chapter 2
Introduction: Scope and Specialization of Civil Engineering, Role of civil Engineer in Society, Impact of infrastructural development on economy of country.
Chapter 3
Surveying: Object Principles & Types of Surveying; Site Plans, Plans & Maps; Scales & Unit of different Measurements.
Linear Measurements: Instruments used. Linear Measurement by Tape, Ranging out Survey Lines and overcoming Obstructions; Measurements on sloping ground; Tape corrections, conventional symbols. Angular Measurements: Instruments used; Introduction to Compass Surveying, Bearings and Longitude & Latitude of a Line, Introduction to total station.
Levelling: Instrument used Object of levelling, Methods of levelling in brief, and Contour maps.
Chapter 4
Buildings: Selection of site for Buildings, Layout of Building Plan, Types of buildings, Plinth area, carpet area, floor space index, Introduction to building byelaws, concept of sun light & ventilation. Components of Buildings & their functions, Basic concept of R.C.C., Introduction to types of foundation
Chapter 5
Transportation: Introduction to Transportation Engineering; Traffic and Road Safety: Types and Characteristics of Various Modes of Transportation; Various Road Traffic Signs, Causes of Accidents and Road Safety Measures.
Chapter 6
Environmental Engineering: Environmental Pollution, Environmental Acts and Regulations, Functional Concepts of Ecology, Basics of Species, Biodiversity, Ecosystem, Hydrological Cycle; Chemical Cycles: Carbon, Nitrogen & Phosphorus; Energy Flow in Ecosystems.
Water Pollution: Water Quality standards, Introduction to Treatment & Disposal of Waste Water. Reuse and Saving of Water, Rain Water Harvesting. Solid Waste Management: Classification of Solid Waste, Collection, Transportation and Disposal of Solid. Recycling of Solid Waste: Energy Recovery, Sanitary Landfill, On-Site Sanitation. Air & Noise Pollution: Primary and Secondary air pollutants, Harmful effects of Air Pollution, Control of Air Pollution. . Noise Pollution Harmful Effects of noise pollution, control of noise pollution, Global warming & Climate Change, Ozone depletion, Greenhouse effect
Text Books:
1. Palancharmy, Basic Civil Engineering, McGraw Hill publishers.
2. Satheesh Gopi, Basic Civil Engineering, Pearson Publishers.
3. Ketki Rangwala Dalal, Essentials of Civil Engineering, Charotar Publishing House.
4. BCP, Surveying volume 1
How to Make a Field Mandatory in Odoo 17Celine George
In Odoo, making a field required can be done through both Python code and XML views. When you set the required attribute to True in Python code, it makes the field required across all views where it's used. Conversely, when you set the required attribute in XML views, it makes the field required only in the context of that particular view.
This document provides an overview of wound healing, its functions, stages, mechanisms, factors affecting it, and complications.
A wound is a break in the integrity of the skin or tissues, which may be associated with disruption of the structure and function.
Healing is the body’s response to injury in an attempt to restore normal structure and functions.
Healing can occur in two ways: Regeneration and Repair
There are 4 phases of wound healing: hemostasis, inflammation, proliferation, and remodeling. This document also describes the mechanism of wound healing. Factors that affect healing include infection, uncontrolled diabetes, poor nutrition, age, anemia, the presence of foreign bodies, etc.
Complications of wound healing like infection, hyperpigmentation of scar, contractures, and keloid formation.
हिंदी वर्णमाला पीपीटी, hindi alphabet PPT presentation, hindi varnamala PPT, Hindi Varnamala pdf, हिंदी स्वर, हिंदी व्यंजन, sikhiye hindi varnmala, dr. mulla adam ali, hindi language and literature, hindi alphabet with drawing, hindi alphabet pdf, hindi varnamala for childrens, hindi language, hindi varnamala practice for kids, https://www.drmullaadamali.com
Strategies for Effective Upskilling is a presentation by Chinwendu Peace in a Your Skill Boost Masterclass organisation by the Excellence Foundation for South Sudan on 08th and 09th June 2024 from 1 PM to 3 PM on each day.
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxEduSkills OECD
Iván Bornacelly, Policy Analyst at the OECD Centre for Skills, OECD, presents at the webinar 'Tackling job market gaps with a skills-first approach' on 12 June 2024
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
Vbscript reference
1. VBScript Quick Reference VBScript Quick Reference
IGNORE RUNTIME ERRORS FORCE VARIABLE DECLARATION
DISPLAY TO STANDARD OUTPUT HTA SECTION
<head> On Error Resume Next Option Explicit
Wscript.Echo “Display this text” <title>HTA Test</title>
<HTA:APPLICATION
CHECK FOR AN ERROR CLEAR THE ERROR CACHE
DISPLAY TO MESSAGE BOX APPLICATIONNAME="HTA Test"
SCROLL="yes" SINGLEINSTANCE="yes" If Err.Number Then Err.Clear
WINDOWSTATE="maximize" >
MsgBox(“Prompt”, vbOKCancel, “Title”) ‘ an error occurred (execute this statement each
</head>
</head> End If time you check the Err object)
DISPLAY TO POPUP DIALOG BOX
SCRIPT SECTION
WshShell.Popup(“Message”, 5, “Title”, 1) <script language="VBScript“> COMPUTER VARIABLE (local computer)
5: number of seconds to display popup box Sub window_OnLoad
1: displays the OK and Cancel buttons ' Script to run on startup
strComputer = “.”
End Sub
Sub TestSub
' Script code goes here CONNECT TO WMI
End Sub
</script> Set objWMIService = GetObject("winmgmts:" & strComputer & "rootcimv2")
HTML SECTION
QUERY: RETRIEVE ALL PROCESSES
<body> <input type="button"
value="Run Script" Set colProcessList = objWMIService.ExecQuery("Select * from Win32_Process")
name="run_button" ")
onClick="TestSub">
OPEN TEXT FILE FOR READING </body> QUERY: RETRIEVE ALL SERVICES
Const ForReading = 1 Set colServiceList = objWMIService.ExecQuery("Select * from Win32_Service")
Set objFSO = CreateObject _
("Scripting.FileSystemObject")
Set objTextFile = objFSO.OpenTextFile _ COMPUTER VARIABLE (local computer)
("c:scriptsservers.txt", ForReading) strComputer = “localhost”
CREATE DICTONARY OBJECT RETRIEVE AN OU
OPEN TEXT FILE FOR WRITING
Set objDictionary = _ Set objOU = GetObject("LDAP://ou=finance,dc=fabrikam,dc=com")
Const ForWriting = 2 CreateObject("Scripting.Dictionary")
RETRIEVE A USER ACCOUNT
Set objFSO = CreateObject _
("Scripting.FileSystemObject") POPULATE DICTIONARY OBJECT Set objUser = GetObject("LDAP://cn=ken myer, ou=Finance, dc=fabrikam, dc=com")
Set objTextFile = objFSO.OpenTextFile _
("c:scriptsservers.txt", ForWriting) objDictionary.Add key, item BIND TO THE LOCAL COMPUTER
Set colAccounts = GetObject("WinNT://" & strComputer)
2. VBScript Quick Reference VBScript Quick Reference
LOOPS
For Loops Do Loops
For Each x in arr Do Until x > 5
On Error Resume Next CONDITIONAL STATEMENTS ... ...
If Then Select Case Next Loop
Const ADS_SCOPE_ONELEVEL = 1
If x = 4 Then Select Case x For i = 1 to 10 Do While x < 5
Set objConnection = CreateObject("ADODB.Connection")
Set objCommand = CreateObject("ADODB.Command") … Case 1 ... ...
objConnection.Provider = "ADsDSOObject" ElseIf x = 5 ... Next Loop
objConnection.Open "Active Directory Provider" Then Case 2
Set objCommand.ActiveConnection = objConnection … ... Do
Else Case Else While Loops ...
objCommand.Properties("Page Size") = 1000 Loop Until x > 5
objCommand.Properties("Searchscope") = ADS_SCOPE_ONELEVEL
... …
End If End Select While x < 5
… Do
objCommand.CommandText = _
"SELECT Name FROM 'LDAP://OU=finance,dc=fabrikam,dc=com'“ Wend ...
Learn more about scripting Loop While x < 5
Set objRecordSet = objCommand.Execute
from the Microsoft Windows
2000 Scripting Guide, ARRAYS
available online (and yes,
despite the title most of the arrItems =
concepts apply to later Array("a","b","c") FUNCTIONS AND SUBROUTINES
versions of Windows too): Function Subroutine
Dim arr(2)
http://www.microsoft.com arr(0) = 20 Function TestFunc Sub TestSub
/technet/scriptcenter/guide arr(1) = 30 … …
EXCEL TestFunc = 10 End Sub
ReDim Preserve arr(3) End Function
Set objExcel = CreateObject("Excel.Application") arr(2) = 40
objExcel.Visible = True
Set objWorkbook = objExcel.Workbooks.Add
WORD
Set objWord = CreateObject("Word.Application")
objWord.Visible = True
Set objDoc = objWord.Documents.Open("c:scriptstest.doc")
SEND OUTPUT TO COMMAND WINDOW SET DEFAULT TO CSCRIPT
ACCESS
Set objAccess = CreateObject("Access.Application") C:> cscript test.vbs C:> cscript //H:cscript
objAccess.OpenCurrentDatabase "C:ScriptsTest.mdb"
OUTLOOK SEND OUTPUT TO MESSAGE BOX SET DEFAULT TO WSCRIPT
Set objOutlook = CreateObject("Outlook.Application")
Set objNamespace = objOutlook.GetNamespace("MAPI")
C:> wscript test.vbs C:> cscript //H:wscript
OUTLOOK