This is a presentation about XStream, the lightweight and easy-to-use open source Java™ library, used for serializing java objects into XML and de-serializing XML back into java objects.
In the publication I briefly describe what metaclasses are in Python. The writeup is a living item and will be extended with more detail shortly.
Please enjoy and comment.
In the publication I briefly describe what metaclasses are in Python. The writeup is a living item and will be extended with more detail shortly.
Please enjoy and comment.
Why is Haskell so hard! (And how to deal with it?)Saurabh Nanda
Slides of my talk at Functional Conf 2019 where I draw upon my personal journey of learning Haskell and try to explain WHY learning Haskell is so hard. And even while it is hard, it is worth learning Haskell!
Basic developers understand, at some level, what WordPress "does" and how to modify its behavior. Better developers understand how to create objects, object meta data, and object relationships in WordPress (post types, meta, taxonomies). But the best engineers understand how all of this data actually manifests itself in the raw database architecture.
Understanding how WordPress stores, organizes, and relates data when you strip away the PHP software layer can give you a deeper understanding and appreciation for the brilliance, deficits, potential, limits, and legacy of WordPress.
We'll study WordPress's database schema, relate it back to core data model concepts like custom post types and taxonomies, meander holes in the models (like "why isn't there term meta??"), and even compare to past database structure to see how WordPress's database has evolved with the software.
A deep dive into the core language features and functions of Clojure, as well as a discussion of how Clojure compiles to Java bytecode, and a few of Clojure's pitfalls.
Native XML processing in C++ (BoostCon'11)Sumant Tambe
XML programming has emerged as a powerful data processing paradigm with its own rules for abstracting, partitioning, programming styles, and idioms. Seasoned XML programmers expect, and their productivity depends on the availability of languages and tools that allow usage of the patterns and practices native to the domain of XML programming. The object-oriented community, however, prefers XML data binding tools over dedicated XML languages because these tools automatically generate a statically-typed, vocabulary-specific object model from a given XML schema. Unfortunately, these tools often sidestep the expectations of seasoned XML programmers because of the difficulties in synthesizing abstractions of XML programming using purely object-oriented principles. This talk demonstrates how this prevailing gap can be significantly narrowed by a novel application of multi-paradigm programming capabilities of C++. In particular, how generic programming, meta-programming, generative programming, strategic programming, and operator overloading supported by C++ together enable native and typed XML programming.
Why is Haskell so hard! (And how to deal with it?)Saurabh Nanda
Slides of my talk at Functional Conf 2019 where I draw upon my personal journey of learning Haskell and try to explain WHY learning Haskell is so hard. And even while it is hard, it is worth learning Haskell!
Basic developers understand, at some level, what WordPress "does" and how to modify its behavior. Better developers understand how to create objects, object meta data, and object relationships in WordPress (post types, meta, taxonomies). But the best engineers understand how all of this data actually manifests itself in the raw database architecture.
Understanding how WordPress stores, organizes, and relates data when you strip away the PHP software layer can give you a deeper understanding and appreciation for the brilliance, deficits, potential, limits, and legacy of WordPress.
We'll study WordPress's database schema, relate it back to core data model concepts like custom post types and taxonomies, meander holes in the models (like "why isn't there term meta??"), and even compare to past database structure to see how WordPress's database has evolved with the software.
A deep dive into the core language features and functions of Clojure, as well as a discussion of how Clojure compiles to Java bytecode, and a few of Clojure's pitfalls.
Native XML processing in C++ (BoostCon'11)Sumant Tambe
XML programming has emerged as a powerful data processing paradigm with its own rules for abstracting, partitioning, programming styles, and idioms. Seasoned XML programmers expect, and their productivity depends on the availability of languages and tools that allow usage of the patterns and practices native to the domain of XML programming. The object-oriented community, however, prefers XML data binding tools over dedicated XML languages because these tools automatically generate a statically-typed, vocabulary-specific object model from a given XML schema. Unfortunately, these tools often sidestep the expectations of seasoned XML programmers because of the difficulties in synthesizing abstractions of XML programming using purely object-oriented principles. This talk demonstrates how this prevailing gap can be significantly narrowed by a novel application of multi-paradigm programming capabilities of C++. In particular, how generic programming, meta-programming, generative programming, strategic programming, and operator overloading supported by C++ together enable native and typed XML programming.
This article deals with the generation of C# code, strong types, from XSD ComplexType definitions.
ComplexType definitions used are taken from the Open Travel 2014B Schema set. Documentation and Unit Tests are given.
More Stored Procedures and MUMPS for DivConqeTimeline, LLC
Reviews how Schema is used to define stored procedures and to validate the parameters during a call. Also, gives an example of updating the database from a stored procedure.
Extending the series of articles looking at strong-type generation from XSD Schema definitions, here we take the AttributeGroup and Attribute elements and show how these are handled in our generator.
This article describes how the W3C Schema SimpleType definitions can be transformed through generation to strong-types that can be used directly in development projects.
Cassandra stands out amongst the big data products in its ability to handle optimized writes of large amounts of data while providing configurable fault tolerance and data integrity. Two popular libraries that allow the JVM developer to leverage these capabilities are Hector and the recently open sourced Astyanax. In this talk, Joe presents examples of storing time series data in a Cassandra data store using both of these libraries. There will be code! As an added bonus, a mechanism to unit test using an embedded Cassandra client will be presented.
Code can be downloaded from https://github.com/jmctee/Cassandra-Client-Tutorial
JavaScript - An Introduction is a beginner's guide to JavaScript. It starts with very basic level and goes to intermediate level. You'll be introduced with every language constructs, Event handling, Form handling and AJAX which is supported by JavaScript with XMLHttpRequest object. This XHR object is discussed in enough detail so that you can understand how the underlying AJAX functionality works in jQuery. At the end it discusses advance concepts and library build on/around JavaScript.
This presentation explains a team work model that can be applied to development projects to facilitate smooth functioning of the project even during sudden non-availability of a developer or in cases where a developer departs from the team.
This presentation explains how to play some team building activities that are important to the effective management and growth of teams and their objectives.
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/
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.
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!
Essentials of Automations: The Art of Triggers and Actions in FMESafe Software
In this second installment of our Essentials of Automations webinar series, we’ll explore the landscape of triggers and actions, guiding you through the nuances of authoring and adapting workspaces for seamless automations. Gain an understanding of the full spectrum of triggers and actions available in FME, empowering you to enhance your workspaces for efficient automation.
We’ll kick things off by showcasing the most commonly used event-based triggers, introducing you to various automation workflows like manual triggers, schedules, directory watchers, and more. Plus, see how these elements play out in real scenarios.
Whether you’re tweaking your current setup or building from the ground up, this session will arm you with the tools and insights needed to transform your FME usage into a powerhouse of productivity. Join us to discover effective strategies that simplify complex processes, enhancing your productivity and transforming your data management practices with FME. Let’s turn complexity into clarity and make your workspaces work wonders!
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdfPeter Spielvogel
Building better applications for business users with SAP Fiori.
• What is SAP Fiori and why it matters to you
• How a better user experience drives measurable business benefits
• How to get started with SAP Fiori today
• How SAP Fiori elements accelerates application development
• How SAP Build Code includes SAP Fiori tools and other generative artificial intelligence capabilities
• How SAP Fiori paves the way for using AI in SAP apps
GraphRAG is All You need? LLM & Knowledge GraphGuy Korland
Guy Korland, CEO and Co-founder of FalkorDB, will review two articles on the integration of language models with knowledge graphs.
1. Unifying Large Language Models and Knowledge Graphs: A Roadmap.
https://arxiv.org/abs/2306.08302
2. Microsoft Research's GraphRAG paper and a review paper on various uses of knowledge graphs:
https://www.microsoft.com/en-us/research/blog/graphrag-unlocking-llm-discovery-on-narrative-private-data/
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.
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Albert Hoitingh
In this session I delve into the encryption technology used in Microsoft 365 and Microsoft Purview. Including the concepts of Customer Key and Double Key Encryption.
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.
The Art of the Pitch: WordPress Relationships and SalesLaura Byrne
Clients don’t know what they don’t know. What web solutions are right for them? How does WordPress come into the picture? How do you make sure you understand scope and timeline? What do you do if sometime changes?
All these questions and more will be explored as we talk about matching clients’ needs with what your agency offers without pulling teeth or pulling your hair out. Practical tips, and strategies for successful relationship building that leads to closing the deal.
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...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.
In his public lecture, Christian Timmerer provides insights into the fascinating history of video streaming, starting from its humble beginnings before YouTube to the groundbreaking technologies that now dominate platforms like Netflix and ORF ON. Timmerer also presents provocative contributions of his own that have significantly influenced the industry. He concludes by looking at future challenges and invites the audience to join in a discussion.
A tale of scale & speed: How the US Navy is enabling software delivery from l...sonjaschweigert1
Rapid and secure feature delivery is a goal across every application team and every branch of the DoD. The Navy’s DevSecOps platform, Party Barge, has achieved:
- Reduction in onboarding time from 5 weeks to 1 day
- Improved developer experience and productivity through actionable findings and reduction of false positives
- Maintenance of superior security standards and inherent policy enforcement with Authorization to Operate (ATO)
Development teams can ship efficiently and ensure applications are cyber ready for Navy Authorizing Officials (AOs). In this webinar, Sigma Defense and Anchore will give attendees a look behind the scenes and demo secure pipeline automation and security artifacts that speed up application ATO and time to production.
We will cover:
- How to remove silos in DevSecOps
- How to build efficient development pipeline roles and component templates
- How to deliver security artifacts that matter for ATO’s (SBOMs, vulnerability reports, and policy evidence)
- How to streamline operations with automated policy checks on container images
Dr. Sean Tan, Head of Data Science, Changi Airport Group
Discover how Changi Airport Group (CAG) leverages graph technologies and generative AI to revolutionize their search capabilities. This session delves into the unique search needs of CAG’s diverse passengers and customers, showcasing how graph data structures enhance the accuracy and relevance of AI-generated search results, mitigating the risk of “hallucinations” and improving the overall customer journey.
2. Lightweightand easy-to-use open source
Java™ library
Usedfor serializing java objects into XML and
de-serializing XML back into java objects
Usesreflection API for serialization and
deserialization
4. To Serialize an object to a XML String use:
xstream.toXML(Object obj);
ToDeserialize an object from an XML String
use:
xstream.fromXML(String xml);
5. import com.thoughtworks.xstream.XStream;
public class HelloWorld {
public static void main(String[] args) {
XStream xstream = new XStream();
String salutation = "Hello, World!";
String xml = xstream.toXML(salutation);
System.out.print(xml);
}
}
Output
<string>Hello, World!</string>
12. Aliasingenables us to use different tag or
attribute names in the generated XML.
The different types of aliasing that Xstream
supports are:
Class aliasing
Field aliasing
Attribute aliasing
Package aliasing
Omitting fields and root tag of collection
13. Xstream default serialization nature:
fully qualified class name <> element name
corresponding to the class
Use Class Aliasing to get the class name
(without the package name) as the XML
element name
To create alias for any class' name, use
xstream.alias(String alias, Class clsname);
14. Syntax:
xstream.alias(String alias, Class clsName);
Example:
xstream.alias(“Person", Person.class);
Before Class Aliasing After Class Aliasing
<com.example.Person> <Person>
<name>Joe</name> <name>Joe</name>
<age>23</age> <age>23</age>
<phone> <phone>
<code>123</code> <code>123</code>
<number>123456</number> <number>123456</number>
</phone> </phone>
<fax> <fax>
<code>123</code> <code>123</code>
<number>112233</number> <number>112233</number>
</fax> </fax>
</com.example.Person> </Person>
15. Syntax:
xstream.aliasField(String alias, Class definedIn, String fieldName);
Example:
xstream.aliasField("Name", Person.class, "name");
Before Field Aliasing After Field Aliasing
<Person> <Person>
<name>Joe</name> <Name>Joe</Name>
<age>23</age> <age>23</age>
<phone> <phone>
<code>123</code> <code>123</code>
<number>123456</number> <number>123456</number>
</phone> </phone>
<fax> <fax>
<code>123</code> <code>123</code>
<number>112233</number> <number>112233</number>
</fax> </fax>
</Person> </Person>
16. Syntax:
xstream.aliasAttribute(Class definedIn, String fieldName, String
alias); // makes field as attribute and sets an alias name for it
Example:
xstream.aliasAttribute(PhoneNumber.class, "code", "AreaCode");
xstream.aliasAttribute(PhoneNumber.class, "number", "Number");
Before Attribute Aliasing After Attribute Aliasing
<Person> <Person>
<name>Joe</name> <Name>Joe</Name>
<age>23</age> <age>23</age>
<phone> <phone AreaCode="123" Number="123456"/>
<code>123</code> <fax AreaCode="123" Number="112233"/>
<number>123456</number> </Person>
</phone>
<fax>
<code>123</code>
<number>112233</number>
</fax>
</Person>
25. For converting particular types of objects
found in the object graph, to and from XML.
Xstream provides converters for primitives,
String, File, Collections, arrays, and Dates.
Types:
Converters for converting common basic types in
Java into a single String, with no nested
elements
Converters for converting items in collections
such as arrays, Lists, Sets and Maps into nested
elements
26.
27.
28.
29. To customize the information being serialized
or deserialized.
They can be implemented and registered
using the
XStream.registerConverter() method
Converters for objects that can store all
information in a single value should
implement SingleValueConverter.
30.
31.
32.
33.
34. Annotations simplify the process of setting aliases and
registering converters etc.
Annotations do not provide more functionality, but may
improve convenience.
Annotation Types Description
@XStreamAlias Annotation used to define an XStream class or
field value.
@XStreamAsAttribute Defines that a field should be serialized as an
attribute.
@XStreamConverter Annotation to declare a converter.
@XStreamImplicit An annotation for marking a field as an
implicit collection.
@XStreamInclude Annotation to force automated processing of
further classes.
@XStreamOmitField Declares a field to be omitted.
35. processAnnotation() method to configure
Xstream to process annotations defined in
classes
All super types, implemented interfaces, the
class types of the members and all their generic
types will be processed.
For e.g. the statement
xstream.processAnnotations(Person.class);
will also process the annotations of its member
of type Company. So there is no need to
explicitly configure processAnnotation() for the
class Company.
36. XStream can also be run in a lazy mode,
where it auto-detects the annotations while
processing the object graph and configures
the XStream instance on-the-fly.
Example:
XStream xstream = new XStream() {
{
autodetectAnnotations(true);
}
};
37. Implications of using autodetectAnnotations
Deserialization will fail if the type has not
already been processed either by having called
XStream's processAnnotations method or by
already having serialized this type. However,
@XStreamAlias is the only annotation that may
fail in this case
May cause thread-unsafe operation
will slow down the marshalling process until all
processed types have been examined once.
38. Annotation used to define an XStream class or field value.
Xstream method Equivalent Xstream
Annotation
xstream.alias("Person", Person.class); @XStreamAlias("Person")
public class Person {
...
...
}
39. Defines that a field should be serialized as an attribute.
Xstream method Equivalent Xstream
Annotation
xstream.aliasAttribute(Person.class, @XStreamAlias("Person")
"company", "Company"); public class Person {
...
...
@XStreamAsAttribute
@XStreamAlias("Company")
private Company company;
...
...
}
40. Annotation to declare a converter.
Xstream method Equivalent Xstream Annotation
xstream.registerConverter(new @XStreamConverter(CompanyConverter.class)
CompanyConverter()); public class Company {
...
}
To register the custom converter locally, i.e. only for the
member variable company defined in the Person class
Xstream method Equivalent Xstream Annotation
xstream.registerConverter(new @XStreamAlias("Person")
CompanyConverter()); public class Person {
...
@XStreamAsAttribute
@XstreamAlias("Company")
@XStreamConverter(CompanyConverter.class)
private Company company;
...
}
41. An annotation for marking a field as an implicit collection.
Xstream method Equivalent Xstream Annotation
xstream.addImplicitCollection(Cu @XStreamAlias("Customers")
stomers.class, "customers"); public class Customers {
@XStreamImplicit
private List customers;
...
...
}
42. Declares a field to be omitted.
Xstream method Equivalent Xstream Annotation
xstream.omitField(Person.class, @XStreamAlias("Person")
"phone"); public class Person {
...
@XStreamOmitField
private PhoneNumber phone;
@XStreamOmitField
private PhoneNumber fax;
...
}
43. Used by base classes to improve annotation processing when
deserializing.
Example:
44. Annotation processing using autodetectAnnotations
45. Annotation processing using processAnnotations