Del lat. sophisma, y este del gr. σόφισμα sóphisma.
1. m. Razón o argumento falso con apariencia de verdad.
Del lat. sophisma, y este del gr. σόφισμα sóphisma.
1. m. Razón o argumento falso con apariencia de verdad.
Core dump of a lack of space at /tmp
:S
Aborted (core dumped)
#
# https://github.com/AdoptOpenJDK/openjdk-support/issues
# If you would like to submit a bug report, please visit:"
#
# SIGBUS (0x7) at pc=0x00007f1240764eac, pid=6, tid=48#
# JRE version: OpenJDK Runtime Environment AdoptOpenJDK (11.0.8+10) (build 11.0.8+10)
# Java VM: OpenJDK 64-Bit Server VM AdoptOpenJDK (11.0.8+10, mixed mode, tiered, compressed oops, serial gc, linux-amd64)# C [libc.so.6+0x18eeac]
# Problematic frame:
#
# Core dump will be written. Default location: /usr/app/core.6
#
# An error report file with more information is saved as:
# /usr/app/hs_err_pid6.log
#
# A fatal error has been detected by the Java Runtime Environment:
#
it is interesting that docker also has shared memory device configuration /dev/shm
through shm_size
https://bugs.freedesktop.org/show_bug.cgi?id=100432
https://buddy.works/docs/on-premises/solving-problems/shared-memory
A connection between two computers uses a socket.
https://www.silabs.com/products/development-tools/software/micrium-os/micrium-tcp-ip-networking
http://personales.upv.es/rmartin/TcpIp/cap02s12.html
https://docs.oracle.com/javase/tutorial/networking/sockets/definition.html
https://cwiki.apache.org/confluence/display/HADOOP2/SocketTimeout
https://apur1e.wordpress.com/2018/03/23/299-tcp-ip-http-get-post/
Despite my preference for Maven, here it is a quick list of gradle (6.x) commands:
In gradle 7 has removed several tasks, and replaced by implementation, runtimeOnly, testImplementation, and testRuntimeOnly.
├── gradle
│ └── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
├── settings.gradle
└── lib
├── build.gradle
└── src
├── main
│ └── java
│ └── demo
│ └── Library.java
└── test
└── java
└── demo
└── LibraryTest.java
1. basic build
gradle clean build
gradle assemble
gradle test
gradle init
2. eclipse java14 plugin
It has issues with wrapped gradle for older gradle (6.2--) gradle-wrapper.properties
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7
plugins {
id 'eclipse'
}
gradle cleanEclipse eclipse
3. tasks (list of possible task to execute)
./gradlew tasks
4. springboot
gradle bootRun
5. version
./gradlew -version
6. sonarqube
plugins {
id "org.sonarqube" version "3.0"
}
sonarqube {
properties {
property "sonar.sourceEncoding", "UTF-8"
}
}
gradle sonarqube
7. debug/stacktrace
--stacktrace
--debug
--warning-mode=(all,fail,none,summary)
8. publish local maven
gradle publishToMavenLocal
available with:
apply plugin: 'maven-publish'
Another approach:
apply plugin: "maven"
group = "mygroupid"
version = "1.0.0"
repositories {
mavenLocal()
}
$ gradle clean build install
9. skip test
gradle build -x test
10. jar building
gradle jar
jar {
manifest {
attributes "Main-Class": "com.baeldung.fatjar.Application"
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}
11. lombok
dependencies {
compileOnly 'org.projectlombok:lombok:1.18.20'
annotationProcessor 'org.projectlombok:lombok:1.18.20'
testCompileOnly 'org.projectlombok:lombok:1.18.20'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.20'
}
12. dependencies
gradle dependencies
OpenID Connect (OIDC) is an authentication layer on top of OAuth 2.0, an authorization framework.[1] The standard is controlled by the OpenID Foundation.
A way for a client to obtain an access token on behalf of a user via a REST invocation.
{
Refresh token:
curl -X POST \
http://localhost:8180/auth/realms/spring2/protocol/openid-connect/token \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d 'grant_type=refresh_token&client_id=login-app2&client_secret=welcome1&refresh_token=eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJhZTY0YTA1Mi1iMGJlLTRjY2UtODUxNS1lYTM0MDY5YWQ1YTMifQ.eyJleHAiOjE2MTE5NTI3MjYsImlhdCI6MTYxMTk1MDkyNiwianRpIjoiZjA4MjFhMGMtZjdmNi00YmRkLTg4YTctZmZkOTIwZTA0YWQ5IiwiaXNzIjoiaHR0cDovL2xvY2FsaG9zdDo4MTgwL2F1dGgvcmVhbG1zL3NwcmluZzIiLCJhdWQiOiJodHRwOi8vbG9jYWxob3N0OjgxODAvYXV0aC9yZWFsbXMvc3ByaW5nMiIsInN1YiI6ImRkNGU2ZTQ2LWIwMjQtNDZmYS05ZjUzLWM3OWE2MDM5YWIzZiIsInR5cCI6IlJlZnJlc2giLCJhenAiOiJsb2dpbi1hcHAyIiwic2Vzc2lvbl9zdGF0ZSI6IjUyYmU0ZTllLTVhNWMtNDFiZC1hZWVlLTg4ZjFiNTNhYjgwNiIsInNjb3BlIjoib3BlbmlkIGVtYWlsIHByb2ZpbGUifQ.FIAstcSWnq1ZUdHfgbIY9Z3u9_a2ywoFe9vxV-vwp6E'
Resources:
Consequences of architectural decisions in light of quality attributes requirements
ATAM is developed among technical professional, is not mandatory to include domain experts.
Steps:
Quality Attributes:
Outputs of ATAM
https://concisesoftware.com/architecture-tradeoff-analysis-method-atam/
https://resources.sei.cmu.edu/library/asset-view.cfm?assetid=5177
http://devwebcl.blogspot.com/2017/05/software-architecture-books.html
https://resources.sei.cmu.edu/asset_files/TechnicalReport/2000_005_001_13706.pdf
Technical proofed/reviewed:
* Dynamic proxies are such a tool. We can save thousands of lines of repetitive code with a single class. By taking a thorough look at how they work, we will recognize good use cases for them in our systems.
https://www.infoq.com/minibooks/java-dynamic-proxies/
https://github.com/npryce/adr-tools
UPDATE: 2 years later we see the same in AWS: https://www.infoq.com/news/2022/06/aws-adr-guide/
From wikipedia:
The Twelve-Factor App methodology is a methodology for building software-as-a-service applications. These best practices are designed to enable applications to be built with portability and resilience when deployed to the web.
When trying to create a methodology/paradigm, but everybody starts changing colors.
Event Storming, a rainbow of post-it notes.
https://kalele.io/symbolsicons-for-event-storming/
https://github.com/wwerner/event-storming-cheatsheet
https://leanpub.com/introducing_eventstorming
https://eventnotes.io/pdf/cheatsheet-big-picture-exploration.pdf
https://developer.ibm.com/technologies/java/tutorials/reactive-in-practice-1/