<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   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/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    
    <title>manuel's blog</title>
    <link>http://suntsu.ch/serendipity/</link>
    <description>...</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.6.2 - http://www.s9y.org/</generator>
    
    

<item>
    <title>Start VS2012 .sln and .proj files always as Administrator on Windows 8</title>
    <link>http://suntsu.ch/serendipity/index.php?/archives/244-Start-VS2012-.sln-and-.proj-files-always-as-Administrator-on-Windows-8.html</link>
            <category>.net</category>
    
    <comments>http://suntsu.ch/serendipity/index.php?/archives/244-Start-VS2012-.sln-and-.proj-files-always-as-Administrator-on-Windows-8.html#comments</comments>
    <wfw:comment>http://suntsu.ch/serendipity/wfwcomment.php?cid=244</wfw:comment>

    <slash:comments>6</slash:comments>
    <wfw:commentRss>http://suntsu.ch/serendipity/rss.php?version=2.0&amp;type=comments&amp;cid=244</wfw:commentRss>
    

    <author>nospam@example.com (suntsu)</author>
    <content:encoded>
    &lt;h1&gt;Problem description&lt;/h1&gt;&lt;p class=&quot;break&quot;&gt;I&#039;m using windows 8 and visual studio 2012, and i had some strange problems related to permission. &lt;/p&gt;&lt;p class=&quot;break&quot;&gt;If visual studio runs under non-administrator rights, it cannot do some compile tasks like &quot;Register for COM interop&quot;&lt;/p&gt;&lt;p class=&quot;whiteline&quot;&gt;&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/suntsu.smugmug.com/Public/stuff/work/19344496_sVF2g4#!i=2129877934&amp;amp;k=XGdsdH2&amp;amp;lb=1&amp;amp;s=A&#039;]);&quot;  href=&quot;http://suntsu.smugmug.com/Public/stuff/work/19344496_sVF2g4#!i=2129877934&amp;k=XGdsdH2&amp;lb=1&amp;s=A&quot; title=&quot;Photo &amp;amp; Video Sharing by SmugMug&quot;&gt;&lt;img src=&quot;http://suntsu.smugmug.com/photos/i-XGdsdH2/0/M/i-XGdsdH2-M.png&quot; title=&quot;Photo &amp;amp; Video Sharing by SmugMug&quot; alt=&quot;Photo &amp;amp; Video Sharing by SmugMug&quot;&gt;&lt;/a&gt;


&lt;/p&gt;&lt;h1&gt;Step by step solution&lt;/h1&gt;&lt;h2&gt;Start a VisualStudio command prompt&lt;/h2&gt;&lt;p class=&quot;break&quot;&gt;Start a VisualStudio command prompt and navigate it to the place where devenv.exe is located. On my System this is &lt;em&gt;C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE&lt;/em&gt;&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/suntsu.smugmug.com/Public/stuff/work/19344496_sVF2g4#!i=2129877916&amp;amp;k=GnmWHsL&amp;amp;lb=1&amp;amp;s=A&#039;]);&quot;  href=&quot;http://suntsu.smugmug.com/Public/stuff/work/19344496_sVF2g4#!i=2129877916&amp;k=GnmWHsL&amp;lb=1&amp;s=A&quot; title=&quot;&quot;&gt;&lt;img src=&quot;http://suntsu.smugmug.com/photos/i-GnmWHsL/0/M/i-GnmWHsL-M.png&quot; title=&quot;&quot; alt=&quot;&quot;&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;h2&gt;Create a manifes file from devenv.exe&lt;/h2&gt;&lt;p class=&quot;break&quot;&gt;Execute the following command:   &lt;/p&gt;&lt;pre name=&quot;code&quot; class=&quot;brush: shell; ruler: true;&quot; &gt;mt -inputresource:&quot;devenv.exe&quot; -out:devenv.exe.manifest&lt;/pre&gt;&lt;p class=&quot;break&quot;&gt;This will create the file devenv.exe.manifest&lt;/p&gt;&lt;p class=&quot;whiteline&quot;&gt;&lt;br /&gt;

&lt;/p&gt;&lt;h2&gt;Edit the content of devenv.exe.manifest&lt;/h2&gt;&lt;p class=&quot;break&quot;&gt;Change the level value of &lt;strong&gt;requestedExecutionLevel &lt;/strong&gt;from &lt;strong&gt;asInvoker &lt;/strong&gt;to &lt;strong&gt;requireAdministrator&lt;/strong&gt;&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/suntsu.smugmug.com/Public/stuff/work/19344496_sVF2g4#!i=2129877920&amp;amp;k=CqQJDBd&amp;amp;lb=1&amp;amp;s=A&#039;]);&quot;  href=&quot;http://suntsu.smugmug.com/Public/stuff/work/19344496_sVF2g4#!i=2129877920&amp;k=CqQJDBd&amp;lb=1&amp;s=A&quot; title=&quot;&quot;&gt;&lt;img src=&quot;http://suntsu.smugmug.com/photos/i-CqQJDBd/0/M/i-CqQJDBd-M.png&quot; title=&quot;&quot; alt=&quot;&quot;&gt;&lt;/a&gt;&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/suntsu.smugmug.com/Public/stuff/work/19344496_sVF2g4#!i=2129877921&amp;amp;k=GWnDrk8&amp;amp;lb=1&amp;amp;s=A&#039;]);&quot;  href=&quot;http://suntsu.smugmug.com/Public/stuff/work/19344496_sVF2g4#!i=2129877921&amp;k=GWnDrk8&amp;lb=1&amp;s=A&quot; title=&quot;&quot;&gt;&lt;img src=&quot;http://suntsu.smugmug.com/photos/i-GWnDrk8/0/M/i-GWnDrk8-M.png&quot; title=&quot;&quot; alt=&quot;&quot;&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;whiteline&quot;&gt;&lt;br /&gt;

&lt;/p&gt;&lt;h2&gt;Write the manifest back into the devenv.exe&lt;/h2&gt;&lt;p class=&quot;break&quot;&gt;Execute the following command in the visual studio command prompt:&lt;/p&gt;&lt;pre name=&quot;code&quot; class=&quot;brush: shell; ruler: true;&quot; &gt;mt -outputresource:devenv.exe -manifest devenv.exe.manifest&lt;/pre&gt;&lt;p class=&quot;whiteline&quot;&gt;&lt;br /&gt;

&lt;/p&gt;&lt;h2&gt;Check whether visual studio 2012 starts as administrator&lt;/h2&gt;&lt;p class=&quot;break&quot;&gt;Just double click any .sln or .proj file, and check whether visual studio starts as administrator or not.&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/suntsu.smugmug.com/Public/stuff/work/19344496_sVF2g4#!i=2129877933&amp;amp;k=mjBTvpJ&amp;amp;lb=1&amp;amp;s=A&#039;]);&quot;  href=&quot;http://suntsu.smugmug.com/Public/stuff/work/19344496_sVF2g4#!i=2129877933&amp;k=mjBTvpJ&amp;lb=1&amp;s=A&quot; title=&quot;&quot;&gt;&lt;img src=&quot;http://suntsu.smugmug.com/photos/i-mjBTvpJ/0/M/i-mjBTvpJ-M.png&quot; title=&quot;&quot; alt=&quot;&quot;&gt;&lt;/a&gt;&lt;/p&gt; 
    </content:encoded>

    <pubDate>Fri, 05 Oct 2012 08:49:27 +0200</pubDate>
    <guid isPermaLink="false">http://suntsu.ch/serendipity/index.php?/archives/244-guid.html</guid>
    
</item>
<item>
    <title>My first windows 8 app (MySmug for windows 8)</title>
    <link>http://suntsu.ch/serendipity/index.php?/archives/243-My-first-windows-8-app-MySmug-for-windows-8.html</link>
            <category>MySmug</category>
    
    <comments>http://suntsu.ch/serendipity/index.php?/archives/243-My-first-windows-8-app-MySmug-for-windows-8.html#comments</comments>
    <wfw:comment>http://suntsu.ch/serendipity/wfwcomment.php?cid=243</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://suntsu.ch/serendipity/rss.php?version=2.0&amp;type=comments&amp;cid=243</wfw:commentRss>
    

    <author>nospam@example.com (suntsu)</author>
    <content:encoded>
    &lt;p class=&quot;break&quot;&gt;I&#039;ve created my first windows 8 app. &lt;/p&gt;&lt;p class=&quot;whiteline&quot;&gt;It&#039;s a simple image viewer for a &lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/www.smugmug.com/&#039;]);&quot;  href=&quot;http://www.smugmug.com/&quot;&gt;smugmug&lt;/a&gt; gallery.
