]> juplo.de Git - website/commitdiff
Code-Listings von Hand nachkorrigiert
authorKai Moritz <kai@juplo.de>
Fri, 20 Feb 2026 11:37:36 +0000 (12:37 +0100)
committerKai Moritz <kai@juplo.de>
Fri, 20 Feb 2026 13:50:41 +0000 (14:50 +0100)
content/blog/archive/2016/configure-pac4j-for-a-social-login-along-with-a-spring-security-based-form-login.md
content/blog/archive/2018/configure-https-for-jetty-maven-plugin-9-0-x.md
content/blog/archive/2018/disable-automatic-p-and-br-tags-in-the-wordpress-editor-and-do-it-as-early-as-you-can.md
content/blog/archive/2020/a-perfect-outline.md

index 34bd5e550a76f7f7959fece358b6a4d56d0c9e2d..15d1bd12b07a0eb080f7ff3c6ad91be676b352b3 100644 (file)
@@ -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
-
 <dependency>
   <groupId>org.pac4j</groupId>
   <artifactId>spring-security-pac4j</artifactId>
@@ -48,7 +47,6 @@ In order to use spring-security-pac4j to login to facebook, you need the followi
   <artifactId>pac4j-oauth</artifactId>
   <version>1.7.1</version>
 </dependency>
-
 ```
 
 ## 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
-
 <?xml version="1.0" encoding="UTF-8"?>
 <beans
     xmlns="http://www.springframework.org/schema/beans"
@@ -84,7 +81,6 @@ This is a bare minimal configuration to get the form-login via Spring-Security w
   </security:authentication-manager>
 
 </beans>
-
 ```
 
 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
-
 <?xml version="1.0" encoding="UTF-8"?>
 <beans
     xmlns="http://www.springframework.org/schema/beans"
@@ -157,7 +152,6 @@ To enable pac4j alongside, you have to add/change the following:
   <bean id="sas" class="org.springframework.security.web.authentication.session.SessionFixationProtectionStrategy"/>
 
 </beans>
-
 ```
 
 In short:
index 433f3dcdd45d38f34e754849c9f803f0ef5cd41b..d895f8cfd0a88a3857a68d1b85341e1aa4d41965 100644 (file)
@@ -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 `<Configure>`-tag. The corrected content of the file looks like this:
 
 ```html
-
 <?xml version="1.0"?>
 <!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_0.dtd">
 
