<?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>When Brains Fly</title>
	<atom:link href="http://www.whenbrainsfly.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.whenbrainsfly.com</link>
	<description>An Awesome Blog About Neuroscience, Computer Science, and Technology</description>
	<lastBuildDate>Mon, 25 Jan 2010 03:12:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Yet Another Major CSS Update</title>
		<link>http://www.whenbrainsfly.com/2010/01/yet-another-major-css-update/</link>
		<comments>http://www.whenbrainsfly.com/2010/01/yet-another-major-css-update/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 02:47:42 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[meta]]></category>

		<guid isPermaLink="false">http://www.whenbrainsfly.com/2010/01/yet-another-major-css-update/</guid>
		<description><![CDATA[All right, I folded. I inverted every color on this site and tweaked them a bit. Much more readable, although slightly less &#8220;cool.&#8221;
Here is the old site look, for posterity: 

]]></description>
			<content:encoded><![CDATA[<p>All right, I folded. I inverted every color on this site and tweaked them a bit. Much more readable, although slightly less &#8220;cool.&#8221;</p>
<p>Here is the old site look, for posterity: </p>
<p><a href="http://www.whenbrainsfly.com/wp-content/uploads/wbf_dark.png"><img src="http://www.whenbrainsfly.com/wp-content/uploads/wbf_dark-300x156.png" alt="Site with light text on dark background" title="wbf_dark" width="300" height="156" class="size-medium wp-image-231" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.whenbrainsfly.com/2010/01/yet-another-major-css-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Another CSS Update</title>
		<link>http://www.whenbrainsfly.com/2010/01/another-css-update/</link>
		<comments>http://www.whenbrainsfly.com/2010/01/another-css-update/#comments</comments>
		<pubDate>Sat, 09 Jan 2010 23:03:54 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[meta]]></category>

		<guid isPermaLink="false">http://www.whenbrainsfly.com/2010/01/another-css-update/</guid>
		<description><![CDATA[Since I myself was having trouble reading through the paragraphs of the last post, I decided to look on the internet for why that might be and solutions for that. This was a useful post. I guess my eyes are just not well suited for light text on dark backgrounds, which stinks because I really [...]]]></description>
			<content:encoded><![CDATA[<p>Since I myself was having trouble reading through the paragraphs of the last post, I decided to look on the internet for why that might be and solutions for that. <a href="http://www.456bereastreet.com/archive/200608/light_text_on_dark_background_vs_readability/">This</a> was a useful post. I guess my eyes are just not well suited for light text on dark backgrounds, which stinks because I really like the current color scheme. They linked to <a href="http://www.markboulton.co.uk/journal/comments/five-simple-steps-to-better-typography">Five simple steps to better typography</a>. This article basically told me that my measure is too large and my leading/line-height should be increased. I made those changes, and magically, large blocks of text are a little easier to read! I also made the white text a little less bright. I hope this helps. Let me know if I should change anything else with the CSS.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.whenbrainsfly.com/2010/01/another-css-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>REST, AJAX, PHP, la di da</title>
		<link>http://www.whenbrainsfly.com/2010/01/rest-ajax-php-la-di-da/</link>
		<comments>http://www.whenbrainsfly.com/2010/01/rest-ajax-php-la-di-da/#comments</comments>
		<pubDate>Sat, 09 Jan 2010 22:06:08 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[rest]]></category>
		<category><![CDATA[weewar]]></category>

		<guid isPermaLink="false">http://www.whenbrainsfly.com/?p=215</guid>
		<description><![CDATA[Yesterday, I spent much of the day playing around with Javascript and PHP. I had the idea to create a simple web front-end to access the Weewar API and control bots, an alternative to the current main method of controlling bots, which is to use existing non-web-based Java programs to call the API or use [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday, I spent much of the day playing around with Javascript and PHP. I had the idea to create a simple web front-end to access the <a href="http://weewar.com">Weewar</a> API and control bots, an alternative to the current main method of controlling bots, which is to use existing non-web-based Java programs to call the API or use <a href="http://en.wikipedia.org/wiki/CURL">cURL</a> on the command line. Neither is particularly easy for novice bot developers or those new to programming. Then again, controlling a bot move-by-move manually through a GUI and without programming isn&#8217;t all that practical&#8230; Oh well, it would still be useful for me when I have to do a few simple moves with a bot or two but don&#8217;t want to sign in as the bot, access the game, and do the moves there. Regardless, it was a new mini-project which I could use to sharpen my knowledge of Javascript and PHP, and it was fun. <img src='http://www.whenbrainsfly.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  (<-- whoa, graphical smiley face!)</p>
<p>First, I needed a way to access and display games that a user is currently playing. This can be done with the API: http://weewar.com/api1/user/[username] and is already partially done with the <a href="http://userscripts.org/scripts/show/24555">Weewar Profiler</a> Greasemonkey script, which I was already somewhat familiar with, having had to edit it every time there was a Weewar UI change that broke it. I adapted that to take in a username from an HTML form and use the Javascript XMLHttpRequst object, but then it didn&#8217;t work. It turns out that, unlike Greasemonkey, using normal Javascript, you can&#8217;t make calls to pages outside of your domain, for security reasons. That makes sense, but was a bummer.</p>
<p>So I had to make the API calls from my webhosting server and decided to learn how to do it using PHP, which I barely knew. (What other easy ways are there?) I used <a href="http://developer.yahoo.com/php/howto-reqRestPhp.html">this</a> as a reference, and just now realized upon exploring the Yahoo Developer Center that my approach was already documented here: <a href="http://www.xml.com/pub/a/2005/11/09/fixing-ajax-xmlhttprequest-considered-harmful.html">Fixing AJAX: XMLHttpRequest Considered Harmful</a>. Ha! I guess that doesn&#8217;t leave much to say except that I pretty much did method #1 there. </p>
<p>Also, since I had to make many XMLHttpRequest requests, I had to make an array of those objects to keep them from confusing one another. It took me a while to figure out why that was happening, why I was only getting one or a couple requests returned correctly. So I guess that&#8217;s it. Now I know how to make REST calls using sockets in Java, <a href="http://hc.apache.org/httpcomponents-client/index.html">Apache HttpClient</a> in Java, the <a href="http://blog.springsource.com/2009/03/27/rest-in-spring-3-resttemplate/">Spring 3 REST template</a> in Java, XMLHttpRequest objects in Javascript, GM_xmlhttpRequest in Greasemonkey Javascript, and the cURL extension in PHP. Whoo!</p>
<p>Aside: I just realized that the <a href="https://addons.mozilla.org/en-US/firefox/addon/2691">Poster Firefox add-on</a>, which I had downloaded a couple weeks back, makes REST calls as well, and in a much more general-purpose way. Oh well. I wouldn&#8217;t have learned much had I not done all that I had done yesterday, so it was not all for nothing. =) Here is what resulted from it, by the way: <a href="/weewar/weewarbotcontrol.html">Weewar Bot Control</a></p>
<p>Hm. Am I an aspiring web programmer? It certainly is fun and the Internet is the <i>Wave of the Future/Present</i>. I&#8217;ll have to think on that some more. I&#8217;m still quite attached to neuroscience research. At the very least, web programming is a nice, useful hobby. =)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.whenbrainsfly.com/2010/01/rest-ajax-php-la-di-da/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Random HTTP Bug and Solution</title>
		<link>http://www.whenbrainsfly.com/2010/01/random-http-bug-and-solution/</link>
		<comments>http://www.whenbrainsfly.com/2010/01/random-http-bug-and-solution/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 06:53:53 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[citrus framework]]></category>
		<category><![CDATA[rest]]></category>

		<guid isPermaLink="false">http://www.whenbrainsfly.com/?p=212</guid>
		<description><![CDATA[I just spent the last fifteen minutes trying to figure out why my HTTP GET request was hanging on input. I had had this problem a few days ago and solved it somehow, but I completely forgot how. It turns out, I just forgot to put a blank line at the end of my GET [...]]]></description>
			<content:encoded><![CDATA[<p>I just spent the last fifteen minutes trying to figure out why my HTTP GET request was hanging on input. I had had this problem a few days ago and solved it somehow, but I completely forgot how. It turns out, I just forgot to put a blank line at the end of my GET request. Stupid. (At least now I know how to fix the mistake next time, even if I forget, because I&#8217;ve written it down here!!! =D)</p>
<p>Also, in searching for code to deal with chunked responses, I came across <a href="http://hc.apache.org/">Apache HttpComponents</a>. I knew something like this existed by Apache but I didn&#8217;t realize that it took care of so much for you. Now I&#8217;m wondering why the <a href="http://www.citrusframework.org/">Citrus Framework</a> doesn&#8217;t use this to handle HTTP requests. Right now, it uses mostly <a href="http://www.springsource.org/">Spring</a> to handle a fair amount of the configuration and message building, but it doesn&#8217;t yet handle chunked responses, at least not that I&#8217;m aware of. Now, to code it manually or use massive amounts of code already written? That&#8217;s obvious. I should talk with the Citrus developer, get onboard, and see if he has a preference first though, since these changes to the Citrus source would be useful to others too.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.whenbrainsfly.com/2010/01/random-http-bug-and-solution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Colors</title>
		<link>http://www.whenbrainsfly.com/2010/01/colors/</link>
		<comments>http://www.whenbrainsfly.com/2010/01/colors/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 02:45:39 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[meta]]></category>

		<guid isPermaLink="false">http://www.whenbrainsfly.com/?p=209</guid>
		<description><![CDATA[Is this color scheme readable? White text on black / dark blue background? Let me know if it&#8217;s not. I think it&#8217;s mostly fine, although there are times when it feels harder to read paragraphs in my blog than it does elsewhere with black text on white. 
Also, let me know what you think of [...]]]></description>
			<content:encoded><![CDATA[<p>Is this color scheme readable? White text on black / dark blue background? Let me know if it&#8217;s not. I think it&#8217;s mostly fine, although there are times when it feels harder to read paragraphs in my blog than it does elsewhere with black text on white. </p>
<p>Also, let me know what you think of the design in general and if anything should be changed.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.whenbrainsfly.com/2010/01/colors/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Trying Out Citrus</title>
		<link>http://www.whenbrainsfly.com/2010/01/trying-out-citrus/</link>
		<comments>http://www.whenbrainsfly.com/2010/01/trying-out-citrus/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 02:40:43 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[citrus framework]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://www.whenbrainsfly.com/?p=207</guid>
		<description><![CDATA[As part of a new hobby/freelance project, I&#8217;ve been trying out the Citrus Framework, an integration test framework written in Java for SOA application. It&#8217;s quite neat and interesting. Right now, I&#8217;m using it mostly for testing sequences of HTTP GET and POST requests, and it works pretty nicely so far, although I did have [...]]]></description>
			<content:encoded><![CDATA[<p>As part of a new hobby/freelance project, I&#8217;ve been trying out the <a href="http://www.citrusframework.org/">Citrus Framework</a>, an integration test framework written in Java for SOA application. It&#8217;s quite neat and interesting. Right now, I&#8217;m using it mostly for testing sequences of HTTP GET and POST requests, and it works pretty nicely so far, although I did have to go into the source code and hack in handling for GET requests and variable URLs since those weren&#8217;t yet implemented. That was fun though and exposed me to some design patterns live in action in someone else&#8217;s code, which is pretty cool (I don&#8217;t see too much of this as a student writing my own code most of the time). Perhaps with more time and effort, I can clean up my changes and submit them to the framework developer(s) and actually be a part of open source software! That would be pretty exciting. </p>
<p>For the last week, working through this project, I&#8217;ve re-learned and learned quite a lot about HTTP requests, Ant, DTD/XSD, and XPath, and I feel much more comfortable dealing with those now than I did a week ago. It&#8217;s a good feeling to have learned and done something new that&#8217;s kind of on the cutting edge of things, and to have fun doing so too! Ah, I sound so corny. Anyway, I can&#8217;t wait to get more involved with the company that this project is for and delve into some code that has a lot of potential and fun-value. I&#8217;m just waiting on approval from the developers now, but so far things look good. Wish me luck! =)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.whenbrainsfly.com/2010/01/trying-out-citrus/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Some UNIX/Linux Command Line Shortcuts</title>
		<link>http://www.whenbrainsfly.com/2009/12/some-unixlinux-command-line-shortcuts/</link>
		<comments>http://www.whenbrainsfly.com/2009/12/some-unixlinux-command-line-shortcuts/#comments</comments>
		<pubDate>Sun, 27 Dec 2009 05:33:35 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[shortcuts]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.whenbrainsfly.com/?p=170</guid>
		<description><![CDATA[I have to look this up so many times that I figured I should just blog about it and have it in one easy-to-find place. =)
Text/cursor control:


Alt-B / Alt-F
 Move the cursor backward/forward one word


Ctrl-W / Alt-D
Delete one word to the left/right


Ctrl-A / Ctrl-E
Move the cursor to the beginning/end of the line


Ctrl-U / Ctrl-K
Erase line [...]]]></description>
			<content:encoded><![CDATA[<p>I have to look this up so many times that I figured I should just blog about it and have it in one easy-to-find place. =)</p>
<p><strong>Text/cursor control:</strong></p>
<table>
<tr>
<td><code>Alt-B / Alt-F</code></td>
<td> Move the cursor backward/forward one word</td>
</tr>
<tr>
<td><code>Ctrl-W / Alt-D</code></td>
<td>Delete one word to the left/right</td>
</tr>
<tr>
<td><code>Ctrl-A / Ctrl-E</code></td>
<td>Move the cursor to the beginning/end of the line</td>
</tr>
<tr>
<td><code>Ctrl-U / Ctrl-K</code></td>
<td>Erase line to the left/right</td>
</tr>
</table>
<p><strong>History control:</strong></p>
<table>
<tr>
<td><code>!!</code></td>
<td>Repeat last command run</td>
</tr>
<tr>
<td><code>!-5</code></td>
<td>Re-run the 5th to last line in the history (<code>!-1</code> is equivalent to <code>!!</code>)</td>
</tr>
<tr>
<td><code>!<i>str</i></code></td>
<td>Re-run the last run command that began with <i>str</i></td>
</tr>
<tr>
<td><code>!<i>str</i>:<i>n</i></code></td>
<td>The <i>n</i>th argument for the last run command that began with <i>str</i></td>
</tr>
<tr>
<td><code>!$</code></td>
<td>The last argument for last run command</td>
</tr>
</table>
<p>(There are many more history control commands, but I don&#8217;t need to use them as frequently. See the last two references for them.)</p>
<p><strong>Other useful shortcuts:</strong></p>
<table>
<tr>
<td><code>Ctrl-S / Ctrl-Q</code></td>
<td>Turn off/on output to the screen (useful if you accidentally press <code>Ctrl-S</code> like I do all the time, or if you have a lot of output streaming to your screen)</td>
</tr>
<tr>
<td><code>Alt-F2</code></td>
<td>(GNOME/KDE) Display the Run Application dialog<br/></td>
</tr>
</table>
<p>Also, I learned something new today while fixing up the CSS for the site. Margins can overlap. =O</p>
<p>References:<br />
<a href="http://en.wikipedia.org/wiki/Table_of_keyboard_shortcuts#Command_line_shortcuts">http://en.wikipedia.org/wiki/Table_of_keyboard_shortcuts#Command_line_shortcuts</a><br />
<a href="http://www.computerhope.com/ushort.htm">http://www.computerhope.com/ushort.htm</a><br />
<a href="http://blog.macromates.com/2008/working-with-history-in-bash/">http://blog.macromates.com/2008/working-with-history-in-bash/</a><br />
<a href="http://www.gnu.org/software/bash/manual/bashref.html#History-Interaction">http://www.gnu.org/software/bash/manual/bashref.html#History-Interaction</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.whenbrainsfly.com/2009/12/some-unixlinux-command-line-shortcuts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing Windows 7 After Reinstalling via Repair Disk and Backup Image</title>
		<link>http://www.whenbrainsfly.com/2009/11/fixing-windows-7-after-reinstalling-via-repair-disk-and-backup-image/</link>
		<comments>http://www.whenbrainsfly.com/2009/11/fixing-windows-7-after-reinstalling-via-repair-disk-and-backup-image/#comments</comments>
		<pubDate>Sun, 29 Nov 2009 02:37:07 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[windows 7]]></category>

		<guid isPermaLink="false">http://www.whenbrainsfly.com/?p=151</guid>
		<description><![CDATA[It&#8217;s kinda funny that I have only been updating lately when something goes wrong with my computer. Oh well, until I have more time, that&#8217;s how it will be.
Lately, my hard drive has been having major startup problems. It would whir and clackle when trying to start after a night or a few hours off [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s kinda funny that I have only been updating lately when something goes wrong with my computer. Oh well, until I have more time, that&#8217;s how it will be.</p>
<p>Lately, my hard drive has been having major startup problems. It would whir and clackle when trying to start after a night or a few hours off and would usually not get detected by my laptop until after ten or fifteen tries to start. So today, I went over to a good friend&#8217;s house and swapped my failing hard drive with an old hard drive that he was no longer using. It ran fine in my computer and mine wouldn&#8217;t run in his computer so it was the hard drive that had problems and not my good old laptop. </p>
<p>After returning home, I put in the windows 7 repair disk I made yesterday to reinstall Windows. The first few tries didn&#8217;t work apparently because my external hard drive was attached. After it loaded, I plugged in my external, loaded the system image that I made yesterday, and replaced the contents of my friend&#8217;s hard drive with the image. </p>
<p>Once that finished (and a couple restarts), I used the Win7 backup tool to get all of the files and directories in my data partition back. That didn&#8217;t seem to restore everything (visibly, the positions of my desktop icons weren&#8217;t restored, but there were other problems) so I sent my system back to the restore point made during the system image/backup yesterday. That fixed the desktop icon positions, but:<br />
1) my Windows Explorer &#8220;Favorites&#8221; in the sidebar was empty and I could not modify it or restore its contents to the default,<br />
2) (minor) the folder icons for special folder such as &#8220;My Music&#8221; and &#8220;My Documents&#8221; didn&#8217;t appear, and<br />
3) (minor) in the control panel, all of the user images except for the guest one were blank &#8211; changing the picture did change the picture elsewhere on my system, but for some reason the frame showing the current picture in the &#8220;control panel&#8221; > &#8220;add or remove user accounts&#8221; was white, even after creating a new user and selecting a picture. </p>
<p>I dug for solutions on the interwebs and remembered that Favorites actually maps to Links in my Users/<name> directory (not intuitive at all). Once I made that folder, right clicked &#8220;Favorites&#8221; in the sidebar, and selected &#8220;Restore favorite links,&#8221; the folder populated with the three default links and I could modify its contents! I was ecstatic since I use the shortcuts that I place there frequently. Also, moving &#8220;My Documents&#8221; and &#8220;My Music&#8221; around and back to my E:\ brought back the appropriate icons. I have yet to find a fix for the user image problem, but that doesn&#8217;t really affect anything.</p>
<p>Edit: Also had to make all of my data in E:\ not read-only in order to do certain things. Not sure why it was read-only before.</p>
<p>So in case I ever do this again (likely) or any of you do, I hope this helps. =)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.whenbrainsfly.com/2009/11/fixing-windows-7-after-reinstalling-via-repair-disk-and-backup-image/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Windows 7</title>
		<link>http://www.whenbrainsfly.com/2009/09/installing-windows-7/</link>
		<comments>http://www.whenbrainsfly.com/2009/09/installing-windows-7/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 22:00:42 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[windows 7]]></category>

		<guid isPermaLink="false">http://www.whenbrainsfly.com/?p=140</guid>
		<description><![CDATA[Through my university&#8217;s membership in the MSDNAA program, I acquired Windows 7 Professional for free! Whoo! I backed up my laptop yesterday onto my external hard drive (took up 16gb) and am installing Windows 7 now (which takes about 16gb!), wiping out everything. Hopefully it goes well. 
Started around 5:45 or so.
Update 5:50pm &#8211; I [...]]]></description>
			<content:encoded><![CDATA[<p>Through my university&#8217;s membership in the <a href="http://msdn.microsoft.com/en-us/academic/default.aspx">MSDNAA</a> program, I acquired Windows 7 Professional for free! Whoo! I backed up my laptop yesterday onto my external hard drive (took up 16gb) and am installing Windows 7 now (which takes about 16gb!), wiping out everything. Hopefully it goes well. </p>
<p>Started around 5:45 or so.</p>
<p>Update 5:50pm &#8211; I reformatted my hard drive using the disk utility in the install dvd but was unable to create and resize partitions, which kinda sucks, since I was planning on <a href="http://lifehacker.com/5271338/separate-your-data-from-windows-on-a-standalone-partition">keeping a separate partition for my OS and for my data</a>. Maybe I can do it after finishing the installation, using the Disk Management Tool? Maybe?</p>
<p>Update 6:05pm (ish) &#8211; Done! Now configuring computer settings.</p>
<p>Update 6:10pm (ish) &#8211; Windows Update running.</p>
<p>Update the next day &#8211; All is working fine and all of the important and relevant files in my life today have been migrated over from my external. I had some annoyances with partitioning but I think it will be okay. The new directory structure and windows explorer sidebar is going to take a little getting used to from XP. The jump lists are pretty cool, and I will probably spend a good chunk of today reading through the many <a href="http://www.lifehacker.com">Lifehacker</a> posts on the cool new features in Windows 7. I&#8217;ll also be trying to keep my desktop clean and clutter-free as well! Only the recycle bin and very temporarily relevant/important files will be there. I hope I can keep that up. Overall, Windows 7 is pretty sleek and a nice upgrade from XP. I haven&#8217;t tried  any of the new functionality yet, but appearance- and usability-wise, I like it.</p>
<p>Update the morning after the next day &#8211; It seems that adding shortcuts to a folder in the Start Menu is difficult when not logged in as an administrator. I tried to create a shortcut to CCleaner in a new CCleaner folder I made in the Start Menu programs folder, but Windows said it could not be done and asked me if I wanted to make one on the Desktop first. I said yes and it did so after prompting for the admin password, and then I moved the Desktop shortcut into the CCleaner folder in the Start Menu programs folder. It worked (with admin password) and created a new shortcut there. I made sure that the new shortcut pointed to the original .exe file and then deleted the one on the Desktop. </p>
<p>It&#8217;s weird that I had to use the Desktop as an intermediate copy area in order to create the shortcut; it probably has to do with problems requiring admin permission for more than one step of the process or creating a shortcut from an admin-only area to an admin-only area. I never used a non-administrator account with XP so I don&#8217;t know how that worked before, but this is kinda odd. By the way, I am using a non-admin account for an extra level of security, as recommended by <a href="http://www.codinghorror.com/blog/archives/000891.html">Coding Horror</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.whenbrainsfly.com/2009/09/installing-windows-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Theme Updated and Miscellaneous Code</title>
		<link>http://www.whenbrainsfly.com/2009/08/theme-updated/</link>
		<comments>http://www.whenbrainsfly.com/2009/08/theme-updated/#comments</comments>
		<pubDate>Sat, 22 Aug 2009 05:34:33 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.whenbrainsfly.com/?p=131</guid>
		<description><![CDATA[I wasn&#8217;t really liking the Brain Power theme anymore, so I decided to make my own using the handy-dandy WordPress Theme Generator and then tweaked the details to my liking. It looks better now, in my opinion.
Hopefully these changes plus the smackdown on spam will encourage me to blog some more. (Comments will still be [...]]]></description>
			<content:encoded><![CDATA[<p>I wasn&#8217;t really liking the Brain Power theme anymore, so I decided to make my own using the handy-dandy <a href="http://www.yvoschaap.com/wpthemegen/">WordPress Theme Generator</a> and then tweaked the details to my liking. It looks better now, in my opinion.</p>
<p>Hopefully these changes plus the smackdown on spam will encourage me to blog some more. (Comments will still be moderated until I am sure spam is under control.)</p>
<p>Now for some miscellaneous things:</p>
<p>In the meantime, for my reference, I like to keep two aliases for my bash shell:</p>
<pre>
alias ll='ls -l'
alias ls='ls -aG' # for the BSD ls
alias ls='ls -a --color=auto' # for the GNU ls
</pre>
<p>I also like to change the default color for directories (blue) to cyan when in BSD (cyan foreground not otherwise used) so that I can see it better.</p>
<pre>
export LSCOLORS="gxfxcxdxbxegedabagacad"
</pre>
<p>In GNU ls, there is a different method and cyan is used for symbolic links, so rather than have two different colors for directories, which I see far more often than symbolic links, let&#8217;s change the directory color to blue and symbolic link color to yellow:</p>
<p>&#8212;-I&#8217;ll finish this up soon&#8212;-</p>
<p>For compiling a Java program using Cygwin and including the jxl.jar library (typical bin, lib, src setup):</p>
<pre>
#!/bin/bash
javac -cp `cygpath -wp lib/jxl.jar:.` -d bin $(find src -name '*.java')
</pre>
<p>For running a Java program using Cygwin and including the jxl.jar library (two parameters passed):</p>
<pre>
#!/bin/bash
java -cp `cygpath -wp lib/jxl.jar:src/:.` main.class.Name $1 $2
</pre>
<p>For running the above Java program on a Mac without the Mac top menu bar and with a specified dock name:</p>
<pre>
#!/bin/bash
java -cp lib/jxl.jar:src/:. -Dapple.laf.useScreenMenuBar=true
-Xdock:name="Program Name" main.class.Name $1 $2
</pre>
<p>Note to self: &lt;pre&gt; tags do not have word wrap. Consider using a special scrollable text field or plugin for displaying code.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.whenbrainsfly.com/2009/08/theme-updated/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
