Switch to obsidian


I switched from org-roam to obsidian.
Read more ⟶

Django-auto-prefetching


Django-auto-prefetching is a small django package to do the select_related and prefetch_related automatically.
Read more ⟶

Use vim-projectionist to jump around in django projects


When working on django projects, I need to switching among django’s model, view, url, admin and serializers files. I used to use fzf.vim to jump around until I found vim-projectionist. With this plugin, you can create a “map” of your source code, with this map, you can just from for example, .c file to .h file. Create a .projections.json under your django file as follows: { "*/urls.py": { "type": "urls", "alternate": "{}/views.…
Read more ⟶

Give golang a try


“Go is such a refreshing language to program in, there is very little clutter just the stuff you need to get the job done” – Matt West Background I’ve bean using java and python for years. With spring boot, it is easy to start an application. However, I still don’t like the database access part of java. Now JPA and mybatis are popular solutions for database access. When I need to write some queries with dynamic conditions, the code is still ugly.…
Read more ⟶

Update this blog again


以前曾经写了很久的博客,后来我的虚拟主机忘记续费了,然后也没有做备份,以前写的博客全部没有了。虽然又搭了一个github的,但是写的欲望基本…
Read more ⟶