Skip to content

Commit 4c68985

Browse files
committed
Migrated old WordPress blog to Hugo
1 parent 90f7a85 commit 4c68985

File tree

48 files changed

+752
-38
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+752
-38
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.idea
2+
*~
3+
*.bak
4+
*.old
5+
*.log
6+
*.lock

_config.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

archetypes/default.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: "{{ replace .Name "-" " " | title }}"
3+
date: "{{ .Date }}"
4+
draft: true
5+
params:
6+
author:
7+
---
8+

config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
baseURL: 'http://blog.itsallcode.org/'
2+
languageCode: 'en-US'
3+
defaultContentLanguage: 'en'
4+
title: 'Itsallcode Blog — Home of the everything-is-code enthusiasts'
5+
theme: 'github.com/nodejh/hugo-theme-mini'
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
title: "Test Coverage Pitfalls"
3+
date: 2017-01-24T15:29:02+02:00
4+
draft: false
5+
params:
6+
author: Sebastian
7+
---
8+
9+
When did I test enough?
10+
11+
While code coverage is a good indicator, you still have to know how code coverage works. Today I was hunting a bug in a Markdown importer I wrote for OpenFastTrace. The class where the bug sits had a whooping 93.1% code coverage and part of that missing coverage was owed to the fact that the JaCoCo coverage tracer can’t mark code that throws exceptions as covered – even though there is a test case for it.
12+
13+
So I wrote a new issue ticket, created a fix branch and wrote a three line test case that reproduced the problem. While the test now failed as expected, the code coverage didn’t go up.
14+
15+
I used the [Mockito](http://mockito.org/) mocking framework to verify that an interaction with a mocked observer happened or in my case due to the bug didn’t.
16+
17+
The error was hiding in a regular expression which read
18+
19+
"Needs:\\s*(\\w+(?:,\\s*\\w+)+)"
20+
21+
instead of
22+
23+
"Needs:\\s*(\\w+(?:,\\s*\\w+)*)"
24+
25+
Notice the asterisk in the end.
26+
27+
So while there are a lot test cases waiting to be written for this regular expression, code coverage won’t tell you.
28+
29+
You get what you measure, so be sure you understand what it is you are measuring.
30+
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
title: "Intrusive Sharing"
3+
date: 2017-05-07T15:34:46+02:00
4+
draft: true
5+
params:
6+
author: Sebastian
7+
---
8+
9+
Good software tries not to surprise the user. Today I was surprised that four of the integration tests in OpenFastTrace (OFT) failed, although I did not touch the code.
10+
11+
The failure reason given was a character encoding problem. Since I was quite sure that the problem did not occur last time I ran the test and I did not touch the code since, I knew the reason was not in our code.
12+
13+
I suspected that the test did not (or not only) use the test data in the resource directory, so I manually ran the test and explicitly pointed OFT to the resources. This time the test passed.
14+
15+
Then it started to dawn to me: the strange `.AppleDouble` directories that seemed to appear out of nowhere in my home directory might be the culprit.
16+
17+
A quick Internet search later I realized that they were a result of sharing my home directory over my LAN with another machine. Surely enough they contained the same filenames and that OFT mistook them for input files. Since the content of those files looks binary, OFT could not read them.
18+
19+
I stopped sharing and search-deleted all those directories. After that everything was back to normal.
20+
21+
Coming back to my original point: the appearance of `.AppleDouble` directories just because I shared a directory via Samba from my Linux box came as a complete surprise to me. I am grinding my teeth already because they will also be in all backups. Luckily I spotted them before I did any git commits.
22+
23+
Bottom line: don’t surprise your users — do exactly what they expect.
24+
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
title: "Samsung Printer \"Security\""
3+
date: 2017-07-14T15:51:12+02:00
4+
draft: true
5+
params:
6+
author: Sebastian
7+
---
8+
9+
Not much time today, so just a list of “features” I’ve discovered on my shiny new Samsung M2825 printer.
10+
<!--more-->
11+
12+
* HTTP but no HTTPS (admittedly most devices do that since there is the problem of how to start the certificate chain)
13+
* Default user / password: “admin” / “sec00000”
14+
* No mention of open HTTP server in installation manual
15+
* No mention in handbook
16+
* Shipped with firmware from 2015
17+
* Firmware update dialog does not indicate that new firmware is available
18+
* Firmware update via file upload from PC – not convenient
19+
* Ton of protocols switched on by default
20+
* HTML Handbook broken (text only) after unpacking
21+
* Firmware well-hidden on the support page (unfold and scroll down):
22+
http://www.samsung.com/de/support/model/SL-M2825ND/SEE
23+
(edit 2018-07-01: this link not available anymore)
24+
* Password cut after 18 characters (no indication when entering new password)
25+
* Offers to select source IP for login (probably intended to improve “security”)
26+
27+
**tl;dr:**
28+
29+
Another example that “S” stands for security in IOT.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: "OpenFastTrace 1.0.0"
3+
date: 2018-06-30T16:35:13+02:00
4+
draft: true
5+
params:
6+
author: Sebastian
7+
---
8+
9+
Today we released OpenFastTrace 1.0.0 Or criteria for this major release were Importers for Markdown, ReqM2, Tag format and Legacy-Tag format Exporter for ReqM2 Full featured plain text report Basic tag filter and artifact type filter User guide Contribution guideline Time to celebrate!
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: "Almost Impressive"
3+
date: 2018-07-01T19:31:43+02:00
4+
draft: true
5+
params:
6+
author: Sebastian
7+
---
8+
9+
Considering the fact that I just set up this blog today I am impressed (but not in a good way) how fast the spambots found it. First comment we got was — what else should it be — spam.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
title: "Dating Back WordPress Blog Posts"
3+
date: 2018-07-01T19:30:28+02:00
4+
draft: true
5+
params:
6+
author: Sebastian
7+
---
8+
9+
Sometimes I collect material for a blog post in a file but then forget to publish it. Thankfully WordPress lets you backdate posts.
10+
11+
I found three old blog posts that I wrote for the static blog which I never published. Since they fit nicely with the topics here I published them under the date when I originally wrote them.

0 commit comments

Comments
 (0)