patrickmutuku.com

A step at a time

Flask

Testing Webhooks on your Localhost 127.0.0.1

Webhooks are a way for a web application to provide data to other web applications in real-time. As a practical example, consider having a GitHub repository with many contributors. There also exists a continuous integration (e.g Travis CI) setup that Read more…

By Patrick Mutuku, 3 years3 years ago
self-help

Maintaining work-life balance as a programmer

Even though you may be more productive if you code 16 hours a day, it will never be sustainable. Burnout will always come, and in my experience just after a few days. All levels of programmers can be negatively impacted Read more…

By Patrick Mutuku, 4 years3 years ago
Python

Using user input in python class __init__ function

There are cases when we need to get user input in a python program then use it during the initialization of a class. For example, if we have a class ‘person’ that has two attributes first name and last name. Read more…

By Patrick Mutuku, 4 years4 years ago
Flask

One to many relationships in Flask

As you begin to build more complex applications using Flask, you will have to use relationships at some point. Using relationships ensures that your database is normalized. One to many relationships will be covered in this post. It is assumed Read more…

By Patrick Mutuku, 4 years4 years ago
Fixes

[Solved] Kali Linux grey/black screen after login

You just installed Kali Linux and when you enter your username and password, you get a black/grey screen. No matter how long you wait, nothing changes. Here is how to fix it. First, you need to boot into Kali Linux Read more…

By Patrick Mutuku, 4 years4 years ago
Bottle

Handling form submissions in bottle

Bottle is one of the lightest python micro-frameworks for making websites. To handle a form submission, first import the request class from bottle. from bottle import request Add allowed request method on the desired route and access the form data. Read more…

By Patrick Mutuku, 4 years4 years ago
Recent Posts
  • Testing Webhooks on your Localhost 127.0.0.1
  • Maintaining work-life balance as a programmer
  • Using user input in python class __init__ function
  • One to many relationships in Flask
  • [Solved] Kali Linux grey/black screen after login
Recent Comments
  • Jc Ehmer on [Solved] Kali Linux grey/black screen after login
Archives
  • October 2019
  • February 2019
  • January 2019
Categories
  • Bottle
  • Fixes
  • Flask
  • Kali Linux
  • Python
  • self-help
Meta
  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
Hestia | Developed by ThemeIsle