&lt;/p&gt;&lt;h1&gt;MySmug for windows 8 status quo&lt;/h1&gt;&lt;h2&gt;Authentication&lt;/h2&gt;&lt;p class=&quot;break&quot;&gt;The preferred method to authenticate to SmugMug is OAuth V2.0. &lt;/p&gt;&lt;p class=&quot;break&quot;&gt;OAuth in windows 8 can be achieved straight forward with the WebAuthenticationBroker. It will do most of the work for you. The only problem is that you cant style this control properly. &lt;/p&gt;&lt;p class=&quot;break&quot;&gt;At the moment the authentication site from SmugMug doesn&#039;t fit into the WebAuthentication-Broker control. But it seems Im not alone with this &lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/social.msdn.microsoft.com/Forums/en-GB/winappswithhtml5/thread/4cb737d4-9135-45d7-adb1-84b997407e5c&#039;]);&quot;  href=&quot;http://social.msdn.microsoft.com/Forums/en-GB/winappswithhtml5/thread/4cb737d4-9135-45d7-adb1-84b997407e5c&quot;&gt;problem&lt;/a&gt;. &lt;/p&gt;&lt;p class=&quot;whiteline&quot;&gt;&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/suntsu.smugmug.com/Public/stuff/MySmug/20799797_MqT9hp#!i=1917683029&amp;amp;k=DM42Rkx&amp;amp;lb=1&amp;amp;s=A&#039;]);&quot;  href=&quot;http://suntsu.smugmug.com/Public/stuff/MySmug/20799797_MqT9hp#!i=1917683029&amp;k=DM42Rkx&amp;lb=1&amp;s=A&quot; title=&quot;&quot;&gt;&lt;img src=&quot;http://suntsu.smugmug.com/photos/i-DM42Rkx/0/M/i-DM42Rkx-M.png&quot; title=&quot;&quot; alt=&quot;&quot;&gt;&lt;/a&gt;
&lt;/p&gt;&lt;h2&gt;Albums list&lt;/h2&gt;&lt;p class=&quot;break&quot;&gt;After a successful authentication, a list of albums is shown. &lt;/p&gt;&lt;p class=&quot;whiteline&quot;&gt;&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/suntsu.smugmug.com/Public/stuff/MySmug/20799797_MqT9hp#!i=1917682305&amp;amp;k=sWJkbh3&amp;amp;lb=1&amp;amp;s=A&#039;]);&quot;  href=&quot;http://suntsu.smugmug.com/Public/stuff/MySmug/20799797_MqT9hp#!i=1917682305&amp;k=sWJkbh3&amp;lb=1&amp;s=A&quot; title=&quot;Photo &amp;amp; Video Sharing by SmugMug&quot;&gt;&lt;img src=&quot;http://suntsu.smugmug.com/photos/i-sWJkbh3/0/M/i-sWJkbh3-M.png&quot; title=&quot;Photo &amp;amp; Video Sharing by SmugMug&quot; alt=&quot;Photo &amp;amp; Video Sharing by SmugMug&quot;&gt;&lt;/a&gt;
&lt;/p&gt;&lt;h2&gt;Image list&lt;/h2&gt;&lt;p class=&quot;break&quot;&gt;After selecting an album from the albums list, all images from this album are shown. &lt;/p&gt;&lt;p class=&quot;whiteline&quot;&gt;&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/suntsu.smugmug.com/Public/stuff/MySmug/20799797_MqT9hp#!i=1917682575&amp;amp;k=8bQ68gm&amp;amp;lb=1&amp;amp;s=A&#039;]);&quot;  href=&quot;http://suntsu.smugmug.com/Public/stuff/MySmug/20799797_MqT9hp#!i=1917682575&amp;k=8bQ68gm&amp;lb=1&amp;s=A&quot; title=&quot;&quot;&gt;&lt;img src=&quot;http://suntsu.smugmug.com/photos/i-8bQ68gm/0/M/i-8bQ68gm-M.png&quot; title=&quot;&quot; alt=&quot;&quot;&gt;&lt;/a&gt;
&lt;/p&gt;&lt;h2&gt;Image detail&lt;/h2&gt;&lt;p class=&quot;break&quot;&gt;After selecting an image, it is shown full screen with some information. In this view it is possible to swipe through all images. &lt;/p&gt;&lt;p class=&quot;whiteline&quot;&gt;&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/suntsu.smugmug.com/Public/stuff/MySmug/20799797_MqT9hp#!i=1917683080&amp;amp;k=TsK4X8X&amp;amp;lb=1&amp;amp;s=A&#039;]);&quot;  href=&quot;http://suntsu.smugmug.com/Public/stuff/MySmug/20799797_MqT9hp#!i=1917683080&amp;k=TsK4X8X&amp;lb=1&amp;s=A&quot; title=&quot;&quot;&gt;&lt;img src=&quot;http://suntsu.smugmug.com/photos/i-TsK4X8X/0/M/i-TsK4X8X-M.png&quot; title=&quot;&quot; alt=&quot;&quot;&gt;&lt;/a&gt;
&lt;/p&gt;&lt;h2&gt;Settings&lt;/h2&gt;&lt;p class=&quot;break&quot;&gt;&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/suntsu.smugmug.com/Public/stuff/MySmug/20799797_MqT9hp#!i=1917682946&amp;amp;k=B4D86VF&amp;amp;lb=1&amp;amp;s=A&#039;]);&quot;  href=&quot;http://suntsu.smugmug.com/Public/stuff/MySmug/20799797_MqT9hp#!i=1917682946&amp;k=B4D86VF&amp;lb=1&amp;s=A&quot; title=&quot;&quot;&gt;&lt;img src=&quot;http://suntsu.smugmug.com/photos/i-B4D86VF/0/M/i-B4D86VF-M.png&quot; title=&quot;&quot; alt=&quot;&quot;&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;whiteline&quot;&gt;&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/suntsu.smugmug.com/Public/stuff/MySmug/20799797_MqT9hp#!i=1917683025&amp;amp;k=Kb8Tr7p&amp;amp;lb=1&amp;amp;s=A&#039;]);&quot;  href=&quot;http://suntsu.smugmug.com/Public/stuff/MySmug/20799797_MqT9hp#!i=1917683025&amp;k=Kb8Tr7p&amp;lb=1&amp;s=A&quot; title=&quot;&quot;&gt;&lt;img src=&quot;http://suntsu.smugmug.com/photos/i-Kb8Tr7p/0/M/i-Kb8Tr7p-M.png&quot; title=&quot;&quot; alt=&quot;&quot;&gt;&lt;/a&gt;

&lt;/p&gt;&lt;h1&gt;The good&lt;/h1&gt;&lt;p class=&quot;break&quot;&gt;Here Im showing a list of things which are cool when creating a windows 8 app.&lt;/p&gt;&lt;h2&gt;Overall concept&lt;/h2&gt;&lt;p class=&quot;whiteline&quot;&gt;I like the metro concepts. I like the colors, style, tiles, contracts, responsive behavior and so on. In my opinion it is the right direction even if windows 8 is not finished yet.
&lt;/p&gt;&lt;h2&gt;Cool controls&lt;/h2&gt;&lt;p class=&quot;whiteline&quot;&gt;There are a lot of cool controls like the FlipView or the WebAuthenticationBroker which hide a lot of complexity. 
&lt;/p&gt;&lt;h2&gt;Good templates&lt;/h2&gt;&lt;p class=&quot;whiteline&quot;&gt;There are some good metro style templates like the items page or the item detail page. They im-plement a lot of cool functionality and are quite easy to use.
&lt;/p&gt;&lt;h2&gt;Visual Studio 2012&lt;/h2&gt;&lt;p class=&quot;break&quot;&gt;I love VS. Just give VS2012 some more colors and don&#039;t use upper case in menu text.&lt;/p&gt;&lt;p class=&quot;whiteline&quot;&gt;And Im missing a stable resharper for VS2012.

