<?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>Eric Martin &#187; Other</title>
	<atom:link href="http://www.ericmmartin.com/tag/other/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ericmmartin.com</link>
	<description></description>
	<lastBuildDate>Thu, 22 Apr 2010 15:28:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Symbolic links in Windows</title>
		<link>http://www.ericmmartin.com/symbolic-links-in-windows/</link>
		<comments>http://www.ericmmartin.com/symbolic-links-in-windows/#comments</comments>
		<pubDate>Fri, 04 Apr 2008 17:28:53 +0000</pubDate>
		<dc:creator>Eric Martin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Other]]></category>

		<guid isPermaLink="false">http://www.ericmmartin.com/?p=37</guid>
		<description><![CDATA[Symbolic links can be very useful, but if you are a Windows user, you've had to use junction points because there hasn't been native support for symbolic links until recently. Windows Vista and Windows Server 2008 now support symbolic links mklink command. See Junfeng Zhang's write up on the mklink command. For those using Windows [...]]]></description>
			<content:encoded><![CDATA[<p><a href='http://en.wikipedia.org/wiki/Symbolic_link'>Symbolic links</a> can be very useful, but if you are a Windows user, you've had to use <a href="http://en.wikipedia.org/wiki/NTFS_junction_point">junction points</a> because there hasn't been native support for symbolic links until recently.</p>
<p>Windows Vista and Windows Server 2008 now support <a href="http://en.wikipedia.org/wiki/NTFS_symbolic_link">symbolic links</a> <code>mklink</code> command. See Junfeng Zhang's <a href="http://blogs.msdn.com/junfeng/archive/2006/04/15/576568.aspx">write up</a> on the mklink command.</p>
<p>For those using Windows 2000 or XP, you'll still need to use junction points to achieve a similar effect. Microsoft has a <a href="http://support.microsoft.com/kb/205524">KB article</a> on creating junction points, but there are some drawbacks to manually trying to manually manage junction points.</p>
<p>Fortunately, there are tools available that ease the pain of using junction points and prevent you from having to know all of the command line options. One such tool is <a href="http://sourceforge.net/projects/ntfslinkext/">NTFS Link</a>, which provides shell integration for junction points. You can simply right-click in a folder and select New > NTFS Junction Point. Then select the target folder to link to and a "new" folder, named "Link to <em>target folder</em>" will be created in the directory you are in.</p>
<p>So, if you are a Windows user, you now have a couple of different options for creating and using symbolic links!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ericmmartin.com/symbolic-links-in-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finding files containing a certain value</title>
		<link>http://www.ericmmartin.com/finding-files-containing-a-certain-value/</link>
		<comments>http://www.ericmmartin.com/finding-files-containing-a-certain-value/#comments</comments>
		<pubDate>Tue, 04 Mar 2008 16:04:48 +0000</pubDate>
		<dc:creator>Eric Martin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Other]]></category>

		<guid isPermaLink="false">http://www.ericmmartin.com/finding-files-containing-a-certain-value/</guid>
		<description><![CDATA[Searching for files containing a certain string/text/value is something that I do quite often. There are a number of ways to perform a "find files containing 'foo'" search, but for me, nothing beats the simplicity and power of the command line! In Windows: findstr /s /n /i /p foo * The above example of findstr [...]]]></description>
			<content:encoded><![CDATA[<p>Searching for files containing a certain string/text/value is something that I do quite often. There are a number of ways to perform a "find files containing 'foo'" search, but for me, nothing beats the simplicity and power of the command line!</p>
<p>In Windows:</p>
<pre><code>findstr /s /n /i /p foo *</code></pre>
<p>The above example of <a href='http://technet.microsoft.com/en-us/library/bb490907.aspx'>findstr</a> will print out the relative file name/path and line number (/n) in a recursive (/s), case insensitive (/i) search for the string foo (foo) in all files (*), ignoring files with non-printable characters (/p).</p>
<p>For a literal string, you can use the /c option:</p>
<pre><code>findstr /s /n /i /p /c:"foo bar" *</code></pre>
<p>There are a number of other options, but those are the ones I use most often. To restrict your search to certain files, just change the * to the pattern you are looking for, like: *.txt or *.css, etc.</p>
<p>For Unix:</p>
<pre><code>grep -rni foo *</code></pre>
<p>The above example of <a href='http://www.gnu.org/software/grep/doc/grep_2.html#SEC2'>grep</a> will print out the relative file name/path, matching content and line number (-n) in a recursive (-r), case insensitive (-i) search for the string foo (foo) in all files (*).</p>
<p>To search for a literal string, just put the search pattern in quotes.</p>
<p>If you just want to see the relative file name/path and don't care about the line number/content, you can use:</p>
<pre><code>grep -rli foo *</code></pre>
<p>And since these are commands I use all the time, I usually set up "shortcuts", so that I don't have to type out long commands with lots of options.</p>
<p>In Windows, you can create a batch file, called grep.bat for example, with the following:</p>
<pre><code>findstr /s /n /p /i /c:"%1" %2</code></pre>
<p>Then from the command line, just type <code>grep foo *</code>. For this to work, grep.batch needs to be in a folder that is in your PATH <a href='http://en.wikipedia.org/wiki/Environment_variable'>environment variable</a>.</p>
<p>In Unix, there are a number of ways to do this, but I tend to just create an <a href='http://en.wikipedia.org/wiki/Alias_(Unix_shell)'>alias</a>. For example, from the command line:</p>
<pre><code>alias search='grep -rni'</code></pre>
<p>Then from the command line, just type <code>search foo *</code>. Of course, you can just about any word/letter in place of search, just as long as it's not a reserved/system keyword. Lastly, you can add the alias command to a startup file and it will be available to you every time you log in.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ericmmartin.com/finding-files-containing-a-certain-value/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running Ubuntu 7.10 in VMWare Player</title>
		<link>http://www.ericmmartin.com/running-ubuntu-710-in-vmware-player/</link>
		<comments>http://www.ericmmartin.com/running-ubuntu-710-in-vmware-player/#comments</comments>
		<pubDate>Wed, 31 Oct 2007 04:22:09 +0000</pubDate>
		<dc:creator>Eric Martin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Other]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.ericmmartin.com/running-ubuntu-710-in-vmware-player/</guid>
		<description><![CDATA[I wanted to check out the latest Ubuntu release, so I downloaded the following VMWare image: http://isv-image.ubuntu.com/vmware/Ubuntu-7.10-server-i386.zip After extracting the 2 files, I opened Ubuntu-7.10-server-i386.vmx in VMWare Player. A dialog appeared asking me if I had moved or copied the image opened, so I selected "I copied it". After which, I received an "error" saying [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to check out the latest Ubuntu release, so I downloaded the following VMWare image:<br />
<a href="http://isv-image.ubuntu.com/vmware/Ubuntu-7.10-server-i386.zip">http://isv-image.ubuntu.com/vmware/Ubuntu-7.10-server-i386.zip</a></p>
<p>After extracting the 2 files, I opened <code>Ubuntu-7.10-server-i386.vmx</code> in VMWare Player. A dialog appeared asking me if I had moved or copied the image opened, so I selected "I copied it". </p>
<p>After which, I received an "error" saying something like "This CPU is VT-Capable but VT is not enabled ...". It appears that even though the image I downloaded was for an i386 machine, it was defined as a 64-bit machine in the vmx file. After the OS loaded, I logged in (ubuntu/ubuntu) and did a shutdown:</p>
<p><span id="more-16"></span></p>
<pre><code>sudo shutdown -h now
</code></pre>
<p>I edited <code>Ubuntu-7.10-server-i386.vmx</code> and changed <code>guestOS = "ubuntu-64"</code> to <code>guestOS = "ubuntu"</code>. I reopened the file in VMWare Player and then all was fine...</p>
<p>After logging in again, I discovered that I had no network connectivity. I did an <code>ifconfig</code> and noticed that eth0 was missing. So, I tried a <code>sudo ifup eth0</code> and got the following error:</p>
<pre><code>eth0: ERROR while getting interface flags: No such device

...

SIOCSIFADDR: No such device
eth0: ERROR while getting interface flags: No such device
eth0: ERROR while getting interface flags: No such device
Bind socket to interface: No such device
Failed to bring up eth0
</code></pre>
<p>I did a bunch of Google searches and tried a bunch of different "fixes", but ended up finding the real problem. [Background]: When VMWare Player starts up, it generates a MAC address as well as an UUID for the system (in the vmx file). </p>
<p>Well, it turns out that in <code>/etc/udev/rules.d/70-persistent-net.rules</code> file, the MAC address that VMWare generated (ethernet0.generatedAddress) was being assigned to eth1 and therefore, the eth0 MAC address was incorrect. So I edited the file and removed the first entry:</p>
<pre><code># PCI device 0x8086:0x100f (e1000)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}="[bad mac]", NAME="eth0"
</code></pre>
<p>Then I edited the line with the correct MAC address and changed eth1 to eth0. I read about some commands to run that would make eth0 start working, but I ended up just restarting the OS. After it came back up...eth0 was alive!!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ericmmartin.com/running-ubuntu-710-in-vmware-player/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>Clearing VMWare Player Recent Virtual Machines list</title>
		<link>http://www.ericmmartin.com/clearing-vmware-player-recent-virtual-machines-list/</link>
		<comments>http://www.ericmmartin.com/clearing-vmware-player-recent-virtual-machines-list/#comments</comments>
		<pubDate>Sat, 27 Oct 2007 03:25:00 +0000</pubDate>
		<dc:creator>Eric Martin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Other]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.ericmmartin.com/clearing-vmware-player-recent-virtual-machines-list/</guid>
		<description><![CDATA[The VMWare Player does not include an option to clear the list of "Recent Virtual Machines" (why not?!?!). Since the list of virtual machines that I had opened was growing quite long, I set out to find a way to clear it myself. After searching in a few places (Windows XP), I came across the [...]]]></description>
			<content:encoded><![CDATA[<p>The VMWare Player does not include an option to clear the list of "Recent Virtual Machines" (why not?!?!). Since the list of virtual machines that I had opened was growing quite long, I set out to find a way to clear it myself.</p>
<p>After searching in a few places (Windows XP), I came across the file that holds this information. It's called <code>preferences.ini</code> and is located in:<br />
<code>[drive]:\Documents and Settings\[user]\Application Data\VMWare</code></p>
<p>UPDATE: In Windows Vista, the file is located in:<br />
<code>[drive]:\Users\[user]\AppData\Roaming\VMWare</code></p>
<p>At the bottom of the file, you should see entries like (where X is a sequential number):</p>
<pre><code>pref.mruVMX.filename = "..."
pref.mruVMX.displayname = "..."
</code></pre>
<p>Just delete/reorder the entries as desired, save, then start VMWare Player to see the changes. VMWare Player will need to be closed before you make the changes, or they will not be saved.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ericmmartin.com/clearing-vmware-player-recent-virtual-machines-list/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>
