July 29, 2020

[dev note] anaconda and uwsgi

conda search doesn't show uwsgi, and pip install fails with various python versions.

Finally found the solution after a couple of days of frustration --
https://anaconda.org/conda-forge/uwsgi

conda install -c conda-forge uwsgi

July 27, 2020

Joplin - Onenote, Evernote replacement

About 10 years or so ago, I wrote a posting on Evernote when it was new and shiny.  Back then it was revolutionary, before Onenote added feature for sharing across multiple devices.

After it started to charge more than I'm willing to pay, and limiting storage spaces, I stopped using it.  And OneNote started to offer the same features and I had/still have license for it.  OneNote is free now, I believe.  I stopped using it as well -- I didn't like some of its features and how it works.

Since then I've been using just text editor and share the note via cloud services, gave up finding alternative solutions.

There is Joplin - https://joplinapp.org/
Open Source, free, available for all OS and mobile devices, and sync via cloud services.  I like that I have the control how/where my notes are stored/sync'd.

Joplin Adds Experimental WYSIWYG Editor



Some notes on Ubuntu


If Joplin is installed through SNAP, due to SNAP's security model, it has some limitation where notes are stored/backed up for directory sync.

Notes are stored in /home/$USER/snap/joplin-james-carroll/13/.config/joplin-desktop
(See this by going to Tools > General)  I don't think this location can be changed -- at least I haven't found how.

If sync to directory, due to SNAP model, this directory cannot be outside of user home directory.  Sym link won't work.



Installer versions

If preferred, use Desktop installer version.  There is no restriction which directory you want to sync (backup).

wget -O - https://raw.githubusercontent.com/laurent22/joplin/master/Joplin_install_and_update.sh | bash

Installer version stores the notes in, ~/.config/joplin-desktop

For terminal version of Joplin, https://joplinapp.org/terminal/

$ NPM_CONFIG_PREFIX=~/.joplin-bin npm install -g joplin
$ sudo ln -s ~/.joplin-bin/bin/joplin /usr/bin/joplin


Terminal version stores the notes in, ~/.config/joplin

Removing Installer version

Desktop version
$ rm ~/.joplin
$ rm ~/.local/share/applications/appimagekit-joplin.desktop

Remove note files and configuration
$ rm ~/.config/joplin-desktop

Terminal version,
$ sudo rm /usr/bin/joplin
$ rm -rf ~/.joplin-bin

To remove note files,
$ rm ~/.config/joplin


Warning on Desktop Joplin on Ubuntu 20.04

This is for both SNAP and installer versions for Desktop Joplin.

Tools > Options > Application, there is "Show tray icon".  This doesn't work for me.  If checked, and close the Joplin window by click on "X" button, it disappears but stay in memory.  Only way to get it back is run Joplin again.  You have to File > Quit to properly quit the application.  If "Show tray icon" is not checked off, closing Joplin window by clicking on "X" button will quit the application.


[Note] Gitea in Docker


Gitea (https://gitea.io/en-us/) is like a light weight Gitlab.

I wrote on Gitea previously, running on my personal server,
https://blog.keithkim.com/2019/03/ownserver-gitea-host-own-github-gitlab.html


Again, my server goes up and down depends on the schedule I set it to.  It usually in sleep mode and wakes up according the the schedule I set.  My main computer is on almost all day but the server is not as it's not heavily used.

This posting is a note on installing Gitea in Docker.

Docker image page, https://hub.docker.com/r/gitea/gitea

Pull the image,
$ docker pull gitea/gitea

Gitea official shows using docker-compose to customize further, https://docs.gitea.io/en-us/install-with-docker/ -- for my use, default works for me.  No volume mapping, no DB.

Run it,

$ docker run --name gitea -p 3000:3000 -p 222:22 -d gitea/gitea
$ docker logs -f gitea


Access it,
http://localhost:3000

  1. Click on "Sign-in" at upper-right corner, and it'll show Initial Configuration page.
  2. Configure as needed (for my case/this posting, no mysql, external volume is mapped).
  3. And then register user -- that will be the admin.