This document is a lesson on jQuery events. It explains that events allow interaction with users by responding to their actions on a webpage, like clicking or hovering. jQuery makes it easy to trigger effects in response to different events - the event is the cause and the effect is the resulting action. By changing the event code, you can decide which user actions cause which effects to occur.
Introducing perf budgets on CI with puppeteer - perf.now()Önder Ceylan
Puppeteer is a node library which provides a high-level API to control Chrome. When combined with the power of DevTools protocol, Puppeteer can expose metrics for a specific web page on DOM nodes, JS event listeners, JS and CSS coverage. We'll see how those metrics can be used to introduce performance budgets per each indicator during the regression on CI after each change.
Introducing perf budgets on CI with puppeteer - perf.now()Önder Ceylan
Puppeteer is a node library which provides a high-level API to control Chrome. When combined with the power of DevTools protocol, Puppeteer can expose metrics for a specific web page on DOM nodes, JS event listeners, JS and CSS coverage. We'll see how those metrics can be used to introduce performance budgets per each indicator during the regression on CI after each change.
Javascript and first-class citizenry: require.js & node.js
Javascript on web pages is ubiquitous and its problems are legendary. Javascript, seen as a second-class code citizen, is usually hacked together even by seasoned developers. New libraries (jQuery, prototype, backbone, knockout, underscore) and runtime tools (firebug, jasmine) look like they solve many problems - and they do. But they still leave poorly written code as just that. One key problem is that all javascript code lives globally and this results in poorly managed, tested and delivered code.
In this session, I will illustrate that we can treat javascript as a first-class citizen using with require.js and node.js: it can be modular, encapsulated and easily unit tested and added to continuous integration cycle. The dependencies between javascript modules can also be managed and packaged just like in C# and Java. In the end, we can resolve many javascript difficulties at compile time rather than waiting until runtime.
Om nom nom nom
Talk given at Clojure/conj 2014 in Washington DC
Video available here: https://www.youtube.com/watch?v=4-oyZpLRQ20
Have you ever needed an easily customisable dashboard? Or needed to visualise data in a browser but was overwhelmed by d3.js? This talk will cover basics of React and Om, some data visualisation libraries and techniques, ways to handle live data and combining all that into an easily customisable dashboard. Expect demos, code and maybe, just maybe, om nom nom nom cookies.
The fundamental problems of GUI applications and why people choose ReactOliver N
Instead of asking people which JavaScript framework to learn, let's look back into GUI application architecture (which Web Front-end is a case). Then you will understand why people created those library & frameworks and why React became so popular.
Mobile applications Development - Lecture 12
Javascript
jQuery (Zepto)
useful microframeworks
This presentation has been developed in the context of the Mobile Applications Development course at the Computer Science Department of the University of L’Aquila (Italy).
http://www.di.univaq.it/malavolta
Javascript and first-class citizenry: require.js & node.js
Javascript on web pages is ubiquitous and its problems are legendary. Javascript, seen as a second-class code citizen, is usually hacked together even by seasoned developers. New libraries (jQuery, prototype, backbone, knockout, underscore) and runtime tools (firebug, jasmine) look like they solve many problems - and they do. But they still leave poorly written code as just that. One key problem is that all javascript code lives globally and this results in poorly managed, tested and delivered code.
In this session, I will illustrate that we can treat javascript as a first-class citizen using with require.js and node.js: it can be modular, encapsulated and easily unit tested and added to continuous integration cycle. The dependencies between javascript modules can also be managed and packaged just like in C# and Java. In the end, we can resolve many javascript difficulties at compile time rather than waiting until runtime.
Om nom nom nom
Talk given at Clojure/conj 2014 in Washington DC
Video available here: https://www.youtube.com/watch?v=4-oyZpLRQ20
Have you ever needed an easily customisable dashboard? Or needed to visualise data in a browser but was overwhelmed by d3.js? This talk will cover basics of React and Om, some data visualisation libraries and techniques, ways to handle live data and combining all that into an easily customisable dashboard. Expect demos, code and maybe, just maybe, om nom nom nom cookies.
The fundamental problems of GUI applications and why people choose ReactOliver N
Instead of asking people which JavaScript framework to learn, let's look back into GUI application architecture (which Web Front-end is a case). Then you will understand why people created those library & frameworks and why React became so popular.
Mobile applications Development - Lecture 12
Javascript
jQuery (Zepto)
useful microframeworks
This presentation has been developed in the context of the Mobile Applications Development course at the Computer Science Department of the University of L’Aquila (Italy).
http://www.di.univaq.it/malavolta
MOPCON 2014 - Best software architecture in app developmentanistar sung
Talking about how to build smart design and architecture for app development. Let your app can easy develop and deploy components on your app. And more topic of version control and quality improvement.
UiPath Test Automation using UiPath Test Suite series, part 4DianaGray10
Welcome to UiPath Test Automation using UiPath Test Suite series part 4. In this session, we will cover Test Manager overview along with SAP heatmap.
The UiPath Test Manager overview with SAP heatmap webinar offers a concise yet comprehensive exploration of the role of a Test Manager within SAP environments, coupled with the utilization of heatmaps for effective testing strategies.
Participants will gain insights into the responsibilities, challenges, and best practices associated with test management in SAP projects. Additionally, the webinar delves into the significance of heatmaps as a visual aid for identifying testing priorities, areas of risk, and resource allocation within SAP landscapes. Through this session, attendees can expect to enhance their understanding of test management principles while learning practical approaches to optimize testing processes in SAP environments using heatmap visualization techniques
What will you get from this session?
1. Insights into SAP testing best practices
2. Heatmap utilization for testing
3. Optimization of testing processes
4. Demo
Topics covered:
Execution from the test manager
Orchestrator execution result
Defect reporting
SAP heatmap example with demo
Speaker:
Deepak Rai, Automation Practice Lead, Boundaryless Group and UiPath MVP
Securing your Kubernetes cluster_ a step-by-step guide to success !KatiaHIMEUR1
Today, after several years of existence, an extremely active community and an ultra-dynamic ecosystem, Kubernetes has established itself as the de facto standard in container orchestration. Thanks to a wide range of managed services, it has never been so easy to set up a ready-to-use Kubernetes cluster.
However, this ease of use means that the subject of security in Kubernetes is often left for later, or even neglected. This exposes companies to significant risks.
In this talk, I'll show you step-by-step how to secure your Kubernetes cluster for greater peace of mind and reliability.
State of ICS and IoT Cyber Threat Landscape Report 2024 previewPrayukth K V
The IoT and OT threat landscape report has been prepared by the Threat Research Team at Sectrio using data from Sectrio, cyber threat intelligence farming facilities spread across over 85 cities around the world. In addition, Sectrio also runs AI-based advanced threat and payload engagement facilities that serve as sinks to attract and engage sophisticated threat actors, and newer malware including new variants and latent threats that are at an earlier stage of development.
The latest edition of the OT/ICS and IoT security Threat Landscape Report 2024 also covers:
State of global ICS asset and network exposure
Sectoral targets and attacks as well as the cost of ransom
Global APT activity, AI usage, actor and tactic profiles, and implications
Rise in volumes of AI-powered cyberattacks
Major cyber events in 2024
Malware and malicious payload trends
Cyberattack types and targets
Vulnerability exploit attempts on CVEs
Attacks on counties – USA
Expansion of bot farms – how, where, and why
In-depth analysis of the cyber threat landscape across North America, South America, Europe, APAC, and the Middle East
Why are attacks on smart factories rising?
Cyber risk predictions
Axis of attacks – Europe
Systemic attacks in the Middle East
Download the full report from here:
https://sectrio.com/resources/ot-threat-landscape-reports/sectrio-releases-ot-ics-and-iot-security-threat-landscape-report-2024/
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...DanBrown980551
Do you want to learn how to model and simulate an electrical network from scratch in under an hour?
Then welcome to this PowSyBl workshop, hosted by Rte, the French Transmission System Operator (TSO)!
During the webinar, you will discover the PowSyBl ecosystem as well as handle and study an electrical network through an interactive Python notebook.
PowSyBl is an open source project hosted by LF Energy, which offers a comprehensive set of features for electrical grid modelling and simulation. Among other advanced features, PowSyBl provides:
- A fully editable and extendable library for grid component modelling;
- Visualization tools to display your network;
- Grid simulation tools, such as power flows, security analyses (with or without remedial actions) and sensitivity analyses;
The framework is mostly written in Java, with a Python binding so that Python developers can access PowSyBl functionalities as well.
What you will learn during the webinar:
- For beginners: discover PowSyBl's functionalities through a quick general presentation and the notebook, without needing any expert coding skills;
- For advanced developers: master the skills to efficiently apply PowSyBl functionalities to your real-world scenarios.
Transcript: Selling digital books in 2024: Insights from industry leaders - T...BookNet Canada
The publishing industry has been selling digital audiobooks and ebooks for over a decade and has found its groove. What’s changed? What has stayed the same? Where do we go from here? Join a group of leading sales peers from across the industry for a conversation about the lessons learned since the popularization of digital books, best practices, digital book supply chain management, and more.
Link to video recording: https://bnctechforum.ca/sessions/selling-digital-books-in-2024-insights-from-industry-leaders/
Presented by BookNet Canada on May 28, 2024, with support from the Department of Canadian Heritage.
DevOps and Testing slides at DASA ConnectKari Kakkonen
My and Rik Marselis slides at 30.5.2024 DASA Connect conference. We discuss about what is testing, then what is agile testing and finally what is Testing in DevOps. Finally we had lovely workshop with the participants trying to find out different ways to think about quality and testing in different parts of the DevOps infinity loop.
JMeter webinar - integration with InfluxDB and GrafanaRTTS
Watch this recorded webinar about real-time monitoring of application performance. See how to integrate Apache JMeter, the open-source leader in performance testing, with InfluxDB, the open-source time-series database, and Grafana, the open-source analytics and visualization application.
In this webinar, we will review the benefits of leveraging InfluxDB and Grafana when executing load tests and demonstrate how these tools are used to visualize performance metrics.
Length: 30 minutes
Session Overview
-------------------------------------------
During this webinar, we will cover the following topics while demonstrating the integrations of JMeter, InfluxDB and Grafana:
- What out-of-the-box solutions are available for real-time monitoring JMeter tests?
- What are the benefits of integrating InfluxDB and Grafana into the load testing stack?
- Which features are provided by Grafana?
- Demonstration of InfluxDB and Grafana using a practice web application
To view the webinar recording, go to:
https://www.rttsweb.com/jmeter-integration-webinar
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Ramesh Iyer
In today's fast-changing business world, Companies that adapt and embrace new ideas often need help to keep up with the competition. However, fostering a culture of innovation takes much work. It takes vision, leadership and willingness to take risks in the right proportion. Sachin Dev Duggal, co-founder of Builder.ai, has perfected the art of this balance, creating a company culture where creativity and growth are nurtured at each stage.
Neuro-symbolic is not enough, we need neuro-*semantic*Frank van Harmelen
Neuro-symbolic (NeSy) AI is on the rise. However, simply machine learning on just any symbolic structure is not sufficient to really harvest the gains of NeSy. These will only be gained when the symbolic structures have an actual semantics. I give an operational definition of semantics as “predictable inference”.
All of this illustrated with link prediction over knowledge graphs, but the argument is general.
Elevating Tactical DDD Patterns Through Object CalisthenicsDorra BARTAGUIZ
After immersing yourself in the blue book and its red counterpart, attending DDD-focused conferences, and applying tactical patterns, you're left with a crucial question: How do I ensure my design is effective? Tactical patterns within Domain-Driven Design (DDD) serve as guiding principles for creating clear and manageable domain models. However, achieving success with these patterns requires additional guidance. Interestingly, we've observed that a set of constraints initially designed for training purposes remarkably aligns with effective pattern implementation, offering a more ‘mechanical’ approach. Let's explore together how Object Calisthenics can elevate the design of your tactical DDD patterns, offering concrete help for those venturing into DDD for the first time!
2. Lesson 4: Events
Introduction
to jQuery
Syntax and
Structure
Abstraction
Events
Lesson 1
Lesson 2
Lesson 3
Lesson 4
Learning to
Use CSS
Introduction
to CSS
Search
Engine
Optimization
HTML and
Forms
Lesson 8
Lesson 7
Lesson 6
Lesson 5
Separation of
Concerns
3 Ways to
Use CSS
Reusing
Code
Launching
Your Own
Website
Lesson 9
Lesson 10
Lesson 11
Lesson 12
2
3. Recap from last time (I)
• Abstraction is the process of hiding the complex parts of a system
so that only the important details can be seen
• A gas pedal is an example of an abstraction – it lets us control the
speed of the car without needing to understand what happens under
the hood
3
4. Recap from last time (II)
• Similarly, jQuery is an abstraction of Javascript – it lets us use
Javascript without having to understand the implementation details
jQuery code
$(document).ready(function() {
$(‘#clickedElement’).click(function() {
$(‘#fadedElement’).fadeOut();
});
});
4
5. Recap from last time (III)
• Similarly, jQuery is an abstraction of Javascript – it lets us use
Javascript without having to understand the implementation details
jQuery code
$(document).ready(function() {
$(‘#clickedElement’).click(function() {
$(‘#fadedElement’).fadeOut();
});
English translation
Select the document. When it is ready
do the following:
Select the element with id named
clickedElement. If clicked, do the following:
Select the element with id named
fadedElement and make it fade out
});
5
6. Events are an important part of jQuery
• We saw in Lesson 2 that jQuery often has the same structure
• Today we’ll be focusing on understanding the part of the structure
that relates to events
jQuery code
$(document).ready(function() {
$(pageElement).someEvent(function() {
$(thingToChange).someEffect();
English translation
When the document is ready, do the
following:
When someEvent happens to pageElement,
do the following:
Make someEffect happen to thingToChange
});
});
6
7. What is a jQuery event?
• An event is any action that a user takes on a web page, such as:
• Double-clicking on a button
• Single-clicking on a button
• Hovering the mouse over an image
• Events are important because they allow us to interact with our
users by responding to their actions
Tom Cruise interacts with a
fancy computer in the 2002
movie Minority Report
7
8. Events are often used to trigger an effect
• A good example of an event in real-life is stepping on the gas
pedal of a car
• In this case, the driver (the user) initiates the event by pressing
down on the gas pedal
• This event triggers the car to increase its speed
The event (the cause)
The resulting effect
8
9. jQuery events work in the same way
• jQuery events are similar, except that we get to decide which
events to respond to
Effect
Event
If user
double-clicks on a button,
then
turn the text background color red
If user
single-clicks on a button
then
turn the text background color red
If user
hovers over the image
then
turn the text background color red
9
10. Time for an example (I)
jQuery code
English translation
$(document).ready(function() {
$(‘#button’).dblclick(function() {
$(p).css(“background-color”:
“red”);
});
});
10
11. Time for an example (II)
jQuery code
$(document).ready(function() {
English translation
When the document is ready, do the
following:
$(‘#button’).dblclick(function() {
$(p).css(“background-color”:
“red”);
});
});
11
12. Time for an example (III)
jQuery code
$(document).ready(function() {
$(‘#button’).dblclick(function() {
English translation
When the document is ready, do the
following:
When the HTML element with id ‘button’ is
double-clicked, do the following:
$(p).css(“background-color”:
“red”);
});
});
12
13. Time for an example (IV)
jQuery code
$(document).ready(function() {
$(‘#button’).dblclick(function() {
$(p).css(“background-color”:
“red”);
});
});
English translation
When the document is ready, do the
following:
When the HTML element with id ‘button’ is
double-clicked, do the following
Select the HTML element with <p> tag and
edit its CSS styling for background color to red
13
14. Time for an example (V)
jQuery code
$(document).ready(function() {
$(‘#button’).dblclick(function() {
$(p).css(“background-color”:
“red”);
});
});
Syntax
notes
$(element)
English translation
When the document is ready, do the
following:
When the HTML element with id ‘button’ is
double-clicked, do the following
Select the HTML element with <p> tag and
edit its CSS styling for background color to red
means “select the element”
14
15. Time for an example (VI)
jQuery code
$(document).ready(function() {
$(‘#button’).dblclick(function() {
$(p).css(“background-color”:
“red”);
});
});
Syntax
notes
English translation
When the document is ready, do the
following:
When the HTML element with id ‘button’ is
double-clicked, do the following
Select the HTML element with <p> tag and
edit its CSS styling for background color to red
$(element)
means “select the element”
$(element).action()
means “do this action to the element”
15
16. Time for an example (VII)
jQuery code
$(document).ready(function() {
$(‘#button’).dblclick(function() {
$(p).css(“background-color”:
“red”);
});
});
Syntax
notes
English translation
When the document is ready, do the
following:
When the HTML element with id ‘button’ is
double-clicked, do the following
Select the HTML element with <p> tag and
edit its CSS styling for background color to red
$(element)
means “select the element”
$(element).action()
means “do this action to the element”
function()
means “do the following”
16
17. Time for an example (VIII)
jQuery code
Before
$(document).ready(function() {
$(‘#button’).dblclick(function() {
$(p).css(“background-color”:
“red”);
});
});
Can you figure out how the page
to the right will change?
Need image here (text,
button, and image on page)
After
?
17
18. Time for an example (IX)
jQuery code
Before
$(document).ready(function() {
$(‘#button’).dblclick(function() {
$(p).css(“background-color”:
“red”);
});
});
After double-clicking the button,
the text now has red background
Need image here
(text, button, and image on
page)
After
Need image here (text now
has red background)
18
19. Time for an example (X)
jQuery code
Before
$(document).ready(function() {
$(‘#button’).dblclick(function() {
$(p).css(“background-color”:
“red”);
});
});
After double-clicking the
button, the text now has red
background
Need image here (text,
button, and image on page)
After
Need image here (text now
has red background)
19
20. Events in action! (I)
• jQuery makes it easy for us to use different events
• If we change our minds and want the text background color to
become red when the user single-clicks on the button, all we need
to do is swap out our one line of jQuery event code
$(document).ready(function() {
$(‘#button’).dblclick(function() {
$(document).ready(function() {
$(‘#button).click(function() {
$(p).css(“background-color”:
“red”);
});
});
$(p).css(“background-color”:
“red”);
});
});
20
21. Events in action! (II)
• If we change our minds again and want the text background color
to become red when the user hovers over the image, all we need
to do is swap out our line of jQuery event code
$(document).ready(function() {
$(‘#button’).dblclick(function() {
$(document).ready(function() {
$(‘#img’).hover(function() {
$(p).css(“background-color”:
“red”);
});
});
$(p).css(“background-color”:
“red”);
});
});
21
22. Summary (I)
• An event is any action that a user takes on a web page, such as:
• Double-clicking on a button
• Single-clicking on a button
• Hovering the mouse over an image
Effect
Event
If user
double-clicks on a button,
then
turn the text background color red
If user
single-clicks on a button
then
turn the text background color red
If user
hovers over the image
then
turn the text background color red
22
23. Summary (II)
• jQuery makes it easy for us to use different events
• If we change our minds and want to trigger the effect based on a
different event, all we need to do is swap out our line of jQuery
event code
$(document).ready(function() {
$(‘#button’).dblclick(function() {
$(p).css(“background-color”:
“red”);
});
});
23
24. Summary (III)
• jQuery makes it easy for us to use different events
• If we change our minds and want to trigger the effect based on a
different event, all we need to do is swap out our line of jQuery
event code
$(document).ready(function() {
$(‘#button’).dblclick(function() {
$(document).ready(function() {
$(‘#button).click(function() {
$(p).css(“background-color”:
“red”);
});
});
$(p).css(“background-color”:
“red”);
});
});
24
25. What to do on your own
1. Go to URL to complete the Codecademy course online
2. Do the practice set on the material learned
1. Take the follow-up quiz to test your understanding
25