Skip to content

2022

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!!!!

Working on alias for New Jekyll Post script

I think I've successfully created an alias for the new jekyll post script. I had to make sure that the target directory variable was fully qualified. Now I want to add a list of aliases to my login message on the Beelink i3 server.

Freenove Pi and Python Objects

I think I have the pi 400 and the pi 3 hooked up to be able to work through the freenove ultimate starter kit. I need to redo my understanding of addressing GPIO pins, although part of my problem today was a bad male to male jumper.

I watched more of the FreeCodeCamp Python OOP video and more of the objects course that I got free on Udemy. I sometimes wonder why I just don't fight my way through the Angela Yu 100 days course. But I do think I'm getting a handle on using objects and how I might use them in the digital diary program that I'm going to create but never use.

Set up backups of the source side of Jekyll GT_blog and Mkdocs simple. Should be able to copy other backup scripts that use rsync from previous stuff I've done.

Thursday finished and seems to work. Should be able to use as a model for rest of the days of the week.