<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>PropellerHead Blog</title>
    <link>http://propellerhead.dk</link>
    <description>This RSS feed returns the most recent blog posts from propellerhead.dk.</description>
    <ttl>60</ttl>
    <item>
      <title>Visual Studio Tip: Reference files in Project Directory.</title>
      <link>http://propellerhead.dk/post/4253534357712808662/visual-studio-tip:-reference-files-in-project-directory..aspx</link>
      <description>&lt;p&gt;
Here is a nice little tip to reference files located in Visual Studio project directory, when running the project from within Visual Studio.
&lt;/p&gt;
&lt;p&gt;
Use the following code:
&lt;/p&gt;
&lt;pre class="code"&gt;
string path = Path.Combine(Environment.CurrentDirectory, &lt;br /&gt;  @"..\..\Test.xml");
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31652320-4253534357712808662?l=hundeboel.blogspot.com' alt='' /&gt;&lt;/div&gt;</description>
      <author>Lars Hundebøl</author>
      <pubDate>Sat, 24 Apr 2010 07:47:00 GMT</pubDate>
    </item>
    <item>
      <title>Using doskey macrofile to optimize work within the Command Prompt</title>
      <link>http://propellerhead.dk/post/6148160053270599078/using-doskey-macrofile-to-optimize-work-within-the-command-prompt.aspx</link>
      <description>&lt;p&gt;
The following is helpfull little tip to create shortcuts to commonly used applications when working in the command prompt.
&lt;/p&gt;
1. Create a new doskey macrofile (e.g. notepad c:\doskey)
&lt;br /&gt;
2. Edit doskey macrofile to include all your shortcuts:
&lt;br /&gt;&lt;br /&gt;
&lt;pre class="code"&gt;
sub="C:\Program Files\Sublime Text\sublimetext.exe" $*
ie="C:\Program Files\Internet Explorer\iexplore.exe"
&lt;/pre&gt;
&lt;br /&gt;
3. Change cmd.exe shortcut to include the following doskey command:
&lt;br /&gt;&lt;br /&gt;
&lt;pre class="command"&gt;
%SystemRoot%\system32\cmd.exe /k doskey /macrofile=c:\doskey
&lt;/pre&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;strong&gt;Relevant doskey links:&lt;/strong&gt;
&lt;p&gt;
&lt;a href="http://www.tildemark.com/at-work/loading-doskey-automatically-with-cmd.html"&gt;Loading doskey automatically with CMD&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://www.mayankagarwal.in/?p=106"&gt;DOSKEY – set shortcuts for DOS commands&lt;/a&gt;
&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31652320-6148160053270599078?l=hundeboel.blogspot.com' alt='' /&gt;&lt;/div&gt;</description>
      <author>Lars Hundebøl</author>
      <pubDate>Wed, 02 Dec 2009 13:59:00 GMT</pubDate>
    </item>
    <item>
      <title>Reminder to self: How to use ASP.NET AJAX PageMethods</title>
      <link>http://propellerhead.dk/post/5419753612390208748/reminder-to-self:-how-to-use-asp.net-ajax-pagemethods.aspx</link>
      <description>&lt;p&gt;
I keep forgetting how to use the ASP.NET AJAX PageMethods (.NET 3.5), so here is a short examples that gets me up to speed:&lt;/p&gt;
&lt;p&gt;
In Default.aspx.cs insert the following static method declared with the WebMethod attribute:
&lt;/p&gt;

&lt;pre class="code"&gt;&lt;span style="color: #000000;"&gt;[&lt;/span&gt;WebMethod&lt;span style="color: #000000;"&gt;]&lt;/span&gt;
&lt;span style="color: #0600FF;"&gt;public&lt;/span&gt; &lt;span style="color: #0600FF;"&gt;static&lt;/span&gt; Person DoSomethingServerSide&lt;span style="color: #000000;"&gt;(&lt;/span&gt;
  &lt;span style="color: #FF0000;"&gt;string&lt;/span&gt; name, &lt;span style="color: #FF0000;"&gt;string&lt;/span&gt; email&lt;span style="color: #000000;"&gt;)&lt;/span&gt;