&lt;/p&gt;&lt;h1&gt;The bad&lt;/h1&gt;&lt;p class=&quot;break&quot;&gt;A list of things which suck(At the moment at least) when creating a windows 8 app.&lt;/p&gt;&lt;h2&gt;Change from Consumer Preview to Release Preview&lt;/h2&gt;&lt;p class=&quot;break&quot;&gt;I&#039;ve started development with the consumer preview of windows 8, and this was a mistake. &lt;/p&gt;&lt;p class=&quot;break&quot;&gt;After upgrading to the release preview of windows and to VS2012, my solution didn&#039;t work any-more. &lt;/p&gt;&lt;p class=&quot;whiteline&quot;&gt;They&#039;ve change the whole LayoutAwarePage on which most of my sites were based. 
&lt;/p&gt;&lt;h2&gt;Windows/VS2012 crashes&lt;/h2&gt;&lt;p class=&quot;whiteline&quot;&gt;While developing, i had about 10 crashes where i had to do a hard reboot. Two times i even lost source code. 
&lt;/p&gt;&lt;h2&gt;Missing concepts&lt;/h2&gt;&lt;p class=&quot;break&quot;&gt;I miss some concepts/basic functionality in metro apps. &lt;/p&gt;&lt;p class=&quot;break&quot;&gt;&lt;li&gt;Navigation concept/Application state&lt;/li&gt;&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;&lt;li&gt;Settings dialog. &lt;/li&gt;&lt;/p&gt;&lt;p class=&quot;whiteline&quot;&gt;&lt;li&gt;Others i can&#039;t remember... &lt;/li&gt;
&lt;/p&gt;&lt;h2&gt;Unfinished and missing controls&lt;/h2&gt;&lt;p class=&quot;break&quot;&gt;I tried to use the ScrollViewer in order to zoom images. After a hack with the HorizontalScroll-BarVisibility it worked, but not as smooth as it should. &lt;/p&gt;&lt;p class=&quot;break&quot;&gt;Why is there no control which i can pan/zoom and which is super-smooth and behaves as it should?&lt;/p&gt;&lt;p class=&quot;whiteline&quot;&gt;There are people which say you have to implement this all by &lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/stackoverflow.com/questions/10439346/howto-get-the-redirecturl-from-winrt-webview-control&#039;]);&quot;  href=&quot;http://stackoverflow.com/questions/10439346/howto-get-the-redirecturl-from-winrt-webview-control&quot;&gt;yourself&lt;/a&gt;, but i don&#039;t agree.
&lt;/p&gt;&lt;p class=&quot;whiteline&quot;&gt;Why is there no settings control/concept?  I&#039;ve used &lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/timheuer.com/blog/archive/2012/05/31/introducing-callisto-a-xaml-toolkit-for-metro-apps.aspx&#039;]);&quot;  href=&quot;http://timheuer.com/blog/archive/2012/05/31/introducing-callisto-a-xaml-toolkit-for-metro-apps.aspx&quot;&gt;callisto &lt;/a&gt;from tim heure, but this is a control which must be part of the core.
&lt;/p&gt;&lt;p class=&quot;whiteline&quot;&gt;Why is it no possible to change the size/style of a &lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/social.msdn.microsoft.com/Forums/en-GB/winappswithhtml5/thread/4cb737d4-9135-45d7-adb1-84b997407e5c&#039;]);&quot;  href=&quot;http://social.msdn.microsoft.com/Forums/en-GB/winappswithhtml5/thread/4cb737d4-9135-45d7-adb1-84b997407e5c&quot;&gt;WebAuthenticationBroker&lt;/a&gt;?
&lt;/p&gt;&lt;h2&gt;Image share contract&lt;/h2&gt;&lt;p class=&quot;break&quot;&gt;I&#039;ve implemented an image share &lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/msdn.microsoft.com/en-us/library/windows/apps/hh464906.aspx&#039;]);&quot;  href=&quot;http://msdn.microsoft.com/en-us/library/windows/apps/hh464906.aspx&quot;&gt;contract&lt;/a&gt;. Why for gods sake did the mail client and the build in image viewer not implement the opposite of this contract?&lt;/p&gt;&lt;p class=&quot;whiteline&quot;&gt;At the moment it&#039;s useless (I can share images only with puzzle-touch^^)

&lt;/p&gt;&lt;h1&gt;Next steps&lt;/h1&gt;&lt;p class=&quot;break&quot;&gt;I&#039;ll try to implement a video player in order to show movies, and i&#039;m going to cleanup the existing code. &lt;/p&gt;&lt;p class=&quot;whiteline&quot;&gt;I also hope to get the &lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/www.microsoft.com/surface/en/us/default.aspx&#039;]);&quot;  href=&quot;http://www.microsoft.com/surface/en/us/default.aspx&quot;&gt;surface tablet&lt;/a&gt; anytime soon... :)
&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;cheers&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;manuel&lt;/p&gt; 
    </content:encoded>

    <pubDate>Wed, 20 Jun 2012 23:20:21 +0200</pubDate>
    <guid isPermaLink="false">http://suntsu.ch/serendipity/index.php?/archives/243-guid.html</guid>
    
</item>
<item>
    <title>Howto set MinWidth or MinHeight of a WinRT ScrollViewer</title>
    <link>http://suntsu.ch/serendipity/index.php?/archives/242-Howto-set-MinWidth-or-MinHeight-of-a-WinRT-ScrollViewer.html</link>
            <category>.net</category>
    
    <comments>http://suntsu.ch/serendipity/index.php?/archives/242-Howto-set-MinWidth-or-MinHeight-of-a-WinRT-ScrollViewer.html#comments</comments>
    <wfw:comment>http://suntsu.ch/serendipity/wfwcomment.php?cid=242</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://suntsu.ch/serendipity/rss.php?version=2.0&amp;type=comments&amp;cid=242</wfw:commentRss>
    

    <author>nospam@example.com (suntsu)</author>
    <content:encoded>
    &lt;p class=&quot;break&quot;&gt;I use the ScrollViewer control in a windows 8 metro app in order to zoom in/out an image. &lt;/p&gt;&lt;p class=&quot;break&quot;&gt;The problem now is, that it is possible to zoom in the image untill you almost can&#039;t zoom out again(because the image gets so small).&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;I&#039;ve tried MinWidth and MinHeigt on the ScrollViewer and on the image, but it didn&#039;t work. &lt;/p&gt;&lt;p class=&quot;break&quot;&gt;After some time i found the MinZoomFactor of the ScrollViewer, and this now works.&lt;/p&gt;&lt;p class=&quot;whiteline&quot;&gt;It was just not obvious to me... 

&lt;/p&gt;&lt;pre name=&quot;code&quot; class=&quot;brush: xml; ruler: true;highlight:2; toolbar: true;&quot; &gt;
  &lt;Grid Background=&quot;{StaticResource ApplicationPageBackgroundThemeBrush}&quot;&gt;
        &lt;ScrollViewer x:Name=&quot;ImageScrollViewer&quot; MinZoomFactor=&quot;0.5&quot; HorizontalAlignment=&quot;Stretch&quot; HorizontalScrollBarVisibility=&quot;Visible&quot; VerticalAlignment=&quot;Stretch&quot;  &gt;
            &lt;Grid&gt;
                &lt;Image x:Name=&quot;SmugImage&quot;   Source=&quot;http://www.cityrealtyrussia.com/pictures/Mos_metro.gif&quot;  Stretch=&quot;Uniform&quot; Grid.Column=&quot;0&quot; Grid.Row=&quot;0&quot; /&gt;
            &lt;/Grid&gt;
        &lt;/ScrollViewer&gt;
    &lt;/Grid&gt;
&lt;/pre&gt; 
    </content:encoded>

    <pubDate>Wed, 13 Jun 2012 21:07:28 +0200</pubDate>
    <guid isPermaLink="false">http://suntsu.ch/serendipity/index.php?/archives/242-guid.html</guid>
    <category>mysmug</category>
<category>windows 8</category>
<category>winrt</category>

</item>
<item>
    <title>Exception: That assembly does not allow partially trusted callers</title>
    <link>http://suntsu.ch/serendipity/index.php?/archives/241-Exception-That-assembly-does-not-allow-partially-trusted-callers.html</link>
            <category>.net</category>
    
    <comments>http://suntsu.ch/serendipity/index.php?/archives/241-Exception-That-assembly-does-not-allow-partially-trusted-callers.html#comments</comments>
    <wfw:comment>http://suntsu.ch/serendipity/wfwcomment.php?cid=241</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://suntsu.ch/serendipity/rss.php?version=2.0&amp;type=comments&amp;cid=241</wfw:commentRss>
    

    <author>nospam@example.com (suntsu)</author>
    <content:encoded>
    &lt;p class=&quot;break&quot;&gt;I have .net 3.5 program where i load some assemblies from a network share via reflection. Now i&#039;ve got the following exception:  &quot;That assembly does not allow partially trusted callers&#039;&#039;(Detailed message below). &lt;/p&gt;&lt;p class=&quot;whiteline&quot;&gt;The calling assembly(.exe) is local. This .exe loads the assembly from network via reflection. The assembly from the network share then has a reference on a third assembly which is located beneath the .exe.  (Hard to explain, image will do better...)
&lt;/p&gt;&lt;p class=&quot;whiteline&quot;&gt;&lt;a title=&quot;/serendipity/uploads/NetAssemblySecurity1.png&quot; id=&quot;s9yisp295&quot;&gt;&lt;/a&gt;&lt;a class=&quot;serendipity_image_link&quot;  href=&#039;http://suntsu.ch/serendipity/serendipity_admin_image_selector.php?serendipity[step]=showItem&amp;amp;serendipity[image]=295&#039; id=&quot;s9yisphref295&quot; onclick=&quot;javascript:this.href = this.href + &#039;&amp;amp;serendipity[from]=&#039; + self.location.href;&quot;&gt;&lt;!-- s9ymdb:295 --&gt;&lt;img class=&quot;serendipity_image&quot; width=&quot;700&quot;   src=&quot;http://suntsu.ch/serendipity/uploads/NetAssemblySecurity1.serendipityThumb.png&quot;  alt=&quot;&quot; /&gt;&lt;/a&gt;

