Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Headline RDFs on Palm Memo

by Beatnik (Parson)
on Jan 13, 2001 at 20:25 UTC ( [id://51605]=CUFP: print w/replies, xml ) Need Help??

I recently started toying around with Palm::* and ended up hacking this piece of code.
#!/usr/bin/perl use Palm::PDB; use Palm::Memo; use XML::RSS; use LWP::Simple; %Sites = ( "slashdot"=>"http://slashdot.org/slashdot.rdf", "freshmeat"=>"http://freshmeat.net/backend/fm.rdf", "useperl"=>"http://use.perl.org/useperl.rdf", "devshed"=>"http://www.devshed.com/devshednews.rdf", "securityfocus"=>"http://www.securityfocus.com/topnews-rss.html" "perlnews"=>"http://www.news.perl.org/perl-news.rdf", "segfault"=>"http://segfault.org/stories.xml" ); $site = "useperl"; getstore($Sites{$site},"$site.rdf"); $date = join ("",localtime[3],localtime[5],localtime[5]); $pdb = new Palm::Memo; $pdb->Load("MemoDB.pdb"); $rss = new XML::RSS(version => '1.0'); $rss->parsefile("$site.rdf"); $record = $pdb->new_Record; $record->{data}="$data $site Headlines\n"; foreach $item (@{$rss->{items}}) { $record->{data} .= $item->{title}."\n".$item->{link}."\n"; } push @{$pdb->{records}},$record; $pdb->Write("Memo.pdb");
Syncing the modified memo still seems to be a problem. Ofcourse AvantGo is a perfectly good alternative, but that doesn't come on the less expensive Palms :)

Replies are listed 'Best First'.
Re: Headline RDFs on Palm Memo
by PotPieMan (Hermit) on Jan 13, 2001 at 22:09 UTC
      I didn't start of with the intention to do an AvantGO alike script. This was more like a introduction to Palm::* for me. The headlines were just a funky side effect :)
      I don't have AvantGO installed, yet, since they don't appear to provide a Linux version of the desktop client. Looking at this page might force me into getting it up and running eventually.
Re: Headline RDFs on Palm Memo
by Anonymous Monk on Jan 21, 2001 at 01:52 UTC
    AvantGo is a freedownload/service ( =
      As mentioned above, it started out as a Palm::* test, I was not planning to going the Avantgo-way.

      Greetz
      Beatnik
      ... Quidquid perl dictum sit, altum viditur.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: CUFP [id://51605]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2024-04-25 19:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found