&lt;span style="color: #000000;"&gt;{&lt;/span&gt;
  Person p &lt;span style="color: #008000;"&gt;=&lt;/span&gt; &lt;a style="color: #000060;" href="http://www.google.com/search?q=new+msdn.microsoft.com"&gt;&lt;span style="color: #008000;"&gt;new&lt;/span&gt;&lt;/a&gt; Person&lt;span style="color: #000000;"&gt;(&lt;/span&gt;&lt;span style="color: #000000;"&gt;)&lt;/span&gt;
  &lt;span style="color: #000000;"&gt;{&lt;/span&gt;
    Name &lt;span style="color: #008000;"&gt;=&lt;/span&gt; name,
    Email &lt;span style="color: #008000;"&gt;=&lt;/span&gt; email
  &lt;span style="color: #000000;"&gt;}&lt;/span&gt;&lt;span style="color: #008000;"&gt;;&lt;/span&gt;

  &lt;span style="color: #0600FF;"&gt;return&lt;/span&gt; p&lt;span style="color: #008000;"&gt;;&lt;/span&gt;
&lt;span style="color: #000000;"&gt;}&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;
...and in the Default.aspx insert some JavaScript that leverage this PageMethod:
&lt;/p&gt;


&lt;pre class="code"&gt;&lt;span style="color: #003366; font-weight: bold;"&gt;function&lt;/span&gt; DoSomethingClientSide&lt;span style="color: #009900;"&gt;(&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;
&lt;span style="color: #009900;"&gt;{&lt;/span&gt;
  PageMethods.&lt;span style="color: #660066;"&gt;DoSomethingServerSide&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;
    &lt;span style="color: #3366CC;"&gt;"Test"&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt; &lt;span style="color: #3366CC;"&gt;"test@test.com"&lt;/span&gt;&lt;span style="color: #339933;"&gt;,&lt;/span&gt; Callback&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;
&lt;span style="color: #009900;"&gt;}&lt;/span&gt;

&lt;span style="color: #003366; font-weight: bold;"&gt;function&lt;/span&gt; Callback&lt;span style="color: #009900;"&gt;(&lt;/span&gt;res&lt;span style="color: #009900;"&gt;)&lt;/span&gt;
&lt;span style="color: #009900;"&gt;{&lt;/span&gt;
  &lt;span style="color: #000066;"&gt;alert&lt;/span&gt;&lt;span style="color: #009900;"&gt;(&lt;/span&gt;res.&lt;span style="color: #660066;"&gt;Name&lt;/span&gt; &lt;span style="color: #339933;"&gt;+&lt;/span&gt; &lt;span style="color: #3366CC;"&gt;" "&lt;/span&gt; &lt;span style="color: #339933;"&gt;+&lt;/span&gt; res.&lt;span style="color: #660066;"&gt;Email&lt;/span&gt;&lt;span style="color: #009900;"&gt;)&lt;/span&gt;&lt;span style="color: #339933;"&gt;;&lt;/span&gt;
&lt;span style="color: #009900;"&gt;}&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;
And that's it... no wonder I keep forgetting how easy it is.
&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31652320-5419753612390208748?l=hundeboel.blogspot.com' alt='' /&gt;&lt;/div&gt;</description>
      <author>Lars Hundebøl</author>
      <pubDate>Wed, 10 Jun 2009 13:45:00 GMT</pubDate>
    </item>
    <item>
      <title>PropellerHead Now Cornified</title>
      <link>http://propellerhead.dk/post/5314002407858922534/propellerhead-now-cornified.aspx</link>
      <description>&lt;a href="http://www.cornify.com" onclick="cornify_add();return false;"&gt;&lt;img src="http://www.cornify.com/assets/cornify.gif" width="61" height="16" border="0" alt="Cornify" /&gt;&lt;/a&gt;&lt;script type="text/javascript" src="http://www.cornify.com/js/cornify.js"&gt;&lt;/script&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31652320-5314002407858922534?l=hundeboel.blogspot.com' alt='' /&gt;&lt;/div&gt;</description>
      <author>Lars Hundebøl</author>
      <pubDate>Sat, 02 May 2009 07:48:00 GMT</pubDate>
    </item>
    <item>
      <title>Installing Ruby on Rails on Windows with SQLite</title>
      <link>http://propellerhead.dk/post/641651892871465068/installing-ruby-on-rails-on-windows-with-sqlite.aspx</link>
      <description>&lt;p&gt;
The following is a step-by-step guideline to how I installed Ruby On Rails for Windows with SQLite as the database.
&lt;/p&gt;
&lt;ol&gt;

&lt;li&gt;
Download the latest version of Ruby One-Click installer for Windows &lt;a href="http://rubyforge.org/frs/?group_id=167"&gt;here&lt;/a&gt;, and run the installer. This will install Ruby (naturely) and &lt;a href="http://en.wikipedia.org/wiki/RubyGems"&gt;RubyGems&lt;/a&gt;, the package manager for Ruby.&lt;br /&gt;&lt;br /&gt;

At the time of writting this tutorial, I downloaded and installed Ruby-186-26 (stable).&lt;br /&gt;&lt;br /&gt;


&lt;/li&gt;

&lt;li&gt;
Update RubyGems by executing the following line in a command prompt:&lt;br /&gt;&lt;br /&gt;
&lt;pre class="command"&gt;
gem update --system
&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;
&lt;/li&gt;

&lt;li&gt;Now install Rails using RubyGems, by executing the following line in a command prompt:&lt;br /&gt;&lt;br /&gt;


&lt;pre class="command"&gt;
gem install rails --include-dependencies
&lt;/pre&gt;&lt;br /&gt;

This will install Rails and all relevant dependencies. Please note that this may take some time to install.&lt;br /&gt;&lt;br /&gt;



&lt;/li&gt;
&lt;li&gt;Download the lastest SQLite from &lt;a href="http://www.sqlite.org/download.html"&gt;here&lt;/a&gt;, and unzip it into the Ruby bin directory (by default c:\ruby\bin). You'll only need the pre-compiled DLL; at the time of writing, the version I downloaded and unzipped was sqlitedll-3_6_13.zip.
&lt;br /&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;Finally install SQLite3-Ruby using RubyGems, by executing the following line in a command prompt:&lt;br /&gt;&lt;br /&gt;


&lt;pre class="command"&gt;
gem install sqlite3-ruby -v 1.2.3
&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;
By the time of writing version 1.2.3 was the latest version actually working with Windows.
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
I've used the installation guideline on Windows Vista and Windows 7 (Build 7000) without any problems. The latest version of Ruby on Rails is preconfigured to use SQLite, and therefore no additional configuration is required after creating a new rails project.
&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31652320-641651892871465068?l=hundeboel.blogspot.com' alt='' /&gt;&lt;/div&gt;</description>
      <author>Lars Hundebøl</author>
      <pubDate>Sun, 26 Apr 2009 09:12:00 GMT</pubDate>
    </item>
    <item>
      <title>Old School Google</title>
      <link>http://propellerhead.dk/post/6877342802020927369/old-school-google.aspx</link>
      <description>&lt;img style="width: 400px; height: 284px;" src="http://1.bp.blogspot.com/_haASEaMiarU/SeyGtJvK4II/AAAAAAAAACY/0Fbymmpq4vs/s400/3.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5326780569538453634" /&gt;&lt;p&gt;Back in the days, Google was a little more primitive.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31652320-6877342802020927369?l=hundeboel.blogspot.com' alt='' /&gt;&lt;/div&gt;</description>
      <author>Lars Hundebøl</author>
      <pubDate>Mon, 20 Apr 2009 16:25:00 GMT</pubDate>
    </item>
    <item>
      <title>SketchFlow - prototyping by Microsoft</title>
      <link>http://propellerhead.dk/post/6540565579118209477/sketchflow-dash-prototyping-by-microsoft.aspx</link>
      <description>&lt;p&gt;
&lt;img style="width: 400px;" src="http://1.bp.blogspot.com/_haASEaMiarU/ScO4a9PwmlI/AAAAAAAAACQ/PX05m5u5BZY/s400/sketchflow-1.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5315294758484089426" /&gt;
&lt;/p&gt;
&lt;p&gt;At MIX 09 this week, Microsoft released the prototyping tool SketchFlow. SketchFlow allows the designer, to "sketch" up a simple prototype, using a combination of flow diagrams and hand drawn pictures or controls that looks hand drawn.&lt;/p&gt;
&lt;p&gt;By using Silverlight, SketchFlow can create a prototype that easily can be shared with the client using the Web, and with annotating tools, the client can comment on different aspects of the prototype.&lt;/p&gt;
&lt;p&gt;
In that the prototype is a Silvelight application, it is also possible to use animations, within the prototype, to better illustrate different transition within the proposed application. There is also the added benefit of using this tool when developing Silverlight and WPF applications, it that the prototype can easily be used as the base for the actual implementation (check out the &lt;a href="http://live.visitmix.com/"&gt;MIX 09 day 1 keynote&lt;/a&gt;).
&lt;/p&gt;
&lt;p&gt;Not knowing existing prototyping tools, I can't say whether or not this product is all that different from existing prototyping tools. The SketchFlow will be able for preview later this yaer.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31652320-6540565579118209477?l=hundeboel.blogspot.com' alt='' /&gt;&lt;/div&gt;</description>
      <author>Lars Hundebøl</author>
      <pubDate>Fri, 20 Mar 2009 16:18:00 GMT</pubDate>
    </item>
    <item>
      <title>Silverlight 3 - the morning after</title>
      <link>http://propellerhead.dk/post/2822221631498675165/silverlight-3-dash-the-morning-after.aspx</link>
      <description>&lt;p&gt;In all my excitement &lt;a href="http://www.propellerhead.dk/post/1952148426970816896/heart-your-silverlight-3.aspx"&gt;yesterday&lt;/a&gt;, I forgot some of the crucial items on my personal wish list for Silverlight, which still is not supported by Silverlight 3. Unfortunately there is no support for webcams or microphones, as there is in Flash, and most regrettably there is no support for printing.&lt;/p&gt;
&lt;p&gt;Microsoft said they working hard to get support for printing, so hopefully we might see this in the RTM release of Silverlight 3.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31652320-2822221631498675165?l=hundeboel.blogspot.com' alt='' /&gt;&lt;/div&gt;</description>
      <author>Lars Hundebøl</author>
      <pubDate>Thu, 19 Mar 2009 16:37:00 GMT</pubDate>
    </item>
    <item>
      <title>SuperPreview</title>
      <link>http://propellerhead.dk/post/254573810713493898/superpreview.aspx</link>
      <description>&lt;p&gt;
&lt;img src="http://3.bp.blogspot.com/_haASEaMiarU/ScJiUjuYr1I/AAAAAAAAACI/TXGT7Dvz8ME/s400/superpreview-1.jpg" alt="SuperPreview screenshot" style="width:400px" /&gt;
&lt;/p&gt;
&lt;p&gt;
Yesterday Microsoft announced the SuperPreview feature as part of Expression Web and as a &lt;a href="http://blogs.msdn.com/xweb/archive/2009/03/18/Microsoft-Expression-Web-SuperPreview-for-Windows-Internet-Explorer.aspx"&gt;standalone install&lt;/a&gt;. The cool thing about SuperPreview is that you can overlay you HTML mockup onto of the actual composition, to see how "pixel perfect" it is, and you can test different browsers (IE 6, 7, 8, Safari, FireFox, e.g.) opposite each, and even without some of them being installed (by leveraging a service on the Net).
&lt;/p&gt;
&lt;p&gt;
Check it out by downloading the trial &lt;a href="http://blogs.msdn.com/xweb/archive/2009/03/18/Microsoft-Expression-Web-SuperPreview-for-Windows-Internet-Explorer.aspx"&gt;here&lt;/a&gt;.
&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31652320-254573810713493898?l=hundeboel.blogspot.com' alt='' /&gt;&lt;/div&gt;</description>
      <author>Lars Hundebøl</author>
      <pubDate>Thu, 19 Mar 2009 16:17:00 GMT</pubDate>
    </item>
    <item>
      <title>Heart Your Silverlight 3</title>
      <link>http://propellerhead.dk/post/1952148426970816896/heart-your-silverlight-3.aspx</link>
      <description>&lt;p&gt;Maybe it's the brainwashing drugs they give you here at MIX, or maybe it's just because Microsoft have really listen to the developers, but I'm in love with Microsoft.&lt;/p&gt;
&lt;p&gt;
The new enhancements made to Silverlight 3 (just released in Beta), can now fully compete with Adobes Air/Flex. Here's the short list of cool new features:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;GPU accelaration support in both Windows and Mac&lt;/li&gt;
&lt;li&gt;H.264 support&lt;/li&gt;
&lt;li&gt;Outside Browser support in both Windows and Mac&lt;/li&gt;
&lt;li&gt;Perspective 3D support&lt;/li&gt;
&lt;li&gt;Bitmap+Pixel API&lt;/li&gt;
&lt;li&gt;Support for Pixel Shaders&lt;/li&gt;
&lt;li&gt;Improved Deep Zoom&lt;/li&gt;
&lt;li&gt;Deep Linking&lt;/li&gt;
&lt;li&gt;Improved Text Quality&lt;/li&gt;
&lt;li&gt;Multi Touch&lt;/li&gt;
&lt;li&gt;100+ Controls (as part of the SDK)&lt;/li&gt;
&lt;li&gt;Library Caching Support&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Check out the Keynote with Scott Gu and the What's new in Silverlight 3 session when available on &lt;a href="http://www.visitmix.com/2009"&gt;www.visitmix.com/2009&lt;/a&gt;.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/31652320-1952148426970816896?l=hundeboel.blogspot.com' alt='' /&gt;&lt;/div&gt;</description>
      <author>Lars Hundebøl</author>
      <pubDate>Wed, 18 Mar 2009 19:33:00 GMT</pubDate>
    </item>
  </channel>
</rss>