<?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>Kastang</title>
	<atom:link href="http://kastang.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://kastang.com</link>
	<description>Random Compilations</description>
	<lastBuildDate>Mon, 01 Mar 2010 04:26:12 +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>Star Trek NX-01 1/1000 Scale Model</title>
		<link>http://kastang.com/blog/2010/02/star-trek-nx-01-model/</link>
		<comments>http://kastang.com/blog/2010/02/star-trek-nx-01-model/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 04:26:12 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[Models]]></category>
		<category><![CDATA[Model]]></category>
		<category><![CDATA[NX-01 Kit]]></category>
		<category><![CDATA[Star Trek]]></category>

		<guid isPermaLink="false">http://kastang.com/?p=343</guid>
		<description><![CDATA[Today I built my 1/1000th scale Star Trek Enterprise NX-01 model kit that has been sitting on my desk for a few weeks. As I am new to model building, I was originally hesitant to purchase this kit after reading the not so great Amazon reviews. Eventually I decided to take the risk and purchase [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://kastang.com/blog/wp-content/uploads/2010/02/IMG_0895.jpg"><img class="alignleft size-medium wp-image-350" style="margin-top: 2px; margin-bottom: 2px; margin-left: 5px; margin-right: 5px; border: 1px solid black;" title="NX-01 Model Box" src="http://kastang.com/blog/wp-content/uploads/2010/02/IMG_0895-300x225.jpg" alt="" width="300" height="225" /></a>Today I built my <a href="http://www.amazon.com/gp/product/B001BOZVD0?ie=UTF8&amp;tag=kauibl-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=B001BOZVD0">1/1000th scale Star Trek Enterprise NX-01</a><img style="border: none !important; margin: 0px !important;" src="http://www.assoc-amazon.com/e/ir?t=kauibl-20&amp;l=as2&amp;o=1&amp;a=B001BOZVD0" border="0" alt="" width="1" height="1" /> model kit that has been sitting on my desk for a few weeks. As I am new to model building, I was originally hesitant to purchase this kit after reading the not so great Amazon reviews. Eventually I decided to take the risk and purchase it because the NX-01 is one of my favorite ships from the Enterprise series. This model is the first Star Trek related model I have built, but certainly won&#8217;t be the last. Other then a few hiccups, the few hours it took to assemble were enjoyable.</p>
<p><strong>What I liked:</strong></p>
<ul>
<li>The attention to detail is very impressive. Round2 really took their time to capture as much of the NX-01 detail as possible.</li>
<li>Most of the pieces in the kit are numbered somewhere on the actual piece.</li>
<li>The kit includes extras of the extremely small pieces. This was a live saver for myself personally. While assembling the kit, I dropped a piece that I could hardly see in my hand on the rug, there was no chance I would find that piece. Luckily that piece in particular had an extra included in the kit.</li>
<li>The kit includes decals for both the Enterprise (NX-01) and Columbia (NX-02). The different deflector dish for the NX-02 is also included in the kit.</li>
<li>The directions are on one large sheet of paper and for the most part very easy to understand. On the back side of the direction sheet is the decal instructions and placement diagrams. They are also clear and easy to understand, no need to guess where to place the decals. The direction sheet also includes an optional color chart for the minor details on the ship to add more details.</li>
<li>For the most part, the pieces snap together without any issue.</li>
</ul>
<p><strong>What I didn&#8217;t like:</strong></p>
<ul>
<li>The kit does not detail how to paint the pattern for the saucer displayed on the box.</li>
<li>While the ship is possible to build without glue, a few pieces almost require it. For example, the nacelles will not stay in place without the addition of glue.</li>
</ul>
<p><strong>Some Tips:</strong></p>
<ul>
<li>A modeling knife and tweezers are an absolute must. Many of the pieces in this kit are less then 1/8th of an inch long. They are very difficult to handle especially if you have fat fingers like I do. Some holes on the saucer are not completely cut through, they need to be cut with the modeling knife before inserting the pieces.</li>
<li>Modeling glue is also handy. Even though the kit says it is not required, some items such as the nacelles really need to be glued to keep them from falling off if the slightest movment to the model happens.</li>
<li>The nacelles go on after the top and bottom saucer are snapped together. (This was the only confusion on the directions I experienced)</li>
<li>Don&#8217;t try to force any piece in, most should go in without issue. If you put a considerable amount of pressure on any piece, there is a good chance you will break the saucer. If you are having trouble fitting any pieces in, try trimming it with a modeling knife.</li>
</ul>
<p><strong>Additional Pictures:</strong></p>
<p><strong>
<a href='http://kastang.com/blog/2010/02/star-trek-nx-01-model/img_0895/' title='NX-01 Model Box'><img width="150" height="150" src="http://kastang.com/blog/wp-content/uploads/2010/02/IMG_0895-150x150.jpg" class="attachment-thumbnail" alt="" title="NX-01 Model Box" /></a>
<a href='http://kastang.com/blog/2010/02/star-trek-nx-01-model/img_0903/' title='NX-01 Contents'><img width="150" height="150" src="http://kastang.com/blog/wp-content/uploads/2010/02/IMG_0903-150x150.jpg" class="attachment-thumbnail" alt="" title="NX-01 Contents" /></a>
<a href='http://kastang.com/blog/2010/02/star-trek-nx-01-model/img_0909/' title='Complete NX-01'><img width="150" height="150" src="http://kastang.com/blog/wp-content/uploads/2010/02/IMG_0909-150x150.jpg" class="attachment-thumbnail" alt="" title="Complete NX-01" /></a>
<a href='http://kastang.com/blog/2010/02/star-trek-nx-01-model/img_0906/' title='IMG_0906'><img width="150" height="150" src="http://kastang.com/blog/wp-content/uploads/2010/02/IMG_0906-150x150.jpg" class="attachment-thumbnail" alt="" title="IMG_0906" /></a>
<a href='http://kastang.com/blog/2010/02/star-trek-nx-01-model/img_0907/' title='IMG_0907'><img width="150" height="150" src="http://kastang.com/blog/wp-content/uploads/2010/02/IMG_0907-150x150.jpg" class="attachment-thumbnail" alt="" title="IMG_0907" /></a>
<a href='http://kastang.com/blog/2010/02/star-trek-nx-01-model/img_0908/' title='IMG_0908'><img width="150" height="150" src="http://kastang.com/blog/wp-content/uploads/2010/02/IMG_0908-150x150.jpg" class="attachment-thumbnail" alt="" title="IMG_0908" /></a>
</p>
<p></strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p>Overall, for the price of the kit I am not disappointed with it one bit. Fully assembled, the model is around 9 inches long. I am still deciding if I want to paint the model, for that reason I have decided not put the decals on yet. If I do decide to paint it and it turns out nicely, I may buy the same kit again and put the Columbia deflector dish and decals on it.</p>
<p>My next project will most likely be the much larger <a href="http://www.amazon.com/gp/product/B001J8R7QW?ie=UTF8&amp;tag=kauibl-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=B001J8R7QW">1/350th Star Trek USS Enterprise A</a><img style="border: none !important; margin: 0px !important;" src="http://www.assoc-amazon.com/e/ir?t=kauibl-20&amp;l=as2&amp;o=1&amp;a=B001J8R7QW" border="0" alt="" width="1" height="1" /> (around 32&#8243; assembled) unless I can get my hands on a larger scale model of the NX-01. I estimate my next project to take a few months to complete as I plan to attempt to incorporate lighting in it if at all possible.</p>
]]></content:encoded>
			<wfw:commentRss>http://kastang.com/blog/2010/02/star-trek-nx-01-model/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>World of Warcraft Account Security</title>
		<link>http://kastang.com/blog/2010/01/world-of-warcraft-account-security/</link>
		<comments>http://kastang.com/blog/2010/01/world-of-warcraft-account-security/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 03:28:42 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[WoW]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[World of Warcraft]]></category>

		<guid isPermaLink="false">http://kastang.com/?p=286</guid>
		<description><![CDATA[Recently there has been discussions in my Guild regarding World of Warcraft account security. I believe this is a perfect opportunity to give my opinion on measures that I believe must be taken to ensure increased general security of your computer along with your World of Warcraft account.
One thing I must make clear is there is no such [...]]]></description>
			<content:encoded><![CDATA[<p>Recently there has been discussions in my Guild regarding World of Warcraft account security. I believe this is a perfect opportunity to give my opinion on measures that I believe must be taken to ensure increased general security of your computer along with your World of Warcraft account.</p>
<p>One thing I must make clear is there is no such thing as a completely secure networked computer. The suggestions listed below are simply extra precautions that must be taken to minimize the chance of your computer being compromised.</p>
<p><em>* &#8211; Applies to World of Warcraft only.</em></p>
<p><strong>G</strong><strong>et an Authenticator*<br />
<span style="font-weight: normal;">Having an Authenticator will virtually eliminate the chance of your account being compromised. The Blizzard Authenticator costs $6.50 from the <a href="http://us.blizzard.com/store/search.xml?rhtml=y&amp;q=authenticator">Blizzard Store</a>. If you are an iPhone/iTouch user, you can download the <a href="http://itunes.apple.com/us/app/battle-net-mobile-authenticator/id306862897?mt=8">Mobile Authenticator</a> for free. Having an Authenticator is no excuse not to do the remaining suggestions.</span></strong></p>
<p><strong>Web Browser<br />
<span style="font-weight: normal;">Use a secure browser. For the sake of speaking, that pretty much means anything besides Internet Explorer. My personal recommendation is <a href="http://www.google.com/chrome">Google Chrome</a></span><a href="http://www.google.com/chrome"> </a><span style="font-weight: normal;">or <a href="http://getfirefox.com">Firefox</a>. For each, I highly recommend the <a href="https://chrome.google.com/extensions/detail/bhmmomiinigofkjcapegjjndpbikblnp">WOT</a> plugin.</span></strong></p>
<blockquote><p>WOT’s safe browsing tool warns you about risky sites that can’t be trusted: Online shops that cheat customers; download sites that deliver malware; sites that send spam; and those with inappropriate content for kids.</p></blockquote>
<p>Web of Trust provides an additional layer of security when visiting websites. WOT is community managed, meaning if someone spots a phishing website, they can report it. The report is upload to WOT servers, if you try to access the website that has received a poor rating, WOT will block you from going to the website without your express permission. If you use Firefox, in addition to <a href="https://addons.mozilla.org/en-US/firefox/addon/3456">WOT</a>, I also highly suggest <a href="https://addons.mozilla.org/en-US/firefox/addon/722">NoScript</a>. Currently, Google Chrome does not have a  NoScript extension available.</p>
<p><strong>Passwords<br />
<span style="font-weight: normal;">Your World of Warcraft password should be entirely different from any other service you use. Generally speaking, a password should be at least 8 characters long with upper/lower case letters, numbers, and symbols. Your World of Warcraft password (along with other sensitive passwords) should be changed at least once a month. It takes 2 minutes to do, don&#8217;t be lazy. An example of a good password would be &#8216;I3n&amp;$VW49*&#8217;.</span></strong></p>
<p><span style="font-weight: normal;"><strong>Anti-Virus, etc.<br />
<span style="font-weight: normal;">Windows users &#8211; Having AV software is not full proof. Consider it just another way to decrease the chances of having malicious software installed on your computer (for a long period of time). I personally recommend <a href="http://avira.com">Avira</a> or <a href="http://eset.com">NOD32</a>. Along with AV software, I also recommend <a href="http://www.safer-networking.org/index2.html">Spybot</a> and <a href="http://www.malwarebytes.org/">Malwarebytes</a> (Free Edition is fine). Malwarebytes is specifically targeted to Malware, harmful software that is generally not picked up by AV software. AV software should be set to automatically update and run daily (Both NOD32 and Avira provide this option, as do many other AV&#8217;s such as AVG and Avast).  I would recommend running anti-malware software at minimum once a week. </span></strong></span></p>
<p><span style="font-weight: normal;"><strong><span style="font-weight: normal;">For Mac(OSX)/Linux users, The options for security software is rather slim. I can recommend <a href="http://www.clamxav.com/">ClamXav</a>(Mac) and <a href="http://www.clamav.net/">Clamav</a>(Linux) for virus scanning. I also recommend <a href="http://rkhunter.sourceforge.net/">rkhunter</a> for OSX/Linux systems. Generally speaking, there is not much more that can be done for OSX systems in terms of AV software. Sadly, Apple has spread false information on commercials by suggesting OSX is immune to viruses, until OSX suffers a mass attack, it is unlikely much further production of AV software will occur. As for Linux systems, there are other precautions that can be taken, but I will assume if you use Linux, you should know how to properly secure your system.</span></strong></span></p>
<p><span style="font-weight: normal;"><strong><span style="font-weight: normal;">Note: Debian based distrobutions can run the follow command to download rkhunter and clamav:</span></strong></span></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> clamav rkhunter
<span style="color: #666666; font-style: italic;">#rkhunter -c to run</span>
<span style="color: #666666; font-style: italic;">#clamscan -r in '/' directory to run</span></pre></div></div>

<p><span style="font-weight: normal;"><span style="font-weight: normal;"><strong>Updates<br />
<span style="font-weight: normal;">Windows users &#8211; Automatic Updates should be turned on. Keep your system updated at all times. Microsoft is constantly releasing security patches to fix potential vulnerabilities in your system. If you are still using XP (or anything older) update to Windows 7 as soon as possible. When updates for your system become available, do not postpone restarting your computer to take effect, do it immediately when it asks. </span></strong></span></span></p>
<p>OSX users &#8211; By Default, OSX will check for System Updates once a week (This setting can be changed in System Preferences -&gt; Software Update). Install updates whenever they are available.</p>
<p>Linux users &#8211; If you are using a Debian based system, the following commands can be executed from a Terminal:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> update
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> upgrade</pre></div></div>

<p>Other non-Debian based Distributions should consult the proper documentation.</p>
<p><strong>Common Sense<br />
<span style="font-weight: normal;">Be smart when you use your computer. </span> </strong></p>
<p><strong></p>
<ul>
<li><span style="font-weight: normal;">One precaution that should be taken is when reading email. Never click on links masked by anchor tags (HTML), especially World of Warcraft related emails. If you receive an email from Blizzard asking you to log in to your account, or a beta key, it is most likely a scam.</span></li>
<li><span style="font-weight: normal;">When using your laptop on a public network, be very careful to use SSL connections while logging in/reading email or any other services. If you are on a public network, you should always assume that someone is watching and logging everything you do (this includes cleartext logins). For maximum security, I recommend always using hardwired connection wherever possible (this includes on a home network also). </span></li>
<li><span style="font-weight: normal;">If at any point you find your computer acting strange, immediately stop what you are doing, update and run your protection software.</span></li>
<li><span style="font-weight: normal;">If your World of Warcraft account is compromised, and virus scans show up nothing on your computer. Do not assume one is not there. Change the password for your email and WoW account on a different computer, then work on finding out what caused the security breach on your WoW computer. </span></li>
</ul>
<p></strong></p>
<p><span style="font-weight: normal;"><strong>Conclusion<br />
<span style="font-weight: normal;">Everything above may seem like a lot to take in at first, especially if you have little to no protection on your computer to begin with. The hour or two it will take to setup will be well worth it if your World of Warcraft account becomes compromised. Not only will following my suggestions increase the overall security of your system, it will also save you from possible embarrassment if your account becomes compromised. Once you get everything setup, it should not take more then a half hour of manual work per week to keep your system up to date and secure. </span><span style="font-weight: normal;">I will repeat again, having this security software in place will not make your computer full proof against attack. The above software will only minimize the chances of your system becoming compromised.</span></strong></span></p>
]]></content:encoded>
			<wfw:commentRss>http://kastang.com/blog/2010/01/world-of-warcraft-account-security/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wintergrasp Tokens &#8211; Possible to Have Over 100</title>
		<link>http://kastang.com/blog/2010/01/wintergrasp-tokens/</link>
		<comments>http://kastang.com/blog/2010/01/wintergrasp-tokens/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 03:32:38 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[WoW]]></category>
		<category><![CDATA[Wintergrasp]]></category>
		<category><![CDATA[World of Warcraft]]></category>

		<guid isPermaLink="false">http://kastang.com/?p=278</guid>
		<description><![CDATA[Not sure if this is common knowledge or not, but today I found out it is possible to have more then 100 Wintergrasp Tokens. I assumed the limit was 100 just like all other battlegrounds. After tonights victory in Wintergrasp I noticed that I had 101 tokens. I looked on WowHead to verify, it appears [...]]]></description>
			<content:encoded><![CDATA[<p>Not sure if this is common knowledge or not, but today I found out it is possible to have more then 100 Wintergrasp Tokens. I assumed the limit was 100 just like all other battlegrounds. After tonights victory in Wintergrasp I noticed that I had 101 tokens. I looked on WowHead to verify, it appears the limit for WG tokens is 1000. Makes me wonder if badges will be mailed if someone actually hits the 1000 badge cap.</p>
<p><a href="http://kastang.com/blog/wp-content/uploads/2010/01/WG_Tokens.png"><img class="size-medium wp-image-277 alignnone" title="WG_Tokens" src="http://kastang.com/blog/wp-content/uploads/2010/01/WG_Tokens-228x300.png" alt="" width="228" height="300" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://kastang.com/blog/2010/01/wintergrasp-tokens/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Parsing the WoW Armory – Part 2.1</title>
		<link>http://kastang.com/blog/2010/01/parsing-the-wow-armory-%e2%80%93-part-2-1/</link>
		<comments>http://kastang.com/blog/2010/01/parsing-the-wow-armory-%e2%80%93-part-2-1/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 02:16:06 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[WoW]]></category>
		<category><![CDATA[Armory]]></category>
		<category><![CDATA[Parsing]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[World of Warcraft]]></category>

		<guid isPermaLink="false">http://kastang.com/?p=266</guid>
		<description><![CDATA[I forgot to post this information in Part 2 of Parsing the WoW Armory. When parsing the guild-info.xml file, some fields are represented by  numerical values. Below is conversion table from XML numerical representations to actual values.
genderId:
0 &#8211; Male
1 &#8211; Female
raceId:
1 &#8211; Human
2 &#8211;  Orc
3 &#8211; Dwarf
4 &#8211; Night Elf
5 &#8211; Undead
6 &#8211; Tauren
7 [...]]]></description>
			<content:encoded><![CDATA[<p>I forgot to post this information in Part 2 of Parsing the WoW Armory. When parsing the guild-info.xml file, some fields are represented by  numerical values. Below is conversion table from XML numerical representations to actual values.</p>
<p><strong>genderId:</strong><br />
0 &#8211; Male<br />
1 &#8211; Female</p>
<p><strong>raceId:</strong><br />
1 &#8211; Human<br />
2 &#8211;  Orc<br />
3 &#8211; Dwarf<br />
4 &#8211; Night Elf<br />
5 &#8211; Undead<br />
6 &#8211; Tauren<br />
7 &#8211; Gnome<br />
8 &#8211; Troll<br />
10 &#8211; Blood Elf<br />
11 &#8211; Draenei</p>
<p><strong>classId:</strong><br />
1 &#8211; Warrior<br />
2 &#8211; Paladin<br />
3 &#8211; Hunter<br />
4 &#8211; Rogue<br />
5 &#8211; Priest<br />
6 &#8211; Death Knight<br />
7 &#8211; Shaman<br />
8 &#8211; Mage<br />
9 &#8211; Warlock<br />
11 &#8211; Druid</p>
<p>For easy converting from numerical to actual values I would recommend using a PHP array(). Below is an example of the Sorted Guild list from Part 2 with the addition of the class of each character included.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span> ?php
<span style="color: #000000; font-weight: bold;">function</span> sortedList<span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$classArray</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Warrior&quot;</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">2</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Paladin&quot;</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">3</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Hunter&quot;</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">4</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Rogue&quot;</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">5</span> <span style="color: #339933;">=&gt;</span> 
          <span style="color: #0000ff;">&quot;Priest&quot;</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">6</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Death Knight&quot;</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">7</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Shaman&quot;</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">8</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Mage&quot;</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">9</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Warlock&quot;</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">11</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Druid&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000088;">$array</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$char</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$array</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> getName<span style="color: #009900;">&#40;</span><span style="color: #000088;">$char</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot; - &quot;</span><span style="color: #339933;">.</span>getLevel<span style="color: #009900;">&#40;</span><span style="color: #000088;">$char</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot; - &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$classArray</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#40;</span>int<span style="color: #009900;">&#41;</span>getClassId<span style="color: #009900;">&#40;</span><span style="color: #000088;">$char</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&lt;br /&gt;&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #990000;">sort</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$array</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #b1b100;">return</span> <span style="color: #000088;">$array</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://kastang.com/blog/2010/01/parsing-the-wow-armory-%e2%80%93-part-2-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Parsing the WoW Armory – Part 2</title>
		<link>http://kastang.com/blog/2010/01/parsing-the-wow-armory-%e2%80%93-part-2/</link>
		<comments>http://kastang.com/blog/2010/01/parsing-the-wow-armory-%e2%80%93-part-2/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 00:50:04 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[WoW]]></category>
		<category><![CDATA[Armory]]></category>
		<category><![CDATA[Parsing]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[World of Warcraft]]></category>

		<guid isPermaLink="false">http://kastang.com/?p=256</guid>
		<description><![CDATA[I chose to expand on Part 1 by providing a function file that provides access to all available character related information from the guild-info.xml file from the WoW Armory. The guild-info.xml file provides the following information for the entire guild: Achievement Points, Class ID, Gender ID, Level, Character Name, Race ID, Guild Rank, URL to [...]]]></description>
			<content:encoded><![CDATA[<p>I chose to expand on Part 1 by providing a function file that provides access to all available character related information from the guild-info.xml file from the WoW Armory. The guild-info.xml file provides the following information for the entire guild: Achievement Points, Class ID, Gender ID, Level, Character Name, Race ID, Guild Rank, URL to Character Page. </p>
<p>Some neat things can be calculated by using the available resources. I provided three examples in the code below: Average achievement points, average level, and a sorted list of all characters in the guild (also provided in Part 1).</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span> ?php
&nbsp;
<span style="color: #990000;">ini_set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;user_agent&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.0.2) Gecko/20121223 Ubuntu/9.25 (jaunty) Firefox/3.8&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
&nbsp;
<span style="color: #666666; font-style: italic;">//Average guild achievement score. </span>
<span style="color: #000000; font-weight: bold;">function</span> achAverage<span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$counter</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$total</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$p</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$total</span> <span style="color: #339933;">+=</span> getAchPoints<span style="color: #009900;">&#40;</span><span style="color: #000088;">$p</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$counter</span><span style="color: #339933;">++;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #b1b100;">return</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$total</span><span style="color: #339933;">/</span><span style="color: #000088;">$counter</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//Sorted Guild Characters Names/Levels in ABC Order. </span>
<span style="color: #000000; font-weight: bold;">function</span> sortedList<span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$array</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$char</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$array</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> getName<span style="color: #009900;">&#40;</span><span style="color: #000088;">$char</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot; - &quot;</span><span style="color: #339933;">.</span>getLevel<span style="color: #009900;">&#40;</span><span style="color: #000088;">$char</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&lt;br&gt;&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #990000;">sort</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$array</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #b1b100;">return</span> <span style="color: #000088;">$array</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//Returns the average level of the entire guild. </span>
<span style="color: #000000; font-weight: bold;">function</span> avgLevel<span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$counter</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$total</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$p</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$total</span> <span style="color: #339933;">+=</span> getLevel<span style="color: #009900;">&#40;</span><span style="color: #000088;">$p</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$counter</span><span style="color: #339933;">++;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #b1b100;">return</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$total</span><span style="color: #339933;">/</span><span style="color: #000088;">$counter</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009933; font-style: italic;">/**
 * Other functions that can be used to pull information
 * from the XML sheet. Use these functions to expand
 * and create other functions. 
 **/</span>
<span style="color: #000000; font-weight: bold;">function</span> getAchPoints<span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">return</span> <span style="color: #000088;">$x</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'achPoints'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">function</span> getClassId<span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">return</span> <span style="color: #000088;">$x</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'classId'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">function</span> getGenderId<span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">return</span> <span style="color: #000088;">$x</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'genderId'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">function</span> getLevel<span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">return</span> <span style="color: #000088;">$x</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'level'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">function</span> getName<span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">return</span> <span style="color: #000088;">$x</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">function</span> getRaceId<span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">return</span> <span style="color: #000088;">$x</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'raceId'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">function</span> getRank<span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">return</span> <span style="color: #000088;">$x</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'rank'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">function</span> getURL<span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">return</span> <span style="color: #000088;">$x</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'url'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>New functions can be created by using the get functions at the bottom of the file. Using the get functions and sample functions, it should be easy enough to expand on what I have. </p>
<p>The below code is an example of how to use the function code from above.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span> ?php
<span style="color: #666666; font-style: italic;">//Functions file. </span>
<span style="color: #b1b100;">include</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'guild.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//Set Server/Guild Here. </span>
<span style="color: #000088;">$server</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Eitrigg&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$guild</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;We+Know&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$url</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'http://www.wowarmory.com/guild-info.xml?r='</span><span style="color: #339933;">.</span><span style="color: #000088;">$server</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&amp;gn='</span><span style="color: #339933;">.</span><span style="color: #000088;">$guild</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$xml</span> <span style="color: #339933;">=</span> <span style="color: #990000;">simplexml_load_file</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$url</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$xml</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$xml</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">guildInfo</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">guild</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">members</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">character</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//-------ABOVE THIS LINE IS REQUIRED----------</span>
&nbsp;
&nbsp;
<span style="color: #666666; font-style: italic;">//Below are some possible ways to use the functions. </span>
&nbsp;
<span style="color: #009933; font-style: italic;">/** Prints Without Array Numbers **/</span>
<span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #000088;">$array</span> <span style="color: #339933;">=</span> sortedList<span style="color: #009900;">&#40;</span><span style="color: #000088;">$xml</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000088;">$array</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">!=</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$array</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009933; font-style: italic;">/** Alternative Implementation, Prints with Array Numbers
print_r(sortedList($xml));
**/</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//Displays the average number of guild achievements. </span>
<span style="color: #b1b100;">echo</span> achAverage<span style="color: #009900;">&#40;</span><span style="color: #000088;">$xml</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&lt;br /&gt;&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//Displays the average level of the guild. </span>
<span style="color: #b1b100;">echo</span> avgLevel<span style="color: #009900;">&#40;</span><span style="color: #000088;">$xml</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://kastang.com/blog/2010/01/parsing-the-wow-armory-%e2%80%93-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Parsing the WoW Armory &#8211; Part 1</title>
		<link>http://kastang.com/blog/2010/01/parsing-the-wow-armory-part-1/</link>
		<comments>http://kastang.com/blog/2010/01/parsing-the-wow-armory-part-1/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 22:17:35 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[WoW]]></category>
		<category><![CDATA[Armory]]></category>
		<category><![CDATA[Parsing PHP]]></category>

		<guid isPermaLink="false">http://kastang.com/?p=234</guid>
		<description><![CDATA[Today I pulled a list of every character in We Know from the WoW Armory in 5 lines of code.

&#60; ?PHP
ini_set&#40;&#34;user_agent&#34;, &#34;Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.0.2) Gecko/20121223 Ubuntu/9.25 (jaunty) Firefox/3.8&#34;&#41;;
$url='http://www.wowarmory.com/guild-info.xml?r=Eitrigg&#38;gn=We+Know';
$xml = simplexml_load_file&#40;$url&#41;;
&#160;
foreach&#40;$xml-&#62;guildInfo-&#62;guild-&#62;members-&#62;character as $char&#41;
        echo $char&#91;'name'&#93;.&#34; - &#34;.$char&#91;'level'&#93;.&#34;&#60;br /&#62;&#34;;
?&#62;

I never realized how easy is was to [...]]]></description>
			<content:encoded><![CDATA[<p>Today I pulled a list of every character in We Know from the WoW Armory in 5 lines of code.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span> ?PHP
<span style="color: #990000;">ini_set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;user_agent&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.0.2) Gecko/20121223 Ubuntu/9.25 (jaunty) Firefox/3.8&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$url</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'http://www.wowarmory.com/guild-info.xml?r=Eitrigg&amp;gn=We+Know'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$xml</span> <span style="color: #339933;">=</span> <span style="color: #990000;">simplexml_load_file</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$url</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$xml</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">guildInfo</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">guild</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">members</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">character</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$char</span><span style="color: #009900;">&#41;</span>
        <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$char</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot; - &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$char</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'level'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&lt;br /&gt;&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>I never realized how easy is was to pull information from the WoW Armory until now. My method has its obvious flaws, such as the output is in no obvious order. I modified my original script to sort the list in ABC order and added a $server and $guild variable to allow for easy modification. Below is a more refined version, in under 15 lines of code the pulled list is sorted in ABC order and displayed.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span> ?PHP
<span style="color: #990000;">ini_set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;user_agent&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.0.2) Gecko/20121223 Ubuntu/9.25 (jaunty) Firefox/3.8&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$server</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Eitrigg&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$guild</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;We+Know&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$url</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'http://www.wowarmory.com/guild-info.xml?r='</span><span style="color: #339933;">.</span><span style="color: #000088;">$server</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&amp;gn='</span><span style="color: #339933;">.</span><span style="color: #000088;">$guild</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$xml</span> <span style="color: #339933;">=</span> <span style="color: #990000;">simplexml_load_file</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$url</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$array</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$xml</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">guildInfo</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">guild</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">members</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">character</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$char</span><span style="color: #009900;">&#41;</span>
        <span style="color: #000088;">$array</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$char</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot; - &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$char</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'level'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&lt;br /&gt;&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #990000;">sort</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$array</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$i</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$array</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">!=</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$array</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$i</span><span style="color: #339933;">++;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>This script is just a quick and dirty way to accomplish the simple task of pulling names from the WoW Armory. I would recommend against using this in a production environment without some sort of cache/database option implemented.</p>
]]></content:encoded>
			<wfw:commentRss>http://kastang.com/blog/2010/01/parsing-the-wow-armory-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WoW on Linux</title>
		<link>http://kastang.com/blog/2010/01/wow-on-linux/</link>
		<comments>http://kastang.com/blog/2010/01/wow-on-linux/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 06:01:42 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[WoW]]></category>
		<category><![CDATA[Wine]]></category>
		<category><![CDATA[World of Warcraft]]></category>

		<guid isPermaLink="false">http://kastang.com/?p=216</guid>
		<description><![CDATA[Several months ago I switched to Ubuntu as my primary OS. The main reason I continued to use Windows at all was World of Warcraft. After much trial and error I have World of Warcraft running at a very acceptable performance rate on my system. Well enough to delete my Windows partition entirely from my hard drive. [...]]]></description>
			<content:encoded><![CDATA[<p>Several months ago I switched to Ubuntu as my primary OS. The main reason I continued to use Windows at all was World of Warcraft. After much trial and error I have World of Warcraft running at a very acceptable performance rate on my system. Well enough to delete my Windows partition entirely from my hard drive. I recently posted on <a href="http://www.reddit.com/r/wow/comments/akuvh/i_play_wow_on_ubuntu_any_questions/">/r/wow</a> on Reddit about playing World of Warcraft. Quite a few questions were asked. I will cover some of the more common ones in greater detail.</p>
<ul>
<li><strong>Will my old AddOns work?<br />
<span style="font-weight: normal;">Short Answer: Yes.<br />
<strong><br />
<span style="font-weight: normal;">Long Answer: Yes. Wine runs World of Warcraft. Essentially AddOns add to the existing functionality of WoW. WoW AddOns cannot communicate outside of World of Warcraft. Therefore there should be no compatibility issues. The people over at <a href="http://wowmatrix.com">WoWMatrix</a> even have a native Linux client available. The WoWMatrix client makes updating AddOns as easy as clicking a button. Windows based WoW AddOn clients such as the Curse Client may also work using Wine, I have not tested though.</p>
<p></span></strong></span></strong></li>
<li><strong>Should I install WoW using CD, Installer, or Copy?<br />
<span style="font-weight: normal;">If you have an existing WoW install on another partition, hard drive, or computer I would highly recommend directly copying the entire WoW folder over to your Linux partition. It is by far the fastest way. My second recommendation would be to use the WoW universal installer. The universal installer downloaded the entire game over the internet, eliminating the need for CDs. Depending on your internet connection speed, expect this to take at least several hours. Installing from the CDs should be a final resort. WoW installation over CDs can sometimes be very tricky and time consuming. The extra effort is not worth the extra time the universal installer will take. If you must go this route, and if you have issues with installing from the disks, try copying all data from each disk to one folder on your hard drive and run the installer from that folder. This is a work around for a common problem while installing via the CD.</p>
<p></span></strong></li>
<li><strong>Hardware<br />
<span style="font-weight: normal;">Hardware selection is very important, especially while using Linux to play WoW. Generally speaking 4GB of RAM and a dual core processor is a minimum. The graphics card is especially important. Currently a NVidia card will perform better then a comparable ATI card under Linux. This is because ATIs Linux drivers just aren&#8217;t that good. There has <strong><span style="font-weight: normal;">certainly been improvements in the past year, though they have not quite caught up to NVidias Linux drivers quite yet. Do not be scared away if you have an ATI card though. I personally use an ATI Radeon 4870 1GB card. I play on ultra settings and I get 60+FPS while questing/doing dailies. ~40FPS doing BGs other then WG. The biggest downfall of this card is when raiding in &gt;15 groups. Often in large groups I will get between 20-30FPS, sometimes lower. I usually lower my Video settings to medium while doing these activities. Often it is not noticeable, in such a large group it is difficult to determine FPS.</p>
<p>My Hardware: 4GB RAM, AMD Phenom II x4 940(4 x 3.0GHz), ATI Radeon 4870.</p>
<p>Something else worth mentioning is the lack of a hardware cursor with OpenGL. This means that the mouse will become sluggish if FPS drop below 30FPS. There is a patch for Wine available that will use the systems hardware cursor. Some functionality is lost though, such as hovering over tooltips. My primary character is a Warlock. I have most my keys bound, making the mouse issue trivial at best. The mouse issue should not be an issue for anyone besides healers or anyone who is a clicker.</p>
<p></span></strong></span></strong></li>
<li><strong><span style="font-weight: normal;"><strong>Stablilty<br />
<span style="font-weight: normal;">Stability is the same as would be expected using Windows. I rarely ever have WoW/Wine freeze while playing. If you have issues, I would recommend looking for other possibilities such as bad ram, or AddOns conflicting. I would also recommend running a repair on WoW. I have not run into a Wine specific bug for several months.</p>
<p></span></strong></span></strong></li>
<li><strong><span style="font-weight: normal;"><strong><span style="font-weight: normal;"> </span>Tips?<br />
<span style="font-weight: normal;">I have a few tips that hopefully will ease the tension of switching from Windows to Linux for World of Warcraft. Most importantly, make sure you have the latest GPU driver available for your card. Drivers are always improving, often fixing issues, and increasing performance. Also make sure all desktop effects are off while running WoW. If you are using Ubuntu/Gnome &#8211; Goto: System &gt; Preferences &gt; Appearance &#8212;&gt; Click on Visual Effects, and select None to turn off all effects. This is important, more times then not, WoW/Wine will not run at all with any desktop effects enabled, if it does &#8211; expect less then desirable performance.</p>
<p></span></strong></span></strong><strong><span style="font-weight: normal;">I would also suggest using another desktop manager other then GNOME or KDE. Both of these are heavy on resources, when playing WoW every resource is vital. My personal recommendation would either be to use just a Window Manager (OpenBox, FluxBox, etc) or a lightweight desktop environment such as XFCE.</span><br />
</strong></li>
</ul>
<p>The journey to World of Warcraft on Linux will most likely be difficult in the beginning. Don&#8217;t expect everything to work flawlessly the first time around. Don&#8217;t give up, the effort will be well worth it. I hope the answered questions above will help to determine if WoW/Linux is right for your system. There are already many great installation guides floating around the internet, I would recommend the installation guide on <a href="http://www.wowwiki.com/World_of_Warcraft_functionality_on_Wine">WoWWiki</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kastang.com/blog/2010/01/wow-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mangler &#8211; A native Linux Ventrilo Client!</title>
		<link>http://kastang.com/blog/2010/01/mangler-a-native-ventrilo-client/</link>
		<comments>http://kastang.com/blog/2010/01/mangler-a-native-ventrilo-client/#comments</comments>
		<pubDate>Sat, 09 Jan 2010 21:03:21 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ventrilo]]></category>
		<category><![CDATA[World of Warcraft]]></category>
		<category><![CDATA[WoW]]></category>

		<guid isPermaLink="false">http://kastang.com/?p=204</guid>
		<description><![CDATA[Mangler is an open source VOIP client capable of connecting to Ventrilo 3.x servers. It is capable of performing almost all standard user functionality found in a Windows Ventrilo client. Mangler is developed and maintained by Eric Kilfoil and Daniel Sloof. -mangler.org
In my experience, using Ventrilo on Linux (using Wine) has always been troublesome at [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>Mangler is an open source VOIP client capable of connecting to Ventrilo 3.x servers. It is capable of performing almost all standard user functionality found in a Windows Ventrilo client. Mangler is developed and maintained by Eric Kilfoil and Daniel Sloof. -<a href="http://mangler.org">mangler.org</a></p></blockquote>
<p><a href="http://kastang.com/blog/wp-content/uploads/2010/01/Mangler.png"><img class="size-medium wp-image-207 alignleft" title="Mangler" src="http://kastang.com/blog/wp-content/uploads/2010/01/Mangler-203x300.png" alt="" width="203" height="300" /></a>In my experience, using Ventrilo on Linux (using Wine) has always been troublesome at best. Often I would have to resort to using hacked patches, or giving up some functionality just so I could use Ventrilo while raiding. Some newer versions would completely break functionality on Wine. This problem has all come to an end with the release of a fantastic new software called <a href="http://mangler.org">Mangler</a>. It was released a month ago. It is a native Ventrilo client for Linux systems. I have used this software flawlessly for a few weeks now. I personally use this software while playing World of Warcraft on Wine. The interface is clean, and supports PTT functionality (both keyboard and mouse options). Mangler also claims to support both GSM and Speex codecs, thought I have only tested it with Speex. Mangler also supports individual user volume control. This is quite a list of functionality for a version 1.0. I consider this a must have piece of software if you need Ventrilo on a Linux system.</p>
]]></content:encoded>
			<wfw:commentRss>http://kastang.com/blog/2010/01/mangler-a-native-ventrilo-client/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adjust ATI Fan Speed in Ubuntu</title>
		<link>http://kastang.com/blog/2009/08/manually-change-ati-fan-speed-in-ubunt/</link>
		<comments>http://kastang.com/blog/2009/08/manually-change-ati-fan-speed-in-ubunt/#comments</comments>
		<pubDate>Sun, 16 Aug 2009 23:36:33 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[ati fan speed]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://kastang.com/?p=195</guid>
		<description><![CDATA[I found this post hovering in my Drafts folder today, the blog post is old but the information still applies. 
Currently ATI drivers do not have the ability to modify fan speeds from their GUI. Here is a quick and easy way to manually adjust  fan speeds via Terminal. The commands below work with my ATI [...]]]></description>
			<content:encoded><![CDATA[<p><em>I found this post hovering in my Drafts folder today, the blog post is old but the information still applies. </em></p>
<p>Currently ATI drivers do not have the ability to modify fan speeds from their GUI. Here is a quick and easy way to manually adjust  fan speeds via Terminal. The commands below work with my ATI Radeon 4870 card, I would assume they will also work with any ATI card with a fan though. <strong>Note: ATI drivers from ATI website are required.</strong></p>
<p>To check the temperature of your card:<br />
<span style="font-family: Consolas; line-height: 18px; font-size: 12px; white-space: pre;">aticonfig &#8211;adapter=0 &#8211;od-gettemperature</span></p>
<p>To change the fan speed:<br />
<span style="font-family: Consolas; line-height: 18px; font-size: 12px; white-space: pre;">aticonfig &#8211;pplib-cmd &#8220;set fanspeed 0 XX&#8221;<br />
<span style="font-family: Georgia; line-height: 19px; white-space: normal; font-size: 13px;">(Where the XX is replace it with the fan speed percentage)</span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://kastang.com/blog/2009/08/manually-change-ati-fan-speed-in-ubunt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reduce WoW Latency in Windows 7</title>
		<link>http://kastang.com/blog/2009/08/reduce-wow-latency-in-windows-7/</link>
		<comments>http://kastang.com/blog/2009/08/reduce-wow-latency-in-windows-7/#comments</comments>
		<pubDate>Sat, 15 Aug 2009 20:26:30 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[WoW]]></category>

		<guid isPermaLink="false">http://kastang.com/?p=193</guid>
		<description><![CDATA[While playing World of Warcraft in Windows XP my average ping was between  80ms and 100ms. In Windows 7 my ping was averaging over 300ms most of the time. After applying the tweaks below my latency dropped to around 120ms, a little higher then I was experiencing in Windows XP, but a great improvement compared [...]]]></description>
			<content:encoded><![CDATA[<p>While playing World of Warcraft in Windows XP my average ping was between  80ms and 100ms. In Windows 7 my ping was averaging over 300ms most of the time. After applying the tweaks below my latency dropped to around 120ms, a little higher then I was experiencing in Windows XP, but a great improvement compared to what I was getting before in Windows 7.</p>
<p><strong>Note, this tweak involves changing registry values. If you are not familiar with the registry, I would suggest not doing this tweak as it could cause your OS to become unbootable.</strong></p>
<ul>
<li>Open Regedit</li>
<li>Navigate to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Parameters\Interfaces</li>
<li>Find the interface folder that is currently in use. It will be the one that has an IPAddress and the most fields.</li>
<li>Right click on the interface and choose New -&gt; DWORD (32-bit) Value.  Name it: “TcpAckFrequency”</li>
<li>Right click on TcpAckFrequency, select modify and change the &#8220;0&#8243; value to &#8220;1&#8243;.</li>
<li>Right click on the interface and choose New -&gt; DWORD (32-bit) Value.  Name it: “TCPNoDelay”</li>
<li>Right click on TCPNoDelay, select modify and change the &#8220;0&#8243; value to &#8220;1&#8243;.</li>
</ul>
<p>Restart your computer for changes to take effect. If all goes well, you should notice a lower latency while playing WoW.</p>
]]></content:encoded>
			<wfw:commentRss>http://kastang.com/blog/2009/08/reduce-wow-latency-in-windows-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
