Posts

android - Where is Publishing State for a product in Google in-App Billing -

Image
based on google documentation on link http://developer.android.com/google/play/billing/billing_admin.html#billing-catalog said product has "publishing state" publishing state item's publishing state can published or unpublished . visible user during checkout, item's publishing state must set published , item's application must published on google play. note: not true test accounts. item visible test account if application not published , item published. see testing in-app billing more information. but cant see in product list. there state "active"/"inactive" , these publishing state?

Sending image from C# program to PHP webpage for display -

Image
i'm new c#, , i'm working piece of code: //take snapshot left camera , save current directory "snapshot.png" case key.z: int left = camleft.device.lenscorrection1; camleft.device.lenscorrection1 = 0; thread.sleep(150); bitmapsource bmpsource = camleft.device.bitmapsource bitmapsource; memorystream ms = new memorystream(); bitmapencoder encoder = new pngbitmapencoder(); encoder.frames.add(bitmapframe.create(bmpsource)); encoder.save(ms); ms.seek(0, seekorigin.begin); system.drawing.bitmap bitmap = new system.drawing.bitmap(ms); string filepath = environment.currentdirectory; string filename = system.io.path.combine(filepath, @"snapshot.png"); bitmap.save(filename, imageformat.png); bitmap.dispose(); camle...

javascript - Angular directive ng-if does not evaluate conditional statement -

i'm new web dev , angularjs. i'm trying use directive ng-if display div block if list returned database greater 1, it's not working. misusing directive? i've looked around , haven't found solutions work. currently, both divs displayed , ng-ifs ignored. <div> <div ng-if="listofthings.length > 1"> <h1> {{listofthings.length}} </h1> </br> <div ng-repeat="thing in listofthings"> <label> {{ thing.name }} </label> </div> </div> <div ng-if="listofthings.length == 1" class="col-sm-4 col-sm-offset-4"> <h1> {{ listofthings[0].name }} </h1> <iframe width="560" height="315" ng-src="{{ listofthings[0].embed }}" frameborder="0" allowfullscreen></iframe> </div> </div> i tried code, works in plunker, not in code reas...

c++ - DirectX Transforms not working -

Image
i have begun directx c++ tutorial , drew triangle, whenever try transform it, matrix, never works although followed tutorial step step , looked in msdn tutorial, didn't figure out problem, here's full code: main.cpp: #include <windows.h> #include <d3d9.h> #include <d3dx9.h> #include "define.h" lresult winapi wndproc( hwnd, uint, wparam, lparam ); int winapi winmain( hinstance hinst, hinstance hprevinst, lpstr lpcmdline, int ncmdshow ) { hicon icon; icon = loadicon(hinst, makeintresource(idi_app_icon)); wndclass wc; wc.cbclsextra = 0; wc.cbwndextra = 0; wc.hbrbackground = (hbrush)null; wc.hcursor = loadcursor(hinst, idc_arrow); wc.hicon = icon; wc.hinstance = hinst; wc.lpfnwndproc = wndproc; wc.lpszclassname = ...

java - CDI with Primefaces Charts not rendering properly -

i have 4 primefaces bar charts renders, not. in 1 of them, inject http user session attribute , use render chart (the idea show data corresponds (logged in) user department). there 4 session beans i'm using javax.enterprise.context.requestscoped. sometimes, glassfish destroys instance expected, not. based on exception below, how can resolve it? thanks in advance. the xhtml below shows main code 2 of 4 bar charts: <p:tab title="horas de treinamento (por funci)" closable="true" > <p:barchart id="horasbars" value="#{charthorasfunci.modelhoras}" legendposition="ne" orientation="horizontal" seriescolors="aa5555, 00438f" xaxislabel="horas" yaxislabel="funcis" title="34 horas de treinamento (orçado/realizado) por funci" > </p:barchart> </p:tab> <p:tab title="horas de treinamento (por escritório)" closable="...

asp.net - Async/Await vs TPL vs WCF Service vs Web API: So many choices -

my asp.net 4 web app calls code spawns process long running script. standard output read , returned value updated in database. "fire , forget" bit of code ui remains responsive , user doesn't have wait around these 2 operations complete. end result of these 2 operations not needed calling code don't think need "await" , don't need indication of success or failure. i'm getting confused of available options. best way code these 2 operations sent off on merry way , thing on own? well, "best way" may debatable, proceed tpl using following: task parenttask = task.factory.startnew(() => somemethod(someparameter)); note: if “long running script” calls wcf service, following article on wcf asynchronous programming may helpful. http://blogs.msdn.com/b/wenlong/archive/2009/02/09/scale-wcf-application-better-with-asynchronous-programming.aspx

angularjs - Breezejs + Angular - How to Properly Map Database Property Names? -

i have working , reusable custom <select> directive populates via ng-options , here snippet: ng-options="datum.name datum in data track datum.id" this works intended when use local test json file populate can define name , id properties manually. when using breezejs (which pulling data expected), database has product , deviceid instead of desired name , id properties. i want able pull data, map product , deviceid name , id doing ensures goal of reusability of custom <select> directive. many different entities need map name , id , important reusability. how accomplish this? i've looked @ mapping json entities , jsonresultsadapter thinking right direction. unfortunately, these examples seem missing need (unless i'm missing something). are there other solutions or ways tackle problem? there best practice way of doing using breezejs? thank in advance light can shed. *found solution i using custom directive (but add options-ma...