<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" gd:etag="W/&quot;CUAFSHo7eip7ImA9WxBWE00.&quot;"><id>tag:blogger.com,1999:blog-2165432947546540566</id><updated>2010-02-04T18:15:19.402+01:00</updated><title>Håvard Sørbø</title><subtitle type="html" /><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://blog.hsorbo.no/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://blog.hsorbo.no/" /><link rel="hub" href="http://pubsubhubbub.appspot.com/" /><author><name>Håvard Sørbø</name><uri>http://www.blogger.com/profile/13371166545791586367</uri><email>noreply@blogger.com</email></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/hsorbo" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="hsorbo" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><entry gd:etag="W/&quot;CUAFSHo7cCp7ImA9WxBWE00.&quot;"><id>tag:blogger.com,1999:blog-2165432947546540566.post-5194081538952186386</id><published>2010-02-04T17:27:00.006+01:00</published><updated>2010-02-04T18:15:19.408+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-04T18:15:19.408+01:00</app:edited><title>I want union of types in c#</title><content type="html">I would really like something that defines a field or argument as a union of types in c#. I'm not sure about the best syntax but something like this would be nice: &lt;div&gt;BindCollection(&amp;lt;ICollection&amp;lt;T&amp;gt; , INotifyCollectionChanged&amp;gt; collection);&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Currently I'm achieving some of this functionality using naked type constraints. Like this:&lt;/div&gt;&lt;div&gt;BindCollection&amp;lt;U&amp;gt;(U collection)  where U : ICollection&amp;lt;T&amp;gt; , INotifyCollectionChanged&lt;/div&gt;&lt;div&gt;This has some limitations, like you cant use it in a constructor. The sweet thing about this is you don't have to do casting, you get some checking from your compiler and you'll get code-completion for the union of types&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2165432947546540566-5194081538952186386?l=blog.hsorbo.no' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.hsorbo.no/feeds/5194081538952186386/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.hsorbo.no/2010/02/i-want-union-of-types-in-c.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2165432947546540566/posts/default/5194081538952186386?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2165432947546540566/posts/default/5194081538952186386?v=2" /><link rel="alternate" type="text/html" href="http://blog.hsorbo.no/2010/02/i-want-union-of-types-in-c.html" title="I want union of types in c#" /><author><name>Håvard Sørbø</name><uri>http://www.blogger.com/profile/13371166545791586367</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="03311692441433388005" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></entry><entry gd:etag="W/&quot;DUQAQXw8fCp7ImA9WxBWEUs.&quot;"><id>tag:blogger.com,1999:blog-2165432947546540566.post-308565421191243544</id><published>2010-02-02T13:24:00.006+01:00</published><updated>2010-02-03T04:22:20.274+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-03T04:22:20.274+01:00</app:edited><title>Flah on iPad</title><content type="html">I love the fact that the iPad doesn't have support for flash! I believe removing flash support is a big win for an open standard-based web and a rather small loss for consumers. Personally I've never missed flash on my iphone, although browsing the web is kept at a minimum. Flash is closed source and proprietary and adobe should not be able to dictate which platforms are suitable for browsing the web and not (linux-x86-64, linux-ppc, mac-ppc has no recent releases). Apple, by having a substantial deployment, can change the consensus around RIA to focus on standard-based solutions.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;For the user its mostly a &lt;b&gt;loss&lt;/b&gt; except for battery-time which would probably be greatly reduced if flash was available. Flash is such a battery hog that even firefox in maemo has &lt;a href="http://www.fonearena.com/blog/2010/01/28/firefox-rc3-for-maemo-released-disables-flash-2.html"&gt;disabled&lt;/a&gt; it. &lt;/div&gt;&lt;div&gt;If the loss is to big for you, you should look to another system that fits your needs or sse if there is an application that allows you to circumvent this.&lt;/div&gt;&lt;div&gt;Apple has gone to some extent to fix the lack of flash by having an iphone-app for youtube, the no1 flash site. (if you don't support youtube, you are fucked). Youtube also enabled html5-support at &lt;a href="http://youtube.com/html5"&gt;youtube.com/html5&lt;/a&gt;. Limitations of html5 on youtube is lack of fullscreen and only H.264 and &lt;a href="http://weblogs.mozillazine.org/roc/archives/2010/01/video_freedom_a.html"&gt;not theora&lt;/a&gt; (which is license-free) video codec.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Being in the same shoes as Apple I would have done the same. Imagine you have source-code for the entire stack of iPhone, iPad, iPod, except one known trouble-maker and doing support for 40.000.000 customers. Imagine if there is an exploit and you can't fix it yourselves, you'll be owned by Adobe.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Comments are welcome!&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2165432947546540566-308565421191243544?l=blog.hsorbo.no' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.hsorbo.no/feeds/308565421191243544/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.hsorbo.no/2010/02/flah-on-ipad.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2165432947546540566/posts/default/308565421191243544?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2165432947546540566/posts/default/308565421191243544?v=2" /><link rel="alternate" type="text/html" href="http://blog.hsorbo.no/2010/02/flah-on-ipad.html" title="Flah on iPad" /><author><name>Håvard Sørbø</name><uri>http://www.blogger.com/profile/13371166545791586367</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="03311692441433388005" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></entry><entry gd:etag="W/&quot;DEEMRXoyeSp7ImA9WxBXGUQ.&quot;"><id>tag:blogger.com,1999:blog-2165432947546540566.post-8473566963982860504</id><published>2010-02-01T04:34:00.001+01:00</published><updated>2010-02-01T04:58:04.491+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-01T04:58:04.491+01:00</app:edited><title>Moved blog</title><content type="html">I ended up upgrading my blog-engines more frequently than posting blogs. I'm lazy so I switched to blogger.com. Lets se how this works out :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2165432947546540566-8473566963982860504?l=blog.hsorbo.no' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://blog.hsorbo.no/feeds/8473566963982860504/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://blog.hsorbo.no/2010/02/moved-blog.html#comment-form" title="4 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2165432947546540566/posts/default/8473566963982860504?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2165432947546540566/posts/default/8473566963982860504?v=2" /><link rel="alternate" type="text/html" href="http://blog.hsorbo.no/2010/02/moved-blog.html" title="Moved blog" /><author><name>Håvard Sørbø</name><uri>http://www.blogger.com/profile/13371166545791586367</uri><email>noreply@blogger.com</email><gd:extendedProperty name="OpenSocialUserId" value="03311692441433388005" /></author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">4</thr:total></entry></feed>
