<?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>/kb &#187; General</title>
	<atom:link href="http://grx.no/kb/category/general/feed/" rel="self" type="application/rss+xml" />
	<link>http://grx.no/kb</link>
	<description>personal knowledgebase</description>
	<lastBuildDate>Wed, 15 Jun 2011 07:07:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Removing info bubble from Google Map, and keeping placemark</title>
		<link>http://grx.no/kb/2009/03/26/removing-info-bubble-from-google-map-and-keeping-placemark/</link>
		<comments>http://grx.no/kb/2009/03/26/removing-info-bubble-from-google-map-and-keeping-placemark/#comments</comments>
		<pubDate>Thu, 26 Mar 2009 09:05:59 +0000</pubDate>
		<dc:creator>hgrimelid</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[google maps]]></category>
		<category><![CDATA[info bubble]]></category>
		<category><![CDATA[map]]></category>
		<category><![CDATA[placemark]]></category>

		<guid isPermaLink="false">http://grx.no/kb/?p=149</guid>
		<description><![CDATA[UPDATE: Apparently this solution does not work anymore. I did a quick search, and it seems this could be a working solution. Default behavious is to show the information bubble when embedding a Google Map in your web page. Some times this is not a desired behaviour, and you only want to show the placemark. [...]]]></description>
			<content:encoded><![CDATA[<p>UPDATE: Apparently this solution does not work anymore. I did a quick search, and it seems <a href="http://groups.google.com/group/google-maps-api/msg/4187bc8f2f64f558">this could be a working solution</a>.</p>
<p>Default behavious is to show the information bubble when embedding a Google Map in your web page. Some times this is not a desired behaviour, and you only want to show the placemark. After a little digging <a href="http://groups.google.com/group/Google-Maps-Troubleshooting/browse_thread/thread/318dc76597872f2e#0893a5bd10c8d59b">this Google Groups thread</a> provided a very simple solution to the problem.</p>
<p>Add the <code>iwloc</code>-parameter with value near. Here&#8217;s an example:<br />
<small><a style="color: #0000ff; text-align: left;" href="http://maps.google.com/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&amp;q=Stavenes,+Norway&amp;sll=60.982268,5.078602&amp;sspn=0.057623,0.22316&amp;ie=UTF8&amp;ll=61.569805,5.116882&amp;spn=0.457668,1.167297&amp;z=9&amp;iwloc=addr">View Larger Map</a></small><br />
<small><a style="color: #0000ff; text-align: left;" href="http://maps.google.com/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&amp;q=eivindvik,+gulen&amp;sll=37.0625,-95.677068&amp;sspn=51.355924,114.257812&amp;ie=UTF8&amp;cd=1&amp;ll=61.002413,5.256958&amp;spn=1.597879,2.581787&amp;z=8">View Larger Map</a></small></p>
<p>So the string to insert is</p>
<pre>&amp;iwloc=near</pre>
<p>somewhere in between. Take a look at my source code if you&#8217;re unsure.</p>
]]></content:encoded>
			<wfw:commentRss>http://grx.no/kb/2009/03/26/removing-info-bubble-from-google-map-and-keeping-placemark/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Notes on setting up Arch Linux in VirtualBox with Awesome wm</title>
		<link>http://grx.no/kb/2008/08/17/notes-on-setting-up-arch-linux-in-virtualbox-with-awesome-wm/</link>
		<comments>http://grx.no/kb/2008/08/17/notes-on-setting-up-arch-linux-in-virtualbox-with-awesome-wm/#comments</comments>
		<pubDate>Sun, 17 Aug 2008 18:54:41 +0000</pubDate>
		<dc:creator>Håvard Grimelid</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[archlinux]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[virtualbox]]></category>
		<category><![CDATA[virtualization]]></category>

		<guid isPermaLink="false">http://grx.no/kb/?p=39</guid>
		<description><![CDATA[For several reasons I wanted to have a GNU/Linux system with root access available. In a bright moment I suddenly realized that the simplest way of achieving this was to have a virtual installation on my Macbook. I chose VirtualBox from Sun as virtualization environment as this is free software (GPL) and Arch Linux as [...]]]></description>
			<content:encoded><![CDATA[<p>For several reasons I wanted to have a GNU/Linux system with root access available. In a bright moment I suddenly realized that the simplest way of achieving this was to have a virtual installation on my Macbook. </p>
<p>I chose <a href="http://www.virtualbox.org/">VirtualBox</a> from Sun as virtualization environment as this is free software (GPL) and <a href="http://archlinux.org/">Arch Linux</a> as the distribution because I&#8217;ve quite some experience with this distribution and it&#8217;s easy to create rather minimalistic installs with it.</p>
<p>This walkthrough does not explain how to install Arch Linux in Virtual Box, as this can be considered trivial. The focus is on setting up Arch Linux with the <a href="http://awesome.naquadah.org/">awesome window manager</a>, correct screen resolution and getting access to shared directories in Mac OS.</p>
<p>After installing Arch Linux the first step is to install Xorg and Awesome together with the <code><a href="http://wiki.archlinux.org/index.php/Xorg7#hwd">hwd</a></code> tool which is used for configuration of Xorg.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">pacman <span style="color: #660033;">-Syu</span>
pacman <span style="color: #660033;">-S</span> xorg awesome hwd</pre></div></div>

<p>Then the VirtualBox Guest Additions must be installed in order to be able to set the correct screen resolution for Xorg. In the VirtualBox menu go to <em>Devices</em> &rarr; <em>Install Guest Additions</em></p>
<p>Perform the following commands as root/sudo:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #000000; font-weight: bold;">/</span>media<span style="color: #000000; font-weight: bold;">/</span>cdrom
<span style="color: #c20cb9; font-weight: bold;">bash</span> <span style="color: #000000; font-weight: bold;">/</span>media<span style="color: #000000; font-weight: bold;">/</span>cdrom<span style="color: #000000; font-weight: bold;">/</span>VBoxLinuxAdditions.run</pre></div></div>

<p>Add <code>98vboxadd-xclient</code> to <code>.xinitrc</code> for your user and add modules to <code>rc.conf</code> according to <a href="http://wiki.archlinux.org/index.php/VirtualBox#Installing_Guest_Additions">Arch Linux Wiki VirtualBox Guide</a>. Then reboot the Arch virtual machine.</p>
<p>In order to configure Xorg an <code>xorg.conf</code> file must be created:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">hwd <span style="color: #660033;">-xa</span></pre></div></div>

<p>Edit <code>xorg.conf</code> and set the video driver to <code>vboxvideo</code> and add the resolution 1280&#215;800 to the 16 color depth and remove the other resolutions. Remove all other color depths subsections.</p>
<p>If you want to start Xorg and Awesome and automatically log in at boot, follow the description in the <a href="http://wiki.archlinux.org/index.php/Start_X_at_boot#Starting_X_as_preferred_user_without_logging_in">Arch Wiki &#8211; Start X at boot</a> and add <code>exec awesome</code> to <code>.xinitrc</code>.</p>
<p>File sharing is easy to set up. First set up the desired folder for sharing by going to <em>Devices</em> &rarr; <em>Shared Folders</em> in the VirtualBox menu.</p>
<p>Create the folder where you want to mount the share in your Arch filesystem. This name must not be the same as the share name. Now you can mount the share with the following command (as root or sudo):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-t</span> vboxsf NAME_OF_THE_SHARE <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>YOUR_USER<span style="color: #000000; font-weight: bold;">/</span>MOUNTPOINT</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://grx.no/kb/2008/08/17/notes-on-setting-up-arch-linux-in-virtualbox-with-awesome-wm/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Repairing corrupted FAT32 drive</title>
		<link>http://grx.no/kb/2008/06/28/repairing-corrupted-fat32-drive/</link>
		<comments>http://grx.no/kb/2008/06/28/repairing-corrupted-fat32-drive/#comments</comments>
		<pubDate>Sat, 28 Jun 2008 11:30:08 +0000</pubDate>
		<dc:creator>Håvard Grimelid</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[fat32]]></category>
		<category><![CDATA[fsck]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://grx.no/kb/?p=20</guid>
		<description><![CDATA[By using fsck as described below I managed to restore one of my hard drives. $ fsck.msdos -r -v -V /dev/hda2 According to the man file, the options have the following effects: -r Interactively repair the file system. The user is asked for advice whenever there is more than one approach to fix an inconsistency. [...]]]></description>
			<content:encoded><![CDATA[<p>By using fsck as described below I managed to restore one of my hard drives.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ fsck.msdos <span style="color: #660033;">-r</span> <span style="color: #660033;">-v</span> <span style="color: #660033;">-V</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>hda2</pre></div></div>

<p>According to the man file, the options have the following effects:</p>
<table cellspacing="12">
<tr valign="top">
<td><em>-r</em></td>
<td> Interactively repair the file system. The user is asked for advice whenever there is more than one approach to fix an inconsistency. </td>
</tr>
<tr valign="top">
<td><em>-v</em></td>
<td> Verbose mode. Generates slightly more output.</td>
</tr>
<tr valign ="top">
<td><em>-V</em></td>
<td> Perform a verification pass. The file system check is repeated after the first run. The second pass should never report any fixable errors. It may take considerably longer than the first pass, because the first pass may have generated long list of modifications that have to be scanned for each disk read. </td>
</tr>
</table>
<p>Reference: <a href="http://www.redhat.com/archives/fedora-list/2004-April/msg00865.html">Fedora Mailing List</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://grx.no/kb/2008/06/28/repairing-corrupted-fat32-drive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