&lt;/p&gt;&lt;p class=&quot;whiteline&quot;&gt;The reason for this failure is the .net security. It doesn&#039;t allow the MyLib.dll to be loaded, because the calling assembly is located on a network share and is signed with a strong name. 
&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;&lt;strong&gt;Solution 1, caspol.exe&lt;/strong&gt;&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;Allow all code to be executed. &lt;/p&gt;&lt;p class=&quot;break&quot;&gt;This might be dangerous, but if you&#039;re desperate it could be a solution.&lt;/p&gt;&lt;pre name=&quot;code&quot; class=&quot;brush: bash; ruler: true;&quot; &gt;
 &quot;C:\Windows\Microsoft.NET\Framework\v2.0.50727\CasPol.exe&quot; -machine -chggroup All_Code FullTrust
&lt;/pre&gt;&lt;p&gt; 
&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;&lt;strong&gt;Solution 2, no signing&lt;/strong&gt;&lt;/p&gt;&lt;p class=&quot;whiteline&quot;&gt;If you remove the signature from MyLib2.dll, everything works.
&lt;/p&gt;&lt;p class=&quot;whiteline&quot;&gt;&lt;a title=&quot;/serendipity/uploads/NetAssemblySecurity2.png&quot; id=&quot;s9yisp296&quot;&gt;&lt;/a&gt;&lt;a class=&quot;serendipity_image_link&quot;  href=&#039;http://suntsu.ch/serendipity/serendipity_admin_image_selector.php?serendipity[step]=showItem&amp;amp;serendipity[image]=296&#039; id=&quot;s9yisphref296&quot; onclick=&quot;javascript:this.href = this.href + &#039;&amp;amp;serendipity[from]=&#039; + self.location.href;&quot;&gt;&lt;!-- s9ymdb:296 --&gt;&lt;img class=&quot;serendipity_image&quot; width=&quot;700&quot;  src=&quot;http://suntsu.ch/serendipity/uploads/NetAssemblySecurity2.serendipityThumb.png&quot;  alt=&quot;&quot; /&gt;&lt;/a&gt;
&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;&lt;strong&gt;Solution 3, set attribute AllowPartiallyTrustedCallers&lt;/strong&gt;&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;If you set the AllowPartiallyTrustedCallers in the AssemblyInfo.cs of the signed assembly, everything works.&lt;/p&gt;&lt;pre name=&quot;code&quot; class=&quot;brush: csharp; ruler: true;&quot; &gt;
using System.Security;

[assembly: AllowPartiallyTrustedCallers()]
&lt;/pre&gt;&lt;p class=&quot;whiteline&quot;&gt;&lt;a title=&quot;/serendipity/uploads/NetAssemblySecurity3.png&quot; id=&quot;s9yisp297&quot;&gt;&lt;/a&gt;&lt;a class=&quot;serendipity_image_link&quot;  href=&#039;http://suntsu.ch/serendipity/serendipity_admin_image_selector.php?serendipity[step]=showItem&amp;amp;serendipity[image]=297&#039; id=&quot;s9yisphref297&quot; onclick=&quot;javascript:this.href = this.href + &#039;&amp;amp;serendipity[from]=&#039; + self.location.href;&quot;&gt;&lt;!-- s9ymdb:297 --&gt;&lt;img class=&quot;serendipity_image&quot; width=&quot;700&quot; src=&quot;http://suntsu.ch/serendipity/uploads/NetAssemblySecurity3.serendipityThumb.png&quot;  alt=&quot;&quot; /&gt;&lt;/a&gt;
&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;&lt;strong&gt;Usefull links&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;
&lt;li&gt;&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/msdn.microsoft.com/en-us/library/cb6t8dtz(v=vs.80).aspx&#039;]);&quot;  href=&quot;http://msdn.microsoft.com/en-us/library/cb6t8dtz(v=vs.80).aspx&quot;&gt;caspol doku&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/blogs.msdn.com/b/shawnfa/archive/2004/12/30/344554.aspx&#039;]);&quot;  href=&quot;http://blogs.msdn.com/b/shawnfa/archive/2004/12/30/344554.aspx&quot;&gt;howto set fulltrust to a share&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/msdn.microsoft.com/en-us/library/8skskf63(v=VS.90).aspx&#039;]);&quot;  href=&quot;http://msdn.microsoft.com/en-us/library/8skskf63(v=VS.90).aspx&quot;&gt;Using Libraries from Partially Trusted Code&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/blogs.msdn.com/b/shawnfa/archive/2005/02/04/367390.aspx&#039;]);&quot;  href=&quot;http://blogs.msdn.com/b/shawnfa/archive/2005/02/04/367390.aspx&quot;&gt;Allowing Partially Trusted Callers&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;a href=&quot;http://suntsu.ch/serendipity/index.php?/archives/241-Exception-That-assembly-does-not-allow-partially-trusted-callers.html#extended&quot;&gt;Continue reading &quot;Exception: That assembly does not allow partially trusted callers&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Wed, 25 Jan 2012 09:41:53 +0100</pubDate>
    <guid isPermaLink="false">http://suntsu.ch/serendipity/index.php?/archives/241-guid.html</guid>
    
</item>
<item>
    <title>MySmug version 1.2 available </title>
    <link>http://suntsu.ch/serendipity/index.php?/archives/239-MySmug-version-1.2-available.html</link>
            <category>MySmug</category>
    
    <comments>http://suntsu.ch/serendipity/index.php?/archives/239-MySmug-version-1.2-available.html#comments</comments>
    <wfw:comment>http://suntsu.ch/serendipity/wfwcomment.php?cid=239</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://suntsu.ch/serendipity/rss.php?version=2.0&amp;type=comments&amp;cid=239</wfw:commentRss>
    

    <author>nospam@example.com (suntsu)</author>
    <content:encoded>
    &lt;p class=&quot;break&quot;&gt;MySmug version 1.2 went again smooth through the submission processs, and now is available at the &lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/www.windowsphone.com/en-US/apps/e89ed9fc-9896-4212-9ac0-049a78a345bc&#039;]);&quot;  href=&quot;http://www.windowsphone.com/en-US/apps/e89ed9fc-9896-4212-9ac0-049a78a345bc&quot;&gt;marketplace&lt;/a&gt;.&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;New features are: &lt;/p&gt;&lt;ul&gt;
