<?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>Descention dot Net</title>
	<atom:link href="http://www.descention.net/wp/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.descention.net/wp</link>
	<description>My world in code</description>
	<lastBuildDate>Tue, 13 Sep 2011 18:55:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>db.descention.net</title>
		<link>http://www.descention.net/wp/?p=50</link>
		<comments>http://www.descention.net/wp/?p=50#comments</comments>
		<pubDate>Tue, 13 Sep 2011 18:55:42 +0000</pubDate>
		<dc:creator>descention</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.descention.net/wp/?p=50</guid>
		<description><![CDATA[I&#8217;ve just imported the Incarna database from Eve Online. public use from a read-only account is available. The server is MySQL 5.1. DB: evedump Server: db.descention.net User: evedump Pass: evedump]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just imported the Incarna database from Eve Online. public use from a read-only account is available. The server is MySQL 5.1.<br />
<code><br />
DB: evedump<br />
Server: db.descention.net<br />
User: evedump<br />
Pass: evedump1234<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.descention.net/wp/?feed=rss2&#038;p=50</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Review: Final Fantasy III for DS</title>
		<link>http://www.descention.net/wp/?p=45</link>
		<comments>http://www.descention.net/wp/?p=45#comments</comments>
		<pubDate>Thu, 26 May 2011 14:46:08 +0000</pubDate>
		<dc:creator>descention</dc:creator>
				<category><![CDATA[Review]]></category>
		<category><![CDATA[ds]]></category>
		<category><![CDATA[review]]></category>

		<guid isPermaLink="false">http://www.descention.net/wp/?p=45</guid>
		<description><![CDATA[I started playing Final Fantasy III for the DS last Saturday. Immediately I noticed a lack of instruction or tutorial for the game. To find out where to go next, you must talk to NPC&#8217;s. You can&#8217;t skip dialog or you may miss that you&#8217;re supposed to head to the back of the village and ]]></description>
			<content:encoded><![CDATA[<p>I started playing Final Fantasy III for the DS last Saturday. Immediately I noticed a lack of instruction or tutorial for the game. To find out where to go next, you must talk to NPC&#8217;s. You can&#8217;t skip dialog or you may miss that you&#8217;re supposed to head to the back of the village and not venture to the castle. Speaking of venturing to the castle, the first time having done so, I died. Having not saved my game at all, I had to start from the beginning. I didn&#8217;t get far in the game yet so this was not a huge issue, but the lack of autosave, save reminders, or blinking save points allows me to forget to save my game.</p>
<p>The combat is turn based and I like it. There is only so much you can do at the beginning though (read: spam &#8216;Attack&#8217;). I enjoyed the travel around the world map in an airship. No combat to deal with means I get where I&#8217;m going faster. When you&#8217;re trying to get to a boss and you used your last mana in the last battle, there&#8217;s not a whole lot you can do.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.descention.net/wp/?feed=rss2&#038;p=45</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>So you want to learn how to use Git&#8230;</title>
		<link>http://www.descention.net/wp/?p=29</link>
		<comments>http://www.descention.net/wp/?p=29#comments</comments>
		<pubDate>Mon, 10 May 2010 17:09:11 +0000</pubDate>
		<dc:creator>descention</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[learning]]></category>

		<guid isPermaLink="false">http://www.descention.net/wp/?p=29</guid>
		<description><![CDATA[Here are the best tutorials I&#8217;ve found for using git on windows and linux: Start with a video tutorial on how to use github:  The Insider Guide to GitHub Next, a guide to using git on windows: An Illustrated Guide to Git on Windows And finally, learn to write good commit messages for yourself and ]]></description>
			<content:encoded><![CDATA[<p>Here are the best tutorials I&#8217;ve found for using git on windows and linux:</p>
<p>Start with a video tutorial on how to use github:  <a title="using github" href="http://pragprog.com/screencasts/v-scgithub/insider-guide-to-github">The Insider Guide to GitHub</a></p>
<p>Next, a guide to using git on windows: <a title="git on windows" href="http://nathanj.github.com/gitguide/tour.html" target="_blank">An Illustrated Guide to Git on Windows</a></p>
<p>And finally, learn to write good commit messages for yourself and fellow programmers: <a title="Writing good commit messages" href="http://wiki.github.com/erlang/otp/writing-good-commit-messages" target="_blank">Writing good commit messages</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.descention.net/wp/?feed=rss2&#038;p=29</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BS2 &amp; C#</title>
		<link>http://www.descention.net/wp/?p=21</link>
		<comments>http://www.descention.net/wp/?p=21#comments</comments>
		<pubDate>Mon, 10 May 2010 00:10:29 +0000</pubDate>
		<dc:creator>descention</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[basic stamp]]></category>
		<category><![CDATA[Boe-bot]]></category>
		<category><![CDATA[bs2]]></category>
		<category><![CDATA[c sharp]]></category>

		<guid isPermaLink="false">http://www.descention.net/wp/?p=21</guid>
		<description><![CDATA[So I found my Basic Stamp, a BS2, that came with a Boe-Bot I purchased several years ago.  I started looking for my old boe-bot code and thought I could setup a serial communication from a C# application to the chip.  Here&#8217;s what I came up with: ' {$STAMP BS2} ' {$PBASIC 2.5} 'page 253 ]]></description>
			<content:encoded><![CDATA[<p>So I found my Basic Stamp, a BS2, that came with a Boe-Bot I purchased several years ago.  I started looking for my old boe-bot code and thought I could setup a serial communication from a C# application to the chip.  Here&#8217;s what I came up with:<br />
<code><br />
' {$STAMP BS2}<br />
' {$PBASIC 2.5}<br />
'page 253 for ir hookup<br />
#SELECT $STAMP<br />
#CASE BS2, BS2E, BS2PE<br />
T1200       CON     813<br />
T2400       CON     396<br />
T9600       CON     84<br />
T19K2       CON     32<br />
T38K4       CON     6<br />
#ENDSELECT</code></p>
<p><code> </code></p>
<p><code>Inverted        CON     $4000<br />
Open            CON     $8000<br />
Baud            CON     T9600 + Inverted</code></p>
<p><code> </code></p>
<p><code>command VAR Byte</code></p>
<p><code>steps VAR Word<br />
counter VAR Word<br />
motor VAR Byte<br />
speed VAR Byte</code></p>
<p><code>DEBUG "running"</code></p>
<p><code>DO<br />
PULSOUT 12, 750<br />
PULSOUT 13, 750<br />
PULSOUT 14, 750<br />
PULSOUT 15, 750</code></p>
<p><code>SERIN  16, Baud,[command]<br />
SELECT command<br />
CASE "m"<br />
GOSUB motion<br />
CASE ELSE<br />
GOSUB default<br />
ENDSELECT<br />
PAUSE 20<br />
LOOP</code></p>
<p><code>default:<br />
SEROUT 16, Baud, ["n",0]<br />
RETURN</code></p>
<p><code>motion:<br />
' m motor speed steps<br />
SERIN 16, Baud, [motor]<br />
DEBUG motor<br />
SERIN 16, Baud, [speed]<br />
DEBUG speed<br />
SERIN 16, Baud, [steps]<br />
DEBUG steps</p>
<p>FOR counter = 1 TO steps<br />
PULSOUT 12+motor, 650+speed<br />
PAUSE 20<br />
NEXT</p>
<p></code></p>
<p><code>RETURN</code></p>
<p>And with that code setup on the bot, I used this nice function in C# to send the orders to the servos connected to the bot.<br />
<code><br />
private static SerialPort port = new SerialPort("COM4", 9600, Parity.None, 8, StopBits.One);<br />
private static Queue toSend = new Queue();</code></p>
<p><code>private static void Main()<br />
{<br />
Console.WriteLine("Waiting for data...");<br />
port.DataReceived += new SerialDataReceivedEventHandler(port_DataReceived);<br />
port.Open();</code></p>
<p><code> </code></p>
<p><code> Thread reader = new Thread(Read);<br />
reader.IsBackground = true;<br />
reader.Start();<br />
motion(0,100,10); // run first servo counter-clockwise at full speed for 10 seconds<br />
}</code></p>
<p><code><br />
static void motion(byte motor, int speed, int seconds)<br />
{<br />
if (speed &lt; -100) 			{ 				speed = -100; 			} 			else if (speed &gt; 100)<br />
{<br />
speed = 100;<br />
}<br />
double loop = (1.5 + 20 + 1.6) / 1000;<br />
int pulses = (int)Math.Round(seconds / loop, 0);<br />
lock (toSend)<br />
{<br />
toSend.Enqueue(Convert.ToByte('m'));<br />
toSend.Enqueue(motor);<br />
toSend.Enqueue((byte)(speed+100));<br />
foreach (byte b in BitConverter.GetBytes(pulses))<br />
toSend.Enqueue(b);<br />
}<br />
}</code></p>
<p><code><br />
static void Read()<br />
{<br />
while (true)<br />
{<br />
if (toSend.Count &gt; 0)<br />
{<br />
byte var = new byte();<br />
lock (toSend)<br />
{<br />
var = toSend.Dequeue();<br />
}<br />
port.BaseStream.WriteByte(var);<br />
}<br />
Thread.Sleep(10);<br />
}<br />
}<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.descention.net/wp/?feed=rss2&#038;p=21</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Break time</title>
		<link>http://www.descention.net/wp/?p=17</link>
		<comments>http://www.descention.net/wp/?p=17#comments</comments>
		<pubDate>Thu, 15 Apr 2010 14:26:14 +0000</pubDate>
		<dc:creator>descention</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[c sharp]]></category>
		<category><![CDATA[minecraft]]></category>

		<guid isPermaLink="false">http://www.descention.net/wp/?p=17</guid>
		<description><![CDATA[Taking a break from working on mcsharp to concentrate on homework.  The release of revision-190 went well and we finally have some servers popping up on flist.  When I do get back into coding mcsharp, I plan on getting servers to communicate with one another.  This should help servers hosted by the same person to ]]></description>
			<content:encoded><![CDATA[<p>Taking a break from working on mcsharp to concentrate on homework.  The release of revision-190 went well and we finally have some servers popping up on flist.  When I do get back into coding mcsharp, I plan on getting servers to communicate with one another.  This should help servers hosted by the same person to share banlists and rank lists to all of their servers (if desired).</p>
<p>The Linux flist heartbeat bug was fixed before I decided to take a break, so hopefully on the next release we will see even more mcsharp servers on flist.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.descention.net/wp/?feed=rss2&#038;p=17</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Minecraft Part 3</title>
		<link>http://www.descention.net/wp/?p=14</link>
		<comments>http://www.descention.net/wp/?p=14#comments</comments>
		<pubDate>Wed, 31 Mar 2010 03:59:22 +0000</pubDate>
		<dc:creator>descention</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[c sharp]]></category>
		<category><![CDATA[minecraft]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://www.descention.net/wp/?p=14</guid>
		<description><![CDATA[So I&#8217;ve begun working with about four guys on the minecraft server they&#8217;ve started. It works well and it has a decent user base but it lacked in a few areas. Many users reported extremely high memory and processor usage from running the server and hosting a few maps. I&#8217;ve started with recoding the level ]]></description>
			<content:encoded><![CDATA[<p>So I&#8217;ve begun working with about four guys on the minecraft server they&#8217;ve started.  It works well and it has a decent user base but it lacked in a few areas.  Many users reported extremely high memory and processor usage from running the server and hosting a few maps.</p>
<p>I&#8217;ve started with recoding the level data to save ram, and it&#8217;s working.   Ram usage from my modifications fell from ~1-5 gigs to ~30-450 megs.  I&#8217;ve also improved CPU usage by decreasing the number of threads spawned by the server.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.descention.net/wp/?feed=rss2&#038;p=14</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Minecraft Server Part 2 / Ripley Part 1</title>
		<link>http://www.descention.net/wp/?p=12</link>
		<comments>http://www.descention.net/wp/?p=12#comments</comments>
		<pubDate>Thu, 25 Mar 2010 16:15:40 +0000</pubDate>
		<dc:creator>descention</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[c sharp]]></category>
		<category><![CDATA[minecraft]]></category>
		<category><![CDATA[ripley]]></category>

		<guid isPermaLink="false">http://www.descention.net/wp/?p=12</guid>
		<description><![CDATA[So&#8230; I don&#8217;t have a working server that I coded myself because I ran into trouble byte-reading the level files which are serialized custom java Level classes.  I&#8217;m thinking of just moving on to another project. Maybe i&#8217;ll work on enhancements for ripley.  For anyone who doesn&#8217;t know, I found some source code on a ]]></description>
			<content:encoded><![CDATA[<p>So&#8230; I don&#8217;t have a working server that I coded myself because I ran into trouble byte-reading the level files which are serialized custom java Level classes.  I&#8217;m thinking of just moving on to another project.</p>
<p>Maybe i&#8217;ll work on enhancements for ripley.  For anyone who doesn&#8217;t know, I found some source code on a lisp pastebin type site for some C#/Mono code called &#8220;Ripley&#8221;.  The code is designed to rip streaming music.  It is designed to work with the streams on sky.fm and one of its sister sites.  I want to add the option to select which songs you want to save.  I also would like to change them to mp3&#8242;s.  The stream is AAC.</p>
<p>I got redmine working on my home server, so that&#8217;s one project completed recently.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.descention.net/wp/?feed=rss2&#038;p=12</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Minecraft server</title>
		<link>http://www.descention.net/wp/?p=5</link>
		<comments>http://www.descention.net/wp/?p=5#comments</comments>
		<pubDate>Wed, 17 Mar 2010 16:09:02 +0000</pubDate>
		<dc:creator>descention</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[c sharp]]></category>
		<category><![CDATA[minecraft]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://www.descention.net/wp/?p=5</guid>
		<description><![CDATA[I&#8217;m interested in starting a project for a mincraft server if the makers of the mcsharp server don&#8217;t release their source code. This will give me some experience with connection handling and managing multiple connections to a server. www.minecraft.net]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m interested in starting a project for a mincraft server if the makers of the mcsharp server don&#8217;t release their source code.  This will give me some experience with connection handling and managing multiple connections to a server.</p>
<p>www.minecraft.net</p>
]]></content:encoded>
			<wfw:commentRss>http://www.descention.net/wp/?feed=rss2&#038;p=5</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Beginning</title>
		<link>http://www.descention.net/wp/?p=4</link>
		<comments>http://www.descention.net/wp/?p=4#comments</comments>
		<pubDate>Fri, 12 Mar 2010 21:55:39 +0000</pubDate>
		<dc:creator>descention</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.descention.net/wp/?p=4</guid>
		<description><![CDATA[This is the beginning of my blog. There is nothing before this point. I&#8217;ll probably keep things like new code ideas on here along with projects I&#8217;ll never finish]]></description>
			<content:encoded><![CDATA[<p>This is the beginning of my blog. There is nothing before this point. I&#8217;ll probably keep things like new code ideas on here along with projects I&#8217;ll never finish.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.descention.net/wp/?feed=rss2&#038;p=4</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

