<?xml version="1.0" encoding="utf-8"?>
			
			<rss version="2.0">
			<channel>
			<title>Lynch Consulting Blog - Windows</title>
			<link>http://www.lynchconsulting.com.au/blog/index.cfm</link>
			<description>A blog about ColdFusion, PHP, Flash, Flex, Web Standards and a mish mash of other technologies</description>
			<language>en-us</language>
			<pubDate>Tue, 07 Sep 2010 12:53:31 --1000</pubDate>
			<lastBuildDate>Sat, 14 Nov 2009 13:35:00 --1000</lastBuildDate>
			<generator>BlogCFC</generator>
			<docs>http://blogs.law.harvard.edu/tech/rss</docs>
			<managingEditor>mark@lynchconsulting.com.au</managingEditor>
			<webMaster>mark@lynchconsulting.com.au</webMaster>
			
			
			
			
			
			<item>
				<title>Windows File Sharing (SMB/CIFS/Samba) over SSH</title>
				<link>http://www.lynchconsulting.com.au/blog/index.cfm/2009/11/14/Windows-File-Sharing-SMBCIFSSamba-over-SSH</link>
				<description>
				
				While working with a client recently setting up a Netgear VPN so he could securely access his internal file server.   The VPN setup was straightforward but every time the VPN client connected to the VPN server the VPN server/firewall would crash - leaving no connectivity.

In order to come up with a reliable solution to this we decided to use the SSH server we had available and tunnel the windows sharing across the local port forwards, much simpler and more reliable.


Thanks to &lt;a href=&quot;http://www.blisstonia.com/eolson/notes/smboverssh.php&quot;&gt;this article&lt;/a&gt; it was a breeze to set up.

Steps are as follows:
&lt;ul&gt;
&lt;li&gt;Create loopback adapter on windows&lt;/li&gt;
&lt;li&gt;Configure loopback adapter on windows&lt;/li&gt;
&lt;li&gt;Reboot&lt;/li&gt;
&lt;li&gt;Configure SSH connection&lt;/li&gt;
&lt;li&gt;Test it all out&lt;/li&gt;
&lt;/ul&gt;


&lt;h3&gt;Create loopback adapter on windows&lt;/h3&gt;


We&apos;ll give your computer an additional (fake) IP address, and we&apos;ll port forward to that address instead of the computer&apos;s real IP. Windows XP will continue to do file sharing on the real IP address. We&apos;ll assign it an IP of 10.0.0.1 (that&apos;s what we configured putty to use above.)

&lt;ol&gt;

&lt;li&gt;System-&gt;Control Panel-&gt;Add Hardware&lt;/li&gt;
&lt;li&gt;Yes, Hardware is already connected&lt;/li&gt;
&lt;li&gt;Add a new hardware device (at bottom of list)&lt;/li&gt;
&lt;li&gt;Install the hardware that I manually select&lt;/li&gt;
&lt;li&gt;Network adapters&lt;/li&gt;
&lt;li&gt;Microsoft , Microsoft Loopback Adapter&lt;/li&gt;
&lt;li&gt;(Go through the installation procedure.)&lt;/li&gt;
&lt;/ol&gt;



&lt;h3&gt;Configure loopback adapter on windows&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Open your new fake ethernet adapter (Network Connections) , enter a made-up IP address (I suggest 10.0.0.1, which is a privately routable address that most folk don&apos;t use.)&lt;/li&gt;
&lt;li&gt;Enable Client for Microsoft Networks.&lt;/li&gt;
&lt;li&gt;Disable File and Printer Sharing for Microsoft Networks&lt;/li&gt;
&lt;li&gt;Enable Interent Protocol (TCP/IP)&lt;/li&gt;
&lt;li&gt;Click on properties for TCP/IP.&lt;/li&gt;
&lt;li&gt;Enter your chosen IP address (10.0.0.1), subnet mask (255.255.255.0).  You can leave gateway blank.&lt;/li&gt;
&lt;li&gt;Under advanced-&gt;WINS, Enable LMHosts Lookup and Disable NetBIOS over TCP/IP&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;Reboot&lt;/h3&gt;
In order to make it all work now it he appropriate time to reboot so windows initialises everything correctly.

