Blog | Pekka Laiho
https://laihoconsulting.com/blog/ (RSS)
Howard Marks from Oaktree Capital is one of my favorite investors. He is very smart so I always like to watch his interviews. He also regularly publishes memos which are great reads if one is interested in the topic of investing. This post is a summary of his investing philosophy as gathered from his presentation at Google. I started writing this...
In this post I am going to talk about the Suckless software tools and how I have integrated them into my workflow and daily use. Suckless tools are interesting because they are a little different from the mainstream in terms of how their software is built, configured, packaged and delivered. Their websites summarizes their mission statement as...
This is a summary post of different programming languages as well as my personal experiences and opinions about them. I have written code in many languages over the years. Some languages I have tried only briefly while others I have used daily for many years. Additionally there are many interesting languages that I still look forward to learning....
I have decided to move my public Git repositories to GitHub from Bitbucket. There is no denying it: GitHub is the place to be if you want to have a public profile as a software engineer. I have had my code hosted on Bitbucket for years and have been kind of waiting that it would be developed more to be a serious competitor for GitHub. But while...
This post is about a little different topic than my normal topics of software engineering and investing. The beauty of having a personal blog is that I can write about any topic that pops into my head. This post is about potential dangers of contacting extraterrestrial civilizations before we are ready for such adventures. I have always been...
I recently completed the game Cyberpunk 2077 and thought it may be a good idea to write a review of it. The game does some things right, but unfortunately does not live up to its full potential.
Now that I have been investing in stocks for more than a decade (started in 2012), I thought it would be a good idea to write down some of the most important lessons I have learned during my adventures in the capital markets. The topic of my first blog post was a description of my investing philosophy. That was 5 years ago. Looking back I realize...
Most people tend to associate PHP with web programming. They might be unaware that PHP is actually great language for shell scripts and command-line use as well. The syntax is relatively expressive so you can do a lot in just a few lines of code. And like Bash, you can just write a script and run it. This is ideal for quickly writing small...
Shopping is fun in general but shopping for shares of quality companies is really fun. The dividend payments that they provide are a good source of funds for other types of shopping such as clothes or luxury items. So far my investing efforts have been mainly focused on Finland and US based companies. I have previously written about stocks in...
Since the beginning of internet, when first bytes began to flow between networked computers, script kiddies have been asking the age-old question on message boards, forums and mailing lists: "What is the best programming language?" Much to their disappointment, even after vigorous debate lasting many decades, this question still does not seem to...
I have been using Emacs the normal way for many years and I am really happy with it. By normal, I mean starting Emacs as a regular process and not using the daemon with emacsclient. This approach has been good enough because usually I start Emacs once when I start working and then just keep it running throughout the day. The startup time is not...
A while ago I decided the learn the basics of the Assembly language for my x64 processor. Assembly has a reputation for being difficult and elitist which is keeping many people from trying it out. But once you learn the basics, it is actually really simple. In fact, in many ways it is much simpler than other programming languages. Using Linux as...
I have not been updating my website and blog in a while. Part of the reason is that I was not fully satisfied with the software powering the site. The site was running on Grav CMS, and don't get me wrong, it is a great piece of software for hosting a website. With Grav all the content of the website is stored in Markdown files and having a...
I have been using Emacs as my main text editor for writing PHP code. For that purpose, the php-mode is a nice Major Mode which provides syntax highlighting and other convenient features. It can be installed from the MELPA package repository.
There comes a time in the life of a serious software engineer when he wants to implement a custom programming language. Not with the goal of creating a language that gains widespread adoption (there are enough programming languages already), but as an exercise to gain deeper insight into how programming languages work.
I have been thinking about the importance of being smart about personal finances as many people are now struggling because of the COVID-19 pandemic. Many are losing their jobs and have not saved money to prepare for something like this. It is a rude wake-up call for many, very much in the same way as the 2008 financial crisis was. The lesson is...
A nice personal financial goal to have is to own the same companies that you use, so that you will receive in dividends the same amount that you spend with them. This way you are kind of using their service for free. To do this, just calculate how much money you spend annually for a service, then see how much that company pays in annual...
In the previous post we examined the potential performance issues with nested for-loops and how they can be improved using array lookups instead. Another common pitfall in terms of performance can be sorting when done incorrectly which we will examine here.
One of the most common issues that I see almost daily when reviewing code is nested loops where they aren't required. They are particularly tricky because they are not slow with small data sets (which developers often use for testing), but become slow in production environment where data sets are larger. Of course, testing with too small data...
One important aspect in securing a Linux system is closing any open TCP ports which don't need to be publicly accessible. This reduces the attack surface that the system exposes for malicious actors. In case a service needs to be accessed only locally, a good practice is to bind it on the local loopback IP address (127.0.0.1).
On this post I would like to introduce some generic utility functions for PHP. I often keep these in the global namespace because they are so useful. You may wish to wrap them in a namespace, or even a class, depending on your use case. They follow similar naming convention as the built-in functions of PHP because I view them almost like...
Have you ever encountered a situation where the performance of your PHP script is not great, but you are not sure where the problem is? Then you try to guess and change some part blindly just to see if that would help?
I have been using Emacs as my text editor for a few years now. One of the best features about emacs is that you can customize everything. This is because of the underlying lisp interpreter that allows you to define custom functions and then bind them to keys. This is in contrast to a "normal" text editor which allows you to change keybindings,...
It has been a while since I updated my blog, so it is about time. I have just finished reading Rich Dad, Poor Dad by Robert Kiyosaki, arguably one of the most famous "self-help" books when it comes to money and finances. I particularly liked the blunt and straight-to-the-point writing style of the author. So here is a short review of the book.
This is a brief introduction into stock options and how they can be used by a long-term oriented investor, either to purchase shares at a discount or to generate additional income to supplement dividend payments.
I ordered Grant Cardones new book, Be Obsessed or Be Average, at the same time as The 10X Rule which I reviewed earlier. This book has a very similar tone as the first book, but it considers things from the viewpoint of obsessions. The title is provocative for sure but it is consistent with the style of the author, no doubt intended to shock...
In a previous blog post describing my investment philosophy I explained that I try to invest in companies of highest quality. But how to measure the quality of a company? There are many ways of course, such as looking at the strength of the balance sheet, competitive advantage or track record of management. There are also various equity research...
I must admit, I struggle to read books. It is so easy to get distracted with other things such as YouTube. Dont get me wrong, there is plenty of valuable content in video format, but there is something special about reading which engages the brain in a different way. After hearing over and over that successful people read books I realized it is...
There are three main decisions that any business entity must make. These apply whether we are talking about a single enterpreneur or the largest corporations on the planet. Most other business considerations usually fall under one of the three main ones. The purpose of a business entity is to create value for their shareholders and these three...
Since money and investing will be one of the main themes of my blog, I think it is natural to start off with a quick introduction into my investing philosophy. If I had to sum up my investing philosophy in once sentence, it would be get rich for sure. I have tried various things over the years, but one consistent lesson has been that the get rich...