<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Der Blog von Benny Neugebauer &#187; Programmierung</title>
	<atom:link href="http://www.bennyn.de/programmierung/feed" rel="self" type="application/rss+xml" />
	<link>http://www.bennyn.de</link>
	<description>Alles über die Informatik &#38; Co.</description>
	<lastBuildDate>Fri, 18 May 2012 10:09:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>App direkt auf dem Windows Phone deployen</title>
		<link>http://www.bennyn.de/programmierung/windows-phone/app-direkt-auf-dem-windows-phone-deployen.html</link>
		<comments>http://www.bennyn.de/programmierung/windows-phone/app-direkt-auf-dem-windows-phone-deployen.html#comments</comments>
		<pubDate>Fri, 18 May 2012 10:09:17 +0000</pubDate>
		<dc:creator>bennyn</dc:creator>
				<category><![CDATA[Windows Phone]]></category>
		<category><![CDATA[App]]></category>
		<category><![CDATA[deployen]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://www.bennyn.de/?p=3722</guid>
		<description><![CDATA[Wer als Entwickler seine Windows Phone Apps direkt auf dem Gerät testen möchte, der muss vorher folgende Schritte erledigen: Als Student bei Microsoft DreamSpark registrieren um kostenlosen Apps zu publishen Am App Hub registrieren Windows Phone Developer Registration auf dem Computer starten (wird zusammen mit dem Windows Phone SDK 7.1 installiert) Das Endergebnis sollte dann [...]]]></description>
			<content:encoded><![CDATA[<p>Wer als Entwickler seine Windows Phone Apps direkt auf dem Gerät testen möchte, der muss vorher folgende Schritte erledigen:</p>
<ol>
<li>Als Student bei <a href="https://www.dreamspark.com/Account/CreateAccount.aspx">Microsoft DreamSpark registrieren</a> um kostenlosen Apps zu publishen</li>
<li>Am <a href="https://users.create.msdn.com/Register">App Hub registrieren</a></li>
<li>Windows Phone Developer Registration auf dem Computer starten (wird zusammen mit dem Windows Phone SDK 7.1 installiert)</li>
</ol>
<p>Das Endergebnis sollte dann so ausssehen:<br />
<a href="http://www.bennyn.de/wp-content/uploads/app_hub_registration.png"><img src="http://www.bennyn.de/wp-content/uploads/app_hub_registration.png" alt="" title="app_hub_registration" width="500" height="450" class="alignnone size-full wp-image-3724" /></a></p>
<p>Zum Deployen der App muss dann in Visual Studio nur noch Zune gestartet -und &#8220;Windows Phone Device&#8221; anstatt des Emulators ausgewählt werden. Viel Spaß beim deployen!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bennyn.de/programmierung/windows-phone/app-direkt-auf-dem-windows-phone-deployen.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Check for HTML5 features with JavaScript</title>
		<link>http://www.bennyn.de/programmierung/javascript/check-for-html5-features-with-javascript.html</link>
		<comments>http://www.bennyn.de/programmierung/javascript/check-for-html5-features-with-javascript.html#comments</comments>
		<pubDate>Thu, 17 May 2012 09:58:49 +0000</pubDate>
		<dc:creator>bennyn</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[check]]></category>
		<category><![CDATA[checking]]></category>
		<category><![CDATA[features]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[Modernizr]]></category>
		<category><![CDATA[WebSockets]]></category>

		<guid isPermaLink="false">http://www.bennyn.de/?p=3671</guid>
		<description><![CDATA[There is no magic behind checking a web-browsers support for a specific HTML5 feature. If you want to check if a browser supports the latest HTML5 WebSocket API then you just have to take care if there is an object called &#8220;WebSocket&#8221; available via the DOM: &#60;script&#62; if&#40;'WebSocket' in window&#41;&#123; alert&#40;'Hurray! Your browser supports HTML5 [...]]]></description>
			<content:encoded><![CDATA[<p>There is no magic behind checking a web-browsers support for a specific HTML5 feature. If you want to check if a browser supports the latest <a href="http://dev.w3.org/html5/websockets/">HTML5 WebSocket API</a> then you just have to take care if there is an object called &#8220;WebSocket&#8221; available via the DOM:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script<span style="color: #339933;">&gt;</span>
  <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'WebSocket'</span> <span style="color: #000066; font-weight: bold;">in</span> window<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Hurray! Your browser supports HTML5 WebSockets.'</span><span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#125;</span><span style="color: #000066; font-weight: bold;">else</span><span style="color: #009900;">&#123;</span>
    <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Sorry, but you are out of date!'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<p>Nevertheless, there are still people who want to include a fancy library for such an inspection. You can do the same with <a href="http://modernizr.com/">Modernizr</a>:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;http://www.modernizr.com/downloads/modernizr-latest.js&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>script<span style="color: #339933;">&gt;</span>
  <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>Modernizr.<span style="color: #660066;">websockets</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Hurray! Your browser supports HTML5 WebSockets.'</span><span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#125;</span><span style="color: #000066; font-weight: bold;">else</span><span style="color: #009900;">&#123;</span>
    <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Sorry, but you are out of date!'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.bennyn.de/programmierung/javascript/check-for-html5-features-with-javascript.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML5 WebSocket-Server mit Java und Client mit JavaScript</title>
		<link>http://www.bennyn.de/programmierung/java/html5-websocket-server-mit-java-und-client-mit-javascript.html</link>
		<comments>http://www.bennyn.de/programmierung/java/html5-websocket-server-mit-java-und-client-mit-javascript.html#comments</comments>
		<pubDate>Wed, 16 May 2012 10:57:45 +0000</pubDate>
		<dc:creator>bennyn</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Client]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[JBoss]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[Netty]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[webbit]]></category>
		<category><![CDATA[WebSockets]]></category>

		<guid isPermaLink="false">http://www.bennyn.de/?p=3686</guid>
		<description><![CDATA[Zur Demonstration von HTML5-Websockets habe ich mit webbit einen einfachen WebSocket-Server geschrieben, der Nachrichten entgegen nimmt und diese Nachrichten wieder an den jeweiligen angemeldeten Client zurück schickt. Ein solches Beispiel nennt man auch Echo-Server. Server Server.java 1 2 3 4 5 6 7 8 9 10 11 12 13 import org.webbitserver.WebServer; import org.webbitserver.WebServers; import org.webbitserver.handler.StaticFileHandler; [...]]]></description>
			<content:encoded><![CDATA[<p>Zur Demonstration von HTML5-Websockets habe ich mit <a href="http://webbitserver.org/">webbit</a> einen einfachen WebSocket-Server geschrieben, der Nachrichten entgegen nimmt und diese Nachrichten wieder an den jeweiligen angemeldeten Client zurück schickt. Ein solches Beispiel nennt man auch Echo-Server.<br />
<span id="more-3686"></span></p>
<h2>Server</h2>
<h3>Server.java</h3>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
</pre></td><td class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">org.webbitserver.WebServer</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">org.webbitserver.WebServers</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">org.webbitserver.handler.StaticFileHandler</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Server <span style="color: #009900;">&#123;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> main<span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> args<span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">throws</span> <span style="color: #003399;">Exception</span> <span style="color: #009900;">&#123;</span>
    WebServer webServer <span style="color: #339933;">=</span> WebServers.<span style="color: #006633;">createWebServer</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">8080</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    webServer.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> StaticFileHandler<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/static-files&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    webServer.<span style="color: #006633;">add</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/websocket-echo&quot;</span>, <span style="color: #000000; font-weight: bold;">new</span> WebSocketSampleHandler<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    webServer.<span style="color: #006633;">start</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<h3>WebSocketSampleHandler.java</h3>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
</pre></td><td class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">org.webbitserver.BaseWebSocketHandler</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">org.webbitserver.WebSocketConnection</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> WebSocketSampleHandler <span style="color: #000000; font-weight: bold;">extends</span> BaseWebSocketHandler <span style="color: #009900;">&#123;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">int</span> connections <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
&nbsp;
  @Override
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> onOpen<span style="color: #009900;">&#40;</span>WebSocketConnection connection<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">connections</span><span style="color: #339933;">++;</span>
    connection.<span style="color: #006633;">send</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;This is the webserver saying Hello! :)&lt;br/&gt;&quot;</span>
            <span style="color: #339933;">+</span> <span style="color: #0000ff;">&quot;Total No. of subscribers: &quot;</span> <span style="color: #339933;">+</span> <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">connections</span> <span style="color: #339933;">+</span> <span style="color: #0000ff;">&quot;.&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  @Override
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> onClose<span style="color: #009900;">&#40;</span>WebSocketConnection connection<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">connections</span><span style="color: #339933;">--;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  @Override
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> onMessage<span style="color: #009900;">&#40;</span>WebSocketConnection connection, <span style="color: #003399;">String</span> message<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    connection.<span style="color: #006633;">send</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;The server has received the following message:&lt;br/&gt;&quot;</span>
            <span style="color: #339933;">+</span> message<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<h3>Dependencies from pom.xml</h3>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;dependency<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;groupId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>org.webbitserver<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/groupId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;artifactId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>webbit<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/artifactId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;version<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>0.4.6<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/version<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;type<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>jar<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/type<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/dependency<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;dependency<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;groupId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>org.jboss.netty<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/groupId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;artifactId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>netty<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/artifactId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;version<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>3.2.7.Final<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/version<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;type<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>jar<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/type<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/dependency<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<h2>Client</h2>
<h3>connect.html</h3>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;!</span>DOCTYPE html<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>html<span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;</span>head<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>meta charset<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;utf-8&quot;</span> <span style="color: #339933;">/&gt;</span>
    <span style="color: #339933;">&lt;</span>title<span style="color: #339933;">&gt;</span>HTML5 WebSocket<span style="color: #339933;">-</span>Client<span style="color: #339933;">&lt;/</span>title<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>script<span style="color: #339933;">&gt;</span>
      <span style="color: #003366; font-weight: bold;">var</span> socket<span style="color: #339933;">;</span>
&nbsp;
      <span style="color: #003366; font-weight: bold;">function</span> sendMessage<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        <span style="color: #003366; font-weight: bold;">var</span> message <span style="color: #339933;">=</span> document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'userInput'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">value</span><span style="color: #339933;">;</span>
        socket.<span style="color: #660066;">send</span><span style="color: #009900;">&#40;</span>message<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span>
&nbsp;
      <span style="color: #003366; font-weight: bold;">function</span> showMessage<span style="color: #009900;">&#40;</span>text<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'message'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">innerHTML</span> <span style="color: #339933;">=</span> text<span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span>
&nbsp;
      <span style="color: #003366; font-weight: bold;">function</span> subscribeToWebSocket<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'WebSocket'</span> <span style="color: #000066; font-weight: bold;">in</span> window<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
          socket <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> WebSocket<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'ws://localhost:8080/websocket-echo'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
          socket.<span style="color: #660066;">onopen</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
            showMessage<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Connected to WebSocket.'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
          <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
          socket.<span style="color: #660066;">onmessage</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>msg<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
            showMessage<span style="color: #009900;">&#40;</span>msg.<span style="color: #660066;">data</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
          <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
          socket.<span style="color: #000066;">onerror</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>msg<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
            showMessage<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Sorry but there was an error.'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
          <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
          socket.<span style="color: #660066;">onclose</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
            showMessage<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Server offline.'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
          <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span><span style="color: #000066; font-weight: bold;">else</span><span style="color: #009900;">&#123;</span>
          showMessage<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Your browser does not support HTML5 WebSockets.'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
      <span style="color: #009900;">&#125;</span>
    <span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;/</span>head<span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;</span>body <span style="color: #000066;">onload</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;javascript:subscribeToWebSocket()&quot;</span><span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>input id<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;userInput&quot;</span> type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text&quot;</span><span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>button onclick<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;javascript:sendMessage()&quot;</span><span style="color: #339933;">&gt;</span>Chat<span style="color: #339933;">&lt;/</span>button<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;message&quot;</span><span style="color: #339933;">&gt;&lt;/</span>div<span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;/</span>body<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>html<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>Das Beispiel funktioniert mit allen HTML5 WebSocket-kompatiblen Browser und wurde erfolgreich getestet mit Firefox 12.0 und Google Chrome 20.0.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bennyn.de/programmierung/java/html5-websocket-server-mit-java-und-client-mit-javascript.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vergleich von Tweening und Easing in KineticJS &amp; CreateJS</title>
		<link>http://www.bennyn.de/programmierung/javascript/vergleich-von-tweening-und-easing-in-kineticjs-createjs.html</link>
		<comments>http://www.bennyn.de/programmierung/javascript/vergleich-von-tweening-und-easing-in-kineticjs-createjs.html#comments</comments>
		<pubDate>Tue, 15 May 2012 13:05:40 +0000</pubDate>
		<dc:creator>bennyn</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[EaselJS]]></category>
		<category><![CDATA[Easing]]></category>
		<category><![CDATA[KineticJS]]></category>
		<category><![CDATA[Tweening]]></category>
		<category><![CDATA[TweenJS]]></category>

		<guid isPermaLink="false">http://www.bennyn.de/?p=3675</guid>
		<description><![CDATA[Die folgenden zwei Beispiele zeigen, wie das Tweening und Easing mit KineticJS und mit den CreateJS-Bestandteilen EaselJS und TweenJS funktioniert. Das Beispiel zeigt ein HTML5-Logo in der linken oberen Canvas-Ecke und transformiert dieses Logo beim Anklicken in Richtung Mitte. CreateJS 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 [...]]]></description>
			<content:encoded><![CDATA[<p>Die folgenden zwei Beispiele zeigen, wie das Tweening und Easing mit <a href="http://www.kineticjs.com/">KineticJS</a> und mit den <a href="http://createjs.org/">CreateJS</a>-Bestandteilen EaselJS und TweenJS funktioniert. Das Beispiel zeigt ein HTML5-Logo in der linken oberen Canvas-Ecke und transformiert dieses Logo beim Anklicken in Richtung Mitte.<br />
<span id="more-3675"></span></p>
<h2>CreateJS</h2>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;!</span>DOCTYPE html<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>html<span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;</span>head<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>meta charset<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;utf-8&quot;</span> <span style="color: #339933;">/&gt;</span>
    <span style="color: #339933;">&lt;</span>title<span style="color: #339933;">&gt;</span>CreateJS<span style="color: #339933;">:</span> EaselJS <span style="color: #339933;">&amp;</span> TweenJS<span style="color: #339933;">&lt;/</span>title<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>style type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/css&quot;</span><span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">*</span> <span style="color: #009900;">&#123;</span> margin<span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> padding<span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> border<span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
    <span style="color: #339933;">&lt;/</span>style<span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;/</span>head<span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;</span>body<span style="color: #339933;">&gt;</span>  
    <span style="color: #339933;">&lt;</span>canvas id<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;container&quot;</span> width<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;800&quot;</span> height<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;600&quot;</span><span style="color: #339933;">&gt;&lt;/</span>canvas<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>script src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;http://code.createjs.com/easeljs-0.4.2.min.js&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>script src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;http://code.createjs.com/tweenjs-0.2.0.min.js&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>script<span style="color: #339933;">&gt;</span>
      <span style="color: #006600; font-style: italic;">// Set-up stage</span>
      <span style="color: #003366; font-weight: bold;">var</span> container <span style="color: #339933;">=</span> document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;container&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #003366; font-weight: bold;">var</span> stage <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Stage<span style="color: #009900;">&#40;</span>container<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      stage.<span style="color: #660066;">mouseEventsEnabled</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">;</span>
      <span style="color: #006600; font-style: italic;">// Set-up layer</span>
      <span style="color: #003366; font-weight: bold;">var</span> layer <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Container<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #006600; font-style: italic;">// Set-up image</span>
      <span style="color: #003366; font-weight: bold;">var</span> image <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Image<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      image.<span style="color: #660066;">src</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;./images/html5-logo.png&quot;</span><span style="color: #339933;">;</span>
      <span style="color: #006600; font-style: italic;">// Append image to object</span>
      <span style="color: #003366; font-weight: bold;">var</span> object <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Bitmap<span style="color: #009900;">&#40;</span>image<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      object.<span style="color: #660066;">x</span> <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span>
      object.<span style="color: #660066;">y</span> <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span>
      <span style="color: #006600; font-style: italic;">// Recognize click on object</span>
      object.<span style="color: #660066;">onPress</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>event<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        <span style="color: #006600; font-style: italic;">// Tweening &amp; Easing</span>
        Tween.<span style="color: #660066;">get</span><span style="color: #009900;">&#40;</span>object<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">to</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
          x<span style="color: #339933;">:</span> <span style="color: #CC0000;">222</span><span style="color: #339933;">,</span>
          y<span style="color: #339933;">:</span> <span style="color: #CC0000;">333</span>
        <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">1000</span><span style="color: #339933;">,</span>Ease.<span style="color: #660066;">bounceInOut</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
      <span style="color: #006600; font-style: italic;">// Add object to layer</span>
      layer.<span style="color: #660066;">addChild</span><span style="color: #009900;">&#40;</span>object<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #006600; font-style: italic;">// Add layer to stage</span>
      stage.<span style="color: #660066;">addChild</span><span style="color: #009900;">&#40;</span>layer<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #006600; font-style: italic;">// Render</span>
      Ticker.<span style="color: #660066;">setFPS</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">20</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      Ticker.<span style="color: #660066;">addListener</span><span style="color: #009900;">&#40;</span>stage<span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;/</span>body<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>html<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<h2>KineticJS</h2>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;!</span>DOCTYPE html<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>html<span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;</span>head<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>meta charset<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;utf-8&quot;</span> <span style="color: #339933;">/&gt;</span>
    <span style="color: #339933;">&lt;</span>title<span style="color: #339933;">&gt;</span>KineticJS<span style="color: #339933;">&lt;/</span>title<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>style type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/css&quot;</span><span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">*</span> <span style="color: #009900;">&#123;</span> margin<span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> padding<span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> border<span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
    <span style="color: #339933;">&lt;/</span>style<span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;/</span>head<span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;</span>body<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;container&quot;</span><span style="color: #339933;">&gt;&lt;/</span>div<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>script src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;http://www.html5canvastutorials.com/libraries/kinetic-v3.9.4.js&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>script<span style="color: #339933;">&gt;</span>
      <span style="color: #006600; font-style: italic;">// Set-up stage</span>
      <span style="color: #003366; font-weight: bold;">var</span> stage <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Kinetic.<span style="color: #660066;">Stage</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
        container<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;container&quot;</span><span style="color: #339933;">,</span>
        width<span style="color: #339933;">:</span> <span style="color: #CC0000;">800</span><span style="color: #339933;">,</span>
        height<span style="color: #339933;">:</span> <span style="color: #CC0000;">600</span>
      <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #006600; font-style: italic;">// Set-up layer</span>
      <span style="color: #003366; font-weight: bold;">var</span> layer <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Kinetic.<span style="color: #660066;">Layer</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #006600; font-style: italic;">// Set-up image</span>
      <span style="color: #003366; font-weight: bold;">var</span> image <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Image<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      image.<span style="color: #000066;">onload</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        <span style="color: #006600; font-style: italic;">// Append image to object</span>
        <span style="color: #003366; font-weight: bold;">var</span> object <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Kinetic.<span style="color: #660066;">Image</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
          x<span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">,</span>
          y<span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">,</span>
          image<span style="color: #339933;">:</span> <span style="color: #000066; font-weight: bold;">this</span><span style="color: #339933;">,</span>
          detectionType<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;pixel&quot;</span>
        <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #006600; font-style: italic;">// Recognize click on object</span>
        object.<span style="color: #660066;">on</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;click touchend&quot;</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
          <span style="color: #006600; font-style: italic;">// Tweening &amp; Easing</span>
          object.<span style="color: #660066;">transitionTo</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
            x<span style="color: #339933;">:</span> <span style="color: #CC0000;">222</span><span style="color: #339933;">,</span>
            y<span style="color: #339933;">:</span> <span style="color: #CC0000;">333</span><span style="color: #339933;">,</span>
            duration<span style="color: #339933;">:</span> <span style="color: #CC0000;">1</span><span style="color: #339933;">,</span>
            easing<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;ease-in-out&quot;</span>
          <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #006600; font-style: italic;">// Add object to layer</span>
        layer.<span style="color: #660066;">add</span><span style="color: #009900;">&#40;</span>object<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        layer.<span style="color: #660066;">draw</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        object.<span style="color: #660066;">saveData</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
      image.<span style="color: #660066;">src</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;./images/html5-logo.png&quot;</span><span style="color: #339933;">;</span>
      <span style="color: #006600; font-style: italic;">// Add layer to stage and render</span>
      stage.<span style="color: #660066;">add</span><span style="color: #009900;">&#40;</span>layer<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;/</span>body<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>html<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>I have chosen KineticJS because the <code>"click touchend"</code> still works if you use it in connection with this code (to prevent iOS bumping and scrolling on mobile devices):</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script<span style="color: #339933;">&gt;</span>
  document.<span style="color: #660066;">ontouchstart</span> <span style="color: #339933;">=</span> document.<span style="color: #660066;">ontouchmove</span> <span style="color: #339933;">=</span> document.<span style="color: #660066;">ontouchend</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>event<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    event.<span style="color: #660066;">preventDefault</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<p>The <code>object.onPress</code> function of EaselJS will not work with the code above.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bennyn.de/programmierung/javascript/vergleich-von-tweening-und-easing-in-kineticjs-createjs.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows Phone Entwicklungsumgebung aufsetzen</title>
		<link>http://www.bennyn.de/programmierung/windows-phone/windows-phone-entwicklungsumgebung-aufsetzen.html</link>
		<comments>http://www.bennyn.de/programmierung/windows-phone/windows-phone-entwicklungsumgebung-aufsetzen.html#comments</comments>
		<pubDate>Mon, 14 May 2012 12:39:33 +0000</pubDate>
		<dc:creator>bennyn</dc:creator>
				<category><![CDATA[Windows Phone]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[XNA]]></category>
		<category><![CDATA[Zune]]></category>

		<guid isPermaLink="false">http://www.bennyn.de/?p=3700</guid>
		<description><![CDATA[Wer für Windows Phone entwickeln möchte, braucht so einige Tools. Damit das Setup auch ordentlich funktioniert, sollten die jeweiligen Tools in einer bestimmten Reihenfolge installiert werden, welche wie folgt aussieht: Microsoft Visual Studio 2010 Express ALL-IN-ONE ISO Microsoft Visual Studio 2010 Service Pack 1 Games for Windows Marketplace Client Microsoft XNA Game Studio 4.0 Refresh [...]]]></description>
			<content:encoded><![CDATA[<p>Wer für <strong>Windows Phone</strong> entwickeln möchte, braucht so einige Tools. Damit das Setup auch ordentlich funktioniert, sollten die jeweiligen Tools in einer bestimmten Reihenfolge installiert werden, welche wie folgt aussieht:</p>
<ol>
<li><a href="http://www.microsoft.com/visualstudio/en-us/products/2010-editions/express-iso">Microsoft Visual Studio 2010 Express ALL-IN-ONE ISO</a></li>
<li><a href="http://www.microsoft.com/en-us/download/details.aspx?id=23691">Microsoft Visual Studio 2010 Service Pack 1</a></li>
<li><a href="http://go.microsoft.com/fwlink/?LinkID=201134">Games for Windows Marketplace Client</a>
<li><a href="http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&#038;id=27599">Microsoft XNA Game Studio 4.0 Refresh</a></li>
<li><a href="http://www.microsoft.com/en-us/download/details.aspx?id=27570">Windows Phone SDK 7.1</a></li>
<li><a href="http://www.zune.net/en-WW/">Microsoft Zune Software</a></li>
</ol>
<p>Das <strong>Microsoft XNA Game Studio</strong> muss installiert werden, damit beim Kompilieren nicht der Fehler: &#8220;The target “GetCopyToOutputDirectoryContentProjectItems” does not exist in the project.&#8221; auftritt:</p>
<p><a href="http://www.bennyn.de/wp-content/uploads/GetCopyToOutputDirectoryContentProjectItems.png"><img src="http://www.bennyn.de/wp-content/uploads/GetCopyToOutputDirectoryContentProjectItems-300x159.png" alt="" title="GetCopyToOutputDirectoryContentProjectItems" width="300" height="159" class="alignnone size-medium wp-image-3709" /></a></p>
<p>Die Microsoft Zune Software ist nötig, um die Windows Phone App auf einem angeschlossenem Smartphone zu testen.</p>
<p>Hinweis: Alle Links leiten zu den englischen Downloadversionen weiter, da dort die Menüs sehr gut verständliche Namen haben.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bennyn.de/programmierung/windows-phone/windows-phone-entwicklungsumgebung-aufsetzen.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

