<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1693678213233428743</id><updated>2012-02-16T21:50:42.222-05:00</updated><category term='serial'/><category term='Blog matters'/><category term='Visual Studio'/><category term='ProgressBar'/><category term='Vista'/><category term='process management'/><category term='Notebook fans'/><category term='CLI'/><category term='inspiron 1150'/><category term='localtime'/><category term='Form1'/><category term='passwords'/><category term='ClickOnce'/><category term='SP3'/><category term='Perl'/><category term='F-keys'/><category term='Remote Desktop'/><category term='http'/><category term='mkdir'/><category term='networks'/><category term='Gentoo'/><category term='C#'/><category term='timezone'/><category term='Control characters'/><category term='VMware'/><category term='Linux'/><category term='priority'/><category term='Windows tricks'/><category term='cmd'/><category term='Start menu'/><category term='wget'/><category term='.NET'/><title type='text'>#include "*.h"</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://unhchabo.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1693678213233428743/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://unhchabo.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>UNHchabo</name><uri>http://www.blogger.com/profile/14767076389071807046</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>14</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1693678213233428743.post-5407465283973695094</id><published>2008-11-03T00:29:00.004-05:00</published><updated>2008-11-03T00:33:19.798-05:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='timezone'/><category scheme='http://www.blogger.com/atom/ns#' term='Gentoo'/><category scheme='http://www.blogger.com/atom/ns#' term='localtime'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Timezone changes in Linux</title><content type='html'>I moved across timezones recently, and booted up my Gentoo machine. I modified /etc/conf.d/clock, but the "date" command kept giving back the time in my old timezone. Turns out you also have to change /etc/localtime .&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&amp;chap=7#doc_chap1"&gt;As seen in the Gentoo manual&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1693678213233428743-5407465283973695094?l=unhchabo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unhchabo.blogspot.com/feeds/5407465283973695094/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1693678213233428743&amp;postID=5407465283973695094' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1693678213233428743/posts/default/5407465283973695094'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1693678213233428743/posts/default/5407465283973695094'/><link rel='alternate' type='text/html' href='http://unhchabo.blogspot.com/2008/11/timezone-changes-in-linux.html' title='Timezone changes in Linux'/><author><name>UNHchabo</name><uri>http://www.blogger.com/profile/14767076389071807046</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1693678213233428743.post-5660540281932810765</id><published>2008-09-08T23:01:00.003-04:00</published><updated>2008-09-08T23:11:22.259-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='process management'/><category scheme='http://www.blogger.com/atom/ns#' term='priority'/><category scheme='http://www.blogger.com/atom/ns#' term='cmd'/><category scheme='http://www.blogger.com/atom/ns#' term='CLI'/><title type='text'>Lowering process priority on the command line</title><content type='html'>If there's a process that you want to start from the command line, or through a shortcut, but you want it to automatically have a higher or lower priority, use this syntax:&lt;br /&gt;&lt;blockquote&gt;C:\WINDOWS\system32\cmd.exe /c start "DC++" /low "C:\path\to\program.exe"&lt;/blockquote&gt;&lt;br /&gt;This will ensure that the program always gives up CPU time to other processes.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1693678213233428743-5660540281932810765?l=unhchabo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unhchabo.blogspot.com/feeds/5660540281932810765/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1693678213233428743&amp;postID=5660540281932810765' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1693678213233428743/posts/default/5660540281932810765'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1693678213233428743/posts/default/5660540281932810765'/><link rel='alternate' type='text/html' href='http://unhchabo.blogspot.com/2008/09/lowering-process-priority-on-command.html' title='Lowering process priority on the command line'/><author><name>UNHchabo</name><uri>http://www.blogger.com/profile/14767076389071807046</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1693678213233428743.post-6461463694585098589</id><published>2008-08-08T20:55:00.003-04:00</published><updated>2008-08-08T22:17:18.890-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VMware'/><category scheme='http://www.blogger.com/atom/ns#' term='Gentoo'/><category scheme='http://www.blogger.com/atom/ns#' term='Remote Desktop'/><title type='text'>Remote Desktop to a Virtual Machine</title><content type='html'>A little while ago I tried to Remote Desktop to a Windows XP Virtual Machine (hosted on a Gentoo Linux system) from work, and it wouldn't connect. I knew I could Remote Desktop from my WinXP workstation, so I found out that I could still get in by Remote Desktopping to my workstation, then using Remote Desktop on the workstation to get to the VM.&lt;br /&gt;&lt;br /&gt;That's a terrible work-around though, so I looked around for a proper solution. One of my friends told me a possible fix, I tried it, and it worked. You have to write "1" to /proc/sys/net/ipv4/ip_forward. This makes it so that the host OS will accept traffic not intended for itself, and forward it to the VMware net interfaces.&lt;br /&gt;&lt;br /&gt;Here is the /etc/init.d script I used to make this happen automatically:&lt;br /&gt;&lt;blockquote&gt;&lt;pre&gt;#!/sbin/runscript&lt;br /&gt;start() {&lt;br /&gt;        ebegin "Starting ${SVCNAME}"&lt;br /&gt;        echo 1 &gt;&gt; /proc/sys/net/ipv4/ip_forward&lt;br /&gt;        eend $?&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;stop() {&lt;br /&gt;        ebegin "Stopping ${SVCNAME}"&lt;br /&gt;        eend $?&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;br /&gt;Haven't had an issue since.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1693678213233428743-6461463694585098589?l=unhchabo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unhchabo.blogspot.com/feeds/6461463694585098589/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1693678213233428743&amp;postID=6461463694585098589' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1693678213233428743/posts/default/6461463694585098589'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1693678213233428743/posts/default/6461463694585098589'/><link rel='alternate' type='text/html' href='http://unhchabo.blogspot.com/2008/08/remote-desktop-to-virtual-machine.html' title='Remote Desktop to a Virtual Machine'/><author><name>UNHchabo</name><uri>http://www.blogger.com/profile/14767076389071807046</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1693678213233428743.post-661245377239272338</id><published>2008-07-22T16:50:00.004-04:00</published><updated>2008-07-22T17:37:57.744-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Perl'/><category scheme='http://www.blogger.com/atom/ns#' term='mkdir'/><title type='text'>Making directories</title><content type='html'>Twice in the past month I've had great frustration because of tools that would create a file given a non-existent filename, but would not create the directory structure necessary to hold the file, if it didn't exist.&lt;br /&gt;&lt;br /&gt;First off, the &lt;a href="http://www.vorbis.com/"&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;Ogg Vorbis&lt;/a&gt; encoder provided by &lt;a href="http://rarewares.org/index.php"&gt;RareWares&lt;/a&gt; is capable of auto-creating directories if they're specified in the output path. However, the &lt;a href="http://lame.sourceforge.net/index.php"&gt;Lame encoder&lt;/a&gt;, also provided by RareWares, does not. The directory needs to be created manually first if it doesn't exist, before a file can be written there.&lt;br /&gt;&lt;br /&gt;I had the same issue with Perl's open() procedure. It will create a file that doesn't exist, but the directory has to be there already.&lt;br /&gt;&lt;br /&gt;I know it's good practice to check for these things, but it's still annoying, chasing down an error like that.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1693678213233428743-661245377239272338?l=unhchabo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unhchabo.blogspot.com/feeds/661245377239272338/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1693678213233428743&amp;postID=661245377239272338' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1693678213233428743/posts/default/661245377239272338'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1693678213233428743/posts/default/661245377239272338'/><link rel='alternate' type='text/html' href='http://unhchabo.blogspot.com/2008/07/making-directories.html' title='Making directories'/><author><name>UNHchabo</name><uri>http://www.blogger.com/profile/14767076389071807046</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1693678213233428743.post-4286753601679933918</id><published>2008-07-09T23:45:00.003-04:00</published><updated>2008-07-09T23:51:35.937-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='ProgressBar'/><category scheme='http://www.blogger.com/atom/ns#' term='Visual Studio'/><title type='text'>MarqueeAnimationSpeed</title><content type='html'>I was having issues with a progress bar that was set to Marquee style. It was moving at a pretty good rate, and setting the MarqueeAnimationSpeed value seemed to have no effect. Turns out that you need to specify the speed &lt;span style="font-weight: bold;"&gt;before&lt;/span&gt; you set the ProgressBar to Marquee. In my case, the &lt;span style="font-style: italic;"&gt;working&lt;/span&gt; code looks like this:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;encodeProgress-&gt;MarqueeAnimationSpeed = 35;&lt;br /&gt;encodeProgress-&gt;Style = ProgressBarStyle::Marquee;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;I imagine that's the exact problem that &lt;a href="http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=115990"&gt;this person&lt;/a&gt; had. It's a shame Microsoft didn't figure out what the person had done.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1693678213233428743-4286753601679933918?l=unhchabo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unhchabo.blogspot.com/feeds/4286753601679933918/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1693678213233428743&amp;postID=4286753601679933918' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1693678213233428743/posts/default/4286753601679933918'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1693678213233428743/posts/default/4286753601679933918'/><link rel='alternate' type='text/html' href='http://unhchabo.blogspot.com/2008/07/marqueeanimationspeed.html' title='MarqueeAnimationSpeed'/><author><name>UNHchabo</name><uri>http://www.blogger.com/profile/14767076389071807046</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1693678213233428743.post-1642855850201580798</id><published>2008-06-13T14:25:00.012-04:00</published><updated>2008-06-16T12:55:47.613-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='Vista'/><category scheme='http://www.blogger.com/atom/ns#' term='Visual Studio'/><title type='text'>Visual Studio - Icons</title><content type='html'>There are a few things involved in adding icons to a Visual Studio project. Where applicable, this guide will reference &lt;a href="http://www.gimpshop.com/"&gt;GIMPshop&lt;/a&gt;, but the procedure should be very similar in Photoshop or GIMP (I don't know for sure, as I haven't recently used either one).&lt;br /&gt;&lt;br /&gt;First, make your icon in a larger resolution. 255x255 works well, since that's the largest size that the end result can be (Vista allows 255x255/256x256 icons if you have "large icons" enabled). After you have it as you want it, save it as a PNG, then scale it down to 3 different resolutions: 48x48, 32x32, and 16x16. All of these should be scaled down from the original 255x255, as that will provide the best-looking icons. After scaling, some manual pixel manipulation might be needed in order to produce the best-looking results, depending on the nature of the icon.&lt;br /&gt;&lt;br /&gt;After you have all 4 image files, open up the 255x255 file, then "Open as Layer" the same file twice more. Then "Open as Layer" each of the other three files three times each. Save the whole thing as an Microsoft Windows Icon file (.ico). A window will come up with each of the layers in it, and next to each layer is a dropdown box. The box lets you select the color bitrate for each layer. For each image size, you want one layer to be 32-bit, one layer to be 8-bit, and one layer to be 4-bit. Reducing the bitrate may require additional touching-up as well.&lt;br /&gt;&lt;br /&gt;You now have an icon file that can be imported into Visual Studio. There are two places where it should be imported into your project. The first is in the main window. In the window's Icon field, select the file you just made. Then do the same in the application's properties page (though VS may like it more if you import the icon as a Resource, then add it that way).&lt;br /&gt;&lt;br /&gt;With this, Windows should know when to use the right filesize and bitrate for any given situation.&lt;a href="http://en.wikipedia.org/wiki/ICO_%28icon_image_file_format%29#Recommended_icon_sizes_for_Windows_Vista_compatibility"&gt; These 12&lt;/a&gt; images are all that's recommended by Microsoft for Vista compatibility, but you can put in more if you want to be prepared for situations where Windows would otherwise &lt;a href="http://msdn.microsoft.com/en-us/library/aa511280.aspx"&gt;scale the icons for you&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1693678213233428743-1642855850201580798?l=unhchabo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unhchabo.blogspot.com/feeds/1642855850201580798/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1693678213233428743&amp;postID=1642855850201580798' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1693678213233428743/posts/default/1642855850201580798'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1693678213233428743/posts/default/1642855850201580798'/><link rel='alternate' type='text/html' href='http://unhchabo.blogspot.com/2008/06/visual-studio-icons.html' title='Visual Studio - Icons'/><author><name>UNHchabo</name><uri>http://www.blogger.com/profile/14767076389071807046</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1693678213233428743.post-2165524835876708776</id><published>2008-06-03T13:11:00.003-04:00</published><updated>2008-06-03T13:14:27.013-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ClickOnce'/><category scheme='http://www.blogger.com/atom/ns#' term='Start menu'/><category scheme='http://www.blogger.com/atom/ns#' term='Visual Studio'/><title type='text'>ClickOnce - Publisher Name</title><content type='html'>Something I'd forgotten: the item that determines the placement of a ClickOnce application within the Start menu is in Options-&gt;Publisher Name. I'm not sure how to publish to subfolders with ClickOnce yet though.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1693678213233428743-2165524835876708776?l=unhchabo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unhchabo.blogspot.com/feeds/2165524835876708776/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1693678213233428743&amp;postID=2165524835876708776' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1693678213233428743/posts/default/2165524835876708776'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1693678213233428743/posts/default/2165524835876708776'/><link rel='alternate' type='text/html' href='http://unhchabo.blogspot.com/2008/06/something-id-forgotten-item-that.html' title='ClickOnce - Publisher Name'/><author><name>UNHchabo</name><uri>http://www.blogger.com/profile/14767076389071807046</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1693678213233428743.post-2487250139665431199</id><published>2008-05-29T20:10:00.003-04:00</published><updated>2008-05-29T20:25:55.921-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Visual Studio'/><category scheme='http://www.blogger.com/atom/ns#' term='Form1'/><title type='text'>Renaming "Form1"</title><content type='html'>Visual Studio should really allow you to change the name of the startup form on creation of a new project, or at least have a more descriptive name, such as (ProjectName)Main. However, they don't do this, and you're stuck with the entirely bland and nondescript Form1.&lt;br /&gt;&lt;br /&gt;There is a way around this though: it's still much easier to do this right after you create the project rather than a long time down the road, but here it is:&lt;br /&gt;&lt;br /&gt;-Rename the filename of the main form (Form1.cs, Form1.h, etc).&lt;br /&gt;-Press Ctrl+H (brings up Quick Replace menu)&lt;br /&gt;-Change "Look in" to "Entire Solution" (not just that file)&lt;br /&gt;-Find "Form1", replace with the new name you've chosen.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1693678213233428743-2487250139665431199?l=unhchabo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unhchabo.blogspot.com/feeds/2487250139665431199/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1693678213233428743&amp;postID=2487250139665431199' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1693678213233428743/posts/default/2487250139665431199'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1693678213233428743/posts/default/2487250139665431199'/><link rel='alternate' type='text/html' href='http://unhchabo.blogspot.com/2008/05/renaming-form1.html' title='Renaming &quot;Form1&quot;'/><author><name>UNHchabo</name><uri>http://www.blogger.com/profile/14767076389071807046</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1693678213233428743.post-3555722855415686309</id><published>2008-05-27T16:10:00.007-04:00</published><updated>2008-05-27T16:21:01.743-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><category scheme='http://www.blogger.com/atom/ns#' term='Visual Studio'/><title type='text'>Recurse directories with C#</title><content type='html'>I'm working on a C# program that recurses through directories, adding all the files to a list (I felt like trying out C#, and this was a good place to start). I found &lt;a href="http://kungfu.christallos.com/2006/08/24/recurse-directories-retrieving-file-count.aspx"&gt;this VB.NET program&lt;/a&gt; doing something very similar, and adapted it to C#.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;blockquote&gt;private void recurseDirs(String rootdir) {&lt;br /&gt; DirectoryInfo dirinfo = new DirectoryInfo(rootdir);&lt;br /&gt; foreach(FileInfo fi in dirinfo.GetFiles()){&lt;br /&gt;     FileList.Items.Add(fi.FullName);&lt;br /&gt; }&lt;br /&gt; foreach(DirectoryInfo di in dirinfo.GetDirectories()){&lt;br /&gt;     recurseDirs(di.FullName);&lt;br /&gt; }&lt;br /&gt;}&lt;/blockquote&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1693678213233428743-3555722855415686309?l=unhchabo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unhchabo.blogspot.com/feeds/3555722855415686309/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1693678213233428743&amp;postID=3555722855415686309' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1693678213233428743/posts/default/3555722855415686309'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1693678213233428743/posts/default/3555722855415686309'/><link rel='alternate' type='text/html' href='http://unhchabo.blogspot.com/2008/05/recurse-directories-with-c.html' title='Recurse directories with C#'/><author><name>UNHchabo</name><uri>http://www.blogger.com/profile/14767076389071807046</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1693678213233428743.post-4913893079800099670</id><published>2008-05-16T12:20:00.003-04:00</published><updated>2008-05-16T12:27:04.964-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='http'/><category scheme='http://www.blogger.com/atom/ns#' term='passwords'/><category scheme='http://www.blogger.com/atom/ns#' term='wget'/><title type='text'>wget, and HTTP passwords</title><content type='html'>So, it turns out that wget has support for passworded HTTP files. It doesn't prompt by default like most browsers do; it just gets the 401 error code. However, using the options "--user=username" or "--http-user=username" and "--password=pass" or "--http-password=pass", you can get files hidden behind these user:pass mechanisms.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1693678213233428743-4913893079800099670?l=unhchabo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unhchabo.blogspot.com/feeds/4913893079800099670/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1693678213233428743&amp;postID=4913893079800099670' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1693678213233428743/posts/default/4913893079800099670'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1693678213233428743/posts/default/4913893079800099670'/><link rel='alternate' type='text/html' href='http://unhchabo.blogspot.com/2008/05/wget-and-http-passwords.html' title='wget, and HTTP passwords'/><author><name>UNHchabo</name><uri>http://www.blogger.com/profile/14767076389071807046</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1693678213233428743.post-2785028513691724624</id><published>2008-04-30T13:58:00.003-04:00</published><updated>2008-04-30T15:44:02.564-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='F-keys'/><category scheme='http://www.blogger.com/atom/ns#' term='serial'/><category scheme='http://www.blogger.com/atom/ns#' term='Control characters'/><title type='text'>F-keys as control characters</title><content type='html'>It's somewhat easily found online that control &lt;a href="http://en.wikipedia.org/wiki/Control_character#How_control_characters_map_to_keyboards"&gt;characters map onto a keyboard&lt;/a&gt; easily. Take the numeric value of the control character, add 64, and you get a letter. Press Ctrl and this letter, and you get the control character.&lt;br /&gt;&lt;br /&gt;However, one thing I couldn't fine anywhere online was how the F-keys mapped to ASCII. I needed a way to send them over a serial connection, and couldn't find a way.&lt;br /&gt;&lt;br /&gt;Turns out that F1 is sent in three bytes; in decimal they are 27, 79, 80. For the other F-keys, the last byte is incremented, up to F4 (27, 79, 83). HyperTerm doesn't seem to send anything if you press F5 and beyond.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1693678213233428743-2785028513691724624?l=unhchabo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unhchabo.blogspot.com/feeds/2785028513691724624/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1693678213233428743&amp;postID=2785028513691724624' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1693678213233428743/posts/default/2785028513691724624'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1693678213233428743/posts/default/2785028513691724624'/><link rel='alternate' type='text/html' href='http://unhchabo.blogspot.com/2008/04/f-keys-as-control-characters.html' title='F-keys as control characters'/><author><name>UNHchabo</name><uri>http://www.blogger.com/profile/14767076389071807046</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1693678213233428743.post-7749525725305429079</id><published>2008-04-29T11:58:00.003-04:00</published><updated>2008-04-29T12:15:28.255-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='inspiron 1150'/><category scheme='http://www.blogger.com/atom/ns#' term='Notebook fans'/><title type='text'>Dell notebook fans</title><content type='html'>I was working with a Dell laptop (Inspiron 1150, to be specific) last week whose fan had stopped working. The computer was going into auto-shutdown in a matter of minutes, even with an &lt;a href="http://www.newegg.com/Product/Product.aspx?Item=N82E16834999850"&gt;Antec cooling pad&lt;/a&gt; (a very nice pad, by the way), because it happened to be a particularly hot day. I looked up the price of a new heatsink/fan assembly, and found it to be somewhat reasonable ($20-30 on ebay), and was getting ready to order a new one, and attempt to install it myself. I've never fully taken apart a notebook before, only minor disassembly for the purposes of removing dust or doing minor upgrades, like adding RAM.&lt;br /&gt;&lt;br /&gt;Fortunately, it wasn't necessary to order the new fan, because I stumbled across a third-party &lt;a href="http://www.diefer.de/i8kfan/index.html"&gt;Dell fan control utility&lt;/a&gt;, which allowed me to adjust the fan speed manually. I'm aware of &lt;a href="http://www.almico.com/speedfan.php"&gt;SpeedFan&lt;/a&gt;, but it didn't seem to recognize the fan. The fan wouldn't run at any speed less than full anymore, so I had to use the utility to set the fan speed to max on startup, and just leave it at that. I guess the fan isn't dead, but maybe the internal fan controller is malfunctioning?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1693678213233428743-7749525725305429079?l=unhchabo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unhchabo.blogspot.com/feeds/7749525725305429079/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1693678213233428743&amp;postID=7749525725305429079' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1693678213233428743/posts/default/7749525725305429079'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1693678213233428743/posts/default/7749525725305429079'/><link rel='alternate' type='text/html' href='http://unhchabo.blogspot.com/2008/04/dell-notebook-fans.html' title='Dell notebook fans'/><author><name>UNHchabo</name><uri>http://www.blogger.com/profile/14767076389071807046</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1693678213233428743.post-73327999289829531</id><published>2008-04-29T11:45:00.004-04:00</published><updated>2008-05-02T19:09:54.117-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='SP3'/><category scheme='http://www.blogger.com/atom/ns#' term='networks'/><title type='text'>XP SP3</title><content type='html'>Microsoft has &lt;a href="http://www.dailytech.com/Windows+XP+Service+Pack+3+Now+Available/article11625.htm"&gt;released Windows XP Service Pack 3&lt;/a&gt; today. As a side effect of the increased security features though, some people have seen a couple of instances of trouble related to the increased security features. For example, downloading files over a LAN has been made more secure, which has caused at least a few people issues. Fortunately, &lt;a href="http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=2675289&amp;amp;SiteID=17"&gt;there is a workaround&lt;/a&gt; for those who need this functionality.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Update: &lt;/span&gt;&lt;a href="http://www.dailytech.com/Microsoft+Pulls+XP+SP3+Delays+Release+Indefinitely/article11635.htm"&gt;Scratch that...&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1693678213233428743-73327999289829531?l=unhchabo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unhchabo.blogspot.com/feeds/73327999289829531/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1693678213233428743&amp;postID=73327999289829531' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1693678213233428743/posts/default/73327999289829531'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1693678213233428743/posts/default/73327999289829531'/><link rel='alternate' type='text/html' href='http://unhchabo.blogspot.com/2008/04/xp-sp3.html' title='XP SP3'/><author><name>UNHchabo</name><uri>http://www.blogger.com/profile/14767076389071807046</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1693678213233428743.post-751881149274640780</id><published>2008-04-29T09:39:00.000-04:00</published><updated>2008-04-29T09:45:13.914-04:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Blog matters'/><title type='text'>In before title change</title><content type='html'>Hey there! I'm not really one for blogging in a huge way, but I comment on some blogs on a regular basis, so I figure I might as well make one, and then occasionally post stuff that piques my interest. I imagine most of it will be related to computers, networking, and programming, but I may go for other topics if I feel like it. I may change the title, cause I'm not sure I like it, but I hope something I post here is useful to someone else. If not, then at least I have a good archive for stuff that's interesting to me, like stupid C tricks.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1693678213233428743-751881149274640780?l=unhchabo.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://unhchabo.blogspot.com/feeds/751881149274640780/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1693678213233428743&amp;postID=751881149274640780' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1693678213233428743/posts/default/751881149274640780'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1693678213233428743/posts/default/751881149274640780'/><link rel='alternate' type='text/html' href='http://unhchabo.blogspot.com/2008/04/hey-there-im-not-really-one-for.html' title='In before title change'/><author><name>UNHchabo</name><uri>http://www.blogger.com/profile/14767076389071807046</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