@@ -55,15 +54,25 @@ So, here is, what you have to do to fix this [broken example](http://www.eclipse
   </Call>
   -->
 </Configure>
-
 ```
 
 ## 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
 <?xml version="1.0"?>
 <!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_0.dtd">
 
@@ -105,7 +114,6 @@ If you are getting the error `[ERROR] Failed to execute goal org.eclipse.jetty:j
   </New>
 
 </Configure>
-
 ```
 
 ## 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
-
 <?xml version="1.0"?>
 <!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_0.dtd">
 
@@ -157,13 +164,11 @@ You have to change `jetty-http.xml` like this:
   </Call>
 
 </Configure>
-
 ```
 
 ... and `jetty-https.xml` like this:
 
 ```html
-
 <?xml version="1.0"?>
 <!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_0.dtd">
 
@@ -211,7 +216,6 @@ You have to change `jetty-http.xml` like this:
     </Arg>
   </Call>
 </Configure>
-
 ```
 
 Now, it should be running, _but..._
index 80ca78933a3d5238fc99193bc5733ab0977f4a6b..9fb841c9bd71c8fda632608ff41d9b317b64aabe 100644 (file)
@@ -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
index 950863e40c69ece479a41b2a8b25cd7f9b3b2b5f..4591939b3e4f77df1f4f99973b7cee158cc7e3b3 100644 (file)
@@ -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
-
 <!DOCTYPE html>
 <title>Example 01</title>
 <header>
@@ -64,7 +63,6 @@ Here is, what I ended up with, on my first try to combine what I have learned ab
 <footer>
   <h2>Footer</h2>
 </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
-
 <!DOCTYPE html>
 <title>Example 02</title>
 <header>
@@ -125,7 +122,6 @@ But after adding them, the only thing that cleared out, was where the _Untitled
 </main>
 <footer>
   <header><h2>Footer</h2></header>
-
 ```
 
 #### Example 02: Outline
@@ -153,7 +149,6 @@ At least, _Footer_ suddenly was a sibling of _Header_ as planed:
 #### Example 03: Markup
 
 ```html
-
 <!DOCTYPE html>
 <title>Example 03</title>
 <header>
@@ -186,7 +181,6 @@ At least, _Footer_ suddenly was a sibling of _Header_ as planed:
 <footer>
   <header><h2>Footer</h2></header>
 </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
-
 <!DOCTYPE html>
 <title>Example 04</title>
 <article>
@@ -242,7 +235,6 @@ At first a minimal example with no markup except the `article`\- and the `sectio
     </section>
   </section>
 </main>
-
 ```
 
 #### 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
-
 <!DOCTYPE html>
 <title>Example 05</title>
 <h1>Page</h1>
@@ -291,7 +282,6 @@ If we want to give the body a title, we have to place a heading outside and befo
     </section>
   </section>
 </article>
-
 ```
 
 #### 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
-
 <!DOCTYPE html>
 <title>Example 06</title>
 <header>Page</header>
 <main>Main</main>
 <footer>Footer</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
-
 <!DOCTYPE html>
 <title>Example 07</title>
 <header><h2>Page</h2></header>
 <main><h1>Main</h1></main>
 <footer><h3>Footer</h3></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
-
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 <html>
   <head><title>Example 08</title></head>
@@ -393,7 +378,6 @@ In fact, we could have used plain HTML4, with `div` instead of `header`, `main`
     <div class="footer"><h3>Footer</h3></div>
   </body>
 </html>
-
 ```
 
 #### Example 08: Outline
@@ -416,7 +400,6 @@ _Each heading implicitly opens a section – hence the name –, but if there is
 #### Example 09: Markup
 
 ```html
-
 <!DOCTYPE html>
 <title>Example 09</title>
 <h4>h4</h4>
@@ -427,7 +410,6 @@ _Each heading implicitly opens a section – hence the name –, but if there is
 <h1>h1</h1>
 <h2>h2</h2>
 <h3>h3</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
-
 <!DOCTYPE html>
 <title>Example 10</title>
 <header>
@@ -492,7 +473,6 @@ We can do that, by explicitly stating, that the `header` and the `footer` are se
     <h3>Footer</h3>
   </section>
 </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
-
 <!DOCTYPE html>
 <title>Example 11</title>
 <header>
@@ -553,7 +532,6 @@ We forgot about the single root of any outline, that is defined by the body, how
     <h3>Footer</h3>
   </section>
 </footer>
-
 ```
 
 #### Example 11: Outline
@@ -580,7 +558,6 @@ Let us look, what would have happend:
 #### Example 12: Markup
 
 ```html
-
 <!DOCTYPE html>
 <title>Example 12</title>
 <header>
@@ -590,7 +567,6 @@ Let us look, what would have happend:
 <main><h1>Main</h1></main>
 <aside><h1>Aside</h1></aside>
 <footer><h1>Footer</h1></footer>
-
 ```
 
 #### Example 07: Outline
@@ -610,7 +586,6 @@ The reason for this is, that `nav` and `aside` are sectioning elements:
 #### Example 12: Markup
 
 ```html
-
 <!DOCTYPE html>
 <title>Example 13</title>
 <header>
@@ -620,7 +595,6 @@ The reason for this is, that `nav` and `aside` are sectioning elements:
 <main>Main</main>
 <aside>Aside</aside>
 <footer>Footer</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
-
 <!DOCTYPE html>
 <title>Example 14</title>
 <header>
@@ -682,7 +655,6 @@ Knowing, that `nav` and `aside` will define sections, we now can complete our ou
     <h3>Footer</h3>
   </section>
 </footer>
-
 ```
 
 #### Example 14: Outline