So, Why Does OS X Rule?
May 19, 2008 in OSX
Debian package maintainers botched up ssh; I need to *dist-effing-upgrade* to fix the problem.
I buggered the *firmware* on my MacBook Pro; OS X fixes *itself*.
OS X++
May 19, 2008 in OSX
Debian package maintainers botched up ssh; I need to *dist-effing-upgrade* to fix the problem.
I buggered the *firmware* on my MacBook Pro; OS X fixes *itself*.
OS X++
I have about 150 feeds that I had previously been reading with Thunderbird. Since getting my hands on a MacBook Pro, I’ve switched to using Mail.app as my mail client (it’s nice!). The Problem is that Mail.app doesn’t provide an easy way of importing OPML (the format in which Thunderbird will export your RSS feeds).
Rather than skim through the exported OPML file & copy-paste each individual feed address into Mail.app, I (hastily) knocked together a php script - it doesn’t import directly into Mail.app, but rather puts your feed addresses into a simple text file that you can then copy-paste in one go (Mail.app -> File -> Add RSS Feeds ) .
#!/usr/bin/php
<?php
$file = "./MyThunderbirdFeeds.opml";
$doc = simplexml_load_file( $file );
$outfile = "./output.text";
$handle = fopen( $outfile, 'w' );
foreach( $doc->body->outline as $section )
{
foreach( $section->outline as $feed )
{
fwrite( $handle, $feed["xmlUrl"].”\\r\\n” );
}
}
fclose( $handle );
?>
Hopefully it might help someone out.
A few things to note:
chmod 755 ./extractScript.php
)