&lt;h3&gt;Configure SSH connection&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Download Putty&lt;/li&gt;
&lt;li&gt;Enter IP address&lt;/li&gt;
&lt;li&gt;Enter Auth Key (if using SSH keys)&lt;/li&gt;
&lt;li&gt;Enter Port forwards for: (these connect the ports on you local machine to 
&lt;ul&gt;
&lt;li&gt;10.0.0.1:137 to 127.0.0.1:137&lt;/li&gt;
&lt;li&gt;10.0.0.1:138 to 127.0.0.1:138&lt;/li&gt;
&lt;li&gt;10.0.0.1:139 to 127.0.0.1:139&lt;/li&gt;
&lt;li&gt;10.0.0.1:445 to 127.0.0.1:445&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Save the config.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;Test it all out&lt;/h3&gt;
Now to connect you need to do the following steps:

&lt;ul&gt;
&lt;li&gt;Open putty, load the settings and connect.&lt;/li&gt;
&lt;li&gt;Open Exporer and type in:  \\10.0.0.1\&lt;/li&gt;
&lt;/ul&gt;

You should now be connected to your remote windows system over a secure encrypted tunnel.

Cheers,
Mark
				
				</description>
				
				<category>Windows</category>
				
				<category>Systems admin</category>
				
				<category>Linux</category>
				
				<category>HOWTO</category>
				
				<pubDate>Sat, 14 Nov 2009 13:35:00 --1000</pubDate>
				<guid>http://www.lynchconsulting.com.au/blog/index.cfm/2009/11/14/Windows-File-Sharing-SMBCIFSSamba-over-SSH</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>Clear MSSQL Query Caches</title>
				<link>http://www.lynchconsulting.com.au/blog/index.cfm/2009/2/3/Clear-MSSQL-Query-Caches</link>
				<description>
				
				Found this useful little snippet for when you are load testing MSSQL Servers.

You can use it to clear the query cache - to ensure you are starting from a level playing field.  Or if you are tuning queries in a application and want to ensure they are not cached run it before each run:

&lt;code&gt;
dbcc freeproccache
go
dbcc dropcleanbuffers
go
&lt;/code&gt;

Cheers,
Mark
				
				</description>
				
				<category>Database</category>
				
				<category>ColdFusion</category>
				
				<category>Windows</category>
				
				<pubDate>Tue, 03 Feb 2009 22:12:00 --1000</pubDate>
				<guid>http://www.lynchconsulting.com.au/blog/index.cfm/2009/2/3/Clear-MSSQL-Query-Caches</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>DVD to iPod conversion - Linux, Mac &amp; Windows</title>
				<link>http://www.lynchconsulting.com.au/blog/index.cfm/2008/5/17/DVD-to-iPod-conversion--Linux-Mac--Windows</link>
				<description>
				
				I&apos;ve been looking for a while for a way to convert DVD&apos;s and other movies that I have into iPod format and have been failing miserably.  That is until today, when I came across the unusually named &lt;a href=&quot;http://handbrake.fr/&quot;&gt;HandBrake&lt;/a&gt;.

It does exactly what is says on the tin and makes it very easy to copy dvd&apos;s.  Initially I used it from my Mac and it worked flawlessly.  

I also tried the Linux version on Ubuntu Hardy (8.04) which has no GUI but it is pretty simple when you get the hang of it.

Here&apos;s a typical command line:

&lt;code&gt;
 HandBrakeCLI --preset=&quot;iPod Low-Rez&quot; -i /media/cdrom -o myvideo.mp4 -t 2
&lt;/code&gt;

This reads from /dev/cdrom  and uses the handy &quot;iPod Low-Rez&quot; preset which fixes it all up nicely for the iPod. 


And here&apos;s one that takes the second title:
&lt;code&gt;
 HandBrakeCLI --preset=&quot;iPod Low-Rez&quot; -i /media/cdrom -o myvideo.mp4 -t 2
&lt;/code&gt;

The wiki has &lt;a href=&quot;http://handbrake.fr/trac/wiki/CLIGuide&quot;&gt;more information on command line usage&lt;/a&gt;.

Happy iPodding.

Cheers,
Mark
				
				</description>
				
				<category>Gadgets</category>
				
				<category>HOWTO</category>
				
				<category>Linux</category>
				
				<category>Mac OSX</category>
				
				<category>Open Source</category>
				
				<category>Ubuntu</category>
				
				<category>Windows</category>
				
				<pubDate>Sat, 17 May 2008 01:21:00 --1000</pubDate>
				<guid>http://www.lynchconsulting.com.au/blog/index.cfm/2008/5/17/DVD-to-iPod-conversion--Linux-Mac--Windows</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>Gmail, Docs, Calendar and Analytics standalone with Prism</title>
				<link>http://www.lynchconsulting.com.au/blog/index.cfm/2008/3/25/Gmail-Docs-Calendar-and-Analytics-standalone-with-Prism</link>
				<description>
				
				I came across &lt;a href=&quot;http://wiki.mozilla.org/WebRunner&quot;&gt;Mozilla Prism&lt;/a&gt; the other day and while I&apos;m still deciding if it&apos;s going to be a permanent addition to my machine so far so good.

&lt;img src=&quot;http://www.lynchconsulting.com.au/blog/enclosures/prism-gmail.png&quot; alt=&quot;Screenshot of Prism Gmail&quot; align=&quot;right&quot;/&gt;
Prism is a cut down version of Mozilla which is designed to run single sites from icon - what&apos;s the use of that you may ask?  Well it allows you to have an icon on your desktop for Gmail or Google Calendar or docs or analytics and get to it nice and quickly.

It also free&apos;s up some much needed screen real-estate as all the other toolbars relevant for a web-developers browser can get in the way and are not used when you are using you email and calendar.

Additionally - as web developer I tend to restart firefox more often than some - and having my email seperated from that is nice.

Give it a try and see if you like it.  On Ubuntu Hardy you can do the following to install it:
&lt;code&gt;
#install calendar
sudo apt-get install prism-google-calendar
#install google docs
sudo apt-get install prism-google-docs
#install gmail
sudo apt-get install prism-google-mail
#install analytics
sudo apt-get install prism-google-analytics
&lt;/code&gt;

On other platforms (windows,mac or other linux versions) you can go to the &lt;a href=&quot;http://wiki.mozilla.org/WebRunner#Latest_Version&quot;&gt;Prism site and download it&lt;/a&gt;.

For the different applications check out the &lt;a href=&quot;http://wiki.mozilla.org/WebRunner#Bundles&quot;&gt;Bundles section&lt;/a&gt; or the &lt;a href=&quot;http://wiki.mozilla.org/WebRunner#User_Contributed_Bundles&quot;&gt;User contributed bundles section&lt;/a&gt;.

Obviously this shares a lot of similarities with the adobe AIR platform albeit not as full featured.  It will be interesting to see what further development plans there are for the prism platform.

Cheers,
Mark
				
				</description>
				
				<category>Windows</category>
				
				<category>Ubuntu</category>
				
				<category>Open Source</category>
				
				<category>Mac OSX</category>
				
				<category>Linux</category>
				
				<category>AIR</category>
				
				<pubDate>Tue, 25 Mar 2008 07:32:00 --1000</pubDate>
				<guid>http://www.lynchconsulting.com.au/blog/index.cfm/2008/3/25/Gmail-Docs-Calendar-and-Analytics-standalone-with-Prism</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>Pretty network diagrams and flow charts with Open Source software.</title>
				<link>http://www.lynchconsulting.com.au/blog/index.cfm/2008/2/13/Pretty-network-diagrams-and-flow-charts-with-Open-Source-software</link>
				<description>
				
				I had been using &lt;a href=&quot;http://www.gnome.org/projects/dia/&quot;&gt;Dia&lt;/a&gt; for all my charts and diagrams, and it does a very good job.  The only downside is that it doesn&apos;t produce very pretty charts of the like of &lt;a href=&quot;http://www.omnigroup.com/applications/omnigraffle/&quot;&gt;Omnigraffle&lt;/a&gt;.

However, &lt;a href=&quot;http://www.ioncannon.net/utilities/123/10-tips-for-creating-good-looking-diagrams-using-inkscape/&quot;&gt;inspired by this article&lt;/a&gt;, I&apos;m starting to use a new solution, &lt;a href=&quot;http://www.inkscape.org/&quot;&gt;Inkscape&lt;/a&gt;, that fulfills my criteria that works on Linux, Mac and Windows.


&lt;table border=&quot;1&quot;&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;a href=&quot;http://www.gnome.org/projects/dia/&quot;&gt;Dia&lt;/a&gt;&lt;/th&gt;
&lt;th&gt;&lt;a href=&quot;http://www.omnigroup.com/applications/omnigraffle/&quot;&gt;Omnigraffle&lt;/a&gt;&lt;/th&gt;
&lt;th&gt;&lt;a href=&quot;http://www.inkscape.org/&quot;&gt;Inkscape&lt;/a&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Can create pretty pictures&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cross Platform (Linux, Mac, Windows)&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No - Mac only&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Open Source&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Open file format (to work with version control)&lt;/td&gt;
&lt;td&gt;No - Binary&lt;/td&gt;
&lt;td&gt;No - Binary&lt;/td&gt;
&lt;td&gt;Yes - SVG&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Export to PNG&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

Now you may argue that Inkscape is not a diagraming tool but a generic drawing tool.  This is true, but with the addition of a few templates of pre-drawn items it become a very good diagramming tool.

I&apos;ve created a few simple flow chart elements which I use and also scoured the net for some SVG icons for network based diagrams which were sourced from &lt;a href=&quot;http://packages.ubuntu.com/gutsy/gnome/gnome-icon-theme&quot;&gt;Gnome (via Ubuntu)&lt;/a&gt; and from &lt;a href=&quot;http://www.quantum-bits.org/?p=57&quot;&gt;Quantum Bits&lt;/a&gt;.

&lt;h3&gt;Templates Previews&lt;/h3&gt;


&lt;img src=&quot;http://www.lynchconsulting.com.au/blog/enclosures/Diagram-Template.png&quot;
alt=&quot;Flow chart diagram preview&quot;  style=&quot;float:left&quot;&gt;

&lt;img src=&quot;http://www.lynchconsulting.com.au/blog/enclosures/Device-Template.png&quot;
alt=&quot;Computing devices preview&quot; style=&quot;float:left&quot;&gt;


&lt;h3 style=&quot;clear:left&quot;&gt;Download&lt;/h3&gt;
Download the svg templates (right click - Save As):
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://www.lynchconsulting.com.au/blog/enclosures/Diagram-Template.svg&quot;&gt;Flowchart  Template (SVG) (10k)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.lynchconsulting.com.au/blog/enclosures/Device-Template.svg&quot;&gt;Network Devices Template (SVG) (1.6M)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

Give it a try - it&apos;s very easy.
				
				</description>
				
				<category>Windows</category>
				
				<category>Ubuntu</category>
				
				<category>Software Architecture</category>
				
				<category>Open Source</category>
				
				<category>Mac OSX</category>
				
				<category>Linux</category>
				
				<pubDate>Wed, 13 Feb 2008 07:31:00 --1000</pubDate>
				<guid>http://www.lynchconsulting.com.au/blog/index.cfm/2008/2/13/Pretty-network-diagrams-and-flow-charts-with-Open-Source-software</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>Cross platform Database IDE</title>
				<link>http://www.lynchconsulting.com.au/blog/index.cfm/2007/9/15/Cross-platform-Database-IDE</link>
				<description>
				
				Ever since I&apos;ve moved to using Linux full time I&apos;ve been looking for a solid Database IDE. I&apos;ve tried and tested quite a few.

&lt;dl&gt;
&lt;dt&gt;&lt;a href=&quot;http://www.aquafold.com/&quot;&gt;Aqua Data Studio&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;This is my current DB IDE of choice and has some significant features in the new &lt;a href=&quot;http://docs.aquafold.com/ads/6.5/features_6_5.html&quot;&gt;version 6.5&lt;/a&gt; that means I&apos;ll be staying with it for a while, particularly as it runs on Linux, Macs and Windows identically.&lt;/dd&gt;
&lt;dd&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://docs.aquafold.com/ads/6.5/features_6_5.html#schemaCompare&quot;&gt;Schema Comparison&lt;/a&gt; - very handy for keeping development and production db&apos;s schemas in sync.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://docs.aquafold.com/ads/6.5/features_6_5.html#pivotresults&quot;&gt;Charts &amp; Pivot Tables&lt;/a&gt; - makes it easy to create adhoc graphs withouth having to resort to Excel/OpenOffice Calc&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://docs.aquafold.com/ads/6.5/features_6_5.html#morphtolist&quot;&gt;Morph to Delimited List&lt;/a&gt; - A simple but powerful function that saves a lot of time. Allows you to take the results of a sql query and convert to comma seperated list.  I&apos;ve done dozens of adhoc CF scripts to handle this before :-)&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://docs.aquafold.com/ads/6.5/features_6_5.html#subversion&quot;&gt;Subversion Support&lt;/a&gt; - As we use subversion for our code it&apos;s handy to have it built in.&lt;/li&gt;
&lt;/ul&gt;

&lt;/dd&gt;
&lt;dt&gt;&lt;a href=&quot;http://dev.mysql.com/downloads/gui-tools/&quot;&gt;MySQL GUI tools&lt;/a&gt; (Query Browser &amp; Admin)&lt;/dt&gt;
&lt;dd&gt;These have some very nice functionality but have always found them to be pretty unstable - they just crash a lot with no explanation.&lt;/dd&gt;
&lt;dt&gt;&lt;a href=&quot;http://www.navicat.com/&quot;&gt;Navicat&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;This is pretty good option, but the Linux version is the poor cousin to the Windows &amp;amp; Mac versions.&lt;/dd&gt;

&lt;/dl&gt;

Love to hear any comments feedback or suggestions.
				
				</description>
				
				<category>Systems admin</category>
				
				<category>Open Source</category>
				
				<category>Java</category>
				
				<category>Database</category>
				
				<category>ColdFusion</category>
				
				<category>Windows</category>
				
				<pubDate>Sat, 15 Sep 2007 05:29:00 --1000</pubDate>
				<guid>http://www.lynchconsulting.com.au/blog/index.cfm/2007/9/15/Cross-platform-Database-IDE</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>howto document your code with ASDoc</title>
				<link>http://www.lynchconsulting.com.au/blog/index.cfm/2007/8/23/howto-document-your-code-with-ASDoc</link>
				<description>
				
				Last night I was trying to document our AS3 code, using ASDoc, for a project that we have been working on.  For those of you who don&apos;t know, ASDoc is a command line utility which allows you to generate code documentation in HTML format.  A good example of what ASDoc output looks like would be, &lt;a href=&quot;http://livedocs.adobe.com/flex/2/langref/index.html&quot; target=&quot;_blank&quot;&gt;Flex 2 Language Reference&lt;/a&gt;.

Documenting code wasn&apos;t as easy as I thought it would be, so I thought I&apos;d share this with you and hopefully it will save someone some time.  I use an Intel Mac and this is what you need to do to get your basic code documentation generated successfully:&lt;br /&gt;&lt;br /&gt;
1. In your terminal window go to your Flex SDK bin directory.  Typically this is located under /Applications/Adobe Flex Builder 2/Flex SDK 2/bin &lt;br /&gt;&lt;br /&gt;
2. From &quot;bin&quot; directory run this command:  
&lt;code&gt;./asdoc -doc-sources=/Users/marko/Documents/workspace/yourFlexProject/  -source-path=/Users/marko/Documents/workspace/yourFlexProject/
&lt;/code&gt;

If you have any external Libraries in your Flex project you will need to include them in your command:
&lt;code&gt;-external-library-path=/path_to_your_swc/myLib.swc&lt;/code&gt;

The key thing to remember for Mac users is that you need to run the command from Flex SDK bin directory and use &lt;strong&gt;-source-path&lt;/strong&gt; option to tell the compiler where the source is located. &lt;strong&gt;-doc-sources&lt;/strong&gt; will tell the compiler to generate output for the current directory and all subdirectories recursively.  If you run this utility from any other directory other than &quot;bin&quot;, you will get NoClassDefFoundError.

I haven&apos;t tried running ASDoc in Windows yet, but it should be very similar to running it on a Mac.  And since ASDoc is a command line java utility, you would think it would run on Linux too.  Well, for all you Linux users out there, this is the message I got from the compiler:
&lt;code&gt;Error: Could not create toplevel.xml: Unknown OS for ASDoc. ASDoc will only run on Windows and Mac OS X.&lt;/code&gt; 
That last sentence is pretty self explanatory :)

