d3.js and dashcode: anyone tried and won? - macos

I'd like to build OSX widgets to rapidly prototype streaming-data-based viz dashboard components. I'd like to use d3.js to do that displaying, but the most basic things I try get stuck with errors I have no ability / patience to parse.
Before I start wasting time on this, I was wondering if anyone's already trod this ground and won or lost? If you won, how did you do it? If you lost, did you understand why?

OK so it turns out the answer to this question is that it's totally possible and quite rewarding! Just be sure to turn on the "this widget can access the internet" option to avoid really confusing errors.

Related

Performance Tab in Chrome Development Tools shows offset recordings

I apologize if a question like this already exists somewhere, but I've really searched carefully and haven't found a question like this one.
I have a question regarding Performance Tab in the Chrome Development Tools.
I have a difficulty understanding how exactly to interpret it.
In particular, considering a scenario shown in the screenshot, it seems to me like these operations underscored by the blue lines ("recalculate styles", "composite") have been offset to the right, because when I scrub through the FPS chart bar that shows the animation, the timing of the animation starts and ends exactly where the green region does, instead of where the operations themselves start and end.
Is this indeed due to some offset (perhaps a bug in devtools?) or is there some deeper explanation to it that I'm unaware of?
I would appreciate any help as this has been bugging me for quite a while.
EDIT:
I could paraphrase my question in this way as well:
How did all these frames render if no operations took place like "recalculate styles" and "compositing"?
RESOLVED:
I apologize for not returning to this immediately after I solved the mystery for myself. I was very busy in the meantime.
Hereby, I confirm that yes, indeed, the confusion was due to the cursor being recorded (as suspected in the comments) but at the time I wasn't aware of it.
I want to thank everybody in the comments for their suggestions and their will to help.

create a simple (and visible!) UI slider in Unity 5

![enter image description here][1]please I need some help, this should apparently be something very simple and basic to do, but maybe I'm missing something.
I'm quite newbie to Unity3d, I had no much problem with creating a somewhat flashy 2.D scene (I mean 2D with different layers in Z level), scripts, etc. But I'm having trouble to create a "UI Slider" object: when I create it, it just shows nothing on screen. How can I make it visible? I just need to create a very simple, plain slider whose value can be controlled at runtime by means of a script.
thanks.
Well.. since you give nothing to go on, I suggest that you take a look at a tutorial for the UI:
https://unity3d.com/learn/tutorials/modules/beginner/live-training-archive/using-the-ui-tools
If you have troubles after this tutorial, come back with an example of your problem to make people more willing to sacrifice their time in helping you.
Hope this is somewhat useful
Take a look at the Unity3D docs here.
http://docs.unity3d.com/Manual/script-Slider.html
It should have what you are looking for.

Add an image to MKMapView (SWIFT)

I'm trying to add an image to MKMapView using SWIFT and I have ZERO coding experience. Could someone provide me with ALL the sample code necessary to do this? If there are any placeholder words (like overlay.yourimage.mapView) could you put the place where I need to add my information IN CAPS? I can't even tell the parts where I'm supposed to add my own information.
I appreciate any responses, I'm a first time poster.
Welcome to Stack Overflow.
The short answer is no.
This is not a site where people write your code for you. It's a site where you come when you have specific problems with code you've written and need help.
Be warned that MKMapView is a pretty complex framework. If you have zero programming experience it is way, way, WAAAAAAY over your head. You need to start with "Hello World" type stuff and work your way up.
Starting your programming career with trying to customize a map view is like going down a black diamond ski trail the first time you put skis on. You will fail dramatically, and won't be ready for black diamond trails (advanced APIs like map kit) until you do a lot of groundwork.
You can probably find sample code online that deals with adding an image to a map view, but it's not going to make much sense to you at this point, just like a ski instructor explaining how to get through a difficult mogul field won't make much sense to a beginning skier.

Java3D: Very poor performance in applet on MacOS X

I'm trying to do some animations using Java3D on a Mac.
If I use universe = new SimpleUniverse(); to create a universe, everything is fast. The problem is that there's a bit of tearing sometimes because I'm altering object properties while in the middle of rendering. What I would like to do is stop the rendering while I'm updating properties.
My first step was to try creating my own Canvas3D, and that's where things went wrong. Rather than just creating a SimpleUniverse, I do this sort of thing:
GraphicsConfiguration config = SimpleUniverse.getPreferredConfiguration();
canvas = new Canvas3D(config);
universe = SimpleUniverse(canvas);
When I do this, the first problem is that the window doesn't automatically appear. So based on the example at java2s, I embedded the Canvas3D in an applet. Then I get a window, but performance is TERRIBLE. The rendering is MUCH slower.
It's almost as though the rendering is no longer being done by the graphics engine but instead in software.
Can anyone give me some tips as to what I'm doing wrong here?
Thanks!
You should try compiling your BranchGroups before they become live. This helps preprocess the objects before they get displayed in the universe. It might also be something else that java is getting hung up on, if you put the whole source in the question, then i could tell you more. It might also just be your computer, Java3D takes a big hunk of Memory and is pretty CPU intensive, your computer specs would also be relevant in answering this question
Hope that helped you out a little bit, if you add more to your question i would be happy to help you more

Animation tools

I realize this is not strictly programming related, but hopefully you will let me get away with it.
My group is trying to put together a very short (2 minutes or so) "film" about a new feature to our product. The feature is trying to solve a particular problem a lot of our customers have. We do not want to go with live action for displaying the description of the problem we are trying to solve because we feel that the production value of anything we could come up with would be incredibly low and turn off our viewers. So we would like to make an animation (basically floating clip-art that is animated moving from place to place) while we have someone narrate the problem description.
While flash seems to be a good solution I have some problems with it:
I need to capture this in a movie format like avi
It needs to be captured in 1080p, 720p and regular TV def.
Does anyone have a suggestion for a piece of software that can get me where I need to go?
Free is good, but I think I could get my boss to lay down some scratch for this.
Thanks!
For just some basic here-is-the-screen-this-is-a-slide kinda thing you could use Windows MovieMaker, free and standard.
And here you have some tips on how to create your own screen-captured-AVI file for input.

Resources