SlideShare ist ein Scribd-Unternehmen logo
1 von 78
Downloaden Sie, um offline zu lesen
Ada Lovelace Day 2017
Web technologies and Lezba.si/Dyke.tech
● Intro
○ Ada Lovelace Day- History
○ Lezba.si
○ Firefox and help at MDN
● HTML
○ Source code
○ Code added with JavaScript/jQuery
○ Changing code
● CSS
○ Changing styles
○ Images
○ Images as code
Topics for today
● Good to know
○ Google and robots.txt
○ Saving data in the browser - cookies
and Local Storage
○ Privacy badger
● JavaScript
○ Variables
○ If, for, forEach
○ RegEx
○ Elements on the web page
○ Getting data from web pages
● Lezba.si/Dyke.tech - solving tasks
1. https://www.lezba.si
2. https://developer.mozilla.org/en-US/
3. https://www.mozilla.org/en-US/firefox/new/
4. http://lizzythelezzy.com/
5. https://www.lezfemuniverza.org/
6. https://moments.epic.net/#bird
7. https://www.typewithpride.com/
8. http://edition.cnn.com/robots.txt
9. https://www.facebook.com/robots.txt
10. http://edition.cnn.com/
11. https://www.eff.org/privacybadger
12. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions
13. https://www.typewithpride.com/
14. http://radiostudent.si/dru%C5%BEba/sektor-%C5%BE/podcast
15. https://www.lezba.si
Links
mozilla.org/en-US/firefox/new/
developer.mozilla.org
Open new tab
CTRL + Klik
Change font size
Ctrl +
Ctrl -
Web page is built with
● HTML
● CSS
● JavaScript
● Images
● Fonts 

