Talk on how to think when building Android apps using a reactive Clean Architecture. This talk was held at the Stockholm Android Meetup group April 17 2018 at Developers bay.
Building a friendly .NET SDK to connect to SpaceMaarten Balliauw
Space is a team tool that integrates chats, meetings, git hosting, automation, and more. It has an HTTP API to integrate third party apps and workflows, but it's massive! And slightly opinionated.
In this session, we will see how we built the .NET SDK for Space, and how we make that massive API more digestible. We will see how we used code generation, and incrementally made the API feel more like a real .NET SDK.
Talk on how to think when building Android apps using a reactive Clean Architecture. This talk was held at the Stockholm Android Meetup group April 17 2018 at Developers bay.
Building a friendly .NET SDK to connect to SpaceMaarten Balliauw
Space is a team tool that integrates chats, meetings, git hosting, automation, and more. It has an HTTP API to integrate third party apps and workflows, but it's massive! And slightly opinionated.
In this session, we will see how we built the .NET SDK for Space, and how we make that massive API more digestible. We will see how we used code generation, and incrementally made the API feel more like a real .NET SDK.
Лаконічні та елегантні автоматизовані тести? Безболісний (майже) тестовий стек для UI веб-додатків? Більше часу, щоб випити кави/пограти у Cuphead/ подивитись у порожнечу?
Ми поговоримо про Lombok, Vavr, Owner, чому вам варто використовувати готові рішення та як зробити тести більш лаконічними та читабельними. Вам знадобиться Vaper та/або гіроборд.
This is a java lab assignment. I have added the first part java re.pdffeetshoemart
This is a java lab assignment. I have added the first part \"java retail class\" at the bottom. I am
unsure how to read the txt file into an array from the retail class. The stock txt file has been
added also.
A beginning framework and inventory list has been provided to you to use your Retail Item Class
as an array. Develop a program to accomplish the following menu items that can be selected by
the end user. Discussion of what each menu item should do is provided below the menu item.
Modify your object class file as desired. Please append initials to files created. Use Select-Case
for menu choices and methods to perform those choices. Please make a selection: 1. Open
Inventory File (This should ask the user for the file name, open the file and load the data into the
object array). 2. Display All (This should show a table of all items and data) 3. Display Reorder
Only (This should show only the stock number, Description and current quantity for items
requiring reorder) 4. Find Stock number (Allows the user to enter part of the description and
displays all matching stock numbers and descriptions matching that - case insensitive, such as
“cubs” or “cubs”) 5. Display Stock number (Allows user to enter stock number and displays
record of item) 6. Add Quantity (Asks for stock number and quantity for units, adds it to current,
displays record results) 7. Subtract Quantity (Asks for stock number and quantity, subtracts,
displays results including if reorder is needed.) 8. Change Price (Asks for stick number, changes
price to provided value, display results). 9. New Item (Allows adding a new item, updates count.
Display record results). 10. Save Inventory File (asks user for file name, save all inventory to
that file in a format that can be read back.)
public class RetailItem{
private String description;
private int unitsOnHand;
private double price;
private int restock;
public void setDescription(String userDescription){
description=userDescription;
}
public void setUnitsOnHand(int userUnitsOnHand){
unitsOnHand=userUnitsOnHand;
}
public void setPrice(double userPrice){
price=userPrice;
}
public String getDescription(){
return description;
}
public int getUnitsOnHand(){
return unitsOnHand;
}
public double getPrice(){
return price;
}
public double getTotal(){
int total = unitsOnHand=(int) price;
return total;
}
public boolean getRestock(){
return false;
}
public RetailItem(String descriptionGiven, int unitsOnHandGiven, double priceGiven, int
restockGiven){
description=descriptionGiven;
unitsOnHand=unitsOnHandGiven;
price=priceGiven;
restock=restockGiven;
}
}
Solution
public class RetailItem{
private int stocknumber;
private String description;
private int unitsOnHand;
private double price;
private int restock;
public void setDescription(String userDescription){
description=userDescription;
}
public int getStocknumber() {
return stocknumber;
}
public void setStocknumber(int stocknumber) {
this.stocknumber = stocknumber;
}
public void setUnitsOnHand(in.
Developing application for Windows Phone 7 in TDDMichele Capra
A real example of how to develop an application for Windows Phone 7 with Test Driven Development approach. In this presentation you'll see also hoew to implements the Model-View-ViewModel (MVVM) pattern.
Лаконічні та елегантні автоматизовані тести? Безболісний (майже) тестовий стек для UI веб-додатків? Більше часу, щоб випити кави/пограти у Cuphead/ подивитись у порожнечу?
Ми поговоримо про Lombok, Vavr, Owner, чому вам варто використовувати готові рішення та як зробити тести більш лаконічними та читабельними. Вам знадобиться Vaper та/або гіроборд.
This is a java lab assignment. I have added the first part java re.pdffeetshoemart
This is a java lab assignment. I have added the first part \"java retail class\" at the bottom. I am
unsure how to read the txt file into an array from the retail class. The stock txt file has been
added also.
A beginning framework and inventory list has been provided to you to use your Retail Item Class
as an array. Develop a program to accomplish the following menu items that can be selected by
the end user. Discussion of what each menu item should do is provided below the menu item.
Modify your object class file as desired. Please append initials to files created. Use Select-Case
for menu choices and methods to perform those choices. Please make a selection: 1. Open
Inventory File (This should ask the user for the file name, open the file and load the data into the
object array). 2. Display All (This should show a table of all items and data) 3. Display Reorder
Only (This should show only the stock number, Description and current quantity for items
requiring reorder) 4. Find Stock number (Allows the user to enter part of the description and
displays all matching stock numbers and descriptions matching that - case insensitive, such as
“cubs” or “cubs”) 5. Display Stock number (Allows user to enter stock number and displays
record of item) 6. Add Quantity (Asks for stock number and quantity for units, adds it to current,
displays record results) 7. Subtract Quantity (Asks for stock number and quantity, subtracts,
displays results including if reorder is needed.) 8. Change Price (Asks for stick number, changes
price to provided value, display results). 9. New Item (Allows adding a new item, updates count.
Display record results). 10. Save Inventory File (asks user for file name, save all inventory to
that file in a format that can be read back.)
public class RetailItem{
private String description;
private int unitsOnHand;
private double price;
private int restock;
public void setDescription(String userDescription){
description=userDescription;
}
public void setUnitsOnHand(int userUnitsOnHand){
unitsOnHand=userUnitsOnHand;
}
public void setPrice(double userPrice){
price=userPrice;
}
public String getDescription(){
return description;
}
public int getUnitsOnHand(){
return unitsOnHand;
}
public double getPrice(){
return price;
}
public double getTotal(){
int total = unitsOnHand=(int) price;
return total;
}
public boolean getRestock(){
return false;
}
public RetailItem(String descriptionGiven, int unitsOnHandGiven, double priceGiven, int
restockGiven){
description=descriptionGiven;
unitsOnHand=unitsOnHandGiven;
price=priceGiven;
restock=restockGiven;
}
}
Solution
public class RetailItem{
private int stocknumber;
private String description;
private int unitsOnHand;
private double price;
private int restock;
public void setDescription(String userDescription){
description=userDescription;
}
public int getStocknumber() {
return stocknumber;
}
public void setStocknumber(int stocknumber) {
this.stocknumber = stocknumber;
}
public void setUnitsOnHand(in.
Developing application for Windows Phone 7 in TDDMichele Capra
A real example of how to develop an application for Windows Phone 7 with Test Driven Development approach. In this presentation you'll see also hoew to implements the Model-View-ViewModel (MVVM) pattern.
UiPath Test Automation using UiPath Test Suite series, part 3DianaGray10
Welcome to UiPath Test Automation using UiPath Test Suite series part 3. In this session, we will cover desktop automation along with UI automation.
Topics covered:
UI automation Introduction,
UI automation Sample
Desktop automation flow
Pradeep Chinnala, Senior Consultant Automation Developer @WonderBotz and UiPath MVP
Deepak Rai, Automation Practice Lead, Boundaryless Group and UiPath MVP
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Tobias Schneck
As AI technology is pushing into IT I was wondering myself, as an “infrastructure container kubernetes guy”, how get this fancy AI technology get managed from an infrastructure operational view? Is it possible to apply our lovely cloud native principals as well? What benefit’s both technologies could bring to each other?
Let me take this questions and provide you a short journey through existing deployment models and use cases for AI software. On practical examples, we discuss what cloud/on-premise strategy we may need for applying it to our own infrastructure to get it to work from an enterprise perspective. I want to give an overview about infrastructure requirements and technologies, what could be beneficial or limiting your AI use cases in an enterprise environment. An interactive Demo will give you some insides, what approaches I got already working for real.
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...James Anderson
Effective Application Security in Software Delivery lifecycle using Deployment Firewall and DBOM
The modern software delivery process (or the CI/CD process) includes many tools, distributed teams, open-source code, and cloud platforms. Constant focus on speed to release software to market, along with the traditional slow and manual security checks has caused gaps in continuous security as an important piece in the software supply chain. Today organizations feel more susceptible to external and internal cyber threats due to the vast attack surface in their applications supply chain and the lack of end-to-end governance and risk management.
The software team must secure its software delivery process to avoid vulnerability and security breaches. This needs to be achieved with existing tool chains and without extensive rework of the delivery processes. This talk will present strategies and techniques for providing visibility into the true risk of the existing vulnerabilities, preventing the introduction of security issues in the software, resolving vulnerabilities in production environments quickly, and capturing the deployment bill of materials (DBOM).
Speakers:
Bob Boule
Robert Boule is a technology enthusiast with PASSION for technology and making things work along with a knack for helping others understand how things work. He comes with around 20 years of solution engineering experience in application security, software continuous delivery, and SaaS platforms. He is known for his dynamic presentations in CI/CD and application security integrated in software delivery lifecycle.
Gopinath Rebala
Gopinath Rebala is the CTO of OpsMx, where he has overall responsibility for the machine learning and data processing architectures for Secure Software Delivery. Gopi also has a strong connection with our customers, leading design and architecture for strategic implementations. Gopi is a frequent speaker and well-known leader in continuous delivery and integrating security into software delivery.
PHP Frameworks: I want to break free (IPC Berlin 2024)Ralf Eggert
In this presentation, we examine the challenges and limitations of relying too heavily on PHP frameworks in web development. We discuss the history of PHP and its frameworks to understand how this dependence has evolved. The focus will be on providing concrete tips and strategies to reduce reliance on these frameworks, based on real-world examples and practical considerations. The goal is to equip developers with the skills and knowledge to create more flexible and future-proof web applications. We'll explore the importance of maintaining autonomy in a rapidly changing tech landscape and how to make informed decisions in PHP development.
This talk is aimed at encouraging a more independent approach to using PHP frameworks, moving towards a more flexible and future-proof approach to PHP development.
Let's dive deeper into the world of ODC! Ricardo Alves (OutSystems) will join us to tell all about the new Data Fabric. After that, Sezen de Bruijn (OutSystems) will get into the details on how to best design a sturdy architecture within ODC.
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/
Connector Corner: Automate dynamic content and events by pushing a buttonDianaGray10
Here is something new! In our next Connector Corner webinar, we will demonstrate how you can use a single workflow to:
Create a campaign using Mailchimp with merge tags/fields
Send an interactive Slack channel message (using buttons)
Have the message received by managers and peers along with a test email for review
But there’s more:
In a second workflow supporting the same use case, you’ll see:
Your campaign sent to target colleagues for approval
If the “Approve” button is clicked, a Jira/Zendesk ticket is created for the marketing design team
But—if the “Reject” button is pushed, colleagues will be alerted via Slack message
Join us to learn more about this new, human-in-the-loop capability, brought to you by Integration Service connectors.
And...
Speakers:
Akshay Agnihotri, Product Manager
Charlie Greenberg, Host
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualityInflectra
In this insightful webinar, Inflectra explores how artificial intelligence (AI) is transforming software development and testing. Discover how AI-powered tools are revolutionizing every stage of the software development lifecycle (SDLC), from design and prototyping to testing, deployment, and monitoring.
Learn about:
• The Future of Testing: How AI is shifting testing towards verification, analysis, and higher-level skills, while reducing repetitive tasks.
• Test Automation: How AI-powered test case generation, optimization, and self-healing tests are making testing more efficient and effective.
• Visual Testing: Explore the emerging capabilities of AI in visual testing and how it's set to revolutionize UI verification.
• Inflectra's AI Solutions: See demonstrations of Inflectra's cutting-edge AI tools like the ChatGPT plugin and Azure Open AI platform, designed to streamline your testing process.
Whether you're a developer, tester, or QA professional, this webinar will give you valuable insights into how AI is shaping the future of software delivery.
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Creating a Facebook Clone - Part XXXI - Transcript.pdf
1. Creating a Facebook Clone - Part XXXI
The next big step is making this into a "real" app by implementing a lot of the "details" such as comments, search & settings. Each one of these seems like a huge task
but surprisingly they aren't as hard as one would have expected!
4. @Entity
@Indexed
public class User {
@Id
private String id;
@Field
private String firstName;
@Field
private String familyName;
@Column(unique=true)
private String email;
@Column(unique=true)
private String phone;
private String gender;
private String verificationCode;
private String verifiedEmailAddress;
User (Entity)
Users can't search everything, that would be bad as we don't want the ability to search through passwords etc.
We can add search support by marking an Entity with the @Indexed annotation then marking each field that should be indexed with the @Field annotation.
Notice that we should use the org.hibernate.search.annotations package for these annotations as there is another Indexed class in Spring Boot
5. @Entity
@Indexed
public class User {
@Id
private String id;
@Field
private String firstName;
@Field
private String familyName;
@Column(unique=true)
private String email;
@Column(unique=true)
private String phone;
private String gender;
private String verificationCode;
private String verifiedEmailAddress;
User (Entity)
We only index the name of the user as we don't necessarily want to expose private data through search
6. @Entity
@Indexed
public class Post {
@Id
private String id;
@ManyToOne
private User user;
private long date;
@Field
private String title;
@Field
private String content;
private String visibility;
private String styling;
@OneToMany
@OrderBy("date ASC")
private Set<Comment> comments;
Post (Entity)
We'll do a similar change to Post which contains fields worth indexing. We only index the text content as other content might produce weird results in search.
I could go further with searching comments etc. but for simplicity I stopped here.
7. @Service
public class SearchService {
@Autowired
private EntityManager manager;
private FullTextEntityManager ft() {
return Search.getFullTextEntityManager(manager);
}
public void rebuildSearchDB() {
ft().createIndexer().start();
}
private <T> List<T> genericSearch(String text, int page, int amount,
Class type, String... fields) {
FullTextEntityManager ft = ft();
QueryBuilder queryBuilder = ft.getSearchFactory()
.buildQueryBuilder()
.forEntity(type).get();
Query query = queryBuilder.keyword().fuzzy()
SearchService
With that the entities should be completely searchable. We now need to expose the search functionality in the service layer.
This warrants a brand new SearchService class.
8. @Service
public class SearchService {
@Autowired
private EntityManager manager;
private FullTextEntityManager ft() {
return Search.getFullTextEntityManager(manager);
}
public void rebuildSearchDB() {
ft().createIndexer().start();
}
private <T> List<T> genericSearch(String text, int page, int amount,
Class type, String... fields) {
FullTextEntityManager ft = ft();
QueryBuilder queryBuilder = ft.getSearchFactory()
.buildQueryBuilder()
.forEntity(type).get();
Query query = queryBuilder.keyword().fuzzy()
SearchService
The entity manager provides direct access to the underlying JPA implementation. Normally Spring Boot hides that but for search we need direct access
9. @Service
public class SearchService {
@Autowired
private EntityManager manager;
private FullTextEntityManager ft() {
return Search.getFullTextEntityManager(manager);
}
public void rebuildSearchDB() {
ft().createIndexer().start();
}
private <T> List<T> genericSearch(String text, int page, int amount,
Class type, String... fields) {
FullTextEntityManager ft = ft();
QueryBuilder queryBuilder = ft.getSearchFactory()
.buildQueryBuilder()
.forEntity(type).get();
Query query = queryBuilder.keyword().fuzzy()
SearchService
This is a small helper method that shortens the boilerplate syntax to ft() instead all of that code…
10. @Service
public class SearchService {
@Autowired
private EntityManager manager;
private FullTextEntityManager ft() {
return Search.getFullTextEntityManager(manager);
}
public void rebuildSearchDB() {
ft().createIndexer().start();
}
private <T> List<T> genericSearch(String text, int page, int amount,
Class type, String... fields) {
FullTextEntityManager ft = ft();
QueryBuilder queryBuilder = ft.getSearchFactory()
.buildQueryBuilder()
.forEntity(type).get();
Query query = queryBuilder.keyword().fuzzy()
SearchService
We first need to build a search database, this is a one time operation. Once the database is built Hibernate will keep the database up to date
11. }
public void rebuildSearchDB() {
ft().createIndexer().start();
}
private <T> List<T> genericSearch(String text, int page, int amount,
Class type, String... fields) {
FullTextEntityManager ft = ft();
QueryBuilder queryBuilder = ft.getSearchFactory()
.buildQueryBuilder()
.forEntity(type).get();
Query query = queryBuilder.keyword().fuzzy()
.onFields(fields).matching(text).createQuery();
FullTextQuery jpaQuery = ft.createFullTextQuery(query, type);
return jpaQuery.setFirstResult(page * amount).
setMaxResults(amount).getResultList();
}
public List<UserDAO> searchPeople(String name, int page, int amount) {
List<User> results = genericSearch(name, page, amount,
User.class, "firstName", "familyName");
SearchService
We have two types of searches so I combined their common logic into this method
12. }
public void rebuildSearchDB() {
ft().createIndexer().start();
}
private <T> List<T> genericSearch(String text, int page, int amount,
Class type, String... fields) {
FullTextEntityManager ft = ft();
QueryBuilder queryBuilder = ft.getSearchFactory()
.buildQueryBuilder()
.forEntity(type).get();
Query query = queryBuilder.keyword().fuzzy()
.onFields(fields).matching(text).createQuery();
FullTextQuery jpaQuery = ft.createFullTextQuery(query, type);
return jpaQuery.setFirstResult(page * amount).
setMaxResults(amount).getResultList();
}
public List<UserDAO> searchPeople(String name, int page, int amount) {
List<User> results = genericSearch(name, page, amount,
User.class, "firstName", "familyName");
SearchService
The query builder searches a specific entity e.g. Post, User etc. once we have it we can construct a complex search query
13. }
public void rebuildSearchDB() {
ft().createIndexer().start();
}
private <T> List<T> genericSearch(String text, int page, int amount,
Class type, String... fields) {
FullTextEntityManager ft = ft();
QueryBuilder queryBuilder = ft.getSearchFactory()
.buildQueryBuilder()
.forEntity(type).get();
Query query = queryBuilder.keyword().fuzzy()
.onFields(fields).matching(text).createQuery();
FullTextQuery jpaQuery = ft.createFullTextQuery(query, type);
return jpaQuery.setFirstResult(page * amount).
setMaxResults(amount).getResultList();
}
public List<UserDAO> searchPeople(String name, int page, int amount) {
List<User> results = genericSearch(name, page, amount,
User.class, "firstName", "familyName");
SearchService
The search for keywords is marked as fuzzy which means it will find answers that don't match completely for the given text
14. }
public void rebuildSearchDB() {
ft().createIndexer().start();
}
private <T> List<T> genericSearch(String text, int page, int amount,
Class type, String... fields) {
FullTextEntityManager ft = ft();
QueryBuilder queryBuilder = ft.getSearchFactory()
.buildQueryBuilder()
.forEntity(type).get();
Query query = queryBuilder.keyword().fuzzy()
.onFields(fields).matching(text).createQuery();
FullTextQuery jpaQuery = ft.createFullTextQuery(query, type);
return jpaQuery.setFirstResult(page * amount).
setMaxResults(amount).getResultList();
}
public List<UserDAO> searchPeople(String name, int page, int amount) {
List<User> results = genericSearch(name, page, amount,
User.class, "firstName", "familyName");
SearchService
We create the query and issue it, we give it a range of results so we can page through query results like we do with other pageable content
15. return jpaQuery.setFirstResult(page * amount).
setMaxResults(amount).getResultList();
}
public List<UserDAO> searchPeople(String name, int page, int amount) {
List<User> results = genericSearch(name, page, amount,
User.class, "firstName", "familyName");
List<UserDAO> response = new ArrayList<>();
for(User u : results) {
response.add(u.getDAO());
}
return response;
}
public List<PostDAO> searchPosts(String text, int page, int amount) {
List<Post> results = genericSearch(text, page, amount,
Post.class, "title", "content");
List<PostDAO> response = new ArrayList<>();
for(Post p : results) {
response.add(p.getDAO());
}
return response;
}
SearchService
Searching people or posts becomes a matter of passing the entity type, field names & paging numbers
16. }
public List<UserDAO> searchPeople(String name, int page, int amount) {
List<User> results = genericSearch(name, page, amount,
User.class, "firstName", "familyName");
List<UserDAO> response = new ArrayList<>();
for(User u : results) {
response.add(u.getDAO());
}
return response;
}
public List<PostDAO> searchPosts(String text, int page, int amount) {
List<Post> results = genericSearch(text, page, amount,
Post.class, "title", "content");
List<PostDAO> response = new ArrayList<>();
for(Post p : results) {
response.add(p.getDAO());
}
return response;
}
}
SearchService
We then convert the entity result to the DAO object as return types
17. }
public List<UserDAO> searchPeople(String name, int page, int amount) {
List<User> results = genericSearch(name, page, amount,
User.class, "firstName", "familyName");
List<UserDAO> response = new ArrayList<>();
for(User u : results) {
response.add(u.getDAO());
}
return response;
}
public List<PostDAO> searchPosts(String text, int page, int amount) {
List<Post> results = genericSearch(text, page, amount,
Post.class, "title", "content");
List<PostDAO> response = new ArrayList<>();
for(Post p : results) {
response.add(p.getDAO());
}
return response;
}
}
SearchService
Post searches are exactly the same only with Post objects instead of User objects.
That was a bit of code but the premise is relatively simple and the heavy lifting is done by Hibernate. The interesting part is the query builder portion. You can customize
the query builder with any fields you wish to search and complex constraints related to the search. But for the simple implementation we have right now this will do just
fine.