<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>Cocktails</title>
		<description>RSS feeds for Cocktails</description>
		<link>http://developer.yahoo.com/forum/Cocktails</link>
		<pubDate>Wed, 19 Jun 2013 16:34:24 -0700</pubDate>
		<atom:link href="http://developer.yahoo.com/forum/feed" rel="self" type="application/rss+xml" />
		<ttl>99</ttl>
		<item>
			<title><![CDATA[Re: Version based static cache busting in mojito]]></title>
			<link>http://developer.yahoo.com/forum/Yahoo-Mojito/Version-based-static-cache-busting-in/1371059151231-ac9fcd39-ff26-4a5f-ac4c-736fcd96223e</link>
			<guid>http://developer.yahoo.com/forum/Yahoo-Mojito/Version-based-static-cache-busting-in/1371059151231-ac9fcd39-ff26-4a5f-ac4c-736fcd96223e/1371514198468</guid>
			<description><![CDATA[Posted by <a href="http://developer.yahoo.com/forum/user?id=E7CVKEGQE7J7QJHWIOJR3CHFQY">Jesse</a> in <a href="http://developer.yahoo.com/forum/Yahoo-Mojito">Yahoo! Mojito</a>

<p>@Caridy Thanks again! I posted a issue in the mojito-shaker github.</p><p><a rel="nofollow" href="https://github.com/yahoo/mojito-shaker/issues/46">https://github.com/yahoo/mojito-shaker/issues/46</a></p><p>I keep posting here mostly for the benefit of others who might be having similar issues.</p>]]></description>
			<dc:creator>Jesse</dc:creator>
			<pubDate>Mon, 17 Jun 2013 17:09:58 -0700</pubDate>
		</item>
		<item>
			<title><![CDATA[Re: Version based static cache busting in mojito]]></title>
			<link>http://developer.yahoo.com/forum/Yahoo-Mojito/Version-based-static-cache-busting-in/1371059151231-ac9fcd39-ff26-4a5f-ac4c-736fcd96223e</link>
			<guid>http://developer.yahoo.com/forum/Yahoo-Mojito/Version-based-static-cache-busting-in/1371059151231-ac9fcd39-ff26-4a5f-ac4c-736fcd96223e/1371508192411</guid>
			<description><![CDATA[Posted by <a href="http://developer.yahoo.com/forum/user?id=6LJSVWBOBTTGKASWZIWNPKOPC4">Caridy</a> in <a href="http://developer.yahoo.com/forum/Yahoo-Mojito">Yahoo! Mojito</a>

<p>@Jesse, thanks for the note, but I guess that will be more useful as a issue under <code>mojito-shaker</code> repo. As for the compatibility with 0.6, I am sure there is a version that goes well with it because the team behind a big project at Yahoo! is the team behind shaker and they are running 0.6 as today :), just make sure you ask for details thru the proper channels.</p>]]></description>
			<dc:creator>Caridy</dc:creator>
			<pubDate>Mon, 17 Jun 2013 15:29:52 -0700</pubDate>
		</item>
		<item>
			<title><![CDATA[Re: Version based static cache busting in mojito]]></title>
			<link>http://developer.yahoo.com/forum/Yahoo-Mojito/Version-based-static-cache-busting-in/1371059151231-ac9fcd39-ff26-4a5f-ac4c-736fcd96223e</link>
			<guid>http://developer.yahoo.com/forum/Yahoo-Mojito/Version-based-static-cache-busting-in/1371059151231-ac9fcd39-ff26-4a5f-ac4c-736fcd96223e/1371502510465</guid>
			<description><![CDATA[Posted by <a href="http://developer.yahoo.com/forum/user?id=E7CVKEGQE7J7QJHWIOJR3CHFQY">Jesse</a> in <a href="http://developer.yahoo.com/forum/Yahoo-Mojito">Yahoo! Mojito</a>

<p>Just as a follow up, I did get Shaker working. But I was partially right about it's short comings. I had a real hell of a time getting it working until I realized, it is out of sync with Mojito and does not work with 0.6.</p><p>Also the default config used in the examples won't cause Shaker to do anything with your assets. You have to specify a location other than 'default' for any of your assets to get minified, etagged, or even comboed. This is really unclear in the documents. It might be a good idea for the 'default' to be local. Or change your example to use local. It would have saved me a lot of time.</p><p>Thanks again for all your help.</p>]]></description>
			<dc:creator>Jesse</dc:creator>
			<pubDate>Mon, 17 Jun 2013 13:55:10 -0700</pubDate>
		</item>
		<item>
			<title><![CDATA[Re: Version based static cache busting in mojito]]></title>
			<link>http://developer.yahoo.com/forum/Yahoo-Mojito/Version-based-static-cache-busting-in/1371059151231-ac9fcd39-ff26-4a5f-ac4c-736fcd96223e</link>
			<guid>http://developer.yahoo.com/forum/Yahoo-Mojito/Version-based-static-cache-busting-in/1371059151231-ac9fcd39-ff26-4a5f-ac4c-736fcd96223e/1371167361125</guid>
			<description><![CDATA[Posted by <a href="http://developer.yahoo.com/forum/user?id=E7CVKEGQE7J7QJHWIOJR3CHFQY">Jesse</a> in <a href="http://developer.yahoo.com/forum/Yahoo-Mojito">Yahoo! Mojito</a>

<p>Oh right it's just a YUI module. Awesome, thanks, I didn't know the app level modules overrode the core ones.</p><p>Glad to hear you guys are going so strong with 0.7. And I'm still going to give shaker another try.</p><p>You are super awesome thank you again for all your time and effort.</p>]]></description>
			<dc:creator>Jesse</dc:creator>
			<pubDate>Thu, 13 Jun 2013 16:49:21 -0700</pubDate>
		</item>
		<item>
			<title><![CDATA[Re: Version based static cache busting in mojito]]></title>
			<link>http://developer.yahoo.com/forum/Yahoo-Mojito/Version-based-static-cache-busting-in/1371059151231-ac9fcd39-ff26-4a5f-ac4c-736fcd96223e</link>
			<guid>http://developer.yahoo.com/forum/Yahoo-Mojito/Version-based-static-cache-busting-in/1371059151231-ac9fcd39-ff26-4a5f-ac4c-736fcd96223e/1371163318882</guid>
			<description><![CDATA[Posted by <a href="http://developer.yahoo.com/forum/user?id=33TQQRBQMUF5AZ3KGNCSCP2L34">caridy</a> in <a href="http://developer.yahoo.com/forum/Yahoo-Mojito">Yahoo! Mojito</a>

<p>@Jesse, we are focused on mojito-next (0.7) at the moment, I don't think we will get back and add those hooks for you. You can copy that particular script in the <code>yui_modules</code> folder (at the app level), and you should be able to modify them and they will overrule any file coming from mojito (yes, app has precedence here).</p><p>That will unblock you for the time been. Just keep in mind that you have to keep an eye on any patch release for 0.6.x so you might need to recopy and rebuild the custom scripts.</p>]]></description>
			<dc:creator>caridy</dc:creator>
			<pubDate>Thu, 13 Jun 2013 15:41:58 -0700</pubDate>
		</item>
		<item>
			<title><![CDATA[Re: Routing with a domain other than localhost]]></title>
			<link>http://developer.yahoo.com/forum/Yahoo-Mojito/Routing-with-a-domain-other-than/1370021309195-556110bc-ebf0-4029-b685-206381adbc4c</link>
			<guid>http://developer.yahoo.com/forum/Yahoo-Mojito/Routing-with-a-domain-other-than/1370021309195-556110bc-ebf0-4029-b685-206381adbc4c/1371162893237</guid>
			<description><![CDATA[Posted by <a href="http://developer.yahoo.com/forum/user?id=VASY5CLHMAYFUT265F7HSL3YHE">Houyhnhnm</a> in <a href="http://developer.yahoo.com/forum/Yahoo-Mojito">Yahoo! Mojito</a>

<p>thanks Caridy:)</p>]]></description>
			<dc:creator>Houyhnhnm</dc:creator>
			<pubDate>Thu, 13 Jun 2013 15:34:53 -0700</pubDate>
		</item>
		<item>
			<title><![CDATA[Re: Version based static cache busting in mojito]]></title>
			<link>http://developer.yahoo.com/forum/Yahoo-Mojito/Version-based-static-cache-busting-in/1371059151231-ac9fcd39-ff26-4a5f-ac4c-736fcd96223e</link>
			<guid>http://developer.yahoo.com/forum/Yahoo-Mojito/Version-based-static-cache-busting-in/1371059151231-ac9fcd39-ff26-4a5f-ac4c-736fcd96223e/1371160721138</guid>
			<description><![CDATA[Posted by <a href="http://developer.yahoo.com/forum/user?id=E7CVKEGQE7J7QJHWIOJR3CHFQY">Jesse</a> in <a href="http://developer.yahoo.com/forum/Yahoo-Mojito">Yahoo! Mojito</a>

<p>PS I'm super excited about the changes you were talking about for 0.7.</p>]]></description>
			<dc:creator>Jesse</dc:creator>
			<pubDate>Thu, 13 Jun 2013 14:58:41 -0700</pubDate>
		</item>
		<item>
			<title><![CDATA[Re: Version based static cache busting in mojito]]></title>
			<link>http://developer.yahoo.com/forum/Yahoo-Mojito/Version-based-static-cache-busting-in/1371059151231-ac9fcd39-ff26-4a5f-ac4c-736fcd96223e</link>
			<guid>http://developer.yahoo.com/forum/Yahoo-Mojito/Version-based-static-cache-busting-in/1371059151231-ac9fcd39-ff26-4a5f-ac4c-736fcd96223e/1371160698500</guid>
			<description><![CDATA[Posted by <a href="http://developer.yahoo.com/forum/user?id=E7CVKEGQE7J7QJHWIOJR3CHFQY">Jesse</a> in <a href="http://developer.yahoo.com/forum/Yahoo-Mojito">Yahoo! Mojito</a>

<p>Thanks @Carldy I'll give shaker another shot.</p><p>But in the mean time I was VERY close to having my combo service working with mojito I just needed a small change in one spot</p><p>I would propose changing getAllURLDetails from this:</p><pre><code>getAllURLDetails: function() {    var r,        res,        ress,        m,        mojit,        mojits,        urls = {};...</code></pre><p>To this:</p><pre><code>getAllURLDetails: function() {    var r,        res,        ress,        m,        mojit,        mojits,        urls;    if(this._urls){        return this._urls;    }    urls = this._urls = {};...</code></pre><p>And similarly in the YUI store. Just so the url descriptor hashes would be availible after the Mojito store init. Here is what my middleware looks like:</p><p><a rel="nofollow" href="https://gist.github.com/anonymous/5777728">https://gist.github.com/anonymous/5777728</a></p><p>I've done a LOT of digging around in the mojito code and the only missing piece I need is to get access to the descriptors after optimizeForEnvirontment runs.</p>]]></description>
			<dc:creator>Jesse</dc:creator>
			<pubDate>Thu, 13 Jun 2013 14:58:18 -0700</pubDate>
		</item>
		<item>
			<title><![CDATA[Re: Version based static cache busting in mojito]]></title>
			<link>http://developer.yahoo.com/forum/Yahoo-Mojito/Version-based-static-cache-busting-in/1371059151231-ac9fcd39-ff26-4a5f-ac4c-736fcd96223e</link>
			<guid>http://developer.yahoo.com/forum/Yahoo-Mojito/Version-based-static-cache-busting-in/1371059151231-ac9fcd39-ff26-4a5f-ac4c-736fcd96223e/1371158465413</guid>
			<description><![CDATA[Posted by <a href="http://developer.yahoo.com/forum/user?id=33TQQRBQMUF5AZ3KGNCSCP2L34">caridy</a> in <a href="http://developer.yahoo.com/forum/Yahoo-Mojito">Yahoo! Mojito</a>

<p>@Jesse, I can assure you that shaker does DO what you want, and @albert is very responsive, if you have any question or issue, you can open an issue in github under yahoo/mojito-shaker repo, cc' me if you want.</p><p>One of the big problems of the current mojito is that it does too much magic for users, so advance users like you will have a hard time changing things, and bending features. This is something we truly want to fix in 0.7.x. I wrote the combo and all the other pieces related to the loader, and I can probably help, but I should warn you that all those stuff are pretty complex and you have cero hooks to modify them from outside, so you will have to replace many pieces to bend it.</p>]]></description>
			<dc:creator>caridy</dc:creator>
			<pubDate>Thu, 13 Jun 2013 14:21:05 -0700</pubDate>
		</item>
		<item>
			<title><![CDATA[Re: Version based static cache busting in mojito]]></title>
			<link>http://developer.yahoo.com/forum/Yahoo-Mojito/Version-based-static-cache-busting-in/1371059151231-ac9fcd39-ff26-4a5f-ac4c-736fcd96223e</link>
			<guid>http://developer.yahoo.com/forum/Yahoo-Mojito/Version-based-static-cache-busting-in/1371059151231-ac9fcd39-ff26-4a5f-ac4c-736fcd96223e/1371156824859</guid>
			<description><![CDATA[Posted by <a href="http://developer.yahoo.com/forum/user?id=E7CVKEGQE7J7QJHWIOJR3CHFQY">Jesse</a> in <a href="http://developer.yahoo.com/forum/Yahoo-Mojito">Yahoo! Mojito</a>

<p>I tried using shaker and just found the documentation and implementation extremely lacking. I also didn't see where it was adding url based cache busting. I understand it's well integrated into your systems but it just didn't seems to be doing anything when I was using it. I used the shaker frame and added a definition into my application.json and ran shaker. But when I then ran mojito it didn't appear to have even comboed the urls. It also just seemed like Shaker was a little out of sync with Mojito as far as docs and functionality.</p><p>Is there any way to get something like what I proposed in #2 of my last post into mojito soon? I have no idea how long 0.7 will be and need a solution relatively quickly.</p>]]></description>
			<dc:creator>Jesse</dc:creator>
			<pubDate>Thu, 13 Jun 2013 13:53:44 -0700</pubDate>
		</item>
		<item>
			<title><![CDATA[Re: Version based static cache busting in mojito]]></title>
			<link>http://developer.yahoo.com/forum/Yahoo-Mojito/Version-based-static-cache-busting-in/1371059151231-ac9fcd39-ff26-4a5f-ac4c-736fcd96223e</link>
			<guid>http://developer.yahoo.com/forum/Yahoo-Mojito/Version-based-static-cache-busting-in/1371059151231-ac9fcd39-ff26-4a5f-ac4c-736fcd96223e/1371151342902</guid>
			<description><![CDATA[Posted by <a href="http://developer.yahoo.com/forum/user?id=33TQQRBQMUF5AZ3KGNCSCP2L34">caridy</a> in <a href="http://developer.yahoo.com/forum/Yahoo-Mojito">Yahoo! Mojito</a>

<p>Ok, got it now. So, essentially, the solution with the current mojito is to use <code>mojito-shaker</code>. Mojito itself should not be serving static files, normally, static files are build and pushed to CDN. Shaker can do that for you, but if you don't have a CDN, or your product should run off from your own network, Shaker can do that too, by hashing the files based on the content of each file, as well as creating rollups.</p><p>That being said, mojito next (probably 0.7.x) will have some new features built-in to build and version yui modules and other assets.</p><p>More info here:<a rel="nofollow" href="https://github.com/yahoo/mojito-shaker">https://github.com/yahoo/mojito-shaker</a></p><p>Now, if that's not enough, yes you will have to take control over the static combo handler that we have and do your own thing.</p>]]></description>
			<dc:creator>caridy</dc:creator>
			<pubDate>Thu, 13 Jun 2013 12:22:22 -0700</pubDate>
		</item>
		<item>
			<title><![CDATA[Re: Version based static cache busting in mojito]]></title>
			<link>http://developer.yahoo.com/forum/Yahoo-Mojito/Version-based-static-cache-busting-in/1371059151231-ac9fcd39-ff26-4a5f-ac4c-736fcd96223e</link>
			<guid>http://developer.yahoo.com/forum/Yahoo-Mojito/Version-based-static-cache-busting-in/1371059151231-ac9fcd39-ff26-4a5f-ac4c-736fcd96223e/1371145794991</guid>
			<description><![CDATA[Posted by <a href="http://developer.yahoo.com/forum/user?id=E7CVKEGQE7J7QJHWIOJR3CHFQY">Jesse</a> in <a href="http://developer.yahoo.com/forum/Yahoo-Mojito">Yahoo! Mojito</a>

<p>Ok so this editor couldn't handle my last post so here it is as a GIST:</p><p><a rel="nofollow" href="https://gist.github.com/anonymous/5775771">https://gist.github.com/anonymous/5775771</a></p>]]></description>
			<dc:creator>Jesse</dc:creator>
			<pubDate>Thu, 13 Jun 2013 10:49:54 -0700</pubDate>
		</item>
		<item>
			<title><![CDATA[Re: mojito on Windows + static assets]]></title>
			<link>http://developer.yahoo.com/forum/Yahoo-Mojito/mojito-on-Windows-static-assets/1370076961146-4d2fd28f-c461-4438-8e84-b498ddfd82cb</link>
			<guid>http://developer.yahoo.com/forum/Yahoo-Mojito/mojito-on-Windows-static-assets/1370076961146-4d2fd28f-c461-4438-8e84-b498ddfd82cb/1371107719281</guid>
			<description><![CDATA[Posted by <a href="http://developer.yahoo.com/forum/user?id=2GAKP23TSWL7DPVCA6OTU2HPSQ">Dodo</a> in <a href="http://developer.yahoo.com/forum/Yahoo-Mojito">Yahoo! Mojito</a>

<p>Hi, Sorry for the late feedback, I rarely access Windows.It looks like it was a setup problem, it works fine.</p>]]></description>
			<dc:creator>Dodo</dc:creator>
			<pubDate>Thu, 13 Jun 2013 00:15:19 -0700</pubDate>
		</item>
		<item>
			<title><![CDATA[Re: Version based static cache busting in mojito]]></title>
			<link>http://developer.yahoo.com/forum/Yahoo-Mojito/Version-based-static-cache-busting-in/1371059151231-ac9fcd39-ff26-4a5f-ac4c-736fcd96223e</link>
			<guid>http://developer.yahoo.com/forum/Yahoo-Mojito/Version-based-static-cache-busting-in/1371059151231-ac9fcd39-ff26-4a5f-ac4c-736fcd96223e/1371084364256</guid>
			<description><![CDATA[Posted by <a href="http://developer.yahoo.com/forum/user?id=E7CVKEGQE7J7QJHWIOJR3CHFQY">Jesse</a> in <a href="http://developer.yahoo.com/forum/Yahoo-Mojito">Yahoo! Mojito</a>

<p>.</p>]]></description>
			<dc:creator>Jesse</dc:creator>
			<pubDate>Wed, 12 Jun 2013 17:46:04 -0700</pubDate>
		</item>
		<item>
			<title><![CDATA[Re: Version based static cache busting in mojito]]></title>
			<link>http://developer.yahoo.com/forum/Yahoo-Mojito/Version-based-static-cache-busting-in/1371059151231-ac9fcd39-ff26-4a5f-ac4c-736fcd96223e</link>
			<guid>http://developer.yahoo.com/forum/Yahoo-Mojito/Version-based-static-cache-busting-in/1371059151231-ac9fcd39-ff26-4a5f-ac4c-736fcd96223e/1371077385912</guid>
			<description><![CDATA[Posted by <a href="http://developer.yahoo.com/forum/user?id=E7CVKEGQE7J7QJHWIOJR3CHFQY">Jesse</a> in <a href="http://developer.yahoo.com/forum/Yahoo-Mojito">Yahoo! Mojito</a>

<p>My problem isn't refreshing in Dev mode. It's making sure when we do a push to our internal production environment or our public one, users are forced to get the latest code. Right now we just did a big change and push to internal production. We are starting up in production mode.</p><p>And users who have visited the site before are seeing the site broken until they clear their cache.</p><p>I've had a lot of experience and url based cache busting is by far the most effective in guaranteeing users see synced up to date static files.</p>]]></description>
			<dc:creator>Jesse</dc:creator>
			<pubDate>Wed, 12 Jun 2013 15:49:45 -0700</pubDate>
		</item>
		<item>
			<title><![CDATA[Re: Version based static cache busting in mojito]]></title>
			<link>http://developer.yahoo.com/forum/Yahoo-Mojito/Version-based-static-cache-busting-in/1371059151231-ac9fcd39-ff26-4a5f-ac4c-736fcd96223e</link>
			<guid>http://developer.yahoo.com/forum/Yahoo-Mojito/Version-based-static-cache-busting-in/1371059151231-ac9fcd39-ff26-4a5f-ac4c-736fcd96223e/1371063497233</guid>
			<description><![CDATA[Posted by <a href="http://developer.yahoo.com/forum/user?id=33TQQRBQMUF5AZ3KGNCSCP2L34">caridy</a> in <a href="http://developer.yahoo.com/forum/Yahoo-Mojito">Yahoo! Mojito</a>

<p>Hey @Jesse, you don't have. Mojito has a feature built-in to deal with browser cache without the need of the token, but using special headers to avoid caching when in dev mode. Read more here:</p><p><a rel="nofollow" href="http://developer.yahoo.com/cocktails/mojito/docs/faq/index.html#moj">http://developer.yahoo.com/cocktails/mojito/docs/faq/index.html#moj</a>-nodemon</p><p>Basically, just restart your app using <code>$ mojito start --context en<development></development></code> and that should do the trick.</p><p>In 0.7.x we will improve this even more to use the NODE configuration to run in dev mode.</p>]]></description>
			<dc:creator>caridy</dc:creator>
			<pubDate>Wed, 12 Jun 2013 11:58:17 -0700</pubDate>
		</item>
		<item>
			<title><![CDATA[Version based static cache busting in mojito]]></title>
			<link>http://developer.yahoo.com/forum/Yahoo-Mojito/Version-based-static-cache-busting-in/1371059151231-ac9fcd39-ff26-4a5f-ac4c-736fcd96223e</link>
			<guid>http://developer.yahoo.com/forum/Yahoo-Mojito/Version-based-static-cache-busting-in/1371059151231-ac9fcd39-ff26-4a5f-ac4c-736fcd96223e/1371059151231</guid>
			<description><![CDATA[Posted by <a href="http://developer.yahoo.com/forum/user?id=E7CVKEGQE7J7QJHWIOJR3CHFQY">Jesse</a> in <a href="http://developer.yahoo.com/forum/Yahoo-Mojito">Yahoo! Mojito</a>

<p>It's a pretty common practice to use a version param in your static urls so that it's much easier to ensure users are getting the most up to date files.</p><p>I've been working on a Mojito app that is now in an internal alpha release and people are having to hard clear their cache to get the latest files.</p><p>In my previous work with YUI I would just toss in a version into the comboBase config like so:</p><pre><code>comboBase: "/combo/?ver=2&amp;",comboSep: "&amp;"</code></pre><p>But in mojito the built in mojito combo doesn't support this method because it uses that weird ~ delimited format and breaks on any non-existent files.</p><p>Is there some better way to do URL base cache busting in Mojito? Why does Mojito break from YUI with the ~ delimited paths?</p><p>Jesse</p>]]></description>
			<dc:creator>Jesse</dc:creator>
			<pubDate>Wed, 12 Jun 2013 10:45:51 -0700</pubDate>
		</item>
		<item>
			<title><![CDATA[Re: Routing with a domain other than localhost]]></title>
			<link>http://developer.yahoo.com/forum/Yahoo-Mojito/Routing-with-a-domain-other-than/1370021309195-556110bc-ebf0-4029-b685-206381adbc4c</link>
			<guid>http://developer.yahoo.com/forum/Yahoo-Mojito/Routing-with-a-domain-other-than/1370021309195-556110bc-ebf0-4029-b685-206381adbc4c/1371050586420</guid>
			<description><![CDATA[Posted by <a href="http://developer.yahoo.com/forum/user?id=33TQQRBQMUF5AZ3KGNCSCP2L34">caridy</a> in <a href="http://developer.yahoo.com/forum/Yahoo-Mojito">Yahoo! Mojito</a>

<p>About sockets, you can read this:</p><p><a rel="nofollow" href="http://developer.yahoo.com/forum/Yahoo-Mojito/Mojito-and-socket-io-/1359238331872-d544f960-6f1e-4ad2-8c4c-3a7fce412eb2">http://developer.yahoo.com/forum/Yahoo-Mojito/Mojito-and-socket-io-/1359238331872-d544f960-6f1e-4ad2-8c4c-3a7fce412eb2</a></p>]]></description>
			<dc:creator>caridy</dc:creator>
			<pubDate>Wed, 12 Jun 2013 08:23:06 -0700</pubDate>
		</item>
		<item>
			<title><![CDATA[Re: Mojito and socket.io ?]]></title>
			<link>http://developer.yahoo.com/forum/Yahoo-Mojito/Mojito-and-socket-io-/1359238331872-d544f960-6f1e-4ad2-8c4c-3a7fce412eb2</link>
			<guid>http://developer.yahoo.com/forum/Yahoo-Mojito/Mojito-and-socket-io-/1359238331872-d544f960-6f1e-4ad2-8c4c-3a7fce412eb2/1371050538311</guid>
			<description><![CDATA[Posted by <a href="http://developer.yahoo.com/forum/user?id=33TQQRBQMUF5AZ3KGNCSCP2L34">caridy</a> in <a href="http://developer.yahoo.com/forum/Yahoo-Mojito">Yahoo! Mojito</a>

<p>Mojito is divided into two main workflows: a) middleware, who are responsible for handling the original req, and decide what to do with it, and in some cases. b) dispatching a command thru the mojito dispatcher (we call this the dispatch engine, which happens to be request agnostic).</p><p>I think a) is clear, just express middleware. But b) is more complicated, specially because the concept of a command is not well documented. In the short, a command is a simple object that tells what mojit to dispatch, what action to dispatch, some basic configurations for the mojit instance, context and parameters. Also, dispatching an action means we will need an OutputHandler, something that you can easily build since it has a very simple API.</p><p>I'm explaining all this because you can create your own layer that dispatches a mojit instance, just like mojito-tunnel-middleware does today. This also means you can have a middleware that handles the websocket and dispatches mojit instances when needed, and flush the response of those executions to the client side.</p><p>We are not focus on socket.io at the moment, but eventually we will be writing a couple of examples to people can get the idea and create their own mojits and middleware for it. I will recommend to:"create enhancement tickets thru github.com/yahoo/mojito so we can prioritize it".</p><p>P.S.: mojito 0.7.x, which is going to rely more on express and provide more ways for developers to customize things at the app level, should facilitate this use-case a lot.</p>]]></description>
			<dc:creator>caridy</dc:creator>
			<pubDate>Wed, 12 Jun 2013 08:22:18 -0700</pubDate>
		</item>
		<item>
			<title><![CDATA[Re: Session Management in Mojito]]></title>
			<link>http://developer.yahoo.com/forum/Yahoo-Mojito/Session-Management-in-Mojito/1340481892246-cf16fcd1-b977-47d8-ad18-884607d295bf</link>
			<guid>http://developer.yahoo.com/forum/Yahoo-Mojito/Session-Management-in-Mojito/1340481892246-cf16fcd1-b977-47d8-ad18-884607d295bf/1371050076572</guid>
			<description><![CDATA[Posted by <a href="http://developer.yahoo.com/forum/user?id=33TQQRBQMUF5AZ3KGNCSCP2L34">caridy</a> in <a href="http://developer.yahoo.com/forum/Yahoo-Mojito">Yahoo! Mojito</a>

<p>Awesome work. We plan to have a page with all mojito related packages, I will make sure we add your component as well.</p>]]></description>
			<dc:creator>caridy</dc:creator>
			<pubDate>Wed, 12 Jun 2013 08:14:36 -0700</pubDate>
		</item>
		<item>
			<title><![CDATA[Re: Session Management in Mojito]]></title>
			<link>http://developer.yahoo.com/forum/Yahoo-Mojito/Session-Management-in-Mojito/1340481892246-cf16fcd1-b977-47d8-ad18-884607d295bf</link>
			<guid>http://developer.yahoo.com/forum/Yahoo-Mojito/Session-Management-in-Mojito/1340481892246-cf16fcd1-b977-47d8-ad18-884607d295bf/1371025498371</guid>
			<description><![CDATA[Posted by <a href="http://developer.yahoo.com/forum/user?id=W3YJHLVA7UG4O63ECFIK4ZDXNU">Akshar</a> in <a href="http://developer.yahoo.com/forum/Yahoo-Mojito">Yahoo! Mojito</a>

<p>@caridy</p><p>I have created an npm module with your suggestions incorporated. Currently I am using Y.Cache but I am thinking to providing redis alternatives as well.</p><p>To install the addon:</p><p>npm install mojito-session-addon</p><p>Github: <a rel="nofollow" href="https://github.com/akshar100/mojito-session">https://github.com/akshar100/mojito-session</a></p>]]></description>
			<dc:creator>Akshar</dc:creator>
			<pubDate>Wed, 12 Jun 2013 01:24:58 -0700</pubDate>
		</item>
		<item>
			<title><![CDATA[Re: Routing with a domain other than localhost]]></title>
			<link>http://developer.yahoo.com/forum/Yahoo-Mojito/Routing-with-a-domain-other-than/1370021309195-556110bc-ebf0-4029-b685-206381adbc4c</link>
			<guid>http://developer.yahoo.com/forum/Yahoo-Mojito/Routing-with-a-domain-other-than/1370021309195-556110bc-ebf0-4029-b685-206381adbc4c/1371022271078</guid>
			<description><![CDATA[Posted by <a href="http://developer.yahoo.com/forum/user?id=VASY5CLHMAYFUT265F7HSL3YHE">Houyhnhnm</a> in <a href="http://developer.yahoo.com/forum/Yahoo-Mojito">Yahoo! Mojito</a>

<p>fair enough, at least I learned something about middleware. what about sockets? Does Mojito allow for sockets? As an npm, the net npm should be usable for a mojito app, but am I wrong? Second, is there an example of a simple game, using mojito. Some YUI modules would be needed but I figured you may know of a simple game example, I would like to study it.</p>]]></description>
			<dc:creator>Houyhnhnm</dc:creator>
			<pubDate>Wed, 12 Jun 2013 00:31:11 -0700</pubDate>
		</item>
		<item>
			<title><![CDATA[Re: Routing with a domain other than localhost]]></title>
			<link>http://developer.yahoo.com/forum/Yahoo-Mojito/Routing-with-a-domain-other-than/1370021309195-556110bc-ebf0-4029-b685-206381adbc4c</link>
			<guid>http://developer.yahoo.com/forum/Yahoo-Mojito/Routing-with-a-domain-other-than/1370021309195-556110bc-ebf0-4029-b685-206381adbc4c/1370974287496</guid>
			<description><![CDATA[Posted by <a href="http://developer.yahoo.com/forum/user?id=33TQQRBQMUF5AZ3KGNCSCP2L34">caridy</a> in <a href="http://developer.yahoo.com/forum/Yahoo-Mojito">Yahoo! Mojito</a>

<p>The whole multi-domain thing is really not related to mojito though. Even the serving schema that you use it not mojito specific, that's more nodejs/express related.</p>]]></description>
			<dc:creator>caridy</dc:creator>
			<pubDate>Tue, 11 Jun 2013 11:11:27 -0700</pubDate>
		</item>
		<item>
			<title><![CDATA[Re: Routing with a domain other than localhost]]></title>
			<link>http://developer.yahoo.com/forum/Yahoo-Mojito/Routing-with-a-domain-other-than/1370021309195-556110bc-ebf0-4029-b685-206381adbc4c</link>
			<guid>http://developer.yahoo.com/forum/Yahoo-Mojito/Routing-with-a-domain-other-than/1370021309195-556110bc-ebf0-4029-b685-206381adbc4c/1370973714082</guid>
			<description><![CDATA[Posted by <a href="http://developer.yahoo.com/forum/user?id=VASY5CLHMAYFUT265F7HSL3YHE">Houyhnhnm</a> in <a href="http://developer.yahoo.com/forum/Yahoo-Mojito">Yahoo! Mojito</a>

<p>Caridy,i figure if the domain is different shouldnt the port be different as well. if I have a yahoo yap or yahoo group and i want some action to occur when i visit that site from the mojito app, wouldnt i need the app port to be 80, for http?</p><p>I stated i ran the test app function, to tell that i checked my code first to see if it had issues.</p><p>sequently,I can change the app port value to 8666 and it wouldnt matter?</p><p>can you look at my middleware file in my github repository and see what i am doing faulty?</p><p>and thanks for the variable help:)</p><p>I am going to crack this mojito egg if it is the last thing i do:)</p>]]></description>
			<dc:creator>Houyhnhnm</dc:creator>
			<pubDate>Tue, 11 Jun 2013 11:01:54 -0700</pubDate>
		</item>
		<item>
			<title><![CDATA[Re: Routing with a domain other than localhost]]></title>
			<link>http://developer.yahoo.com/forum/Yahoo-Mojito/Routing-with-a-domain-other-than/1370021309195-556110bc-ebf0-4029-b685-206381adbc4c</link>
			<guid>http://developer.yahoo.com/forum/Yahoo-Mojito/Routing-with-a-domain-other-than/1370021309195-556110bc-ebf0-4029-b685-206381adbc4c/1370876703723</guid>
			<description><![CDATA[Posted by <a href="http://developer.yahoo.com/forum/user?id=33TQQRBQMUF5AZ3KGNCSCP2L34">caridy</a> in <a href="http://developer.yahoo.com/forum/Yahoo-Mojito">Yahoo! Mojito</a>

<blockquote>  <p><em>I figure the appport should be 80 instead of the 8888 and other user available values, since the application is trying to read from a different domain than localhost?</em></p>
</blockquote><p>I don't understand that.</p><blockquote>  <p><em>In the middleware javascript file, i names it static. I call the alert function, figuring if a certain url arrives, then it will trigger it. The middleware javascript Nothing happens when i start it?</em></p>
</blockquote><p>middleware will get executed on every request that comes in.</p><blockquote>  <p><em>I did mojito test app</em></p>
</blockquote><p>this is to run unit tests on every script in your app, nothing to do with the runtime.</p><p>for the controller server, i would like a value to be set in the middleware javascript that can be accessed within it. How do I do that?</p><p>There are many ways to set value in the middleware and get the value back into your controller, normally, what you do is to add the value to the request object like this:</p><p><code>req.foo = 'value in the middleware';</code></p><p>then in the controller you can use <code>mojito-http-addon</code> and do something like this:</p><p><code>var foo = ac.http.getRequest().foo; // this value comes from middleware</code></p><p>That's pretty much it.</p>]]></description>
			<dc:creator>caridy</dc:creator>
			<pubDate>Mon, 10 Jun 2013 08:05:03 -0700</pubDate>
		</item>
		<item>
			<title><![CDATA[Re: Routing with a domain other than localhost]]></title>
			<link>http://developer.yahoo.com/forum/Yahoo-Mojito/Routing-with-a-domain-other-than/1370021309195-556110bc-ebf0-4029-b685-206381adbc4c</link>
			<guid>http://developer.yahoo.com/forum/Yahoo-Mojito/Routing-with-a-domain-other-than/1370021309195-556110bc-ebf0-4029-b685-206381adbc4c/1370820229055</guid>
			<description><![CDATA[Posted by <a href="http://developer.yahoo.com/forum/user?id=VASY5CLHMAYFUT265F7HSL3YHE">Houyhnhnm</a> in <a href="http://developer.yahoo.com/forum/Yahoo-Mojito">Yahoo! Mojito</a>

<p>Caridy , a made a repository for my mojito projects. The first being hconts2.<a rel="nofollow" href="https://github.com/houyhnhnm/Hmojitos">The link to my repository</a>in the app level application. json I figure the appport should be 80 instead of the 8888 and other user available values, since the application is trying to read from a different domain than localhost? <a rel="nofollow" href="https://github.com/houyhnhnm/Hmojitos/blob/master/hconts2/application.json">application.json</a>In the middleware javascript file, i names it static. I call the alert function, figuring if a certain url arrives, then it will trigger it. <a rel="nofollow" href="https://github.com/houyhnhnm/Hmojitos/blob/master/hconts2/middleware/static.js">The middleware javascript</a>Nothing happens when i start it?I did mojito test app . and didnt get any errors?for the controller server, i would like a value to be set in the middleware javascript that can be accessed within it. How do I do that? I figured I could use some sort of global variable but where and how do you create such a variable?<a rel="nofollow" href="https://github.com/houyhnhnm/Hmojitos/blob/master/hconts2/mojits/level1/controller.server.js">this is the controller.server</a></p>]]></description>
			<dc:creator>Houyhnhnm</dc:creator>
			<pubDate>Sun, 09 Jun 2013 16:23:49 -0700</pubDate>
		</item>
		<item>
			<title><![CDATA[Re: Session Management in Mojito]]></title>
			<link>http://developer.yahoo.com/forum/Yahoo-Mojito/Session-Management-in-Mojito/1340481892246-cf16fcd1-b977-47d8-ad18-884607d295bf</link>
			<guid>http://developer.yahoo.com/forum/Yahoo-Mojito/Session-Management-in-Mojito/1340481892246-cf16fcd1-b977-47d8-ad18-884607d295bf/1370771891679</guid>
			<description><![CDATA[Posted by <a href="http://developer.yahoo.com/forum/user?id=W3YJHLVA7UG4O63ECFIK4ZDXNU">Akshar</a> in <a href="http://developer.yahoo.com/forum/Yahoo-Mojito">Yahoo! Mojito</a>

<p>Thanks Caridy.</p><p>Will work on this. As far as point 3 is concerned I thought of using redis but that only increases the friction to get started. Y.Cache seems like a good option to begin with.</p>]]></description>
			<dc:creator>Akshar</dc:creator>
			<pubDate>Sun, 09 Jun 2013 02:58:11 -0700</pubDate>
		</item>
		<item>
			<title><![CDATA[Re: Session Management in Mojito]]></title>
			<link>http://developer.yahoo.com/forum/Yahoo-Mojito/Session-Management-in-Mojito/1340481892246-cf16fcd1-b977-47d8-ad18-884607d295bf</link>
			<guid>http://developer.yahoo.com/forum/Yahoo-Mojito/Session-Management-in-Mojito/1340481892246-cf16fcd1-b977-47d8-ad18-884607d295bf/1370530582387</guid>
			<description><![CDATA[Posted by <a href="http://developer.yahoo.com/forum/user?id=33TQQRBQMUF5AZ3KGNCSCP2L34">caridy</a> in <a href="http://developer.yahoo.com/forum/Yahoo-Mojito">Yahoo! Mojito</a>

<p>@Akshar, thanks for sharing the gist. A couple of recommendations:</p><p>1- you can create a npm package with your addon, and whoever wants to use it, just need to add it to the app dependencies instead of copying the code into their app. Here is a similar example: <a rel="nofollow" href="https://github.com/caridy/mojito-alter-mojit">https://github.com/caridy/mojito-alter-mojit</a></p><p>2- <code>dependsOn</code> directive is deprecated in favor of the regular YUI requirements. Just make sure you require <code>mojito-http-addon</code> instead.</p><p>3- This <code>Y.MemoryStore[this.sessionCookie]</code> is problematic on the server side because you don't have a mechanism to clean up that structure. Keep in mind that on the server side, memory will continue to build up over time. That's why, in the majority of the cases, you should offload that into a different layer, saying memcache, redis, or whatever persistent and shared layer with the clean up mechanism built-in. The other option here is to use Y.Cache with a max value that is configurable per app, so memory will be recovered for old sessions.</p>]]></description>
			<dc:creator>caridy</dc:creator>
			<pubDate>Thu, 06 Jun 2013 07:56:22 -0700</pubDate>
		</item>
		<item>
			<title><![CDATA[Re: Session Management in Mojito]]></title>
			<link>http://developer.yahoo.com/forum/Yahoo-Mojito/Session-Management-in-Mojito/1340481892246-cf16fcd1-b977-47d8-ad18-884607d295bf</link>
			<guid>http://developer.yahoo.com/forum/Yahoo-Mojito/Session-Management-in-Mojito/1340481892246-cf16fcd1-b977-47d8-ad18-884607d295bf/1370480062900</guid>
			<description><![CDATA[Posted by <a href="http://developer.yahoo.com/forum/user?id=W3YJHLVA7UG4O63ECFIK4ZDXNU">Akshar</a> in <a href="http://developer.yahoo.com/forum/Yahoo-Mojito">Yahoo! Mojito</a>

<p>You might find this useful</p><p><a rel="nofollow">http://www.babmailer.info/2013/06/session-management-in-yahoo-mojito.html</a>&gt;</p><p>Note: It is not battle ready.</p>]]></description>
			<dc:creator>Akshar</dc:creator>
			<pubDate>Wed, 05 Jun 2013 17:54:22 -0700</pubDate>
		</item>
		<item>
			<title><![CDATA[Re: Passport with HTMLFrameMojit]]></title>
			<link>http://developer.yahoo.com/forum/Yahoo-Mojito/Passport-with-HTMLFrameMojit/1370190484661-6b8df9c7-49ba-41ab-9d7c-b650ec5d6627</link>
			<guid>http://developer.yahoo.com/forum/Yahoo-Mojito/Passport-with-HTMLFrameMojit/1370190484661-6b8df9c7-49ba-41ab-9d7c-b650ec5d6627/1370366635539</guid>
			<description><![CDATA[Posted by <a href="http://developer.yahoo.com/forum/user?id=33TQQRBQMUF5AZ3KGNCSCP2L34">caridy</a> in <a href="http://developer.yahoo.com/forum/Yahoo-Mojito">Yahoo! Mojito</a>

<p>I guess what you're looking for here is to invoke an action on the server side for the mojit that contains the form, to do something with those values if the user is logged in, otherwise fail to process and reporting an error. Assuming that's what you need, then you can do this by simply doing what you're doing in the binder of the mojit, picking up the data from the form elements, and eventually using <code>mojitProxy.invoke()</code> to make a call back to the server and wait for the mojit to be dispatched.</p><p>Now, the RPC built-in in mojito for the tunnel requests will honor the middleware, so, if you have a middleware that validates the logging information, you should be able to control that in your controller for the invoked mojit, which is responsible for rendering the new result, or reporting an error. There is not need to involve the framemojit in this schema.</p>]]></description>
			<dc:creator>caridy</dc:creator>
			<pubDate>Tue, 04 Jun 2013 10:23:55 -0700</pubDate>
		</item>
	</channel>
</rss><!-- p1.ydn.bf1.yahoo.com uncompressed/chunked Wed Jun 19 16:34:24 PDT 2013 -->
