<?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>funkensturm. &#187; schublade</title>
	<atom:link href="http://funkensturm.de/category/ruby-on-rails/resources/schublade/feed/" rel="self" type="application/rss+xml" />
	<link>http://funkensturm.de</link>
	<description>Das funkensturm. Weblog</description>
	<lastBuildDate>Tue, 15 Nov 2011 15:04:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Get HTTP Headers in&#160;Ruby</title>
		<link>http://funkensturm.de/2009/08/27/get-http-headers/</link>
		<comments>http://funkensturm.de/2009/08/27/get-http-headers/#comments</comments>
		<pubDate>Thu, 27 Aug 2009 15:15:11 +0000</pubDate>
		<dc:creator>manuel</dc:creator>
				<category><![CDATA[resources]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[schublade]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[NET::HTTP]]></category>

		<guid isPermaLink="false">http://blog.funkensturm.de/?p=202</guid>
		<description><![CDATA[Ein kleiner Schnipsel, um nur den Header eines HTTP Aufrufes zu erhalten. url = URI.parse&#40;'http://manuel.funkensturm.de/'&#41; req = Net::HTTP::Get.new&#40;url.path&#41; res = Net::HTTP.start&#40;url.host, url.port&#41; &#123; &#124;http&#124; http.request_head&#40;'/feed/'&#41; &#125; res.to_yaml Interessant sind in meinen Augen folgende Werte: &#62;&#62; res&#91;'last-modified'&#93; =&#62; &#34;Tue, 11 Aug 2009 16:09:01 GMT&#34; &#62;&#62; res&#91;'content-type'&#93; =&#62; &#34;application/rss+xml; charset=\&#34;UTF-8\&#34;&#34; &#62;&#62; res&#91;'etag'&#93; =&#62; &#34;\&#34;ca39ca8e3c9d3b858ef0d711956e00ad\&#34;&#34; über last-modified oder [...]]]></description>
			<content:encoded><![CDATA[<p>Ein kleiner Schnipsel, um nur den Header eines HTTP Aufrufes zu erhalten.</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">url = <span style="color:#CC00FF; font-weight:bold;">URI</span>.<span style="color:#9900CC;">parse</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">'http://manuel.funkensturm.de/'</span><span style="color:#006600; font-weight:bold;">&#41;</span>
req = <span style="color:#6666ff; font-weight:bold;">Net::HTTP::Get</span>.<span style="color:#9900CC;">new</span><span style="color:#006600; font-weight:bold;">&#40;</span>url.<span style="color:#9900CC;">path</span><span style="color:#006600; font-weight:bold;">&#41;</span>
res = <span style="color:#6666ff; font-weight:bold;">Net::HTTP</span>.<span style="color:#9900CC;">start</span><span style="color:#006600; font-weight:bold;">&#40;</span>url.<span style="color:#9900CC;">host</span>, url.<span style="color:#9900CC;">port</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color:#006600; font-weight:bold;">|</span>http<span style="color:#006600; font-weight:bold;">|</span> http.<span style="color:#9900CC;">request_head</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">'/feed/'</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#125;</span>
res.<span style="color:#9900CC;">to_yaml</span></pre></div></div>

<p>Interessant sind in meinen Augen folgende Werte:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&gt;&gt;</span> res<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #ff0000;">'last-modified'</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>
=<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #ff0000;">&quot;Tue, 11 Aug 2009 16:09:01 GMT&quot;</span>
<span style="color: #000000; font-weight: bold;">&gt;&gt;</span> res<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #ff0000;">'content-type'</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>
=<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #ff0000;">&quot;application/rss+xml; charset=<span style="color: #000099; font-weight: bold;">\&quot;</span>UTF-8<span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span>
<span style="color: #000000; font-weight: bold;">&gt;&gt;</span> res<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #ff0000;">'etag'</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>
=<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\&quot;</span>ca39ca8e3c9d3b858ef0d711956e00ad<span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span></pre></div></div>

<p>über last-modified oder den etag kann man dann schauen, ob man den Feed abholt oder die Aktion durchführt&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://funkensturm.de/2009/08/27/get-http-headers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nützliche Terminal&#160;Befehle</title>
		<link>http://funkensturm.de/2008/04/17/nutzliche-terminal-befehle/</link>
		<comments>http://funkensturm.de/2008/04/17/nutzliche-terminal-befehle/#comments</comments>
		<pubDate>Thu, 17 Apr 2008 15:34:20 +0000</pubDate>
		<dc:creator>manuel</dc:creator>
				<category><![CDATA[mac os x]]></category>
		<category><![CDATA[resources]]></category>
		<category><![CDATA[schublade]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[mx record]]></category>
		<category><![CDATA[nslookup]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://blog.funkensturm.de/?p=60</guid>
		<description><![CDATA[Hier soll eine Liste mit nützlichen Terminal Befehlen entstehen, da man so manche einfach jedes mal vergisst und dann suchen muss. Nameserver einer Domain herausfinden nslookup funkensturm.de MX Record einer Domain herausfinden nslookup -query=mx funkensturm.de DNS Cache flushen dscacheutil -flushcache Prozesse (zu einem Command) mit PID&#8217;s herausfinden ps aux &#124; grep -i ruby &#124; grep [...]]]></description>
			<content:encoded><![CDATA[<p>Hier soll eine Liste mit nützlichen Terminal Befehlen entstehen, da man so manche einfach jedes mal vergisst und dann suchen muss.</p>
<p><strong>Nameserver einer Domain herausfinden</strong><br />
nslookup funkensturm.de</p>
<p><strong>MX Record einer Domain herausfinden</strong><br />
nslookup -query=mx funkensturm.de</p>
<p><strong>DNS Cache flushen</strong><br />
dscacheutil -flushcache</p>
<p><strong>Prozesse (zu einem Command) mit PID&#8217;s herausfinden</strong><br />
ps aux | grep -i ruby<br />
| grep -i command nur wenn man die Prozesse zu einem Command haben will</p>
<p><strong>Prozesse beenden</strong><br />
kill -9 PID<br />
killall command</p>
<p>mit den zwei fang ich mal an. Wird aber immer schön erweitert. Wenn ihr welche habt einfach in die Comments!</p>
]]></content:encoded>
			<wfw:commentRss>http://funkensturm.de/2008/04/17/nutzliche-terminal-befehle/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
