All articles

Django's Cached Property

I've been trying to understand how django's decorator @cached_property works. Here is the class definition (original source):

# Got from django code base
class cached_property:
    Decorator that converts a method with a single self argument into a
    property cached on the instance.
    Optional ``name`` argument allows you to make cached properties …

Courage To Be Disliked: A Review

Courage to be disliked is a book that explains Adlerian psychology. It does so in the form of a dialog, between a student and a master. Here are the various ideas I got from reading the book:

Etiology vs Teleology

Etiology is when someone focuses on the past, and uses …

Sway Window Manager

Wayland is a display server that should work as a replacement for X. I've been thinking of trying it out for some time now. Detailed information about wayland and its history can be found in this article. The differences between xorg and wayland can be found here or in this …

Summary of 2018

This year has been meh for me ;( The highlights for the year include:

  • Completing course work for my masters class
  • Starting research on Renewable Energy Systems and how best to size them and control this system.
  • Active participation in various communities I managed to join especially Urban Perspective and NaiLUG …

Fixing Small Fonts on My Laptop

I have been having this problem with my laptop where the fonts seem too small. To fix this, I first had to check out my laptop's screen configurations:


Part of the output of this command is shown below. As can be seen it shows that my laptop screen is …

Bluetooth Speakers Problems

Connecting to Device

To connect to the bluetooth speakers, I use the bluetoothctl commandline options. The following are commands I run for this to work:

sudo systemctl start bluetooth.service
# Within the bluetoothctl environment
power on
agent on
scan on
pair A4:A7:B5:22:E6:F5
connect …

Freeing up Space in my Linux Machine

I have a 256GB SSD on my laptop. This is rather constrained and I occasionally end up with less than 10GB drive space. When this happens, I have to figure out what is taking up all my space and fix this. This prompts some form of search and cleaning up …

2018 So Far

This year so far has been tough.

I thought I would have read around 10 books by now but I'm barely half that mark. Most of the books are mostly fiction, but at least I've got some variety this time. The books I've completed so far are:

  • 'The Worthing Saga' …

Document Scaning in Arch Linux

Using a scanner in arch is pretty perplexing at first, especially if you want to try it from the command line. Here are my steps to end up with something that works.

First install the sane package. Sane provides a command line tool for using scanners.

sudo pacman -S sane …

When Memory is not enough

A computer or server suddenly freezes or crashes. You don't know what the problem is and you really need to complete this task. One of the options is to consider memory. You might have just run out. To confirm this, you can monitor memory usage using the htop command while …

« Page 2 / 6 »