After keeping my Emacs configuration somewhat static for a few years, I have made some bigger changes recently. I changed which packages I am using for core functionality such as completions and search. This post highlights some of them and the reasons behind choosing them. I should note that I have only used some of them for a week, so I am still at the very beginning of my learning journey. I…
This post is a short summary of my latest software projects that I have worked on so far this year. It has been a while since my last blog post so I need any excuse I can find to write something down. The common reason for writing new software is a personal need that is not quite satisfied with existing free offerings. The added benefit of writing your own software is that you understand it…
The Strangest Secret is an audio recording by Earl Nightingale produced in 1956. It summarizes some of the same ideas as the famous book Think and Grow Rich by Napoleon Hill. The audio can be found on YouTube among other places. This blog post is my attempt to summarize the information contained there. I think it is still very relevant today, 75 years later. Everyone wants to be successful, yet so…
It is time again to write down a few thoughts about investing. I started writing my thoughts on investing in my first blog post in 2017. Then I provided an update in another post in 2022. Also got a couple other posts that relate to the topic. In any case, I feel that now is a good time to provide some updates and look at how my capital allocation strategy has changed over the last few years.
This post covers the basics of using the shell in Linux, how to write shell scripts, as well as some information about processes in general. I use the Bash shell so the syntax represented here reflects that. If you use another shell, the syntax might be slightly different, so consult the documentation. I should also point out that while I refer to a system as Linux for simplicity, I am of course…
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 post in October, but did not have time or the…
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 quality software with a focus on simplicity, clarity,…
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 written before about what makes a good…
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 Atlassian is a great company in my opinion, their…
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 interested in space exploration so this topic is near to…
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 that not a lot has changed during that time.
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 scripts and leads to faster development than compiled or…
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 Helsinki to provide some ideas for investments. While I…
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 have a definite answer. Of course, those with a…
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 too bad, maybe around a second or two, when it…
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 our host system, we can make system calls to the…
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 database is not required. I much prefer Markdown files…
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 clear: unexpected events will happen to the economy…
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 dividends, and finally calculate how many shares you need to…
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 sets is a separate problem which should be fixed as…
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 extensions to the standard library.
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, but only to pre-defined built-in functions which…
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 people a bit.
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 institutions which provide metrics and rankings to…
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 something I must do, there is just no way around it.…
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 decisions determine whether value is created or…
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 quick methods do not work very well. So here is a…