<?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>www.annoying.dk &#187; scripts</title>
	<atom:link href="http://www.annoying.dk/category/scripts/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.annoying.dk</link>
	<description>yet another useless blog</description>
	<lastBuildDate>Wed, 14 Apr 2010 09:00:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Changing Default save as location in Outlook 2007</title>
		<link>http://www.annoying.dk/2010/01/20/changing-default-save-as-location-in-outlook-2007/</link>
		<comments>http://www.annoying.dk/2010/01/20/changing-default-save-as-location-in-outlook-2007/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 13:42:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[angry stuff]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[Citrix]]></category>
		<category><![CDATA[DefaultPath]]></category>
		<category><![CDATA[gpo]]></category>
		<category><![CDATA[Outlook 2007]]></category>
		<category><![CDATA[this operation has been cancelled due to restrictions]]></category>
		<category><![CDATA[Windows server 2008]]></category>
		<category><![CDATA[XenApp]]></category>

		<guid isPermaLink="false">http://www.annoying.dk/?p=77</guid>
		<description><![CDATA[Citrix,DefualtPath,gpo,Outlook 2007,This Operation has been cancelled due to restrictions,windows server 2008,Xenapp]]></description>
			<content:encoded><![CDATA[<p>My setup contains Windows 2008 R2 64bit Domain controllers, Windows 2008 SP2 64bit Citrix XenApp Servers, with Exchange 2007.</p>
<p>I restricted access to to prevent users from browsing though the <strong>c:\</strong> &#8211; which forced me to use the administrative office 2007 gpo templates</p>
<p><span id="more-77"></span></p>
<p>since i needed to change the default &#8220;save as&#8221; location. cause else outlook would try and access <strong>&#8220;<var>drive</var>:\Documents and Settings\<var>username</var>\My Documents&#8221;</strong></p>
<p>which would give it <strong>&#8220;This operation has been cancelled due to restrictions in effect on this computer. Please contact your administrator&#8221;.</strong></p>
<p>(eg when you try and save emails, or attachments)</p>
<p>anyway, for some reason, theres no template for Outlook 2007 (would like to know why&#8230;) So Microsoft instead recommends this <a href="http://support.microsoft.com/kb/823131" target="_blank">article</a></p>
<p>which in short tells you to add a string (REG_SZ) called DefaulthPath containing the new path for outlook to look in default.</p>
<p><strong>(HKEY_CURRENT USER\Software\Microsoft\Office\12.0\Outlook\Options)</strong></p>
<p>now, this you would normally throw in you startup scripts which is assigned to your users (sysvol/domain/scripts) like</p>
<p><strong>REG ADD &#8220;HKCU\Software\Microsoft\Office\12.0\Outlook\Options&#8221; /v DefaultPath /t REG_SZ /F /d \\server.domain.tld\shared</strong></p>
<p>This will run silently every time your user logs on a new citrix session and apply it to Outlook.</p>
<p>Now, i spend quite alot of time on getting this stuff to work, after a couple of hours testing and ensuring that the entry IS added, i gave up and asked Google</p>
<p>who completly ignored me.. Without the /F force parameter i could even see that when streaming Outlook, CMD appeard asking me if i wanted to overwrite the value in registry.</p>
<p>so there was no doubt that it was added.</p>
<p>After almost giving up, (no comments on this one) i came up with the really delayed idea that i should test it as an installed application and not streamed/profiled.</p>
<p>So after installing Office 2007 locally on my XenApp servers, i was surprised to see that it actually worked.  i could now shift between the profiled Outlook 2007 (streamed to server)</p>
<p>and the locally installed Outlook &#8211; never getting the streamed version to work.</p>
<p>So whoever reads this post and knows the explanation &#8211; please feel free to enlightenment me.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.annoying.dk/2010/01/20/changing-default-save-as-location-in-outlook-2007/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>*** buffer overflow detected ***</title>
		<link>http://www.annoying.dk/2008/11/18/buffer-overflow-detected/</link>
		<comments>http://www.annoying.dk/2008/11/18/buffer-overflow-detected/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 10:09:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://www.annoying.dk/?p=45</guid>
		<description><![CDATA[After a system crash, i decided to install the new version of Ubuntu server 8.10, everything went fine with the installation and so on. however, after setting up various programs, i kept getting *** buffer overflow detected *** errors, on different programs, however, only the ones i had compiled myself. it seems like its an [...]]]></description>
			<content:encoded><![CDATA[<p>After a system crash, i decided to install the new version of Ubuntu server 8.10, everything went fine with the installation and so on.</p>
<p><span id="more-45"></span></p>
<p>however, after setting up various programs, i kept getting <strong>*** buffer overflow detected ***</strong> errors,</p>
<p>on different programs, however, only the ones i had compiled myself.</p>
<p>it seems like its an issue with the gcc 4.3 with FORTIFY. and disabling it worked for me.</p>
<p>(remember to <strong>make clean</strong> first)</p>
<blockquote><p>export CFLAGS=-D_FORTIFY_SOURCE=0; ./configure</p></blockquote>
<p>and then do make;make install again.</p>
<p>horay! <img src='http://www.annoying.dk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.annoying.dk/2008/11/18/buffer-overflow-detected/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Extracting e-mail adresses with egrep / regexp</title>
		<link>http://www.annoying.dk/2007/10/12/extracting-e-mail-adresses-with-egrep-regexp/</link>
		<comments>http://www.annoying.dk/2007/10/12/extracting-e-mail-adresses-with-egrep-regexp/#comments</comments>
		<pubDate>Fri, 12 Oct 2007 07:56:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://blog.annoying.dk/?p=6</guid>
		<description><![CDATA[Ever wanted to extract e-mail adresses from eg. log files, or multiple files for later examination? this could be usefull if in a case where you need all valid email adressesï¿½ from a file that might contain invalid/fake adresses. anyway, that was my case, so i thougt i&#8217;d share an easy way that extract email [...]]]></description>
			<content:encoded><![CDATA[<p>Ever wanted to extract e-mail adresses from eg. log files, or multiple files for later examination? this could be usefull if in a case where you need all valid email adressesï¿½ from a file that might contain invalid/fake adresses.</p>
<p>anyway, that was my case, so i thougt i&#8217;d share an easy way that extract email adressesï¿½ that contains upper and lowercase a-z, from 0-9 digit, dot (<code>.</code>), underscore (<code>_</code>) and hyphen (<code>-</code>), and finally, a 2-3 character tld.</p>
<p>it will also sort the output, and then only output multiple entries once.</p>
<blockquote><p>egrep -oi &#8216;\b[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}&#8217; mail.log |sort |uniq &gt; final_result.txt</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.annoying.dk/2007/10/12/extracting-e-mail-adresses-with-egrep-regexp/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
