All articles

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 …

Jogging Time Tracking In Google Sheets

I jog frequently. I needed to track the various times I spend jogging my various routes. There are pretty awesome android apps for this but carrying a phone with me while jogging did not work. I was ok with a wrist watch though. So I jog and afterwards store the …

Testing Asynchronous Calls in VueJS

I frequently use asynchronous calls when coding in vuejs, especially when I get and send data to an online api. Initially, I found it difficult to test the asynchronous calls, but as I learned more, asynchronous tests became painless. I detail the methods I use to test promises and async …

Jupyter Notebook Setup on a VPS

These steps have been tested on Digital Ocean server and a scaleway ARM64 server. I used the cheapest provided options for my setups.

First, set up ubuntu on the server. Both Digital Ocean and Scaleway provide an easy way to do this. Just follow their prompts, and you'll have your …

Control: Controllability and Observability

The state space equations are given by:

\begin{align*} x'(t) = Ax(t) + Bu(t)\\ y(t) = Cx(t) + Du(t) \end{align*}

If we discretize the system, the equation can be written as:

\begin{align*} x(n+1) = A_dx(n) + B_du(n)\\ y(n) = C_dx(n) + D_du(n) \end …

SSH AND SERVERS

SSH provides a secure means of remote login from one computer to another computer. When setting up linux servers, the OS usually provides ssh by default. To login:

ssh user@ipaddress

This prompts for a password, after which you have access to a remote terminal. Sometimes, no password is requested …

System Clock Prescalers and Their Hazards

One means of saving power with the attiny13A is by slowing down the clock frequency of the microcontroller. One option of doing this is by using the system clock prescaler. The attiny13A is shipped with running on a 9.6MHz internal RC Oscillator. It has the CKDIV8 fuse set (which …

SciKit-Learn GraphSearch CV

Scikit learn provides a lot of algorithms to help in machine learning. However, sometimes those algorithms have too many options. It is not usually evident which options will produce the best results. One method of solving this is to loop through all possible options and check the score.

crit = ['gini …

Ansible

Ansible is an automation tool that easens work a lot. I just set it up once and from then on I can forget about configurations and settings for my projects. It's really great for doing repeatable tasks like setting up nginx for subdomains, redeploying django projects, updating the OS, etc …

Summary of 2017

2017 was an interesting year in my life. I achieved a lot during this time despite starting off on a low note. It started off on a low note because following my graduation(2016), I was abit confused with my life. Things however became better as the year progressed.

I …

« Page 3 / 6 »