aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPreston Pan <preston@nullring.xyz>2023-06-24 14:30:02 +0800
committerPreston Pan <preston@nullring.xyz>2023-06-24 14:30:02 +0800
commit5362e381bcf1b1fe212ff3d550f61c9d55cd18e6 (patch)
tree6c3ffaf31f19366ebd900fcf874edbb263e7495a
parente9a6b2006f08c3a48ab4e64d6c84a4ff4e62d411 (diff)
Changed configs; add journal post
-rw-r--r--config/doom.org16
-rw-r--r--config/qutebrowser.org10
-rw-r--r--journal/index.org5
-rw-r--r--mindmap/duality.org40
4 files changed, 60 insertions, 11 deletions
diff --git a/config/doom.org b/config/doom.org
index 124dfb9..50e6dd0 100644
--- a/config/doom.org
+++ b/config/doom.org
@@ -69,6 +69,9 @@ Now, we set our keybindings:
([?\s-w] . (lambda ()
(interactive)
(start-process "" nil "qutebrowser")))
+ ([?\s-n] . (lambda ()
+ (interactive)
+ (start-process "" nil "nyxt")))
([?\s-k] . (lambda ()
(interactive)
(start-process "" nil "krita")))
@@ -124,8 +127,8 @@ Now we configure fonts:
** Color Scheme
I'm using the catppuccin theme, which is available on github.
#+begin_src emacs-lisp :tangle yes
-(setq doom-theme 'catppuccin)
-(setq catppuccin-flavor 'mocha)
+(setq doom-theme 'doom-rouge)
+;; (setq catppuccin-flavor 'mocha)
#+end_src
** Doom Module and Programs Configuration
*** Agenda
@@ -310,6 +313,11 @@ loopbacks in gpg-agent.conf.
(rainbow-mode 1))))
(global-rainbow-mode 1)
#+end_src
+*** Automatically tangle
+#+begin_src emacs-lisp :tangle yes
+(use-package! org-auto-tangle
+ :hook (org-mode . org-auto-tangle-mode))
+#+end_src
* packages.el Configuration
These are some external packages that I use that are not provided by doom modules.
#+begin_src emacs-lisp :tangle packages.el
@@ -320,7 +328,9 @@ These are some external packages that I use that are not provided by doom module
(package! nasm-mode)
(package! org-contrib)
(package! exwm)
+(package! org-auto-tangle)
(package! rainbow-mode)
+(package! ednc)
#+end_src
* init.el Configuration
@@ -355,7 +365,7 @@ This installs all the doom modules that we are going to be configuring:
;;neotree ; a project drawer, like NERDTree for vim
ophints
(popup +defaults)
- tabs
+ ;; tabs
treemacs
unicode
(vc-gutter +pretty)
diff --git a/config/qutebrowser.org b/config/qutebrowser.org
index 7490371..0763f68 100644
--- a/config/qutebrowser.org
+++ b/config/qutebrowser.org
@@ -2,7 +2,7 @@
#+author: Preston Pan
#+date: <2023-06-09 Fri>
#+description: a catppuccin configuration for qutebrowser.
-
+#+auto_tangle: t
#+html_head: <link rel="stylesheet" type="text/css" href="../style.css" />
* Configuration
@@ -65,8 +65,8 @@ c.url.searchengines = {
** Start Page
Set the default start page to my own website.
#+begin_src python :tangle config.py
-c.url.start_pages = ["https://preston.nullring.xyz"]
-c.url.default_page = "https://preston.nullring.xyz"
+c.url.start_pages = ["file:///home/preston/website_html/index.html"]
+c.url.default_page = "file:///home/preston/website_html/index.html"
#+end_src
** Keybindings
Now we define our keybindings for useful programs while browsing:
@@ -92,10 +92,6 @@ Doing mundane things like setting the downloads directory to not use an upper ca
#+begin_src python :tangle config.py
c.downloads.location.directory = "~/downloads"
#+end_src
-We also want to do this for the purpose of EXWM:
-#+begin_src python :tangle config.py
-c.tabs.tabs_are_windows = True
-#+end_src
** End of Config
#+begin_src python :tangle config.py
config.load_autoconfig()
diff --git a/journal/index.org b/journal/index.org
index 7d05c69..345deba 100644
--- a/journal/index.org
+++ b/journal/index.org
@@ -23,6 +23,11 @@ done
#+end_src
#+RESULTS:
+- [[file:20230624.org][20230624.org]]
+- [[file:20230623.org][20230623.org]]
+- [[file:20230622.org][20230622.org]]
+- [[file:20230621.org][20230621.org]]
+- [[file:20230620.org][20230620.org]]
- [[file:20230619.org][20230619.org]]
- [[file:20230616.org][20230616.org]]
- [[file:20230615.org][20230615.org]]
diff --git a/mindmap/duality.org b/mindmap/duality.org
index 48e433b..a47e951 100644
--- a/mindmap/duality.org
+++ b/mindmap/duality.org
@@ -94,7 +94,45 @@ class BinaryTreeNode:
self.right = BinaryTreeNode(value)
else:
self.right.insert(value)
+ def print_node(self, level=1):
+ print(f"level {level}: {self.value}")
+ if self.left is not None:
+ self.left.print_node(level + 1)
+ if self.right is not None:
+ self.right.print_node(level + 1)
+root = BinaryTreeNode(5)
+root.insert(3)
+root.insert(10)
+
+root.print_node()
#+end_src
+
+#+RESULTS:
+: level 1: 5
+: level 2: 3
+: level 2: 10
+
Currently, all that this binary tree has is an insert method, but that is all that is needed in order to see the [[id:8f265f93-e5fd-4150-a845-a60ab7063164][recursion]] in the structure.
Each node "height" is self similar, and it works of a dual-mode sorting algorithm. That is, smaller values go on the left side, and bigger
-values go on the right side.
+values go on the right side. It is the binary tree model in my view that unites the concept of duality with the concept of recursion. Duality
+is self similar at every abstraction level, and the duality is crucial for subdividing processing power in order to break a big task
+into small tasks, which is needed for recursion to be finite.
+* Why duality, and not Any other Modality?
+This is a good question, and one that I've still yet to answer completely. However, I would still like to try my hand at this, because there
+are things that make the number two specially suited for the task of subdividing.
+** Two is a Natural Number
+From a biological perspective, we're probably more used to dealing with whole numbers. We did not even come up with the concept of any others
+until much later, and negative numbers, and even zero, were a construct invented much later as well. Yes, there are an infinite number of natural
+numbers, but at least it's a filter we can use.
+** Two is Prime
+Of course, there are an infinite number of other numbers that are prime, but this is yet another filter that can be used. Any number that is not
+prime can be represented by a smaller factor of that number. For example, 4-ality can be represented by a longer chain of dualities.
+
+What's interesting is that one is a factor of everything. This represents the "null filter", or "anti filter", which doesn't filter any data and
+simply represents it all as one thing. Very interesting.
+*** P-ality, where P is Prime
+I've yet to experiment with other P-alities, but I'm sure they work too. For now, I will say that they probably work, but won't be as elegant as
+a duality, for other reasons:
+** Two is small, and Close to e
+The last thing that makes two unique is simply that it is the smallest prime number, which means thinking about the concept is relatively easy. It is
+also an approximation of the constant e, or euler's constant, which has implications in computer science and storing data as well.