ASDoc is nicely documented &lt;a href=&quot;http://livedocs.adobe.com/flex/201/html/asdoc_127_1.html&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;.

Cheers&lt;br /&gt;
Marko
				
				</description>
				
				<category>Linux</category>
				
				<category>Java</category>
				
				<category>HOWTO</category>
				
				<category>Flex</category>
				
				<category>Windows</category>
				
				<pubDate>Thu, 23 Aug 2007 20:52:00 --1000</pubDate>
				<guid>http://www.lynchconsulting.com.au/blog/index.cfm/2007/8/23/howto-document-your-code-with-ASDoc</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>HOWTO Add 1680x1050 resolution to Windows VMware Server clients</title>
				<link>http://www.lynchconsulting.com.au/blog/index.cfm/2007/7/4/HOWTO-Add-1680x1050-resolution-to-Windows-VMware-Server-clients</link>
				<description>
				
				I make extensive use of VMWare Server on my laptop for Flex and Flash development as Adobe haven&apos;t released Flash and Flex for Linux yet (hint hint).

When I&apos;m flicking back and forth between Windows and Linux I typically leave the Windows window at 1024x768 which allows it to have no scrolling and still fit on my 1680x1050 screen.

However, there are times when you just need more screen real estate in windows and as the VMWare driver doesn&apos;t come with a native 1680x1050 resolution you need to make some minor registry edits to get it working.

