<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>dergraf.net &#187; Mac</title>
	<atom:link href="http://dergraf.net/tags/mac/feed/" rel="self" type="application/rss+xml" />
	<link>http://dergraf.net</link>
	<description>Software und Dinge</description>
	<lastBuildDate>Thu, 17 Jun 2010 09:53:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Feed-URLs aus Apple Mail exportieren</title>
		<link>http://dergraf.net/2010/04/export-feeds/</link>
		<comments>http://dergraf.net/2010/04/export-feeds/#comments</comments>
		<pubDate>Mon, 26 Apr 2010 12:34:09 +0000</pubDate>
		<dc:creator>Sven Weidauer</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Programmieren]]></category>
		<category><![CDATA[Apple Mail]]></category>
		<category><![CDATA[Feed]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[OPML]]></category>
		<category><![CDATA[PubSub]]></category>
		<category><![CDATA[RSS]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://dergraf.net/?p=68</guid>
		<description><![CDATA[Mit diesem Shell-Skript kann man sich die Feed-URLs aus der PubSub-Datenbank (wie sie z.B. von Apple Mail verwendet wird) als OPML exportieren, z.B. um sie in Google Reader wieder zu importieren. Eine andere Möglichkeit habe ich nicht gefunden die RSS-URLs aus Mail zu bekommen. 1 2 3 4 5 6 7 8 9 10 11 [...]]]></description>
			<content:encoded><![CDATA[<p>Mit diesem Shell-Skript kann man sich die Feed-URLs aus der PubSub-Datenbank (wie sie z.B. von Apple Mail verwendet wird) als OPML exportieren, z.B. um sie in <a href="http://reader.google.com/">Google Reader</a> wieder zu importieren. Eine andere Möglichkeit habe ich nicht gefunden die RSS-URLs aus Mail zu bekommen.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
&nbsp;
<span style="color: #007800;">dbfile</span>=~<span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>PubSub<span style="color: #000000; font-weight: bold;">/</span>Database<span style="color: #000000; font-weight: bold;">/</span>Database.sqlite3
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #000000; font-weight: bold;">!</span> <span style="color: #660033;">-r</span> <span style="color: #007800;">$dbfile</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #000000; font-weight: bold;">then</span>
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Cannot read pubsub db file&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000;">2</span>
	<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #007800;">dateCreated</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">date</span><span style="color: #000000; font-weight: bold;">`</span>
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">&lt;</span> <span style="color: #000000; font-weight: bold;">&lt;</span> EOF
<span style="color: #000000; font-weight: bold;">&lt;</span>?xml <span style="color: #007800;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #007800;">encoding</span>=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>opml <span style="color: #007800;">version</span>=<span style="color: #ff0000;">&quot;1.1&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span><span style="color: #c20cb9; font-weight: bold;">head</span><span style="color: #000000; font-weight: bold;">&gt;</span>
    <span style="color: #000000; font-weight: bold;">&lt;</span>title<span style="color: #000000; font-weight: bold;">&gt;</span>Feeds subscribed via PubSub<span style="color: #000000; font-weight: bold;">&lt;/</span>title<span style="color: #000000; font-weight: bold;">&gt;</span>
	<span style="color: #000000; font-weight: bold;">&lt;</span>datecreated<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #007800;">$dateCreated</span><span style="color: #000000; font-weight: bold;">&lt;/</span>datecreated<span style="color: #000000; font-weight: bold;">&gt;</span>
	<span style="color: #000000; font-weight: bold;">&lt;</span>ownername<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #007800;">$USER</span><span style="color: #000000; font-weight: bold;">&lt;/</span>ownername<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;/</span><span style="color: #c20cb9; font-weight: bold;">head</span><span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>body<span style="color: #000000; font-weight: bold;">&gt;</span>
  <span style="color: #000000; font-weight: bold;">&lt;</span>outline<span style="color: #000000; font-weight: bold;">&gt;</span>
EOF
&nbsp;
sqlite3 <span style="color: #660033;">-batch</span> <span style="color: #007800;">$dbfile</span> <span style="color: #ff0000;">&quot;select url from feeds&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000; font-weight: bold;">while</span> <span style="color: #c20cb9; font-weight: bold;">read</span> url
<span style="color: #000000; font-weight: bold;">do</span>
       <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;&lt;outline type=<span style="color: #000099; font-weight: bold;">\&quot;</span>rss<span style="color: #000099; font-weight: bold;">\&quot;</span> xmlUrl=<span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #007800;">$url</span><span style="color: #000099; font-weight: bold;">\&quot;</span> /&gt;&quot;</span>
<span style="color: #000000; font-weight: bold;">done</span>
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">&lt;</span> <span style="color: #000000; font-weight: bold;">&lt;</span> EOF
    <span style="color: #000000; font-weight: bold;">&lt;/</span>outline<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;/</span>outline<span style="color: #000000; font-weight: bold;">&gt;&lt;/</span>body<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;/</span>opml<span style="color: #000000; font-weight: bold;">&gt;</span>
EOF</pre></td></tr></table></div>

<p>Hier gibt es das Skript zum Download: <a href='http://dergraf.net/wp-content/uploads/2010/04/pubsub2opml.sh.zip'>pubsub2opml.sh</a></p>
]]></content:encoded>
			<wfw:commentRss>http://dergraf.net/2010/04/export-feeds/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTTP-Request in Objective-C/Cocoa</title>
		<link>http://dergraf.net/2009/07/http-request/</link>
		<comments>http://dergraf.net/2009/07/http-request/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 17:09:30 +0000</pubDate>
		<dc:creator>Sven Weidauer</dc:creator>
				<category><![CDATA[Programmieren]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[HTTP]]></category>
		<category><![CDATA[JSON]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://dergraf.net/?p=33</guid>
		<description><![CDATA[Bei Experimenten mit dem Open-Xchange HTTP-API habe ich die Klasse HTTPRequest für Cocoa entwickelt. Die Klasse verwendet das Cocoa JSON-Framework, um die vom Server gelieferten JSON-Daten zu parsen. Hier der Code: HTTPRequest.m HTTPRequest.h Ich stelle den Code so wie er ist als Public Domain zur Verfügung. Macht damit was ihr wollt, aber gebt mir nicht [...]]]></description>
			<content:encoded><![CDATA[<p>Bei Experimenten mit dem <a href="http://www.open-xchange.com/de">Open-Xchange</a> <a href="http://www.open-xchange.com/wiki/index.php?title=HTTP_API">HTTP-API</a> habe ich die Klasse HTTPRequest für Cocoa entwickelt. Die Klasse verwendet das <a href="http://code.google.com/p/json-framework/">Cocoa JSON-Framework</a>, um die vom Server gelieferten JSON-Daten zu parsen.</p>
<p>Hier der Code:</p>
<ul>
<li><a href="http://dergraf.net/wp-content/uploads/2009/07/HTTPRequest.m">HTTPRequest.m</a></li>
<li><a href="http://dergraf.net/wp-content/uploads/2009/07/HTTPRequest.h">HTTPRequest.h</a></li>
</ul>
<p><small>Ich stelle den Code so wie er ist als Public Domain zur Verfügung. Macht damit was ihr wollt, aber gebt mir nicht die Schuld wenn er irgend etwas unerwartetes tut. Ich würde mich freuen darüber zu hören, wenn ihr ihn benutzt oder wie ihr ihn verbessert.</small></p>
]]></content:encoded>
			<wfw:commentRss>http://dergraf.net/2009/07/http-request/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
