<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.townx.org" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>townx - Running the Tizen SDK Simulator on non-Ubuntu Linux - Comments</title>
 <link>http://www.townx.org/blog/elliot/running-tizen-sdk-simulator-non-ubuntu-linux</link>
 <description>Comments for &quot;Running the Tizen SDK Simulator on non-Ubuntu Linux&quot;</description>
 <language>en</language>
<item>
 <title>Your knowledge of this</title>
 <link>http://www.townx.org/blog/elliot/running-tizen-sdk-simulator-non-ubuntu-linux#comment-46494</link>
 <description>&lt;p&gt;Your knowledge of this subject comes through clearly in this article. I love to read this kind of articles, I hope you will update it. Thank you for sharing it with me. &lt;a href=&quot;http://www.balenciagasneakers.org/&quot;&gt;www.balenciagasneakers.org/&lt;/a&gt;&lt;/p&gt;</description>
 <pubDate>Sat, 18 May 2013 07:28:05 -0500</pubDate>
 <dc:creator>Guest</dc:creator>
 <guid isPermaLink="false">comment 46494 at http://www.townx.org</guid>
</item>
<item>
 <title>I haven&#039;t added RSpec as a</title>
 <link>http://www.townx.org/blog/elliot/running-tizen-sdk-simulator-non-ubuntu-linux#comment-46467</link>
 <description>&lt;p&gt;I haven&#039;t added RSpec as a gem dependency (you can ignore the tests if you like), but for reference I developed the tests using RSpec 0.5.12). &lt;a href=&quot;http://www.californiadrivereducation.us&quot;&gt;California Drivers Ed Online&lt;/a&gt;&lt;/p&gt;</description>
 <pubDate>Fri, 17 May 2013 11:14:52 -0500</pubDate>
 <dc:creator>Guest</dc:creator>
 <guid isPermaLink="false">comment 46467 at http://www.townx.org</guid>
</item>
<item>
 <title>Backdrop Outlet’s durable</title>
 <link>http://www.townx.org/blog/elliot/running-tizen-sdk-simulator-non-ubuntu-linux#comment-46192</link>
 <description>&lt;p&gt;Backdrop Outlet’s durable Titanium Cloth backdrops are made from a wrinkle-free, fleece-like fabric that provides vivid color &lt;a href=&quot;http://www.cheapkidsshoes.net/&quot;&gt;Cheap Kids Shoes&lt;/a&gt;.&lt;/p&gt;</description>
 <pubDate>Mon, 06 May 2013 08:39:54 -0500</pubDate>
 <dc:creator>Guest</dc:creator>
 <guid isPermaLink="false">comment 46192 at http://www.townx.org</guid>
</item>
<item>
 <title>Reply</title>
 <link>http://www.townx.org/blog/elliot/running-tizen-sdk-simulator-non-ubuntu-linux#comment-46113</link>
 <description>&lt;p&gt;The information you provided were totally worth reading. This explains the steps you need to get the Tizen web-simulator working on Linux. I have book marked your page for further updates. Keep up the good work. Regards. &lt;a href=&quot;http://www.windowslivehelpnow.com/general-windows-live-help/make-voice-and-video-calls-through-live-call-supported-by-windows-live-help/&quot;&gt;windows live support phone number&lt;/a&gt;&lt;/p&gt;</description>
 <pubDate>Mon, 29 Apr 2013 06:59:04 -0500</pubDate>
 <dc:creator>Archie</dc:creator>
 <guid isPermaLink="false">comment 46113 at http://www.townx.org</guid>
</item>
<item>
 <title>A wonderful and unique</title>
 <link>http://www.townx.org/blog/elliot/running-tizen-sdk-simulator-non-ubuntu-linux#comment-46055</link>
 <description>&lt;p&gt;A wonderful and unique lifestyle awaits you. Please see Belgravia Villas project details and floor plans for more information.&lt;br /&gt;
&lt;a href=&quot;http://belgravia-villa.com.sg&quot;&gt;Ang Mo Kio Cluster House&lt;/a&gt;&lt;/p&gt;</description>
 <pubDate>Fri, 26 Apr 2013 01:07:47 -0500</pubDate>
 <dc:creator>Guest</dc:creator>
 <guid isPermaLink="false">comment 46055 at http://www.townx.org</guid>