A bit of searching got me to an &lt;a href=&quot;http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&amp;externalId=1003&quot;&gt;knowledge base article&lt;/a&gt; but the instructions didn&apos;t work for me, as the registry keys didn&apos;t exist there but were located pretty close.  So without further ado (there&apos;s been quite a bit already I admit).

&lt;ul&gt;
&lt;li&gt;&lt;Run regedit: &lt;strong&gt;Start-&amp;gt;Run&lt;/strong&gt; and type regedit&lt;/li&gt;
&lt;li&gt;Select the registry key &lt;strong&gt;HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Video\{device id}\0000&lt;/strong&gt;.   Note the deviceid is a big horrible uuid, and there may be multiple ones.  Use the one that has a key &quot;Device Description&quot; of VMWare SVGA II&lt;/li&gt;
&lt;li&gt;There are a load of &lt;strong&gt;Resolution.x&lt;/strong&gt; lines, add a new &quot;Binary Value&quot; 1 higher than the highest resolution.  Eg &lt;strong&gt;Resolution.11&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Enter the binary value of: &lt;strong&gt;31 36 38 30 78 31 30 35 30&lt;/strong&gt; which is ASCII for &quot;1680x1050&quot;&lt;/li&gt;
&lt;li&gt;Close regedit and reboot.&lt;/li&gt;
&lt;li&gt;After reboot you should have a new resolution available to you.&lt;/li&gt;
&lt;/ul&gt;

