<?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>atajsicDesigns ~ Andrew Tajsic</title>
	<atom:link href="http://atajsic.com/site/feed/" rel="self" type="application/rss+xml" />
	<link>http://atajsic.com/site</link>
	<description>thoughts and stuff.</description>
	<lastBuildDate>Tue, 20 Dec 2011 04:55:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Limiting the upload speed of SubSonic with apache.</title>
		<link>http://atajsic.com/site/2011/12/limiting-the-upload-speed-of-subsonic-with-apache/</link>
		<comments>http://atajsic.com/site/2011/12/limiting-the-upload-speed-of-subsonic-with-apache/#comments</comments>
		<pubDate>Sat, 10 Dec 2011 01:48:27 +0000</pubDate>
		<dc:creator>Andrew Tajsic</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://atajsic.com/site/?p=310</guid>
		<description><![CDATA[SubSonic if you haven&#8217;t heard of it is an online webui // transcoder to remotely access your music library. It runs as a standalone server, with a definable port. However, this all runs what appears to be under a packed java environment. There&#8217;s options to limit the bit rate of the music you transcode and [...]]]></description>
			<content:encoded><![CDATA[<p>SubSonic if you haven&#8217;t heard of it is an online webui // transcoder to remotely access your music library.</p>
<p><a href="http://atajsic.com/site/wp-content/uploads/2011/12/Screenshot-2011-12-10_12.38.22.png"><img src="http://atajsic.com/site/wp-content/uploads/2011/12/Screenshot-2011-12-10_12.38.22.png" alt="" title="Screenshot-2011-12-10_12.38.22" width="868" height="610" class="alignnone size-full wp-image-311" /></a></p>
<p>It runs as a standalone server, with a definable port. However, this all runs what appears to be under a packed java environment. There&#8217;s options to limit the bit rate of the music you transcode and upload, however it uploads as fast as it can, thus on my DSL line, not the best of attributes.</p>
<p>It was thus important to limit the speed the service could upload to not cripple my connection!</p>
<p>This is achieved by using a proxy and bandwidth module for apache2. Below is my default configuration for my musi virtual host. This goes into the file <strong>/etc/apache2/sites-available/default</strong>.</p>
<pre class="brush:plain"><VirtualHost *:80>
ServerName music.yourdomain.com

LoadModule  proxy_module         /usr/lib/apache2/modules/mod_proxy.so
LoadModule  proxy_http_module    /usr/lib/apache2/modules/mod_proxy_http.so
ProxyVia full
ProxyPreserveHost on

ProxyPass /  http://localhost:1234/

BandWidthModule On
ForceBandWidthModule On
BandWidth 10.0.0.0/24 0
BandWidth all 40000
</VirtualHost>
</pre>
<p>You should set the port (1234) to the port that your SubSonic installation uses to serve.<br />
the <em>BandWidth 10.0.0.0/24 0</em> indicates that my local subnet will not be limited<br />
the <em>BandWidth all 40000</em> indicates that everything else will be limited to 40000B/s (roughly 40kB/s)</p>
<p>Hope this helps! <3</p>
]]></content:encoded>
			<wfw:commentRss>http://atajsic.com/site/2011/12/limiting-the-upload-speed-of-subsonic-with-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wordtime PHP Function</title>
		<link>http://atajsic.com/site/2011/08/wordtime-php-function/</link>
		<comments>http://atajsic.com/site/2011/08/wordtime-php-function/#comments</comments>
		<pubDate>Fri, 26 Aug 2011 06:06:13 +0000</pubDate>
		<dc:creator>Andrew Tajsic</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Portfolio]]></category>

		<guid isPermaLink="false">http://atajsic.com/site/?p=307</guid>
		<description><![CDATA[The following function allows you to to input a time() variable, and it will return a string that represents something such as 6 days 21 hours ago or 6 days 21 hours to go based on the tense of the data inputted (negative / positive). You can modify the $parts to change how many sections [...]]]></description>
			<content:encoded><![CDATA[<p>The following function allows you to to input a time() variable, and it will return a string that represents something such as</p>
<p><strong><em>6 days 21 hours ago</em></strong></p>
<p>or</p>
<p><strong><em>6 days 21 hours to go</em></strong></p>
<p>based on the tense of the data inputted (negative / positive).</p>
<p>You can modify the $parts to change how many sections of the string is shown. for example, a $parts=3 would show</p>
<p><strong><em>6 days 21 hours 48 minutes ago</em></strong></p>
<p>&#8230;etc.</p>
<pre class="brush:php">
function wordtime($data) {

	$parts=2;

	$temp = date("c", $data);
	$title = date("l, F d, Y ~ g:iA O", $data);
	$date = strtotime($temp);

	$diff = time() - $date;

	$periods_ago = array('decade' => 315360000,
		'year' => 31536000,
		'month' => 2628000,
		'week' => 604800,
		'day' => 86400,
		'hour' => 3600,
		'minute' => 60,
		'second' => 1);

	$periods_togo = array('decade' => -315360000,
		'year' => -31536000,
		'month' => -2628000,
		'week' => -604800,
		'day' => -86400,
		'hour' => -3600,
		'minute' => -60,
		'second' => -1);

	if($diff >= 0){
		foreach ($periods_ago as $key => $value) {
			if ($diff >= $value) {
				$time = floor($diff/$value);
				$difference %= $value;
				$return_value .= ($return_value ? ' ' : '').$time.' ';
				$return_value .= (($time > 1) ? $key.'s' : $key);
				$parts--;
			}
			if ($parts == '0') { break; }
		}
		switch($return_value){
			case '':
				return "<abbr id='wordtime' title='" . $title . "'>now</abbr>";
			default:
				return "<abbr id='wordtime' title='" . $title . "'>" .$return_value.' ago</abbr>';
		}
	}
	else{
		foreach ($periods_togo as $key => $value) {
			if ($diff <= $value) {
				$time = floor($diff/$value);
				$diff %= $value;
				$return_value .= ($return_value ? ' ' : '').$time.' ';
				$return_value .= (($time > 1) ? $key.'s' : $key);
				$parts--;
			}
			if ($parts == '0') { break; }
		}
		return "<abbr id='wordtime' title='" . $title . "'>" .$return_value.' to go</abbr>';
	}
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://atajsic.com/site/2011/08/wordtime-php-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox AppButton Quickfix.</title>
		<link>http://atajsic.com/site/2011/08/firefox-appbutton-quickfix/</link>
		<comments>http://atajsic.com/site/2011/08/firefox-appbutton-quickfix/#comments</comments>
		<pubDate>Wed, 10 Aug 2011 11:13:53 +0000</pubDate>
		<dc:creator>Andrew Tajsic</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Portfolio]]></category>

		<guid isPermaLink="false">http://atajsic.com/site/?p=303</guid>
		<description><![CDATA[I&#8217;ve never liked the look of the Firefox AppButton since version 4, especially when the window is not maximised. It takes up a ridiculous amount of space. Thus, a change was in order! This is based on some findings by others, and then simply my own edits. This is a userstyle. Use something like stylish [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve never liked the look of the Firefox AppButton since version 4, especially when the window is not maximised. It takes up a ridiculous amount of space. Thus, a change was in order! This is based on some findings by others, and then simply my own edits.</p>
<p>This is a userstyle. Use something like stylish if you wish to use it.</p>
<p><img src="http://atajsic.com/site/wp-content/uploads/2011/08/ff_before_after.png" alt="" title="ff_before_after" width="541" height="603" class="alignnone size-full wp-image-304" /></a></p>
<div style=style="max-width:660px;overflow:hidden;">
<pre class="brush:css">
.titlebar-placeholder[type="appmenu-button"] {margin-right: -5px  !important;}

#main-window[sizemode="normal"] #navigator-toolbox[tabsontop="true"] #TabsToolbar {
     padding-left: 84px !important;
     padding-right: 110px !important;
     padding-top: 5px !important;
}

#main-window[tabsontop="true"] #toolbar-menubar[autohide="false"] {
     margin-left: 0 !important;
     margin-top: 0 !important;
}

#main-window[tabsontop="true"][sizemode="normal"] #toolbar-menubar[inactive] {
     margin-top: -22px !important;
}

