Build Faster Websites With Less JavaScript Using Astro (Tutorial)

Static site generators improve performance and security of web pages. They can be cached and it’s easy to deploy them to a CDN (Content Delivery Network). Static sites are an ideal candidate for web pages that don’t require highly dynamic content, for example, blogs or portfolio pages. Astro is a new static site builder for JavaScript developers that is lightning fast. In the future, I can see it as a replacement for tools like Hugo (written in Go) or Gatsby (JavaScript + React).
Read more →

I’m Taking a Break

I’m taking a break from daily blogging. I’ve started my first job in tech as a full-time software developer on July 1st. Before that, I was employed as a tax officer where I chose to work part-time. The transition to full-time work and a totally different industry doesn’t leave me enough energy to work on my side-projects or to write blog articles. For now, I will concentrate on getting up to speed in my day job.
Read more →

TIL: How to Fix ”Cannot Read Termcap Database” With Tmux and Kitty on MacOs

The Problem I use the Kitty terminal emulator with Tmux as my main tool for working with code. My Tmux settings (~/.tmux.conf) contain the following lines to enable true-color-support: # true colors set -g terminal-overrides ',xterm-256color:Tc' set -g default-terminal "tmux-256color" set -as terminal-overrides ',xterm*:sitm=\E[3m' When I open tmux on MacOs I get the following error message: Cannot read termcap database; using dumb terminal settings. The Solution Solution as a GitHub Gist:
Read more →

Notes on “Hashnode Talks: Saas, Software Engineering and Social Media With Simon Høiberg“

Simon started his career in selling software. As he learned more about the world of software, he gradually transformed into a software developer and freelance consultant. Simon build a SaaS product last year. Here is what he learned from trying to build an audience: About Building an Audience He spend a month on trying to understand his audience without trying to sell anything. His focus was on being helpful and consistently offering help.
Read more →

I Started My New Job (And Have MacOS Woes)

Today I started my first job in tech. While I’m pretty excited, it’s a big step. I have to learn new workflows and tools (Jira) and become familiar with a new code-base (Angular nx workspace). Plus, I now have a Mac for work. I underestimated the differences between my Linux box and MacOs. As terminal user with lots of scripts and shell modifications, I heavily rely on my dotfiles. I came to the realization that my files are not as portable as I’ve thought.
Read more →

TIL: How to Remove Headers From ps Command on MacOs

Today I’ve started to setup my MacBook Pro for work. It’s my first Mac and I’m not amused. If you only know Linux, there are some pitfalls. My .bashrc script contains the following lines: # # ~/.bashrc # # Fish if [[ $(ps --no-header --pid=$PPID --format=cmd) != "fish" ]] then exec fish fi I use bash as my login shell, but fish as my main interactive shell. Fish is not POSIX-compliant which can lead to problems.
Read more →

How to Build Any Kind of App by Andrea Bizzotto

Here are some quick notes on the video How to build any kind of app in Flutter (and overcome Tutorial Hell) by Andrea Bizzotto. Learn solid fundamentals first. Try to pinpoint the most challenging features. Read the documentation and create a mental map of the features you need. Build one feature at a time. Find tutorials and examples for a feature, experiment with the code, re-assemble it. Instead of searching for more tutorials, improve the existing solution with what you learned from the documentation.
Read more →

How I Remove Duplicate Lines From a File With awk

One of the repositories I maintain is a beginner’s GitHub repo. New developers can make their first pull request by adding their GitHub handle to a simple text file. When pull requests get merged into the master branch, they often contain duplicates. The file has more than 7,000 lines. Names are not sorted alphabetically. I needed a simple way to remove all duplicates lines from the file without sorting the lines.
Read more →

Notes on ”How to Promote Yourself to Potential Employers”

Notes on ”How to Promote Yourself to Potential Employers”
In this talk, Abbey Perini enthusiastically shares her tips for showcasing your strengths for the job search as a software developer. How to Practice Confidence collect wins set goals (beware the productivity trap) mantras building things (no coding) vision boards find a support network (helpful: other people that are also going through a similar experience) rest & recuperate How to Apply Your New Confidence practice “self-promotion”: it feels icky at first!
Read more →

TIL: Pass Multiple Commands to Xargs

I’m using fd, an alternative to the Unix native find, to find a list of files and copy them to a different location, using xargs. On Unix, we use cp to copy the files, but the command is silent. I don’t know which files cp will copy. Maybe I could use echo to log the files? How can I pass multiple shell commands to xargs? Previous command: fd --changed-within 1hour -0 | xargs -I cp {} /new/location/ fd -0 --changed-within: find all files changed within a time frame, separate results by null character |: pipe previous command as stdin to the next command xargs -I cp {} /new/location/: takes the input from previous command (fd) and uses cp to copy the files; {} is a placeholder What does not work:
Read more →

Sign up for the newletter!

powered by Buttondown