For other resolutions you can use the following numbers keys:
&lt;table&gt;
&lt;tr&gt;&lt;th&gt;ASCII&lt;/th&gt;&lt;th&gt;Value&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;30&lt;/td&gt;&lt;td&gt;0&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;31&lt;/td&gt;&lt;td&gt;1&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;32&lt;/td&gt;&lt;td&gt;2&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;33&lt;/td&gt;&lt;td&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;34&lt;/td&gt;&lt;td&gt;4&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;35&lt;/td&gt;&lt;td&gt;5&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;36&lt;/td&gt;&lt;td&gt;6&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;37&lt;/td&gt;&lt;td&gt;7&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;38&lt;/td&gt;&lt;td&gt;8&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;39&lt;/td&gt;&lt;td&gt;9&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;78&lt;/td&gt;&lt;td&gt;x&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;

Cheers,
Mark
				
				</description>
				
				<category>VMWare</category>
				
				<category>Systems admin</category>
				
				<category>HOWTO</category>
				
				<category>Windows</category>
				
				<pubDate>Wed, 04 Jul 2007 03:04:00 --1000</pubDate>
				<guid>http://www.lynchconsulting.com.au/blog/index.cfm/2007/7/4/HOWTO-Add-1680x1050-resolution-to-Windows-VMware-Server-clients</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>IE6 and IE7 running side by side</title>
				<link>http://www.lynchconsulting.com.au/blog/index.cfm/2007/6/29/IE6-and-IE7-running-side-by-side</link>
				<description>
				
				I knew it was possible to do, but not &lt;a href=&quot;http://blog.buro9.com/2006/10/23/howto-get-ie6-and-ie7-to-run-side-by-side/&quot;&gt;this easy&lt;/a&gt;.