</item>
<item>
 <title>It&#039;s difficult for me to</title>
 <link>http://www.townx.org/blog/elliot/running-tizen-sdk-simulator-non-ubuntu-linux#comment-45961</link>
 <description>&lt;p&gt;It&#039;s difficult for me to using it. I have been so usual to use Windows as my operating system.&lt;br /&gt;
&lt;a href=&quot;http://www.bizjournals.com/prnewswire/press_releases/2012/05/08/LA03343&quot;&gt;structured settlement quotes&lt;/a&gt;&lt;/p&gt;</description>
 <pubDate>Thu, 18 Apr 2013 07:51:26 -0500</pubDate>
 <dc:creator>Guest</dc:creator>
 <guid isPermaLink="false">comment 45961 at http://www.townx.org</guid>
</item>
<item>
 <title>yes you are right really</title>
 <link>http://www.townx.org/blog/elliot/running-tizen-sdk-simulator-non-ubuntu-linux#comment-45511</link>
 <description>&lt;p&gt;yes you are right really nice article good work, thanks to share this Linux coding with us thankS SO &lt;span class=&quot;caps&quot;&gt;MUCH.&lt;/span&gt;&lt;br /&gt;
&lt;a  href=&quot;http://www.Quickboyntonbeachlocksmith.com&quot;&gt;Boynton Beach Locksmith&lt;/a&gt;&lt;/p&gt;</description>
 <pubDate>Tue, 12 Mar 2013 05:21:30 -0500</pubDate>
 <dc:creator>Cjyhjuaohr</dc:creator>
 <guid isPermaLink="false">comment 45511 at http://www.townx.org</guid>
</item>
<item>
 <title>The satisfaction of doing it</title>
 <link>http://www.townx.org/blog/elliot/running-tizen-sdk-simulator-non-ubuntu-linux#comment-45068</link>
 <description>&lt;p&gt;The satisfaction of doing it yourself. If you still can&#039;t decide what kind of trailer to get, let us help you out.&lt;br /&gt;
&lt;a href=&quot;http://psychologycollegefinder.org/degrees/social-work&quot;&gt;social work school&lt;/a&gt;&lt;/p&gt;</description>
 <pubDate>Fri, 15 Feb 2013 05:58:13 -0600</pubDate>
 <dc:creator>josefsmith</dc:creator>
 <guid isPermaLink="false">comment 45068 at http://www.townx.org</guid>
</item>
<item>
 <title>Hello my friend! I want to</title>
 <link>http://www.townx.org/blog/elliot/running-tizen-sdk-simulator-non-ubuntu-linux#comment-44773</link>
 <description>&lt;p&gt; Hello my friend! I want to say that this article is awesome, nice written and include approximately all significant infos. I would like to peer extra posts like this . &lt;br /&gt;
&lt;a href=&quot;http://www.pisosytapetes.com.mx/tapetesypisos/samistore/formas/productos.php?id_categoria_seleccion=1&quot;&gt;tapetes con logo&lt;/a&gt;&lt;/p&gt;</description>
 <pubDate>Wed, 30 Jan 2013 08:34:46 -0600</pubDate>
 <dc:creator>Guest</dc:creator>
 <guid isPermaLink="false">comment 44773 at http://www.townx.org</guid>
</item>
<item>
 <title>After I initially commented</title>
 <link>http://www.townx.org/blog/elliot/running-tizen-sdk-simulator-non-ubuntu-linux#comment-44511</link>
 <description>&lt;p&gt;After I initially commented I clicked the &lt;del&gt;Notify me when new comments are added&lt;/del&gt; checkbox and now every time a comment is added I get four emails with the identical comment. Is there any method you can take away me from that service? Thanks!  - &lt;a href=&quot;http://tjiangresidence.com/id-id/home.html&quot;&gt;Guest House Semarang&lt;/a&gt;&lt;/p&gt;</description>
 <pubDate>Thu, 17 Jan 2013 10:43:37 -0600</pubDate>
 <dc:creator>Rudi Prastyo</dc:creator>
 <guid isPermaLink="false">comment 44511 at http://www.townx.org</guid>
</item>
<item>
 <title>reply</title>
 <link>http://www.townx.org/blog/elliot/running-tizen-sdk-simulator-non-ubuntu-linux#comment-44295</link>
 <description>&lt;p&gt;This post can easily give straight answers to help you subscribers, prefer individuals. With some luck which you’ve written might well be significantly more of great benefit in order to keep to jot down a person&#039;s communiques. Many thanks for this specific rather revealing creating. &lt;a href=&quot;http://www.shpe-iit.org/code-promo-asos-rend-votre-shopping-agreable/&quot;&gt;racheal&lt;/a&gt;&lt;/p&gt;</description>
 <pubDate>Wed, 02 Jan 2013 09:39:13 -0600</pubDate>
 <dc:creator>racheal</dc:creator>
 <guid isPermaLink="false">comment 44295 at http://www.townx.org</guid>
