<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Disqus - Latest Comments for michalc</title><link>http://disqus.com/by/michalc/</link><description></description><atom:link href="http://disqus.com/michalc/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Tue, 02 Jan 2018 03:37:28 -0000</lastBuildDate><item><title>Re: Questions to ask yourself when writing tests - Michal Charemza</title><link>https://charemza.name/blog/posts/methodologies/testing/questions-to-ask-yourself-when-writing-tests/#comment-3687813973</link><description>&lt;p&gt;Thanks!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">michalc</dc:creator><pubDate>Tue, 02 Jan 2018 03:37:28 -0000</pubDate></item><item><title>Re: Root2 - Dependency-Based Cache Invalidation</title><link>http://charemza.name/blog/posts/php/caching/dependency-based-cache-invalidation/#comment-3470353511</link><description>&lt;p&gt;Hi Luke,&lt;/p&gt;&lt;p&gt;Perhaps I should _not_ have promised part 2 so readily... Alas not much more other than a few experiments.&lt;/p&gt;&lt;p&gt;Michal.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">michalc</dc:creator><pubDate>Wed, 16 Aug 2017 01:29:32 -0000</pubDate></item><item><title>Re: 
            Should You Use www. For Your Site?
        </title><link>http://www.contecha.com/blog/should-you-use-www-for-your-site/#comment-2978850465</link><description>&lt;p&gt;You can use AWS's Route53 ALIAS record to point the root/apex domain to a Cloudfront distribution, so I think if you're willing to go with Route53 as your DNS provider, you are not restricted to using CNAMEs + subdomains.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">michalc</dc:creator><pubDate>Tue, 01 Nov 2016 02:09:48 -0000</pubDate></item><item><title>Re: Same-domain iframe communication - Michal Charemza</title><link>http://charemza.name/blog/posts/angularjs/iframe/same-domain-iframe-communication/#comment-2425933651</link><description>&lt;p&gt;Sorry about my slow reply... I notice you said "folder". If you're using "file://" then I think most browsers (under default configuration) treat any access to "file://" as cross domain, so the technique here won't work.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">michalc</dc:creator><pubDate>Fri, 25 Dec 2015 15:18:06 -0000</pubDate></item><item><title>Re: Same-domain iframe communication - Michal Charemza</title><link>http://charemza.name/blog/posts/angularjs/iframe/same-domain-iframe-communication/#comment-2425931800</link><description>&lt;p&gt;There is a way you can the `scope` function to work even if debug info is disabled. You could set the parent iframe's scope under a data key of `$scope`, which the scope function (which still exists even if debug info is disabled) uses.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;pre&gt;&lt;code&gt;&lt;br&gt;appInParentWindow.directive('iframe', function() {&lt;br&gt;  return {&lt;br&gt;    restrict: 'E',&lt;br&gt;    link: function(scope, element) {&lt;br&gt;      element.data('$scope', scope);&lt;br&gt;    }&lt;br&gt;  };&lt;br&gt;});&lt;br&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;You can see this working at &lt;a href="http://plnkr.co/edit/EsGn0bp9myfdPDz29cPP?p=preview" rel="nofollow noopener" target="_blank" title="http://plnkr.co/edit/EsGn0bp9myfdPDz29cPP?p=preview"&gt;http://plnkr.co/edit/EsGn0b...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;It's probably a bit hacky though, as the fact that the `scope` function uses a data key `$scope` I don't think is documented and is liable to change. It might be better might be to call `data` directly from the iframe app rather than relying on Angular's `scope` function.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">michalc</dc:creator><pubDate>Fri, 25 Dec 2015 15:15:40 -0000</pubDate></item><item><title>Re: Same-domain iframe communication - Michal Charemza</title><link>http://charemza.name/blog/posts/angularjs/iframe/same-domain-iframe-communication/#comment-2143422206</link><description>&lt;p&gt;No, you haven`t missed anything. If you set &lt;/p&gt;&lt;pre&gt;$compileProvider.debugInfoEnabled(false)&lt;/pre&gt;&lt;p&gt; then the &lt;/p&gt;&lt;pre&gt;scope&lt;/pre&gt;&lt;p&gt; function isn't available, and this technique won't work.&lt;/p&gt;&lt;p&gt;As a small attempt to defend myself :-), the abilility to remove the debugging info was added to Angular in the commit &lt;a href="https://github.com/angular/angular.js/commit/3660fd0912d3ccf6def8c9f02d8d4c0621c8d91f" rel="nofollow noopener" target="_blank" title="https://github.com/angular/angular.js/commit/3660fd0912d3ccf6def8c9f02d8d4c0621c8d91f"&gt;https://github.com/angular/...&lt;/a&gt;, about a month after I posted this tip.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">michalc</dc:creator><pubDate>Sat, 18 Jul 2015 03:55:03 -0000</pubDate></item><item><title>Re:  Using range inputs with Angular </title><link>http://liamnewmarch.co.uk/posts/input-range-angular/#comment-2137329600</link><description>&lt;p&gt;Nice tip!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">michalc</dc:creator><pubDate>Wed, 15 Jul 2015 03:30:17 -0000</pubDate></item><item><title>Re: Same-domain iframe communication - Michal Charemza</title><link>http://charemza.name/blog/posts/angularjs/iframe/same-domain-iframe-communication/#comment-2018096780</link><description>&lt;p&gt;It's used from within the iframe, not from the parent page, so there is no trouble. It works by how its defined: it is the iframe that contains the page running that code. This is unique from the point of view from inside the iframe, even if there are other iframes in the parent page.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">michalc</dc:creator><pubDate>Mon, 11 May 2015 08:07:02 -0000</pubDate></item><item><title>Re: Same-domain iframe communication - Michal Charemza</title><link>http://charemza.name/blog/posts/angularjs/iframe/same-domain-iframe-communication/#comment-1934173950</link><description>&lt;p&gt;Not quite sure what you mean by $compile, as I'm not suggesting to use that in this case. The other use-cases: perhaps yes, the custom Javascript one, or maybe custom CSS that would also only be applicable in an iframe. I think certain rich text-editors loaded their content in an iframe (at least a few years back when I last looked at them), so interacting with something like that might be a case. Other people have posted here that have found this tip useful, so you can always ask them as well :-)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">michalc</dc:creator><pubDate>Sun, 29 Mar 2015 03:48:16 -0000</pubDate></item><item><title>Re: Same-domain iframe communication - Michal Charemza</title><link>http://charemza.name/blog/posts/angularjs/iframe/same-domain-iframe-communication/#comment-1932760861</link><description>&lt;p&gt;There are (or at least were) 3rd party authentication systems that you can load up in an iframe, and after authentication can redirect to a page that you specify, i.e. that can be on the same domain as the parent page. This can then communicate using the techniques given here to the main app that authentication was successful (or failed). Note however, the 3rd party can forbid being loaded in an iframe by certain X-Frame-Options headers.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">michalc</dc:creator><pubDate>Sat, 28 Mar 2015 05:04:04 -0000</pubDate></item><item><title>Re: Same-domain iframe communication - Michal Charemza</title><link>http://charemza.name/blog/posts/angularjs/iframe/same-domain-iframe-communication/#comment-1842285040</link><description>&lt;p&gt;You're welcome :-)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">michalc</dc:creator><pubDate>Sun, 08 Feb 2015 13:31:33 -0000</pubDate></item><item><title>Re: Same-domain iframe communication - Michal Charemza</title><link>http://charemza.name/blog/posts/angularjs/iframe/same-domain-iframe-communication/#comment-1777950941</link><description>&lt;p&gt;Good to hear! :-)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">michalc</dc:creator><pubDate>Thu, 08 Jan 2015 03:28:05 -0000</pubDate></item><item><title>Re: Same-domain iframe communication - Michal Charemza</title><link>http://charemza.name/blog/posts/angularjs/iframe/same-domain-iframe-communication/#comment-1692628797</link><description>&lt;p&gt;You're very welcome, pleased it was useful.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">michalc</dc:creator><pubDate>Fri, 14 Nov 2014 02:41:01 -0000</pubDate></item><item><title>Re: Using Angular.js Factories To Get Remote Data</title><link>http://www.davidsalter.co.uk/using-angular-js-factories-to-get-remote-data/#comment-1026074723</link><description>&lt;p&gt;I notice getFruitsAsync takes a callback parameter. Would a "more Angular" way of doing it be to just return the result of the http.get call, which is a promise object, so the calling function can handle the callback, along with any error conditions?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">michalc</dc:creator><pubDate>Mon, 02 Sep 2013 02:20:15 -0000</pubDate></item><item><title>Re: Integrating Pusher With Ember</title><link>http://livsey.org/blog/2013/02/10/integrating-pusher-with-ember/#comment-827242154</link><description>&lt;p&gt;Great post. Thanks!&lt;/p&gt;&lt;p&gt;A question though: do you know of a way to inject the singleton into data-store adapter instances? I'm trying to use the same singleton in both the route(s) and the in the data store adapter.&lt;/p&gt;&lt;p&gt;Edit: I posted this question at &lt;a href="http://stackoverflow.com/questions/15402843/ember-js-injecting-a-depency-into-controllers-routes-and-data-store-adapter" rel="nofollow noopener" target="_blank" title="http://stackoverflow.com/questions/15402843/ember-js-injecting-a-depency-into-controllers-routes-and-data-store-adapter"&gt;http://stackoverflow.com/qu...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">michalc</dc:creator><pubDate>Tue, 12 Mar 2013 19:02:42 -0000</pubDate></item><item><title>Re: Login Required - Castle Royle Golf &amp; Country Club</title><link>http://markw.intelligentgolf.co.uk/anews.php?newsitem=424#comment-529196831</link><description>&lt;p&gt;Hello&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">michalc</dc:creator><pubDate>Tue, 15 May 2012 07:22:40 -0000</pubDate></item><item><title>Re: FancyUpload - Swiff meets Ajax</title><link>http://digitarald.de/project/history-manager/#comment-930426</link><description>&lt;p&gt;Oh... this was meant to be in reply to Clem's Unofficial update thread. (But of course the original HistoryManager is great) I think the logging in thingy doesn't work well if you reply to a post, but then need to login. It seems to post it as a new thread.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">michalc</dc:creator><pubDate>Fri, 18 Jul 2008 05:24:49 -0000</pubDate></item><item><title>Re: FancyUpload - Swiff meets Ajax</title><link>http://digitarald.de/project/history-manager/#comment-930415</link><description>&lt;p&gt;This is great: I've tried it out and it seems to work great! This is exactly what I've been looking for.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">michalc</dc:creator><pubDate>Fri, 18 Jul 2008 05:21:12 -0000</pubDate></item><item><title>Re: FancyUpload - Swiff meets Ajax</title><link>http://digitarald.de/project/fancyupload/#comment-812988</link><description>&lt;p&gt;(Sorry that I posted this in a new thread and also replied to my old one as well... I must have got confused!)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">michalc</dc:creator><pubDate>Fri, 04 Jul 2008 06:27:52 -0000</pubDate></item><item><title>Re: FancyUpload - Swiff meets Ajax</title><link>http://digitarald.de/project/fancyupload/#comment-812982</link><description>&lt;p&gt;However, I have now noticed some strange behavior after the upgrade. Intead of a nice smooth increase to 100% for each file, it just seems to jerk all the way to 100% when it is finished (although I think once I have seen one intermediate value quickly). It is now not as nice and smooth as it used to be.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">michalc</dc:creator><pubDate>Fri, 04 Jul 2008 06:26:15 -0000</pubDate></item><item><title>Re: FancyUpload - Swiff meets Ajax</title><link>http://digitarald.de/project/fancyupload/#comment-812980</link><description>&lt;p&gt;After upgrading Flash, although it works, I have noticed some strange behavior (in both Firefox 2 and 3).  The progress bar for each upload now just seems to jump all the way to 100% (although sometimes I see one intermediate level), instead of a nice smooth progress bar that I used to see.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">michalc</dc:creator><pubDate>Fri, 04 Jul 2008 06:24:35 -0000</pubDate></item><item><title>Re: FancyUpload - Swiff meets Ajax</title><link>http://digitarald.de/project/fancyupload/#comment-812938</link><description>&lt;p&gt;Ah... I have just upgraded Flash to the most recent version, and it seems to work fine now!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">michalc</dc:creator><pubDate>Fri, 04 Jul 2008 05:58:17 -0000</pubDate></item><item><title>Re: FancyUpload - Swiff meets Ajax</title><link>http://digitarald.de/project/fancyupload/#comment-812886</link><description>&lt;p&gt;(I'm on Linux by the way)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">michalc</dc:creator><pubDate>Fri, 04 Jul 2008 05:27:40 -0000</pubDate></item><item><title>Re: FancyUpload - Swiff meets Ajax</title><link>http://digitarald.de/project/fancyupload/#comment-812871</link><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;Thanks for making such a great piece of code by the way!... I am about to include it in a site I'm working on. However...&lt;/p&gt;&lt;p&gt;I can't get the demo to work on Firefox 3. The upload gets to 100% (usually), but it doesn't ever give the "uploaded an image" message, with the size of the image, which does appear  in Firefox 2. Any suggestions on how to get this to work?&lt;/p&gt;&lt;p&gt;Michal&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">michalc</dc:creator><pubDate>Fri, 04 Jul 2008 05:20:13 -0000</pubDate></item></channel></rss>