<?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>booyaa dot org</title>
	<atom:link href="http://booyaa.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://booyaa.org</link>
	<description>on the interwebs since &#039;93</description>
	<lastBuildDate>Sun, 12 May 2013 11:36: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>hipstamatic 365: pick of the week 4</title>
		<link>http://booyaa.org/hipstamatic-365-potw-4/</link>
		<comments>http://booyaa.org/hipstamatic-365-potw-4/#comments</comments>
		<pubDate>Sun, 02 May 2010 11:14:56 +0000</pubDate>
		<dc:creator>booyaa</dc:creator>
				<category><![CDATA[photography]]></category>
		<category><![CDATA[hipstamatic]]></category>
		<category><![CDATA[iphone]]></category>

		<guid isPermaLink="false">http://booyaa.org/blog/?p=2877</guid>
		<description><![CDATA[<p>daily randomatic project: i’m taking three photos everyday. i shake my hipstamatic before i take a shot so i have no idea what film, lense or flash combo i’ll have.</p> <p>i&#8217;m really pleased that i&#8217;ve managed to stick with this project for so long. i remember attempting another 365 project (self portrait) and only lasting [...]]]></description>
			<content:encoded><![CDATA[<p>daily randomatic project: i’m taking three photos everyday. i shake my hipstamatic before i take a shot so i have no idea what film, lense or flash combo i’ll have.</p>
<p>i&#8217;m really pleased that i&#8217;ve managed to stick with this project for so long. i remember attempting another 365 project (self portrait) and only lasting 5 days. however i am finding it much harder to get decent shots. i barely had three decent picks out of a possible twenty one. despite this set back, i do have to marvel at how hipstamatic has totally got me turned on to taking photos with my iphone!</p>
<p>here’s my pick of week 3, if you’d like to see more have a look at my set on flickr. warning: there’s more duff shots than decent at the moment. flickr: daily randomatic.</p>
<p><a href="http://www.flickr.com/photos/booyaa/4558304389/" title="twenty five by booyaa, on Flickr"><img src="http://farm4.static.flickr.com/3352/4558304389_139d6b4f05_m.jpg" width="240" height="240" alt="twenty five" border="0"/></a><br />
<a href="http://www.flickr.com/photos/booyaa/4560308680/" title="twenty six by booyaa, on Flickr"><img src="http://farm4.static.flickr.com/3142/4560308680_e9bd407dd4_m.jpg" width="240" height="240" alt="twenty six" border="0"/></a><br />
<a href="http://www.flickr.com/photos/booyaa/4567286671/" title="twenty nine by booyaa, on Flickr"><img src="http://farm5.static.flickr.com/4072/4567286671_4e8e6f402b_m.jpg" width="240" height="240" alt="twenty nine" border="0"/></a></p>
]]></content:encoded>
			<wfw:commentRss>http://booyaa.org/hipstamatic-365-potw-4/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>hipstamatic 365: pick of the week 2</title>
		<link>http://booyaa.org/hipstamatic-365-potw-2/</link>
		<comments>http://booyaa.org/hipstamatic-365-potw-2/#comments</comments>
		<pubDate>Sun, 18 Apr 2010 17:04:33 +0000</pubDate>
		<dc:creator>booyaa</dc:creator>
				<category><![CDATA[photography]]></category>
		<category><![CDATA[hipstamatic]]></category>

		<guid isPermaLink="false">http://booyaa.org/blog/?p=2869</guid>
		<description><![CDATA[<p>daily randomatic project: i&#8217;m taking three photos everyday. i shake my hipstamatic before i take a shot so i have no idea what film, lense or flash combo i&#8217;ll have.</p> <p>i&#8217;m about two weeks into this project. i&#8217;m finding that more often than not it&#8217;s all about framing the shot. not knowing the type of [...]]]></description>
			<content:encoded><![CDATA[<p>daily randomatic project: i&#8217;m taking three photos everyday. i shake my hipstamatic before i take a shot so i have no idea what film, lense or flash combo i&#8217;ll have.</p>
<p>i&#8217;m about two weeks into this project. i&#8217;m finding that more often than not it&#8217;s all about framing the shot. not knowing the type of lens, film and flash you&#8217;ll get means you can&#8217;t rely on colour or constrast alone. i&#8217;m definitely finding the slightly dodgy view finder and the delay between shots a bit of a challenge, but this is a good thing.</p>
<p>here&#8217;s my pick of week 2, if you&#8217;d like to see more have a look at my set on flickr. warning: there&#8217;s more duff shots than decent at the moment. <a href="http://www.flickr.com/photos/booyaa/sets/72157623636045025/">flickr: daily randomatic</a>.</p>
<p><a href="http://www.flickr.com/photos/booyaa/4515062080/" title="ten by booyaa, on Flickr"><img src="http://farm3.static.flickr.com/2688/4515062080_436382b64f_m.jpg" width="240" height="240" alt="ten" border="0"/></a></p>
<p><a href="http://www.flickr.com/photos/booyaa/4516667759/" title="eleven by booyaa, on Flickr"><img src="http://farm3.static.flickr.com/2750/4516667759_2cb2933521_m.jpg" width="240" height="240" alt="eleven" border="0"/></a></p>
<p><a href="http://www.flickr.com/photos/booyaa/4527682333/" title="fifteen by booyaa, on Flickr"><img src="http://farm5.static.flickr.com/4010/4527682333_e1c28b3e8e_m.jpg" width="240" height="240" alt="fifteen" border="0"/></a></p>
]]></content:encoded>
			<wfw:commentRss>http://booyaa.org/hipstamatic-365-potw-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>hipstamatic &#8211; i never can get enough</title>
		<link>http://booyaa.org/hipstamatic-i-never-can-get-enough/</link>
		<comments>http://booyaa.org/hipstamatic-i-never-can-get-enough/#comments</comments>
		<pubDate>Sat, 10 Apr 2010 10:32:09 +0000</pubDate>
		<dc:creator>booyaa</dc:creator>
				<category><![CDATA[photography]]></category>
		<category><![CDATA[hipstamatic]]></category>
		<category><![CDATA[iphone]]></category>

		<guid isPermaLink="false">http://booyaa.org/blog/?p=2861</guid>
		<description><![CDATA[<p>mrs. booyaa made me aware of an awesomazing iphone app called <a href="http://hipstamaticapp.com/">hipstamatic</a>, it&#8217;s an iphone app that thinks its a toy camera (<a href="http://www.amazon.co.uk/gp/product/B000I42XQ2?ie=UTF8&#038;tag=booyaadotorg-21&#038;linkCode=as2&#038;camp=1634&#038;creative=6738&#038;creativeASIN=B000I42XQ2">lomo</a>, <a href="http://www.amazon.co.uk/gp/product/B000LNC9HS?ie=UTF8&#038;tag=booyaadotorg-21&#038;linkCode=as2&#038;camp=1634&#038;creative=6738&#038;creativeASIN=B000LNC9HS">holga</a>, etc). </p> <p>i&#8217;ve setup a <a href="http://www.flickr.com/photos/booyaa/sets/72157623636045025/">365 project on flickr</a> where i take three photos, but here&#8217;s the catch each shot is taken using the random feature. this [...]]]></description>
			<content:encoded><![CDATA[<p>mrs. booyaa made me aware of an awesomazing iphone app called <a href="http://hipstamaticapp.com/">hipstamatic</a>, it&#8217;s an iphone app that thinks its a toy camera (<a href="http://www.amazon.co.uk/gp/product/B000I42XQ2?ie=UTF8&#038;tag=booyaadotorg-21&#038;linkCode=as2&#038;camp=1634&#038;creative=6738&#038;creativeASIN=B000I42XQ2">lomo</a><img src="http://www.assoc-amazon.co.uk/e/ir?t=booyaadotorg-21&#038;l=as2&#038;o=2&#038;a=B000I42XQ2" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />, <a href="http://www.amazon.co.uk/gp/product/B000LNC9HS?ie=UTF8&#038;tag=booyaadotorg-21&#038;linkCode=as2&#038;camp=1634&#038;creative=6738&#038;creativeASIN=B000LNC9HS">holga</a><img src="http://www.assoc-amazon.co.uk/e/ir?t=booyaadotorg-21&#038;l=as2&#038;o=2&#038;a=B000LNC9HS" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />, etc). </p>
<p>i&#8217;ve setup a <a href="http://www.flickr.com/photos/booyaa/sets/72157623636045025/">365 project on flickr</a> where i take three photos, but here&#8217;s the catch each shot is taken using the random feature. this means i have no idea what combo of lens, flash or film i&#8217;ll get.</p>
<p>here&#8217;s a few samples (admittedly my best so far):</p>
<p><a href="http://www.flickr.com/photos/booyaa/4486758912/" title="one by booyaa, on Flickr"><img src="http://farm5.static.flickr.com/4008/4486758912_c055f88903_m.jpg" width="240" height="240" alt="one" border="0"/></a></p>
<p><a href="http://www.flickr.com/photos/booyaa/4496597118/" title="four by booyaa, on Flickr"><img src="http://farm5.static.flickr.com/4031/4496597118_47d4aa8343_m.jpg" width="240" height="240" alt="four" border="0"/></a></p>
<p><a href="http://www.flickr.com/photos/booyaa/4505399856/" title="seven by booyaa, on Flickr"><img src="http://farm5.static.flickr.com/4015/4505399856_c71491c509_m.jpg" width="240" height="240" alt="seven" border="0" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://booyaa.org/hipstamatic-i-never-can-get-enough/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>powershell rangers: domino console magick</title>
		<link>http://booyaa.org/powershell-rangers-domino-console-magick/</link>
		<comments>http://booyaa.org/powershell-rangers-domino-console-magick/#comments</comments>
		<pubDate>Mon, 05 Apr 2010 12:00:25 +0000</pubDate>
		<dc:creator>booyaa</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[scripting]]></category>

		<guid isPermaLink="false">http://booyaa.org/blog/?p=2851</guid>
		<description><![CDATA[<p>the following script is an example of how to run domino console commands via powershell. yes server controller can do this, but sometimes its nice to see how to use the lotus notes com object.</p> <p>it is dependent on lotus notes finding the correct notes.ini for your environment. </p> <p>tip: if you&#8217;re running the network [...]]]></description>
			<content:encoded><![CDATA[<p>the following script is an example of how to run domino console commands via powershell. yes server controller can do this, but sometimes its nice to see how to use the lotus notes com object.</p>
<p>it is dependent on lotus notes finding the correct notes.ini for your environment. </p>
<p>tip: if you&#8217;re running the network drive, make sure you place the path to the ini file before c:\windows, c:\windows\system32 and c:\path\to\lotus\notes. this applies to allow applications that use the notes client com object.</p>
<pre class="brush: powershell; title: ; notranslate">
# provide default parameters if none are specified (this will fail if you don't have a server called NOTESERVER1

param(
	[string] $server = &quot;NOTESERVER1&quot;,
	[string] $cmd = &quot;sh ta&quot;
)

# begin lotus notes magick
$session = New-Object -comobject Lotus.NotesSession
$session.initialize()
$session.Username

$session.SendConsoleCommand( $server, $cmd )
</pre>
]]></content:encoded>
			<wfw:commentRss>http://booyaa.org/powershell-rangers-domino-console-magick/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>rage against the machinima: and then there were three</title>
		<link>http://booyaa.org/rage-against-the-machinima-and-then-there-were-three/</link>
		<comments>http://booyaa.org/rage-against-the-machinima-and-then-there-were-three/#comments</comments>
		<pubDate>Wed, 31 Mar 2010 12:00:37 +0000</pubDate>
		<dc:creator>booyaa</dc:creator>
				<category><![CDATA[gaming]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[gmod]]></category>
		<category><![CDATA[machinima]]></category>

		<guid isPermaLink="false">http://booyaa.org/blog/?p=2854</guid>
		<description><![CDATA[<p>so this time around i played around with one of the maps that came with half life 2. i found to my annoyance that game saves are flakey, our generic resistance medic (lying on the mattress) kept disappearing from scene when i loaded from a previous save.</p> <p>i&#8217;ve read that the best way to avoid [...]]]></description>
			<content:encoded><![CDATA[<p>so this time around i played around with one of the maps that came with half life 2. i found to my annoyance that game saves are flakey, our generic resistance medic (lying on the mattress) kept disappearing from scene when i loaded from a previous save.</p>
<p>i&#8217;ve read that the best way to avoid loss of data is to use advanced duplicator (which is part of the <a href="http://www.wiremod.com/forum/wiremod-general-chat/4-wiremod-svn-guide.html">wiremod</a> suite). i will use this for the next project. </p>
<p>what is also annoying is how the mattress that our medic is on managed to vanish into the floor on the third scene.</p>
<p>i made good use of noclip to get an interest view in the first scene. i also messed around with the glass special effects in second scene, i was not pleased with the end result though.</p>
<p>to get a better view of the images, click on the images and switch to large mode.</p>
<p>oh and yes barney fumbles the watermelon and get flattened.</p>
<p><a href="http://www.flickr.com/photos/booyaa/4457756481/" title="half life 2 folk chilling 1 of 3 by booyaa, on Flickr"><img src="http://farm5.static.flickr.com/4060/4457756481_c89781b45b.jpg" width="500" height="375" alt="half life 2 folk chilling 1 of 3" border="0"/></a></p>
<p><a href="http://www.flickr.com/photos/booyaa/4457756899/" title="half life 2 folk chilling 2 of 3 by booyaa, on Flickr"><img src="http://farm5.static.flickr.com/4064/4457756899_21cbbda016.jpg" width="500" height="375" alt="half life 2 folk chilling 2 of 3" border="0"/></a></p>
<p><a href="http://www.flickr.com/photos/booyaa/4458535410/" title="half life 2 folk chilling 3 of 3 by booyaa, on Flickr"><img src="http://farm3.static.flickr.com/2691/4458535410_944011e62c.jpg" width="500" height="375" alt="half life 2 folk chilling 3 of 3" border="0"/></a></p>
]]></content:encoded>
			<wfw:commentRss>http://booyaa.org/rage-against-the-machinima-and-then-there-were-three/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>batchacha: where am i</title>
		<link>http://booyaa.org/batchacha-where-am-i/</link>
		<comments>http://booyaa.org/batchacha-where-am-i/#comments</comments>
		<pubDate>Mon, 29 Mar 2010 14:00:06 +0000</pubDate>
		<dc:creator>booyaa</dc:creator>
				<category><![CDATA[batch]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[scripting]]></category>

		<guid isPermaLink="false">http://booyaa.org/blog/?p=2817</guid>
		<description><![CDATA[<p>i wrote this script to avoid being locked out of active directory after changing my password and still being logged in on a file server. the script requires two parameters. the first parameter is a text file containing a list of servers (you code probably write an adsi script to generate this list automatically). the [...]]]></description>
			<content:encoded><![CDATA[<p>i wrote this script to avoid being locked out of active directory after changing my password and still being logged in on a file server. the script requires two parameters. the first parameter is a text file containing a list of servers (you code probably write an adsi script to generate this list automatically). the second parameter is the username to check against.</p>
<p>the script depends on qwinsta (a binary command based on &#8220;query session&#8221;) which is part of the terminal services command suite, so should exist on windows xp.</p>
<p>whereAmI.bat:</p>
<pre class="brush: plain; title: ; notranslate">
@ECHO OFF
:: whereAmI.bat - tries to identify which server you are logged into

:: needed for nested loops
SETLOCAL ENABLEDELAYEDEXPANSION
CLS

:: error handling
IF &quot;%1&quot; == &quot;&quot; GOTO errNoServerList
IF &quot;%2&quot; == &quot;&quot; GOTO errNoUserName

SET ServerList=%1
SET User=%2

ECHO Checking to see where you are logged on, please wait.

FOR /F %%C IN (%ServerList%) DO (
	qwinsta /server:%%C | findstr /i %User% &gt; NUL
	IF !ERRORLEVEL! EQU 0 ECHO You are logged on %%C
)

ECHO Search complete!
GOTO theEnd

:errNoServerList
ECHO Error: Must provide a text file containing list of servers
ECHO Format of server list
ECHO ServerName1
ECHO ServerName2
ECHO ServerNameYadaYadaYada
GOTO theEnd

:errNoUserName
ECHO Error: You must provide a user name to search against
ECHO Example usage:
ECHO.
ECHO %0% whereAmI.lst UserID
GOTO theEnd

:theENd
</pre>
]]></content:encoded>
			<wfw:commentRss>http://booyaa.org/batchacha-where-am-i/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>rage against the machinima: hello world</title>
		<link>http://booyaa.org/rage-against-the-machinima-hello-world/</link>
		<comments>http://booyaa.org/rage-against-the-machinima-hello-world/#comments</comments>
		<pubDate>Mon, 22 Mar 2010 14:40:42 +0000</pubDate>
		<dc:creator>booyaa</dc:creator>
				<category><![CDATA[gaming]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[gmod]]></category>
		<category><![CDATA[machinima]]></category>

		<guid isPermaLink="false">http://booyaa.org/blog/?p=2837</guid>
		<description><![CDATA[<p>ever since i saw my first <a href="http://www.youtube.com/watch?v=LTxO_pgMqys">machinima</a> i&#8217;ve wanted to create my own. i almost bought <a href="http://www.amazon.co.uk/gp/product/B002Q8I722?ie=UTF8&#038;tag=booyaadotorg-21&#038;linkCode=as2&#038;camp=1634&#038;creative=6738&#038;creativeASIN=B002Q8I722">the movies</a>, a game that really does what it says on the tin and let&#8217;s you make <a href="http://en.wikipedia.org/wiki/Machinima">machinima</a> movies (think a totally scripted version of <a href="http://www.amazon.co.uk/gp/product/B0015YDH6O?ie=UTF8&#038;tag=booyaadotorg-21&#038;linkCode=as2&#038;camp=1634&#038;creative=6738&#038;creativeASIN=B0015YDH6O">the sims</a>). luckily, i discovered you could make your own [...]]]></description>
			<content:encoded><![CDATA[<p>ever since i saw my first <a href="http://www.youtube.com/watch?v=LTxO_pgMqys">machinima</a> i&#8217;ve wanted to create my own. i almost bought  <a href="http://www.amazon.co.uk/gp/product/B002Q8I722?ie=UTF8&#038;tag=booyaadotorg-21&#038;linkCode=as2&#038;camp=1634&#038;creative=6738&#038;creativeASIN=B002Q8I722">the movies</a><img src="http://www.assoc-amazon.co.uk/e/ir?t=booyaadotorg-21&#038;l=as2&#038;o=2&#038;a=B002Q8I722" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />, a game that really does what it says on the tin and let&#8217;s you make <a href="http://en.wikipedia.org/wiki/Machinima">machinima</a> movies (think a totally scripted version of <a href="http://www.amazon.co.uk/gp/product/B0015YDH6O?ie=UTF8&#038;tag=booyaadotorg-21&#038;linkCode=as2&#038;camp=1634&#038;creative=6738&#038;creativeASIN=B0015YDH6O">the sims</a><img src="http://www.assoc-amazon.co.uk/e/ir?t=booyaadotorg-21&#038;l=as2&#038;o=2&#038;a=B0015YDH6O" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />). luckily, i discovered you could make your own machinima using <a href="http://www.amazon.co.uk/gp/product/B000RO0OKU?ie=UTF8&#038;tag=booyaadotorg-21&#038;linkCode=as2&#038;camp=1634&#038;creative=6738&#038;creativeASIN=B000RO0OKU">half-life 2</a><img src="http://www.assoc-amazon.co.uk/e/ir?t=booyaadotorg-21&#038;l=as2&#038;o=2&#038;a=B000RO0OKU" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> and a mod (game add on) called <a href="http://store.steampowered.com/app/4000/">garry&#8217;s mod</a> (aka gmod).</p>
<p>gmod is the invention of an enterprising young chappy called <a href="http://www.garry.tv">garry newman</a>, basically he&#8217;s created a  sandbox which allows you to place an object from any <a href="http://www.valvesoftware.com/">valve</a> game (provided you own it) into any construct (map) you want! </p>
<p>whilst i&#8217;m still a long way from making a full blown movie, it&#8217;s my intention to start with single scenes, graduate to comic strips and then eventually move onto animation. so without further a do here&#8217;s my gmod equivalent of hello world.</p>
<p><a href="http://www.flickr.com/photos/booyaa/4453513263/" title="my gmod equivalent of hello world by booyaa, on Flickr"><img src="http://farm5.static.flickr.com/4059/4453513263_54cf4ded41.jpg" width="500" height="375" alt="my gmod equivalent of hello world" border="0"/></a></p>
<p>it took ages to get the rag dolls in the right positions. i&#8217;m still not happy with them. the uncanny factor is off the scale, but it&#8217;s a start. i&#8217;d also like to apologise to the gmod community as i&#8217;ve performed classic faux pas by using the gm_construct map which is the equivalent of writing a word document in times new roman. i promise to never do it again. honest.</p>
<p>in case you&#8217;re wondering barney fumbles the water melon and the two citizens flatten him.</p>
]]></content:encoded>
			<wfw:commentRss>http://booyaa.org/rage-against-the-machinima-hello-world/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>batchacha: sametime chatlog filer</title>
		<link>http://booyaa.org/batchacha-sametime-chatlog-filer/</link>
		<comments>http://booyaa.org/batchacha-sametime-chatlog-filer/#comments</comments>
		<pubDate>Mon, 22 Mar 2010 14:00:33 +0000</pubDate>
		<dc:creator>booyaa</dc:creator>
				<category><![CDATA[batch]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[scripting]]></category>

		<guid isPermaLink="false">http://booyaa.org/blog/?p=2820</guid>
		<description><![CDATA[<p>i wrote this script to file previous month&#8217;s sametime chat logs (we used the reference chat logging dll which writes to text files). it places the chat logs in a directory hierarchy of year (4 digits) and month (2 digits with padding).</p> <p>stcf.bat:</p>]]></description>
			<content:encoded><![CDATA[<p>i wrote this script to file previous month&#8217;s sametime chat logs (we used the reference chat logging dll which writes to text files). it places the chat logs in a directory hierarchy of year (4 digits) and month  (2 digits with padding).</p>
<p>stcf.bat:</p>
<pre class="brush: plain; title: ; notranslate">
@ECHO OFF
CLS
:: SameTime Chatlog Filer (stcf)
:: purpose: Moves previous month's logs into sub dir e.g. Jan 2009 logs into
::          a directory called d:\chatlogs\2009&#92;&#48;1
SETLOCAL EnableDelayedExpansion
SET chatLogsDir=D:\CHATLOGS\

SET DD=%date:~0,2%
SET MM=%date:~3,2%
:: Testing for first and last months of the year
::SET MM=01
::SET MM=12
SET YYYY=%date:~6,4%

:: Work out previous month's log file name, as we'll only be moving these log files
IF &quot;%MM%&quot; == &quot;01&quot; SET prevMon=DEC
IF &quot;%MM%&quot; == &quot;02&quot; SET prevMon=JAN
IF &quot;%MM%&quot; == &quot;03&quot; SET prevMon=FEB
IF &quot;%MM%&quot; == &quot;04&quot; SET prevMon=MAR
IF &quot;%MM%&quot; == &quot;05&quot; SET prevMon=APR
IF &quot;%MM%&quot; == &quot;06&quot; SET prevMon=MAY
IF &quot;%MM%&quot; == &quot;07&quot; SET prevMon=JUN
IF &quot;%MM%&quot; == &quot;08&quot; SET prevMon=JUL
IF &quot;%MM%&quot; == &quot;09&quot; SET prevMon=AUG
IF &quot;%MM%&quot; == &quot;10&quot; SET prevMon=SEP
IF &quot;%MM%&quot; == &quot;11&quot; SET prevMon=OCT
IF &quot;%MM%&quot; == &quot;12&quot; SET prevMon=NOV

ECHO DEBUG: %DD% %MM% %YYYY% %prevMon%

IF &quot;%MM%&quot; == &quot;01&quot; (
	SET prevMM=12
	SET /A YYYY=%YYYY%-1
)

IF &quot;%MM%&quot; == &quot;02&quot; SET prevMM=01
IF &quot;%MM%&quot; == &quot;03&quot; SET prevMM=02
IF &quot;%MM%&quot; == &quot;04&quot; SET prevMM=03
IF &quot;%MM%&quot; == &quot;05&quot; SET prevMM=04
IF &quot;%MM%&quot; == &quot;06&quot; SET prevMM=05
IF &quot;%MM%&quot; == &quot;07&quot; SET prevMM=06
IF &quot;%MM%&quot; == &quot;08&quot; SET prevMM=07
IF &quot;%MM%&quot; == &quot;09&quot; SET prevMM=08
IF &quot;%MM%&quot; == &quot;10&quot; SET prevMM=09
IF &quot;%MM%&quot; == &quot;11&quot; SET prevMM=10
IF &quot;%MM%&quot; == &quot;12&quot; SET prevMM=11

SET chatLogsDirDate=%chatLogsDir%%YYYY%\%prevMM%
ECHO MD %chatLogsDirDate%
ECHO MOVE %chatLogsDir%*%prevMon%*.dat %chatLogsDirDate%\
</pre>
]]></content:encoded>
			<wfw:commentRss>http://booyaa.org/batchacha-sametime-chatlog-filer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>logparsley: sql files</title>
		<link>http://booyaa.org/logparsley-sql-files/</link>
		<comments>http://booyaa.org/logparsley-sql-files/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 14:00:39 +0000</pubDate>
		<dc:creator>booyaa</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[logparser]]></category>
		<category><![CDATA[scripting]]></category>

		<guid isPermaLink="false">http://booyaa.org/blog/?p=2823</guid>
		<description><![CDATA[<p>there&#8217;s a point where logparser one liners start to make perl look like a tidy language. this is when you need to start using query files. here&#8217;s a sample query file below.</p> <p>vwGroupDeletions.sql:</p> <p>now isn&#8217;t that easier to read? one key thing to note is that you can use place holders to make the script [...]]]></description>
			<content:encoded><![CDATA[<p>there&#8217;s a point where logparser one liners start to make perl look like a tidy language. this is when you need to start using query files. here&#8217;s a sample query file below.</p>
<p>vwGroupDeletions.sql:</p>
<pre class="brush: sql; title: ; notranslate">
-- SQL file version of vwGroupDeletions.bat query --
SELECT top 5
timegenerated as timestamp,
eventid,
extract_token(strings,2,'|') as group,
resolve_sid(substr(Extract_token(strings, 1, '|'), 2, -1)) as user
INTO %lpCsvFile%
FROM \\%lpServer%\%lpLogType%
WHERE eventid = 633
</pre>
<p>now isn&#8217;t that easier to read? one key thing to note is that you can use place holders to make the script dynamic. these are identical to dos/batch variable names i.e. %woof%. to use the query file all you need to is specify it as the logparser parameter file, here&#8217;s a sample batch file.</p>
<p>vwGroupDeletions.bat:</p>
<pre class="brush: plain; title: ; notranslate">
@echo off
cls
set lpServer=aServerCalledBob
set lpLogType=security
set lpCsvFile=vwGroupDeletions.csv

echo Generating CSV file (%lpCsvFile%) for recent deletions on %lpServer%

logparser file:vwGroupDeletions.sql?lpServer=%lpServer%+lpLogType=%lpLogType%+lpCsvFile=%lpCsvFile%
</pre>
<p>oh if you&#8217;re interested, this logparser script looks on server eventlog and grabs all recent group deletions (event id 633) and places them into a csv file.</p>
]]></content:encoded>
			<wfw:commentRss>http://booyaa.org/logparsley-sql-files/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>batchacha: file reaper</title>
		<link>http://booyaa.org/batchacha-file-reaper/</link>
		<comments>http://booyaa.org/batchacha-file-reaper/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 14:07:07 +0000</pubDate>
		<dc:creator>booyaa</dc:creator>
				<category><![CDATA[batch]]></category>
		<category><![CDATA[general]]></category>
		<category><![CDATA[scripting]]></category>

		<guid isPermaLink="false">http://booyaa.org/blog/?p=2797</guid>
		<description><![CDATA[<p>i wrote this batch file to avoid the excessive build up of temp files created by fax software. because the application didn&#8217;t tidy up after itself, after a while (about 300K temp files later) it started to freak out and much oddness occurred as it tried to write subsequent temp files.</p> <p>it takes one parameter, [...]]]></description>
			<content:encoded><![CDATA[<p>i wrote this batch file to avoid the excessive build up of temp files created by fax software. because the application didn&#8217;t tidy up after itself, after a while (about 300K temp files later) it started to freak out and much oddness occurred as it tried to write subsequent temp files.</p>
<p>it takes one parameter, the number of days to before a file is considered old. the default is 30. the script will look for the existence of a file called fileReaper.lst (see sample below), this is a text file containing a list of directories that file reaper will run against, otherwise it will just run against the current directory.</p>
<p>the script is happy to be run by the task scheduler.</p>
<p>fileReaper.lst:</p>
<pre class="brush: plain; title: ; notranslate">
C:\DOCUME~1\SVC_RI~1\LOCALS~1\Temp\
C:\WINNT\TEMP
C:\TEMP\
H:\TEMP\
</pre>
<p>fileReaper.bat:</p>
<pre class="brush: plain; title: ; notranslate">
@ECHO OFF
CLS
SETLOCAL ENABLEDELAYEDEXPANSION
:: filereaper - kills files older than a N days

:: If no parameter given assume target files are older than 30 days
IF &quot;%1%&quot; == &quot;&quot; (
	SET paraDaysToAge=30
) ELSE (
	SET paraDaysToAge=%1%
)

::******************************************************
::*** NO USER SERVICABLE PARTS BELOW THIS POINT
::******************************************************

::Grab the current date
FOR /F &quot;tokens=1-3 delims=/ &quot; %%A IN ('DATE /T') DO (
	SET tDD=%%A
	SET	tMM=%%B
	SET tYYYY=%%C
)

IF NOT EXIST fileReaper.lst. GOTO noFileList

:: Main loop with reaper list file
FOR /F %%A IN (fileReaper.lst) DO (
	SET dirList=%%A
	IF EXIST %%ANUL (
		:: Reaper loop
		FOR /F &quot;tokens=1-3,6 delims=/ &quot; %%B IN ('DIR /A:-D /O:D !dirList! ^| FINDSTR /R /C:&quot;^[0-9][0-9]/&quot;') DO (
			SET fDD=%%B
			SET fMM=%%C
			SET fYYYY=%%D
			SET fName=%%E

			SET /A fAge=!tYYYY!!tMM!!tDD!-!fYYYY!!fMM!!fDD!
			IF !fAge! GEQ !paraDaysToAge! (
				ECHO !dirList!!fName! is !fAge! days old, in scope for deletion
			)
		)
	) ELSE (
		ECHO ERROR: !dirList! does not exist!
	)
)

GOTO theEnd

:noFileList
:: Main loop with no file list provided, assuming current working directory
FOR /F &quot;tokens=1-3,6 delims=/ &quot; %%B IN ('DIR /A:-D /O:D ^| FINDSTR /R /C:&quot;^[0-9][0-9]/&quot;') DO (
	SET fDD=%%B
	SET fMM=%%C
	SET fYYYY=%%D
	SET fName=%%E

	SET /A fAge=!tYYYY!!tMM!!tDD!-!fYYYY!!fMM!!fDD!
	IF !fAge! GEQ !paraDaysToAge! (
		ECHO !dirList!!fName! is !fAge! days old, in scope for deletion
	)
)

GOTO theEnd

:theEnd
</pre>
]]></content:encoded>
			<wfw:commentRss>http://booyaa.org/batchacha-file-reaper/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