</item>
<item>
 <title>Running the Tizen SDK Simulator on non-Ubuntu Linux</title>
 <link>http://www.townx.org/blog/elliot/running-tizen-sdk-simulator-non-ubuntu-linux</link>
 <description>&lt;p&gt;This explains the steps you need to get the Tizen web-simulator working on Linux. Also shown is a small example of how to exercise some of the &lt;span class=&quot;caps&quot;&gt;HTML5 API&lt;/span&gt;s in Tizen to demonstrate how the web-simulator does its stuff.&lt;/p&gt;

&lt;p&gt;The aim here is to get a working Tizen dev environment, without having to download and run the full Tizen &lt;span class=&quot;caps&quot;&gt;SDK &lt;/span&gt;(a 1Gb download), and on platforms which aren&#039;t officially supported (only Windows and Ubuntu are supported, but I use Fedora). It&#039;s not the &lt;em&gt;recommended&lt;/em&gt; or &lt;em&gt;official&lt;/em&gt; way to develop for Tizen (see &lt;a href=&quot;https://developer.tizen.org/sdk&quot; title=&quot;https://developer.tizen.org/sdk&quot;&gt;https://developer.tizen.org/sdk&lt;/a&gt; for that), but it is &lt;em&gt;a&lt;/em&gt; way to use a bit of it. I also can&#039;t vouch for whether it&#039;s a sensible thing to do as I&#039;ve only tested small applications with it so far. But it is fun.&lt;/p&gt;

&lt;p&gt;The web-simulator is actually a fairly small (5Mb) Chrome extension, which is based on a fork of Ripple:&lt;/p&gt;

