Switching between ad networks in cocos2d v3.0 and spritebuilder - cocos2d-iphone

as the title would suggest i'm trying to make a system that automatically will prioritize my ad networks and display the next in line when one fails to load. I currently have iAd implemented and working following this example: How to add iad in cocos2d? and I plan on using the example provided by the same person, Guru, to implement AdMob. Example found here: AdMob with Cocos2d v3. Now preferably I would like to just add on/change the working code as it is very well built and organized. Along with prioritizing iAd followed by AdMob, I would like to also have revmob as well. I was thinking of just doing revmob as the fullscreen ad when launched, but I would still like to know how I would go about adding the revmob banners to the rotation just as good measure. If any of my code is needed I'll gladly post it :)

Related

Qt Camera Example - changing settings does not work

I have built and run the Camera Example project from the examples in Qt (QtCreator -> examples).
All went correctly.
I can run the program and display video stream from my laptops camera (Lenovo X220) and from my android phone (using DroidCam Client in the background).
The example has many options, that you can change.
I can use the sliders to adjust Exposure Compensation or Quality. But they do not appear to work.
Nothing except form image capture does not appear to work. The same goes for the QML example.
Has anyone tried those examples?
Is there a way to make the functions provided by the example work?
Is there another way to make those changes?
I am using Window 10 with the latest updates, but I have tried the example a couple moths ago, and the results were the same.

Kinect SDK c++ grab and press gesture

I've been working with Kinect for a few months and I've used OpenNI and Kinect for Windows SDK since then. A few months ago, when I started using it, I was usinf C# with WPF to create menus that a user could use gestures to interact with them using WPF. Using WPF it's pretty easy to detect grab gestures, swipes and press gesture (This is done in a trasparent way to the programmer), but since I've migrated to C++, I have no clue how to detect them. Which functions of the Kinect SDK are used to do this or where can I find a tutorial regarding this matter?
Many thanks!
I realize it's an old question, but I had the same problem and haven't found an answer. What I did found was this post on MSDN forums stating that those gestures are integral part of WPF/XAML and cannot be used without it. Person from url i linked below said: "I would say that press, pan and zoom as you found them are no "general gestures" out of the box, only interactions with some WPF/XAML controls inside a KinectRegion." Good thing is that those functions are not that hard to implement.
https://social.msdn.microsoft.com/Forums/en-US/59cf4671-98cc-4fe5-a3e0-6ecc612cde3c/swipe-gesture-in-v2-sdk?forum=kinectv2sdk

How to work with Interface builder and Rubymotion. Workflow

I am building an iOS app using Rubymotion. I am constructing the UI with the help of Interfaceb Builder. In the screen that I am working on I got the following elements:
Navbar
Label
TableView
I am populating the tableview via an API call. All works fine but I am not sure I am doing things like I am supposed to do. From what I can understand IB is only used to "draw" the UI instead of coding it, nothing more?
This is my controller code. Again, it works fine but I think I am not following "best practice".
http://pastie.org/5368976
There are many different ways of figuring out how you want to build your views.
If you are not doing a crazy amount of custom designed UI, then I don't see why I would not use something like #colinta's Teacup.
I would avoid using storyboards to build a UI. Please see the thread here.
On that note, don't hesitate to check out the discussions on the Ruby Motion Google Group if you can't find the answers on SO. The group seems very active.
Also, IRC: irc.freenode.net, #rubymotion

Getting d3.js to work with raphael.js

I have recently implemented some data visualisation using d3.js, I'm now trying to get this to work for Internet Explorer browser versions 7 and above. The common suggestion to get this to work, is to combine d3.js with raphael.js, which is a cross browser graphics library.
There already seem to be some implementations of such libraries such as
r2d3.js :
d34raphael.js :
I'm trying to understand if these existing implementation already have d3's capability of data binding and the physics implementation of the force layout to implement something as simple as this d3 example : http://bl.ocks.org/1095795
I have been looking into this too and a number of options came up.
Chrome Frame - A browser plug-in that actually uses chrome underneath, meaning SVG just works. This is great if you're able to deploy plugins to the browser, for a real commercial environment however this may not be possible.
SVG Web - The aim is it bring SVG to all browsers. It looks like a fairly large project, one that's had Google's input. This doesn't however work out of the box with D3 though I don't know much about the issues.
D34Raphael - You've mentioned this one, I found again it doesn't work out of the box. Check the project out on GitHub, there hasn't been any commit activity in months and there's some pull requests "first pass on trying to get support for .on() required for event binding". If it doesn't support events, is that an issue to you? I'd generally keep away from this one.
R2D3 - Again another one you mentioned. I took the Sankey example from the D3 website and had to make a few changes to get it working. The main things I couldn't get working (Drag Events, Groups - though can use an alternative). It took about a day of effort to get the example working in IE8 and I believe is in a useable state. The project on GitHub is also much more active, the developer is committing, pulling work in and is very active on discussions etc. This gets my vote.

Building dashboards in django

I have a django app and I would like to display some graphical data visualization to my users. I am looking for an easy-to-use package that would allow me to add graphs and widgets.
The kind of widget I want to build is a kind of speedometer dial that is red at one end and green at the other. As a user completes their job over the day, the graphic/widget adjusts itself. The dial moves from red to green.
I also want an S-curve graphic that shows the cumulative amount of work accomplished against planned. That is kind of an x/y line plot.
My question are: How easy is this to implement? Are there any add-ins libraries or packages that do this already? I am trying to keep my entire application open-source. I've seen a couple subscription services that do this type of thing, but I can't stomach the cost.
I don't mind using ajax or jquery to implement such a thing, but I would like the most elegant and maintainable solution.
Any advice or examples on how to tackle this project?
There are lots of good javascript libraries these days, but all require some effort to learn how to use. I have not found one that really is easy to use, I guess because everyone wants something different. My general experience has been the more effort you put into learning them, the more you get out.
Google has gauges: http://code.google.com/apis/chart/interactive/docs/gallery/gauge.html
Also
http://www.flotcharts.org/
http://philogb.github.com/jit/
http://www.highcharts.com/
http://www.jqplot.com/
Or really take control:
http://mbostock.github.com/protovis/
As first, see the following grid (https://www.djangopackages.com/grids/g/dashboard-applications/) on djangopackages.
Not sure if that's exactly what's asked for, but you might take a look at django-dash (https://pypi.python.org/pypi/django-dash).
It allows each user to make his own dashboard (from plugins available). Those dashboards can be made public.
Some screenshots (http://pythonhosted.org/django-dash/#screenshots).
It's modular and plugin based, so you need to make a plugin and widgets for every specific feature (in this particular case - the speedometer plugin and widgets for it). Each plugin/widget can include own JS/CSS when being rendered.
See the following chart usage examples:
D3.js integration examples (https://github.com/barseghyanartur/django-dash/tree/master/example/example/d3_samples).
Polychart2.js integration example (https://github.com/barseghyanartur/django-dash/blob/master/example/example/bar/).
protovis is no longer under active development, but they started a new poject: http://d3js.org/
You may choose from these packages:
https://www.djangopackages.com/search/?q=dash