Blog

Save Money on HDD Purchases - WD My Book Shuck Janne Kemppainen |

Getting storage for your home server can get quite expensive when you want to store terabytes of data. Recently, I heard about a way to have significant savings in storage costs.

It might come as a surprise to you but external USB hard drives are actually cheaper per terabyte than similar internal drives! This has led people to obtain external drives just to open the enclosures to get the drives from inside. In the above video I will show how to open the WD My Book 8TB drive to get the HDD out.

My Blogging Workflow with Hugo Janne Kemppainen |

As the final part of this series I wanted to share my blogging workflow with Hugo. Now that you should have your blog online here are some tips on getting started with the writing process.

Three Dots in Python, What is the Ellipsis Object? Janne Kemppainen |

You might have stumbled on the Ellipsis object (…) in Python and wondered what it is used for. It was originally introduced to be used in the Numeric Python package for matrix slicing but nothing stops you from using it for other purposes too.

Publish Your Blog to Netlify Janne Kemppainen |

Now that our custom Hugo blog is more or less ready it's time to make it public by publishing it online. In this post I will go through all the required steps. And the best part is that you only need to pay for the domain!

Custom Hugo Shortcodes Janne Kemppainen |

Even though you can add normal HTML markup to your Markdown files in Hugo it doesn't always mean that you should. Complicated or reusable pieces of code should preferably be abstracted away from the content. Custom shortcodes can help with this issue as they let you define snippets that can be added to the page and configured with parameters.

In this series we haven't created the home page yet so in this post we are finally going to create a simple one with the help of some custom shortcodes.

Use Make to Power Up Your Python Development Janne Kemppainen |

When you think of GNU Make what is the first thing that pops up to your mind? Perhaps you remember building C or C++ programs from source and automatically associate it with languages where you need to build the code before being able to run anything.

However, Make can be a really powerful tool for your other projects too. In this article I'll show you some examples on how to utilize Make for Python development. I'll be using the Flask web framework for demonstration purposes but these principles can be really adapted to any other project.

Hugo Comments Janne Kemppainen |

Comments are an important part of communicating with your audience. This is where static pages struggle a bit as they are immutable by design. To add comments to a Hugo (or any other static) blog you need to resort to some third party solution. Personally I'm using ReplyBox but Disqus works with Hugo out of the box so it would be the easy way.

In this post I'll show you how to add Disqus or ReplyBox to your site but I will also talk about other alternatives.

Why Hyper-V Didn't Work on My Windows? Janne Kemppainen |

Sometimes computer problems just make you feel stupid. Today was one of those times so I thought I'd make a short write-up about what happened when I was trying to install Docker on Windows.

Related Content in Hugo Janne Kemppainen |

You may have noticed that many blogs like to promote other posts at the end of an article. Hugo can do this too with its related content feature. This means that you don't have to hand pick those related posts for each new piece of content you write but you can let Hugo do it for you automatically. If you scroll down to the bottom of the page you can see a live example on this very page.

Install Python on Windows With Virtual Environments Janne Kemppainen |

Today I wanted to install Python natively on my Windows machine. Nowadays it is super easy as python can be installed straight from the Microsoft Store. So if you need to have Python on Windows I really recommend that you just go open the Microsoft Store from the Start menu, search for Python and then just install the version you want.