#main-window[tabsontop="true"][sizemode="normal"] #toolbar-menubar:not([inactive]) {
     margin-left: 106px !important;
     margin-top: -19px !important;
}

#main-window[tabsontop="true"][sizemode="maximized"] #toolbar-menubar:not([inactive]){
     margin-top: 2px !important;
     margin-left: 2px !important;
}

#main-window[tabsontop="true"][sizemode="maximized"] #toolbar-menubar[customizing="true"] {
     margin-top: -16px !important;
     margin-left: 100px !important;
}

#main-window[tabsontop="true"][sizemode="normal"] #toolbar-menubar[customizing="true"] {
     margin-right: 50px !important;
     margin-left: 76px !important;
     margin-top: -22px !important;
}

#main-window[tabsontop="true"][sizemode="normal"] #appmenu-button {
    margin-left: 6px !important;
    margin-top: 8px !important;
    margin-bottom: -4px !important;
}
#main-window[tabsontop="true"][sizemode="maximized"] #appmenu-button {
    margin-left: 3px !important;
    margin-top: 2px !important;
    margin-bottom: -4px !important;
}

#main-window[tabsontop="true"] #TabsToolbar {
    padding-left: 5px !important;
}
#main-window[tabsontop="true"] #appmenu-button {
    border: 0 none !important;
    padding: 9px 0 0 0 !important;
    height: 27px !important;
    min-width: 75px !important;
    width: 75px !important;
    margin: 7px 2px 2px 2px !important;
    -moz-border-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAcCAYAAABYvS47AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2RpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9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)) no-repeat -5px -4px !important;
    background-size: 75px 27px !important;
    box-shadow: none !important;
}

