<?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>he1ix&#039; blog</title>
	<atom:link href="http://www.he1ix.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.he1ix.org</link>
	<description>my 2 cents</description>
	<lastBuildDate>Thu, 16 Feb 2012 15:21:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>VirtualBox as a service on windows</title>
		<link>http://www.he1ix.org/2012/02/virtualbox-as-a-service-on-windows/</link>
		<comments>http://www.he1ix.org/2012/02/virtualbox-as-a-service-on-windows/#comments</comments>
		<pubDate>Thu, 16 Feb 2012 15:21:33 +0000</pubDate>
		<dc:creator>he1ix</dc:creator>
				<category><![CDATA[Thoughts]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[virtual]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.he1ix.org/?p=867</guid>
		<description><![CDATA[	http://vboxvmservice.sourceforge.net/

	DON&#8217;T run the service using the Administrator account!

	Steps required to run it as a &#8220;regular&#8221; user:

	Start &#8220;secpol.msc&#8221; as Administrator
Select the &#8220;Local Policies&#8221; folder
Select the &#8220;User Rights Assignment&#8221; folder
Double click &#8220;Log on as a service&#8221;
Use &#8220;Add User or Group&#8230;&#8221; to add your non privileged user]]></description>
			<content:encoded><![CDATA[	<p>http://vboxvmservice.sourceforge.net/</p>

	<p><strong><span class="caps">DON</span>&#8217;T</strong> run the service using the Administrator account!</p>

	<p>Steps required to run it as a &#8220;regular&#8221; user:</p>

	<p>Start &#8220;secpol.msc&#8221; as Administrator<br />
Select the &#8220;Local Policies&#8221; folder<br />
Select the &#8220;User Rights Assignment&#8221; folder<br />
Double click &#8220;Log on as a service&#8221;<br />
Use &#8220;Add User or Group&#8230;&#8221; to add your non privileged user</p>]]></content:encoded>
			<wfw:commentRss>http://www.he1ix.org/2012/02/virtualbox-as-a-service-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>open ports on windows</title>
		<link>http://www.he1ix.org/2012/02/open-ports-on-windows/</link>
		<comments>http://www.he1ix.org/2012/02/open-ports-on-windows/#comments</comments>
		<pubDate>Mon, 13 Feb 2012 15:34:27 +0000</pubDate>
		<dc:creator>he1ix</dc:creator>
				<category><![CDATA[Thoughts]]></category>
		<category><![CDATA[net]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.he1ix.org/?p=865</guid>
		<description><![CDATA[	http://www.petri.co.il/quickly_find_local_open_ports.htm]]></description>
			<content:encoded><![CDATA[	<p>http://www.petri.co.il/quickly_find_local_open_ports.htm</p>]]></content:encoded>
			<wfw:commentRss>http://www.he1ix.org/2012/02/open-ports-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>redmine: move wiki-pages to a different project</title>
		<link>http://www.he1ix.org/2012/01/redmine-move-wiki-pages-to-a-different-project/</link>
		<comments>http://www.he1ix.org/2012/01/redmine-move-wiki-pages-to-a-different-project/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 11:30:18 +0000</pubDate>
		<dc:creator>he1ix</dc:creator>
				<category><![CDATA[Thoughts]]></category>
		<category><![CDATA[devel]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[redmine]]></category>

		<guid isPermaLink="false">http://www.he1ix.org/?p=859</guid>
		<description><![CDATA[	currently just the commands:


SELECT id,name FROM projects;
SELECT * FROM wikis;
SELECT * FROM wiki_pages limit 10;
SELECT * FROM wiki_pages WHERE wiki_id = '1' AND title = 'Howtos';
SELECT * FROM wiki_pages WHERE parent_id = '34';
SELECT * FROM wiki_pages WHERE parent_id in &#40;SELECT id FROM wiki_pages WHERE parent_id = '34'&#41;;
UPDATE wiki_pages SET wiki_id = '12' WHERE wiki_id = [...]]]></description>
			<content:encoded><![CDATA[	<p>currently just the commands:</p>


<div class="wp_codebox"><table><tr id="p8592"><td class="code" id="p859code2"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> id<span style="color: #66cc66;">,</span>name <span style="color: #993333; font-weight: bold;">FROM</span> projects;
<span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <span style="color: #993333; font-weight: bold;">FROM</span> wikis;
<span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <span style="color: #993333; font-weight: bold;">FROM</span> wiki_pages <span style="color: #993333; font-weight: bold;">limit</span> <span style="color: #cc66cc;">10</span>;
<span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <span style="color: #993333; font-weight: bold;">FROM</span> wiki_pages <span style="color: #993333; font-weight: bold;">WHERE</span> wiki_id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'1'</span> <span style="color: #993333; font-weight: bold;">AND</span> title <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'Howtos'</span>;
<span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <span style="color: #993333; font-weight: bold;">FROM</span> wiki_pages <span style="color: #993333; font-weight: bold;">WHERE</span> parent_id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'34'</span>;
<span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <span style="color: #993333; font-weight: bold;">FROM</span> wiki_pages <span style="color: #993333; font-weight: bold;">WHERE</span> parent_id <span style="color: #993333; font-weight: bold;">in</span> <span style="color: #66cc66;">&#40;</span><span style="color: #993333; font-weight: bold;">SELECT</span> id <span style="color: #993333; font-weight: bold;">FROM</span> wiki_pages <span style="color: #993333; font-weight: bold;">WHERE</span> parent_id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'34'</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #993333; font-weight: bold;">UPDATE</span> wiki_pages <span style="color: #993333; font-weight: bold;">SET</span> wiki_id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'12'</span> <span style="color: #993333; font-weight: bold;">WHERE</span> wiki_id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'1'</span> <span style="color: #993333; font-weight: bold;">AND</span> title <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'Howtos'</span>;
<span style="color: #993333; font-weight: bold;">UPDATE</span> wiki_pages <span style="color: #993333; font-weight: bold;">SET</span> wiki_id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'12'</span> <span style="color: #993333; font-weight: bold;">WHERE</span> parent_id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'34'</span>;
<span style="color: #808080; font-style: italic;">-- UPDATE wiki_pages SET wiki_id = '12' WHERE parent_id in (SELECT id FROM wiki_pages WHERE parent_id = '34');</span>
<span style="color: #993333; font-weight: bold;">UPDATE</span> wiki_pages <span style="color: #993333; font-weight: bold;">SET</span> wiki_id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'12'</span> <span style="color: #993333; font-weight: bold;">WHERE</span> parent_id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'35'</span>;
<span style="color: #993333; font-weight: bold;">UPDATE</span> wiki_pages <span style="color: #993333; font-weight: bold;">SET</span> wiki_id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'12'</span> <span style="color: #993333; font-weight: bold;">WHERE</span> parent_id <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'87'</span>;</pre></td></tr></table></div>


]]></content:encoded>
			<wfw:commentRss>http://www.he1ix.org/2012/01/redmine-move-wiki-pages-to-a-different-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS / jscript annoyances on sueddeutsche.de</title>
		<link>http://www.he1ix.org/2012/01/css-jscript-annoyances-on-sueddeutsche-de/</link>
		<comments>http://www.he1ix.org/2012/01/css-jscript-annoyances-on-sueddeutsche-de/#comments</comments>
		<pubDate>Sat, 21 Jan 2012 14:36:29 +0000</pubDate>
		<dc:creator>he1ix</dc:creator>
				<category><![CDATA[Thoughts]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[greasemonkey]]></category>

		<guid isPermaLink="false">http://www.he1ix.org/?p=853</guid>
		<description><![CDATA[	if you happen to use the NoScript addon for Firefox or sth. similar, sueddeutsche.de has a great new feature since the last design update: they pester you with an annoying panel covering (and hiding!) the rear part of the main headline&#8230;

	to fight this obtrusive usage of jscript (the panel gets hidden if you enable jscript), [...]]]></description>
			<content:encoded><![CDATA[	<p>if you happen to use the NoScript addon for Firefox or sth. similar, sueddeutsche.de has a great new feature since the last design update: they pester you with an annoying panel covering (and hiding!) the rear part of the main headline&#8230;</p>

	<p>to fight this obtrusive usage of jscript (the panel gets hidden if you enable jscript), use Firefox&#8217; ability to include custom <span class="caps">CSS</span>:</p>


<div class="wp_codebox"><table><tr id="p8534"><td class="code" id="p853code4"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'#weiterepanel { display: none; }'</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> ~<span style="color: #000000; font-weight: bold;">/</span>.mozilla<span style="color: #000000; font-weight: bold;">/</span>firefox<span style="color: #000000; font-weight: bold;">/*</span>.default<span style="color: #000000; font-weight: bold;">/</span>chrome<span style="color: #000000; font-weight: bold;">/</span>userContent.css</pre></td></tr></table></div>


	<p>finally, restart Firefox.<br />
(yes, restart. see <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=208641">Bug 208641</a> for details.)</p>]]></content:encoded>
			<wfw:commentRss>http://www.he1ix.org/2012/01/css-jscript-annoyances-on-sueddeutsche-de/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DreamBox (MPEG-TS) to DVD using Linux</title>
		<link>http://www.he1ix.org/2012/01/dreambox-mpeg-ts-to-dvd-using-linux/</link>
		<comments>http://www.he1ix.org/2012/01/dreambox-mpeg-ts-to-dvd-using-linux/#comments</comments>
		<pubDate>Tue, 10 Jan 2012 11:00:47 +0000</pubDate>
		<dc:creator>he1ix</dc:creator>
				<category><![CDATA[Thoughts]]></category>
		<category><![CDATA[dreambox]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[media]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.he1ix.org/?p=849</guid>
		<description><![CDATA[	my way to conveniently convert an MPEG &#8220;Transport Stream&#8221; (TS) to a DVD:


	open the TS-file with avidemux
	choose &#8220;yes&#8221; to index the MPEG
	select &#8220;Auto&#8221; -&#62; &#8220;Optical Disc&#8221; -&#62; &#8220;DVD&#8221;
	click &#8220;save&#8221; to demux the MPEG-TS into an MPEG-PS



	open &#8220;DVDStyler&#8221;
	select &#8220;MP2&#8221; as audio format in the project wizard
	add the new MPEG file
	hit &#8220;burn&#8221;


	done. demuxing and creating the iso [...]]]></description>
			<content:encoded><![CDATA[	<p>my way to conveniently convert an <span class="caps">MPEG</span> &#8220;Transport Stream&#8221; (TS) to a <span class="caps">DVD</span>:</p>

<ol>
	<li>open the TS-file with avidemux</li>
	<li>choose &#8220;yes&#8221; to index the <span class="caps">MPEG</span></li>
	<li>select &#8220;Auto&#8221; -&gt; &#8220;Optical Disc&#8221; -&gt; &#8220;<span class="caps">DVD</span>&#8221;</li>
	<li>click &#8220;save&#8221; to demux the <span class="caps">MPEG</span>-TS into an <span class="caps">MPEG</span>-PS</li>
</ol>

<ol>
	<li>open &#8220;<span class="caps">DVDS</span>tyler&#8221;</li>
	<li>select &#8220;MP2&#8221; as audio format in the project wizard</li>
	<li>add the new <span class="caps">MPEG</span> file</li>
	<li>hit &#8220;burn&#8221;</li>
</ol>

	<p>done. demuxing and creating the iso takes usually less than 15 minutes.</p>]]></content:encoded>
			<wfw:commentRss>http://www.he1ix.org/2012/01/dreambox-mpeg-ts-to-dvd-using-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>dpkg vs. rpm: list of installed packages</title>
		<link>http://www.he1ix.org/2011/11/dpkg-vs-rpm-list-of-installed-packages/</link>
		<comments>http://www.he1ix.org/2011/11/dpkg-vs-rpm-list-of-installed-packages/#comments</comments>
		<pubDate>Mon, 28 Nov 2011 13:22:47 +0000</pubDate>
		<dc:creator>he1ix</dc:creator>
				<category><![CDATA[Thoughts]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[redhat]]></category>

		<guid isPermaLink="false">http://www.he1ix.org/?p=840</guid>
		<description><![CDATA[	Linux: Get List of Installed Software for Reinstallation / Restore All the Software Programs]]></description>
			<content:encoded><![CDATA[	<p><a href="http://www.cyberciti.biz/tips/linux-get-list-installed-software-reinstallation-restore.html">Linux: Get List of Installed Software for Reinstallation / Restore All the Software Programs</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.he1ix.org/2011/11/dpkg-vs-rpm-list-of-installed-packages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MSSQL transaction log problems</title>
		<link>http://www.he1ix.org/2011/10/mssql-transaction-log-problems/</link>
		<comments>http://www.he1ix.org/2011/10/mssql-transaction-log-problems/#comments</comments>
		<pubDate>Fri, 07 Oct 2011 13:31:37 +0000</pubDate>
		<dc:creator>he1ix</dc:creator>
				<category><![CDATA[Thoughts]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[mssql]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.he1ix.org/?p=837</guid>
		<description><![CDATA[	so the transaction log of this stupid piece of software has completely filled up once again&#8230; that&#8217;s what worked for me last time:

	1) DB -&#62; Tasks -&#62; BackUp

	Backup Type: Transactional
	Backup To: Disk
	-&#62; OK


	2) DB -&#62; Tasks -&#62; Shrink -&#62; Files

	File Type: Data
	press the &#8220;Script&#8221; button
	press &#8220;OK&#8221;
	hit &#8220;F5&#8221;


]]></description>
			<content:encoded><![CDATA[	<p>so the transaction log of this stupid piece of software has completely filled up once again&#8230; that&#8217;s what worked for me last time:</p>

	<p>1) DB -&gt; Tasks -&gt; BackUp<br />
<ul>
	<li>Backup Type: Transactional</li>
	<li>Backup To: Disk</li>
	<li>-&gt; OK</li><br />
</ul></p>

	<p>2) DB -&gt; Tasks -&gt; Shrink -&gt; Files<br />
<ul>
	<li>File Type: Data</li>
	<li>press the &#8220;Script&#8221; button</li>
	<li>press &#8220;OK&#8221;</li>
	<li>hit &#8220;F5&#8221;</li><br />
</ul></p>

]]></content:encoded>
			<wfw:commentRss>http://www.he1ix.org/2011/10/mssql-transaction-log-problems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>git cheatsheet</title>
		<link>http://www.he1ix.org/2011/08/git-cheatsheet/</link>
		<comments>http://www.he1ix.org/2011/08/git-cheatsheet/#comments</comments>
		<pubDate>Wed, 24 Aug 2011 14:30:47 +0000</pubDate>
		<dc:creator>he1ix</dc:creator>
				<category><![CDATA[Thoughts]]></category>
		<category><![CDATA[devel]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://www.he1ix.org/?p=835</guid>
		<description><![CDATA[	browsing the git history in a compact yet still highly condensed view containing all important information:


git log --graph --source --oneline --branches --tags


]]></description>
			<content:encoded><![CDATA[	<p>browsing the git history in a compact yet still highly condensed view containing all important information:</p>


<div class="wp_codebox"><table><tr id="p8356"><td class="code" id="p835code6"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">git</span> log <span style="color: #660033;">--graph</span> <span style="color: #660033;">--source</span> <span style="color: #660033;">--oneline</span> <span style="color: #660033;">--branches</span> <span style="color: #660033;">--tags</span></pre></td></tr></table></div>


]]></content:encoded>
			<wfw:commentRss>http://www.he1ix.org/2011/08/git-cheatsheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>duplicating a postgresql DB</title>
		<link>http://www.he1ix.org/2011/08/duplicating-a-postgresql-db/</link>
		<comments>http://www.he1ix.org/2011/08/duplicating-a-postgresql-db/#comments</comments>
		<pubDate>Tue, 23 Aug 2011 14:13:32 +0000</pubDate>
		<dc:creator>he1ix</dc:creator>
				<category><![CDATA[Thoughts]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[caldav]]></category>
		<category><![CDATA[postgresql]]></category>

		<guid isPermaLink="false">http://www.he1ix.org/?p=813</guid>
		<description><![CDATA[	e.g. for testing purposes before touching valuable data&#8230;

	
set the DB names


ORIG_DB=&#34;orig_db_name&#34;
NEW_DB=&#34;new_db_name&#34;


	
create a dump (make sure to use a user having access rights to the db)


TSTAMP=$&#40;date +%F_%H-%M&#41;
FILE_ORIG=&#34;${ORIG_DB}_${TSTAMP}.sql&#34;
pg_dump -f ${FILE_ORIG} --blobs --create ${ORIG_DB}


	
 adjust the DB name in the dump and check everything went ok (the diff should be just in CREATE, ALTER and \connect statements)


FILE_NEW=&#34;${NEW_DB}_based-on_${ORIG_DB}_${TSTAMP}.sql&#34;
sed &#34;s/${ORIG_DB}/${NEW_DB}/g&#34; [...]]]></description>
			<content:encoded><![CDATA[	<p>e.g. for testing purposes before touching valuable data&#8230;</p>

	<p><ol><br />
<li>set the DB names</p>


<div class="wp_codebox"><table><tr id="p81312"><td class="code" id="p813code12"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">ORIG_DB</span>=<span style="color: #ff0000;">&quot;orig_db_name&quot;</span>
<span style="color: #007800;">NEW_DB</span>=<span style="color: #ff0000;">&quot;new_db_name&quot;</span></pre></td></tr></table></div>


	<p></li><br />
<li>create a dump (make sure to use a user having access rights to the db)</p>


<div class="wp_codebox"><table><tr id="p81313"><td class="code" id="p813code13"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">TSTAMP</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">date</span> +<span style="color: #000000; font-weight: bold;">%</span>F_<span style="color: #000000; font-weight: bold;">%</span>H-<span style="color: #000000; font-weight: bold;">%</span>M<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #007800;">FILE_ORIG</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">${ORIG_DB}</span>_<span style="color: #007800;">${TSTAMP}</span>.sql&quot;</span>
pg_dump <span style="color: #660033;">-f</span> <span style="color: #800000;">${FILE_ORIG}</span> <span style="color: #660033;">--blobs</span> <span style="color: #660033;">--create</span> <span style="color: #800000;">${ORIG_DB}</span></pre></td></tr></table></div>


	<p></li><br />
<li> adjust the DB name in the dump and check everything went ok (the diff should be just in <tt><span class="caps">CREATE</span>, <span class="caps">ALTER</span></tt> and <tt>\connect</tt> statements)</p>


<div class="wp_codebox"><table><tr id="p81314"><td class="code" id="p813code14"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">FILE_NEW</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">${NEW_DB}</span>_based-on_<span style="color: #007800;">${ORIG_DB}</span>_<span style="color: #007800;">${TSTAMP}</span>.sql&quot;</span>
<span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">&quot;s/<span style="color: #007800;">${ORIG_DB}</span>/<span style="color: #007800;">${NEW_DB}</span>/g&quot;</span> <span style="color: #800000;">${FILE_ORIG}</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #800000;">${FILE_NEW}</span>
vimdiff <span style="color: #800000;">${FILE_ORIG}</span> <span style="color: #800000;">${FILE_NEW}</span></pre></td></tr></table></div>


	<p></li><br />
<li>adjust permissions for the new db (add the new DB name to the desired user(s)) and reload the postgres config</p>


<div class="wp_codebox"><table><tr id="p81315"><td class="code" id="p813code15"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">vim</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>postgresql<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">8.4</span><span style="color: #000000; font-weight: bold;">/</span>main<span style="color: #000000; font-weight: bold;">/</span>pg_hba.conf
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>postgresql-<span style="color: #000000;">8.4</span> reload</pre></td></tr></table></div>


	<p></li><br />
<li>load the new DB&#8217;s <span class="caps">SQL</span>-code into postgres</p>


<div class="wp_codebox"><table><tr id="p81316"><td class="code" id="p813code16"><pre class="bash" style="font-family:monospace;">psql <span style="color: #660033;">-f</span> <span style="color: #800000;">${FILE_NEW}</span></pre></td></tr></table></div>


	<p></li><br />
<li>to set identical permissions on the new DB, create a <strong>full</strong> dump using <tt>pg_dumpall</tt>, check the <tt><span class="caps">GRANT</span></tt> commands in the dump and apply them to the new DB as well&#8230;<br />
</li><br />
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.he1ix.org/2011/08/duplicating-a-postgresql-db/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nautic maps / navigation</title>
		<link>http://www.he1ix.org/2011/08/nautic-maps-navigation/</link>
		<comments>http://www.he1ix.org/2011/08/nautic-maps-navigation/#comments</comments>
		<pubDate>Mon, 01 Aug 2011 16:04:58 +0000</pubDate>
		<dc:creator>he1ix</dc:creator>
				<category><![CDATA[Thoughts]]></category>
		<category><![CDATA[maps]]></category>
		<category><![CDATA[navigation]]></category>
		<category><![CDATA[OpenStreetMap]]></category>
		<category><![CDATA[sailing]]></category>

		<guid isPermaLink="false">http://www.he1ix.org/?p=811</guid>
		<description><![CDATA[	wow: http://bodensee-navigationskarte.scbh.at/]]></description>
			<content:encoded><![CDATA[	<p>wow: http://bodensee-navigationskarte.scbh.at/</p>]]></content:encoded>
			<wfw:commentRss>http://www.he1ix.org/2011/08/nautic-maps-navigation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

