Serhat Teker

Serhat Teker is the software engineer who wrote these articles.

I created this Tech Blog to help me remember the things I’ve learned in the past, so my future-self doesn’t have to re-learn them in the future.

               

Python Logging Configuration

2019-07-13 — 3 minutes read
#python  #logging  #config  #ini 
No, please don’t debug your program with print. Python comes with a logging module in the standard library that provides a flexible framework for emitting log messages for Python programs. The module provides some ways for applications to configure different log handlers and a way of routing log messages to these handlers. This allows for a highly flexible configuration that can deal with a lot of different use cases. The logging functions are named after the level or severity of the events they are used to track.

Tmux Vim Active Pane Focus

2019-07-06 — One minute read
#tmux  #vim  #dotfiles  #config 
If you are a best text editor —a.k.a Vim, user, and you want to use our “active-inactive pane focus” feature that we implemented for tmux panes in this tmux active focus post for vim/nvim as well, you need to make some tweak in your vim colourscheme. The picture above shows how the inactive panes are slightly greyed, and that the border of the active panes is blue. Active-inactive pane colors config In order to apply active-inactive window style to Vim panes, it is necessary to check the line in your colorscheme.

Tmux Active Pane Focus

2019-06-29 — 2 minutes read
#tmux  #dotfiles  #config 
In this post I would like to show how to set pane colors for active and inactive panes of tmux. So you distinguish your active panel and focus easily as shown below: The picture above shows how the inactive panes are slightly greyed, and that the border of the active panes is blue. Active-inactive pane colors config Below color settings are for those who prefer a dark background. If you use light background then you need to change the colors accordingly.

Rebase Master

2019-06-22 (Edited: 2021-04-19) — 2 minutes read
#git 
Rebase While you’ve been working on something, probably you’ve been working on a branch on-and-off, or lots has happened in other branches. The best solution would be to rebase your branch onto master. This keeps the history tidy and makes things a lot easier to follow. Update your feature branch from master: Switch the master branch $ git checkout master Get remote updates: $ git pull Switch back to your local branch:

Sync a Forked Repository with Upstream

2019-06-15 — One minute read
#git  #vsc 
Sync a fork of a repository to keep it up-to-date with the upstream repository.