#main-window[tabsontop="true"] #appmenu-button:hover,
#main-window[tabsontop="true"] #appmenu-button[open] {
    background-image: -moz-radial-gradient(center bottom, farthest-side, rgba(252,240,89,.5) 10%, rgba(252,240,89,0) 70%),
                    -moz-radial-gradient(center bottom, farthest-side, rgb(236,133,0), rgba(255,229,172,0)),
                    -moz-linear-gradient(rgb(246,170,69), rgb(209,74,0) 95%)  !important;
}

#main-window[tabsontop="true"][privatebrowsingmode=temporary] #appmenu-button {
    background-image: -moz-linear-gradient(rgb(153, 38, 211), rgb(105, 19, 163) 95%) !important;
}

#main-window[tabsontop="true"][privatebrowsingmode=temporary] #appmenu-button:hover,
#main-window[tabsontop="true"][privatebrowsingmode=temporary] #appmenu-button[open]{
      background-image: -moz-radial-gradient(center bottom, farthest-side, rgba(240,193,255,.5) 10%, rgba(240,193,255,0) 70%),
                    -moz-radial-gradient(center bottom, farthest-side, rgb(192,81,247), rgba(236,172,255,0)),
                    -moz-linear-gradient(rgb(144,20,207), rgb(95,0,158) 95%) !important;
}

#main-window[tabsontop="true"] #appmenu-button .button-menu-dropmarker{
margin-right:8px !important;
margin-left:-3px !important;
margin-top:-10px !important;
}
#main-window[tabsontop="true"] #appmenu-button .button-text {
    margin-top:-10px !important;
    margin-left: 0px !important;
}

