RSS Reader in 10 lines of code
Jason Rogers
jacaetevha at gmail.com
Tue Oct 4 18:54:43 UTC 2005
Oops, forgot to include the packages I have in my workspace. Here they are:
DynamicBindings (1.2)
eCompletion (2.0b2)
eCompletionOmniBrowser (2.0b1)
Keymapping (3.0)
KomHttpServer (7.0.2)
KomServices (1.1.1)
LogEngine ((2))
MCInstaller (11)
Monticello (223->231)
nCompiler for 3.8 (20)
OmniBrowser (1.0b4)
PackageInfo (16->18)
PreferenceBrowser (22)
Refactoring Browser for 3.8 (3.8.42)
SARInstaller for 3.6 (28)
Script Manager ((1.1))
Scripting Workspace (1.22-apha)
Seaside (2.5b5->2.5)
Services-All ((62))
Shout (4)
SmaCC Runtime (2->4)
SqueakMap2 base (1.01)
SqueakMap2 loader (1.01->1.02)
SUnit (3.1.6->3.1.22)
VersionNumber (1.0)
On 10/4/05, Jason Rogers <jacaetevha at gmail.com> wrote:
> OK, so where does the UIManager class come from? I wanted to play
> with this code snippet but I don't have that installed. I am running
> 3.8#6665 on Linux.
>
> On 10/4/05, Bert Freudenberg <bert at impara.de> wrote:
> >
> > Am 04.10.2005 um 11:45 schrieb Tony Garnock-Jones:
> >
> > > Bert Freudenberg wrote:
> > >
> > >> If you have Yaxo installed, try this:
> > >>
> > >
> > > Yikes! The RSS feed generated isn't well-formed XML!
> >
> > Doh! Last time I tried the squeak foundation feed was well-formed :(
> >
> > You might try a different feed, though, like http://squeaksource.com/
> > feed.rss
> >
> > This is what it looks like, for those who couldn't try:
> >
> >
> >
> >
> > UIManager default
> > edit: (Text streamContents: [:stream |
> > (XMLDOMParser parseDocumentFrom: (HTTPClient httpGet:
> > 'http://squeaksource.com/feed.rss'))
> > tagsNamed: #item do: [:item |
> > #(title bold author italic pubDate normal
> > description normal) pairsDo: [:tag :attr |
> > stream withAttribute: (TextEmphasis perform:
> > attr) do: [
> > item tagsNamed: tag do: [:element |
> > stream nextPutAll: element
> > contentString; space]].
> > attr = #normal ifTrue: [stream cr]]]])
> > label: 'Bert''s Minimal Feed Reader'
> >
> > - Bert -
> >
> >
> >
> >
> >
> >
> >
> >
>
>
> --
> Jason Rogers
>
> "I am crucified with Christ: nevertheless I live; yet not I,
> but Christ liveth in me: and the life which I now live in
> the flesh I live by the faith of the Son of God, who loved
> me, and gave himself for me."
> Galatians 2:20
>
--
Jason Rogers
"I am crucified with Christ: nevertheless I live; yet not I,
but Christ liveth in me: and the life which I now live in
the flesh I live by the faith of the Son of God, who loved
me, and gave himself for me."
Galatians 2:20
More information about the Squeak-dev
mailing list
|