&lt;li&gt;Save single pictures to the phone&lt;/li&gt;
&lt;li&gt;Upload pictures from phone to smugmug&lt;/li&gt;
&lt;li&gt;Change the image orientation based on the phone orientation.&lt;/li&gt;
&lt;li&gt;Performance optimization(Album data caching)&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;
&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/suntsu.smugmug.com/Public/stuff/1-MySmug/20799797_MqT9hp#!i=1677818131&amp;amp;k=4KnqH9N&amp;amp;lb=1&amp;amp;s=A&#039;]);&quot;  href=&quot;http://suntsu.smugmug.com/Public/stuff/1-MySmug/20799797_MqT9hp#!i=1677818131&amp;k=4KnqH9N&amp;lb=1&amp;s=A&quot; title=&quot;&quot;&gt;&lt;img src=&quot;http://suntsu.smugmug.com/Public/stuff/1-MySmug/i-4KnqH9N/0/M/1-M.png&quot; title=&quot;&quot; alt=&quot;&quot;&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/suntsu.smugmug.com/Public/stuff/1-MySmug/20799797_MqT9hp#!i=1677818129&amp;amp;k=VJcHb7F&amp;amp;lb=1&amp;amp;s=A&#039;]);&quot;  href=&quot;http://suntsu.smugmug.com/Public/stuff/1-MySmug/20799797_MqT9hp#!i=1677818129&amp;k=VJcHb7F&amp;lb=1&amp;s=A&quot; title=&quot;Photo &amp;amp; Video Sharing by SmugMug&quot;&gt;&lt;img src=&quot;http://suntsu.smugmug.com/Public/stuff/1-MySmug/i-VJcHb7F/0/M/2-M.png&quot; title=&quot;Photo &amp;amp; Video Sharing by SmugMug&quot; alt=&quot;Photo &amp;amp; Video Sharing by SmugMug&quot;&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/suntsu.smugmug.com/Public/stuff/1-MySmug/20799797_MqT9hp#!i=1677818143&amp;amp;k=MtnQ7t9&amp;amp;lb=1&amp;amp;s=A&#039;]);&quot;  href=&quot;http://suntsu.smugmug.com/Public/stuff/1-MySmug/20799797_MqT9hp#!i=1677818143&amp;k=MtnQ7t9&amp;lb=1&amp;s=A&quot; title=&quot;&quot;&gt;&lt;img src=&quot;http://suntsu.smugmug.com/Public/stuff/1-MySmug/i-MtnQ7t9/0/M/4-M.png&quot; title=&quot;&quot; alt=&quot;&quot;&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/suntsu.smugmug.com/Public/stuff/1-MySmug/20799797_MqT9hp#!i=1677818140&amp;amp;k=XLx3Gw7&amp;amp;lb=1&amp;amp;s=A&#039;]);&quot;  href=&quot;http://suntsu.smugmug.com/Public/stuff/1-MySmug/20799797_MqT9hp#!i=1677818140&amp;k=XLx3Gw7&amp;lb=1&amp;s=A&quot; title=&quot;&quot;&gt;&lt;img src=&quot;http://suntsu.smugmug.com/Public/stuff/1-MySmug/i-XLx3Gw7/0/M/5-M.png&quot; title=&quot;&quot; alt=&quot;&quot;&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/suntsu.smugmug.com/Public/stuff/1-MySmug/20799797_MqT9hp#!i=1677818145&amp;amp;k=k8trGSb&amp;amp;lb=1&amp;amp;s=A&#039;]);&quot;  href=&quot;http://suntsu.smugmug.com/Public/stuff/1-MySmug/20799797_MqT9hp#!i=1677818145&amp;k=k8trGSb&amp;lb=1&amp;s=A&quot; title=&quot;&quot;&gt;&lt;img src=&quot;http://suntsu.smugmug.com/Public/stuff/1-MySmug/i-k8trGSb/0/M/6-M.png&quot; title=&quot;&quot; alt=&quot;&quot;&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/suntsu.smugmug.com/Public/stuff/1-MySmug/20799797_MqT9hp#!i=1677818149&amp;amp;k=8Nmthjj&amp;amp;lb=1&amp;amp;s=A&#039;]);&quot;  href=&quot;http://suntsu.smugmug.com/Public/stuff/1-MySmug/20799797_MqT9hp#!i=1677818149&amp;k=8Nmthjj&amp;lb=1&amp;s=A&quot; title=&quot;&quot;&gt;&lt;img src=&quot;http://suntsu.smugmug.com/Public/stuff/1-MySmug/i-8Nmthjj/0/M/7-M.png&quot; title=&quot;&quot; alt=&quot;&quot;&gt;&lt;/a&gt;&lt;/p&gt; 
    </content:encoded>

    <pubDate>Sun, 22 Jan 2012 11:04:00 +0100</pubDate>
    <guid isPermaLink="false">http://suntsu.ch/serendipity/index.php?/archives/239-guid.html</guid>
    
</item>
<item>
    <title>Uploading large files to IIS7(asp.net or mvc)</title>
    <link>http://suntsu.ch/serendipity/index.php?/archives/240-Uploading-large-files-to-IIS7asp.net-or-mvc.html</link>
            <category>.net</category>
    
    <comments>http://suntsu.ch/serendipity/index.php?/archives/240-Uploading-large-files-to-IIS7asp.net-or-mvc.html#comments</comments>
    <wfw:comment>http://suntsu.ch/serendipity/wfwcomment.php?cid=240</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://suntsu.ch/serendipity/rss.php?version=2.0&amp;type=comments&amp;cid=240</wfw:commentRss>
    

    <author>nospam@example.com (suntsu)</author>
    <content:encoded>
    &lt;p class=&quot;whiteline&quot;&gt;You can upload files with a size of up to 2GB, but it requires some modifications in your web.config.
&lt;/p&gt;&lt;pre name=&quot;code&quot; class=&quot;brush: xml; ruler: true;&quot; &gt;
&lt;system.web&gt;
    &lt;!-- maxRequestLength Specifies the limit for the input stream buffering threshold, in KB(2097152 ar about 2GB) 
        executionTimeout in seconds(3600==1h)
    --&gt;
    &lt;httpRuntime maxRequestLength=&quot;2097152&quot; executionTimeout=&quot;3600&quot;&gt;&lt;/httpRuntime&gt;
...
&lt;/system.web&gt;
&lt;/pre&gt;&lt;p&gt;
&lt;/p&gt;&lt;pre name=&quot;code&quot; class=&quot;brush: xml; ruler: true;&quot; &gt;
&lt;system.webServer&gt;
    &lt;security&gt;
      &lt;requestFiltering&gt;
        &lt;!-- maxAllowedContentLength, Specifies the maximum length of content in a request, in bytes. (2147483648 bytes are about 2GB)--&gt;
        &lt;requestLimits maxAllowedContentLength=&quot;2147483648&quot; /&gt;
      &lt;/requestFiltering&gt;
    &lt;/security&gt;
...
&lt;/system.webServer&gt;
&lt;/pre&gt; 
    </content:encoded>

    <pubDate>Fri, 20 Jan 2012 13:03:43 +0100</pubDate>
    <guid isPermaLink="false">http://suntsu.ch/serendipity/index.php?/archives/240-guid.html</guid>
    
</item>
<item>
    <title>What to do if OnOrientationChanged is not fired on windows phone 7 emulator?</title>
    <link>http://suntsu.ch/serendipity/index.php?/archives/238-What-to-do-if-OnOrientationChanged-is-not-fired-on-windows-phone-7-emulator.html</link>
            <category>.net</category>
            <category>MySmug</category>
    
    <comments>http://suntsu.ch/serendipity/index.php?/archives/238-What-to-do-if-OnOrientationChanged-is-not-fired-on-windows-phone-7-emulator.html#comments</comments>
    <wfw:comment>http://suntsu.ch/serendipity/wfwcomment.php?cid=238</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://suntsu.ch/serendipity/rss.php?version=2.0&amp;type=comments&amp;cid=238</wfw:commentRss>
    

    <author>nospam@example.com (suntsu)</author>
    <content:encoded>
    &lt;p class=&quot;whiteline&quot;&gt;If you debug your windows phone application, and the OnOrientationChanged event is not fired, just press &lt;strong&gt;Page Up&lt;/strong&gt; or &lt;strong&gt;Page Down&lt;/strong&gt;. Those keys are used to activate/deactivate the phone keyboard. If the phone keyboard is active, the following code will be executed. Strange thing...
&lt;/p&gt;&lt;pre name=&quot;code&quot; class=&quot;brush: csharp; ruler: true;&quot; &gt;
protected override void OnOrientationChanged(OrientationChangedEventArgs e)
{ 
   base.OnOrientationChanged(e);
}
&lt;/pre&gt;&lt;p class=&quot;break&quot;&gt;Found(after some time) on the &lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/social.msdn.microsoft.com/Forums/en/windowsphone7series/thread/4d454ed6-eba7-4082-87b2-1c986f6836b8&#039;]);&quot;  href=&quot;http://social.msdn.microsoft.com/Forums/en/windowsphone7series/thread/4d454ed6-eba7-4082-87b2-1c986f6836b8&quot;&gt;microsoft forum.&lt;/a&gt;&lt;/p&gt; 
    </content:encoded>

    <pubDate>Wed, 18 Jan 2012 19:27:41 +0100</pubDate>
    <guid isPermaLink="false">http://suntsu.ch/serendipity/index.php?/archives/238-guid.html</guid>
    
</item>
<item>
    <title>Todo for the next version of MySmug</title>
    <link>http://suntsu.ch/serendipity/index.php?/archives/237-Todo-for-the-next-version-of-MySmug.html</link>
            <category>MySmug</category>
    
    <comments>http://suntsu.ch/serendipity/index.php?/archives/237-Todo-for-the-next-version-of-MySmug.html#comments</comments>
    <wfw:comment>http://suntsu.ch/serendipity/wfwcomment.php?cid=237</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://suntsu.ch/serendipity/rss.php?version=2.0&amp;type=comments&amp;cid=237</wfw:commentRss>
    

    <author>nospam@example.com (suntsu)</author>
    <content:encoded>
    &lt;p class=&quot;break&quot;&gt;This is the list of issues/features i have in mind. I&#039;m not sure whether i will solve all of those, or even when. It&#039;s just to keep them in mind. Write me a comment if you have anything in mind which should be changed/fixed.&lt;/p&gt;&lt;ul&gt;
