microsoft band ioexception in Mscorlib.dll - windows-phone-8

I am developing an application for windows phone and microsoft band, the application consists of several pages.
I pass parameters between pages, but the page you are methods of microsoft band and libraries, when I try to run it more than once, gives me the following problem
'microsoft.band IOException in Mbcorlib.dll'
and do not know why.
I think it is because it runs more than once, as I call it from the main and other pages, not to mention giving me
global::System.Diagnostics.Debugger.Break();

An application can have only a single, valid IBandClient instance (i.e. connection to the Band) at any given time. If you have multiple pages that each connect to the Band, and you navigate between them without first closing/disposing of the connection before the navigation, then you can expect to see Band communication errors.
Without more specific information about what those pages are doing (e.g. how they're using the Band), it is difficult to guess at the problem you are having.

Related

Can I access a Prox card from within a web page?

I have an internal web based utility that we use to keep track of employee training. Currently, in order to indicate that training has been completed, the employee being trained has to input their employee number and a PIN. Then, the person conducting the training has to do the same. This utility runs on dedicated touch screen computers that run Chrome in kiosk mode.
Everybody in the company already carries a Prox Card. I also have a 5025CL reader. Getting the information about which employee carries which card is an issue I can handle. What I'm having an issue with is being able to access the smart card reader from the web page. I came across the Smart Card Connector from Google, but it appears to only work on ChromeOS.
For reasons that are probably pretty obvious in 2017, I'd like to avoid Java or Flash for interfacing with this hardware. I think my ideal would be an extension for Chrome that can recognize a special tag (probably a <div> with a specific id) and display instructions to scan that card. Once it detects a card scan, it submits the form. Obviously writing a little JavaScript to pull that together is no issue.
I am open to alternatives, but would also like to avoid going back to Internet Explorer. I originally ran IE on these computers, but due to some rendering issues switched them all to Chrome.
Sadly I was unable to solve this issue in my preferred way (with a plugin/extension to Chrome for interacting with a Smart Card reader). But I was able to get it working by using CefSharp in a VB.Net project. The VB.Net code is able to interact with the Smart Card reader (in my case HID 5025 CL) and pass those results to the web page being processed by CefSharp.
More detail (and some code) can be found as the answer to another question.

Couchbase admin tool falling over with filtered document list

I'm using the couchbase admin tool and one of the most useful features for me is the ability to go into the documents of a particular bucket and then using the document filter dialog I type a document prefix that I've reserved for a particular document type and then I immediately get a filtered list of just documents of this type.
For instance, if I had a bucket called "sports" which had data for all sorts of sports, I might have set of records related to tennis, football, etc. and let's assume that the ID's of these documents were all prefixed with the particular sport in question. So in this case I'd simply put football into the Document Filter dialog and would expect to see just those documents whose ID's start with "football". This is happening as I type. This functionality works perfectly fine on my main development machine but on my laptop and in my production environment typing results in nothing as I type. I can press the "Lookup Id" button on any environment and as long as a proper ID has been specified it will load the document but the real-time filtering is for me critical to making the admin functionality useful to me.
It's worth mentioning that both my main dev machine and laptop are on OSX and production is Ubuntu. Also of note, my main development environment is still creeping around on version 2.0.1 because I'm afraid of losing this functionality but my laptop is running 2.5.1 and I think prod is the same.
Also, looking at the network panel in the debugger I do notice an important variation:
Both laptop and main dev machines load the document viewer without any JS errors
Independant of typing on into the filter dialog my main dev fires off REST calls periodically to: http://couchserver:8091/pools/default?uuid=xxxxxx&waitChange=20000&etag=xxxxxx
As soon as I type into the filter dialog I see network requests that look like this: http://couchserver:8091/couchBase/reference_data/_all_docs?startkey=%22football%22&endkey=%22football%EF%BF%BF%22&skip=0&include_docs=true&limit=21&_=1399627171015
My laptop, where the functionality doesn't work, does also seem to have the basic polling message listed above but when I type into the filter dialog no message is sent (and no JS error thrown either). Just silence. :(
It appears from IRC and other channels that this functionality has been removed because it was causing stability problems with large datasets. This is a bit worrisome to me and I still feel strongly that this functionality is highly desirable in an admin tool (at least in development environments although I would argue both prod and dev).
Anyway, while the UI still uses the "filter" terminology I think it's fair to say the filter terminology has been removed. I will now have to write my own admin interface. :(

Sharing session variables between Vaadin and embedded applications

I have a Vaadin v6 application that uses the embed component to show a JSP page from another application (JPivot, in this case). Both applications are running in the same application server (Tomcat). I need both applications to communicate and I'm trying to do this by using session attributes. However, each application has its own session and so one is ignorant of the other attributes. My question is how to make these applications communicate without using a database or an external file? It can be other solution than session attributes.
What you wish to do is either IPC between two web apps,
or sharing some informations between them.
If you have a cache available (memcached or similar) you could
store/retrieve the information there.
If no cache is available, then CrossContext=true might help you.
With this you can call "the other" webapp from inside the servlet/request.
Here is a simple explanation how this works
http://lukaszbudnik.blogspot.ch/2009/06/session-sharing-in-apache-tomcat.html
If you google for "tomcat session sharing" you will get many more results.
Please note that this CrossContext stuff only works as long as they are in the same tomcat instance.
As soon as you add another tomcat instance for load balancing or high availability this will break. In that case you should use some sort of message bus or message queue.

Webrtc no video when users are on different network

So I have a website set up. With a clienta page and a clientb page.
This is basically a split version of this site:
https://webrtc-demos.appspot.com/html/pc2.html
I am using signalr (websockets) to exchange information between the clients.
When a user opens up both cleinta and b on the same computer it works fine.
When a user opens up clienta on one computer and on another computer opens up clientb BUT both computers are on the same network, it works fine.
When a user open up clienta on one computer and on another computer opens clientb BUT on different networks there is no video or audio.
When the ice messages are exchanged i pass back a number so i know the order its sent. On the opposite end they dont always arrive the same order, but audio #1 always gets there before audio#2. and the same with video.
In all cases im using chrome dev 24.
I realize sequence and timing are everything with webrtc. Im just not understanding how it can work on separate pcs on the same network but not different networks. I should point out that when i say same network ive test both at work with 2 pcs and at home with 2 pcs. so i dont think its a firewall thing.
Any ideas?
I did check out https://apprtc.appspot.com/ as its a slightly more relevant link. This lead me to adding a couple settimeouts though they didnt seem to help.
One last thing, i did mention about the ice messages. I should also note that both sides send and receive all the messages. an offer is created and an answer is created. Hence, it working on same network machines.
Update:
Im using jsep and all the latest syntax according to webrtc.org
Update 11/15/2012:
So is there a open source package for creating a media relay?
Specifically .net, but could be php. The current site is public facing, this is how I was able to test on multiple networks. So it seems like I just need another endpoint for the media relay.
Updated 11/16/2012:
In hopes that I'll get it working or get valuable input from other developers I'm putting my code out on github.
https://github.com/thorst/RTC
Updated 11/21/2012
The code now works for everything except different network connections. (as described in this post)
Updated 5/28/2013
This years google io was much better at explaining turn, stun, and ice.
http://www.youtube.com/watch?feature=player_embedded&v=p2HzZkd2A40
For reference here are the older helped me get started
http://www.youtube.com/watch?v=E8C8ouiXHHk
http://www.youtube.com/watch?v=dAhhniqwkp8
Chrome doesn't implement TURN yet. STUN will only help with some types of NATs but not with symmetric ones which are prevalent in home routers. You need a media relay with a public IP to connect two devices that are behind symmetric NATs and the standard for that is TURN https://www.rfc-editor.org/rfc/rfc5766 .

Novell Identity Manager (NIM) 3.6: How to make an image part of the resources for HTML reports?

This question might not belong here, and since this is related to HTML and reporting, I thought I could ask nonetheless.
I'm currently working to list all of the user identities in Designer for Identity Manager, by Novell.
I used the User Application connector and built the required queries. I also created a Provisioning and Request Definition with the necessary fields.
I can populate an HTML table with the results of the selected query, and get the user information from the Vault. Aside, I could use the organization's logo on the top-left-hand corner, the project name on the top-right with the report title just below on the right-hand side.
My concern is to set the organization's logo on the report.
Question
How can I define this image logo as an image resource into NIM so that I can use it in my HTML identity report?
Shall it suffice to include the path of the image into the HTML document? If so, how shall I set this image path? I don't know much about HTML.
EDIT #1
I know that NIM uses Tomcat as Web Server to handle the responses. Perhaps moving the image in its directory should suffice?
If so, how can I find out what is this path where I can put the image, so that it is considered part of the Website resource?
Father Ramon, the patronizing saint of IDM, responded in this thread in the Support Forums.
It is the path to where to leave the file that is incredibly non-obvious. He says the path is:
/opt/novell/eDirectory/lib/dirxml/rules/manualtask/mt_files or
/usr/lib/dirxml/rules/manualtask/mt_files (depending on whether you are
using eDir 8.7.x or 8.8.x. IDM will automatically find it there and
attach when referenced.
But I see in another thread that some people had issues getting this to work.
You may find the Support Forums (I linked the IDM forum specifically) helpful. A lot of people monitor those on this topic.
Also, you may find Novell Cool Solutions helpful for user contributed content. (I write as geoffc there).
In the IDM space, I have written a large number of articles that may help you in general, that are list on my Wiki Page.
If all that fails, the User Application Workflow engine uses a different email engine that may be more flexible. (Thus you could call a Start Workflow for a workflow with just a single Email action in it).
Additionally in IDM 4 there is library, lib-AJC included, full of ECMA functions (Which would work perfectly well in IDM 3.6 and 3.5) that include a set of emailing functions. If you have a driver configuration from IDM 3.6.1 odds are good you will have a lib-AJC in your tree already.