Tauri
Using htmx with Tauri
Patching XMLHttpRequest to use htmx as a frontend for Tauri
Tauri
Patching XMLHttpRequest to use htmx as a frontend for Tauri
FastAPI
A long time ago, I've written a sample application in Flask demonstrating real-time charts using SSE (Server-Sent Events). A few weeks back, I've made some improvements and deployed a working demo for everyone to see it in action. You can visit my blog "
Scraping
Dude is an easy-to-learn web scraping framework inspired by Flask syntax. You can build a web scraper in just a few lines of code.
Ghost.org
Recently, I tried to upgrade my self-hosted Ghost blog (https://ron.sh/) from version 3 to 4. It is installed in an Ubuntu machine but for some reason, ghost-cli is failing. I made several attempts but none of these are working for me. Yesterday, I tried another approach
Github
I arrived in Cologne, Germany last April 30, 2021. It was a very long 20+ hours trip from the Philippines 🇵🇠connecting through Doha, Qatar and Frankfurt, Germany. This marks the end of my 2-year Europe job-hunting and the start of a new chapter in my career as a
cURL
A common problem that I encountered while managing Linux servers is that it wasn't easy to transfer files. It sure is easy to transfer files to and from a computer that you are using to connect to the server via SCP or SSH but when it comes to
Django
Django 3.0 introduced a convenient way of handling error views, namely handler400, handler403, handler404, and handler500. As an example from Django, you can simply do this in your project's urls.py. # urls.py handler404 = 'mysite.views.my_custom_page_not_found_view' handler500 = 'mysite.
Django
This article shows how to deploy Django static files in Linux. If you want to deploy in DigitalOcean, create your account by using my referral link below. You can get free $100 credit and you can help this site. Follow my previous article here on how you can setup your
git
Command git config --global diff.algorithm patience Why use it? Patience diff tends to generate a more readable changes which greatly enhances code reviews. This gist from @roryokane shows the difference between myers (default) and patience diff. Why not use it? Patience diff is slower than the default diff algorithm.
NameCheap
Step 1 - Buy a domain name from Namecheap.com You can buy a domain name as cheap as $1 per year. Prices of domain names depend on a lot of factors but these are the most common reasons why some are expensive: 1. Top-Level Domain (TLD) like .com are
Python
I have been building a Rasa chatbot and the number of custom actions I have written kept on growing and I wanted to change something. What I do not like about Rasa is that it relies heavily on classes. For example, if you want to write a custom action, you
Python
We have seen usage of @route() decorator in Flask and they really make routing easy and backend development fast. But how do they really work? How do we implement one? We wrote a decorator and added print("hello", f.__name__) to see if it really gets printed. If