1
0
Fork 0
mirror of https://github.com/fmap/muflax65ngodyewp.onion synced 2024-06-26 10:26:48 +02:00

* added explanation of epistemic states

* added basic techne/episteme to categories
* port categorie template to erb
This commit is contained in:
muflax 2011-09-04 14:30:09 +02:00
parent 32344efc00
commit 8ba3958797
11 changed files with 183 additions and 62 deletions

25
content/episteme.mkd Normal file
View file

@ -0,0 +1,25 @@
---
title: Epistemic State
date: 2011-09-03
status: :done
episteme: :believed
---
So, what's with these markers of [epistemic][Epistemology] states everywhere?
They signal my attitude towards the content. I wanted a way to show whether I
still believe something I have written or not. Or only partially, or never at
all[^fiction]. I didn't want to throw away old texts just because I changed my mind, but I
also couldn't let them sit around without an annotation or someone might think I
still endorsed them.
I'm not happy just going around like RAW, claiming I'm agnostic about
everything. And taking care to notice when you change your mind is very
valuable. Hence the markers.
[^fiction]: It's complicated in the case of fiction. Generally speaking, *some*
aspects of it I do believe. Sometimes it represents a marginalized aspect of
me. Some days I just don't want to care about making my reasoning clear; I
just want to *write* something. Regardless, don't base your world-view on
fiction, please. Fiction is treason.

View file

@ -1,7 +1,7 @@
---
title: Speed Reading
date: 2010-06-23
status: :rough
techne: :rough
episteme: :believed
---
@ -393,9 +393,9 @@ Reading nonlinearly
-------------------
Finally, it's time to fully exploit the parallel processing and to do more
aggressive pattern prediction. It's time to throw away the chains of ~~oppression,
comrade!~~ intended text flow that the author gave us and to read in any order
and any direction that gets to the meaning faster.
aggressive pattern prediction. It's time to throw away the chains of
<del>oppression, comrade!</del> intended text flow that the author gave us and
to read in any order and any direction that gets to the meaning faster.
Reading nonlinearly just means you read text the same way you look around. You
jump to the points that look most interesting, figure out the context around

View file

@ -21,12 +21,21 @@ is_hidden: true
<!-- Wikipedia articles -->
[DXM]: http://en.wikipedia.org/wiki/DXM
[Epistemology]: http://en.wikipedia.org/wiki/Epistemology
<!-- internal links -->
[RSS]: /rss.xml
<!-- automatic content -->
<%= page_references %>
<% printed_items.each do |i| %>
[<%= i[:title] %>]: <%= i.identifier %>
<% unless i[:alt_titles].nil?
i[:alt_titles].each do |title| %>
[<%= title %>]: <%= i.identifier %>
<% end %>
<% end %>
<% end %>
<!-- abbreviations -->
*[PCT]: Perceptual Control Theory
@ -34,4 +43,5 @@ is_hidden: true
*[SIA]: Self-Indication Assumption
*[SSA]: Self-Sampling Assumption
*[SRS]: Spaced Repetition Software (e.g. Anki)
*[RAW]: Robert Anton Wilson

View file

@ -1,7 +1,7 @@
---
title: Gospel of Muflax
date: 2010-11-12
status: :done
techne: :done
episteme: :believed
---

View file

@ -1,7 +1,7 @@
---
title: There Is Only Quale
date: 2010-09-23
status: :done
techne: :done
episteme: :fiction
---

View file

@ -1,11 +1,12 @@
---
title: vim
date: 2010-11-17
status: :done
episteme: :discredited
techne: :done
episteme: :deprecated
---
~~~
#!sh
alias evil="for s in {1..3}; do
echo -n 'VI! ';
sleep .666;

View file

@ -1,7 +1,7 @@
---
title: Meditation on XMonad
date: 2010-05-03
status: :done
techne: :done
episteme: :discredited
---

View file