I&apos;ve added it here for my own reference &lt;a href=&quot;http://blog.buro9.com/2006/10/23/howto-get-ie6-and-ie7-to-run-side-by-side/&quot;&gt;IE6 &amp;amp; IE7 side by side&lt;/a&gt;.

Also useful link to &lt;a href=&quot;http://browsers.evolt.org/?ie/32bit/standalone&quot;&gt;evolt standalone browsers archive&lt;/a&gt;.

Essential for debugging IE6 CSS issues.
				
				</description>
				
				<category>CSS</category>
				
				<category>Windows</category>
				
				<pubDate>Fri, 29 Jun 2007 06:59:00 --1000</pubDate>
				<guid>http://www.lynchconsulting.com.au/blog/index.cfm/2007/6/29/IE6-and-IE7-running-side-by-side</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>VMWare partial snapshot recovery HowTo</title>
				<link>http://www.lynchconsulting.com.au/blog/index.cfm/2007/6/24/VMWare-partial-snapshot-recovery-HowTo</link>
				<description>
				
				I recently came across a Vmware server machine that was had a drive that kept expanding until it filled the entire host machine&apos;s avaiable space.

The machine in question had a number of drives including a 100GB and a 200GB partition and the host machine had a 600GB partition to hold all this.  After digging around a bit I discovered that the drives were performing snapshots.  Which means that they main drive was frozen in time and all changes were written to another file. 

This should have been an easy fix, tick a box in the admin to remove the snapshot. However, in the admin for the machine there were no snapshots registered and no way to remove them.  A bit of hunting found a couple of articles on the subject:
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://virtrix.blogspot.com/2007/06/vmware-dreadful-sticky-snapshot.html&quot;&gt;VMware: The dreadful sticky snapshot&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://searchservervirtualization.techtarget.com/tip/0,289483,sid94_gci1243241,00.html&quot;&gt;VMware Server how-to: Clean up snapshot files to free disk space&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

However, I used the following approach to fix the problem which seems to be simpler than the techniques documented above.

&lt;strong&gt;Note: make sure you have a backup before proceeding - my 600GB backup took 6 hours but was worth it.&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Step 1: Make a backup to another drive (internal or USB)&lt;/li&gt;
&lt;li&gt;Step 2: Check that you can boot your VM from the backup.&lt;/li&gt;
&lt;li&gt;Step 3: Identify and document all disk names and files
&lt;ul&gt;
&lt;li&gt;Document all drives, paths and scsi/ide nodes&lt;/li&gt;
&lt;li&gt;Create a text file in the root of each drive - you can then check for this to ensure you have the correct snapshot.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Step 4: Use the following command to convert a snapshotting disk to a new clean disk:&lt;/li&gt;
&lt;/ul&gt;
&lt;code&gt;
vmware-vdiskmanager -r sourceDisk.vmdk -t 3 destinationDisk.vmdk
&lt;/code&gt;
&lt;ul&gt;
&lt;li&gt;Step 5: In VMWare remove the disk for this machine and then add back your new disk.  Make sure you use the same SCSI/IDE node numbers.&lt;/li&gt;
&lt;/ul&gt;

&lt;strong&gt;Note 1:&lt;/strong&gt; It is important to select the correct snapshot  as the source disk.  For example: sourceDisk.vmdk could have a number of snapshots, sourceDisk-000001.vmdk sourceDisk-000002.vmdk.  Have a look at the timestamps to determine the active one.

&lt;strong&gt;Note 2:&lt;/strong&gt; If you get the following error:
&lt;code&gt;
Failed to open the disk &apos;sourceDisk-000001.vmdk&apos; : The parent of this virtual disk could not be opened (23).
&lt;/code&gt;
Don&apos;t panic - as long as you have the backups you will be fine.  Have a look in the sourceDisk-000001.vmdk and make sure the &quot;parentFileNameHint&quot; path is correct.  I.e. if it is an absolute path and you are trying to restore it from a different location (i.e. your backup) you can correct it or simply make it a relative path.

