Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

Fix build, add featured images, schedule posts #23

Merged
merged 8 commits into from
Feb 22, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Binary file modified 2017/application-tree.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified 2017/bad-refactoring.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified 2017/become-the-villain.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified 2017/document-scheme-with-legend.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified 2017/good-refactoring.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified 2017/json-type-information-meme.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 2017/json.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified 2017/word-basic-text-formats.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 4 additions & 5 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<footer>
<div class="container">
<ul class="footer-menu">
<li><a href="" title="">About the Blog</a></li>
<li><a href="" title="">Jobs</a></li>
<li><a href="" title="">Contact</a></li>
<li><a href="" title="">Legal Information</a></li>
<li><a href="" title="">Data Protection</a></li>
<li><a href="https://www.signavio.com/jobs/" title="Career Opportunities at Signavio">Jobs</a></li>
<li><a href="https://www.signavio.com/contact/" title="Contact form">Contact</a></li>
<li><a href="https://www.signavio.com/legal-info/">Legal Information</a></li>
<!-- <li><a href="" title="">Data Protection</a></li> -->
</ul>
</div>
</footer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ description: "Pros and cons of different ways to indicate JSON types"
author: Peter Hilton
tags: JSON, data types
layout: article
image:
feature: /2017/json.png
alt: "Representing typed data in JSON format"
---

[JSON](https://en.wikipedia.org/wiki/JSON), specified by [RFC7159](https://tools.ietf.org/html/rfc7159) has taken over from [XML](https://en.wikipedia.org/wiki/XML) as data format of choice for web service [API](https://en.wikipedia.org/wiki/Application_programming_interface)s.
Expand Down Expand Up @@ -101,10 +104,12 @@ For the next step you can specify each JSON object’s type in a special inline
You can probably avoid name clashes by using an underscore prefix, calling it `_type`.

```json
"price" : {
"_type" : "Money",
"currency" : "EUR",
"amount" : 10.00
{
"price" : {
"_type" : "Money",
"currency" : "EUR",
"amount" : 10.00
}
}
```

Expand All @@ -119,11 +124,13 @@ You can keep your serialisation code relatively clean by separating the object
This also allows the parser to read the type before reading the value using a type-specific parser.

```json
"price" : {
"type" : "Money",
"value" : {
"currency" : "EUR",
"amount" : 10.00
{
"price" : {
"type" : "Money",
"value" : {
"currency" : "EUR",
"amount" : 10.00
}
}
}
```
Expand All @@ -136,13 +143,15 @@ Instead of using the type and value name as a property name and object value, yo
In this approach, the array holds the same pair of values as the object in the previous approach, but transforms the `type` and `value` properties to anonymous array items.

```json
"price" : [
"@Money",
{
"currency" : "EUR",
"amount" : 10.00
}
]
{
"price" : [
"@Money",
{
"currency" : "EUR",
"amount" : 10.00
}
]
}
```

This probably only makes sense if you use a programming language with tuples, and you’re used to pairs of values.
Expand All @@ -155,10 +164,12 @@ You can separate the type name and object value more neatly by using the type na
This example uses a `@` prefix for the type name, to make the JSON more human-readable.

```json
"price" : {
"@Money" : {
"currency" : "EUR",
"amount" : 10.00
{
"price" : {
"@Money" : {
"currency" : "EUR",
"amount" : 10.00
}
}
}
```
Expand All @@ -171,12 +182,14 @@ You can extend the previous approach by mixing multiple types, so you can repres
This example represents the same model, with the addition that `Money` subclasses (extends) `Number`.

```json
"price" : {
"@Number" : {
"amount" : 10.00
},
"@Money" : {
"currency" : "EUR",
{
"price" : {
"@Number" : {
"amount" : 10.00
},
"@Money" : {
"currency" : "EUR"
}
}
}
```
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
---
title: "How to transform Markdown to a Word document with Apache POI"
title: "Transforming Markdown to Word with Apache POI"
description: "Using Pegdown and JSoup to generate Apache POI’s XWPF format"
author: Stefan Herz
tags: document, data transformation, Microsoft Word, Apache POI, JSoup, Pegdown
layout: article
image:
feature: /2017/word-basic-text-formats.png
alt: "Basic text formatting in a Word document"
---

## Introducing a way to transform Markdown to a Word document
Expand Down
2 changes: 1 addition & 1 deletion _scss/_settings.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../_gems/ruby/2.2.0/gems/susy-2.2.12/sass/susy';
@import '../_gems/ruby/2.3.0/gems/susy-2.2.12/sass/susy';

// Susy defaults setting

Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div class="container">
<div class="blog-intro">
<h1>Signavio Tech Blog</h1>
<p>Some short explanation about this blog</p>
<p>Ideas, techniques and other stories from Signavio’s engineering team.</p>
</div>
<div class="grid">
<div class="grid-item-sizer"></div>
Expand Down