<?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>cms07</title>
	<atom:link href="http://cms07.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://cms07.org</link>
	<description>Musings on Linux and Programming</description>
	<lastBuildDate>Thu, 26 Jan 2012 03:50:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>monsterwm &#8211; a Dynamic Tiling Window Manager</title>
		<link>http://cms07.org/2011/12/monsterwm-a-dynamic-tiling-window-manager/</link>
		<comments>http://cms07.org/2011/12/monsterwm-a-dynamic-tiling-window-manager/#comments</comments>
		<pubDate>Tue, 20 Dec 2011 06:37:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://cms07.org/?p=24</guid>
		<description><![CDATA[monsterwm is a tiny dynamic tiling window manager. According to c00kiemon5ter, its creator: The project aims to be a usable as small as possible tiling wm. I use it personally everyday. It&#8217;s like dwm with gridlayout, bstack, pertag, dwmreturn patches, but without floating mode (minimum mouse support). monsterwm is fully operational at just 643 lines of C. [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_25" class="wp-caption alignnone" style="width: 310px"><a href="http://cms07.org/wp-content/uploads/2011/12/screenshot.jpg"><img class="size-medium wp-image-25" title="monsterwm" src="http://cms07.org/wp-content/uploads/2011/12/screenshot-300x187.jpg" alt="Tiling Window Manager" width="300" height="187" /></a><p class="wp-caption-text">monsterwm with chromium, gedit, and terminal</p></div>
<p><strong>monsterwm</strong> is a tiny dynamic tiling window manager. According to <a title="monsterwm on Arch Linux Forum" href="https://bbs.archlinux.org/viewtopic.php?id=132122">c00kiemon5ter</a>, its creator:</p>
<blockquote><p>The project aims to be a usable as small as possible tiling wm. I use it personally everyday.<br />
It&#8217;s like dwm with gridlayout, bstack, pertag, dwmreturn patches, but without floating mode (minimum mouse support).<span id="more-24"></span></p></blockquote>
<p><strong>monsterwm</strong> is fully operational at just 643 lines of C. It must be configured before compilation through a file named &#8216;config.h&#8217;. The default &#8216;config.h&#8217; sets the following keybindings:</p>
<pre>Next Window              Alt+j</pre>
<pre>Prev Window              Alt+k</pre>
<pre>Reduce Master            Alt+h</pre>
<pre>Expand Master            Alt+l</pre>
<pre>Reduce Stack             Alt+o</pre>
<pre>Expand Stack             Alt+p</pre>
<pre>Change Mode:</pre>
<pre> Tile                    Alt+Shift+t</pre>
<pre> Monocle                 Alt+Shift+m</pre>
<pre> Bottom Stack            Alt+Shift+b</pre>
<pre> Grid                    Alt+Shift+g</pre>
<pre>Switch to Next Desktop   Alt+Shift+[Right]</pre>
<pre>Switch to Prev Desktop   Alt+Shift+[Left]</pre>
<pre>Stop X                   Alt+Ctrl+q</pre>
<pre>In tile mode:</pre>
<pre> Change Master Window    Alt+Return</pre>
<p>The modifier keys can be changed individually or across the board in &#8216;config.h&#8217;.</p>
<p>The github repository can be found <a href="https://github.com/c00kiemon5ter/monsterwm">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://cms07.org/2011/12/monsterwm-a-dynamic-tiling-window-manager/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Linus Torvalds&#8217;s Text Editor: MicroEMACS</title>
		<link>http://cms07.org/2011/11/linus-torvalds-text-editor/</link>
		<comments>http://cms07.org/2011/11/linus-torvalds-text-editor/#comments</comments>
		<pubDate>Sun, 20 Nov 2011 17:45:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://cms07.org/?p=15</guid>
		<description><![CDATA[For his text editor, Linus Torvalds uses uemacs/PK, which is based on MicroEMACS 3.9e. As would be expected, Linus uses a modified editor. In my experience, uemacs is faster than Emacs. To download uemacs, use git to clone the repository: git clone git://git.kernel.org/pub/scm/editors/uemacs/uemacs.git Then, do the standard (as superuser): cd uemacs make make install uemacs [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_18" class="wp-caption aligncenter" style="width: 253px"><a href="http://cms07.org/wp-content/uploads/2011/11/Screenshot-11202011-112345-AM.png"><img class="size-full wp-image-18 " title="uemacs" src="http://cms07.org/wp-content/uploads/2011/11/Screenshot-11202011-112345-AM.png" alt="uemacs" width="243" height="171" /></a><p class="wp-caption-text">uemacs in xterm.</p></div>
<p>For his text editor, Linus Torvalds uses uemacs/PK, which is based on MicroEMACS 3.9e. As would be expected, Linus uses a modified editor. In my experience, uemacs is faster than Emacs.</p>
<p>To download uemacs, use git to clone the repository:</p>
<pre>git clone git://git.kernel.org/pub/scm/editors/uemacs/uemacs.git</pre>
<p>Then, do the standard (as superuser):</p>
<pre>cd uemacs</pre>
<pre>make</pre>
<pre>make install</pre>
<p>uemacs installs as em. This works in Linux and should work in any other Unix-like operating system.</p>
<p>Of course, uemacs uses standard <a href="http://www.cs.duke.edu/courses/fall01/cps100/emacs.html">Emacs keyboard shortcuts.</a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://cms07.org/2011/11/linus-torvalds-text-editor/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Getting Started with x86 Assembly Programming</title>
		<link>http://cms07.org/2011/11/x86-assembly-programming/</link>
		<comments>http://cms07.org/2011/11/x86-assembly-programming/#comments</comments>
		<pubDate>Mon, 07 Nov 2011 00:47:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://cms07.org/?p=7</guid>
		<description><![CDATA[People often wonder what, exactly, makes their computer work. How does the computer turn one&#8217;s action into the magic on their monitor? To control the most basic aspects of computing, programmers use Assembly language. Assembly is similar to many other languages in that code is preprocessed before running. This is done using an assembler. If [...]]]></description>
			<content:encoded><![CDATA[<p>People often wonder what, exactly, makes their computer work. How does the computer turn one&#8217;s action into the magic on their monitor? To control the most basic aspects of computing, programmers use Assembly language.</p>
<p>Assembly is similar to many other languages in that code is preprocessed before running. This is done using an assembler. If you use Linux, I strongly recommend you use <a title="The Netwide Assembler" href="http://nasm.us">the Netwide Assembler.</a> NASM, is it is usually called, is used in most tutorials, and is not difficult to learn. If you are on Windows, your best bet is likely <a title="flat assembler" href="http://flatassembler.net/">Flat Assembler.</a> FASM is nearly identical to NASM, as far as syntax. When you write your code in assembly, your assembler processes it to <a href="http://en.wikipedia.org/wiki/Object_file">object code.</a></p>
<p>Once you have your assembler, you need to learn to write assembly. While there are a number of tutorials for x86 assembly, Dr. Paul Carter&#8217;s <em><a href="http://www.drpaulcarter.com/pcasm/">PC Assembly Language</a>, </em>a free textbook, provides a great starting point. After you read that, you should definitely take a look at some open source programs/operating systems to get an idea of how you can implement assembly. <a title="MikeOS" href="http://mikeos.berlios.de/">MikeOS</a>, <a title="MenuetOS" href="http://www.menuetos.net/">MenuetOS</a>, and the <a title="Linux" href="ftp://ftp.kernel.org/pub/linux/kernel/Historic/linux-0.01.tar.gz">Linux kernel v.01</a> (Note: Windows users need 7zip to extract that) all are good to read. Finally, websites like <a href="http://files.osdev.org/mirrors/osdever/">OSDever</a> and <a href="http://wiki.osdev.org/Main_Page">OSDev</a> are classic OS development websites that include dozens of tutorials.</p>
<p>Good luck with your pursuits!</p>
]]></content:encoded>
			<wfw:commentRss>http://cms07.org/2011/11/x86-assembly-programming/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Monopoly Simulation</title>
		<link>http://cms07.org/2011/11/monopoly-simulation/</link>
		<comments>http://cms07.org/2011/11/monopoly-simulation/#comments</comments>
		<pubDate>Mon, 07 Nov 2011 00:46:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://cms07.org/?p=5</guid>
		<description><![CDATA[If you are like me, you want to win in everything you do. Nothing is worth losing for, and any statistical advantage you can utilize is worth it. One day, I was playing Monopoly and the idea that certain properties might be landed on intrigued me. I decided to make a simulator that could move [...]]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste">If you are like me, you want to win in everything you do. Nothing is worth losing for, and any statistical advantage you can utilize is worth it.</div>
<div id="_mcePaste">One day, I was playing Monopoly and the idea that certain properties might be landed on intrigued me. I decided to make a simulator that could move around the Monopoly board more times than anyone could do themselves. The idea was fairly simple: just take a piece and roll two dice, then move the piece around the board and record the number of times each property was landed on. None of the financial aspects of the game needed to be included, but the Chance and Community Chest cards certainly needed to.</div>
<div><span id="more-5"></span></div>
<div>The following results were produced by the php script I wrote here: <a href="http://cms07.org/files/monopoly.zip">monopoly.zip</a>.</div>
<div id="_mcePaste">It&#8217;s fairly well commented, and to increase or decrease the amount of turns taken by the script, the while loop needs to be adjusted. It should run on any php server, but I ran it on Apache 2.2.14 with PHP 5.3.1 on Linux, for reference. Inside the zip is the results page of a 100,000 turn game in a text file as well as a spreadsheet with all the card information from the game.</div>
<div id="_mcePaste">So let&#8217;s look at the results. First, the color groups:</div>
<pre>Magenta: 11,625 landings - 11.6%
Purple: 1443 landings - 1.4%
Red: 10,434 landings - 10.4%
Railroads: 12,201 - 12.2%
Orange: 7173 - 7.2%
Blue: 7279 - 7.3%
Cyan: 5264 - 5.3%
Yellow: 3673 - 3.7%
Green: 3338 - 3.3%
Utility: 3342 - 3.3%</pre>
<p>From this, it looks like Magenta, Red and the Railroads are the most landed on. This would suggest that the Railroads might be worth owning, if you own 3 or 4. For each color group, not owning all nullifies the meager rent you can collect without a monopoly, though. Now let&#8217;s examine the individual properties&#8217; landings:</p>
<pre>GO: 10,206 - 10.2%
Mediterranean: 522 - .5%
Community Chest [all]: 4411 - 4.4%
Baltic: 921 - .9%
Income Tax: 1372 - 1.4%
Reading Railroad: 7783 - 7.8%
Oriental: 1603 - 1.6%
Chance [all, only non-directing cards]: 2900 - 2.9%
Vermont: 1816 - 1.8%
Connecticut: 1845 - 1.8%
Jail: 12,938 - 12.9%
St. Charles Place: 8007 - 8%
Electric Company: 1997 - 2%
States: 1658 - 1.7%
Virginia: 1960 - 2%
Pennsylvania Railroad: 2321 - 2.3%
St. James: 2354 - 2.4%
Tennessee: 2480 - 2.5%
New York: 2339 - 2.3%
Free Parking: 1914 - 1.9%
Kentucky: 1777 - 1.8%
Indiana: 1287 - 1.3%
Illinois: 7370 - 7.4%
B&amp;O Railroad: 1295 - 1.3%
Atlantic: 1225 - 1.2%
Ventnor: 1274 - 1.3%
Water Works: 1345 - 1.4%
Marvin Gardens: 1174 - 1.2%
Pacific: 1306 - 1.3%
North Carolina: 1171 - 1.2%
Pennsylvania Ave: 861 - .9%
Short Line Railroad: 802 - .8%
Park Place: 555 - .6%
Luxury Tax: 487 - .5%
Boardwalk: 6724 - 6.7%</pre>
<p>Knowing the odds for each space allows us to know the actual worth of a property. For example, Park Place amounts to only .6% of all the landed upon spaces. It might not be landed on once in a typical game, but owning Park Place along with Boardwalk, which holds almost 7% of all landed on spaces, allows a player to double the normal rent without houses and take in significant cash with houses and hotels on the Blue spaces. St. Charles Place, holding 8% of all landings, makes States Ave and Virginia Ave worth owning alongside.</p>
<p>So there we have it: certain spaces are more likely to be landed on than others. Should this factor into your strategy? I know it will mine.</p>
<h6><span style="font-weight: normal;">Short Link: <a title="Short link" href="http://cms07.org/?p=56">http://cms07.org/?p=5</a></span></h6>
]]></content:encoded>
			<wfw:commentRss>http://cms07.org/2011/11/monopoly-simulation/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

