Comments for Kind of Code http://kindofcode.com anything related to code Fri, 26 Feb 2016 07:27:08 +0000 hourly 1 https://wordpress.org/?v=4.5.2 Comment on Web Workers in Angular by FredrikSandell /web-workers-in-angular/#comment-1033 Fri, 26 Feb 2016 07:27:08 +0000 /?p=5#comment-1033 The implementation actually supports updates through the promise metod “notify”. This allows the worker to send updates to the main thread beforr it completes. It is even possible to imagine a use case in wich the worker never completes, but runs in the background for the entire duration of the program and updates the main thread through “notifys”.

]]>
Comment on Web Workers in Angular by Chris Stephens /web-workers-in-angular/#comment-1031 Fri, 26 Feb 2016 00:29:36 +0000 /?p=5#comment-1031 This really is a good breakdown. My only problem with this design, is that its one message one response. Unless I read it wrong. Sometime you want to ask the worker to process a large list and message you as they they finish so you can start displaying things as they are processed. However if people are coming from a REST background then this would align with that paradigm.

]]>
Comment on Web Workers in Angular by Renato Vieira /web-workers-in-angular/#comment-1020 Sun, 21 Feb 2016 12:51:15 +0000 /?p=5#comment-1020 Great article, i have the same issue here, loading huge ammounts of data blocks UI.

I will try this approach, thanks

]]>
Comment on Web Workers in Angular by ernest leitch /web-workers-in-angular/#comment-984 Fri, 05 Feb 2016 22:24:44 +0000 /?p=5#comment-984 This looks pretty nice. I like that it resolves the result with a promise and supports the notify functionality.

]]>
Comment on Web Workers in Angular by Franklin Gerald X /web-workers-in-angular/#comment-902 Wed, 20 Jan 2016 13:40:59 +0000 /?p=5#comment-902 Hi. I have a question related to adding dependency. I am not able to access scope variable inside the workerpromise function.

Eg. I am having a http call inside my worker code. I get the results. I need to pass the results to another function .

Either I need to call the function inside the worker code or it should be returned to other function where i can manipulate the data.

And also can you tell me how to add external dependency into webworker with an example. Like I want to add ngResource as a dependency

Thanks in Advance
Frank

]]>
Comment on Web Workers in Angular by Angular 2 hits beta and it’s a big deal for the future of the Web | Wisdom Parliament /web-workers-in-angular/#comment-771 Wed, 16 Dec 2015 11:50:58 +0000 /?p=5#comment-771 […] the most interesting part is it also includes a new experimental Web Workers feature that moves all Angular code to a separate Worker instance, which is expected to result in […]

]]>
Comment on Web Workers in Angular by Manik /web-workers-in-angular/#comment-701 Thu, 26 Nov 2015 07:46:16 +0000 /?p=5#comment-701 Hi,
I am looking to use the web workers to upload some files over the network. The file size is ~2MB and there may be ~6 images in a lot. Is it a good idea to use webworkers. I tried with some of the directives available, but it uploads some of the files and misses some of them.

]]>
Comment on Web Workers in Angular by Matt Slocum /web-workers-in-angular/#comment-465 Sun, 04 Oct 2015 20:06:54 +0000 /?p=5#comment-465 I wrote an angular webworker module that allows you to turn any function into a webworker. I feel it is pretty easy and useful. Check it out. http://mattslocum.github.io/ng-webworker/

]]>
Comment on Ionic Hot Code Push by Andreas Hassellof /ionic-hot-code-push/#comment-349 Tue, 08 Sep 2015 06:11:13 +0000 /?p=41#comment-349 Yesterday we released our, previously internal, approach to doing hot code push for hybrid apps as a native cordova plugin for iOS and Android. It works well with any cordova/phonegap based app.

We would welcome your feedback:
https://github.com/nordnet/cordova-hot-code-push

]]>
Comment on Web Workers in Angular by Sam /web-workers-in-angular/#comment-237 Tue, 28 Jul 2015 18:27:00 +0000 /?p=5#comment-237 Which browsers are the two of you using?

From MDN

There is currently disagreement among browsers vendors on what URIs are of the same-origin; Gecko 10.0 (Firefox 10.0 / Thunderbird 10.0 / SeaMonkey 2.7) and later do allow data URIs and Internet Explorer 10 does not allow Blob URIs as a valid script for workers.

]]>