finished log, fixed rss feeds, usable fancy links

master
muflax 2012-06-25 12:49:29 +02:00
parent df0d87b221
commit 5bb3ea7cb6
13 changed files with 137 additions and 132 deletions

8
Rules
View File

@ -65,6 +65,10 @@ compile '/feed/' do
filter :erb
end
compile '/feed-merged/' do
filter :erb
end
compile '*' do
if @item.binary?
# don't filter binary items
@ -121,6 +125,10 @@ route '/feed/' do
'/rss.xml'
end
route '/feed-merged/' do
'/rss-merged.xml'
end
route '/htaccess/' do
'/.htaccess'
end

22
TODO
View File

@ -1,24 +1,12 @@
* content [3/6]
- [X] universal RSS
- [X] portal
- [X] rss feeds
- [X] move stuff to blog
- [X] merge more stuff (experiments etc.)
- [X] disown bad sites
- [X] upper bound implemented
- [X] are *all* condemnations necessary? think more.
- [ ] start gospel
- [ ] start let's read for reviews
* content [0/1]
- [ ] fine-grained episteme tags
* layout [3/7]
* layout [0/4]
- [ ] better handling of footnotes (parallel column?)
- [ ] search bar prettier
- [ ] search bar not pretty enough
- [ ] site links could be prettier
- [ ] next_prev for first page float broken
- [X] disown site
- [X] better merged -> moved
- [X] smaller logo
- [ ] site links should be pretty
* technical [0/4]
- [ ] imply all_sites without -s
- [ ] fork nanoc, move site config there
- [ ] cache compilation better
- [ ] better handling of rss feeds (maybe generate them all separately and always upload them?)

View File

@ -1,43 +0,0 @@
usage 'rss-merge'
summary 'merge RSS feeds'
description 'Merges individual RSS feeds into one combined feed.'
module Nanoc::CLI::Commands
class RSSMerge < ::Nanoc::CLI::CommandRunner
def run
require "rss"
version = "2.0"
date = Time.new 0
items = []
# read individual feeds and include them
all_sites.each do |name|
site = load_site name
puts "including #{name}..."
feed = RSS::Parser.parse(File.open("#{site.config[:output_dir]}/rss.xml"))
date = [feed.channel.date, date].max
items.concat feed.items
end
# build merged feed
merged_feed = RSS::Maker.make(version) do |rss|
rss.channel.title = "muflax"
rss.channel.link = "http://muflax.com"
rss.channel.author = "mail@muflax.com"
rss.channel.description = "read ALL the muflax!"
end
merged_feed.items.concat items.sort_by(&:date).reverse.take(10)
# write it
File.open("out/muflax/rss-merged.xml", "w") do |f|
f.write merged_feed
end
system "nanoc compress -s muflax"
end
end
end
runner Nanoc::CLI::Commands::RSSMerge

View File

