Posts
how to set recurring todo tasks with org mode in emacs?
First thing is to understand that behavior of a header block in org mode is dictated by properties.
I want to set repeating task to have the following functions
when I change from TODO state to DONE state, a header block will log “state changes” with time stamp. That is all the requirement I need for recurring tasks.
This can be done by setting the following
set :REPEAT_TO_STATE: property under the header with org-set-property set either DEADLINE (org-deadline) or SCHEDULE (org-schedule) with recurring syntax 1 , for example, adding .
Posts
How to set up org-roam and org-roam-bibtex as building block of emacs as your primary personal knowledge management?
{{< ref “~/org/personal-knowledge-management-pkm-note.org” >}}
Posts
How to setup a python file to activate specific conda environment using Emacs's conda.el?
I found that default setup for conda.el to be annoying and not robust. Firstly, setting (conda-env-autoactivate-mode t) will output error everytime file. Apparently, from inspecting the code, this is how it is implemented! see below.
(if conda-env-autoactivate-mode ;; already on, now switching off (advice-add 'switch-to-buffer :after #'conda--switch-buffer-auto-activate) (advice-remove 'switch-to-buffer #'conda--switch-buffer-auto-activate)) The error is (error "No such conda environment: %s" name) because input argument name has nil value when a file that is switched to don’t have environment.
Posts
How to solve hanging tramps?
Note that information I describe here can be found at FAQ page of TRAMP user manual, see here.
From an hour of digging, I discovered that tramp is really specific in term of how it read terminal prompt (aka PS1 environment variable.). It also limited in types of terminal, specified by TERM environment variables. TERM must match tramp terminal default setting (tramp-terminal-type).
I am using zsh shell in my remote compute.
Posts
How to use auto yasnippet (aka aya) in your workflow?
All of the content I presented below can be found at Auto-YASnippet Github repo.
Auto-Yasnippet (aka aya) provides the following interactive commands: aya-create, aya-expand, aya-persiste-snippet, and aya-open-line:
I don’t quite understand aya-open-line yet, so I will not be explaining it here.
This snippet package support ad-hoc style of editing workflow where you can create useful snippet to be reused as you editing.
Without aya, one would have do the following
Posts
How to write latex using org mode? Minmum things you need to know.
What you need to know to start writing latex in org mode is to understand how org-export-dispatch include/exclude/map org mode component to latex equivalent. You can learn all about these info by reading org manual on the topic, here.
You should know a little bit about org mode header arguments and LaTeX to fully follow the blog.
In this blog, I will just present minimal info for you to start writing latex in org mode.
Posts
Html is a Bad Design.
Alan Kay famously critique World Wide Web (WWW) where HTML is originated. He publicly dislike HTML as followed
Things like [HTML] happens when we let physicists play with computer.
He stated that HTML is a bad markup language because people who build HTML thinks their way of representing web page is the only way. He mentioned a (older and) better alternative to HTML is to define protocol based on ordered region on a tape — back when tapes were still popular means of storage in 1950’s.
Posts
Implementation of X where X = Emac's auth-source.
As an example, I will use api.github.com as a API endpoint.
If I use ~/.authinfo.gpg as an auth-sources file. (variable name is auth-sources), I need to add the following to the file where I need to sub value into user-username and user-password.
machine api.github.com login user-name password user-password auth-source-search is a function that retrieve password from your specify auth-sources file. You can use it as followed. This will output list of property where :secret key has your password as its value.
Posts
Incentives Of Owning Money.
Edit History last edit on [2022-07-30 Sat] Money is the most flexible medium of exchange. For more detail please refer to my blog named “Money Is A Type of Token.”
Motivation drive efforts. Effort is a seed of creation and innovation. It just happens that money provides universal motivation due to its utility which is measured by speed of conversion from itself to other assets. Money has fastest conversion rates.
Posts
Iteration and Recursion in Hoon.
Code below is a part of Exercise: A Playing Card Library 1 section in Hoon School 7. Libraries.
++ shuffle-deck |= [unshuffled=deck entropy=@] ^- deck =/ shuffled *deck =/ random ~(. og entropy) =/ remaining (lent unshuffled) |- ?: =(remaining 1) :_ shuffled (snag 0 unshuffled) =^ index random (rads:random remaining) %= $ shuffled [(snag index unshuffled) shuffled] remaining (dec remaining) unshuffled (oust [index 1] unshuffled) == Notice that random card is selected from the following 2 lines.