This Unity Editor Extensions allows you to select the viewing direction for a SceneView with the Blender -like hotkeys.
e.g. Numpad 1/3/7 as switch front/right/top view. Numpad 5 as toggle orthographic projection.
This document provides examples of functions in Clojure and summaries of testing tools Midje. It shows:
1. Examples of Clojure functions like areduce to apply an expression to array elements, with-precision to set decimal precision, and with-redefs to temporarily mock function values.
2. A brief overview of the Midje testing tool, including using facts to make tests more readable based on assertions, the syntax using midje.sweet, and features like metaconstants and checkers.
3. How to use Midje with a Clojure project including creating a new project, adding a tasks file, writing tests, and mixing deftest functions with facts.
The document defines a LogicEquation class and several supporting classes that allow for analyzing and evaluating logic equations. The LogicEquation class can tokenize an equation string into individual logic products, resolve variable keys, and evaluate the overall equation by iterating through each product. The main() function demonstrates analyzing and evaluating a sample logic equation.
Retrieving data from database using result set (1)rishisingh190
This document discusses retrieving data from a database using the ResultSet and Statement interfaces in Java. It explains how to use a Statement object to execute a SQL query and retrieve the ResultSet. It also covers using a PreparedStatement object to execute parameterized queries and retrieve the ResultSet. The document provides code examples of retrieving field data from the ResultSet and closing the resources.
This document discusses unit testing and the use of stubs and mocks. It provides examples of how to create stub and mock objects using Phake, a PHP mocking framework. Stub objects are pre-programmed to return expected values during tests, while mock objects also allow for verifying that expected methods were called with the correct parameters. The document shows how to stub and mock method calls, magic methods, and verify invocation counts and order using Phake.
This document discusses mocking dependencies in PHPUnit tests. It begins by defining dependencies and dependency injection, and why it is important to mock dependencies in unit tests. It then covers defining test doubles like mocks, stubs, and dummies to simulate dependencies. Various examples are provided for mocking different types of dependencies, like APIs, databases, and external data sources. The goal of mocking is to test units of code in isolation without relying on other components, in order to make tests faster and more reliable.
This document discusses functions in R language and data analysis. It explains control structures like if/else statements, the ... argument which allows a variable number of arguments, function arguments and defaults, lazy evaluation of arguments, and how the ... argument is used when the number of arguments is unknown. Examples are provided to illustrate if/else logic, formals() to view function arguments, and how ... passes variable arguments to functions like paste() and cat().
1. The document discusses functions in Swift including defining functions, parameters, return values, argument labels, and default parameter values.
2. Functions are defined using the func keyword followed by a function name and parameters. The function body contains the code to be executed.
3. Parameters pass information into a function and can be single or multiple, labeled or unlabeled. Return values return data from the function.
Functional programming languages promise to be easier to test and easier to debug. However, when learning the functional way we often try to translate our current techniques to another language. This is usually not easy and the end result is far from those promises we've heard. Early frustrations might even discourage from further learning.
In this talk I will show you two very simple patterns:
- Designing code around single data structure
- Dealing with impure parts of program like DBs, external services or IO
This should give beginners jump start for their first toy projects and further exploration.
This document provides examples of functions in Clojure and summaries of testing tools Midje. It shows:
1. Examples of Clojure functions like areduce to apply an expression to array elements, with-precision to set decimal precision, and with-redefs to temporarily mock function values.
2. A brief overview of the Midje testing tool, including using facts to make tests more readable based on assertions, the syntax using midje.sweet, and features like metaconstants and checkers.
3. How to use Midje with a Clojure project including creating a new project, adding a tasks file, writing tests, and mixing deftest functions with facts.
The document defines a LogicEquation class and several supporting classes that allow for analyzing and evaluating logic equations. The LogicEquation class can tokenize an equation string into individual logic products, resolve variable keys, and evaluate the overall equation by iterating through each product. The main() function demonstrates analyzing and evaluating a sample logic equation.
Retrieving data from database using result set (1)rishisingh190
This document discusses retrieving data from a database using the ResultSet and Statement interfaces in Java. It explains how to use a Statement object to execute a SQL query and retrieve the ResultSet. It also covers using a PreparedStatement object to execute parameterized queries and retrieve the ResultSet. The document provides code examples of retrieving field data from the ResultSet and closing the resources.
This document discusses unit testing and the use of stubs and mocks. It provides examples of how to create stub and mock objects using Phake, a PHP mocking framework. Stub objects are pre-programmed to return expected values during tests, while mock objects also allow for verifying that expected methods were called with the correct parameters. The document shows how to stub and mock method calls, magic methods, and verify invocation counts and order using Phake.
This document discusses mocking dependencies in PHPUnit tests. It begins by defining dependencies and dependency injection, and why it is important to mock dependencies in unit tests. It then covers defining test doubles like mocks, stubs, and dummies to simulate dependencies. Various examples are provided for mocking different types of dependencies, like APIs, databases, and external data sources. The goal of mocking is to test units of code in isolation without relying on other components, in order to make tests faster and more reliable.
This document discusses functions in R language and data analysis. It explains control structures like if/else statements, the ... argument which allows a variable number of arguments, function arguments and defaults, lazy evaluation of arguments, and how the ... argument is used when the number of arguments is unknown. Examples are provided to illustrate if/else logic, formals() to view function arguments, and how ... passes variable arguments to functions like paste() and cat().
1. The document discusses functions in Swift including defining functions, parameters, return values, argument labels, and default parameter values.
2. Functions are defined using the func keyword followed by a function name and parameters. The function body contains the code to be executed.
3. Parameters pass information into a function and can be single or multiple, labeled or unlabeled. Return values return data from the function.
Functional programming languages promise to be easier to test and easier to debug. However, when learning the functional way we often try to translate our current techniques to another language. This is usually not easy and the end result is far from those promises we've heard. Early frustrations might even discourage from further learning.
In this talk I will show you two very simple patterns:
- Designing code around single data structure
- Dealing with impure parts of program like DBs, external services or IO
This should give beginners jump start for their first toy projects and further exploration.
This document discusses good and bad properties of unit tests. It provides examples of good unit tests that are understandable, maintainable, repeatable, necessary, granular, and fast. Bad unit tests may not be understandable, maintainable, repeatable, necessary, granular, or fast. The document also discusses how to design code for testability by injecting dependencies like clocks to control test conditions. Unit tests should be treated as an executable specification and avoiding writing legacy code without tests.
The document discusses various approaches to defining conditions and querying for active users in a DRY (Don't Repeat Yourself) manner in CakePHP. It shows how to define reusable conditions, merge conditions, and build conditions dynamically with arrays.
The document discusses various bad practices for unit testing code. It begins with background about the author and importance of test quality. It then covers specific test smells like code duplication, assertion roulette, eager tests, fragile tests, and tests with obscure or unclear purpose. Examples are provided from testing Zend Framework and Doctrine code. The author advocates for well-structured tests that isolate dependencies and clearly validate single behaviors or scenarios.
So you are thinking of unit-testing the applications you work on a daily basis or already started to do so? Congratulations, but the really hard part is maintaining your test quality on such a high level so that you don't give up on testing down the road. In this talk I discuss unit-testing bad practices and test-smells, how to avoid them and show examples from open-source projects.
This document summarizes various MongoDB array query and update operators. It provides examples of using the $all, $elemMatch, $in, and $ operators to query or update array fields. The $all operator matches arrays containing all specified elements. $elemMatch matches arrays containing an element matching a sub-query. $in selects arrays containing an element equal to any in the specified array. The $ operator acts as a placeholder when updating the first matched array element by position.
Original presentation is Richard Carlsson's at Erlang Factory Bay Area 2009.
Erlangの世界的なイベントの中のEUnitの説明の資料です。分かりやすくEUnitの特徴がまとまっています。翻訳を許可してくれて、オリジナルの資料を送っていただいたRichardさんに感謝したいと思います。
This document provides an overview of selecting elements from lists and numpy arrays in Python. It demonstrates how to select a single element, slice a range of elements, select elements from nested lists and 2D numpy arrays. Various list and numpy array methods are also described, such as sorting, appending, inserting, deleting and calculating statistics.
This document describes a Mob plugin for IntelliJ IDEs. It includes details like the plugin ID, name, vendor, and a description. It defines an action to start a Mob session from within IntelliJ. It also defines a project settings configurable to configure Mob settings.
This document discusses good and bad properties of unit tests. It provides examples of good unit tests that are understandable, maintainable, repeatable, necessary, granular, and fast. Bad unit tests may not be understandable, maintainable, repeatable, necessary, granular, or fast. The document also discusses how to design code for testability by injecting dependencies like clocks to control test conditions. Unit tests should be treated as an executable specification and avoiding writing legacy code without tests.
The document discusses various approaches to defining conditions and querying for active users in a DRY (Don't Repeat Yourself) manner in CakePHP. It shows how to define reusable conditions, merge conditions, and build conditions dynamically with arrays.
The document discusses various bad practices for unit testing code. It begins with background about the author and importance of test quality. It then covers specific test smells like code duplication, assertion roulette, eager tests, fragile tests, and tests with obscure or unclear purpose. Examples are provided from testing Zend Framework and Doctrine code. The author advocates for well-structured tests that isolate dependencies and clearly validate single behaviors or scenarios.
So you are thinking of unit-testing the applications you work on a daily basis or already started to do so? Congratulations, but the really hard part is maintaining your test quality on such a high level so that you don't give up on testing down the road. In this talk I discuss unit-testing bad practices and test-smells, how to avoid them and show examples from open-source projects.
This document summarizes various MongoDB array query and update operators. It provides examples of using the $all, $elemMatch, $in, and $ operators to query or update array fields. The $all operator matches arrays containing all specified elements. $elemMatch matches arrays containing an element matching a sub-query. $in selects arrays containing an element equal to any in the specified array. The $ operator acts as a placeholder when updating the first matched array element by position.
Original presentation is Richard Carlsson's at Erlang Factory Bay Area 2009.
Erlangの世界的なイベントの中のEUnitの説明の資料です。分かりやすくEUnitの特徴がまとまっています。翻訳を許可してくれて、オリジナルの資料を送っていただいたRichardさんに感謝したいと思います。
This document provides an overview of selecting elements from lists and numpy arrays in Python. It demonstrates how to select a single element, slice a range of elements, select elements from nested lists and 2D numpy arrays. Various list and numpy array methods are also described, such as sorting, appending, inserting, deleting and calculating statistics.
This document describes a Mob plugin for IntelliJ IDEs. It includes details like the plugin ID, name, vendor, and a description. It defines an action to start a Mob session from within IntelliJ. It also defines a project settings configurable to configure Mob settings.
This document contains notes from an ATEC meeting on May 26, 2011. The agenda items included discussing JUnit, the Android testing framework, and Android mocking. It provides details on different types of Android test cases like AndroidTestCase and ActivityInstrumentationTestCase2. It also covers how to use mocks in Android tests to isolate dependencies and make tests less fragile. Private methods and fields are discussed as challenges for testing. The benefits of using mocks to avoid dependencies on actual classes are explained.
This document summarizes notes from an ATEC meeting on May 26, 2011. It discusses using JUnit for Android testing, including different types of test cases like AndroidTestCase and ActivityInstrumentationTestCase2. It also covers challenges like testing private methods and fragile tests due to dependencies on implementation details. Mocking libraries and APIs is presented as a solution to make tests less brittle against code changes. The document advocates for using mocks to isolate tests from Android framework classes and external dependencies.
Hierarchical Digital Twin of a Naval Power SystemKerry Sado
A hierarchical digital twin of a Naval DC power system has been developed and experimentally verified. Similar to other state-of-the-art digital twins, this technology creates a digital replica of the physical system executed in real-time or faster, which can modify hardware controls. However, its advantage stems from distributing computational efforts by utilizing a hierarchical structure composed of lower-level digital twin blocks and a higher-level system digital twin. Each digital twin block is associated with a physical subsystem of the hardware and communicates with a singular system digital twin, which creates a system-level response. By extracting information from each level of the hierarchy, power system controls of the hardware were reconfigured autonomously. This hierarchical digital twin development offers several advantages over other digital twins, particularly in the field of naval power systems. The hierarchical structure allows for greater computational efficiency and scalability while the ability to autonomously reconfigure hardware controls offers increased flexibility and responsiveness. The hierarchical decomposition and models utilized were well aligned with the physical twin, as indicated by the maximum deviations between the developed digital twin hierarchy and the hardware.
HEAP SORT ILLUSTRATED WITH HEAPIFY, BUILD HEAP FOR DYNAMIC ARRAYS.
Heap sort is a comparison-based sorting technique based on Binary Heap data structure. It is similar to the selection sort where we first find the minimum element and place the minimum element at the beginning. Repeat the same process for the remaining elements.
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsVictor Morales
K8sGPT is a tool that analyzes and diagnoses Kubernetes clusters. This presentation was used to share the requirements and dependencies to deploy K8sGPT in a local environment.
Understanding Inductive Bias in Machine LearningSUTEJAS
This presentation explores the concept of inductive bias in machine learning. It explains how algorithms come with built-in assumptions and preferences that guide the learning process. You'll learn about the different types of inductive bias and how they can impact the performance and generalizability of machine learning models.
The presentation also covers the positive and negative aspects of inductive bias, along with strategies for mitigating potential drawbacks. We'll explore examples of how bias manifests in algorithms like neural networks and decision trees.
By understanding inductive bias, you can gain valuable insights into how machine learning models work and make informed decisions when building and deploying them.
Introduction- e - waste – definition - sources of e-waste– hazardous substances in e-waste - effects of e-waste on environment and human health- need for e-waste management– e-waste handling rules - waste minimization techniques for managing e-waste – recycling of e-waste - disposal treatment methods of e- waste – mechanism of extraction of precious metal from leaching solution-global Scenario of E-waste – E-waste in India- case studies.
Using recycled concrete aggregates (RCA) for pavements is crucial to achieving sustainability. Implementing RCA for new pavement can minimize carbon footprint, conserve natural resources, reduce harmful emissions, and lower life cycle costs. Compared to natural aggregate (NA), RCA pavement has fewer comprehensive studies and sustainability assessments.