&lt;p&gt;&quot;Ripple is a multi-platform mobile environment emulator that runs in a web browser and is custom-tailored to &lt;span class=&quot;caps&quot;&gt;HTML5 &lt;/span&gt;mobile application testing.&quot; (&lt;a href=&quot;http://ripple.tinyhippos.com/&quot; title=&quot;http://ripple.tinyhippos.com/&quot;&gt;http://ripple.tinyhippos.com/&lt;/a&gt; ; NB the company that developed it has been acquired by &lt;span class=&quot;caps&quot;&gt;RIM&lt;/span&gt;).&lt;/p&gt;

&lt;p&gt;The web-simulator extends Ripple with stubs for the &lt;span class=&quot;caps&quot;&gt;API&lt;/span&gt;s which are specific to Tizen, but not necessarily present in other &lt;span class=&quot;caps&quot;&gt;HTML5 &lt;/span&gt;environments (e.g. sensor and messaging capabilities). This enables you to build applications which use those &lt;span class=&quot;caps&quot;&gt;API&lt;/span&gt;s if you don&#039;t have access to Tizen hardware. (The other alternative is to use the full Tizen &lt;span class=&quot;caps&quot;&gt;SDK, &lt;/span&gt;which provides an emulator that runs &quot;real&quot; versions of the &lt;span class=&quot;caps&quot;&gt;API&lt;/span&gt;s; however, this is a big install and only works on Ubuntu and Windows.)&lt;/p&gt;

&lt;p&gt;Also note that the web-simulator &lt;a href=&quot;https://01.org/web-simulator/documentation/web-simulator-features&quot;&gt;has decent end-user documentation&lt;/a&gt;, explaining what the UI does.&lt;/p&gt;

&lt;p&gt;The steps:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1.&lt;/strong&gt; You can get the web-simulator code from the project&#039;s git repo: &lt;a href=&quot;https://github.com/01org/web-simulator&quot; title=&quot;https://github.com/01org/web-simulator&quot;&gt;https://github.com/01org/web-simulator&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The master branch is &lt;em&gt;way&lt;/em&gt; behind ongoing work (by about 5 months); so you might have better luck with the &quot;next&quot; branch, which seems to be where work is ongoing.&lt;/p&gt;

&lt;p&gt;To clone the project and get onto the right branch:&lt;/p&gt;



&lt;pre&gt;
$ git clone &lt;a href=&quot;https://github.com/01org/web-simulator.git&quot; title=&quot;https://github.com/01org/web-simulator.git&quot;&gt;https://github.com/01org/web-simulator.git&lt;/a&gt;
$ cd web-simulator
$ git checkout next
&lt;/pre&gt;



&lt;p&gt;&lt;strong&gt;2.&lt;/strong&gt; Now you have the source code for the web-simulator. We&#039;re just going to use a part of this to set the simulator up to work with Chrome.&lt;/p&gt;

&lt;p&gt;The piece we need is in this location (relative to the directory you made the clone from):&lt;/p&gt;



&lt;pre&gt;
./pkg/web
&lt;/pre&gt;



&lt;p&gt;So copy those files somewhere else to make them easier to get at:&lt;/p&gt;



&lt;pre&gt;
$ mkdir ~/tizen-simulator
$ cp -a ./pkg/web/* ~/tizen-simulator/
&lt;/pre&gt;



&lt;p&gt;Take a look to check you have the right files:&lt;/p&gt;



&lt;pre&gt;
$ cd ~/tizen-simulator
$ ls
beep.wav           cache.manifest  index.html    ripple.css 
browserCheck.html  images          package.json  ripple.html  ripple.js     themes
&lt;/pre&gt;



&lt;p&gt;That&#039;s all the code you need for the web-simulator.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3.&lt;/strong&gt; Open up Google Chrome (a recent version; I&#039;m using 20.0.1132.3 dev) and type the &lt;span class=&quot;caps&quot;&gt;URI &lt;/span&gt;for the web-simulator in the address bar, i.e.:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;///home/user/tizen-simulator/index.html&quot; title=&quot;///home/user/tizen-simulator/index.html&quot;&gt;file:///home/user/tizen-simulator/index.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;(replace &quot;user&quot; with your Linux account username)&lt;/p&gt;

&lt;p&gt;You should see the web-simulator UI with a blank &quot;phone&quot; in it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4.&lt;/strong&gt; You need a project to test against, so make one like this:&lt;/p&gt;



&lt;pre&gt;
$ mkdir ~/tizen-messaging-test
&lt;/pre&gt;



&lt;p&gt;Then add two files to this directory.&lt;/p&gt;

&lt;p&gt;~/tizen-messaging-test/index.html:&lt;/p&gt;



&lt;pre&gt;
&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;meta charset=&amp;quot;utf-8&amp;quot; /&amp;gt;
    &amp;lt;meta name=&amp;quot;viewport&amp;quot;
          content=&amp;quot;width=device-width, initial-scale=1.0,
                   maximum-scale=1.0, user-scalable=0, target-densityDpi=device-dpi&amp;quot;&amp;gt;
    &amp;lt;meta name=&amp;quot;description&amp;quot; content=&amp;quot;Tizen web app&amp;quot;/&amp;gt;
    &amp;lt;title&amp;gt;messaging test&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;

&amp;lt;body&amp;gt;
  &amp;lt;p&amp;gt;Tizen web-simulator running on Linux.&amp;lt;/p&amp;gt;
  &amp;amp;lt;script src=&amp;quot;main.js&amp;quot;&amp;amp;gt;&amp;amp;lt;/script&amp;amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/pre&gt;



&lt;p&gt;(you need to use real script tags, but I can&#039;t put them in here as the Drupal editor removes them...)&lt;/p&gt;

&lt;p&gt;and ~/tizen-messaging-test/main.js:&lt;/p&gt;



&lt;pre&gt;
window.onload = function () {
  var errorCb = function (err) {
    console.error(err);
  };

  var successCb = function (services) {
    if (services.length === 0) {
      console.error(&#039;could not get email service&#039;);
      return;
    }

    var service = services[0];

    // listen for message changes; NB when the message is sent below,
    // it appears in the OUTBOX folder and a notification is logged
    var messagesChangedListener = {
      messagesadded: function (messages) {
        console.log(messages[0].folderId);
      },
      messagesupdated: function (messages) {},
      messagesremoved: function (messages) {}
    };

    service.messageStorage.addMessagesChangeListener(messagesChangedListener);

    // send a message
    var msg = new tizen.Message(&amp;quot;messaging.email&amp;quot;, {
      &#039;to&#039;: [&#039;bingo.barry@bogus.com&#039;],
      &#039;subject&#039;: &#039;hello email from Tizen web app&#039;,
      &#039;plainBody&#039;: &#039;hello&#039;
    });

    service.sendMessage(
      msg,
      function (recipients) { console.log(recipients); },
      errorCb
    );
  };

  tizen.messaging.getMessageServices(&amp;quot;messaging.email&amp;quot;, successCb, errorCb);
};
&lt;/pre&gt;



&lt;p&gt;See &lt;a href=&quot;https://developer.tizen.org/documentation&quot;&gt;the Tizen developer docs&lt;/a&gt; for more information about the &lt;span class=&quot;caps&quot;&gt;API&lt;/span&gt;s supported. Also note that I&#039;m not suggesting this as a sane pattern for structuring an application.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5.&lt;/strong&gt; Open the web-simulator at your new project by entering the address in Chrome:&lt;/p&gt;

&lt;p&gt;&lt;notextile&gt;file:///home/user/tizen-simulator/index.html?url=file:///home/user/tizen-messaging-test/index.html&lt;/notextile&gt;&lt;/p&gt;

&lt;p&gt;(replace &quot;user&quot; with your Linux username)&lt;/p&gt;

&lt;p&gt;Note that the &lt;span class=&quot;caps&quot;&gt;URL &lt;/span&gt;of the project is passed as a url=xxx parameter to the Tizen simulator.&lt;/p&gt;

&lt;p&gt;Also note that things don&#039;t work so nicely if you run the web-simulator and the application on different domains (you get cross domain errors), even if the Simulator is a Chrome extension with permissions set to allow requests to any domain (I tried). The easiest thing to do is run both from file:// &lt;span class=&quot;caps&quot;&gt;URI&lt;/span&gt;s.&lt;/p&gt;

&lt;p&gt;You should see the index.html page in the &quot;phone&quot; with the message:&lt;/p&gt;

&lt;blockquote&gt;
&quot;Tizen web-simulator running on Linux.&quot;&lt;br /&gt;
&lt;/blockquote&gt;

&lt;p&gt;Like this:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/files/tizen-simulator-on-linux.jpg&quot; alt=&quot;&quot; height=&quot;768&quot; width=&quot;776&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Next, Ctrl+Shift+j to see the console output. You should see something like:&lt;/p&gt;



&lt;pre&gt;
Ripple :: Environment Warming Up (Tea. Earl Gray. Hot.)   ripple.js:27588
TIZEN :: Initialization Finished (Make it so.)            ripple.js:27588
OUTBOX                                                    main.js:11
[&amp;quot;bingo.barry@bogus.com&amp;quot;]                                 main.js:28
&lt;/pre&gt;



&lt;p&gt;&quot;OUTBOX&quot; is the name of the folder containing the sent message (i.e. it&#039;s queued and ready to go); [&quot;bingo.barry@bogus.com&quot;] is an array of the recipient names to whom the message was successfully sent. This proves that the web-simulator&#039;s &lt;span class=&quot;caps&quot;&gt;API &lt;/span&gt;stubs are working correctly.&lt;/p&gt;

&lt;p&gt;One other thing you might notice is that if you click the refresh button &lt;em&gt;inside&lt;/em&gt; the simulator to reload the project, you get this in the console:&lt;/p&gt;



&lt;pre&gt;
Uncaught ReferenceError: tizen is not defined                                 main.js:41
TIZEN :: -----------------------------------------------------------          ripple.js:27588
TIZEN :: Pay no attention to that man behind the curtain.                     ripple.js:27588
TIZEN :: Environment Warning up again (Set main batteries to auto-fire cycle) ripple.js:27588
TIZEN :: Initialization Finished (Make it so.) ripple.js:27588
Uncaught TypeError: Cannot call method &#039;log&#039; of undefined                     main.js:11
[&amp;quot;bingo.barry@bogus.com&amp;quot;]
&lt;/pre&gt;



&lt;p&gt;I haven&#039;t tracked down the source of this, but if you refresh the whole window, it seems to resolve itself.&lt;/p&gt;

&lt;p&gt;That&#039;s it. You can continue developing your application with whatever JavaScript libraries take your fancy.&lt;/p&gt;</description>
 <comments>http://www.townx.org/blog/elliot/running-tizen-sdk-simulator-non-ubuntu-linux#comments</comments>
 <category domain="http://www.townx.org/tech">tech</category>
 <pubDate>Tue, 15 May 2012 15:24:27 -0500</pubDate>
 <dc:creator>elliot</dc:creator>
 <guid isPermaLink="false">812 at http://www.townx.org</guid>
</item>
</channel>
</rss>