@ -29,6 +29,11 @@ div.footnotes {
border-top: 10px solid #7D9B3E;
}
sup {
margin-left: 0.2em;
/* font-size: 1em; */
}
a:link.crumb, a:hover.crumb, a:visited.crumb, a:active.crumb {
color: #d9d9d9;
font-size: 1.3em;
@ -40,8 +45,73 @@ a:hover {
color: #fff;
}
/* epistemic states should stand out from normal links */
a.episteme {
color: #057dff;
}
a.episteme:hover {
background: #7D9B3E;
color: black;
}
/* move paragraphs a bit closer to the center, with list exceptions */
p {
margin: 1em;
margin-left: 1em;
margin-right: 1em;
}
ul p {
margin-left: 0;
}
ol p {
margin-left: 0;
}
/* category items */
.align_left {
text-align: left;
}
.align_right {
float: right;
text-align: right;
margin-right: 1em;
}
ul.table li {
margin-left: 0;
}
/* general lists */
li {
margin-left: 1em;
padding-left: 0;
}
ol {
margin-left: 1em;
margin-top: 0;
margin-bottom: 0;
padding-left: 1em;
}
ul {
list-style-type: square;
margin-left: 1em;
margin-top: 0;
margin-bottom: 0;
padding-left: 1em;
}
/* colors for techne states */
span.techne_done {
color: green;
}
span.techne_rough {
color: red;
}
em {
@ -96,19 +166,10 @@ blockquote {
padding-left: 0;
}
ol {
margin-left: 1em;
/* fix indentation if blockquote is already indented */
li blockquote {
padding-left: 1em;
}
ul {
margin-left: 0;
padding-left: 1em;
}
a.footnoteRef {
margin-left: 0.1em;
font-size: 1.3em;
margin-right: 2em;
}
pre {

34
layouts/category.erb Normal file
View file

@ -0,0 +1,34 @@
<!-- print all items in a category, nicely formatted -->
<!-- find category index -->
<% cat_match = %r{^/#{@category}/}
cat_index = printed_items.find{|i| i.path.match(cat_match) and i[:is_category]} %>
<!-- header -->
# [<%= cat_index[:title] %>][]
<!-- find items in category -->
<% items = printed_items.select do |i|
not i[:is_category] and
i.path.match cat_match
end %>
<!-- print items in nice list -->
<% items.sort_by{|i| i[:date]}.reverse.each do |i|
techne = "<span class='techne_#{i[:techne]}'>#{i[:date]}</span>"
status = "(#{episteme i[:episteme]}) (#{techne})"
%>
{:.table}
- <span class='align_left'>[<%= i[:title]%>][]</span>
<span class='align_right'><%=status%></span>
<div style='clear: both'></div>
<% end %>
<!-- <div class='category_item'> -->

View file

@ -19,7 +19,11 @@
<!-- actual content -->
<div class="main">
<%= yield %>
<% if @item[:episteme] %>
<p>muflax' epistemic state: <%= @item[:episteme] %>.</p>
<% end %>
<%= yield %>
</div>
</body>

View file

@ -1,6 +1,7 @@
# Helper functions for site-building.
include Nanoc3::Helpers::Breadcrumbs
include Nanoc3::Helpers::Rendering
class Nanoc3::Item
def add_content content
@ -16,51 +17,36 @@ class Nanoc3::Item
end
end
# print all items in a category, nicely formatted
def category name
output = []
cat_match = %r{^/#{name}/}
# find category index
cat_index = printed_items.find{|i| i.path.match(cat_match) and i[:is_category]}
render "category", :category => name
end
# header
output << "# [#{cat_index[:title]}]"
# find items in category
items = printed_items.select do |i|
( not i[:is_category] and
i.path.match cat_match
)
def techne status
case status
when :rough
"needs revisiting"
when :incomplete
"work in progress"
when :done
"finished"
else
status.to_s
end
end
# items in nice list
items.sort_by{|i| i[:date]}.reverse.each do |i|
output << "- [#{i[:title]}]"
end
# output
output.map{|i| "#{i}\n"}.join
def episteme status
s = case status
when :broken
"partly believed"
when :discredited
"not believed anymore"
else
status.to_s
end
"[#{s}][Epistemic State]{:.episteme}"
end
# only articles that actually get printed
def printed_items
@items.select { |i| not i[:is_hidden] and not i.binary? }
end
#automatic links for all pages, used by reference file
def page_references
output = []
printed_items.each do |i|
output << "[#{i[:title]}]: #{i.identifier}"
unless i[:alt_titles].nil?
i[:alt_titles].each do |title|
output << "[#{title}]: #{i.identifier}"
end
end
end
# output
output.map{|i| "#{i}\n"}.join
end