Skip to main content

Father of two, software developer, wannabe solarpunk+minimalist.

twitter.com/kaputse

Clothing simplified

2 min read

A frequent reader of /r/minimalism will notice that clothing is often a starting point for aspiring minimalists ... for obvious reasons. :)

Although I am not very fashion-conscious I recently was fed up with low quality t-shirts that would not last more than three washes.  When it comes to a good bang for your buck nothing beats Puma t-shirts, but I have bought this stuff since ever (change for a reliable source of quality clothing wanted) and my wife was also looking for some replacements.

I remembered an interview with Wolfang Grupp I read several months ago and his company Trigema. They produce sportswear  "100% made in Germany" for a reasonable price tag. They also promote a worker friendly image, big plus for that if true. Social? Check. Ecological? Check. Qualitiy? Open.

We went to a factory outlet and the first thing I noticed was the looks we got from all those older people. :) But the second look showed me a store that was perfectly sorted. You find shelf by shelf of clothes ordered first by their type (hoodie, t-shirt, ... ), than by their material (cotton, bio-cotton, mixed fabric, ...), than by size and at least by color. The little obsessive in me made a big jump with joy. :)

Also they have some nice merino-wool stuff that has a good fitting for a nice price tag.

We took a bunch of clothes with us, in different sizes and fabrics. The fit is nice, the colors are good and all the material feels really sturdy. I am curios for the long-term test.

PS: If you read this Trigema, what about an subscription model like lot2046 does it? I would like that.

 

The decluttering

3 min read

Hello friendly people of the interwebz, I want to reboot this blog with a little (success) story that happened the last few months.

Have you ever felt down or stressed out for no obvious reason? Unsatisfied and a feeling of incompletion bothering you? Hating to do the never ending housework and at the same time never getting everything done?

Thats me for the last four years when my wife and I started to build our house and move back to our families to branch out our own little spin-off.

Today we have two wonderful children, a highly functional home and are done with most of the interior. And - as always - most of the stuff we brought in with us from our last home, did not get back to use or was replaced with something newer/better. Additionally there are boxes full of stuff from our university days, old computers, clothes, more clothes and even more clothes - that will never ever again see the light of day.

Although you would not see this stuff around the house - because I hid it on the attic and the lumber room - it always nags in the back of my head. It is there and one day I need to do something with/about it. Additionally it takes a lot of space that would be better used for the stuff we really use. That makes it way harder to maintain a tidy home that is easy to clean - especially with two kids.

Cleaning can be really easy if you have fewer things. Let’s look at how we might clean the floor if we had an owl sculpture in the room.
Step 1: Move the owl over.
Step 2: Wipe the floor where the owl had been sitting.
Step 3: Return the owl to its original position.
And if we didn’t have this statue in our home?
Step 1: Wipe the floor.
There! Done! It’s that simple. It takes a third of the effort, and probably a third of the time, to clean the floor.

(Goodbye things, Fumio Sasaki)


It is exactly like that and since we moved I tried to employ a habit of throwing away stuff that is no longer used, but I think now that I was not forceful enough. Things started to pile up again and the old stuff was still around.

Than came my second parental leave and we eventually had the time to really start decluttering - besides going on a month long camping trip to Corsica. :)

Today we nearly halved - or so ^^ - our physical possessions by throwing away everything that is no longer needed and can be easily re-bought if we ever need it again. I also gave up on all the "projects" that were waiting for me to come back to them "as soon as there was time". A great mental relieve. There is still a small percentage of stuff that needs decluttering but overall it looks very promising.

Our things are like room mates, except we pay their rent.
(Goodbye things, Fumio Sasaki)

Or like my wonderful wife said when we unpacked the van after coming back from Corsica:

Why exactly do we need more stuff than this?!

<3


Phoenix 1.3 with Bulma

1 min read

1. Remove Bootstrap

$ echo "" > assets/css/phoenix.css

2. Install Bulma

