From 6b1eda4ff715021b3ca318ad17c3fb842d11eb27 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Fri, 20 Feb 2026 12:37:36 +0100 Subject: [PATCH] Code-Listings von Hand nachkorrigiert --- ...with-a-spring-security-based-form-login.md | 6 ---- ...gure-https-for-jetty-maven-plugin-9-0-x.md | 22 +++++++++------ ...ss-editor-and-do-it-as-early-as-you-can.md | 4 --- .../blog/archive/2020/a-perfect-outline.md | 28 ------------------- 4 files changed, 13 insertions(+), 47 deletions(-) diff --git a/content/blog/archive/2016/configure-pac4j-for-a-social-login-along-with-a-spring-security-based-form-login.md b/content/blog/archive/2016/configure-pac4j-for-a-social-login-along-with-a-spring-security-based-form-login.md index 34bd5e55..15d1bd12 100644 --- a/content/blog/archive/2016/configure-pac4j-for-a-social-login-along-with-a-spring-security-based-form-login.md +++ b/content/blog/archive/2016/configure-pac4j-for-a-social-login-along-with-a-spring-security-based-form-login.md @@ -32,7 +32,6 @@ Also, if you need more social interaction, than just a login and access to the d In order to use spring-security-pac4j to login to facebook, you need the following maven-artifacts: ```xml - org.pac4j spring-security-pac4j @@ -48,7 +47,6 @@ In order to use spring-security-pac4j to login to facebook, you need the followi pac4j-oauth 1.7.1 - ``` ## Configuration of Spring-Security (Without Social Login via pac4j) @@ -56,7 +54,6 @@ In order to use spring-security-pac4j to login to facebook, you need the followi This is a bare minimal configuration to get the form-login via Spring-Security working: ```xml - - ``` The `http` defines, that the access to the url `/home.html` is restriced and must be authenticated via a form-login on url `/login.html`. @@ -96,7 +92,6 @@ For more details, see the [documentation of spring-security](http://docs.spring. To enable pac4j alongside, you have to add/change the following: ```xml - - ``` In short: diff --git a/content/blog/archive/2018/configure-https-for-jetty-maven-plugin-9-0-x.md b/content/blog/archive/2018/configure-https-for-jetty-maven-plugin-9-0-x.md index 433f3dcd..d895f8cf 100644 --- a/content/blog/archive/2018/configure-https-for-jetty-maven-plugin-9-0-x.md +++ b/content/blog/archive/2018/configure-https-for-jetty-maven-plugin-9-0-x.md @@ -32,7 +32,6 @@ Since the constructor signature changed for Connectors in jetty-9 to require the So, here is, what you have to do to fix this [broken example](http://www.eclipse.org/jetty/documentation/current/jetty-maven-plugin.html#maven-config-https "Jump to the example in the documentation of the jetty-maven-plugin"): the content shown for the file `jetty.xml` in the example is wrong. It has to look like the other example-files. That is, ith has to start with a ``-tag. The corrected content of the file looks like this: ```html - @@ -55,15 +54,25 @@ So, here is, what you have to do to fix this [broken example](http://www.eclipse --> - ``` ## But it's not running! -If you are getting the error `[ERROR] Failed to execute goal org.eclipse.jetty:jetty-maven-plugin:9.0.5.v20130815:run (default-cli) on project FOOBAR: Failure: etc/jetty.keystore (file or directory not found) -> [Help 1]` now, this is because you have to create/get a certificate for your HTTPS-Connector. For development, a selfsigned certificate is sufficient. You can easily create one like back in the [good old `maven-jetty-plugin`-times](http://mrhaki.blogspot.de/2009/05/configure-maven-jetty-plugin-for-ssl.html "Example for configuring the HTTPS-Connector of the old maven-jetty-plugin"), with this command: `keytool -genkey -alias jetty -keyalg RSA -keystore src/test/resources/jetty.keystore -storepass secret -keypass secret -dname "CN=localhost"`. Just be sure, to change the example file `jetty-ssl.xml`, to reflect the path to your new keystore file and password. Your `jetty-ssl.xml` should look like: +If you are getting the error `[ERROR] Failed to execute goal org.eclipse.jetty:jetty-maven-plugin:9.0.5.v20130815:run (default-cli) on project FOOBAR: Failure: etc/jetty.keystore (file or directory not found) -> [Help 1]` now, this is because you have to create/get a certificate for your HTTPS-Connector. For development, a selfsigned certificate is sufficient. You can easily create one like back in the [good old `maven-jetty-plugin`-times](http://mrhaki.blogspot.de/2009/05/configure-maven-jetty-plugin-for-ssl.html "Example for configuring the HTTPS-Connector of the old maven-jetty-plugin"), with this command: -```html +```bash +keytool -genkey \ + -alias jetty \ + -keyalg RSA \ + -keystore src/test/resources/jetty.keystore \ + -storepass secret \ + -keypass secret \ + -dname "CN=localhost" +``` + +Just be sure, to change the example file `jetty-ssl.xml`, to reflect the path to your new keystore file and password. Your `jetty-ssl.xml` should look like: +```html @@ -105,7 +114,6 @@ If you are getting the error `[ERROR] Failed to execute goal org.eclipse.jetty:j - ``` ## But it's still not running! @@ -115,7 +123,6 @@ Unless you are running `mvn jetty:run` as `root`, you should see another error n You have to change `jetty-http.xml` like this: ```html - @@ -157,13 +164,11 @@ You have to change `jetty-http.xml` like this: - ``` ... and `jetty-https.xml` like this: ```html - @@ -211,7 +216,6 @@ You have to change `jetty-http.xml` like this: - ``` Now, it should be running, _but..._ diff --git a/content/blog/archive/2018/disable-automatic-p-and-br-tags-in-the-wordpress-editor-and-do-it-as-early-as-you-can.md b/content/blog/archive/2018/disable-automatic-p-and-br-tags-in-the-wordpress-editor-and-do-it-as-early-as-you-can.md index 80ca7893..9fb841c9 100644 --- a/content/blog/archive/2018/disable-automatic-p-and-br-tags-in-the-wordpress-editor-and-do-it-as-early-as-you-can.md +++ b/content/blog/archive/2018/disable-automatic-p-and-br-tags-in-the-wordpress-editor-and-do-it-as-early-as-you-can.md @@ -28,17 +28,13 @@ The [wordpress-documentation of the build-in HTML-editor](https://codex.wordpres Simple open the file `wp-includes/default-filters.php` of you wordpress-installation and comment out the following line: ```html - addfilter('the_content', 'wpautop'); - ``` If you are building your own wordpress-theme - like me - you alternatively can add the following to the `functions.php`-file of your theme: ```html - remove_filter('the_content', 'wpautop'); - ``` ## Why you should disable automatic paragraph tags diff --git a/content/blog/archive/2020/a-perfect-outline.md b/content/blog/archive/2020/a-perfect-outline.md index 950863e4..4591939b 100644 --- a/content/blog/archive/2020/a-perfect-outline.md +++ b/content/blog/archive/2020/a-perfect-outline.md @@ -30,7 +30,6 @@ Here is, what I ended up with, on my first try to combine what I have learned ab #### Example 01: Markup ```html - Example 01
@@ -64,7 +63,6 @@ Here is, what I ended up with, on my first try to combine what I have learned ab