@ -204,6 +204,35 @@ ul.table li {
margin-left: -$margin;
}
ul.fancy {
list-style-type: none;
margin-left: -$margin;
li {
margin-bottom: 0.5em;
#name {
font-size: 1.3em;
}
#desc {
font-size: 1.1em;
}
a {
display: block;
background-color: $bg;
/* color: $crumb-fg; */
text-decoration: none;
}
a:hover {
background: $hover;
color: #fff;
}
}
}
/* general lists */
li {
padding-left: 0;

View File

@ -7,14 +7,12 @@ episteme: :log
An announcement! (I should put this somewhere else too, maybe. Eh.)
I've started to acquire quite a lot of sub-sites, so I decided to re-tool the main site a bit more aggressively, groups stuff more, clean up in general. This changed some of the links on the main site, and I moved some of that stuff back into the blog, but hey, no one ever linked to it (or even read it), so that shouldn't matter much. (I redirected links anyway. I try to never break anything.)
I've started to acquire quite a lot of sub-sites, so I decided to re-tool the main site a bit more aggressively, groups stuff more, clean up in general. This changed some of the links on the main site, and I moved some of that stuff back into the blog, but hey, no one ever linked to it (or even read it), so that shouldn't matter much. (I redirected urls anyway. I try to never break anything. Except my brain.)
<http://muflax.com> is now a (simple) portal for all my sites, and the articles hosted directly there are Big Fat Things That Grow Over Time[^yo] But Have A Kind Of Limited Scope And Are At Some Point Done And Self-Contained. BFTTGOTBHAKOLSAAASPDASCs. (In [antediluvian][] times, I think they called those thing "books". Or a "tractatus". Something like that.) For now, they are either way-too-ambitious posts like the [Antinatalism FAQ][] or stuff that all belongs together, in some sense.
I'll unify some more stuff[^crack] into single articles (like the antinatalism one), once there's a bit more content and I'm in the mood. I don't want to end up like Certain People who have elaborate intelligent arguments spread out over a bazillion blog posts and you can't just say, "read this huge site here, it contains everything you need to know".[^meta]
I even used some fancy CSS and icons. Look ma, I'm not completely stuck in the 90's like you always say! I can do this "web" stuff!
[^crack]:
Even though apparently no one paid any attention to it whatsoever, I've finally come up with the slogan for my (unfinished) [Crackpot Theory][Crackpot Theory]: "doing for crackpottery what theologians did for religion".
@ -24,6 +22,8 @@ I even used some fancy CSS and icons. Look ma, I'm not completely stuck in the 9
I tells ya, in a few decades, I'll rank right up there with Cipolla's [Basic Laws of Human Stupidity][]. Just you wait.)
<% end %>
Might even use some pretty CSS or icons or something soon. Right after I've watched this cat jump into a box. Haha, you so funny, cat.
Also, there is now an additional [universal RSS feed][Universal RSS] that includes *all* sites. (So you don't need 50 different feeds if you follow all my stuff anyway.) You can of course still follow individual feeds as always.
[^meta]:
@ -41,9 +41,9 @@ Also, there is now an additional [universal RSS feed][Universal RSS] that includ
---
And because I'm reading more, and I like lists, and reviews, hey!, there's now a [Let's Read][] site! I don't expect it to be very in-depth, or heck, even active in a month or two, but let's throw fifty ideas against the wall, one will stick! (Or at least make the wall sticky. *Eww*.)
And because I'm reading more, and I like lists, and reviews, hey!, there's now a [Let's Read][] site! I don't expect it to be very in-depth, or heck, even active in a month or two, but let's throw fifty ideas against the wall, one might stick. (Or at least make the wall sticky. *Eww*.)
Not that it has any real content yet. I'm not even committing yet to posting anything there, but I've set it up anyway. I have, however, committed to a [new Beeminder goal][Beeminder anki new] of adding 5 new cards per day to my Anki decks, ignoring auto-generated cards for language learning.[^lang] Similarly, I may commit soon to, say, one review (or quote-thingy like for PIT) per week. Just trying to figure out how useful for me this would be.
Not that it has any real content yet. I'm not even yet committing to posting anything there, but I've set it up anyway. I have, however, committed to a [new Beeminder goal][Beeminder anki new] of adding 5 new cards per day to my Anki decks, ignoring auto-generated cards for language learning.[^lang] Similarly, I may commit soon to, say, one review (or quote-thingy like for PIT) per week. Just trying to figure out how useful this would be for me.
[^lang]: Virtually *all* my language cards are now auto-generated. I add maybe a handful of words a year by hand. Dumping another few thousand sentences from a fun source is so much more productive. Accordingly, I've lowered the leech threshold on language decks to 4 failures before the card is auto-deleted.
@ -119,12 +119,12 @@ Yeah.
A further advantage of openly being a crackpot, I guess.
<% end %>
There is, of course, also the historical in-joke about the nature of the Condemnation itself. Back in '77, the Bishop of Paris decided that all them Aristotelian cranks running around was no good and Something Had To Be Done. So he banned them all, including, ironically enough, a lot of Aquinas' stuff which mostly got caught in the crossfire. (Aquinas would later be recognized as The Biggest Deal In Catholic Theology, second maybe only to Augustine.)
There is, of course, also the historical in-joke about the nature of the Condemnation itself. Back in '70, the Bishop of Paris decided that all them Aristotelian cranks running around was no good and Something Had To Be Done. So he banned them all, including, ironically enough, a lot of Aquinas' stuff which got caught in the crossfire. (Aquinas would later be recognized as The Biggest Deal In Catholic Theology, maybe second only to Augustine.)
However, because Jesus keeps on trolling Christians from beyond the grave, the Condemnation actually worked and everyone shut up about Aristotle and his ancient nonsense for just long enough that the philosophers could try some alternatives, and re-invent science and theology once again.
Which is exactly what I'm trying to do too, by ditching topics I can't possibly make progress on, or that have no use whatsoever, in favor of neater stuff.
Though I suspect that some of these problems are completely imagined on my side, and I just worry too much why no one has solved existence yet, when that isn't even a question I *should* be worrying about. Worrying about beliefs is a fairly bad fail for someone arguing that beliefs are tools, after all.
Though I suspect that some of these problems are completely imagined on my side, and I just worry too much why no one has solved existence yet, when that isn't even a question I *should* be worrying about. Worrying about beliefs is a fairly bad fail for someone arguing that beliefs are tools you should treat like a good consequentialist, after all.
So this Condemnation is substantially aimed at *myself*, to stop me from wasting cognitive resources, instead of doing useful stuff, like learning Sumerian.

View File

@ -13,6 +13,10 @@ All major changes on the site
{:#changelog}
- 2012/06/22: Major cleanup and restructuring due to the [Condemnation][].
<http://muflax.com> is now an explicit portal, some content got moved around, some disowned, some episteme tags got updated.
There is an [universal RSS feed][Universal RSS] for all stuff.
- 2012/05/25: [Antinatalism FAQ][] is officially not a draft anymore.
- 2012/04/18: Major site redesign.

View File

@ -0,0 +1,5 @@
---
is_hidden: true
---
<%= rss_feed_merged %>

View File

@ -9,9 +9,11 @@ no_comments: true
Yet another hypergraphic information whore's site.
[muflax][] is empty.
Links are sorted by mysterious processes. There is a [Changelog][] for major changes. You can subscribe to the [universal RSS feed][Universal RSS] for all sites, or go to each site for their individual feeds.[^snr]
[^snr]: As if you cared about signal-to-noise. I know you watch cats jumping into boxes all day like the rest of us.
[^snr]: As if you cared about signal-to-noise. I know you watch cats jump into boxes all day like the rest of us.
There is also [Twitter][].
@ -19,61 +21,62 @@ There is also [Twitter][].
# Sites
<ul class="table">
<ul class="fancy">
<%= render "list-site",
:domain => "blog",
<%= render "list-item-fancy",
:name => @site.site_yaml["sites"]["blog"]["title"],
:link => site_url("blog"),
:desc => "A Blog" %>
<%= render "list-site",
:domain => "daily",
:desc => "Daily[^daily] Practice" %>
<%= render "list-item-fancy",
:name => @site.site_yaml["sites"]["daily"]["title"],
:link => site_url("daily"),
:desc => "Daily Practice" %>
<%= render "list-site",
:domain => "letsread",
<%= render "list-item-fancy",
:name => @site.site_yaml["sites"]["letsread"]["title"],
:link => site_url("letsread"),
:desc => "Reading Is Radical" %>
<%= render "list-site",
:domain => "sutra",
<%= render "list-item-fancy",
:name => @site.site_yaml["sites"]["sutra"]["title"],
:link => site_url("sutra"),
:desc => "Bloggin' The Sutras" %>
<%= render "list-site",
:domain => "gospel",
<%= render "list-item-fancy",
:name => @site.site_yaml["sites"]["gospel"]["title"],
:link => site_url("gospel"),
:desc => "(a work in progress)" %>
</ul>
[^daily]: On average.
# Topics
<ul class="table">
<ul class="fancy">
<%= render "list-topic",
:topic => "Antinatalism",
:link => "muflax:morality/antinatalism",
<%= render "list-item-fancy",
:name => "Antinatalism",
:link => local_link("muflax:morality/antinatalism"),
:desc => "Being Born Sucks" %>
<%= render "list-topic",
:topic => "Crackpottery",
:link => "blog:crackpottery/crackpot-beliefs-the-theory",
<%= render "list-item-fancy",
:name => "Crackpottery",
:link => local_link("blog:crackpottery/crackpot-beliefs-the-theory"),
:desc => "Warranted Crackpot Belief" %>
<%= render "list-topic",
:topic => "Dark Stance",
:link => "muflax:morality/stances",
<%= render "list-item-fancy",
:name => "Dark Stance",
:link => local_link("muflax:morality/stances"),
:desc => "Transform Nothing, Seek No Gain" %>
<%= render "list-topic",
:topic => "Experiments",
:link => "blog:experiments",
<%= render "list-item-fancy",
:name => "Experiments",
:link => local_link("blog:experiments"),
:desc => "Trying Cool Stuff" %>
<%= render "list-topic",
:topic => "Meta-Ethics",
:link => "blog:morality",
<%= render "list-item-fancy",
:name => "Meta-Ethics",
:link => local_link("blog:morality"),
:desc => "Solving Morality" %>
</ul>
<br/> <!-- force some spacing -->

View File

@ -1,13 +1,14 @@
---
title: "tl;dr: muflax"
alt_titles: [muflax, about muflax]
date: 2012-02-05
techne: :rough
episteme: :broken
toc: true
date: 2012-06-25
techne: :done
episteme: :believed
non_cognitive: true
---
**muflax, n**: information whore, hacker, aspiring crackpot, catharsis junkie, not exactly sane
**muflax, n**: information whore, hacker, aspiring crackpot, catharsis junkie, meta addict, not exactly sane
[muflax][] is empty. My [LibraryThing][] profile says more about me than I ever could. You can get in [Contact][] with me about anything, be it comments, criticisms or corrections. Unless you're a duck.
My [LibraryThing][] profile says more about me than I ever could. You can [get in contact][Contact] with me about anything, be it comments, criticisms or corrections.
Unless you're a duck.

View File

@ -0,0 +1,9 @@
<li>
<div align="center">
<a href="<%= @link %>">
<span id="name"><%= @name %></span>
<br />
<span id="desc"><%= @desc %></span>
</a>
</div>
</li>

View File

@ -1,13 +0,0 @@
<li>
<span class='align_left'>
<a href="<%= site_url @domain %>">
<%= @site.site_yaml["sites"][@domain]["title"] %>
</a>
</span>
<span class='align_right' markdown="1">
<%= @desc %>
</span>
<div style='clear: both'></div>
</li>

View File

@ -1,13 +0,0 @@
<li>
<span class='align_left'>
<a href="<%= local_link @link %>">
<%= @topic %>
</a>
</span>
<span class='align_right' markdown="1">
<%= @desc %>
</span>
<div style='clear: both'></div>
</li>

View File

@ -59,3 +59,30 @@ def changes log
changes
end
def rss_feed_merged
require "rss"
version = "2.0"
date = Time.new 0
items = []
# read individual feeds and include them
@site.site_yaml["sites"].keys.each do |name|
feed = RSS::Parser.parse(File.open("out/#{name}/rss.xml"))
date = [feed.channel.date, date].max
items.concat feed.items
end
# build merged feed
merged_feed = RSS::Maker.make(version) do |rss|
rss.channel.title = "muflax"
rss.channel.link = "http://muflax.com"
rss.channel.author = "mail@muflax.com"
rss.channel.description = "read ALL the muflax!"
end
merged_feed.items.concat items.sort_by(&:date).reverse.take(10)
# write it
merged_feed
end