$ cd assets
$ npm install --save bulma

3. Install sass-brunch

$ npm install --save-dev sass-brunch

4. Add sass-brunch config to brunch

plugins: {
  sass: {
    options: {
      includePaths: ['node_modules/bulma']
    },

And the scss folder to the watch pass.

paths: {
    // Dependencies and current project directories to watch
    watched: ["static", "css", "scss", "js", "vendor"],
    ...
  },
...

5. Rename app.css to app.scss

$ cd assets/css; mv app.css app.scss

6. Import Bulma in app.scss

@import "bulma";

(Optional:)

7. Create your own theme

$ mkdir assets/scss
$ touch assets/scss/custom.scss

8. Import initial variables in custom.scss

@import "../node_modules/bulma/sass/utilities/initial-variables";
$primary: $red

9. Import custom.scss in app.scss

@import "../scss/custom";

Non-OTP dependencies in (distillery) release

1 min read

Adding Erlang libraries to your Elixir project and having them included in your (Distillery based) release should work the same way as adding any Elixir library. But sometimes you stumble upon a library that does not implement the OTP application behaviour - thus it can not be added to the applications key - and is not automatically detected by Distillery as a runtime dependency.

Frankly I do not know the exact reason for that but digging through the source and documentation I found a way to solve this problem for my case. You need to specify your library with the :load option in your release configuration (rel/config.exs).

release :myapp do
  set version: "0.1.0"
  set applications: [:app_a, :app_b, some_dep: :load]
end>

This defines some_dep as runtime dependency but not being started (OTP).

Hope this saves you some time. =)

No love for SOAP

1 min read

So I had to do some SOAPy work this week and since it is some pre-war tech I had to dive in again. Here is the essence of what I got (from other ppl) :)

Well, SOAP isn't a "modern" specification, so it's only (somewhat) well supported by the technology stacks that were mainstream when the big vendors were pushing WS-Deathstar (Java, .NET) - so all that technology is already in place. (via)

Ohh death star you say? That gives me ...

I have PTSD from my experience with SOAP/WSDL. I'm even having problems typing these words. [...] (via)

No, it could not be that hard. No. Let's ask s/o who actually has build a library around this death star:

Detergent helps make SOAP interactions in Erlang uhh... cleaner (pun totally intended)! (via)

m)

Sainsmart 1.8 display + Rasperry Pi

1 min read

Recently I bougt one of those tiny Sainsmart 1.8 inch displays to use it as a secondary monitor for my Kodi-based (raspian) media center in the living room.

The setup was pretty easy and fbi showed up pictures on the display five minutes after I got the wiring done. \o/

The problems started when I tried to run some demo pygame code on it. All I got was an error I did not understand because everything was setup correctly.

Traceback (most recent call last):
  File "test.py", line 19, in 
    pygame.display.set_mode()
pygame.error: No video mode large enough for 128x160

After fiddling around for a while, I created the file /etc/fbmodes with the following content:

mode "128×160"
geometry 128 160 128 160 16
timings 0 0 0 0 0 0 0
endmode

Works for me. Errors gone. =)

Plug love

1 min read

So I just finished Ch. 5 "Authenticating Users" in the Programming Phoenix book and after coding along the examples of ten pages, on the last page of this chapter I was like "Wait a sec, where do they persist the session data?!" and then I discovered this gem: https://hexdocs.pm/plug/Plug.Session.COOKIE.html

 

My little sons first VIM session ...

1 min read

I am ... very impressed by his skills, but does anybody know which language this could be?

Refactoring

1 min read

Fefe bloggte gerade über ein Problem von dem ich bisher eigentlich dachte, dass es so gut wie jedem halbwegs profesionellen Softwareentwickler bekannt wäre, aber es ist immer schön wenn auch einer der Großen nochmal ein Wörtchen darüber verliert.

 

Jetzt müsste die Erkenntnis nur noch im Management ankommen ... .