&lt;li&gt;Save single pictures to the phone&lt;/li&gt;
&lt;li&gt;Save album to the phone&lt;/li&gt;
&lt;li&gt;Upload pictures from phone&lt;/li&gt;
&lt;li&gt;Better panning/zooming&lt;/li&gt;
&lt;li&gt;Change the image orientation based on the phone orientation.&lt;/li&gt;
&lt;li&gt;Bing Map integration based on the GPS data .&lt;/li&gt;
&lt;li&gt;Performance optimization(Album data caching)&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;
&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;&lt;strong&gt;Feature list Version 1.1. In submission process&lt;/strong&gt;&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;This was just a little bugfix release. Submission sent 06.01.2012&lt;/p&gt;&lt;ul&gt;
&lt;li&gt;Bug fix: Album list was loaded more than once after some time.&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;
&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;&lt;strong&gt;Feature list Version 1.0. Release date: 06.01.2012&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;
&lt;li&gt;Authentication via oAuth&lt;/li&gt;
&lt;li&gt;Album browsing&lt;/li&gt;
&lt;li&gt;Pictures browsing&lt;/li&gt;
&lt;li&gt;Picture details&lt;/li&gt;
&lt;/ul&gt; 
    </content:encoded>

    <pubDate>Fri, 06 Jan 2012 18:38:00 +0100</pubDate>
    <guid isPermaLink="false">http://suntsu.ch/serendipity/index.php?/archives/237-guid.html</guid>
    
</item>
<item>
    <title>MySmug available on the marketplace</title>
    <link>http://suntsu.ch/serendipity/index.php?/archives/236-MySmug-available-on-the-marketplace.html</link>
            <category>MySmug</category>
    
    <comments>http://suntsu.ch/serendipity/index.php?/archives/236-MySmug-available-on-the-marketplace.html#comments</comments>
    <wfw:comment>http://suntsu.ch/serendipity/wfwcomment.php?cid=236</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://suntsu.ch/serendipity/rss.php?version=2.0&amp;type=comments&amp;cid=236</wfw:commentRss>
    

    <author>nospam@example.com (suntsu)</author>
    <content:encoded>
    &lt;p class=&quot;whiteline&quot;&gt;MySmug went smooth through the submission processs, and now is available at the &lt;strong&gt;&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/www.windowsphone.com/en-US/apps/e89ed9fc-9896-4212-9ac0-049a78a345bc&#039;]);&quot;  href=&quot;http://www.windowsphone.com/en-US/apps/e89ed9fc-9896-4212-9ac0-049a78a345bc&quot;&gt;marketplace&lt;/a&gt;&lt;/strong&gt;.
&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/suntsu.smugmug.com/Public/suntsublog/20913822_GqzmGz#1661094220_tMCTChs-A-LB&#039;]);&quot;  href=&quot;http://suntsu.smugmug.com/Public/suntsublog/20913822_GqzmGz#1661094220_tMCTChs-A-LB&quot; title=&quot;Photo &amp;amp; Video Sharing by SmugMug&quot;&gt;&lt;img src=&quot;http://suntsu.smugmug.com/photos/i-tMCTChs/0/M/i-tMCTChs-M.jpg&quot; title=&quot;Photo &amp;amp; Video Sharing by SmugMug&quot; alt=&quot;Photo &amp;amp; Video Sharing by SmugMug&quot;&gt;&lt;/a&gt;&lt;/p&gt; 
    </content:encoded>

    <pubDate>Fri, 06 Jan 2012 08:15:14 +0100</pubDate>
    <guid isPermaLink="false">http://suntsu.ch/serendipity/index.php?/archives/236-guid.html</guid>
    <category>mysmug</category>

</item>
<item>
    <title>MySmug version 1.0 submitted</title>
    <link>http://suntsu.ch/serendipity/index.php?/archives/235-MySmug-version-1.0-submitted.html</link>
            <category>MySmug</category>
    
    <comments>http://suntsu.ch/serendipity/index.php?/archives/235-MySmug-version-1.0-submitted.html#comments</comments>
    <wfw:comment>http://suntsu.ch/serendipity/wfwcomment.php?cid=235</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://suntsu.ch/serendipity/rss.php?version=2.0&amp;type=comments&amp;cid=235</wfw:commentRss>
    

    <author>nospam@example.com (suntsu)</author>
    <content:encoded>
    &lt;p class=&quot;break&quot;&gt;I just submitted the very first version of MySmug to the windows phone app hub.&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;I just hope it will be accepted... :)&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/suntsu.smugmug.com/Public/stuff/1-MySmug/20799797_MqT9hp#1650993041_gTnH76G-A-LB&#039;]);&quot;  href=&quot;http://suntsu.smugmug.com/Public/stuff/1-MySmug/20799797_MqT9hp#1650993041_gTnH76G-A-LB&quot; title=&quot;Photo &amp;amp; Video Sharing by SmugMug&quot;&gt;&lt;img src=&quot;http://suntsu.smugmug.com/Public/stuff/1-MySmug/i-gTnH76G/0/M/SplashScreenImage-M.jpg&quot; title=&quot;Photo &amp;amp; Video Sharing by SmugMug&quot; alt=&quot;Photo &amp;amp; Video Sharing by SmugMug&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/suntsu.smugmug.com/Public/stuff/1-MySmug/20799797_MqT9hp#1650993108_X9nhQHd-A-LB&#039;]);&quot;  href=&quot;http://suntsu.smugmug.com/Public/stuff/1-MySmug/20799797_MqT9hp#1650993108_X9nhQHd-A-LB&quot; title=&quot;&quot;&gt;&lt;img src=&quot;http://suntsu.smugmug.com/Public/stuff/1-MySmug/i-X9nhQHd/0/M/HomeScreen-M.png&quot; title=&quot;&quot; alt=&quot;&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/suntsu.smugmug.com/Public/stuff/1-MySmug/20799797_MqT9hp#1650993076_Z5dZmWq-A-LB&#039;]);&quot;  href=&quot;http://suntsu.smugmug.com/Public/stuff/1-MySmug/20799797_MqT9hp#1650993076_Z5dZmWq-A-LB&quot; title=&quot;&quot;&gt;&lt;img src=&quot;http://suntsu.smugmug.com/Public/stuff/1-MySmug/i-Z5dZmWq/0/M/Albums-M.png&quot; title=&quot;&quot; alt=&quot;&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/suntsu.smugmug.com/Public/stuff/1-MySmug/20799797_MqT9hp#1650993063_Q5PM6mZ-A-LB&#039;]);&quot;  href=&quot;http://suntsu.smugmug.com/Public/stuff/1-MySmug/20799797_MqT9hp#1650993063_Q5PM6mZ-A-LB&quot; title=&quot;&quot;&gt;&lt;img src=&quot;http://suntsu.smugmug.com/Public/stuff/1-MySmug/i-Q5PM6mZ/0/M/Photo-M.png&quot; title=&quot;&quot; alt=&quot;&quot;&gt;&lt;/a&gt;&lt;/p&gt; 
    </content:encoded>

    <pubDate>Sat, 31 Dec 2011 23:59:00 +0100</pubDate>
    <guid isPermaLink="false">http://suntsu.ch/serendipity/index.php?/archives/235-guid.html</guid>
    <category>mysmug</category>

</item>
<item>
    <title>Authenticate to smugmug with oAuth and c#</title>
    <link>http://suntsu.ch/serendipity/index.php?/archives/234-Authenticate-to-smugmug-with-oAuth-and-c.html</link>
            <category>MySmug</category>
    
    <comments>http://suntsu.ch/serendipity/index.php?/archives/234-Authenticate-to-smugmug-with-oAuth-and-c.html#comments</comments>
    <wfw:comment>http://suntsu.ch/serendipity/wfwcomment.php?cid=234</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://suntsu.ch/serendipity/rss.php?version=2.0&amp;type=comments&amp;cid=234</wfw:commentRss>
    

    <author>nospam@example.com (suntsu)</author>
    <content:encoded>
    &lt;p class=&quot;break&quot;&gt;Some weeks ago, i tried to create a windows phone 7 &lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/www.smugmug.com/&#039;]);&quot;  href=&quot;http://www.smugmug.com/&quot;&gt;smugmug&lt;/a&gt; app(photo browser).&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;I had &lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/www.dgrin.com/showthread.php?t=207148&amp;amp;highlight=oauth&#039;]);&quot;  href=&quot;http://www.dgrin.com/showthread.php?t=207148&amp;highlight=oauth&quot;&gt;some problems&lt;/a&gt; with oAuth at the beginning, &lt;/p&gt;&lt;p class=&quot;whiteline&quot;&gt;First, I tried the g&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/oauth.googlecode.com/svn/code/csharp/OAuthBase.cs&#039;]);&quot;  href=&quot;http://oauth.googlecode.com/svn/code/csharp/OAuthBase.cs&quot;&gt;oogle oAuth implementation in c#&lt;/a&gt; with the result that the first request(AcquireRequestToken) worked, but the second request(AcquireAccessToken) failed with an invalid signature. Then i tried to implement it myself with the same result. 