&lt;strong&gt;Note 3:&lt;/strong&gt; It is also very helpful to edit the network settings for the VM to ensure that the network is &lt;strong&gt;Not Connected&lt;/strong&gt; on boot.  Particularly if there are mail services or similar running on the machine.  This allows you to boot the machine safe in the knowledge that it is completely isolated from outside influence.

&lt;h3&gt;Resources&lt;/h3&gt;
Another useful document which helped out what the file reference on the vmware site - &lt;a href=&quot;http://www.vmware.com/support/ws55/doc/ws_learning_files_in_a_vm.html&quot;&gt;What Files Make Up a Virtual Machine?&lt;/a&gt;

Hope it helps.
Cheers,
Mark
				
				</description>
				
				<category>VMWare</category>
				
				<category>Ubuntu</category>
				
				<category>Systems admin</category>
				
				<category>Linux</category>
				
				<category>HOWTO</category>
				
				<category>Windows</category>
				
				<pubDate>Sun, 24 Jun 2007 06:10:00 --1000</pubDate>
				<guid>http://www.lynchconsulting.com.au/blog/index.cfm/2007/6/24/VMWare-partial-snapshot-recovery-HowTo</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>Batch Convert PDF files to Flash Paper</title>
				<link>http://www.lynchconsulting.com.au/blog/index.cfm/2007/2/23/Batch-Convert-PDF-files-to-Flash-Paper</link>
				<description>
				
				For a current project I need to convert a whole heap of pdf files into FlashPaper so that we can display them inline in the site.  After a quick google I found a useful &lt;a href=&quot;http://www.darronschall.com/weblog/archives/000250.cfm&quot;&gt;example using ANT&lt;/a&gt; by Darron Schall.

ANT has been on my list of stuff to check out for the last while - however, it&apos;s real strength is that it is cross platform.  For this project I found it a bit overkill so I just put together a little VB script to handle it.

This script is also simpler to set up on non-technical users machines as you don&apos;t need to have Java, Ant and Ant contrib set up.

The following script reads file in from a folder &quot;in&quot; and outputs them to a folder &quot;out&quot;.  It does very little error checking but works for me . Hope it helps.

&lt;code&gt;
&apos; Script to convert PDF files to Flash Paper using the flash printer
&apos; Reads files from folder &quot;in&quot; and outputs to folder &quot;out&quot;

flashPrinter= &quot;&quot;&quot;C:\Program Files\Macromedia\FlashPaper 2\FlashPrinter.exe&quot;&quot;&quot;
inPath = &quot;in\&quot;
outPath = &quot;out\&quot;
delayMsec = 10000  &apos;wait to let flashPrinter complete


If &quot;CSCRIPT.EXE&quot; &lt;&gt; UCase( Right( WScript.Fullname, 11 ) ) Then
    &apos;WScript.Interactive = false
    WScript.Echo &quot;To use this script enter: cscript &quot; &amp; WScript.ScriptName &amp; vbcrlf &amp; &quot;or right click and select &apos;Open with Command Prompt&apos;&quot;
    WScript.Quit 1
End If 

Dim strMbox

Set objFileScripting = CreateObject(&quot;Scripting.FileSystemObject&quot;)
&apos;Return folder object
Set objFolder = objFileScripting.GetFolder(inPath)
&apos;return file collection In folder
Set filecollection = objFolder.Files

strMbox= MsgBox(&quot;Ready to process &quot; &amp; fileCollection.count &amp; &quot; files&quot;,1)
If strMbox = 2 Then
	Wscript.Echo &quot;Cancelled&quot;
	WScript.Quit 
end if

	For Each filename In filecollection
    		filename=right(filename,len(filename)-InStrRev(filename, &quot;\&quot;))
		if InStrRev(filename, &quot;.&quot;) then &apos;remove extension if there is one
    			FilenameNoExt=left(filename,InStrRev(filename, &quot;.&quot;)-1)
		end if
		
		&apos; Run the flashprinter for each file
		command = flashPrinter &amp; &quot; &quot; &amp; inPath &amp; filename &amp; &quot; -o &quot; &amp; outPath &amp; filenameNoExt &amp; &quot;.swf&quot;	
		Set objShell = CreateObject(&quot;WScript.Shell&quot;)
		&apos;objShell.CurrentDirectory = 
		Wscript.Echo &quot;Processing: &quot; &amp; inPath &amp; filename &amp; &quot; --&gt; &quot; &amp; outPath &amp; filenameNoExt &amp; &quot;.swf&quot;
		objShell.Run(command)
		&apos;Wait some for it to complete
		
		Wscript.Sleep delayMsec

    	Next

Wscript.Echo &quot;Done&quot;
WScript.Quit 

&lt;/code&gt;

Feel free to use it and if you have any improvements please let me know.