#main-window[tabsontop="true"] #appmenu-button-container {
     position: fixed !important;
     margin-top: -2px !important;
     width:76px !important;
}
</pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://atajsic.com/site/2011/08/firefox-appbutton-quickfix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MCDocs v10</title>
		<link>http://atajsic.com/site/2011/07/mcdocs-v10/</link>
		<comments>http://atajsic.com/site/2011/07/mcdocs-v10/#comments</comments>
		<pubDate>Mon, 04 Jul 2011 12:38:57 +0000</pubDate>
		<dc:creator>Andrew Tajsic</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Portfolio]]></category>

		<guid isPermaLink="false">http://atajsic.com/site/?p=297</guid>
		<description><![CDATA[VERSION 10! This is now what should be the final release of MCDocs. V7 Re organised code, as to give feedback on what may be causing the plugin to crash, Commented everything so others can understand my logic. (github). V7.1 Added motd-enabled to the config.yml V8 Added %include_file.txt Changed the way variables are processed. This allows [...]]]></description>
			<content:encoded><![CDATA[<h1><img src="http://atajsic.com/wiki/images/0/0e/Mcdocs.png" alt="[IMG]" /></h1>
<h1><strong><a rel="nofollow" href="../../wiki/index.php/MCDocs/Installation" target="_blank"><img src="http://i.imgur.com/osm3d.png" alt="[IMG]" /></a> </strong><strong><a rel="nofollow" href="../../wiki/index.php/MCDocs" target="_blank"><img src="http://i.imgur.com/8NWEO.png" alt="[IMG]" /></a> </strong><strong><a rel="nofollow" href="https://github.com/Tazzernator/Bukkit-Plugins/tree/master/MCDocs" target="_blank"><img src="http://i.imgur.com/NOZPK.png" alt="[IMG]" /></a></strong></h1>
<h2>VERSION 10!</h2>
<p>This is now what should be the final release of MCDocs.</p>
<p><a href="http://atajsic.com/site/wp-content/uploads/2011/07/lRELl.png"><img class="alignnone size-full wp-image-298" title="lRELl" src="http://atajsic.com/site/wp-content/uploads/2011/07/lRELl.png" alt="" width="711" height="1662" /></a></p>
<ul>
<li>V7
<ul>
<li>Re organised code, as to give feedback on what may be causing the plugin to crash,</li>
<li>Commented everything so others can understand my logic. (github).</li>
</ul>
</li>
<li>V7.1
<ul>
<li>Added motd-enabled to the config.yml</li>
</ul>
</li>
<li>V8
<ul>
<li>Added %include_file.txt</li>
<li>Changed the way variables are processed. This allows for nested files. [I N C E P T I O N] :P</li>
</ul>
</li>
<li>V9
<ul>
<li>Fixed a major issue with %include_file.txt</li>
<li>Re-arranged code for %include and more, future proof.</li>
<li>Multiple %include_file.txt now work if they are on the same line.</li>
<li>If a line is left empty after a %include is found on it, it will not be shown to the user. (the empty line)</li>
<li>added %news variable</li>
<li>added news-file to the config.yml &#8211; this determines which file is shown when using %news</li>
<li>added news-lines to the config.yml &#8211; this determines how many lines to show when using %news.</li>
<li>Fully updated my comments for git.</li>
</ul>
</li>
<li>9.1
<ul>
<li>&amp; can now be used so long as it isn&#8217;t &amp;a &#8211; &amp;z or &amp;0 &#8211; &amp;9</li>
<li>fixed %online_group.</li>
<li>Spaces in commands. Example: /help iconomy:help-iconomy.txt</li>
<li>New variable: %balance for iConomy users.</li>
</ul>
</li>
<li>9.2
<ul>
<li>Colour codes fixed, and made future proof.</li>
</ul>
</li>
<li>9.3
<ul>
<li>&amp;#! is replaced to a single &amp; for use with example  colour codes. &amp;#!1 &amp;#!2 will display &amp;1 or &amp;2 without  applying colours.</li>
<li>Fixed the crash for users using old versions of iConomy. Note it will not work with old versions. But it wont crash you anymore.</li>
<li>Moved the config saving to &#8220;in house&#8221; &#8211; included new instructional comments.</li>
</ul>
</li>
<li>9.3.1
<ul>
<li>Fixed the error where the MCDocs folder was not being created on initial startup.</li>
</ul>
</li>
<li>9.4
<ul>
<li>If a player uses a command in MCDocs, it is logged in the console.</li>
</ul>
</li>
<li>9.4.1
<ul>
<li>Command logging can now be toggled.</li>
</ul>
</li>
<li>9.5
<ul>
<li>Fixed a typo in the save method. This update is crucial.</li>
</ul>
</li>
<li>9.5.1
<ul>
<li>Updated how a name is displayed as to play nice with other plugins.</li>
</ul>
</li>
<li>10
<ul>
<li>Added online file support. You can now link to files online (<a rel="nofollow" href="http://example.com/filename.txt">http://example.com/filename.txt</a>)</li>
<li>Added a cache for online files. The length of time files are cached can be modified in the config.</li>
<li>You can now also %include_http://example.com/filename.txt</li>
<li>Fixed the command logging displaying multiple times by accident in some scenarios.</li>
<li>Fixed a potential error with %include</li>
<li>Fixed another potential error with %include</li>
</ul>
</li>
</ul>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://atajsic.com/site/2011/07/mcdocs-v10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Puppy!</title>
		<link>http://atajsic.com/site/2011/06/new-puppy-2/</link>
		<comments>http://atajsic.com/site/2011/06/new-puppy-2/#comments</comments>
		<pubDate>Wed, 22 Jun 2011 05:29:39 +0000</pubDate>
		<dc:creator>Andrew Tajsic</dc:creator>
				<category><![CDATA[Photos]]></category>

		<guid isPermaLink="false">http://atajsic.com/site/?p=292</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><a href="http://atajsic.com/site/wp-content/uploads/2011/06/IMG_4012-2-Large.jpg"><img class="alignnone size-medium wp-image-293" title="IMG_4012-2 (Large)" src="http://atajsic.com/site/wp-content/uploads/2011/06/IMG_4012-2-Large-640x426.jpg" alt="" width="640" height="426" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://atajsic.com/site/2011/06/new-puppy-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Puppy!</title>
		<link>http://atajsic.com/site/2011/06/new-puppy/</link>
		<comments>http://atajsic.com/site/2011/06/new-puppy/#comments</comments>
		<pubDate>Wed, 22 Jun 2011 05:27:32 +0000</pubDate>
		<dc:creator>Andrew Tajsic</dc:creator>
				<category><![CDATA[Photos]]></category>

		<guid isPermaLink="false">http://atajsic.com/site/?p=289</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><a href="http://atajsic.com/site/wp-content/uploads/2011/06/IMG_3974-3-Large.jpg"><img class="alignnone size-medium wp-image-290" title="IMG_3974-3 (Large)" src="http://atajsic.com/site/wp-content/uploads/2011/06/IMG_3974-3-Large-640x426.jpg" alt="" width="640" height="426" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://atajsic.com/site/2011/06/new-puppy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

