Jan Stępień - GraalVM: Fast, Polyglot, Native - Codemotion Berlin 2018Codemotion
GraalVM challenges the status quo on the JVM. This newly-released JIT compiler brings substantial speed improvements and support for polyglot applications. It also allows us to translate our JVM bytecode into self-contained native binaries. In this session we’ll explore GraalVM’s potential. We’ll focus on Clojure, but our discussion will apply to many more programming languages. We’ll use GraalVM to build small native binaries. We’ll discuss the method’s limitations and their impact. Finally, we’ll build complete Clojure web apps weighing a fraction of their traditional JVM incarnations.
Jan Stępień - GraalVM: Fast, Polyglot, Native - Codemotion Berlin 2018Codemotion
GraalVM challenges the status quo on the JVM. This newly-released JIT compiler brings substantial speed improvements and support for polyglot applications. It also allows us to translate our JVM bytecode into self-contained native binaries. In this session we’ll explore GraalVM’s potential. We’ll focus on Clojure, but our discussion will apply to many more programming languages. We’ll use GraalVM to build small native binaries. We’ll discuss the method’s limitations and their impact. Finally, we’ll build complete Clojure web apps weighing a fraction of their traditional JVM incarnations.
Dpilot is a cloud based file transfer application that allows its user to upload data on cloud server and the receiver on the other hand can downlaod the data from the server. The Downlaod information is send to the receiver via mail service.
Other Features include:-
Secure Login system
Easy data Access
Lightening Fast Uploads and Downloads
Connect with your Facebook Or Gmail Account for easy access
Webinar: MongoDB Persistence with Java and MorphiaMongoDB
MongoDB is the leading noSQL database and as with any new technology, some of the biggest questions are about tools and integration. This webinar will cover how to use MongoDB from a Java application and introduce Morphia, the object document mapping library. It will cover the essential features of the framework with examples before moving on to some of the more advanced and upcoming features such as text search and aggregation framework support.
Reactive Web - Servlet & Async, Non-blocking I/OArawn Park
자바 서블릿(Java Servlet) 기술을 기반으로
리액티브 웹(REACTIVE WEB) 구현 과정을 공유!
1부, Servlet & Async, Non-blocking I/O
2부, Reactive Programing (작성 중)
3부, Spring Reactive Web (작성 중)
Using Fuzzy Code Search to Link Code Fragments in Discussions to Source CodeNicolas Bettenburg
Talk on Using Fuzzy Code Search to Link Code Fragments in Discussions to Source Code, given at the 16th European Conference on Software Maintenance and Reengineering (CSMR'12) in Hungary.
Liferay Mobile SDK has been enabling developers to create native apps backed by Liferay Portal’s power. We’ve been using it in production since 2013 and have noticed many improvement points. We also listened to the community and added new features that will make app development even faster. The new Liferay Mobile SDK for Android brings a lot of new features that boosts apps development. Things from automatic JSON parsing and RxJava compatibility to better code generation are ones of the improvements in this new major release.
Dpilot is a cloud based file transfer application that allows its user to upload data on cloud server and the receiver on the other hand can downlaod the data from the server. The Downlaod information is send to the receiver via mail service.
Other Features include:-
Secure Login system
Easy data Access
Lightening Fast Uploads and Downloads
Connect with your Facebook Or Gmail Account for easy access
Webinar: MongoDB Persistence with Java and MorphiaMongoDB
MongoDB is the leading noSQL database and as with any new technology, some of the biggest questions are about tools and integration. This webinar will cover how to use MongoDB from a Java application and introduce Morphia, the object document mapping library. It will cover the essential features of the framework with examples before moving on to some of the more advanced and upcoming features such as text search and aggregation framework support.
Reactive Web - Servlet & Async, Non-blocking I/OArawn Park
자바 서블릿(Java Servlet) 기술을 기반으로
리액티브 웹(REACTIVE WEB) 구현 과정을 공유!
1부, Servlet & Async, Non-blocking I/O
2부, Reactive Programing (작성 중)
3부, Spring Reactive Web (작성 중)
Using Fuzzy Code Search to Link Code Fragments in Discussions to Source CodeNicolas Bettenburg
Talk on Using Fuzzy Code Search to Link Code Fragments in Discussions to Source Code, given at the 16th European Conference on Software Maintenance and Reengineering (CSMR'12) in Hungary.
Liferay Mobile SDK has been enabling developers to create native apps backed by Liferay Portal’s power. We’ve been using it in production since 2013 and have noticed many improvement points. We also listened to the community and added new features that will make app development even faster. The new Liferay Mobile SDK for Android brings a lot of new features that boosts apps development. Things from automatic JSON parsing and RxJava compatibility to better code generation are ones of the improvements in this new major release.
Building component-driven UIs at SpotifyJohn Sundell
Slides from my "Building component-driven UIs at Spotify" talk that I gave at UIMobiTech in Dnipro, Ukraine in July 2016. The talk covered how Spotify has moved to an architecture where most UIs are build declaratively using a component-driven approach.
Lambda Chops - Recipes for Simpler, More Expressive CodeIan Robertson
While the new Streams API has been a great showcase for lambda methods, there are many other ways this new language feature can be used to make friendlier APIs and more expressive code. Lambdas can be used for a number of tasks which historically required significant boilerplate, type-unsafe constructs, or both. From new ways to express metedata, to emulating Groovy's null-safe navigation operator, we'll take a look at a myriad of ways, big and small, that you can use lambdas to improve APIs and streamline your code. We'll also look at some of the limitations of lambdas, and some techniques for overcoming them.
Grâce aux tags Varnish, j'ai switché ma prod sur Raspberry PiJérémy Derussé
Le moyen le plus rapide d'obtenir une réponse d'un Backend est de ne pas l'appeler ;-) Une solution fournie par les "reverse-proxy" me direz-vous, mais pas si simple d'invalider le cache...
Ce talk aborde une fonctionnalité méconnue de Varnish: les tags. Nous verrons comment en tirer partie via les "event listeners" d'une application Symfony standard. Au menu, un cluster de Rasberry Pi, une API, et des données toujours fraîches sous la milliseconde.
Build powerfull and smart web applications with Symfony2Hugo Hamon
Symfony2 first stable release is scheduled for the first week of March 2011. During this session, we will have a look at the new framework architecture and most of its powerfull features.
We will show you how Symfony2 implements the MVC pattern and an HTTP request is processed and converted as a response for the end user. Of course, we will talk about the configuration principles and how it's easy to configure Symfony2 project parts like the routing system or the data model. We will also focus on other major components of the framework like the Doctrine2 integration, forms, security (authentication and authorizations) or HTTP cache management.
Esoft Metro Campus - Diploma in Web Engineering - (Module VIII) Multimedia Technologies
(Template - Virtusa Corporate)
Contents:
include and require Statements
include and require
include_once Statement
Validating Files
file_exists() function
is_dir() function
is_readable() function
is_writable() function
is_executable() function
filesize() function
filemtime() function
filectime() function
fileatime() function
Creating and deleting files
touch() function
unlink() function
File reading, writing and appending
Open File - fopen()
Close File - fclose()
Read File - fread()
Read Single Line - fgets()
Check End-Of-File - feof()
Read Single Character - fgetc()
Seek File - fseek()
Write File - fwrite()
Write File - fputs()
Lock File - flock()
Working with Directories
Create directory - mkdir()
Remove directory - rmdir()
Open directory - opendir()
Read directory - readdir()
Epistemic Interaction - tuning interfaces to provide information for AI supportAlan Dix
Paper presented at SYNERGY workshop at AVI 2024, Genoa, Italy. 3rd June 2024
https://alandix.com/academic/papers/synergy2024-epistemic/
As machine learning integrates deeper into human-computer interactions, the concept of epistemic interaction emerges, aiming to refine these interactions to enhance system adaptability. This approach encourages minor, intentional adjustments in user behaviour to enrich the data available for system learning. This paper introduces epistemic interaction within the context of human-system communication, illustrating how deliberate interaction design can improve system understanding and adaptation. Through concrete examples, we demonstrate the potential of epistemic interaction to significantly advance human-computer interaction by leveraging intuitive human communication strategies to inform system design and functionality, offering a novel pathway for enriching user-system engagements.
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.
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
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.
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
Accelerate your Kubernetes clusters with Varnish CachingThijs Feryn
A presentation about the usage and availability of Varnish on Kubernetes. This talk explores the capabilities of Varnish caching and shows how to use the Varnish Helm chart to deploy it to Kubernetes.
This presentation was delivered at K8SUG Singapore. See https://feryn.eu/presentations/accelerate-your-kubernetes-clusters-with-varnish-caching-k8sug-singapore-28-2024 for more details.
Key Trends Shaping the Future of Infrastructure.pdfCheryl Hung
Keynote at DIGIT West Expo, Glasgow on 29 May 2024.
Cheryl Hung, ochery.com
Sr Director, Infrastructure Ecosystem, Arm.
The key trends across hardware, cloud and open-source; exploring how these areas are likely to mature and develop over the short and long-term, and then considering how organisations can position themselves to adapt and thrive.
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...UiPathCommunity
💥 Speed, accuracy, and scaling – discover the superpowers of GenAI in action with UiPath Document Understanding and Communications Mining™:
See how to accelerate model training and optimize model performance with active learning
Learn about the latest enhancements to out-of-the-box document processing – with little to no training required
Get an exclusive demo of the new family of UiPath LLMs – GenAI models specialized for processing different types of documents and messages
This is a hands-on session specifically designed for automation developers and AI enthusiasts seeking to enhance their knowledge in leveraging the latest intelligent document processing capabilities offered by UiPath.
Speakers:
👨🏫 Andras Palfi, Senior Product Manager, UiPath
👩🏫 Lenka Dulovicova, Product Program Manager, UiPath
Generating a custom Ruby SDK for your web service or Rails API using Smithyg2nightmarescribd
Have you ever wanted a Ruby client API to communicate with your web service? Smithy is a protocol-agnostic language for defining services and SDKs. Smithy Ruby is an implementation of Smithy that generates a Ruby SDK using a Smithy model. In this talk, we will explore Smithy and Smithy Ruby to learn how to generate custom feature-rich SDKs that can communicate with any web service, such as a Rails JSON API.
2. ⌘ U
+how became my new ⌘ R
+
Unit tests are a waste of time. It’s faster and easier to do
manual testing, and focus my coding time on writing
actual code.
Unbox, Wrap, Hub Framework, etc…
Integrating, re-building, manual testing⏳
Bugs, regressions, unwanted behavior"
3. ⌘ U
+how became my new ⌘ R
+
Automating testing = Focus on coding#
$
Spotify app
Hub Framework 20x faster compile times!
Tests provide documentation of intent%
Tests let me move faster, I don’t have to constantly run
the app, but can instead verify most of its working parts
in isolation, and make quick iterations.
6. What makes code easy to test?
Unified
Input/Output
Injected
dependencies
State is kept
local
1 Design your code for testability
7. class FileLoader {
static let shared = FileLoader()
private let cache = Cache()
func file(named fileName: String) throws -> File {
if let cachedFile = cache.file(named: fileName) {
return cachedFile
}
let bundle = Bundle.main
guard let url = bundle.url(forResource: fileName, withExtension: nil) else {
throw NSError(domain: "com.johnsundell.myapp.fileLoader", code: 7, userInfo: nil)
}
let data = try Data(contentsOf: url)
let file = File(data: data)
cache.cache(file: file, name: fileName)
return file
}
}
Unified
Input/Output
Injected
dependencies
State is kept
local
8. class FileLoader {
static let shared = FileLoader()
private let cache = Cache()
func file(named fileName: String) throws -> File {
if let cachedFile = cache.file(named: fileName) {
return cachedFile
}
let bundle = Bundle.main
guard let url = bundle.url(forResource: fileName, withExtension: nil) else {
throw NSError(domain: "com.johnsundell.myapp.fileLoader", code: 7, userInfo: nil)
}
let data = try Data(contentsOf: url)
let file = File(data: data)
cache.cache(file: file, name: fileName)
return file
}
}
Unified
Input/Output
Injected
dependencies
State is kept
local
Unified
Input/Output
9. class FileLoader {
static let shared = FileLoader()
private let cache = Cache()
func file(named fileName: String) throws -> File {
if let cachedFile = cache.file(named: fileName) {
return cachedFile
}
let bundle = Bundle.main
guard let url = bundle.url(forResource: fileName, withExtension: nil) else {
throw NSError(domain: "com.johnsundell.myapp.fileLoader", code: 7, userInfo: nil)
}
let data = try Data(contentsOf: url)
let file = File(data: data)
cache.cache(file: file, name: fileName)
return file
}
}
Unified
Input/Output
Injected
dependencies
State is kept
local
Unified
Input/Output
State is kept
local
10. class FileLoader {
static let shared = FileLoader()
private let cache = Cache()
func file(named fileName: String) throws -> File {
if let cachedFile = cache.file(named: fileName) {
return cachedFile
}
let bundle = Bundle.main
guard let url = bundle.url(forResource: fileName, withExtension: nil) else {
throw NSError(domain: "com.johnsundell.myapp.fileLoader", code: 7, userInfo: nil)
}
let data = try Data(contentsOf: url)
let file = File(data: data)
cache.cache(file: file, name: fileName)
return file
}
}
Unified
Input/Output
Injected
dependencies
State is kept
local
Unified
Input/Output
State is kept
local
Injected
dependencies
11. class FileLoader {
static let shared = FileLoader()
private let cache = Cache()
func file(named fileName: String) throws -> File {
if let cachedFile = cache.file(named: fileName) {
return cachedFile
}
let bundle = Bundle.main
guard let url = bundle.url(forResource: fileName, withExtension: nil) else {
throw NSError(domain: "com.johnsundell.myapp.fileLoader", code: 7, userInfo: nil)
}
let data = try Data(contentsOf: url)
let file = File(data: data)
cache.cache(file: file, name: fileName)
return file
}
}
Unified
Input/Output
Injected
dependencies
State is kept
local
Unified
Input/Output
State is kept
local
Injected
dependencies
enum FileLoaderError: Error {
case invalidFileName(String)
case invalidFileURL(URL)
}
Dedicated error type
throw FileLoaderError.invalidFileName(fileName)
do {
let data = try Data(contentsOf: url)
let file = File(data: data)
cache.cache(file: file, name: fileName)
return file
} catch {
throw FileLoaderError.invalidFileURL(url)
}
}
}
Unified error output
Unified
Input/Output
12. class FileLoader {
static let shared = FileLoader()
private let cache = Cache()
func file(named fileName: String) throws -> File {
if let cachedFile = cache.file(named: fileName) {
return cachedFile
}
let bundle = Bundle.main
guard let url = bundle.url(forResource: fileName, withExtension: nil) else {
throw NSError(domain: "com.johnsundell.myapp.fileLoader", code: 7, userInfo: nil)
}
let data = try Data(contentsOf: url)
let file = File(data: data)
cache.cache(file: file, name: fileName)
return file
}
}
Unified
Input/Output
Injected
dependencies
State is kept
local
Unified
Input/Output
State is kept
local
Injected
dependencies
enum FileLoaderError: Error {
case invalidFileName(String)
case invalidFileURL(URL)
}
throw FileLoaderError.invalidFileName(fileName)
do {
let data = try Data(contentsOf: url)
let file = File(data: data)
cache.cache(file: file, name: fileName)
return file
} catch {
throw FileLoaderError.invalidFileURL(url)
}
}
}
Unified
Input/Output
State is kept
local
13. class FileLoader {
private let cache = Cache()
Unified
Input/Output
Injected
dependencies
State is kept
local
Unified
Input/Output
State is kept
local
Injected
dependencies
Unified
Input/Output
State is kept
local
private let bundle: Bundle
init(cache: Cache
self.cache = cache
self.bundle = bundle
}
, bundle: Bundle) {
func file(named fileName: String) throws -> File {
if let cachedFile = cache.file(named: fileName) {
return cachedFile
}
let bundle = Bundle.main
guard let url = bundle.url(forResource: fileName, withExtension: nil) else {
throw FileLoaderError.invalidFileName(fileName)
}
do {
let data = try Data(contentsOf: url)
let file = File(data: data)
cache.cache(file: file, name: fileName)
return file
} catch {
throw FileLoaderError.invalidFileURL(url)
}
}
}
Dependency injection (with defaults)
= .init(), bundle: Bundle = .main) {
bundle
Using injected dependencies
Injected
dependencies
14. Let’s write a test! &
1 Design your code for testability
15. 2 Use access control to create
clear API boundaries
16. 2 Use access control to create
clear API boundaries
APIInput Asserts
Unit test
Code
Integration test
17. 2 Use access control to create
clear API boundaries
private fileprivate internal public open
18. 2 Use access control to create
clear API boundaries
public class SendMessageViewController: UIViewController {
public var recipients: [User]
public var title: String
public var message: String
public var recipientsPicker: UserPickerView?
public var titleTextField: UITextField?
public var messageTextField: UITextField?
}
19. 2 Use access control to create
clear API boundaries
public class SendMessageViewController: UIViewController {
private var recipients: [User]
private var title: String
private var message: String
private var recipientsPicker: UserPickerView?
private var titleTextField: UITextField?
private var messageTextField: UITextField?
}
20. 2 Use access control to create
clear API boundaries
}
func update(recepients: [User]? = nil, title: String? = nil, message: String? = nil) {
if let recepients = recepients {
self.recipients = recepients
}
// Same for title & message
}
public class SendMessageViewController: UIViewController {
private var recipients: [User]
private var title: String
private var message: String
private var recipientsPicker: UserPickerView?
private var titleTextField: UITextField?
private var messageTextField: UITextField? Single API entry point
21. 2 Use access control to create
clear API boundaries
Frameworks
22. 2 Use access control to create
clear API boundaries
Input Asserts
Unit test
Integration test
23. 2 Use access control to create
clear API boundaries
App
Models
Views
Logic
24. 2 Use access control to create
clear API boundaries
App
Models
Views
LogicKit
Kit
($ brew install swiftplate)
25. 3 Avoid mocks to avoid getting tied down
into implementation details
26. 3 Avoid mocks to avoid getting tied down
into implementation details
' Mocks are “fake” objects that are used in tests to be
able to assert that certain things happen as expected.
27. // Objective-C (using OCMockito)
NSBundle *bundle = mock([NSBundle class]);
[given([bundle pathForResource:anything() ofType:anything()]) willReturn:@“path”];
FileLoader *fileLoader = [[FileLoader alloc] initWithBundle:bundle];
XCTAssertNotNil([fileLoader fileNamed:@"file"]);
// Swift (partial mocking)
class MockBundle: Bundle {
var mockPath: String?
override func path(forResource name: String?, ofType ext: String?) -> String? {
return mockPath
}
}
let bundle = MockBundle()
bundle.mockPath = "path"
let fileLoader = FileLoader(bundle: bundle)
XCTAssertNotNil(fileLoader.file(named: "file"))
// Swift (no mocking)
let bundle = Bundle(for: type(of: self))
let fileLoader = FileLoader(bundle: bundle)
XCTAssertNotNil(fileLoader.file(named: "file"))
3 Avoid mocks to avoid getting tied down
into implementation details
28. class ImageLoader {
func loadImage(named imageName: String) -> UIImage? {
return UIImage(named: imageName)
}
}
class ImageViewController: UIViewController {
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
imageView.image = imageLoader.loadImage(named: imageName)
}
}
// Test using mocking
class ImageViewControllerTests: XCTestCase {
func testImageLoadedOnViewWillAppear() {
class MockImageLoader: ImageLoader {
private(set) var loadedImageNames = [String]()
override func loadImage(named name: String) -> UIImage {
loadedImageNames.append(name)
return UIImage()
}
}
let imageLoader = MockImageLoader()
let vc = ImageViewController(imageLoader: imageLoader)
vc.imageName = "image"
vc.viewWillAppear(false)
XCTAssertEqual(imageLoader.loadedImageNames, ["image"])
}
}
Manually implemented, partial mock
Asserting that an image was loaded by verifying
what our mock captured
Capture loaded image names
3 Avoid mocks to avoid getting tied down
into implementation details
29. class ImageLoader {
private let preloadedImages: [String : UIImage]
init(preloadedImages: [String : UIImage] = [:]) {
self.preloadedImages = preloadedImages
}
func loadImage(named imageName: String) -> UIImage? {
if let preloadedImage = preloadedImages[imageName] {
return preloadedImage
}
return UIImage(named: imageName)
}
}
// Test without mocking
class ImageViewControllerTests: XCTestCase {
func testImageLoadedOnViewWillAppear() {
let image = UIImage()
let imageLoader = ImageLoader(images: ["image" : image])
let vc = ImageViewController(imageLoader: imageLoader)
vc.imageName = "image"
vc.viewWillAppear(false)
XCTAssertEqual(vc.image, image)
}
}
Optionally enable preloaded images
to be injected
Use preloaded image if any exists
Compare against actually rendered image,
instead of relying on mock capturing
3 Avoid mocks to avoid getting tied down
into implementation details
30. However, sometimes you do
need mocks, so let’s make it
easy to use them! (
3 Avoid mocks to avoid getting tied down
into implementation details
31. To summarize
1 Design your code for testability
2 Use access control to create
clear API boundaries
3 Avoid mocks to avoid getting tied down
into implementation details
32. No tests? )
No problem! *
Just start somewhere (
Set goals for test coverage &