<?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>Jay R. Wren - lazy dawg evarlast &#187; Script</title>
	<atom:link href="http://jrwren.wrenfam.com/blog/category/script/feed/" rel="self" type="application/rss+xml" />
	<link>http://jrwren.wrenfam.com/blog</link>
	<description>babblings of a computer loving fool</description>
	<lastBuildDate>Fri, 16 Jul 2010 02:34:35 +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>Outlook 2007 autodiscover for the rest of us</title>
		<link>http://jrwren.wrenfam.com/blog/2009/06/07/outlook-2007-autodiscover-for-the-rest-of-us/</link>
		<comments>http://jrwren.wrenfam.com/blog/2009/06/07/outlook-2007-autodiscover-for-the-rest-of-us/#comments</comments>
		<pubDate>Sun, 07 Jun 2009 22:53:37 +0000</pubDate>
		<dc:creator>jrwren</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://jrwren.wrenfam.com/blog/2009/06/07/outlook-2007-autodiscover-for-the-rest-of-us/</guid>
		<description><![CDATA[Outlook 2007 has a new feature which is provided to it by default only by Exchange 2007.
I recently thought of giving Outlook a try instead of Windows Live Mail. Of course, the geek in me wanted my Outlook 2007 first run experience to be awesome. I wanted autodiscover to work for me.
It turns out if [...]]]></description>
			<content:encoded><![CDATA[<p>Outlook 2007 has a new feature which is provided to it by default only by Exchange 2007.</p>
<p>I recently thought of giving Outlook a try instead of Windows Live Mail. Of course, the geek in me wanted my Outlook 2007 first run experience to be awesome. I wanted autodiscover to work for me.</p>
<p>It turns out if you read <a href="http://support.microsoft.com/kb/940881">a KB article</a> and <a href="http://technet.microsoft.com/en-us/library/cc511507.aspx">a technet article</a> you can figure out that for 99% of POP/IMAP/SMTP installations, placing an autodiscover.xml file at a url of <a href="http://myemail.com/autodiscover/autodiscover.xml">http://myemail.com/autodiscover/autodiscover.xml</a> or at <a href="http://autodiscover.myemail.com/autodiscover/autodiscover.xml">http://autodiscover.myemail.com/autodiscover/autodiscover.xml</a> is all that is needed. The format of the xml is very simple.</p>
<p>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;   <br />&lt;Autodiscover xmlns=&quot;<a href="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006&quot;">http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006&quot;</a>&gt;    <br />&#160; &lt;Response xmlns=&quot;<a href="http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a&quot;">http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a&quot;</a>&gt;    <br />&#160;&#160;&#160; &lt;Account&gt;    <br />&#160;&#160;&#160;&#160;&#160; &lt;AccountType&gt;email&lt;/AccountType&gt;    <br />&#160;&#160;&#160;&#160;&#160; &lt;Action&gt;settings&lt;/Action&gt;    <br />&#160;&#160;&#160;&#160;&#160; &lt;Protocol&gt;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;Type&gt;IMAP&lt;/Type&gt;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;Server&gt;mail.xmtp.net&lt;/Server&gt;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;Port&gt;993&lt;/Port&gt;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;DomainRequired&gt;off&lt;/DomainRequired&gt;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;SPA&gt;off&lt;/SPA&gt;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;SSL&gt;on&lt;/SSL&gt;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;AuthRequired&gt;on&lt;/AuthRequired&gt;    <br />&#160;&#160;&#160;&#160;&#160; &lt;/Protocol&gt;    <br />&#160;&#160;&#160;&#160;&#160; &lt;Protocol&gt;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;Type&gt;SMTP&lt;/Type&gt;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;Server&gt;mail.xmtp.net&lt;/Server&gt;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;Port&gt;25&lt;/Port&gt;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;DomainRequired&gt;off&lt;/DomainRequired&gt;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;SPA&gt;off&lt;/SPA&gt;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;SSL&gt;on&lt;/SSL&gt;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;AuthRequired&gt;on&lt;/AuthRequired&gt;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;UsePOPAuth&gt;on&lt;/UsePOPAuth&gt;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;SMTPLast&gt;on&lt;/SMTPLast&gt;    <br />&#160;&#160;&#160;&#160;&#160; &lt;/Protocol&gt;    <br />&#160;&#160;&#160;&#160;&#160; &lt;Protocol&gt;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;Type&gt;POP3&lt;/Type&gt;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;Server&gt;mail.xmtp.net&lt;/Server&gt;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;Port&gt;995&lt;/Port&gt;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;DomainRequired&gt;off&lt;/DomainRequired&gt;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;SPA&gt;off&lt;/SPA&gt;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;SSL&gt;on&lt;/SSL&gt;    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;AuthRequired&gt;on&lt;/AuthRequired&gt;    <br />&#160;&#160;&#160;&#160;&#160; &lt;/Protocol&gt;    <br />&#160;&#160;&#160; &lt;/Account&gt;    <br />&#160; &lt;/Response&gt;    <br />&lt;/Autodiscover&gt;</p>
<p>&#160;</p>
<p>Do that, and the next time an Outlook2007 client tries to configure itself, it will.</p>
]]></content:encoded>
			<wfw:commentRss>http://jrwren.wrenfam.com/blog/2009/06/07/outlook-2007-autodiscover-for-the-rest-of-us/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using the MVPS.ORG Hosts file with ISC Bind</title>
		<link>http://jrwren.wrenfam.com/blog/2009/05/25/using-the-mvpsorg-hosts-file-with-isc-bind/</link>
		<comments>http://jrwren.wrenfam.com/blog/2009/05/25/using-the-mvpsorg-hosts-file-with-isc-bind/#comments</comments>
		<pubDate>Tue, 26 May 2009 01:23:30 +0000</pubDate>
		<dc:creator>jrwren</dc:creator>
				<category><![CDATA[Boo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mono]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Script]]></category>

		<guid isPermaLink="false">http://jrwren.wrenfam.com/blog/2009/05/25/using-the-mvpsorg-hosts-file-with-isc-bind/</guid>
		<description><![CDATA[I run my own DNS in our home. You may think this is crazy, but test after test has shown that nearly all ISPs provide substandard DNS to their customers. Even the finest DNS servers are only responsive 95% of the time. With the number of times you use DNS, you could be losing seconds [...]]]></description>
			<content:encoded><![CDATA[<p>I run my own DNS in our home. You may think this is crazy, but test after test has shown that nearly all ISPs provide substandard DNS to their customers. Even the finest DNS servers are only responsive 95% of the time. With the number of times you use DNS, you could be losing seconds or minutes per day while you wait for timeouts and rerequests.</p>
<p>Mvps.org maintains a list of “known bad domains”. While it is certainly not a replacement for other security measures, its another line of defense. It is another tool in the bag. For more reasons, read their site.</p>
<p><a title="http://www.mvps.org/winhelp2002/hosts.htm" href="http://www.mvps.org/winhelp2002/hosts.htm">http://www.mvps.org/winhelp2002/hosts.htm</a></p>
<p>I don’t want to maintain host files on all of my home systems and all of the VMs too, I’d like to just tell my DNS server about these hosts and have it do the right thing.</p>
<p>By combining the downloaded hosts file and using this little boo script to map it into bind config, I have done just that. I use include files to bind. I’ve added a line like this to my /etc/bind/named.conf.local on my ubuntu server</p>
<p>include &quot;/etc/bind/named.conf.mvps&quot;;</p>
<p>Then, I’ve added the output of this boo script to the /etc/bind/named.conf.mvps file. Reload bind and everything is done.</p>
<p>import System.IO   <br />for line as string in [line for line in&#160; @/\n|\r\n/.Split( File.OpenText(&quot;HOSTS&quot;).ReadToEnd() ) if (not line.StartsWith(&quot;#&quot;) and line!=string.Empty and not line.Contains(&quot;localhost&quot;))]:    <br />&#160;&#160;&#160; fields = @/ +/.Split(line)    <br />&#160;&#160;&#160; if (fields.Length &gt; 1):    <br />&#160;&#160;&#160;&#160;&#160; host = fields[1]    <br />&#160;&#160;&#160;&#160;&#160; print &quot;zone \&quot;${host}\&quot; { type master; file \&quot;/etc/bind/db.local\&quot;; };&quot;</p>
<p>Before hand, host resolution looked like this:</p>
<p>$ host ad.a8.net   <br />ad.a8.net has address 203.190.224.60</p>
<p>After reloading bind, it looks like this:</p>
<p> $ host ad.a8.net   <br />ad.a8.net has address 127.0.0.1    <br />ad.a8.net has IPv6 address ::1</p>
]]></content:encoded>
			<wfw:commentRss>http://jrwren.wrenfam.com/blog/2009/05/25/using-the-mvpsorg-hosts-file-with-isc-bind/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>RegexReplace in SQL Server</title>
		<link>http://jrwren.wrenfam.com/blog/2009/04/23/regexreplace-in-sql-server/</link>
		<comments>http://jrwren.wrenfam.com/blog/2009/04/23/regexreplace-in-sql-server/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 20:55:07 +0000</pubDate>
		<dc:creator>jrwren</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[SQLServer]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://jrwren.wrenfam.com/blog/2009/04/23/regexreplace-in-sql-server/</guid>
		<description><![CDATA[My last post was about SQL Server. Even 10+ years later, I’m continually amazed by features which are daily use features in MySQL and Postgresql which are missing from MS SQL Server.
Regular expression matching and replacing is a severely lacking feature.
Sql Server 2005 introduced a means to write user defined functions in .NET code, so [...]]]></description>
			<content:encoded><![CDATA[<p>My last post was about SQL Server. Even 10+ years later, I’m continually amazed by features which are daily use features in MySQL and Postgresql which are missing from MS SQL Server.</p>
<p>Regular expression matching and replacing is a severely lacking feature.</p>
<p>Sql Server 2005 introduced a means to write user defined functions in .NET code, so this method is uploaded to a sql server and exposed as a function.</p>
<p>[Microsoft.SqlServer.Server.SqlFunction]   <br />public static SqlString RegexReplace(SqlString input, SqlString pattern, SqlString replacement)    <br />{    <br />&#160;&#160;&#160; var result = System.Text.RegularExpressions.Regex.Replace(input.Value, pattern.Value, replacement.Value);    <br />&#160;&#160;&#160; return new SqlString(result);    <br />}</p>
<p>&#160;</p>
<p>Now you can use it in select statements.</p>
<p>SELECT&#160;&#160;&#160;&#160;&#160;&#160;&#160; Name, dbo.RegexReplace(Name, N&#8217;(?:\d+-)?\d+PPM&#8217;, N&#8221;) AS e   <br />FROM&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Table2</p>
<p>&#160;</p>
<p>Or use it to update tables</p>
<p>update table2 set name=dbo.RegexReplace(Name, N&#8217;(?:\d+-)?\d+PPM&#8217;, N&#8221;)</p>
<p>&#160;</p>
<p>I have absolutely no idea how any database developer could live without this kind of functionality.</p>
]]></content:encoded>
			<wfw:commentRss>http://jrwren.wrenfam.com/blog/2009/04/23/regexreplace-in-sql-server/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SQL Server Command Line Administration</title>
		<link>http://jrwren.wrenfam.com/blog/2009/04/23/sql-server-command-line-administration/</link>
		<comments>http://jrwren.wrenfam.com/blog/2009/04/23/sql-server-command-line-administration/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 20:43:08 +0000</pubDate>
		<dc:creator>jrwren</dc:creator>
				<category><![CDATA[SQLServer]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://jrwren.wrenfam.com/blog/2009/04/23/sql-server-command-line-administration/</guid>
		<description><![CDATA[I don’t have SQL Management Studio installed. Perhaps I should install it, it would make my life easier.
Here are the commands I used to create a new database and add myself to it as administrator. I want to own the database too. I don’t want to have to be sa (root for you mysql folk) [...]]]></description>
			<content:encoded><![CDATA[<p>I don’t have SQL Management Studio installed. Perhaps I should install it, it would make my life easier.</p>
<p>Here are the commands I used to create a new database and add myself to it as administrator. I want to own the database too. I don’t want to have to be sa (root for you mysql folk) just to be able to create tables. I want to delegate the ownership of this database instance (not the whole sql server) to a non-admin user. This is just for me, for dev on my laptop.</p>
<blockquote><p>C:\&gt;osql -E -S .\SQLEXPRESS -V 2 -Q &quot;create database test2&quot;      <br />C:\&gt;osql -E -S .\SQLEXPRESS -V 2 -Q &quot;use test2;exec sp_changedbowner [theknife\jrwren]&quot;      <br />C:\&gt;osql -E -S .\SQLEXPRESS -V 2 -Q &quot;exec sp_configure &#8216;clr enabled&#8217;, 1&quot;      <br />Configuration option &#8216;clr enabled&#8217; changed from 0 to 1. Run the RECONFIGURE      <br />statement to install.       <br />C:\&gt;osql -E -S .\SQLEXPRESS -V 2 -Q &quot;reconfigure&quot;</p>
</blockquote>
<p>Finding this set of commands was the must frustrating experience that I have had in a VERY long time. It made me long for Postgresql or MySQL.</p>
]]></content:encoded>
			<wfw:commentRss>http://jrwren.wrenfam.com/blog/2009/04/23/sql-server-command-line-administration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mono trunk on Ubuntu Jaunty</title>
		<link>http://jrwren.wrenfam.com/blog/2009/04/17/mono-trunk-on-ubuntu-jaunty/</link>
		<comments>http://jrwren.wrenfam.com/blog/2009/04/17/mono-trunk-on-ubuntu-jaunty/#comments</comments>
		<pubDate>Fri, 17 Apr 2009 14:58:01 +0000</pubDate>
		<dc:creator>jrwren</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mono]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://jrwren.wrenfam.com/blog/2009/04/17/mono-trunk-on-ubuntu-jaunty/</guid>
		<description><![CDATA[With the release of Ubuntu 9.04 aka Jaunty later this month, I thought I’d share how to get a current version of Mono on the latest Ubuntu release. 
For a number of reasons, Ubuntu always seems to be just a little behind current with its Mono packages. The largest reason IMO is the difficulty in [...]]]></description>
			<content:encoded><![CDATA[<p>With the release of Ubuntu 9.04 aka Jaunty later this month, I thought I’d share how to get a current version of Mono on the latest Ubuntu release. </p>
<p>For a number of reasons, Ubuntu always seems to be just a little behind current with its Mono packages. The largest reason IMO is the difficulty in properly packaging Mono for Debian/Ubuntu. I’ve tried and it is not easy.</p>
<ol>
<li>Make our install a tiny developer environment.      <br />sudo apt-get install build-essential subversion autoconf libtool bison gettext pkg-config libglib2.0-dev </li>
<li>Install the old Mono 2.0 C# compiler from jaunty so that we can bootstrap the trunk compiler.      <br />sudo apt-get install mono-mcs       <br />ln –s /usr/bin/mcs1 /usr/bin/mcs       <br />This installs enough mono to let the C# compiler run. We will remove this and all its dependencies later. </li>
<li>Fetch the source from SVN. I use a mono-dev-update script to checkout the first time and keep me updated. The script pulls and installs mono, mcs, xsp to /opt/mono on a default ubuntu server install once step 1 above has been performed. To build more parts of mono such as GTK# and MonoDevelop you will need more gtk+ library dependencies.      <br />sudo mkdir –p /opt/mono/src       <br />sudo chown $USER /opt/mono /opt/mono/src       <br />./mono-dev-update </li>
<li>Remove the bootstrap mcs     <br />sudo apt-get remove binfmt-support cli-common libmono-corlib1.0-cil libmono-corlib2.0-cil libmono-i18n1.0-cil libmono-i18n2.0-cil libmono-security2.0-cil libmono-system1.0-cil libmono-system2.0-cil libmono0 mono-2.0-gac mono-2.0-runtime mono-common mono-gac mono-jit mono-mcs mono-runtime</li>
</ol>
<p>The real work is done by the mono-dev-update script. Its a mess of bash script which has served me well for a couple of years now.</p>
<p>I’ll paste the current version of it here, but I’ll also try to keep it up to date for download <a href="http://jrwren.wrenfam.com/scripts/mono-dev-update">here</a>.</p>
<pre>#!/bin/bash
#mono-dev-update
#Jay R. Wren &lt;jrwren@xmtp.net&gt;
#usage:
#   -s      skip svn operations. don't try to pull updates.
#   -f      force autogen.sh or configure to run.
#   -l n    set build level to value of 'n'. This controls optional package
#           builds. Not used much
#   -n      no auto retry. if make fails, do not try to ./configure and
#           make again.

MONO_PREFIX=/opt/mono
#GNOME_PREFIX=/opt/gnome
GNOME_PREFIX=/usr
export LD_LIBRARY_PATH=$MONO_PREFIX/lib:$LD_LIBRARY_PATH
export C_INCLUDE_PATH=$MONO_PREFIX/include:$GNOME_PREFIX/include
export ACLOCAL_PATH=$MONO_PREFIX/share/aclocal
export PKG_CONFIG_PATH=$MONO_PREFIX/lib/pkgconfig:$GNOME_PREFIX/lib/pkgconfig
PATH=$MONO_PREFIX/bin:$PATH
export MANPATH=$MANPATH:$MONO_PREFIX/share/man
if [[ ! -d $MONO_PREFIX/src ]];then mkdir $MONO_PREFIX/src; fi
pushd $MONO_PREFIX/src

SVNDIRS=&quot;mcs mono xsp monodevelop gtk-sharp gtkmozembed-sharp type-reflector debugger banshee-sample-plugin olive mono-tools&quot;
CVSDIRS=&quot;banshee&quot;
MAKEDIRS=&quot;mono xsp debugger mono-tools monodevelop gtkmozembed-sharp &quot;
BANSCHEEPLUGINS=&quot;banshee-sample-plugin&quot; 

level=0
skipsvn=0

optCount=0;
while getopts <img src='http://jrwren.wrenfam.com/blog/wp-includes/images/smilies/icon_mad.gif' alt=':x' class='wp-smiley' /> vfsnd:t:cl:m: OPTS ;do
	if [[ $OPTS == &quot;x&quot; ]]; then outputStyle=xml ; optCount=$((optCount+1)) ; fi
	if [[ $OPTS == &quot;v&quot; ]]; then action=view ; optCount=$((optCount+1)) ; fi
	if [[ $OPTS == &quot;f&quot; ]]; then forceAGen=&quot;true&quot; ; optCount=$((optCount+1)) ; fi
	if [[ $OPTS == &quot;s&quot; ]]; then skipsvn=1 ; optCount=$((optCount+1)) ; fi
	if [[ $OPTS == &quot;n&quot; ]]; then noautoretry=&quot;true&quot; ; optCount=$((optCount+1)) ; fi
	if [[ $OPTS == &quot;d&quot; ]]; then DEBUG=&quot;$OPTARG&quot; ; optCount=$((optCount+2)) ; fi
	if [[ $OPTS == &quot;t&quot; ]]; then transform=&quot;$OPTARG&quot; ; optCount=$((optCount+2)) ; fi
	if [[ $OPTS == &quot;c&quot; ]]; then for i in $MAKEDIRS;do pushd $i ; make clean ; popd ; done ;exit ; optCount=$((optCount+1)) ; fi
	if [[ $OPTS == &quot;l&quot; ]]; then level=&quot;$OPTARG&quot; ; optCount=$((optCount+2)) ; fi
	if [[ $OPTS == &quot;m&quot; ]]; then MAKEDIRS=&quot;$OPTARG&quot; ; optCount=$((optCount+2));fi
done
if [[ $optCount != $((OPTIND-1)) ]] ; then echo &quot;optcount($optCount) not equal to OPTIND($OPTIND)&quot;;fi

echo &quot;using makedirs $MAKEDIRS&quot;

echo &quot;using prefix $MONO_PREFIX&quot;

if [[ 1 &gt; $skipsvn ]]; then
for i in $SVNDIRS
do
	echo -e &quot;\e[1;31m pushd $i \e[m&quot;
	if [[ -d $i ]];then
		pushd $i
        if [[ ! -d .svn ]];then pushd .. ; svn co http://anonsvn.mono-project.com/source/trunk/$i ;popd; fi
		echo -e &quot;\e[1;31m svn info&quot;
		svn info
		echo 'svn log -r `svn info|grep Revision|cut -f2 -d' '`:HEAD'
		echo -e &quot;\e[m&quot;
		svn log -r `svn info|grep Revision|cut -f2 -d' '`:HEAD
		echo svn up
		nice -n 20 svn up
		if [ $? != 0 ]; then echo &quot;ERROR: $?&quot; ;popd ; break; fi
		pwd
		popd
	fi
done
else
	echo &quot;-s detected, skipping svn update&quot;
fi 

#mono, xsp, MD, GTK# etc
function autogenAndMake () {
	echo &quot;running for $*&quot;
	for i in $*
	do
		if [[ -d $i ]]; then
			echo -e &quot;\e[1;31m pushd $i \e[m&quot;
			pushd $i
			if [[ -f &quot;autogen.sh&quot; ]];then
				PROG=./autogen.sh
			else
				PROG=./configure
			fi
			if [[ &quot;true&quot; != $forceAGen ]]; then
				nice -n 20 make &amp;&amp; nice -n 20 make install
			fi

			if [[ &quot;true&quot; != $noautoretry &amp;&amp; $? != 0 || &quot;true&quot; == $forceAGen ]]; then
				echo -e &quot;\e[1;31m &quot;
				echo 'make clean ; $PROG --prefix=$MONO_PREFIX --enable-aspnet --enable-aspnetedit --with-preview --with-moonlight &amp;&amp; nice -n 20 make &amp;&amp; nice -n 20 make install'
				echo -e &quot;\e[m&quot;
				if [[ -f Makefile ]]; then make clean; fi
				$PROG --prefix=$MONO_PREFIX --enable-aspnet --enable-aspnetedit --with-preview --with-moonlight &amp;&amp; nice -n 20 make &amp;&amp; nice -n 20 make install || break
			fi
			popd
		fi
	done
}

#-l not  speced or even means build all - odd means build only banshee &amp; olive
if [[ $((level % 2)) == 0 ]]; then
autogenAndMake $MAKEDIRS
fi

if [[ $level &gt; 1 ]]; then
	i=gtk-sharp
			echo -e &quot;\e[1;31m pushd $i \e[m&quot;
			pushd $i
			echo -e &quot;\e[1;31m &quot;
			echo 'make clean ; ./bootstrap-2.12 --prefix=$MONO_PREFIX  &amp;&amp; nice -n 20 make &amp;&amp; nice -n 20 make install'
			echo -e &quot;\e[m&quot;
			if [[ -f Makefile ]]; then make clean ; fi
			./bootstrap-2.12 --prefix=$MONO_PREFIX  &amp;&amp; nice -n 20 make &amp;&amp; nice -n 20 make install || break
	popd
fi

if [[ $level &gt; 1 ]];then
	#olive
	for i in olive
	do
		if [[ -d $i ]] ; then
			echo -e &quot;\e[1;31m pushd $i \e[m&quot;
			pushd $i
			echo -e &quot;\e[1;31m &quot;
			echo 'make clean ; ./configure  --prefix=$MONO_PREFIX  &amp;&amp; nice -n 20 make &amp;&amp; nice -n 20 make install'
			echo -e &quot;\e[m&quot;
			if [[ -f Makefile ]]; then make clean ; fi
			./configure  --prefix=$MONO_PREFIX  &amp;&amp; nice -n 20 make &amp;&amp; nice -n 20 make install || break
			popd
		fi
	done
fi

if [[ $level &gt; 1 ]];then
	#banshee
	if [[ -d banshee ]];then
	pushd banshee
		cvs up
		./configure --prefix=$MONO_PREFIX --disable-helix &amp;&amp; nice -n 20 make &amp;&amp; nice -n 20 make install || break
	popd
	autogenAndMake $BANSCHEEPLUGINS
	fi
fi

popd</pre>
]]></content:encoded>
			<wfw:commentRss>http://jrwren.wrenfam.com/blog/2009/04/17/mono-trunk-on-ubuntu-jaunty/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Mix09 Downloadable Content &#8211; All Days</title>
		<link>http://jrwren.wrenfam.com/blog/2009/03/24/mix09-downloadable-content-all-days/</link>
		<comments>http://jrwren.wrenfam.com/blog/2009/03/24/mix09-downloadable-content-all-days/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 14:54:03 +0000</pubDate>
		<dc:creator>jrwren</dc:creator>
				<category><![CDATA[Cygwin]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[mix]]></category>

		<guid isPermaLink="false">http://jrwren.wrenfam.com/blog/2009/03/24/mix09-downloadable-content-all-days/</guid>
		<description><![CDATA[I’ve seen it posted a couple of times, now, but each post just shows a series of links which I am required to click. I’m not savvy enough to figure out plugins like “DownloadThemAll”, so I wrote this script. 
The script throws all of the day one content into a directory called day1, but for [...]]]></description>
			<content:encoded><![CDATA[<p>I’ve seen it posted a couple of times, now, but each post just shows a series of links which I am required to click. I’m not savvy enough to figure out plugins like “DownloadThemAll”, so I wrote this script. </p>
<p>The script throws all of the day one content into a directory called day1, but for days two and three, I thought it would add to the feeling of being there if I broke them out into time slots. Within the day2 and day3 directory there are directories for the start time of each session.</p>
<blockquote><p>#these first sessions are snagged from: <a href="http://blogs.msdn.com/nigel/archive/2009/03/20/mix09-day-1-sessions-available-now.aspx">http://blogs.msdn.com/nigel/archive/2009/03/20/mix09-day-1-sessions-available-now.aspx</a>      <br />#day1      <br />mkdir day1      <br />pushd day1      <br />#add key01 to this list if you want the keynote      <br />for i in t66m t71m t25f t40f t19f c10f c24f t04f t41f t72m t65m c28m t12f t61f t79m t09f t05f b02m t46f t45f t24f b04m t43f c02f c12f c27m t38f t07f t14f t26f ; do      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; curlget <a href="http://mschannel9.vo.msecnd.net/o9/mix/09/wmv-hq/">http://mschannel9.vo.msecnd.net/o9/mix/09/wmv-hq/</a>$i.wmv      <br />done      <br />popd </p>
<p>#the rest are snatched from : <a href="https://content.visitmix.com/2009/Sessions/">https://content.visitmix.com/2009/Sessions/</a>      <br />#missing from the above originally were t10f, c19f, t07f, t37f </p>
<p>mkdir day2     <br />pushd day2      <br />mkdir 10.30am      <br />pushd 10.30am      <br />for i in t17f c09f t52f c14f c04f c18f c08f t09f t84m t75m t76m      <br />do      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; curlget <a href="http://mschannel9.vo.msecnd.net/o9/mix/09/wmv-hq/">http://mschannel9.vo.msecnd.net/o9/mix/09/wmv-hq/</a>$i.wmv      <br />done      <br />popd      <br />mkdir 1pm;pushd 1pm;      <br />for i in t33f t51f t20f t56f t23f t31f t54f t01f b05m t85m b01m&#160; ; do      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; curlget <a href="http://mschannel9.vo.msecnd.net/o9/mix/09/wmv-hq/">http://mschannel9.vo.msecnd.net/o9/mix/09/wmv-hq/</a>$i.wmv      <br />done      <br />popd      <br />mkdir 2.30pm;pushd 2.30pm;      <br />for i in c05f t12f c01f c03f t28f t49f c22f t02f b03m t82m t74m ; do      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; curlget <a href="http://mschannel9.vo.msecnd.net/o9/mix/09/wmv-hq/">http://mschannel9.vo.msecnd.net/o9/mix/09/wmv-hq/</a>$i.wmv      <br />done      <br />popd      <br />mkdir 4.15pm;pushd 4.15pm;      <br />for i in t48f c21f t50f t13f c13f t60f c23f t03f t69m t86m t68m ; do      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; curlget <a href="http://mschannel9.vo.msecnd.net/o9/mix/09/wmv-hq/">http://mschannel9.vo.msecnd.net/o9/mix/09/wmv-hq/</a>$i.wmv      <br />done      <br />popd      <br />popd </p>
<p>mkdir day3     <br />pushd day3      <br />mkdir 9am;pushd 9am;      <br />for i in t39f t59f t44f t42f t18f c17f t11f t06f t67m t78m t81m ; do      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; curlget <a href="http://mschannel9.vo.msecnd.net/o9/mix/09/wmv-hq/">http://mschannel9.vo.msecnd.net/o9/mix/09/wmv-hq/</a>$i.wmv      <br />done      <br />popd      <br />mkdir 10.45am;pushd 10.45am;      <br />for i in c20f t27f t62f t58f t29f c07f t35f c16f t63m t64m t80m ; do      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; curlget <a href="http://mschannel9.vo.msecnd.net/o9/mix/09/wmv-hq/">http://mschannel9.vo.msecnd.net/o9/mix/09/wmv-hq/</a>$i.wmv      <br />done      <br />popd      <br />mkdir 12.30pm;pushd 12.30pm;      <br />for i in t32f t55f t22f c26f t34f t36f t30f t16f c29m t77m c30m ; do      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; curlget <a href="http://mschannel9.vo.msecnd.net/o9/mix/09/wmv-hq/">http://mschannel9.vo.msecnd.net/o9/mix/09/wmv-hq/</a>$i.wmv      <br />done      <br />popd      <br />mkdir 2pm;pushd 2pm;      <br />for i in c15f t57f t47f t15f c06f c11f t87f t53f t83m t70m t73m ; do      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; curlget <a href="http://mschannel9.vo.msecnd.net/o9/mix/09/wmv-hq/">http://mschannel9.vo.msecnd.net/o9/mix/09/wmv-hq/</a>$i.wmv      <br />done      <br />popd </p>
<p>popd</p>
</blockquote>
<p><font color="#777777">You can grab this script here: <a title="http://workwith.net/scripts/mix09fetch.sh" href="http://workwith.net/scripts/mix09fetch.sh">http://workwith.net/scripts/mix09fetch.sh</a></font></p>
<p><font color="#777777">It requires only a cygwin install with bash and curl.</font></p>
]]></content:encoded>
			<wfw:commentRss>http://jrwren.wrenfam.com/blog/2009/03/24/mix09-downloadable-content-all-days/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
