<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.inetium.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Mike Hodnick - All Comments</title><link>http://blogs.inetium.com/blogs/mhodnick/default.aspx</link><description>Inetium Consultant</description><dc:language>en</dc:language><generator>CommunityServer 2008 (Build: 30417.1769)</generator><item><title>WPF 3D: Google maps on a sphere, or &amp;#8216;The World&amp;#8217; &amp;laquo; Hungry for Knowledge</title><link>http://blogs.inetium.com/blogs/mhodnick/archive/2006/04/13/65.aspx#17038</link><pubDate>Sun, 06 Apr 2008 15:59:26 GMT</pubDate><guid isPermaLink="false">7346ef18-9fb1-4a4e-be41-9add5078176c:17038</guid><dc:creator>WPF 3D: Google maps on a sphere, or ‘The World’ « Hungry for Knowledge</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;WPF 3D: Google maps on a sphere, or &amp;amp;#8216;The World&amp;amp;#8217; &amp;amp;laquo; Hungry for Knowledge&lt;/p&gt;
&lt;img src="http://blogs.inetium.com/aggbug.aspx?PostID=17038" width="1" height="1"&gt;</description></item><item><title>http://blogs.inetium.com/blogs/mhodnick/archive/2006/08/07/295.aspx</title><link>http://blogs.inetium.com/blogs/mhodnick/archive/2006/08/07/295.aspx#16457</link><pubDate>Fri, 21 Mar 2008 06:23:44 GMT</pubDate><guid isPermaLink="false">7346ef18-9fb1-4a4e-be41-9add5078176c:16457</guid><dc:creator>http://blogs.inetium.com/blogs/mhodnick/archive/2006/08/07/295.aspx</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://frankthefrank.info/entry.php?id=kwws%3d22eorjv1lqhwlxp1frp2eorjv2pkrgqlfn2dufklyh2533923%3b23%3a25%3c81dvs%7b"&gt;http://frankthefrank.info/entry.php?id=kwws%3d22eorjv1lqhwlxp1frp2eorjv2pkrgqlfn2dufklyh2533923%3b23%3a25%3c81dvs%7b&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://blogs.inetium.com/aggbug.aspx?PostID=16457" width="1" height="1"&gt;</description></item><item><title>  PowerShell Script: Zip up a folder and email it at  ps&amp;gt; get-content</title><link>http://blogs.inetium.com/blogs/mhodnick/archive/2006/11/29/powershell-zip-up-a-folder-and-email-it.aspx#15461</link><pubDate>Tue, 04 Mar 2008 13:57:49 GMT</pubDate><guid isPermaLink="false">7346ef18-9fb1-4a4e-be41-9add5078176c:15461</guid><dc:creator>  PowerShell Script: Zip up a folder and email it at  ps&gt; get-content</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.pwrshell.com/2008/03/04/powershell-script-zip-up-a-folder-and-email-it-2/"&gt;http://www.pwrshell.com/2008/03/04/powershell-script-zip-up-a-folder-and-email-it-2/&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://blogs.inetium.com/aggbug.aspx?PostID=15461" width="1" height="1"&gt;</description></item><item><title>  PowerShell Script: Zip up a folder and email it at  ps&amp;gt; get-content</title><link>http://blogs.inetium.com/blogs/mhodnick/archive/2006/11/29/powershell-zip-up-a-folder-and-email-it.aspx#15460</link><pubDate>Tue, 04 Mar 2008 13:57:45 GMT</pubDate><guid isPermaLink="false">7346ef18-9fb1-4a4e-be41-9add5078176c:15460</guid><dc:creator>  PowerShell Script: Zip up a folder and email it at  ps&gt; get-content</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.pwrshell.com/2008/03/04/powershell-script-zip-up-a-folder-and-email-it/"&gt;http://www.pwrshell.com/2008/03/04/powershell-script-zip-up-a-folder-and-email-it/&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://blogs.inetium.com/aggbug.aspx?PostID=15460" width="1" height="1"&gt;</description></item><item><title>PowerShell: Zip up a folder and email it</title><link>http://blogs.inetium.com/blogs/mhodnick/archive/2006/08/07/295.aspx#2844</link><pubDate>Thu, 31 May 2007 13:42:08 GMT</pubDate><guid isPermaLink="false">7346ef18-9fb1-4a4e-be41-9add5078176c:2844</guid><dc:creator>Mike Hodnick</dc:creator><description>&lt;p&gt;Here's a quick little PowerShell script you can use in conjunction with Out-Zip to zip up a folder on&lt;/p&gt;
&lt;img src="http://blogs.inetium.com/aggbug.aspx?PostID=2844" width="1" height="1"&gt;</description></item><item><title>re: Texture Coordinates and Visuals on 3D surfaces</title><link>http://blogs.inetium.com/blogs/mhodnick/archive/2006/04/13/65.aspx#1550</link><pubDate>Mon, 16 Apr 2007 20:25:00 GMT</pubDate><guid isPermaLink="false">7346ef18-9fb1-4a4e-be41-9add5078176c:1550</guid><dc:creator>mhodnick</dc:creator><description>&lt;p&gt;The 3DTools components will take care of being able to interact with 2D visuals on 3D:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.codeplex.com/3DTools"&gt;http://www.codeplex.com/3DTools&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.inetium.com/aggbug.aspx?PostID=1550" width="1" height="1"&gt;</description></item><item><title>WPF 3D - Blender Helps You Getting Productive</title><link>http://blogs.inetium.com/blogs/mhodnick/archive/2006/04/13/65.aspx#1546</link><pubDate>Mon, 16 Apr 2007 16:12:12 GMT</pubDate><guid isPermaLink="false">7346ef18-9fb1-4a4e-be41-9add5078176c:1546</guid><dc:creator>Come Get Some...Thoughts On Software Technology</dc:creator><description>&lt;p&gt;The last few days I played around with the 3d capabilities of the Windows Presentation Foundation (WPF).&lt;/p&gt;
&lt;img src="http://blogs.inetium.com/aggbug.aspx?PostID=1546" width="1" height="1"&gt;</description></item><item><title>re: Texture Coordinates and Visuals on 3D surfaces</title><link>http://blogs.inetium.com/blogs/mhodnick/archive/2006/04/13/65.aspx#925</link><pubDate>Wed, 07 Mar 2007 18:38:53 GMT</pubDate><guid isPermaLink="false">7346ef18-9fb1-4a4e-be41-9add5078176c:925</guid><dc:creator>Kurt</dc:creator><description>&lt;p&gt;This looks like a great way to add special effects such as zooming, lighting, and tilting to a 2D game. However, as dreckgos points out, it would only work if the game doesn't require point-and-click type stuff on the game board (e.g, it uses the keyboard or relies on a different panel to host the interactive controls).&lt;/p&gt;
&lt;p&gt;There is a workaround that I found, however, from the WPF team: &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/wpf3d/archive/2006/12/12/interacting-with-2d-on-3d-in-wpf.aspx"&gt;http://blogs.msdn.com/wpf3d/archive/2006/12/12/interacting-with-2d-on-3d-in-wpf.aspx&lt;/a&gt; &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.inetium.com/aggbug.aspx?PostID=925" width="1" height="1"&gt;</description></item><item><title>re: ASP .Net Caching API Tips</title><link>http://blogs.inetium.com/blogs/mhodnick/archive/2006/06/26/246.aspx#863</link><pubDate>Tue, 13 Feb 2007 22:52:11 GMT</pubDate><guid isPermaLink="false">7346ef18-9fb1-4a4e-be41-9add5078176c:863</guid><dc:creator>Jason</dc:creator><description>Very Helpful!!&lt;br&gt;&lt;br&gt;Cache.Insert(&amp;quot;Customer&amp;quot; + customer.CustomerID.ToString(), customerValue);&lt;br&gt;&lt;br&gt;makes so much sense.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.inetium.com/aggbug.aspx?PostID=863" width="1" height="1"&gt;</description></item><item><title>re: VS .Net Solution Size and ReSharper</title><link>http://blogs.inetium.com/blogs/mhodnick/archive/2006/09/29/385.aspx#860</link><pubDate>Tue, 13 Feb 2007 16:25:46 GMT</pubDate><guid isPermaLink="false">7346ef18-9fb1-4a4e-be41-9add5078176c:860</guid><dc:creator>gestibar</dc:creator><description>nice :) 
&lt;br&gt;;))&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.inetium.com/aggbug.aspx?PostID=860" width="1" height="1"&gt;</description></item><item><title>re: PowerShell: Zip up a folder and email it</title><link>http://blogs.inetium.com/blogs/mhodnick/archive/2006/11/29/powershell-zip-up-a-folder-and-email-it.aspx#713</link><pubDate>Thu, 28 Dec 2006 14:12:36 GMT</pubDate><guid isPermaLink="false">7346ef18-9fb1-4a4e-be41-9add5078176c:713</guid><dc:creator>mhodnick</dc:creator><description>heh, glad you figured it out Rich. &amp;nbsp;Sorry I wasn't able to respond over the holidays. &amp;nbsp;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.inetium.com/aggbug.aspx?PostID=713" width="1" height="1"&gt;</description></item><item><title>re: PowerShell: Zip up a folder and email it</title><link>http://blogs.inetium.com/blogs/mhodnick/archive/2006/11/29/powershell-zip-up-a-folder-and-email-it.aspx#705</link><pubDate>Tue, 26 Dec 2006 19:27:15 GMT</pubDate><guid isPermaLink="false">7346ef18-9fb1-4a4e-be41-9add5078176c:705</guid><dc:creator>Rich Whiting</dc:creator><description>Solution ...&lt;br&gt;&lt;br&gt;Okay, I figured it out. The line correction is:&lt;br&gt;&lt;br&gt; &amp;nbsp; &amp;nbsp; [System.Net.Mail.Attachment] $attachment = new-object System.Net.Mail.Attachment $file&lt;br&gt;&lt;br&gt;It is necessary to cast the $attachment variable to type System.Net.Mail.Attachment, since new-object (in this instance) returns a REFERENCE to an object of that type, not an ACTUAL OBJECT of the type. But $msg.Attachments.Add($attachment) requires an actual object. Hence the need for the cast.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.inetium.com/aggbug.aspx?PostID=705" width="1" height="1"&gt;</description></item><item><title>re: PowerShell: Zip up a folder and email it</title><link>http://blogs.inetium.com/blogs/mhodnick/archive/2006/11/29/powershell-zip-up-a-folder-and-email-it.aspx#704</link><pubDate>Tue, 26 Dec 2006 16:18:52 GMT</pubDate><guid isPermaLink="false">7346ef18-9fb1-4a4e-be41-9add5078176c:704</guid><dc:creator>Rich Whiting</dc:creator><description>Further update ...&lt;br&gt;&lt;br&gt;I had to change this line:&lt;br&gt;&lt;br&gt; &amp;nbsp; &amp;nbsp; $client.Credentials = new-object system.net.networkcredential(&amp;quot;rwhiting&amp;quot;,&amp;quot;&amp;lt;mypassword&amp;gt;&amp;quot;)&lt;br&gt;&lt;br&gt;Now the script works fine when I enter it INTERACTIVELY, LINE-BY-LINE in PowerShell. But when I execute it AS A FUNCTION, it still does NOT work, but returns the same old error:&lt;br&gt;&lt;br&gt; &amp;nbsp; &amp;nbsp; New-Object: Exception calling &amp;quot;.ctor&amp;quot; with &amp;quot;1&amp;quot; argument(s): &amp;quot;Could not find file 'c:\MyZipFile.zip'.&amp;quot; &lt;br&gt;&lt;br&gt;Why does this script work when entered line-by-line interactively in PowerShell, but NOT when run as a function? What am I missing?&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.inetium.com/aggbug.aspx?PostID=704" width="1" height="1"&gt;</description></item><item><title>re: PowerShell: Zip up a folder and email it</title><link>http://blogs.inetium.com/blogs/mhodnick/archive/2006/11/29/powershell-zip-up-a-folder-and-email-it.aspx#703</link><pubDate>Tue, 26 Dec 2006 14:47:10 GMT</pubDate><guid isPermaLink="false">7346ef18-9fb1-4a4e-be41-9add5078176c:703</guid><dc:creator>Rich Whiting</dc:creator><description>Update on above question ...&lt;br&gt;&lt;br&gt;When I add quotes around each of the literal string values:&lt;br&gt;&lt;br&gt; &amp;nbsp; &amp;nbsp; $sender =&amp;quot; rwhiting@&amp;lt;mycompanyserver&amp;gt;.com&amp;quot;&lt;br&gt; &amp;nbsp; &amp;nbsp; $recipient =&amp;quot; rwhiting@&amp;lt;mycompanyserver&amp;gt;.com&amp;quot;&lt;br&gt; &amp;nbsp; &amp;nbsp; $server =&amp;quot; exchange2.&amp;lt;mycompanyserver&amp;gt;.com&amp;quot;&lt;br&gt; &amp;nbsp; &amp;nbsp; $targetFolder = &amp;quot;c:\MyFolder&amp;quot;&lt;br&gt; &amp;nbsp; &amp;nbsp; $file =&amp;quot; c:\MyZipFile.zip&amp;quot;&lt;br&gt;&lt;br&gt;I get fewer error messages, but still this one:&lt;br&gt;&lt;br&gt; &amp;nbsp; &amp;nbsp; New-Object: Exception calling &amp;quot;.ctor&amp;quot; with &amp;quot;1&amp;quot; argument(s): &amp;quot;Could not find file 'c:\MyZipFile.zip'.&amp;quot;&lt;br&gt;&lt;br&gt;even though the file DOES exist. Why can't PowerShell see it?&lt;br&gt;&lt;br&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.inetium.com/aggbug.aspx?PostID=703" width="1" height="1"&gt;</description></item><item><title>re: PowerShell: Zip up a folder and email it</title><link>http://blogs.inetium.com/blogs/mhodnick/archive/2006/11/29/powershell-zip-up-a-folder-and-email-it.aspx#702</link><pubDate>Tue, 26 Dec 2006 14:13:04 GMT</pubDate><guid isPermaLink="false">7346ef18-9fb1-4a4e-be41-9add5078176c:702</guid><dc:creator>Rich Whiting</dc:creator><description>Mike,&lt;br&gt;&lt;br&gt;Are you sure your zip-email script works? &amp;nbsp;I have added it to my profile as follows (where &amp;lt;???&amp;gt; represents my company server, hidden here for privacy/security reasons):&lt;br&gt;&lt;br&gt;function test-it {&lt;br&gt;	$sender = rwhiting@&amp;lt;mycompanyserver&amp;gt;.com&lt;br&gt;	$recipient = rwhiting@&amp;lt;mycompanyserver&amp;gt;.com&lt;br&gt;	$server = exchange2.&amp;lt;mycompanyserver&amp;gt;.com&lt;br&gt;	$targetFolder = c:\MyFolder&lt;br&gt;	$file = c:\MyZipFile.zip&lt;br&gt;&lt;br&gt;	if ( [System.IO.File]::Exists($file) ) {&lt;br&gt;	 &amp;nbsp;remove-item -force $file&lt;br&gt;	}&lt;br&gt;&lt;br&gt;	gi $targetFolder | out-zip $file $_&lt;br&gt;	$subject = &amp;quot;Sending a File &amp;quot; + [System.DateTime]::Now&lt;br&gt;	$body = &amp;quot;I'm sending a file!&amp;quot;&lt;br&gt;	$msg = new-object System.Net.Mail.MailMessage $sender, $recipient, $subject, $body&lt;br&gt;	$attachment = new-object System.Net.Mail.Attachment $file&lt;br&gt;	$msg.Attachments.Add($attachment)&lt;br&gt;	$client = new-object System.Net.Mail.SmtpClient $server&lt;br&gt;	$client.Credentials = [System.Net.CredentialCache]::DefaultNetworkCredentials&lt;br&gt;	$client.Send($msg)&lt;br&gt;}&lt;br&gt;&lt;br&gt;function out-zip {&lt;br&gt;	$path = $args[0]&lt;br&gt;	$files = $input&lt;br&gt;&lt;br&gt;	if (-not $path.EndsWith('.zip')) {$path += '.zip'} &lt;br&gt;&lt;br&gt;	if (-not (test-path $path)) { &lt;br&gt;	 &amp;nbsp;set-content $path (&amp;quot;PK&amp;quot; + [char]5 + [char]6 + (&amp;quot;$([char]0)&amp;quot; * 18)) &lt;br&gt;	} &lt;br&gt;&lt;br&gt;	$zipfile = (new-object -com shell.application).NameSpace($path) &lt;br&gt;	$files | foreach {$zipfile.CopyHere($_.fullname) } &lt;br&gt;}&lt;br&gt;&lt;br&gt;When I execute &amp;quot;test-it&amp;quot; within PowerShell 1.0, I get a series of error messages:&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;quot;The term 'rwhiting@&amp;lt;myserver&amp;gt;.com' is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try again.&amp;quot;&lt;br&gt;&lt;br&gt;I get a similar message for &amp;quot;exchange2.&amp;lt;myserver&amp;gt;.com&amp;quot;, &amp;quot;rwhiting@&amp;lt;myserver&amp;gt;.com&amp;quot;, &amp;quot;MyFolder&amp;quot;, and &amp;quot;c:\MyZipFile.zip&amp;quot;.&lt;br&gt;&lt;br&gt;And also (among others): &amp;quot;New-Object: Constructor not found. Cannot find an appropriate constructor for type System.Net.Mail.Attachment.&amp;quot;&lt;br&gt;&lt;br&gt;Am I doing something wrong, even though I basically cut-and-pasted the script?&lt;br&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.inetium.com/aggbug.aspx?PostID=702" width="1" height="1"&gt;</description></item></channel></rss>