Footer

- ``` #### Example 01: Outline @@ -93,7 +91,6 @@ But after adding them, the only thing that cleared out, was where the _Untitled #### Example 02: Markup ```html - Example 02
@@ -125,7 +122,6 @@ But after adding them, the only thing that cleared out, was where the _Untitled

Footer

- ``` #### Example 02: Outline @@ -153,7 +149,6 @@ At least, _Footer_ suddenly was a sibling of _Header_ as planed: #### Example 03: Markup ```html - Example 03
@@ -186,7 +181,6 @@ At least, _Footer_ suddenly was a sibling of _Header_ as planed:

Footer

- ``` #### Example 03: Outline @@ -218,7 +212,6 @@ At first a minimal example with no markup except the `article`\- and the `sectio #### Example 04: Markup ```html - Example 04
@@ -242,7 +235,6 @@ At first a minimal example with no markup except the `article`\- and the `sectio - ``` #### Example 04: Outline @@ -266,7 +258,6 @@ If we want to give the body a title, we have to place a heading outside and befo #### Example 05: Markup ```html - Example 05

Page

@@ -291,7 +282,6 @@ If we want to give the body a title, we have to place a heading outside and befo
- ``` #### Example 05: Outline @@ -324,13 +314,11 @@ We start with a minimal example again, that contains no markup except the `heade #### Example 06: Markup ```html - Example 06
Page
Main
Footer
- ``` #### Example 06: Outline @@ -354,13 +342,11 @@ The header should have a `h2`-heading and the footer a `h3`-heading, because it #### Example 07: Markup ```html - Example 07

Page

Main

Footer

- ``` #### Example 07: Outline @@ -383,7 +369,6 @@ In fact, we could have used plain HTML4, with `div` instead of `header`, `main` #### Example 08: Markup ```html - Example 08 @@ -393,7 +378,6 @@ In fact, we could have used plain HTML4, with `div` instead of `header`, `main` - ``` #### Example 08: Outline @@ -416,7 +400,6 @@ _Each heading implicitly opens a section – hence the name –, but if there is #### Example 09: Markup ```html - Example 09

h4

@@ -427,7 +410,6 @@ _Each heading implicitly opens a section – hence the name –, but if there is

h1

h2

h3

- ``` #### Example 09: Outline @@ -456,7 +438,6 @@ We can do that, by explicitly stating, that the `header` and the `footer` are se #### Example 10: Markup ```html - Example 10
@@ -492,7 +473,6 @@ We can do that, by explicitly stating, that the `header` and the `footer` are se

Footer

- ``` #### Example 10: Outline @@ -516,7 +496,6 @@ We forgot about the single root of any outline, that is defined by the body, how #### Example 11: Markup ```html - Example 11
@@ -553,7 +532,6 @@ We forgot about the single root of any outline, that is defined by the body, how

Footer

- ``` #### Example 11: Outline @@ -580,7 +558,6 @@ Let us look, what would have happend: #### Example 12: Markup ```html - Example 12
@@ -590,7 +567,6 @@ Let us look, what would have happend:

Main

Footer

- ``` #### Example 07: Outline @@ -610,7 +586,6 @@ The reason for this is, that `nav` and `aside` are sectioning elements: #### Example 12: Markup ```html - Example 13
@@ -620,7 +595,6 @@ The reason for this is, that `nav` and `aside` are sectioning elements:
Main
Footer
- ``` #### Example 07: Outline @@ -643,7 +617,6 @@ Knowing, that `nav` and `aside` will define sections, we now can complete our ou #### Example 14: Markup ```html - Example 14
@@ -682,7 +655,6 @@ Knowing, that `nav` and `aside` will define sections, we now can complete our ou

Footer

- ``` #### Example 14: Outline -- 2.39.5