<?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; Programmieren</title>
	<atom:link href="http://dergraf.net/themen/programmieren/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>Neue Safari Extension: Reconnect</title>
		<link>http://dergraf.net/2010/06/neue-safari-extension-reconnect/</link>
		<comments>http://dergraf.net/2010/06/neue-safari-extension-reconnect/#comments</comments>
		<pubDate>Tue, 15 Jun 2010 14:00:26 +0000</pubDate>
		<dc:creator>Sven Weidauer</dc:creator>
				<category><![CDATA[Programmieren]]></category>
		<category><![CDATA[extensions]]></category>
		<category><![CDATA[safari]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://dergraf.net/?p=110</guid>
		<description><![CDATA[So, heute gibt es meine zweite Safari-Erweiterung &#8220;Reconnect&#8220;. Die Seite ist im Moment nur englisch, aber der Rest kommt noch.]]></description>
			<content:encoded><![CDATA[<p>So, heute gibt es meine zweite Safari-Erweiterung &#8220;<a href="/reconnect/">Reconnect</a>&#8220;. Die Seite ist im Moment nur englisch, aber der Rest kommt noch.</p>
]]></content:encoded>
			<wfw:commentRss>http://dergraf.net/2010/06/neue-safari-extension-reconnect/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Safari 5 mit Extensions</title>
		<link>http://dergraf.net/2010/06/safari-5-extensions/</link>
		<comments>http://dergraf.net/2010/06/safari-5-extensions/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 12:47:28 +0000</pubDate>
		<dc:creator>Sven Weidauer</dc:creator>
				<category><![CDATA[Programmieren]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[extensions]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[safari]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://dergraf.net/?p=94</guid>
		<description><![CDATA[Seit gestern gibt es die neue Version von Apples Web-Browser Safari 5. Die wohl größte Neuerung ist die Möglichkeit Erweiterungen für den Browser aus CSS und JavaScript zu erstellen. Hier gibt es eine Liste mit (fast?) allen verfügbaren Erweiterungen bis Apple später im Sommer eine eigene Galerie anbietet. Ich selber habe mich auch mal da [...]]]></description>
			<content:encoded><![CDATA[<p>Seit gestern gibt es die neue Version von Apples Web-Browser <a href="http://www.apple.com/de/safari/">Safari 5</a>. Die wohl größte Neuerung ist die Möglichkeit Erweiterungen für den Browser aus CSS und JavaScript zu erstellen. <a href="http://safariextensions.tumblr.com/">Hier</a> gibt es eine Liste mit (fast?) allen verfügbaren Erweiterungen bis Apple später im Sommer eine eigene Galerie anbietet.</p>
<div>Ich selber habe mich auch mal da dran gewagt und schnell die Erweiterung &#8220;<a href="/blocktarget/">BlockTarget</a>&#8221; zusammengebastelt. Das Skript dafür zu schreiben war einfach und ging schnell. Das ganze drumherum war aber nicht so optimal:</div>
<div>
<ul>
<li>Man benötigt ein Entwickler-Zertifikat welches man sich bei Apple kostenlos erstellen kann. Aus irgend einem Grund ging das ganze aber nicht in Safari, mit Firefox funktionierte das aber ohne Probleme.</li>
<li>Der &#8220;Extension Builder&#8221; wurde wohl sehr eilig übersetzt, die deutsche Übersetzung ist wirklich nicht gut, da wäre es wohl besser gewesen das Teil auf englisch zu lassen.</li>
<li>Außerdem scheint es im Moment keine Möglichkeit zu geben die Extensions komplett zu lokalisieren. Die Beschreibung und den Namen kann man über eine lokalisierte &#8220;InfoPlist.strings&#8221;-Datei übersetzen, aber für die Einstellungen gibt es wohl (noch?) nichts.</li>
</ul>
</div>
<p>Ich gehe mal davon aus, dass das noch besser wird. Im Moment kann man die Extensions ja auch nur über das Entwickler-Menü aktivieren. Bis die offizielle Extension-Galerie startet wird sich da also sowieso noch etwas tun müssen.</p>
]]></content:encoded>
			<wfw:commentRss>http://dergraf.net/2010/06/safari-5-extensions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>