Update: changed comment from // to &apos; which makes it barf.  That will teach me to comment it after I write it.
				
				</description>
				
				<category>Windows</category>
				
				<category>Open Source</category>
				
				<pubDate>Fri, 23 Feb 2007 08:32:00 --1000</pubDate>
				<guid>http://www.lynchconsulting.com.au/blog/index.cfm/2007/2/23/Batch-Convert-PDF-files-to-Flash-Paper</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>Disk space monitoring script for windows</title>
				<link>http://www.lynchconsulting.com.au/blog/index.cfm/2007/2/12/Disk-space-monitoring-script-for-windows</link>
				<description>
				
				This is the first VB script I&apos;ve done in a long time - but I think it&apos;s probably pretty handy for some people so here it is - be kind :-)

It is a simple script which modified from an original one from &lt;a href=&quot;http://www.adiscon.com/&quot;&gt;http://www.adiscon.com/&lt;/a&gt; which checks all the fixed disks on a windows machine and can email the results.

The modified script is slightly more abstracted and doesn&apos;t require any additional components to send the email.  It should be useful for  monitoring disk space on DB servers or web servers that have log files on busy websites.

It is split into two parts - the library which holds all the functions and the config main code. 

&lt;h3&gt;lib_diskspace.vbs&lt;/h3&gt;
&lt;p&gt;This is the library of functions&lt;/p&gt;
&lt;code&gt;
&apos; Constants for drive types
Const Unknown = 0
Const Removable = 1
Const Fixed = 2
Const Remote = 3
Const CDROM = 4
Const RAMDisk = 5

&apos; Send a mail message
Sub SendMail(Sender, Recipient, Subject, Message,Server,Port)
 Set objEmail = CreateObject(&quot;CDO.Message&quot;)
 objEmail.From = Sender
 objEmail.To = Recipient
 objEmail.Subject = Subject 
 objEmail.Textbody = Message
 objEmail.Configuration.Fields.Item(&quot;http://schemas.microsoft.com/cdo/configuration/sendusing&quot;) = 2
 objEmail.Configuration.Fields.Item(&quot;http://schemas.microsoft.com/cdo/configuration/smtpserver&quot;) = Server
 objEmail.Configuration.Fields.Item(&quot;http://schemas.microsoft.com/cdo/configuration/smtpserverport&quot;) = Port
 objEmail.Configuration.Fields.Update()
 objEmail.Send
End Sub

&apos; get current computer name (from system environment variables)
Function GetCurrentComputerName
 set oWsh = WScript.CreateObject(&quot;WScript.Shell&quot;)
 set oWshSysEnv = oWsh.Environment(&quot;PROCESS&quot;)
 GetCurrentComputerName = oWshSysEnv(&quot;COMPUTERNAME&quot;)
End Function

&apos; get free space report
Function GetFreeSpaceReport 
 set oFs = WScript.CreateObject(&quot;Scripting.FileSystemObject&quot;)
 set oDrives = oFs.Drives
 for each oDrive in oDrives
  Select case oDrive.DriveType
  Case Fixed
  GetFreeSpaceReport = GetFreeSpaceReport &amp; oDrive.DriveLetter &amp; &quot;: &quot; &amp; Round(oDrive.FreeSpace/(1024*1024)) &amp; &quot;MB free (&quot; &amp; Round(100 * (oDrive.FreeSpace/oDrive.TotalSize),2) &amp; &quot;%)&quot; &amp; vbcrlf
  End Select
 next
End Function 
&lt;/code&gt;


&lt;h3&gt;diskspace.wsf&lt;/h3&gt;
This is the main script that should be edited to your configuration, and added to your scheduled tasks.
&lt;code&gt;
&lt;job&gt;
   &lt;script src=&quot;lib_diskspace.vbs&quot; language=&quot;vbscript&quot; /&gt;
   &lt;script language=&quot;vbscript&quot;&gt;
&apos;====================================================================================
&apos; Begin main code
&apos;====================================================================================
&apos; general constants
Const MailServer = &quot;192.168.166.1&quot; &apos; Mail Server to use for SMTP
Const MailServerPort = &quot;25&quot; &apos; SMTP Port used at Mail server (25 is default)
Const MailTo = &quot;mark@lynchconsulting.com.au&quot;  &apos; Who should be notified
Const MailFrom = &quot;server@lynchconsulting.com.au&quot; 

str = &quot;&quot;
subject = &quot;&quot;

strComputerName = GetCurrentComputerName &apos; get name only once for performance reasons
subject = &quot;Drive Space Report &quot; &amp; strComputerName
str = str &amp; strComputerName &amp; vbcrlf
str = str &amp; GetFreeSpaceReport 

&apos;Output to screen - useful for debugging
Msgbox str

&apos;Send mail to administrator
SendMail MailFrom , MailTo , subject , str, MailServer , MailServerPort 
   &lt;/script&gt;
&lt;/job&gt;
&lt;/code&gt;

Hope it helps.
				
				</description>
				
				<category>Windows</category>
				
				<category>Systems admin</category>
				
				<pubDate>Mon, 12 Feb 2007 09:48:00 --1000</pubDate>
				<guid>http://www.lynchconsulting.com.au/blog/index.cfm/2007/2/12/Disk-space-monitoring-script-for-windows</guid>
				
			</item>
			
		 	
			</channel></rss>