<?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>ostebaronen.dk &#187; Google</title>
	<atom:link href="http://ostebaronen.dk/tag/google/feed/" rel="self" type="application/rss+xml" />
	<link>http://ostebaronen.dk</link>
	<description>write letters and shit, yo!</description>
	<lastBuildDate>Wed, 07 Jul 2010 00:43:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Udev rules for Nexus One and Dream/Magic</title>
		<link>http://ostebaronen.dk/udev-rules-for-nexus-one/</link>
		<comments>http://ostebaronen.dk/udev-rules-for-nexus-one/#comments</comments>
		<pubDate>Fri, 14 May 2010 21:28:08 +0000</pubDate>
		<dc:creator>ostebaronen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[Driver]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[HTC Nexus One]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[nexus]]></category>
		<category><![CDATA[Nexus One]]></category>
		<category><![CDATA[One]]></category>
		<category><![CDATA[udev]]></category>

		<guid isPermaLink="false">http://ostebaronen.dk/?p=400</guid>
		<description><![CDATA[Just found out that I had to change my udev rules for my Nexus One to work with my laptop, which I had made rules for to work with my HTC Magic &#8211; the vendor IDs have changed a bit for the Nexus One, so for the Nexus One I use the following rules which [...]]]></description>
			<content:encoded><![CDATA[<p>Just found out that I had to change my udev rules for my Nexus One to work with my laptop, which I had made rules for to work with my HTC Magic &#8211; the vendor IDs have changed a bit for the Nexus One, so for the Nexus One I use the following rules which reside in /etc/udev/rules.d/50-android.rules</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">SUBSYSTEM</span>==<span style="color: #ff0000;">&quot;usb|usb_device&quot;</span>, SYSFS<span style="color: #7a0874; font-weight: bold;">&#123;</span>idVendor<span style="color: #7a0874; font-weight: bold;">&#125;</span>==<span style="color: #ff0000;">&quot;18d1&quot;</span>, <span style="color: #007800;">MODE</span>=<span style="color: #ff0000;">&quot;0660&quot;</span>, <span style="color: #007800;">GROUP</span>=<span style="color: #ff0000;">&quot;plugdev&quot;</span>
<span style="color: #007800;">SUBSYSTEM</span>==<span style="color: #ff0000;">&quot;usb|usb_device&quot;</span>, SYSFS<span style="color: #7a0874; font-weight: bold;">&#123;</span>idVendor<span style="color: #7a0874; font-weight: bold;">&#125;</span>==<span style="color: #ff0000;">&quot;0bb4&quot;</span>, <span style="color: #007800;">MODE</span>=<span style="color: #ff0000;">&quot;0660&quot;</span>, <span style="color: #007800;">GROUP</span>=<span style="color: #ff0000;">&quot;plugdev&quot;</span>
<span style="color: #007800;">SUBSYSTEM</span>==<span style="color: #ff0000;">&quot;usb|usb_device&quot;</span>, ATTR<span style="color: #7a0874; font-weight: bold;">&#123;</span>idVendor<span style="color: #7a0874; font-weight: bold;">&#125;</span>==<span style="color: #ff0000;">&quot;18d1&quot;</span>, ATTR<span style="color: #7a0874; font-weight: bold;">&#123;</span>idProduct<span style="color: #7a0874; font-weight: bold;">&#125;</span>==<span style="color: #ff0000;">&quot;4e12&quot;</span>, SYMLINK+=<span style="color: #ff0000;">&quot;android_adb&quot;</span>
<span style="color: #007800;">SUBSYSTEM</span>==<span style="color: #ff0000;">&quot;usb|usb_device&quot;</span>, ATTR<span style="color: #7a0874; font-weight: bold;">&#123;</span>idVendor<span style="color: #7a0874; font-weight: bold;">&#125;</span>==<span style="color: #ff0000;">&quot;0bb4&quot;</span>, ATTR<span style="color: #7a0874; font-weight: bold;">&#123;</span>idProduct<span style="color: #7a0874; font-weight: bold;">&#125;</span>==<span style="color: #ff0000;">&quot;0fff&quot;</span>, SYMLINK+=<span style="color: #ff0000;">&quot;android_fastboot&quot;</span></pre></td></tr></table></div>

<p>This works well with both adb and fastboot.</p>
<p>Oh and for reference I had the following rules for my Magic which ought to work with the Dream as well:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">SUBSYSTEM</span>==<span style="color: #ff0000;">&quot;usb|usb_device&quot;</span>, SYSFS<span style="color: #7a0874; font-weight: bold;">&#123;</span>idVendor<span style="color: #7a0874; font-weight: bold;">&#125;</span>==<span style="color: #ff0000;">&quot;0bb4&quot;</span>, <span style="color: #007800;">MODE</span>=<span style="color: #ff0000;">&quot;0660&quot;</span>, <span style="color: #007800;">GROUP</span>=<span style="color: #ff0000;">&quot;plugdev&quot;</span>
<span style="color: #007800;">SUBSYSTEM</span>==<span style="color: #ff0000;">&quot;usb|usb_device&quot;</span>, ATTR<span style="color: #7a0874; font-weight: bold;">&#123;</span>idVendor<span style="color: #7a0874; font-weight: bold;">&#125;</span>==<span style="color: #ff0000;">&quot;0bb4&quot;</span>, ATTR<span style="color: #7a0874; font-weight: bold;">&#123;</span>idProduct<span style="color: #7a0874; font-weight: bold;">&#125;</span>==<span style="color: #ff0000;">&quot;0fff&quot;</span>, SYMLINK+=<span style="color: #ff0000;">&quot;android_fastboot&quot;</span>
<span style="color: #007800;">SUBSYSTEM</span>==<span style="color: #ff0000;">&quot;usb|usb_device&quot;</span>, ATTR<span style="color: #7a0874; font-weight: bold;">&#123;</span>idVendor<span style="color: #7a0874; font-weight: bold;">&#125;</span>==<span style="color: #ff0000;">&quot;0bb4&quot;</span>, ATTR<span style="color: #7a0874; font-weight: bold;">&#123;</span>idProduct<span style="color: #7a0874; font-weight: bold;">&#125;</span>==<span style="color: #ff0000;">&quot;0c02&quot;</span>, SYMLINK+=<span style="color: #ff0000;">&quot;android_adb&quot;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://ostebaronen.dk/udev-rules-for-nexus-one/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding AdSense for Google Search on a WordPress blog running on Lighttpd</title>
		<link>http://ostebaronen.dk/adsense-for-google-search-on-wp-on-lighttpd/</link>
		<comments>http://ostebaronen.dk/adsense-for-google-search-on-wp-on-lighttpd/#comments</comments>
		<pubDate>Thu, 24 Dec 2009 06:08:47 +0000</pubDate>
		<dc:creator>ostebaronen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[AdSense]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Lighttpd]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[Search]]></category>
		<category><![CDATA[slugs]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://ostebaronen.dk/?p=347</guid>
		<description><![CDATA[So you might be running WordPress on a Lighttpd server, which can be a bit problematic since it does not support slugs per default, and if you are using default permalink setup in WordPress the search page that we are going to create in a minute will not work. So first we need to do [...]]]></description>
			<content:encoded><![CDATA[<p>So you might be running WordPress on a Lighttpd server, which can be a bit problematic since it does not support slugs per default, and if you are using default permalink setup in WordPress the search page that we are going to create in a minute will not work.</p>
<p>So first we need to do something about the permalinks. For this example I will use the permalink style: <strong>http://domainname.test/postname/</strong> for this to work we need to add following lines in the lighttpd.com:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">url.rewrite-final = <span style="color: #7a0874; font-weight: bold;">&#40;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;"># Exclude some directories from rewriting</span>
    <span style="color: #ff0000;">&quot;^/(wp-admin|wp-includes|wp-content|gallery2|stats|awstats|awstatsicons|awstatscss|kloxo|kloxononssl|cgi-bin)/(.*)&quot;</span> =<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #ff0000;">&quot;$0&quot;</span>,
&nbsp;
    <span style="color: #666666; font-style: italic;"># Exclude .php files at root from rewriting</span>
    <span style="color: #ff0000;">&quot;^/(.*.php)&quot;</span> =<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #ff0000;">&quot;$0&quot;</span>,
&nbsp;
    <span style="color: #666666; font-style: italic;"># Handle permalinks and feeds</span>
    <span style="color: #ff0000;">&quot;^/(.*)$&quot;</span> =<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #ff0000;">&quot;/index.php/$1&quot;</span>
<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></td></tr></table></div>

<p>Remember to reload lighttpd to append these changes.</p>
<p>In the WordPress permalink settings you use the custom setting where you write: <strong>/%postname%/</strong> this will result in links like we wanted.</p>
<p>Now we have to make a page where the AdSense for Google results will show. I&#8217;ve made a template called <strong>gsearch.php</strong>, which looks like this:</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
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">/*
Template Name: gsearch
*/</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_header<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
        &lt;div id=&quot;content&quot; class=&quot;widecolumn&quot;&gt;
                &lt;!-- Google Search Result Snippet Begins --&gt;
&nbsp;
&lt;div id=&quot;cse-search-results&quot;&gt;&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
  var googleSearchIframeName = &quot;cse-search-results&quot;;
  var googleSearchFormName = &quot;cse-search-box&quot;;
  var googleSearchFrameWidth = 500;
  var googleSearchDomain = &quot;www.google.dk&quot;;
  var googleSearchPath = &quot;/cse&quot;;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://www.google.com/afsonline/show_afs_search.js&quot;&gt;&lt;/script&gt;
&nbsp;
&nbsp;
                &lt;!-- Google Search Result Snippet Ends --&gt;
        &lt;/div&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_sidebar<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_footer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>Put this template in your WordPress theme folder, and go to your Dashboard and make a new Page. Call this whatever you want, but remember to choose the <strong>template gsearch</strong>, and do not write anything else on the page, only fill out the page name.</p>
<p>Now go to your AdSense account, and create a new AdSense for Google Search. In the Wizard where it says which sites you want to search across write your own, also remember to add some keywords, it helps showing ads directed at the content you want to have it showing. But the most important thing is to fill in the <strong>Opening for search results page</strong>, here you have to check <strong>Open results within my own site</strong> and then specify the URL for the page you just made with the gsearch template. Now finish up the wizard and have the code created. We will only need the search box code, since we already implemented the search result code.</p>
<p>Since I do not know how to make a new widget, we will just paste the code into the sidebar code for your theme directly. Which you can find under appearance and then press editor. Find the code for your sidebar, probably named sidebar.php.<br />
Paste the generated code from google right after the <strong>&lt;div id=&#8221;sidebar&#8221;&gt;</strong> code, save and enjoy. You should now have a functioning AdSense for Google Search implemented on your blog.</p>
<p>You might want to remove the search widget, so it only show the Google Search one and also exclude the page from the pages widget.</p>
]]></content:encoded>
			<wfw:commentRss>http://ostebaronen.dk/adsense-for-google-search-on-wp-on-lighttpd/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Now with google search</title>
		<link>http://ostebaronen.dk/now-with-google-search/</link>
		<comments>http://ostebaronen.dk/now-with-google-search/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 17:29:29 +0000</pubDate>
		<dc:creator>ostebaronen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[AdSense]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Money]]></category>
		<category><![CDATA[Search]]></category>
		<category><![CDATA[Weblog]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://ostebaronen.dk/?p=345</guid>
		<description><![CDATA[I find the built in search function a bit lacking, so I decided to shift it out with Google AdSense Custom Search, which searches the webpage while showing some ads, which enables me to earn a bit money, since this page does not pay itself. Though you are not forced to click on the adds, [...]]]></description>
			<content:encoded><![CDATA[<p>I find the built in search function a bit lacking, so I decided to shift it out with Google AdSense Custom Search, which searches the webpage while showing some ads, which enables me to earn a bit money, since this page does not pay itself. Though you are not forced to click on the adds, though I&#8217;d like you to from time to time as a token of appreciation.</p>
<p>If you need help implementing this on your own wordpress weblog I will write up a blog post on how to do this very soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://ostebaronen.dk/now-with-google-search/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google translate tools!</title>
		<link>http://ostebaronen.dk/google-translate-tools/</link>
		<comments>http://ostebaronen.dk/google-translate-tools/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 13:53:09 +0000</pubDate>
		<dc:creator>ostebaronen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Language]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Site updates]]></category>
		<category><![CDATA[Translate]]></category>

		<guid isPermaLink="false">http://ostebaronen.dk/?p=206</guid>
		<description><![CDATA[I have added the Google Translate tool for you to use on the Blog. It is found in the sidebar on the right at the top, where you can choose a language you want the entire page to be translated into. For more information about this awesome translation tool visit Googles Translate Tools webpage, here [...]]]></description>
			<content:encoded><![CDATA[<p>I have added the Google Translate tool for you to use on the Blog. It is found in the sidebar on the right at the top, where you can choose a language you want the entire page to be translated into. For more information about this awesome translation tool visit <a title="Google Translate Tools" href="http://translate.google.com/translate_tools">Googles Translate Tools webpage</a>, here you can find the code you need to paste into your template for the tool to function. Super simple and it just works flawlessly! Though the quality of the translation is not perfect, but it will give you an idea what the content is about in the language you translate into.</p>
<p>For now Google Translate tools support 51 languages and will most likely support more in the future. This is also a great opportunity to reach out to an audience which does not speak English, which this Blog is written in. Cool beans!</p>
]]></content:encoded>
			<wfw:commentRss>http://ostebaronen.dk/google-translate-tools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
