Permalink
Browse files

* General changes:

  New look, based on the new mono website and planet gnome
  Moved files around to make things cleaner
  Added additional images, including hackergotchis

* AUTHORS: Added my name
* worker/monologue-worker.cs: Added support for IRC nicknames and
  hackergotchies.
* worker/default.tpl: Updated for new look
* worker/bloggers.xml: Added many irc nicknames and a few
  hackergotchies
* www/js/collapse.js: New file, some javascript code to
  expand/collapse posts.


svn path=/trunk/monologue/; revision=49852
  • Loading branch information...
1 parent b2a3ced commit f12a4368c99039423a2d5a631c0fe57bee9d5217 @codebutler codebutler committed Sep 10, 2005
View
@@ -1,2 +1,3 @@
Ben Maurer <bmaurer@users.sf.net>
Miguel de Icaza <miguel@ximian.com>
+Eric Butler <eric@extremeboredom.net>
View
@@ -1,3 +1,19 @@
+2005-09-09 Eric Butler <eric@extremeboredom.net>
+
+ * General changes:
+ New look, based on the new mono website and planet gnome
+ Moved files around to make things cleaner
+ Added additional images, including hackergotchis
+
+ * AUTHORS: Added my name
+ * worker/monologue-worker.cs: Added support for IRC nicknames and
+ hackergotchies.
+ * worker/default.tpl: Updated for new look
+ * worker/bloggers.xml: Added many irc nicknames and a few
+ hackergotchies
+ * www/js/collapse.js: New file, some javascript code to
+ expand/collapse posts.
+
2005-07-10 Jb Evain <jbevain@gmail.com>
* worker/blogger.xml: update my feed
View
@@ -1,5 +1,5 @@
MCS=mcs /debug
-MONO=mono
+MONO=mono --debug
monologue-worker.exe : monologue-worker.cs template4dotnet.cs
$(MCS) /r:RSS.NET.dll /r:ICSharpCode.SharpZipLib.dll /out:$@ $^
View
@@ -1,66 +1,66 @@
<BloggerCollection>
<Blogger Name="C&eacute;sar L&oacute;pez Natar&eacute;n" RssUrl="http://primates.ximian.com/~cnataren/blog/cesar.rss2" />
- <Blogger Name="Miguel de Icaza" RssUrl="http://tirania.org/blog/miguel.rss2" />
- <Blogger Name="Jackson Harper" RssUrl="http://primates.ximian.com/~jackson/blog/jackson.rss2" />
- <Blogger Name="Sebastien Pouliot" RssUrl="http://pages.infinit.net/ctech/poupou.rss" />
- <Blogger Name="Mike Kestner" RssUrl="http://primates.ximian.com/~mkestner/blog/index.rss2" />
- <Blogger Name="Lluis Sanchez " RssUrl="http://primates.ximian.com/~lluis/blog/index.rss2" />
- <Blogger Name="Duncan Mak " RssUrl="http://www.a-chinaman.com/category/monologue/feed" />
- <Blogger Name="Martin Baulig" RssUrl="http://primates.ximian.com/~martin/blog/martin.rss2" />
- <Blogger Name="Martin Willemoes Hansen" RssUrl="http://mwh.sysrq.dk/blog/martin.rss2" />
- <Blogger Name="Todd Berman" RssUrl="http://off.net/~tberman/diary/index.xml" />
+ <Blogger Name="Miguel de Icaza" RssUrl="http://tirania.org/blog/miguel.rss2" Head="miguel.png" IrcNick="miguel"/>
+ <Blogger Name="Jackson Harper" RssUrl="http://primates.ximian.com/~jackson/blog/jackson.rss2" IrcNick="jackson" Head="Image:Jackson.png" />
+ <Blogger Name="Sebastien Pouliot" RssUrl="http://pages.infinit.net/ctech/poupou.rss" IrcNick="spouliot" Head="Spouliot.png"/>
+ <Blogger Name="Mike Kestner" RssUrl="http://primates.ximian.com/~mkestner/blog/index.rss2" IrcNick="mkestner"/>
+ <Blogger Name="Lluis Sanchez " RssUrl="http://primates.ximian.com/~lluis/blog/index.rss2" IrcNick="lluis" Head="Lluis.png"/>
+ <Blogger Name="Duncan Mak " RssUrl="http://www.a-chinaman.com/category/monologue/feed" IrcNick="duncan" Head="Duncan.png"/>
+ <Blogger Name="Martin Baulig" RssUrl="http://primates.ximian.com/~martin/blog/martin.rss2" IrcNick="baulig" Head="Martin.png" />
+ <Blogger Name="Martin Willemoes Hansen" RssUrl="http://mwh.sysrq.dk/blog/martin.rss2" Head="Mwh.png" />
+ <Blogger Name="Todd Berman" RssUrl="http://off.net/~tberman/diary/index.xml" IrcNick="tberman" Head="Tberman.png" />
<Blogger Name="Mono:" RssUrl="http://www.mono-project.com/news/index.rss2" />
- <Blogger Name="Gonzalo Paniagua Javier" RssUrl="http://primates.ximian.com/~gonzalo/mono/blog/gonzalo.rss2" />
- <Blogger Name="Daniel Morgan" RssUrl="http://www.mfconsulting.com/danmorg/monologue-index.xml"/>
- <Blogger Name="Atsushi Enomoto" RssUrl="http://monkey.workarea.jp/lb/index.rss2"/>
+ <Blogger Name="Gonzalo Paniagua Javier" RssUrl="http://primates.ximian.com/~gonzalo/mono/blog/gonzalo.rss2" IrcNick="gonzalo" Head="Image:Gonzalo.png" />
+ <Blogger Name="Daniel Morgan" RssUrl="http://www.mfconsulting.com/danmorg/monologue-index.xml" IrcNick="danmorg"/>
+ <Blogger Name="Atsushi Enomoto" RssUrl="http://monkey.workarea.jp/lb/index.rss2" IrcNick="eno"/>
<Blogger Name="Erik Dasque" RssUrl="http://primates.ximian.com/~edasque/erik.rss2"/>
- <Blogger Name="Jordi Mas" RssUrl="http://primates.ximian.com/~jordi/blog/index.rdf"/>
+ <Blogger Name="Jordi Mas" RssUrl="http://primates.ximian.com/~jordi/blog/index.rdf" Head="Jordi.png" />
<Blogger Name="Paolo Molaro" RssUrl="http://www.advogato.org/person/lupus/rss.xml"/>
- <Blogger Name="Larry Ewing" RssUrl="http://primates.ximian.com/~lewing/blog/index.rdf"/>
- <Blogger Name="John Luke" RssUrl="http://advogato.org/person/jluke/rss.xml"/>
- <Blogger Name="Vladimir Vukicevic" RssUrl="http://blog.vlad1.com/feed/"/>
- <Blogger Name="Edd Dumbill" RssUrl="http://usefulinc.com/edd/blog/rss91"/>
+ <Blogger Name="Larry Ewing" RssUrl="http://primates.ximian.com/~lewing/blog/index.rdf" IrcNick="lewing"/>
+ <Blogger Name="John Luke" RssUrl="http://advogato.org/person/jluke/rss.xml" IrcNick="jluke"/>
+ <Blogger Name="Vladimir Vukicevic" RssUrl="http://blog.vlad1.com/feed/" IrcNick="vlad"/>
+ <Blogger Name="Edd Dumbill" RssUrl="http://usefulinc.com/edd/blog/rss91" Head="edd.png" IrcNick="edd" />
<Blogger Name="Massimiliano Mantione" RssUrl="http://primates.ximian.com/~massi/blog/index.rdf"/>
<Blogger Name="Kristian" RssUrl="http://www.livejournal.com/~inverted_tree/data/rss"/>
<Blogger Name="Nemerle" RssUrl="http://nemerle.org/blog/nemerle.rss2"/>
- <Blogger Name="Jon Trowbridge" RssUrl="http://blog.trowbridge.org/wp-rss2.php"/>
- <Blogger Name="Paco Martinez" RssUrl="http://www.mfconsulting.com/blog/index.rdf"/>
+ <Blogger Name="Jon Trowbridge" RssUrl="http://blog.trowbridge.org/wp-rss2.php"/>
+ <Blogger Name="Paco Martinez" RssUrl="http://www.mfconsulting.com/blog/index.rdf" IrcNick="paco"/>
<Blogger Name="Jambunathan K" RssUrl="http://feeds.feedburner.com/DiaryOfAVBDotNetCompilerDeveloper"/>
<Blogger Name="Sanjay Gupta" RssUrl="http://www.gnomebangalore.org/?q=blog/feed/596"/>
<Blogger Name="Umadevi S" RssUrl="http://www.gnomebangalore.org/?q=blog/feed/599"/>
<Blogger Name="Ravindra Kumar" RssUrl="http://www.gnomebangalore.org/?q=blog/feed/601"/>
- <Blogger Name="Sureshkumar" RssUrl="http://www.gnomebangalore.org/?q=blog/feed/677"/>
+ <Blogger Name="Sureshkumar" RssUrl="http://www.gnomebangalore.org/?q=blog/feed/677" IrcNick="suresh"/>
<Blogger Name="Geoff Norton" RssUrl="http://blog.sublimeintervention.com/rss.xml"/>
<Blogger Name="Alex Graveley" RssUrl="http://www.beatniksoftware.com/blog/wp-rss2.php"/>
- <Blogger Name="Chris Toshok" RssUrl="http://squeedlyspooch.com/blog/geek-index.xml"/>
- <Blogger Name="Joseph Hill" RssUrl="http://www.beyondfocus.com/WeblogX/BlogXBrowsing.asmx/GetRss?"/>
- <Blogger Name="Jb Evain" RssUrl="http://evain.net/ruby/userland.rbx"/>
- <Blogger Name="Zac Bowling" RssUrl="http://zacbowling.com/feed/rss2/"/>
+ <Blogger Name="Chris Toshok" RssUrl="http://squeedlyspooch.com/blog/geek-index.xml" IrcNick="toshok"/>
+ <Blogger Name="Joseph Hill" RssUrl="http://www.beyondfocus.com/WeblogX/BlogXBrowsing.asmx/GetRss?" IrcNick="jhill"/>
+ <Blogger Name="Jb Evain" RssUrl="http://evain.net/ruby/userland.rbx" Head="Image:Jbthumb2.png"/>
+ <Blogger Name="Zac Bowling" RssUrl="http://zacbowling.com/feed/rss2/" IrcNick="zbowling" />
<Blogger Name="Mark Crichton" RssUrl="http://www.fishysnax.com/code.xml"/>
<Blogger Name="MWF Weblog" RssUrl="http://svn.myrealbox.com/blog/rss.xml"/>
- <Blogger Name="Christian Hergert" RssUrl="http://blogs.dronelabs.com/chris/index.xml" />
- <Blogger Name="Jeroen Frijters" RssUrl="http://weblog.ikvm.net/SyndicationService.asmx/GetRss"/>
- <Blogger Name="Eric Butler" RssUrl="http://www.extremeboredom.net/rss.php"/>
+ <Blogger Name="Christian Hergert" RssUrl="http://blogs.dronelabs.com/chris/index.xml" IrcNick="chrish01" />
+ <Blogger Name="Jeroen Frijters" RssUrl="http://weblog.ikvm.net/SyndicationService.asmx/GetRss" IrcNick="jeroen"/>
+ <Blogger Name="Eric Butler" RssUrl="http://eric.extremeboredom.net/rss.xml" IrcNick="FireRabbit"/>
<Blogger Name="Joe Audette" RssUrl="http://www.joeaudette.com/RSS.aspx?pageid=101&amp;mid=104"/>
<Blogger Name="Michael Giagnocavo" RssUrl="http://www.atrevido.net/blog/SyndicationService.asmx/GetRss"/>
- <Blogger Name="Dan Winship" RssUrl="http://mysterion.org/~danw/blog/index.rss"/>
+ <Blogger Name="Dan Winship" RssUrl="http://mysterion.org/~danw/blog/index.rss" IrcNick="danw" Head="danw.png" />
<Blogger Name="Carlos Alberto Cortez" RssUrl="http://feeds.feedburner.com/carlos"/>
<Blogger Name="Joshua Tauberer" RssUrl="http://taubz.for.net/blog/rss.xpd"/>
- <Blogger Name="Peter Johanson" RssUrl="http://www.tenslashsix.com/wp-feed.php?cat=5"/>
- <Blogger Name="Aaron Bockover" RssUrl="http://aaronbock.net/journal/rss.php/monologue"/>
+ <Blogger Name="Peter Johanson" RssUrl="http://www.tenslashsix.com/wp-feed.php?cat=5" IrcNick="latexer"/>
+ <Blogger Name="Aaron Bockover" RssUrl="http://aaronbock.net/journal/rss.php/monologue" IrcNick="abock" Head="abock.png"/>
<Blogger Name="Rafi Mizrahi" RssUrl="http://feeds.feedburner.com/RafaelMizrahisWebLog" />
- <Blogger Name="Hisham Mardam Bey" RssUrl="http://hisham.cc/rss.php"/>
- <Blogger Name="Michal Dominik" RssUrl="http://diva.mdk.org.pl/?feed=rss2"/>
- <Blogger Name="Mario Sopena" RssUrl="http://feeds.feedburner.com/marioRss" />
- <Blogger Name="Jeyasankar Kottalam" RssUrl="http://eggminus.com/blogger-rss.php?url=http://gcc-cil.blogspot.com"/>
- <Blogger Name="Pedro Martinez" RssUrl="http://pedromj.dyndns.org/blog/BlogXBrowsing.asmx/GetRss?"/>
- <Blogger Name="Brandon Hale" RssUrl="http://tseng.ath.cx/log/?feed=rss2"/>
- <Blogger Name="Raja R Harinath" RssUrl="http://www.gnomebangalore.org/?q=blog/feed/598"/>
+ <Blogger Name="Hisham Mardam Bey" RssUrl="http://hisham.cc/rss.php" IrcNick="hisham"/>
+ <Blogger Name="Michal Dominik" RssUrl="http://diva.mdk.org.pl/?feed=rss2" IrcNick="MDK"/>
+ <Blogger Name="Mario Sopena" RssUrl="http://feeds.feedburner.com/marioRss" IrcNick="mario"/>
+ <Blogger Name="Jeyasankar Kottalam" RssUrl="http://eggminus.com/blogger-rss.php?url=http://gcc-cil.blogspot.com" IrcNick="jey"/>
+ <Blogger Name="Pedro Martinez" RssUrl="http://pedromj.dyndns.org/blog/BlogXBrowsing.asmx/GetRss?" Head="Pedro.png"/>
+ <Blogger Name="Brandon Hale" RssUrl="http://tseng.ath.cx/log/?feed=rss2" IrcNick="tseng"/>
+ <Blogger Name="Raja R Harinath" RssUrl="http://www.gnomebangalore.org/?q=blog/feed/598" Head="Harinath.jpg"/>
<Blogger Name="Mirco Bauer" RssUrl="http://www.meebey.net/jaws/data/xml/blog.Mono.rss" />
<Blogger Name="Michael Hutchinson" RssUrl="http://compsoc.dur.ac.uk/~mjh/mono-feed"/>
<Blogger Name="Blago" RssUrl="http://www.dachev.com/blog/index.rdf"/>
- <Blogger Name="Jeff Tickle" RssUrl="http://blog.jefftickle.com/category/pub/rss2" />
- <Blogger Name="Marek Sieradzki" RssUrl="http://www.planetsoc.com/blog/32/feed"/>
- <Blogger Name="Ben Maurer" RssUrl="http://feeds.feedburner.com/bmaurer" />
+ <Blogger Name="Jeff Tickle" RssUrl="http://blog.jefftickle.com/category/pub/rss2" IrcNick="jtickle"/>
+ <Blogger Name="Marek Sieradzki" RssUrl="http://www.planetsoc.com/blog/32/feed" />
+ <Blogger Name="Ben Maurer" RssUrl="http://feeds.feedburner.com/bmaurer" IrcNick="BenM" />
<Blogger Name="Ritvik Mayank" RssUrl="http://feeds.feedburner.com/mritvik" />
</BloggerCollection>
View
@@ -1,41 +1,88 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+
<html>
<head>
- <title>Monologue::</title>
- <link rel='stylesheet' href='monologue.css' type='text/css' />
+ <title>Monologue - Voices of the Mono Project</title>
+ <link rel='stylesheet' href='css/monologue.css' type='text/css' />
+ <link rel='stylesheet' href='css/planet.css' type='text/css' />
<link rel='alternate' title='Monologue' href='index.rss' type='application/rss+xml' />
- <script src='prettyprint.js' type='text/javascript'>
+ <!--[if IE]>
+ <link rel='stylesheet' href='css/ie.css' type='text/css' />
+ <![endif]-->
+ <script src='js/prettyprint.js' type='text/javascript'>
</script>
+ <script src='js/collapse.js' type='text/javascript'>
+ </script>
</head>
<body onload='paintColors();'>
- <h1>Monologue</h1>
+ <div id="header">
+ <div id="top-right-links"><a href="http://www.mono-project.com/">Return to mono-project.com &raquo;</a></div>
+ <h1>Monologue</h1>
+ </div>
+ <div id='blogs'>
+ <!-- @@BLOG_DAY@@ -->
+ <h2 class="date">@@DAY_DATE@@</h2>
+ <!-- @@DAY_ENTRY@@ -->
+ <div class="entry">
+ <div class="person-info">
+ <a href="@@ENTRY_PERSON_URL@@">
+ <img class="face" src="images/heads/@@ENTRY_PERSON_HEAD@@" alt=""/>
+ <br>
+ <br>
+ @@ENTRY_PERSON@@
+ @@ENTRY_PERSON_IRCNICK@@
+ </a>
+ </div>
+ <div class="post">
+ <div class="post2">
+ <div class="post-header">
+ <div class="expander"><input class="collapse-button" type="button" onClick="Collapse(this);" value="(Collapse)"></div>
+ <h4 class="post-title"><a href='@@ENTRY_LINK@@'>@@ENTRY_TITLE@@</a></h4>
+ </div>
+ <div class="post-contents">
+ @@ENTRY_HTML@@
+ </div>
+ <div class="post-footer">
+ <p><a href="@@ENTRY_LINK@@">Posted at @@ENTRY_DATE@@</a></p>
+ </div>
+ </div>
+ </div>
+ </div>
+ <!-- @@DAY_ENTRY@@ -->
+ <!-- @@BLOG_DAY@@ -->
+ </div>
+
<div id='bloggers'>
- <h2>RSS</h2>
- <a href="index.rss"><img src="xml.gif"></a> Monologue.
+
+ <h2>Monologue</h2>
+ <p>Monologue is a window into the world, work, and lives of the community members and developers that make up the <a href="http://mono-project.com/">Mono Project</a>, which is a free cross-platform development environment used primarily on Linux.</p>
+ <p>If you would rather follow Monologue using a newsreader, we provide the following feed:</p>
+ <p><a href="index.rss"><img src="images/xml.gif"></a> RSS 2.0 Feed</p>
<h2>Bloggers</h2>
<ul>
<!-- @@BLOGGER@@ -->
- <li><a href='@@BLOGGER_URL@@'>@@BLOGGER_NAME@@</a> <a href='@@BLOGGER_RSSURL@@'>(rss)</a></li>
- <!-- @@BLOGGER@@ -->
+ <li>
+ <div>
+ <img class="head" src="images/heads/@@BLOGGER_HEAD@@">
+ </div>
+ <a href='@@BLOGGER_URL@@'>@@BLOGGER_NAME@@</a>
+ <div>
+ <a href='@@BLOGGER_RSSURL@@'><img src="images/feed.png"></a>
+ <br>
+ @@BLOGGER_IRCNICK@@
+ <br>
+ </div>
+ </li><!-- @@BLOGGER@@ -->
</ul>
- <a href="http://www.go-mono.com"><img src="mono-powered-big.png" /></a>
+ <a href="http://www.go-mono.com"><img src="images/mono-powered-big.png" /></a>
</div>
-
- <div id='blogs'>
- <!-- @@BLOG_DAY@@ -->
- <h2>@@DAY_DATE@@</h2>
+
+
- <!-- @@DAY_ENTRY@@ -->
- <h3><a href='@@ENTRY_LINK@@'>@@ENTRY_TITLE@@</a></h3>
- <div class='blogentry'>
- @@ENTRY_HTML@@
- <p>Posted at @@ENTRY_DATE@@</p>
- </div>
- <!-- @@DAY_ENTRY@@ -->
- <!-- @@BLOG_DAY@@ -->
- </div>
+
</body>
</html>
View
@@ -121,8 +121,6 @@ static void RunOnce ()
if (b.Channel == null) continue;
foreach (RssItem i in b.Channel.Items) {
if (i.PubDate >= minPubDate) {
- string realTitle = b.Name + ": " + i.Title;
- i.Title = realTitle;
stories.Add (i);
}
}
@@ -161,6 +159,17 @@ static void Render ()
tpl.setField ("BLOGGER_URL", b.HtmlUrl.ToString ());
tpl.setField ("BLOGGER_NAME", b.Name);
+
+ if (b.Head != null)
+ tpl.setField ("BLOGGER_HEAD", b.Head);
+ else
+ tpl.setField ("BLOGGER_HEAD", "none.png");
+
+ if (b.IrcNick != null)
+ tpl.setField ("BLOGGER_IRCNICK", "(" + b.IrcNick + ")");
+ else
+ tpl.setField ("BLOGGER_IRCNICK", "");
+
tpl.setField ("BLOGGER_RSSURL", b.RssUrl);
tpl.appendSection ();
@@ -175,24 +184,26 @@ static void Render ()
tpl.selectSection ("DAY_ENTRY");
foreach (RssItem itm in day) {
tpl.setField ("ENTRY_LINK", itm.Link.ToString ());
- /*
+
Blogger bl = bloggers [itm.Author];
if (bl != null) {
tpl.setField ("ENTRY_PERSON", bl.Name);
+
+ if (bl.IrcNick != null)
+ tpl.setField ("ENTRY_PERSON_IRCNICK", "<br/>(" + bl.IrcNick + ")");
+ else
+ tpl.setField ("ENTRY_PERSON_IRCNICK", "");
+
+ if (bl.Head != null)
+ tpl.setField ("ENTRY_PERSON_HEAD", bl.Head);
+ else
+ tpl.setField ("ENTRY_PERSON_HEAD", "none.png");
+
+ tpl.setField ("ENTRY_PERSON_URL", bl.HtmlUrl.ToString());
} else {
- Settings.Log ("'{0}' have no author", itm.Title);
-
- int colon = itm.Title.IndexOf (":");
- if (colon != -1) {
- string author = itm.Title.Substring (0, colon);
- bl = bloggers [author];
- if (bl != null) {
- Settings.Log ("Using {0}", author);
- tpl.setField ("ENTRY_PERSON", author);
- }
- }
+ throw new Exception ("No blogger for " + itm.Author + ".");
}
- */
+
tpl.setField ("ENTRY_TITLE", itm.Title);
tpl.setField ("ENTRY_HTML", itm.Description);
tpl.setField ("ENTRY_DATE", itm.PubDate.ToString ("h:mm tt"));
@@ -299,10 +310,15 @@ public enum UpdateStatus {
public class Blogger {
[XmlAttribute] public string Name;
[XmlAttribute] public string RssUrl;
+ [XmlAttribute] public string IrcNick;
+ [XmlAttribute] public string Head;
+
[XmlIgnore]
public string ID {
// Must look like an email to make rss happy
- get { return XmlConvert.EncodeLocalName (Name) + "@" + XmlConvert.EncodeLocalName (RssUrl); }
+ get {
+ return XmlConvert.EncodeLocalName (Name) + "@" + XmlConvert.EncodeLocalName ("monologue.go-mono.com");
+ }
}
RssFeed feed;
@@ -334,13 +350,7 @@ public class Blogger {
public string Author {
get {
- string author;
- if (Name.IndexOf (' ') == -1)
- author = Name;
- else
- author = Name.Substring (0, Name.IndexOf (' '));
-
- return author + "@monologue.go-mono.com";
+ return XmlConvert.EncodeLocalName (Name) + "@" + XmlConvert.EncodeLocalName ("monologue.go-mono.com");
}
}
@@ -349,6 +359,7 @@ public void UpdateFeed ()
if (feed == null)
return;
+ // TODO: Do we still need this?
if (feed.Channels.Count > 0)
foreach (RssItem i in feed.Channels [0].Items)
i.Author = Author;
Oops, something went wrong.

0 comments on commit f12a436

Please sign in to comment.