&lt;/p&gt;&lt;p class=&quot;whiteline&quot;&gt;Even with the &lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/wiki.smugmug.net/display/API/OAuth&#039;]);&quot;  href=&quot;http://wiki.smugmug.net/display/API/OAuth&quot;&gt;smugmug oAuth documentation&lt;/a&gt;, i found it quite hard to get it done. Some parts like the authorize parameters(public/full/read/modify) i had to figure out myself.
&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;After some time, i found an c# oAuth class written for twitter access for &lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/cropperplugins.codeplex.com/&#039;]);&quot;  href=&quot;http://cropperplugins.codeplex.com/&quot;&gt;cropperplugins.codeplex&lt;/a&gt;. With this code, i was at least able to get a proper AccessToken for smugmug. &lt;/p&gt;&lt;p class=&quot;whiteline&quot;&gt;I&#039;ve written a little demo application if someone else has the same problems.
&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;To get this sample working, you only have to set you apiKey and secret. This sample will do:&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;&lt;strong&gt;1. Get a request token and a request token secret&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;2. Authorize the request token&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;3. With the request token secret, acquire a access token&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;4. This access token and access token secret are used for all further authentication, and should not expire until the user revokes them.&lt;/strong&gt;&lt;/p&gt;&lt;pre name=&quot;code&quot; class=&quot;brush: csharp; ruler: false;&quot; &gt;
        private void AuthenticateSmugmug()
        {
            const string apiKey = &quot;YOUR_API_KEY&quot;;//apikey from your smugmug account
            const string secret = &quot;YOUR_SECRET&quot;;//secret from your smugmug account

            Console.WriteLine(&quot;Create new instance of OAuth Manager&quot;);
            Manager manager = new Manager(apiKey, secret);

            Console.WriteLine(&quot;Aquire a request token from smugmug&quot;);
            OAuthResponse requestToken = manager.AcquireRequestToken(&quot;http://api.smugmug.com/services/oauth/getRequestToken.mg&quot;, &quot;GET&quot;);

            string oauthToken = requestToken[&quot;oauth_token&quot;];
            Console.WriteLine(string.Format(&quot;oauthToken: {0}&quot;, oauthToken));
            string oauthTokenSecret = requestToken[&quot;oauth_token_secret&quot;];
            Console.WriteLine(string.Format(&quot;oauthTokenSecret: {0}&quot;, oauthTokenSecret));

            //Opens your default browser and authorize your request token
            //Parameters: Access=[Public|Full], Permissions=[Read|Add|Modify]
            System.Diagnostics.Process.Start(string.Format(&quot;http://api.smugmug.com/services/oauth/authorize.mg?oauth_token={0}&amp;Access=Full&amp;Permissions=Modify&quot;, oauthToken));

            Console.WriteLine(&quot;Please enter you credentials into the browser before continuing&quot;);
            Console.WriteLine(&quot;Press any key to continue...&quot;);
            Console.ReadLine();
            
            OAuthResponse accessToken = manager.AcquireAccessToken(&quot;http://api.smugmug.com/services/oauth/getAccessToken.mg&quot;, &quot;GET&quot;, oauthTokenSecret);

            Console.WriteLine(string.Format(&quot;accessToken: {0}&quot;, accessToken[&quot;oauth_token&quot;]));
            Console.WriteLine(string.Format(&quot;accessTokenSecret: {0}&quot;, accessToken[&quot;oauth_token_secret&quot;]));
            Console.WriteLine(&quot;Press any key to quit the application&quot;);
            Console.ReadLine();
        }
&lt;/pre&gt;&lt;p&gt;
&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;This is the complete source code for the oAuth sample. It&#039;s c# written in Visual Studio 10:&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;To get this sample working, just enter your Api Key and Secret.&lt;/p&gt;&lt;p class=&quot;whiteline&quot;&gt;&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/download/serendipity/uploads/SmugmugOAuthSample.zip&#039;]);&quot;  href=&quot;http://suntsu.ch/serendipity/uploads/SmugmugOAuthSample.zip&quot; title=&quot;SmugmugOAuthSample.zip&quot; target=&quot;_blank&quot;&gt;SmugmugOAuthSample.zip&lt;/a&gt;



&lt;/p&gt; 
    </content:encoded>

    <pubDate>Thu, 29 Dec 2011 10:31:04 +0100</pubDate>
    <guid isPermaLink="false">http://suntsu.ch/serendipity/index.php?/archives/234-guid.html</guid>
    <category>mysmug</category>

</item>
<item>
    <title>Powershell script to upgrade several subversion repository</title>
    <link>http://suntsu.ch/serendipity/index.php?/archives/232-Powershell-script-to-upgrade-several-subversion-repository.html</link>
            <category>SVN</category>
    
    <comments>http://suntsu.ch/serendipity/index.php?/archives/232-Powershell-script-to-upgrade-several-subversion-repository.html#comments</comments>
    <wfw:comment>http://suntsu.ch/serendipity/wfwcomment.php?cid=232</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://suntsu.ch/serendipity/rss.php?version=2.0&amp;type=comments&amp;cid=232</wfw:commentRss>
    

    <author>nospam@example.com (suntsu)</author>
    <content:encoded>
    &lt;p class=&quot;break&quot;&gt;This line of powershell script will upgrade all subversion repositories which are located under the same root folder.&lt;/p&gt;&lt;pre name=&quot;code&quot; class=&quot;brush: vb; ruler: false;&quot; &gt;
dir  | Where-Object { $_.PSIsContainer } | ForEach-Object { svnadmin upgrade $_.FullName  }

.
&lt;/pre&gt; 
    </content:encoded>

    <pubDate>Tue, 04 Oct 2011 13:24:12 +0200</pubDate>
    <guid isPermaLink="false">http://suntsu.ch/serendipity/index.php?/archives/232-guid.html</guid>
    <category>svn</category>

</item>
<item>
    <title>Get the current directory from a c# application</title>
    <link>http://suntsu.ch/serendipity/index.php?/archives/231-Get-the-current-directory-from-a-c-application.html</link>
            <category>.net</category>
    
    <comments>http://suntsu.ch/serendipity/index.php?/archives/231-Get-the-current-directory-from-a-c-application.html#comments</comments>
    <wfw:comment>http://suntsu.ch/serendipity/wfwcomment.php?cid=231</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://suntsu.ch/serendipity/rss.php?version=2.0&amp;type=comments&amp;cid=231</wfw:commentRss>
    

    <author>nospam@example.com (suntsu)</author>
    <content:encoded>
    &lt;p class=&quot;break&quot;&gt;Sometimes i have to read/write files from the root directory of my application.&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;Usually i did this with &lt;strong&gt;Environment.CurrentDirectory&lt;/strong&gt;.&lt;/p&gt;&lt;p class=&quot;whiteline&quot;&gt;Unfortunately, this only works if the application is a standalone application(.exe). In case the application is a windows service or a asp.net website, the path from &lt;strong&gt;Environment.CurrentDirectory&lt;/strong&gt; is wrong. 
&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;There are several ways to get the root directory of an application, but so far i found only one which works in all scenarios. &lt;/p&gt;&lt;p class=&quot;break&quot;&gt;&lt;strong&gt;&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;The only one which always works is:&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;&lt;/strong&gt;&lt;/p&gt;&lt;pre name=&quot;code&quot; class=&quot;brush: csharp; ruler: true;&quot; &gt;
//works...
IO.Path.GetDirectoryName(new System.Uri(System.Reflection.Assembly.GetExecutingAssembly().CodeBase).LocalPath)
&lt;/pre&gt;&lt;p&gt;
&lt;/p&gt;&lt;p class=&quot;whiteline&quot;&gt;Here is a (incomplete) list of ways to get the root path of a c# application:
&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;&lt;strong&gt;1. Windows service&lt;/strong&gt;&lt;/p&gt;&lt;pre name=&quot;code&quot; class=&quot;brush: csharp; ruler: true;&quot; &gt;
Environment.CurrentDirectory:
//C:\Windows\system32
System.IO.Path.GetDirectoryName(new System.Uri(System.Reflection.Assembly.GetExecutingAssembly().CodeBase).LocalPath)

//D:\project\WindowsServiceTest\WindowsServiceTest\bin\Debug
AppDomain.CurrentDomain.BaseDirectory:
//D:\project\WindowsServiceTest\WindowsServiceTest\bin\Debug\
Process.GetCurrentProcess().MainModule.FileName.Substring(0, Process.GetCurrentProcess().MainModule.FileName.LastIndexOf(&quot;\\&quot;)):
//D:\project\WindowsServiceTest\WindowsServiceTest\bin\Debug
&lt;/pre&gt;&lt;p class=&quot;break&quot;&gt;&lt;strong&gt;2. Console application&lt;/strong&gt;&lt;/p&gt;&lt;pre name=&quot;code&quot; class=&quot;brush: csharp; ruler: true;&quot; &gt;
Environment.CurrentDirectory:
//D:\project\ConsoleApplication3\ConsoleApplication3\bin\Debug
System.IO.Path.GetDirectoryName(new System.Uri(System.Reflection.Assembly.GetExecutingAssembly().CodeBase).LocalPath):
//D:\project\ConsoleApplication3\ConsoleApplication3\bin\Debug
AppDomain.CurrentDomain.BaseDirectory:
//D:\project\ConsoleApplication3\ConsoleApplication3\bin\Debug\
Process.GetCurrentProcess().MainModule.FileName.Substring(0, Process.GetCurrentProcess().MainModule.FileName.LastIndexOf(&quot;\\&quot;)):
//D:\project\ConsoleApplication3\ConsoleApplication3\bin\Debug
&lt;/pre&gt;&lt;p class=&quot;break&quot;&gt;&lt;strong&gt;3. asp.net mvc3 website vs2010 integrated webserver (Debug mode)&lt;/strong&gt;&lt;/p&gt;&lt;pre name=&quot;code&quot; class=&quot;brush: csharp; ruler: true;&quot; &gt;
Environment.CurrentDirectory:
//C:\Program Files (x86)\Common Files\Microsoft Shared\DevServer\10.0
System.IO.Path.GetDirectoryName(new System.Uri(System.Reflection.Assembly.GetExecutingAssembly().CodeBase).LocalPath):
//D:\project\MvcApplication1\MvcApplication1\bin
AppDomain.CurrentDomain.BaseDirectory:
//D:\project\MvcApplication1\MvcApplication1\
Process.GetCurrentProcess().MainModule.FileName.Substring(0, Process.GetCurrentProcess().MainModule.FileName.LastIndexOf(&quot;\\&quot;)):
//C:\Program Files (x86)\Common Files\Microsoft Shared\DevServer\10.0
&lt;/pre&gt;&lt;p class=&quot;break&quot;&gt;&lt;strong&gt;4. asp.net mvc3 website IIS (Release mode)&lt;/strong&gt;&lt;/p&gt;&lt;pre name=&quot;code&quot; class=&quot;brush: csharp; ruler: true;&quot; &gt;
Environment.CurrentDirectory: 
//c:\windows\system32\inetsrv 
System.IO.Path.GetDirectoryName(new System.Uri(System.Reflection.Assembly.GetExecutingAssembly().CodeBase).LocalPath): 
//d:\project\MvcApplication1\MvcApplication1\bin 
AppDomain.CurrentDomain.BaseDirectory: 
//d:\project\MvcApplication1\MvcApplication1\ 
Process.GetCurrentProcess().MainModule.FileName.Substring(0, Process.GetCurrentProcess().MainModule.FileName.LastIndexOf(&quot;\\&quot;)): 
//c:\windows\system32\inetsrv 
&lt;/pre&gt; 
    </content:encoded>

    <pubDate>Tue, 06 Sep 2011 13:25:40 +0200</pubDate>
    <guid isPermaLink="false">http://suntsu.ch/serendipity/index.php?/archives/231-guid.html</guid>
    <category>.net</category>
<category>c#</category>
<category>visual studio</category>

</item>
<item>
    <title>Too many kindle devices</title>
    <link>http://suntsu.ch/serendipity/index.php?/archives/227-Too-many-kindle-devices.html</link>
            <category>web stuff</category>
    
    <comments>http://suntsu.ch/serendipity/index.php?/archives/227-Too-many-kindle-devices.html#comments</comments>
    <wfw:comment>http://suntsu.ch/serendipity/wfwcomment.php?cid=227</wfw:comment>

    <slash:comments>2</slash:comments>
    <wfw:commentRss>http://suntsu.ch/serendipity/rss.php?version=2.0&amp;type=comments&amp;cid=227</wfw:commentRss>
    

    <author>nospam@example.com (suntsu)</author>
    <content:encoded>
    &lt;p class=&quot;break&quot;&gt;I was just looking for a good java script book on amazon, and wanted to send me a sample to my kindle.&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;Just then, i saw this... &lt;/p&gt;&lt;p class=&quot;whiteline&quot;&gt;&lt;!-- s9ymdb:290 --&gt;&lt;img class=&quot;serendipity_image_center&quot; width=&quot;800&quot; height=&quot;331&quot;  src=&quot;http://suntsu.ch/serendipity/uploads/too_many_devices.png&quot;  alt=&quot;&quot; /&gt;
&lt;/p&gt;&lt;p class=&quot;whiteline&quot;&gt;I guess this means i own too many kindle devices...
&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;btw. Do you know a really good java script book to start with? If yes, let me know...&lt;/p&gt;&lt;p class=&quot;break&quot;&gt;edit: Proud not to have any ISomething in this list... ^^&lt;/p&gt; 
    </content:encoded>

    <pubDate>Mon, 29 Aug 2011 16:22:28 +0200</pubDate>
    <guid isPermaLink="false">http://suntsu.ch/serendipity/index.php?/archives/227-guid.html</guid>
    
</item>
<item>
    <title>c# and vb.net sample to remove eventhandler with reflection</title>
    <link>http://suntsu.ch/serendipity/index.php?/archives/226-c-and-vb.net-sample-to-remove-eventhandler-with-reflection.html</link>
            <category>.net</category>
    
    <comments>http://suntsu.ch/serendipity/index.php?/archives/226-c-and-vb.net-sample-to-remove-eventhandler-with-reflection.html#comments</comments>
    <wfw:comment>http://suntsu.ch/serendipity/wfwcomment.php?cid=226</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://suntsu.ch/serendipity/rss.php?version=2.0&amp;type=comments&amp;cid=226</wfw:commentRss>
    

    <author>nospam@example.com (suntsu)</author>
    <content:encoded>
    &lt;p class=&quot;whiteline&quot;&gt;This is a sample how to remove a (non-public) eventhandler in c# and vb.net.


&lt;/p&gt;&lt;pre name=&quot;code&quot; class=&quot;brush: csharp; ruler: true;&quot; &gt;
//c# sample
using System;
using System.Reflection;
using System.Windows.Forms;

namespace WindowsFormsApplication5
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();

            Form2 form2 = new Form2();
            //remove eventhandler with reflection
            EventInfo ei = form2.GetType().GetEvent(&quot;Load&quot;);
            Delegate d = Delegate.CreateDelegate(typeof(EventHandler), form2, &quot;Form2_Load&quot;, false);
            ei.RemoveEventHandler(form2, d);

            //messagebox is not shown, since the eventhandler for load was removed
            form2.ShowDialog();
        }
    }
}

using System;
using System.Windows.Forms;
namespace WindowsFormsApplication5
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
            this.Load += new EventHandler(Form2_Load);
        }

        void Form2_Load(object sender, EventArgs e)
        {
            MessageBox.Show(&quot;Hello World&quot;);
        }
    }
}
&lt;/pre&gt;&lt;p&gt;
&lt;/p&gt;&lt;pre name=&quot;code&quot; class=&quot;vbnet&quot;&gt;
&#039;vb.net sample
Imports System.Reflection

