Skip to content

Blog

Journal January 7, 2024

Journal Jan 7, 2024

So with the errors I'm getting I trust nextcloud even less than before and am determined to only use it as a scratch pad. But I guess I have to learn the occ command. Or maybe just assume that the hostinger nextcloud install just sucks.

Django Thoughts - Journal December 30, 2023

  • Just don't seem to want to put in the work to do anything with django.
  • I'm going to work on an keyword index system for Nextcloud notes.
  • Have to make sure I don't get the zillion duplicates that I got when I did the program for flatnotes

Journal December 29, 2023

2023_12_29

Back to using the trigkey computer. I installed debian with the kde desktop. I got back to the codemy Django simple blog course, restarted it and did the first video. I cleaned up my notes which are in the mkdocs Github class_notes repository. I need to create a script to be able to upload the build to dutchdocs. xyz.

I have both the trigkey and the pi 5 connected as well as the cyber power. Works fine. Still can't use Udemy on the pi.

Journal December 27, 2023

2023_12_27

I was unhappy when I couldn't use Udemy from Raspberry Pi OS. I started the bro code HTML CSS course but it's not the same. I'm considering giving up on the raspberry pi 5 for the time being. Or I could try to connect 3 computers. The video is easy with the hdmi switches but the daisy chain for the keyboard and mouse I'm less sure of.

Current Thoughts

I'm currently thinking of having 3 online note taking places:

  • The first is this Jekyll site for keeping a log of activities and thoughts.
  • Second is a Todo Tiddlywiki site with three index pages - Active, Perhaps, and Completed Tasks.
  • Third is MkDocs - it's still the best product for documentation. Although I have to admit to being pretty happy with the paper notes I took from the Tech With Tim curses playlist on Youtube. Maybe I don't need a documentation site at all.

And I think it would be nice to have these all on a fairly low powered Raspberry Pi. Maybe the Pi 4 I've got or maybe even trying it on an old Pi 2. I think I'll look up the power consumption difference. Although thinking about it, not having USB3 on the Pi 2 is a strike against the Pi 2.

More Jekyll Manager Curses Notes

One of the stack overflow articles recommends using curses.endwin() before exiting to a subprocess like vim, and stdscr.refresh() upon returning.

I also need to fix the system so that the number of entries shown on the main screen is variable and calculated based on the number of rows (which curses calls lines) available in the terminal. Pretty much working, but when there's less than a full page at the end, the highlight doesn't work well. Got that.

I should also create a menu entry which lets the user run the update jekyll script from the manager, so they don't have to do it separately. Got that. Nice.

Jekyll Manager Curses Version

The Jekyll Manager Curses Version on the Beelink i3 (/home/terry/GT_blog/jmc.py) is working well. I need to add an alias to it and put it in the opening message. Did that, the alias is jm and the script it runs is jm.sh.

I tried to do things differently this time. All I did was create a python program that just used print, input, and various subprocess statements to print out the entry information and use the number of the one that I wanted to edit. Once I got that python program working, I then went ahead and slowly used that as a template to create a curses based version of the same basic logic. And it works great. I'd still like to add colors to it, but it's pretty darn good. I think I have to recall wrapper everytime I go away to vim because the bottom menu can be messed up. Or maybe I can start vim in a new window and not mess with the curses app at all.

I think I should be able to do the same sort of thing using jekyll and the same setup to do a todo list. Just use the tags completed, progressing, perhaps, and maybe 1 or 2 more then use the tag menu on the jekyll site to view the stuff.

Testing Subprocess

Trying to make sure the subprocess command works and returns to continue the jekyll manager script.

Made a Jekyll Post Manager

I've got a working Jekyll post manager. It's not pretty, but it pages through the existing, launches the njp.sh script to create a new entry, lets the user pick an existing entry to edit and exits. Yay!!!!