Lecture notes
| Hosted at: |
|
||
|---|---|---|---|
| Available formats: |
|
||
Source code provided at https://gitlab.mi.hdm-stuttgart.de/goik/GoikLectures |
|||
| Published under the terms of the Creative Commons Attribution 4.0 International Public License. | |||
Table of Contents
- Preface
- 113105 Software development 1
-
- Getting started
- Language Fundamentals
- Statements
- Arrays
- Objects and Classes
- Core Classes
- Inheritance
- Error Handling
- Working with Numbers
- Advanced topics
- Appendix
- List of software development 1 lecture exercises
- 113492 Technical Documentation
- 113473 Database and application development
-
- Database features
- Selected database products overview
- JDBC: Accessing Relational Data
- JPA
- Project ideas
- List of Database and application development lecture exercises
- 113475 Software defined Infrastructure
- Common topics
- Bibliographic links
- Glossary
List of Figures
- 1. How much time to invest?
- 2. Your biggest enemies
- 3. German humour
- 4. AI tools and learning
- 5. 4 most imperative study objectives
- 6. Tuition attendance and exam results summer 2025
- 7. Examinations and result
- 8. Moodle and tuition groups
- 9. BW Lehrpool pool rooms
- 10. Recommended reading resources I
- 11. Recommended reading resources II
- 12. Online tutorials
- 13. Unix and the terminal
- 14. Online programming, automated feedback
- 15. Online programming I
- 16. Online programming II
- 17. Choosing the SD1 bwLehrpool VM
- 18. Intellij IDEA IDE
- 19. Live lecture additions
- 20. Embedded exercises
- 21. Using the exercises
- 22. HdM mail server
- 23. Configure MI VPN client access
- 24. MI Cloud server
- 25. MI File server
- 26. MI Git versioning server
- 27. Coached exercises
- 28. Edit - compile - execute
- 29. Defining class
Hello - 30. Compiling Java™ file
- 31. Command line Java™ file compilation
- 32. Java byte code file
Hello.class - 33. Source code vs. bytecode
- 34. Executing byte code file
Hello.class - 35. Command line byte code file
Hello.classexecution - 36. Wrap up: The edit - compile - execute cycle
- 37. Intellij IDEA requires a JDK™
- 38. Intellij IDEA installation
- 39. Idea »Ultimate« license types
- 40. Alternative: Using the HdM license server
- 41. Creating a new Java project
- 42. Getting first Java™ impressions
- 43. Manual calculation: Abacus
- 44. Mechanical calculation: Cash register
- 45. Electromechanical calculation: Zuse Z3
- 46. Vacuum Tube: Eniac
- 47. Transistor: Microprocessor ICs
- 48. Z80 8-bit data bus
- 49. Progress in hardware 1
- 50. Progress in hardware 2
- 51. Simple facts:
- 52. Unsigned 3 bit integer representation
- 53. Binary system addition
- 54. 3 bit two-complement representation
- 55. 3 bit two complement rationale: “Usual” addition
- 56. Signed 8 bit integer binary representation
- 57. 7-bit ASCII
- 58. 7-bit ASCII with even parity bit
- 59. Western European characters: ISO Latin 1 encoding
- 60. Unicode UTF-8 samples
- 61. Java types
- 62. Java signed integer primitive types
- 63. Four
intliteral representations of decimal 29 - 64. Java unsigned integer, floating point and boolean primitive types
- 65. Variables: Handles to memory
- 66. Local variable declaration
- 67. Declare, assign and use
- 68. Combining declaration and initialization
- 69. Compound declarations
- 70. Identifier in Java™:
- 71. Identifier name examples:
- 72. Java™ keywords.
- 73. Note on contextual keywords
- 74. Variable naming conventions
- 75. Constant variables
- 76. Case sensitivity
- 77. Define before use
- 78. Type safety
- 79. Compile time analysis
- 80. Type inference (JDK™ 10)
- 81. Forcing conversions by cast
- 82. Watch out!
- 83. Casting long to int
- 84. Casting double to short
- 85. «C» programming language “liberal” assignment policy:
- 86. Consequences
- 87. From the report
- 88. Dynamic typing in PERL
- 89. Dynamic typing in PERL, part 2
- 90. Using final
- 91. Reference type examples
- 92.
floatanddouble - 93. Four ways representing 35
- 94. Choose your output representation
- 95. Know your limits!
- 96. Literal examples
- 97.
intliterals - 98. Just kidding ...
- 99. Strange things I
- 100. Strange things II
- 101. Limited floating point arithmetic precision
- 102. Nearest
floatto 0.1F - 103.
FloatConverter - 104. Integer division: Take care!
- 105. Widening from
bytetoshort - 106. Narrowing from
intliteral tocharvariable - 107. A widening «ladder»
- 108. A narrowing «ladder»
- 109. The binary plus operator
- 110. Binary operator output type
- 111. Detecting arithmetic overflow (Java 8+)
- 112. Dividing by zero
- 113. Generic binary operator
- 114. The modulus operator
% - 115. Binary operator type examples
- 116. No binary + operator yielding
byte - 117.
intexpression assignment - 118. Constant expression assignment
- 119. The logical “and” operator
& - 120. The
+=operator - 121. The
&=operator - 122. Arithmetic assignment operators
- 123. Logical assignment operators
- 124. Increment operator
++ - 125. Different range behaviour!
- 126. Cast required
- 127. Prefix and postfix notation
- 128. Operator examples
- 129. Precedence of “*” and “/” “+” over “+” and “-”
- 130. A binary operator's operands evaluation priority
- 131. “left to right” or “right to left”
- 132. Operator precedence references
- 133. “+” acting as string concatenation operator
- 134. Implicit string conversion and concatenation
- 135. Java™ comment flavors
- 136. Inline comments by
/* ... */ - 137. Javadoc™ comments
- 138. Statements: General syntax
- 139. Statement examples: Declaring and assigning variables
- 140. Expression vs. statement
- 141. Multiple statements per line
- 142. Debugging multiple statements per line
- 143. Method local variable scope
- 144. Nested blocks and variable scopes
- 145. Block purposes
- 146. Principle of swapping two variables
- 147. Swapping two variables
- 148. Swapping two variables using a block
- 149. Conditional block execution
- 150.
ifsyntax - 151.
if...else - 152.
if ... elsesyntax - 153. Best practices comparing for equality
- 154. Single statement branches
- 155. Nested
if ... else - 156. Enhanced readability:
if ... else if ... else - 157.
if ... else if ... elsesyntax - 158. User input recipe
- 159. Using a
Scannerclass collecting user input. - 160. Converting numbers to day's names
- 161. Numbers to day's names: The hard way
- 162. Better: Using
switch - 163.
switchSyntax - 164. Switching on strings
- 165.
switchexpressions - 166. Assigning
switchexpressions - 167. Allowed types for
switchstatements - 168. Labels must be constant expressions
- 169. Two blocks, same logic
- 170. Replacing two blocks by one method
- 171. Passing values to methods
- 172. Passing values to methods
- 173. Why loops?
- 174. Number of repetitions given by user input
- 175. A
whileloop - 176. Combining increment and termination condition
- 177.
whilesyntax - 178. Empty
whilebody - 179. A
do ... whileloop - 180.
do ... whilevs.while - 181.
do ... whilesyntax - 182. Frequent usage of
while - 183. Replacing
while(...) byfor(...;...;...) - 184.
forsyntax - 185.
forvariable scope - 186.
forvariable scope equivalence - 187.
forvs. while relationship - 188. Nested loops 1
- 189. Nested loops 2
- 190. Better readability:
rowandcolumnin favour ofiandj - 191. Calculating values
- 192. Response to coding errors
- 193. Unit test concept
- 194. alarmClock(...) with errors
- 195. Testing alarmClock(...)
- 196. Testing alarmClock(...) details
- 197. Motivating Arrays
- 198. Per member repeating tasks
- 199. Example:
intarray of primes - 200. Java Visualizer
- 201. Loop prime values
- 202. Mind the limit!
- 203. Safer: Using
length - 204. Even better: “for-each” style loop
- 205. Mind the limit, part two
- 206. Primitive data one step initialization
- 207. Array
- 208. Two syntax variants
- 209. Passing an anonymous array to a method
- 210.
Two-dimensional arrays - 211.
Behind the scenes - 212.
Memory allocation - 213.
Nested array initialization - 214.
Nested »ragged« array initialization - 215. A method adding two values
- 216. Syntax of method definition
- 217. The
staticmodifier matters! - 218. Documentation: Javadoc™ is your friend!
- 219. Separating usage and definition
- 220. Representing two-dimensional points
- 221. General class structure
- 222. What's a class anyway?
- 223. Rectangle objects
- 224. A class describing rectangles
- 225. Rectangle class and instances
- 226. Generated diagrams
- 227. The
newoperator: Creating rectangle instances - 228. Syntax creating instances
- 229. Assigning attribute values to class instances
- 230. Instance memory representation
- 231. References and
null - 232. Checking for object presence
- 233. Why packages ?
- 234. Rules and conventions
- 235. Fully qualified class name vs.
import - 236. Don't be too lazy!
- 237. Special: Classes in package java.lang
- 238. Class, package and file system
- 239. Source hierarchy view
- 240. Object methods
- 241. Get a rectangle's area
- 242. Currently: rectangle's area by class method
- 243. OO: rectangle's area by instance method
- 244. Transition to OO
- 245. Scaling a rectangle
- 246. Scaling method implementation
- 247. Scaling method signature
- 248. Using the
scale(...)method - 249. Method definition syntax
- 250. A rectangle's perimeter
- 251.
getPerimeter()method implementation - 252. Using
Rectangle.getPerimeter() - 253. Access control: Overall objectives
- 254. Example: Two ways implementing a day's time
- 255.
privatemodifier access violation - 256. Absent access modifier, access violation
- 257. Access rules
- 258. “Tips on Choosing an Access Level”
- 259. Direct access vs. setter method
- 260. Why adding setter methods?
- 261. Implementation change: Minutes only, no hours
- 262. Defining type signatures
- 263. Type signature examples
- 264. Defining method signatures
- 265. Method signature examples: Ignore return type!
- 266. Method overloading: Same name, different signature
- 267. Overloading, alternate names
- 268. No overloading in »C«
- 269. »C« requires unique function names
- 270. No distinction on return type
- 271. Method signatures rationale
- 272. Method signatures rationale
- 273. Example: IO.print(...)
- 274. Creating and initializing rectangles
- 275. Defining a constructor
- 276. Constructor syntax
- 277. Constructors
- 278. Multiple overloaded constructors
- 279. Constructor calls within constructor
- 280. Instances by overloaded constructors
- 281. No constructor vs. default constructor
- 282. Non - default constructor, but no default constructor
- 283.
Employeeexample package hierarchy - 284.
Circleand variable scopes - 285.
Documenting classes and methods - 286.
Generated Javadoc - 287.
Refactoring «r» ⇒ «radius» - 288.
Scope assignment problem - 289.
thisoverriding method scope - 290. Why should we require an instance?
- 291. Solution: Replace instance method by class method using static
- 292. Club membership objectives
- 293. Step 1: Implementing club member names.
- 294. Showing membership info.
- 295. Step 2: Adding membership numbers.
- 296. Showing membership numbers.
- 297. Member creation steps
- 298. Accessing the club's overall member count?
- 299. Accessing the club's member count
- 300. Syntax accessing class members
- 301. static / non-static wrap up
- 302. Finally understanding
IO.print(ln) - 303. Newton's letter to Robert Hooke
- 304. Application execution prerequisites
- 305. Why Maven project management?
- 306. Example: Creating PDF using iText7
- 307. Maven iText library pom.xml definition
- 308. Itext transitive dependencies
- 309. Class location in iText library
- 310. Class location in iText library
- 311. Maven repositories
- 312. Maven archetypes
- 313. Project «lottery» depending on «common»
- 314. Providing project «common»
- 315. Publish project «Common»'s library
- 316. Content of archive
common-1.0.jar - 317. Consuming project «lottery»
- 318. External libraries view
- 319. Using Helper.factorial(...) computing
- 320. Maven artifact dependency.
- 321. Using the MI Sd1 project template
- 322. CLI example
- 323. Supplementary MI Maven archetypes
- 324. CLI testing mi-maven-archetype-quickstart
- 325. CLI archetype details
- 326. Generated project layout
- 327. Maven compile
- 328. Compilation file view
- 329. Maven package
- 330. Executing Java™ archive
second-0.9.jar - 331. Maven
javadoc:javadoc - 332. Maven clean
- 333. Intellij IDEA Maven support
- 334. Adding MI Maven server
- 335. New MI archetype project
- 336.
pom.xmlcontent changes - 337. Intellij IDEA generating Javadoc™
- 338. Pascal's triangle representing binomial coefficients.
- 339. An implementation sketch for the exponential
- 340. Comparing exponential and approximation
- 341. Comparing sin(x) and its approximation.
- 342. Recommended reading
- 343. Test categories
- 344. Example: Computing prime numbers
- 345. Unit test principle
- 346. Test driven development
- 347. Steps in Unit Testing
- 348. Step 1 + 2: Specify method, write skeleton
- 349. Execution yet being flawed
- 350. Sample test data
- 351. Step 3: Junit based specification test
- 352. Junit skeleton test result (Maven CLI)
- 353. Junit skeleton test result (IDE)
- 354. Providing explanatory failure messages:
- 355. Step 3: Providing more prime tests
- 356. Step 3: Prime mass testing
- 357. Step 4: Implement skeleton
- 358. Step 5: Testing our first implementation
- 359. Implementation observation
- 360. Changing the implementation
- 361. Regression test
- 362. Systematic error debugging
- 363. Error correction in detail
- 364. Parameterized tests
- 365. Required Junit dependency
- 366. CSV parameter testing
- 367. CSV parameter testing results
- 368. CSV parameter file based testing
- 369. Available comparison methods
- 370. Caution comparing
float/double!! - 371. Weird arithmetics?
- 372. Limited representation precision
- 373. Solving the issue
- 374. The
@Testannotation - 375. The
Assertionsclass - 376. Importing dependencies
- 377. Dependency archive content
- 378. Value vs. reference type variables
- 379. Different behaviour!
- 380. Value variable Details
- 381. Reference variable Details
- 382. Only «call-by-value» in Java™
- 383. «call-by-value» details
- 384. «call-by-reference» for objects?
- 385. «call-by-reference» details
- 386. No «call-by-reference» in Java™!
- 387. No «call-by-reference» details
- 388. C++ reference operator “&”
- 389. C++ offers «call-by-reference» by virtue of “&”
- 390. C++ «call-by-reference» details
- 391. Arrays of object references
- 392. Array instances are not objects
- 393. Array creation details
- 394. Array parameter passing
- 395. Parameter passing details
- 396. Array initializer: Value and reference types
- 397. Expecting one
intargument - 398. One, two or three
intarguments by overloading - 399. Observations
- 400. Arbitrary number of arguments by array
- 401. Observations
- 402. Vararg: Syntactic sugar by ellipsis »...«
- 403. Varargs: Generalizing arrays
- 404. Using varargs
- 405. Further reading on varargs
- 406.
Arrays.toString(...)andArrays.sort(...) - 407.
Arrays.binarySearch(...) - 408.
Arrays.fill(...) - 409.
Arrays.copyOfRange(...) - 410.
Arrays.equals(...) - 411. Lack of extendability
- 412. Extend array using a block
- 413. Replacing extending block by method
- 414. Extension result
- 415. Replacing copying loop by
Arrays.copyOf() - 416.
static void main(String[] args) - 417. Intellij IDEA run configuration
- 418. Intellij IDEA run configuration
- 419.
Creating executable jar - 420. Two Tic-tac-toe players fighting each other.
- 421. Two Tic-tac-toe players fighting each other.
- 422. Method calling
- 423. Three variable scopes
- 424. Scope lifetimes
- 425. Two runtime memory categories
- 426. IDE debugger
- 427. Motivation
- 428. Weekly offered lectures
- 429. Weekly offered lectures by simple numbers
- 430. Weekdays
intrepresentation - 431. Weekly offered lectures using constants
- 432. Converting index values to day names
- 433. Providing lecture info
- 434. Sample lectures
- 435. Pitfall #1 of 2: Bogus day index value
- 436. Pitfall #2 of 2: Method argument order mismatch
- 437. Enumeration by class instances
- 438. Class instance per enumeration value
- 439.
switchno longer works - 440. Re-writing
getPrice() - 441. Pitfall: Creating an undesired instance
- 442. Define a
privateDayconstructor - 443. Preventing undesired
Dayinstance creation - 444. Adding a day name attribute
- 445.
enumDayreplacingpublic class Day - 446.
switchstatements back working again - 447.
enumconstructor being implicitlyprivate - 448. A minimal
enum - 449. An
enum's parent class - 450. Iterate over all
enumvalues - 451. Definition order matters!
- 452. Get an
enuminstance by its ordinal value - 453. Get an
enuminstance by its constant's textual name - 454. Openjdk source code repository
- 455. Superclass
Object - 456. String literals
- 457. OpenJDK String implementation
- 458. String copy constructor
- 459. Copy constructor and heap
- 460. Operator == and
equals() - 461. Remarks
==vs.equals() - 462. Operator == and
equals()implications - 463.
equals()is being defined within respective class! - 464.
Math.sin(double x) - 465. Guess who's inheriting the money
- 466. Biology and inheritance
- 467. Duplicate code
- 468. Idea: Centralize common code
- 469. Common and specific properties
- 470. Basic shape inheritance
- 471. Inheritance
- 472. Implementing
Shapehierarchy - 473. Creating instances
- 474.
Shapeconstructor - 475. Creating
Rectangleinstances - 476.
Rectangleconstructor - 477.
Shape.equals() - 478.
Rectangle.equals() - 479. Printing a
Shape's info - 480. Overwriting
toString() - 481.
ShapeextendingObject - 482. Overriding
toString()in classShape. - 483. Logging
Rectangleinstances - 484. Overriding
toString()inRectangle. - 485.
RectangleextendingShape - 486. Implementing
Circle.toString() - 487.
Shapeinheritance hierarchy andtoString() - 488. Moving
Shapeinstances - 489. Implementing
Shapemovements - 490. Fools are everywhere!
- 491. Solution: final prevents overriding
- 492. Calculating a shape's area
- 493. Desired: Polymorphic
getArea()call - 494. Problems:
- 495.
abstractmethodgetArea() - 496.
abstractmethodgetArea() - 497. What's a “shape” anyway?
- 498. No instances of
abstractclasses. - 499. Mandatory
getArea()implementation. - 500. Facts about abstract fields, methods and classes.
- 501. Moving shapes
- 502.
protectedaccess - 503.
finalclasses - 504.
finalclasses rationale - 505. “Defeating” polymorphism
- 506. Defining
equals(...): Expectations - 507. Defining
equals(...)ofShapeinstances - 508. Comparing center coordinates
- 509. Implementing
Rectangle.equals() - 510. Implementing
Circle.equals() - 511. Testing equality of
Shapeobjects - 512. Overriding Object.toString()
- 513. @Override: Compile time error detection
- 514. Remarks on
@Override - 515. Polymorphism: Iteration over
Objectinstances - 516. Meta info of an instance
- 517. Instance meta info
- 518. Polymorphic dispatch / late binding
- 519. Example: Executing
move() - 520. Implementing
getArea() - 521. Implementing
getArea()in classShape? - 522. Solution: Abstract method
getArea()in abstract classShape - 523. Polymorphic
getArea()call - 524. Runtime polymorphic dispatch
- 525. Polymorphic dispatch pseudo implementation
- 526. Compile- vs. runtime errors
- 527.
NullPointerException(NPE for short) - 528.
NullPointerExceptionis a class - 529. Throwing an exception
- 530. Catching an exception by
try {...} catch {...} - 531.
try {...} catch {...}syntax - 532. Checked and unchecked exceptions
- 533. Further readings
- 534. Checked and unchecked exceptions
- 535. Expected exceptions in Junit
- 536. Just
finally, nocatch - 537.
try-with-resources(Java™ 7) - 538. Scanner implementing
AutoCloseable - 539. No
close()method in e.g.classString - 540. Method
printStackTrace() - 541. Ascending inheritance ordering
- 542. Wrong ordering
- 543. Implementing
convert - 544. Problem: “Silent” errors
- 545. Step 1: Find exception base class
- 546. Step 2: Derive
CardinalException - 547. Step 3: Throwing
CardinalException - 548. Step 4: Unit test throwing
CardinalException - 549.
Stackof integer values - 550. Java™ collection features
- 551. Behind the scenes
- 552. Boxing and unboxing
- 553. Boxing syntax comparison
- 554. Parsing
Integeruser input - 555. Parsing binary representation
- 556. Standard parse methods
- 557. Excerpt from
java.util.Locale - 558.
Localeproperties - 559. Get a
NumberFormatinstance - 560. Create a custom formatter
- 561. Polymorphic number parsing
- 562. Limited
floatprecision - 563. Limited
doubleprecision - 564. Using
BigDecimal - 565. Chaining
BigDecimaloperations - 566.
BigDecimalfeatures - 567. Using
static double random() - 568. Seeding a pseudo random generator
- 569. Interface examples
- 570. Observations
- 571. Writing strings to file
- 572. Using
Text2File - 573. Possible
Text2Fileerrors: - 574. Employ “try-with-resources”
- 575.
interfacesyntax - 576. The
AutoCloseablepromise - 577.
abstractclass replacement - 578.
interfacevs.abstractclass - 579.
interfaceMyAutoCloseable - 580. Extending
MyAutoCloseableto flush - 581. Using
MyFlushable - 582. Inheritance hierarchy
- 583. Upcoming topics
- 584. Interfaces implemented by class
String - 585. The
Comparableinterface - 586. class
StringandComparable - 587. Comparison examples
- 588. Ascending and descending names
- 589. API requirements
- 590. Sorting strings alphabetically
- 591. Situation dependent sorting criteria
- 592. Implementing flexible sorting
- 593.
Comparatorin action - 594.
Case insensitive sort - 595.
Sort descending by lambda expression - 596. Account hierarchy
- 597. Students and lecturers
- 598. An array of strings
- 599. An associative array describing month lengths
- 600. Grouping towns by country names
- 601. Collaborative efforts
- 602. Project rules
- 603. Internal code documentation
- 604. Internal code documentation hints
- 605. Javadoc™ mismatches
- 606. (Automated) tests
- 607. Deployment and execution
- 608. Marking criteria
- 609. Sample forecast session
- 610. Sample forecast invocation
- 611. Underlying data provider
- 612.
cities.list.json.gzproviding cities - 613. ma/Copy URL result to file
- 614. Parse city data
- 615. Parse weather data
- 616. Requirements
- 617. Logging
- 618. Minimalist token scanner
- 619. Scanner output
-1.34 0.34 + sqrt - 620. Adding error detection
- 621. Error message
- 622. Running the currency converter terminal application.
- 623. Exam training by Guacamole
- 624. Environment hints:
- 625. Preparing an examination
- 626. Generating Javadoc™.
- 627. Programming hints
- 628. The implement - test - implement cycle
- 629. Finishing the exam
- 630. Personal examination cheat sheets
- 631. Unit tests in examinations
- 632. Example interface definition
- 633. Corresponding test
- 634. Don't cheat!
- 635. Unit tests strategy in examinations
- 636. Steps creating a new project
- 637. Creating a project at MI gitlab
- 638. Cloning a git project
- 639. Enter project folder, add
Readme.md - 640. Committing change set
- 641. Push to upstream repository
- 642. Inserting a Maven project
- 643. git status 1
- 644. Adding Maven files to repository
- 645. git status 2
- 646. Commit Maven project files
- 647. git status 3
- 648. Push to upstream again
- 649. Reverting changes
- 650. Pull changes from upstream
- 651. From
https://www.urbandictionary.com - 652. Useful links
- 653. Initialize git project
- 654. Configure author related data.
- 655. Adding resources to project index and staging area
- 656. Committing change set
- 657. Project versioning status
- 658. Adding a comment
- 659. git diff tracing changes
- 660. Reverting individual file.
- 661. Compiling,
Math.classandPrint.class. - 662.
Math.class,Print.classand versioning. - 663. Show project's log
- 664. Switch to an older revision ...
- 665. ... and forth to current master's HEAD
- 666. Centralized remote repository
- 667. Step 1: Create remote repository
- 668. Step 2: Retrieve remote repository address
- 669. Step 2: Connect to remote repository
- 670. Step 3: Push local to remote
- 671. Step 3: Pull remote to local
- 672. Alternative: Create remote, then clone
- 673. Conflicting changes
- 674. Commit schedule
- 675. User B: git push fails
- 676. User B: git pull fails as well
- 677. Merge conflict details
- 678. Struggling for resolution
- 679. Merging
Print.javamanually - 680. Commit and push merge
- 681. Maven: Recommended reading
- 682. What is Maven anyway?
- 683. Maven: Facts and benefits
- 684. Convention Over Configuration
- 685. Maven project layout
- 686. The project object model file
- 687. pom.xml characteristics
- 688. pom.xml vs. Makefile
- 689. «Hello, world» pom.xml
- 690. Executing «compile» phase
- 691. Examining the Java™ version culprit
- 692. Resolving encoding / Java™ version issues
- 693. POM inheritance
- 694. The Super POM
- 695. pom-4.0.0.xml content
- 696. Favour https in
~/.m2/settings.xml - 697. Resolving to effective pom.xml
- 698. Plugin architecture
- 699. Sample plugins
- 700. Example: The
maven-javadoc-plugin - 701. Adding test capabilities
- 702. Dependency listing
- 703. Absence of hamcrest in
pom.xml - 704.
~/.m2/repository/junit/junit/4.12/junit-4.12.pom - 705. Transitive dependencies
- 706. Oblivious to test implementation: TestNG
- 707. Phases
- 708. Maven lifecyles and phases
- 709. hooking into phase
- 710. Why XML based publishing?
- 711. XML features
- 712. Editors, compositors, designers ...
- 713. Promises in publishing
- 714. Publishing reality
- 715. Single source publishing
- 716. Separating Structure, content and format
- 717. Separating concerns
- 718. Content
- 719. Hierarchical structure
- 720. Hierarchical structure, XML source
- 721. Presentation
- 722. Example 1: HTML 5, pure structure
- 723. Example 2: TeX / LaTeX
- 724. Separating structure and presentation(s)
- 725. Sample technical document
- 726. Observations
- 727. Pros and cons of TeX / LaTeX
- 728. Tools of the trade
- 729. Inline formatting
- 730. Paragraphs
- 731. Lists
- 732. Tables
- 733. Images
- 734. Mathematical formulas
- 735. Cross references
- 736. Document sectioning
- 737. Modular document components
- 738. What is Docbook?
- 739. Authoring and publishing
- 740. Document representation
- 741. Software centric schema
- 742. Document targets
- 743. Docbook components
- 744. Target format overview
- 745. Tooling / Software
- 746. Different schema languages
- 747. Plain HTML
- 748. Web help
- 749. Eclipse help
- 750. Printed output
- 751. Paragraph
- 752. Itemized list
- 753. Ordered list
- 754. Glossary list
- 755. Nested lists
- 756. Reference
- 757. A table
- 758. A MathML equation
- 759. A TeX equation
- 760. Reference
- 761. Figure
- 762. Image map + calloutlist
- 763. Video
- 764. A warning
- 765. Reference
- 766. Recursive sections
- 767. Non-recursive sections
- 768. Two different link flavours
- 769. Choosing a top level element
- 770. Allowed 5.1 top level elements
- 771. Schematron on top of RelaxNG
- 772. Example:
xml:idand permalink - 773. Using Display #Anchors
- 774. Considerations author based permalink
- 775. Schematron permalink rule
- 776. HTML customization overview
- 777. Target specific configuration
- 778. Link stability
- 779.
use.id.as.filename = 1 - 780. Parameter: use.id.as.filename
- 781. Customization parameter ulink.target
- 782.
callout.unicode/callout.graphics - 783. Links
- 784. Hooking into XSL
- 785. Categories
- 786. Example: videos
- 787. Links
- 788. Customize by CSS
- 789. Example CSS modifications
- 790. Styling the editor
- 791. Motivating modular documents
- 792. Monolithic document problems
- 793. Document decomposition
- 794. A monolithic document
- 795. Decomposing documents
- 796. XML grammar defining languages
- 797. Address list schema
- 798. Format conversion problem
- 799. XSL template rules
- 800. Example: Formatting
<title>elements - 801. Basic FO introduction
- 802. XMLMind Editor
- 803. Oxygenxml Author
- 804. Vendor links
- 805. Inverse editing
- 806. Document representation
- 807. Components
- 808. BibTeX
- 809. Makeindex example
- 810. Makeindex work flow
- 811. Extension example: MusiXTeX
- 812. Flavours
- 813. Components
- 814. Editors
- 815. reveal.js authoring tools: Principle
- 816. reveal.js features #1 of 3
- 817. reveal.js features #2 of 3
- 818. reveal.js features #3 of 3
- 819. reveal.js observations
- 820. Authoring tool project goals
- 821. Principle
- 822. Required / to be acquired skills
- 823. Principle
- 824. Codingbat: Desired features
- 825. Desired features
- 826. CRUD operation
- 827. Query
- 828. Schema
- 829. Procedures / triggers
- 830. Transactions / recovery
- 831. Data access control
- 832. API support
- 833. Installing Docker
- 834. Why LDAP?
- 835. LDAP introduction
- 836. Running a Docker container
- 837. Using docker-compose
- 838. Installing Apache Directory Studio
- 839. Administrator access to your DIT
- 840. Administrator access to your server's data tree
- 841. Administrator access to your server's configuration
- 842. Terminology
- 843. Adding an entry
- 844. Adding a new attribute
- 845. Replacing an attribute value
- 846. Deleting an attribute entirely
- 847. Multi valued attributes
- 848. Set semantics of multivalued attributes
- 849. Deleting selected attribute values
- 850. Query scope
- 851. Query filter
- 852. Schema support
- 853. Implementations
- 854. Implementations
- 855. Exercises
- 856. Why MongoDB?
- 857. Running a Docker container
- 858. Using docker-compose
- 859. Manual user creation
- 860. Log in as user explorer
- 861. Using IntelliJ
- 862. Idea show all databases
- 863. Terminology / Hierarchy
- 864. Adding a document
- 865. Updating attributes
- 866. Deleting a document
- 867. Deleting multiple documents
- 868. Multi valued attributes
- 869. Set semantics of multivalued attributes
- 870. Deleting selected attribute values
- 871. Deleting an attribute
- 872. Query filter
- 873. Schema validation support
- 874. Violating required field
- 875. Schema types
- 876. Enforcing unique keys
- 877. On the downside
- 878. Implementations
- 879. Implementations
- 880. Sharding rationale
- 881. Sharding rationale
- 882. Exercises
- 883. Prerequisite knowledge
- 884. Persistence [Bauer2015]
- 885. Java™ transient instances
- 886. RDBMS persistent records
- 887. Persisting transient
Userinstances - 888. Observations
- 889. Networking between clients and database server
- 890. JDBC™ features
- 891. JDBC™ in a three-tier application
- 892. JDBC™ connecting application server and database.
- 893. JDBC™ connection parameter
- 894. Components of a JDBC™ URL
- 895. IETF Uniform Resource Identifier
- 896. URL examples
- 897. Sub protocol examples
- 898. No standard port assignments ...
- 899. ... but Postgresql made it into Linux
- 900. JDBC™ architecture
- 901.
DriverManager: Bootstrapping connections - 902. Example: Mysql connection implementation
- 903. Driver libraries
- 904. Driver libraries by Maven
- 905. Driver unavailable
- 906.
Connectioninterface - 907.
Statementinterface - 908. JDBC™ instances and relationships.
- 909. Important
Connectionmethods - 910. Important
Statementmethods - 911. JDBC™ and threading.
- 912. JDBC™ connection pooling
- 913.
pom.xmldriver runtime scope - 914.
Persontable - 915. Objective: insert person record
- 916. JDBC™ backed data insert
- 917. Result
- 918. Two JDBC™ configurations
- 919. Figure 916, “JDBC™ backed data insert ” deficiencies
- 920. Why properties?
- 921.
message.propertiesstring externalization - 922. Properties code sketch
- 923. Intellij IDEA settings, preconditions
- 924. Database related unit test phases
- 925. Implementing unit tests
- 926. Spring is your friend
- 927. Project layout
- 928. Closing connections
- 929. Employ
AutoCloseable - 930. Sniffing a JDBC™ connection by an intruder.
- 931. Setting up Wireshark
- 932. Capturing results
- 933. Mysql™ security
- 934. Mysql™ security
- 935. Assembling SQL
- 936. SQL injection principle
- 937. Preventing traffic tickets
- 938. Trouble at school
- 939. SQL injection impact
- 940. SQL injection relevance, [Clarke2009]
- 941. Handling injection attacks, part 1
- 942. Handling injection attacks, part 2
- 943. Input filtering
- 944. Validating user input prior to dynamically composing SQL statements.
- 945. Error message being presented to the user.
- 946. SQL statements in Java™ applications get parsed at the database server
- 947. Two questions
- 948. Addressing performance
- 949. Addressing performance mitigation
- 950. Restating the SQL injection problem
- 951. Solution: Use
java.sql.PreparedStatement - 952.
PreparedStatementprinciple. - 953. Three phases using parameterized queries
- 954.
PreparedStatementexample - 955. Injection attempt example
- 956. Limitation: No dynamic table support!
- 957. JDBC™ read and write
- 958. Server / client object's life cycle
- 959. JDBC™ record container
- 960. Reading data from a database server.
- 961. Names and birth dates of friends
- 962. Accessing friend's database records
- 963. Important
ResultSetstates - 964. JDBC™ to Java™ type conversions
- 965. Java™ to JDBC™ type conversions
- 966. Error prone type accessors!
- 967. Polymorphic accessor
- 968. Access by column name
- 969. Access by column index
- 970. Problem:
nullvalue ambiguity - 971. Resolving
nullvalue ambiguity - 972. Problem: Dynamic driver configuration
- 973. Shim driver (facade)
- 974. Users and groups
- 975. Isolation level
- 976. JDBC™ Isolation level
- 977. Setting the isolation level
- 978. Reasons for using Maven
- 979. Transitive dependencies
- 980. A basic
persistence.xmlJPA configuration file. - 981. JPA persistence provider
- 982. Mapping
hibintro.v1.model.Userinstances to a database. - 983. A basic
Userclass. - 984. Mapping properties to attributes.
- 985. Annotating integrity constraints
- 986. Database schema mapping instances of
hibintro.v1.model.User. - 987. Loading a single object by a primary key value.
- 988. Retrieving
hibintro.v1.model.Userinstances by HQL. - 989. Business rules for projects
- 990. Persistence related object states
- 991. Introducing inheritance mapping
- 992. Modelling payment.
- 993. A single relation mapping.
- 994. Mapping the inheritance hierarchy.
- 995. Inserting payment information
- 996. Figure subclasses
- 997. Joined subclass mapping.
- 998. Implementing
Object.equals(Object)by natural keys - 999. JPA caches.
- 1000. Common project steps #1/3
- 1001. Common project steps #2/3
- 1002. Common project steps #3/3
- 1003. Common technologies
- 1004. UNIX grep sample
- 1005. Similarities and differences
- 1006. Database grep requirements
- 1007. Connection profile handling
- 1008. Search level specification
- 1009. Property based searches
- 1010. Source and target database
- 1011. Copy process
- 1012. Considerations
- 1013. Sample data creation
- 1014. Schema evolution
- 1015. Techniques
- 1016. Subscribe to lecture
- 1017. Versioned code and documentation content
- 1018. Online documentation samples
- 1019. Create and publish a Hetzner account
- 1020. Your cloud project
- 1021. Server creation prerequisite: A Firewall
- 1022. Your first server
- 1023. Server access by ssh
- 1024. No ssh password based login
- 1025. Server access by web gui
- 1026. Current server security flaws
- 1027. Safety considerations
- 1028. ssh-keygen for elliptic key creation
- 1029. An elliptic ssh public / private key pair
- 1030. Result of ssh-keygen execution (client side)
- 1031. Transfer public key from client to server
- 1032. Cleaning up!
- 1033. Tedious: Passphrase required for each remote login
- 1034. Solving the passphrase issue
- 1035. Behind the scenes: How does it work?
- 1036. Intermediate host hopping
- 1037. Intermediate host hopping fails
- 1038. Intermediate host hopping options
- 1039. Enable ssh agent forwarding
- 1040. Forwarding port 80 to 2000 at
localhost - 1041. Frequent use e.g. connecting to remote database server
- 1042. X11 browser application forwarding
- 1043. Network file copy using scp
- 1044. Network file copy using rsync and ssh.
- 1045. Shell / Bash
- 1046. Choosing a text editor
- 1047. Secure Shell
- 1048. Working with files
- 1049. Network
- 1050. Processes handling
- 1051. Suggested readings:
- 1052.
.debpackages - 1053. The dpkg command
- 1054. The apt command
- 1055. Rationale using PPA's
- 1056. What's it all about?
- 1057. Terraform resources
- 1058. Creating databases
- 1059. Creating cloud resources
- 1060. Your course documentation: Code structure
- 1061. The
env.templatefile - 1062. Getting started: The Hetzner API token
- 1063. Minimal Terraform configuration
- 1064. Terraform init
- 1065. Terraform plan
- 1066. Terraform apply
- 1067. A word on storing secrets
- 1068. Credentials by E-Mail
- 1069. Problems: 😟
- 1070. ssh access, firewall
- 1071. ssh access, public key
- 1072. Apply ssh key access
- 1073. Output data details #1/2
- 1074. Output data details #2/2
- 1075. Problem 2: VCS and visible secrets 😱
- 1076. Addressing secrets by variable
- 1077. Addressing secrets by file
- 1078. Addressing secrets by Bash
.envfile - 1079. Managing Terraform states
- 1080. Introduction and reference
- 1081. In a nutshell
- 1082. Configuration options
- 1083. Bash DIY
- 1084. Terraform interface to Cloud Init
- 1085. Using template files
- 1086. cloud-init file validation
- 1087. Yaml syntax quirk 1: Missing indentation
- 1088. Yaml missing indentation resolution
- 1089. Yaml syntax quirk 2: Wrong indentation
- 1090. Cloud-init configuration file validation
- 1091. Watch out for your enemies!
- 1092. Problem: Duplicate
known_hostsentry on re-creating server - 1093. Solution: Generating
known_hosts... - 1094. ... cloud-init config using yamlencode / JSON
- 1095. ... and ssh wrapper
- 1096. Failsafe console login
- 1097. Avoiding Yaml parsing issues
- 1098. Terraform module Documentation
- 1099. Example: Creating a JSON host meta data file
- 1100. Parent module / sub module layout
- 1101. Parent module implementation
- 1102. Sub module implementation
- 1103. Sub module, JSON template file
Tpl/hostdata.jsonand result - 1104. Parent module vs. sub module context
- 1105. A volume: The easy way
- 1106. Unix mount
- 1107. Volume details
- 1108. Providing a mount point's name
- 1109. De-coupling server and volume creation
- 1110. Loop documentation
- 1111. Using count
- 1112. Subdomain per group
- 1113. Key file location
- 1114. Querying DNS by zone transfer
- 1115. Creating an »A« record with TTL=10
- 1116. Modify by delete/create
- 1117. Mind record caching
- 1118. Bind server
ns1.hdm-stuttgart.cloud - 1119. DNS provider
- 1120. DNS provider configuration
- 1121. Defining an “A” record
- 1122. Understanding web certificates
- 1123. Certificate trust level
- 1124. Certificates by Terraform
- 1125.
dns_challengeprovider - 1126. rfc2136 provider configuration
- 1127. Bind server log file
- 1128. Private subnet overview
- 1129. Terraform network and subnetwork creation
- 1130. Gateway: External and internal interface
- 1131. intern host
- 1132. Lack of internet access
- 1133. Possible solutions
- 1134. http proxy apt-cacher-ng
- 1135. Cloud-init problem
- 1136. Service ready query script
- 1137. Terraform “service ready” dependency hook
- 1138. Documentation links
- 1139. DNS query commands
- 1140. DNS forward lookup
- 1141. Display A-record result only
- 1142. Important record types
- 1143. Name Servers: Query type
NS - 1144. Recommended readings
- 1145. Openldap server documentation
- 1146. What is LDAP anyway?
- 1147. LDAP Server cli bind
- 1148. Document Information Tree (DIT)
- 1149. Relative and absolute DNs
- 1150. User example
- 1151. objectClass
- 1152. objectClass clarifications
- 1153. Augmenting
inetOrgPersonbyposixAccount - 1154. Structural objectClass definitions
- 1155. Search scopes
- 1156. Predicate based queries
- 1157. LDAP bind types
- 1158. LDIF exchange format
- 1159. LDIF sample
- 1160. OpenLdap server architecture
- 1161. An example LDAP Tree
- 1162. External documentation
- 1163. URI to filesystem mapping
- 1164. Virtual hosting
- 1165. Implementing virtual hosting
- 1166. IP based virtual hosting
- 1167. IP based, pros / cons
- 1168. Name based virtual hosting
- 1169. Name based, pros / cons
- 1170. LDAP backed authentication
- 1171. PHP FPM server
- 1172. File services
- 1173. Customer demands
- 1174. Driving factors
- 1175. Selected cloud file services
- 1176. Selected self hosting products
- 1177. Nextcloud features
- 1178. Lightning integration
- 1179. Installation
- 1180. Docker hub
- 1181. Search images
- 1182. Pull image using CLI
- 1183. Pull Nextcloud image
- 1184. Nextcloud based on Alpine
- 1185. Inspect image
- 1186. Search an image's tags
- 1187. Nextcloud image by version
- 1188. List images by CLI
- 1189. Nextcloud latest image
- 1190. Duplicate Nextcloud images
- 1191. Maven ringing a bell?
- 1192. Un tag image by version
- 1193. Remove image by version
- 1194. Starting Nextcloud container
- 1195. List running containers
- 1196. Enter running container
- 1197. Remove container
- 1198. List volumes
- 1199. List orphaned volumes
- 1200. Remove volumes
- 1201. Technical features
- 1202. Documentation tool chain proposal
List of Tables
