Weblog
Weblog
Using upstreaming in Radio as CMS
I'm documenting my go at converting a previously Manila based website to a Radio-CMS based site, wish me luck ;) I'm running into a few road-block like obstacles, but then I had those converting to Frontier from AOLPress when I started out, so it's to be expected ;)
There's a few points that I'm missing, new ways to do things are always like that
talking about idle time...
As you may have noticed I got some work done lately and might find some more ressources where those came from.
So: Anybody out there who would actually be interested to use the weblog PHP script that builds this humble site? Talking about SBELT (stupid but entertaining log tool). It's a real simple PHP based weblogtool that get's the work done (templateing + RSS). If there actually is interest, I will make the code availeable and clean it up (other way around), otherwise I will simply use it myself and not bother anyone with my code.
stream of thought
following a link on HTP to here:
Anticiparallelism | Computerworld News & Features Story
trying to figure out "what a computer should worry about when its thumbs are twiddling."
I remembered that my PC at home runs almost 24/7, doing nil... So I also remembered I wanted to look into CPUIdle for some time now...
But if youre running win2k you might want to read this first.
building themes...
ok, i won't. not any longer.
look at what garret did and wheep. and once you're finished wheeping chant after me: I am not worthy, I am not worthy, I am not worthy!
look at what garret did and wheep. and once you're finished wheeping chant after me: I am not worthy, I am not worthy, I am not worthy!
some quote
Jon's Radio
Cool! In contrast to, say, Zope, it's convenient that much Radio behavior is filesystem-driven and -accessible. Amen!
Cool! In contrast to, say, Zope, it's convenient that much Radio behavior is filesystem-driven and -accessible. Amen!
... and forced all to bow down and pay tribute before their god Vi Su-Albahsic
"And it came to pass that the sons of Kahn, who dwelt in the valley of Scotts, in the land of Cali-fornia, fell upon hard times. For they were hard plagued by the Mic-rosoftees who dwelt in the north, yet ruled all the lands around, and forced all to bow down and pay tribute before their god Vi Su-Albahsic. And there was much wailing and gnashing of teeth in the valley, and also much careful reading of the Situations Vacant columns."
stolen, stolen, I am unworthy
stolen, stolen, I am unworthy
"If you don't like the software go out make some of your own."
You figure out where I stole that quote, but it's my credo. Don't whine about software if you didn't try to do it yourself ;)
Turn Your Radio On
Das Folgende habe ich schamlos vom Jörg geklaut, aber ich brauche die Doku auch hier
<quote src="Schockwellenreiter">
</quote>
Um W3C-konforme Seiten zu bekommen, mußte ich einige Klimmzüge unternehmen, damit Radio 8 korrektes HTML schreibt.
- In
system.verbs.builtins.radio.weblog.drawCalendarmußte ich gainsboro durch #dcdcdc ersetzen, da der HTML-Validator gainsboro nicht als gültiges HTML erkannte.- In
system.verbs.builtins.radio.data.stringshabe ich dem itemPermaLinkImg einen alt-Text gegsönnt, und- auch dem dailyLinkIcon in
weblog.data.prefswurde ein alt-Tag verpaßt.- Dem RSS-Icon fehlte ebenfalls der alt-Tag. Hier habe ich den Link einfach von Hand gebastelt, statt das
<%rssLink%>-Makro zu benutzen.
Das größte Problem machte aber JavaScript. Radio 8 sieht alle//im body eines Templates als URL an und macht daraus automatisch einen Link, also auch aus//-->. So stand dann immer sehr seltsames in meinen Seiten und ich war erst einmal ratlos. Mark Paschal brachte mich auf die Lösung, einfach den Doppelslash zu escapen (\//-->). Danke, Mark.
</quote>
dem Tobi sein viewer
Kommt mit der Art wie ich meine HTML-zeichen im RSS codiere nicht klar... Und andere parser kommen mit HTML-enties nicht klar. Was tun?
Hintergrund:
Normal als HTML-konform codierte Umlaute alà Ü führen in XML-Parsern zu Fehlern. Also codiere ich sie als &#[ASCII-wert]; und dachte alles wäre fein. Allerdings wiederum scheinen manche sich dann daran zu stören, daß auch < und > als Zahlen codiert sind (also aller HTML-code, der in einem item enthalten sein soll, da HTML sonst wieder zu Fehlern führt, da nicht XML-conform)... evtl. muß ich &, < und > eben doch als & etc. codieren...
Normal als HTML-konform codierte Umlaute alà Ü führen in XML-Parsern zu Fehlern. Also codiere ich sie als &#[ASCII-wert]; und dachte alles wäre fein. Allerdings wiederum scheinen manche sich dann daran zu stören, daß auch < und > als Zahlen codiert sind (also aller HTML-code, der in einem item enthalten sein soll, da HTML sonst wieder zu Fehlern führt, da nicht XML-conform)... evtl. muß ich &, < und > eben doch als & etc. codieren...
dem Tobi sein viewer
Kommt mit der Art wie ich meine HTML-zeichen im RSS codiere nicht klar... Und andere parser kommen mit HTML-enties nicht klar. Was tun?
Hintergrund:
Normal als HTML-konform codierte Umlaute alà Ü führen in XML-Parsern zu Fehlern. Also codiere ich sie als &#[ASCII-wert]; und dachte alles wäre fein. Allerdings wiederum scheinen manche sich dann daran zu stören, daß auch < und > als Zahlen codiert sind (also aller HTML-code, der in einem item enthalten sein soll, da HTML sonst wieder zu Fehlern führt, da nicht XML-conform)... evtl. muß ich &, < und > eben doch als & etc. codieren...
Normal als HTML-konform codierte Umlaute alà Ü führen in XML-Parsern zu Fehlern. Also codiere ich sie als &#[ASCII-wert]; und dachte alles wäre fein. Allerdings wiederum scheinen manche sich dann daran zu stören, daß auch < und > als Zahlen codiert sind (also aller HTML-code, der in einem item enthalten sein soll, da HTML sonst wieder zu Fehlern führt, da nicht XML-conform)... evtl. muß ich &, < und > eben doch als & etc. codieren...
Radio killed my coding, NOT
it rather insspired me to tackle a topic I was postponing for about half a year by now. SBELT has gained considerably and I now have a rss-feed. Go figure.
Vielbesucher-Bonus
für die Vielankilcker von Leerlaufprozess ;)
alternate upstreaming
<quote src="PapaScott">
I've put Radio back on the shelf, but Eric Soroos explains how to get upstreaming to work with rsync/ssh, or indeed any command line tool (by enabling a backup, then writing a upstream callback that calls the tool). That's a lot simpler than I thought it would be. While he imagines the solution for OS X, I'm sure you could get it to work with cygwin under Windows as well. But I don't have the time to pursue it.</quote>
Very, very mind-bombing ;)
Ümläute in rss
seem to be solved, wheeewww
rss encoding...
is my last real deal-stopper for SBELT2. encoding Umlauts etc. as html-entities won't do...
[update!] the rss url should work now!!!
For the brave and curious out there: here's the URL: traumwind-rss
One step further. It is possible to turn around the encoding-table PHP uses to get custom bahavior:
produces:
which I reall think is much nicer ;)
<?
$html = "<this> is not a tag, ÜÄÄÄhh";
function changeencoding (&$item1, $key) {
$item1 = "&#".Ord($key).";";
}
function xmlencode ($s) {
if (empty($xmltrans)) { // do this only once
$xmltrans = get_html_translation_table(HTML_ENTITIES);
array_walk ($xmltrans, 'changeencoding');
reset ($xmltrans);
}
return strtr($s, $xmltrans);
}
$xmlsafe = xmlencode($html);
echo $xmlsafe;
?>
produces:
<this> is not a tag, ÜÄÄÄhh
which I reall think is much nicer ;)
18.01.2002, 10:22 · Martin · Permalink
selfreferencial testing
alles Bild, Text und Tonmaterial ist © Martin Spernau, Verwendung und Reproduktion erfordert die Zustimmung des Authors