Public Class Form1
    Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load

        Dim myForm As New Form2
        Dim type As Type = GetType(Form2)

        &#039;remove eventhandler with reflection
        Dim eventInfo As EventInfo
        eventInfo = type.GetEvent(&quot;Load&quot;)
        Dim loadHandler As System.Delegate
        loadHandler = System.Delegate.CreateDelegate(GetType(EventHandler), myForm, &quot;Form2_Load&quot;, False)
        eventInfo.RemoveEventHandler(myForm, loadHandler)

        &#039;messagebox is not shown, since the eventhandler for load was removed
        myForm.ShowDialog()

    End Sub
End Class

Public Class Form2
    Private Sub Form2_Load(sender As Object, e As System.EventArgs) Handles Me.Load
        MessageBox.Show(&quot;hello world&quot;)
    End Sub
End Class


&lt;/pre&gt;&lt;p class=&quot;break&quot;&gt;&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/download/serendipity/uploads/RemoveEventHanlderWithReflection.zip&#039;]);&quot;  href=&quot;http://suntsu.ch/serendipity/uploads/RemoveEventHanlderWithReflection.zip&quot; title=&quot;RemoveEventHanlderWithReflection.zip&quot; target=&quot;_blank&quot;&gt;RemoveEventHanlderWithReflection.zip&lt;/a&gt;&lt;/p&gt; 
    </content:encoded>

    <pubDate>Tue, 10 May 2011 08:15:54 +0200</pubDate>
    <guid isPermaLink="false">http://suntsu.ch/serendipity/index.php?/archives/226-guid.html</guid>
    
</item>

</channel>
</rss>