Profile

Cover photo
Jim Simon
Works at Cengage Learning
Attended Michigan Technological University
Lives in New Hudson, Mi
133 followers|88,936 views
AboutPostsPhotosVideos

Stream

Jim Simon

Shared publicly  - 
 
Looks like I lost the lottery for Google IO... :(

At least I'm lucky enough to have gone once before...guess there's always next year...
1
Add a comment...

Jim Simon

Server-side  - 
 
Has anyone run into any issues using a closure inside of isolate.addOnExitListener()?

The following snippet of code is not working how I would expect:
items.forEach((name, item) async {
      Isolate isolate = await Isolate.spawnUri(...);
      item.status = "running";
      ReceivePort receivePort = new ReceivePort();
      isolate.addOnExitListener(receivePort.sendPort);
      receivePort.listen((message){
        if (message == null) {
          print("Item exited: ${item.name}");
          item.status = "stopped";
        }
      });
});

items contains 3 values, each with a distinct name: item1, item2, item3

When I run this code, the only output I get is:
"Item exited: item3"

I should be getting the following output (not necessarily in order):
"Item exited: item1"
"Item exited: item2"
"Item exited: item3"

Any thoughts?  I'm just trying to track whether the isolate is currently running or not (and in the future whether it has errored out).
1
Jim Simon's profile photoSeth Ladd's profile photo
6 comments
 
Thanks 
Add a comment...

Jim Simon

Discussion  - 
 
Hello everyone!  I just thought I'd share an interesting use case that we're using Polymer for at my work.  Essentially, we have a ton of content stored as [mostly] semantic XML that we need to render in the browser.  Initially we were looking at translating everything to JSON until someone pointed out the obvious: we can define custom Polymer elements for each XML element, insert the XML content into the DOM, and let the browser + Polymer handle progressively updating/drawing everything.

Anyway, I thought it was an interesting way to use Polymer and it has me wondering whether XML and Polymer/Web Components has the potential to displace what has become the (in my mind) unofficial standard of always using JSON.  I'm not saying JSON is better than XML or vice versa, only that the picture may not be as clear as some of us (or at least I) originally thought it was.

I'm curious to hear any opinions anyone has with regards to this kind of architecture.
3
Monty Rasmussen's profile photo
 
I'm involved in a project where we're doing essentially the same thing, but unfortunately we're using AngularJS directives to do it, since Polymer hasn't hit 1.0 yet (and we'd probably use Polymer.dart if it had). We are building our directives in such a way that porting them later would be fairly easy, though. So I guess I think it's a great idea! Glad I thought of it.  ;)
Add a comment...

Jim Simon

Shared publicly  - 
 
 
I'm proud to say that earlier today I published my first package to pub!
https://pub.dartlang.org/packages/managed_mongo

Managed Mongo is a library for downloading, starting, and stopping an instance of mongo from within a Dart library or application.  It's ideal for unit/integration tests or standalone applications that need to package their own database.

This library has been tested primarily on OSX, but should work for Linux and Windows as well.  Please report any bugs on the project's Github page.  Feedback is also always welcome!
managed_mongo - A wrapper for running a managed mongo instance from inside a Dart library or application.
1 comment on original post
1
Add a comment...

Jim Simon

Discussion  - 
 
I'm getting ready to publish my first few packages to pub but when executing a dry-run, I noticed that my test files and my .gitignore are being published as well.  Is this fairly normal, or should I try to avoid publishing these files?
2
Günter Zöchbauer's profile photoJim Simon's profile photo
2 comments
 
Yep they are...I won't stress out too much over it then. Thanks!
Add a comment...

Jim Simon

Shared publicly  - 
 
+Jeff Gibson +Matt Crockett +Bob Hong
This is pretty sweet...it's how heroku works too.
1
Add a comment...

Jim Simon

Shared publicly  - 
2
Bob Hong's profile photo
 
Lol
Add a comment...
In his circles
151 people
Have him in circles
133 people
Grant Morath's profile photo
Chris Carrier's profile photo
Jeff Borton's profile photo
Beth DeKeyser's profile photo
Ryan Mathewson (antflash22)'s profile photo
Chatu rbate-cam's profile photo
Cathy Pratt's profile photo
Tom Gjonaj's profile photo
Stefano Barros's profile photo

Jim Simon

Discussion  - 
 
How about saving some Google IO tickets for those of us attending the Dart Developer Summit!

Eh +Seth Ladd​, think you can hook us up? ;)

(Realistically, I know this is unlikely, but hey it's worth a shot)
2
Kenneth Endfinger's profile photo
 
Boy, I wish :) Those tickets sell really really fast.
Add a comment...

Jim Simon

Discussion  - 
 
Anyone know where I can get my hands on some Dart merchandize (stickers, t-shirts, coffee cups, etc.)? I found http://www.unixstickers.com/stickers/coding_stickers/dart-programming-language-logo-shaped-sticker#intro for stickers, but I haven't been able to find much else.
5
Seth Ladd's profile photoJim Simon's profile photo
3 comments
 
+Seth Ladd I'll look into that, thanks!
Add a comment...

Jim Simon

Server-side  - 
 
I'm proud to say that earlier today I published my first package to pub!
https://pub.dartlang.org/packages/managed_mongo

Managed Mongo is a library for downloading, starting, and stopping an instance of mongo from within a Dart library or application.  It's ideal for unit/integration tests or standalone applications that need to package their own database.

This library has been tested primarily on OSX, but should work for Linux and Windows as well.  Please report any bugs on the project's Github page.  Feedback is also always welcome!
managed_mongo - A wrapper for running a managed mongo instance from inside a Dart library or application.
14
2
Seth Ladd's profile photoJim Simon's profile photoGuillaume Girou's profile photo
 
Thanks for sharing!
Add a comment...

Jim Simon

Server-side  - 
 
Does anyone know if there's an easy way to detect if a user is using a 32 bit operating system or a 64 bit one?  The Platform class only tells me which OS the user is on (which I also needed).

Thanks!
2
Jim Simon's profile photoFreemen Muaddib's profile photoGreg Sherman's profile photoXavier Guzman's profile photo
4 comments
 
Awesome package +Andrew Mezoni​!!
Add a comment...
People
In his circles
151 people
Have him in circles
133 people
Grant Morath's profile photo
Chris Carrier's profile photo
Jeff Borton's profile photo
Beth DeKeyser's profile photo
Ryan Mathewson (antflash22)'s profile photo
Chatu rbate-cam's profile photo
Cathy Pratt's profile photo
Tom Gjonaj's profile photo
Stefano Barros's profile photo
Education
  • Michigan Technological University
    Computer Science: Software Engineering, 2004 - 2009
  • Novi High School
    2001 - 2004
Basic Information
Gender
Male
Work
Occupation
Software Engineer
Skills
Google Dart, Java, JavaScript, Lua, jQuery, jQuery UI, Backbone.js, Handlebars.js, YUI, CDI, JAX-RS (REST), JAX-WS (SOAP)
Employment
  • Cengage Learning
    Software Developer III, 2014 - present
  • Jackson National Life
    Senior Software Developer, 2009 - 2014
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
New Hudson, Mi
Previously
Bath, Mi - Lansing, Mi - Novi, Mi - Houghton, Mi - Brighton, Mi