lizzythelezzy.com
Task: Review code #1
● Right click > View Page Source
● Ctrl + U
lezfemuniverza.org
Task: Review code #2
● Right click > View Page Source
● Ctrl + U
Firefox
Developer Tools
Task: Review code #3 - Inspector tab F12
HTML
Elements
● body
● H1
● ...
Attributes
● class=
● id=
● style=
● src=
Task: HTML
● Select an element on the web page
● Use the search
● Change content
● Add elements
● Remove elements
CSS
Style HTML elements
body {
/* background color */
background: #000; }
#id {
/* hide element */
display: none;
}
.class {
font-size: 20px;
}
Task: CSS
Change CSS and see changes on the website
● Color of the background
● Font size
● Hide title, image...
moments.epic.net/#bird
Images
typewithpride.com
Images as code
SVG
SVG
<svg class="sqs-svg-icon--social" viewBox="0 0 64 64">
<use class="sqs-use--icon" xlink:href="#twitter-icon"></use>
<use class="sqs-use--mask" xlink:href="#twitter-mask"></use>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" style="display:none">
<symbol id="twitter-icon" viewBox="0 0 64 64">
<path d="M48,22.1c-1.2,0.5-2.4,0.9-3.8,1c1.4-0.8,2.4-2.1,2.9-3.6c-1.3,0.8-2.7,1.3-4.2,1.6
C41.7,19.8,40,19,38.2,19c-3.6,0-6.6,2.9-6.6,6.6c0,0.5,0.1,1,0.2,1.5c-5.5-0.3-10.3-2.9-13.5-6.9c-0.6,1-0.9,2.1-0.9,3.3
c0,2.3,1.2,4.3,2.9,5.5c-1.1,0-2.1-0.3-3-0.8c0,0,0,0.1,0,0.1c0,3.2,2.3,5.8,5.3,6.4c-0.6,0.1-1.1,0.2-1.7,0.2c-0.4,0-0.8,0-1.2-0
.1 c0.8,2.6,3.3,4.5,6.1,4.6c-2.2,1.8-5.1,2.8-8.2,2.8c-0.5,0-1.1,0-1.6-0.1c2.9,1.9,6.4,2.9,10.1,2.9c12.1,0,18.7-10,18.7-18.7
c0-0.3,0-0.6,0-0.8C46,24.5,47.1,23.4,48,22.1z"></path>
</symbol>
<symbol id="twitter-mask" viewBox="0 0 64 64">
<path d="M0,0v64h64V0H0z M44.7,25.5c0,0.3,0,0.6,0,0.8C44.7,35,38.1,45,26.1,45c-3.7,0-7.2-1.1-10.1-2.9
c0.5,0.1,1,0.1,1.6,0.1c3.1,0,5.9-1,8.2-2.8c-2.9-0.1-5.3-2-6.1-4.6c0.4,0.1,0.8,0.1,1.2,0.1c0.6,0,1.2-0.1,1.7-0.2
c-3-0.6-5.3-3.3-5.3-6.4c0,0,0-0.1,0-0.1c0.9,0.5,1.9,0.8,3,0.8c-1.8-1.2-2.9-3.2-2.9-5.5c0-1.2,0.3-2.3,0.9-3.3
c3.2,4,8.1,6.6,13.5,6.9c-0.1-0.5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JosnpMsyELhHrqdtcXrlcRjDSEf2/XdOlhNFk9JlmQhcI9dTtri9criMYaQj+367p0sJosnpMsyELhHrqdtcXrlcRjDSEf2/XdOlhNFk9JlmQhcI9dTtri9criMYaQj+367p0sJosnpMsyELhHrqdtcXrlcRjDSEf2/XdOlhN
Fk9JlmQhcI9dTtri9criMYaQj+367p0sJosnpMsyELhHrqdtcXrlcRjDSEf2/XdOlhNFk9JlmQhcI9dTtri9criMYaQj+367p0sJosnpMsyELhHrqdtcXrlcRjDSEf2/XdOlhNFk9JlmQhcI9dTtri9criMYaQj+367p0sJosnpMsyELhHrqdtcXrlcRjDSEf2/XdOlhNFk9JlmQhcI9dTtri9criMYaQj
+367p0sJosnpMsyELhHrqdtcXrlcRjDSEf2/XdOlhNFk9JlmQhcI9dTtri9criMYaQj+367p0sJosnpMsyELhHrqdtcXrlcRjDSEf2/XdOlhNFk9JlmQhcI9dTtri9criMYaQj+367p0sJosnpMsyELhHrqdtcXrlcRjDSEf2/XdOlhNFk9JlmQhcI9dTtri9criMYaQj+367p0sJosnpMsyELhHrqdt
cXrlcRjDSEf2/XdOlhNFk9JlmQhcI9dTtri9criMYaQj+367p0sJosnpMsyELhHrqdtcXrlcRjDSEf2/XdOlhNFk9JlmQhcI9dTtri9criMYaQj+367p0sJosnpMsyELhHrqdtcXrlcRjDSEf2/XdOlhNFk9JlmQhcI9dTtri9criMYaQj+367p0sJosnpMsyELhHrqdtcXrlcRjDSEf2/XdOlhNFk9Jl
mQhcI9dTtri9criMYaQj+367p0sJosnpMsyELhHrqdtcXrlcRjDSEf2/XdOlhNFk9JlmQhcI9dTtri9criMYaQj+367p0sJosnpMsyELhHrqdtcXrlcRjDSEf2/XdOlhNFk9JlmQhcI9dTtri9criMYaQj+367p0sJosnpMsyELhHrqdtcXrlcRjDSEf2/XdOlhXJ1ViAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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MBnIfEPiLax7YmLw2MxJpW67TD1lDCapLKjAZyHxD4i2se2J
i8NjMSaVuu0w9ZQwmqSyowGch8Q+ItrHtiYvDYzEmlbrtMPWUMLTC9ZpUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAABpxGJ9SIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB//Z
HTML
<div>
<img src="data:image/png;base64,
iVBORw0KGgoAAAANSUhEUgAAAAUA
AAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38
GIAXDIBKE0DHxgljNBAAO
9TXL0Y4OHwAAAABJRU5ErkJggg=="
alt="Red dot" />
<img
src="//d2wd18kp3k18ix.cloudfront.net/no
rdicdesign2017/pens.svg" alt="Pens" />
</div>
CSS
div {
background-image:
url("data:image/jpeg;base64,/9j/4AAQSkZ
J
..");
}
Task: CSS
With CSS
● Add an image to the background of HTML element
Task: Add image in the background with CSS
#page{
background:
url("https://static1.squarespace.com/static/58e
d2d6244024330c0a58707/t/58ee4bed9de4bbc8715ce8c
a/1497857366405/?format=1500w");
}
Task: Add image in the background with CSS
#page {
background:
url("data:image/jpeg;base64,/9j/7AARRHVja3kAAQA
EAAAAZA...");
}
cnn.com/robots.txt
Sitemap: http://www.cnn.com/sitemaps/sitemap-index.xml
Sitemap: http://www.cnn.com/sitemaps/sitemap-news.xml
Sitemap:
http://www.cnn.com/sitemaps/sitemap-video-index.xml
Sitemap:
http://www.cnn.com/sitemaps/sitemap-section.xml
Sitemap:
http://www.cnn.com/sitemaps/sitemap-interactive.xml
User-agent: *
Allow: /partners/ipad/live-video.json
Disallow: /editionssi
Disallow: /ads
Disallow: /aol
Disallow: /audio
Disallow: /beta
Disallow: /browsers
Disallow: /cl
Disallow: /cnews
Disallow: /cnn_adspaces
Disallow: /cnnbeta
Disallow: /cnnintl_adspaces
Disallow: /development
Disallow: /help/cnnx.html
Disallow: /NewsPass
Disallow: /NOKIA
Disallow: /partners
Disallow: /pipeline
Disallow: /pointroll
Disallow: /POLLSERVER
Disallow: /pr/
Disallow: /PV
Disallow: /quickcast
Disallow: /Quickcast
Disallow: /QUICKNEWS
Disallow: /test
Disallow: /virtual
Disallow: /WEB-INF
Disallow: /web.projects
Disallow: /search
Cookies and
saving data
in the browser
eff.org/privacybadger
JavaScript
In the console
Variables
Numbers
var one = 1;
one = Math.random();
String
var word;
word = 'beseda';
word.length;
Array
var list = [1, 2, 3];
list.length;
Object
var myObj = {
name: "LFU",
location: "World"
};
myObj.name
Boolean
var bool = true;
var bool = false;
Null
var moon = null;
Function
function add(num) {
return num + num;
}
var result = add(5);
console.log(result);
If
var one = 1, first = 1, best = 1;
if (one === first) {
console.log(They are the same');
}
else if (first === best) {
console.log('Top 2!');
}
else {
console.log ('They are not the same');
}
For loop
for (var i = 1; i < 10; i++) {
console.log('LFU');
}
for (var i = 1; i < 10; i++) {
console.log(Math.random());
}
forEach
var list = [1, 2, 3];
list.forEach(
item => console.log(item)
);
Regular Expressions
RegEx
^HTML
developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions
var name = 'LFU'
var pattern = /LFU/; // whole word
// var pattern = /^L/; // beginning
// var pattern = /U$/; // end
// var pattern = /.{3}/; // 3 characters
// var pattern = /.*/; // anything
// var pattern = /L.U/; // LIU, LAV ...
if (pattern.exec(name) !== null) {
console.log(name)
}
Let’s play with
elements
on the web site
Get elements
$$(selector)
$$('h2')
$$('div li')
$$('#page')
$$('.black')
$$('li').forEach(
item => console.log (item)
);
$$('h2').forEach(
h2 => console.log(h2.innerText)
)
$$('img').forEach(
img => console.log(img.src)
)
radiostudent.si/dru%C5%BEba/sektor-%C5%BE/podcast
Task: Get data from the web site
● All titles
● All mp3 links
All titles
$$('h3 a span').forEach(
title => console.log(title.innerText)
)
All mp3 links
$$('.enclosure a').forEach(
a => console.log(a.href)
)
All mp3 links - alternative
$$('[href$=".mp3"]').forEach(
a => console.log(a.href)
)
Remember,
multiple solutions
are available!

Weitere Àhnliche Inhalte

Ähnlich wie Ada Lovelace Day 2017

html5 css3 the future of web technology
html5 css3 the future of web technologyhtml5 css3 the future of web technology
html5 css3 the future of web technology
hazzaz
 
Freelancer Weapons of mass productivity
Freelancer Weapons of mass productivityFreelancer Weapons of mass productivity
Freelancer Weapons of mass productivity
Gregg Coppen
 
Click here to download my CV in Word format.doc
Click here to download my CV in Word format.docClick here to download my CV in Word format.doc
Click here to download my CV in Word format.doc
butest
 
Even faster web sites
Even faster web sitesEven faster web sites
Even faster web sites
Felipe LavĂ­n
 

Ähnlich wie Ada Lovelace Day 2017 (20)

CSS3: Simply Responsive
CSS3: Simply ResponsiveCSS3: Simply Responsive
CSS3: Simply Responsive
 
Microformats I: What & Why
Microformats I: What & WhyMicroformats I: What & Why
Microformats I: What & Why
 
Last Month in PHP - May 2016
Last Month in PHP - May 2016Last Month in PHP - May 2016
Last Month in PHP - May 2016
 
(some) Drupal Theming by Ryan Price
(some) Drupal Theming by Ryan Price(some) Drupal Theming by Ryan Price
(some) Drupal Theming by Ryan Price
 
CSS3: Are you experienced?
CSS3: Are you experienced?CSS3: Are you experienced?
CSS3: Are you experienced?
 
The SEO Magic of Structured Data
The SEO Magic of Structured DataThe SEO Magic of Structured Data
The SEO Magic of Structured Data
 
LODæŠ€èĄ“è§ŁèȘŹ
LODæŠ€èĄ“è§ŁèȘŹLODæŠ€èĄ“è§ŁèȘŹ
LODæŠ€èĄ“è§ŁèȘŹ
 
html5 css3 the future of web technology
html5 css3 the future of web technologyhtml5 css3 the future of web technology
html5 css3 the future of web technology
 
The Semantic Web and Drupal 7 - Loja 2013
The Semantic Web and Drupal 7 - Loja 2013The Semantic Web and Drupal 7 - Loja 2013
The Semantic Web and Drupal 7 - Loja 2013
 
Word press optimizations
Word press optimizations Word press optimizations
Word press optimizations
 
Website factory with domain Access: why and how& - KiĂȘt TrĂąn & David Ferlay
Website factory with domain Access: why and how& - KiĂȘt TrĂąn & David FerlayWebsite factory with domain Access: why and how& - KiĂȘt TrĂąn & David Ferlay
Website factory with domain Access: why and how& - KiĂȘt TrĂąn & David Ferlay
 
Freelancer Weapons of mass productivity
Freelancer Weapons of mass productivityFreelancer Weapons of mass productivity
Freelancer Weapons of mass productivity
 
YALLZI @ mongoDBWorld
YALLZI @ mongoDBWorldYALLZI @ mongoDBWorld
YALLZI @ mongoDBWorld
 
Building an Analytics Engine on MongoDB to Revolutionize Advertising
Building an Analytics Engine on MongoDB to Revolutionize AdvertisingBuilding an Analytics Engine on MongoDB to Revolutionize Advertising
Building an Analytics Engine on MongoDB to Revolutionize Advertising
 
Moving from Web 1.0 to Web 2.0
Moving from Web 1.0 to Web 2.0Moving from Web 1.0 to Web 2.0
Moving from Web 1.0 to Web 2.0
 
Baparekraf Digital Talent Day: Monitoring dan Coaching Penerima Fasilitasi BD...
Baparekraf Digital Talent Day: Monitoring dan Coaching Penerima Fasilitasi BD...Baparekraf Digital Talent Day: Monitoring dan Coaching Penerima Fasilitasi BD...
Baparekraf Digital Talent Day: Monitoring dan Coaching Penerima Fasilitasi BD...
 
Morden F2E Education - Think of Progressive Web Apps
Morden F2E Education - Think of Progressive Web AppsMorden F2E Education - Think of Progressive Web Apps
Morden F2E Education - Think of Progressive Web Apps
 
Click here to download my CV in Word format.doc
Click here to download my CV in Word format.docClick here to download my CV in Word format.doc
Click here to download my CV in Word format.doc
 
JahiaOne - Semantic Web with Jahia
JahiaOne - Semantic Web with JahiaJahiaOne - Semantic Web with Jahia
JahiaOne - Semantic Web with Jahia
 
Even faster web sites
Even faster web sitesEven faster web sites
Even faster web sites
 

Mehr von Maja Kraljič

Mehr von Maja Kraljič (12)

MozFest London 2019 - Feminist internet and feminist principles of the internet
MozFest London 2019  - Feminist internet and feminist principles of the internetMozFest London 2019  - Feminist internet and feminist principles of the internet
MozFest London 2019 - Feminist internet and feminist principles of the internet
 
Safer Online Communication
Safer Online CommunicationSafer Online Communication
Safer Online Communication
 
Feminist Principles of the Internet - Lesbians Who Tech London Summit 2018
Feminist Principles of the Internet - Lesbians Who Tech London Summit 2018Feminist Principles of the Internet - Lesbians Who Tech London Summit 2018
Feminist Principles of the Internet - Lesbians Who Tech London Summit 2018
 
Tech workshops at Lesbian-Feminist University
Tech workshops at Lesbian-Feminist UniversityTech workshops at Lesbian-Feminist University
Tech workshops at Lesbian-Feminist University
 
Ubuntu 18.04 Bionic Beaver Installation Party
Ubuntu 18.04 Bionic Beaver Installation PartyUbuntu 18.04 Bionic Beaver Installation Party
Ubuntu 18.04 Bionic Beaver Installation Party
 
PriĆŸiganje lučk z Arduinom
PriĆŸiganje lučk z ArduinomPriĆŸiganje lučk z Arduinom
PriĆŸiganje lučk z Arduinom
 
Get to know linux - First steps with Ubuntu
Get to know linux - First steps with UbuntuGet to know linux - First steps with Ubuntu
Get to know linux - First steps with Ubuntu
 
Ada Lovelace Day 2015 - Privacy in the Age of Surveillance
Ada Lovelace Day 2015 - Privacy in the Age of SurveillanceAda Lovelace Day 2015 - Privacy in the Age of Surveillance
Ada Lovelace Day 2015 - Privacy in the Age of Surveillance
 
Master Blender Shortcuts
Master Blender ShortcutsMaster Blender Shortcuts
Master Blender Shortcuts
 
[SI] Kako prijeti WordPress za roge? - Delavnica Wordpress osnove
[SI] Kako prijeti WordPress za roge? - Delavnica Wordpress osnove[SI] Kako prijeti WordPress za roge? - Delavnica Wordpress osnove
[SI] Kako prijeti WordPress za roge? - Delavnica Wordpress osnove
 
[EN] Ada Lovelace Day 2014 - Tampon run
[EN] Ada Lovelace Day 2014  - Tampon run[EN] Ada Lovelace Day 2014  - Tampon run
[EN] Ada Lovelace Day 2014 - Tampon run
 
[SI] Ada Lovelace Day 2014 - Tampon Run
[SI] Ada Lovelace Day 2014  - Tampon Run[SI] Ada Lovelace Day 2014  - Tampon Run
[SI] Ada Lovelace Day 2014 - Tampon Run
 

KĂŒrzlich hochgeladen

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

KĂŒrzlich hochgeladen (20)

ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 

Ada Lovelace Day 2017