Posts

visual c++ - OPOS_E_NOSERVICE after return from DllGetClassObject() in simple ATL COM OPOS Service Object -

an example msr opos service object writing not initializing properly. adding question others run same problem since various searches resulted in no whatsoever. my question is: how can determine method in opos service object missing? there utility of kind can exercise opos service object , tell me missing? there way determine methods interface expected provide , missing? i following procedure in writing opos service object using atl in order learn how opos service object created. using visual studio 2005 under windows xp. test basic functionality using ncr retail services manager (rsm) utility create profile msr in order test basic functionality of mag stripe reader simulator service object. the visual studio project creates com object , registers properly. when attempt use diagnostics function of rsm on service object profile receive error of opos_e_noservice . have created log file logging function in com object shows service object loaded, dllmain() function of com obje...

linux - How can i execute commands inside containers during host provision -

i using vagrant build docker host , have shell script install required packages host , script build , run containers vagrant file config.vm.provision :shell, :inline => "sudo /vagrant/bootstrap.sh" inside run containers like docker run -d . .bla bla .. . this works fine have ssh container , run make deploy install stuff. is there way can run make deploy within bootsrap.sh . the 1 way make entry point every run, i want when provision host command should run inside container , show me output vagarnt shows host use docker exec see doc http://docs.docker.com/reference/commandline/exec/ for example docker exec -it container_id make deploy or docker exec -it container_id bash and make deploy inside container

android - Different font for Some activities using Calligraphy Library -

i using calligraphy library using custom font in application. set custom font whole application default font using calligraphyconfig , in application class in #oncreate() method , working fine. problem comes when need change font of 1 activity (settingsactivity). i tried using custom font in style didn't change font of activity. following code of style <style name="englishactivitiestheme" parent="apptheme"> <item name="android:textviewstyle">@style/apptheme.widget.textview</item> </style> <style name="apptheme.widget.textview" parent="android:widget.holo.light.textview"> <item name="fontpath">fonts/roboto-regular.ttf</item> </style> in manifest <activity android:name=".settingsactivity" android:theme="@style/englishactivitiestheme" android:parentactivityname=".mainactivi...

java - Play Framework Ebean query retreival -

i want show previous 5 transactions of signed in user in banking app. public static model.finder<string,transaction> find = new model.finder<string,transaction>(string.class,transaction.class); public static list<transaction> fetchtransactions (string currentuser) { return find.where().eq("user.username",currentuser).setmaxrows(5).findlist(); } i tried ebean.find function: @inject list<transaction> list = ebean.find(transaction.class).fetch("transnature").fetch("amount").where().eq("user.username",user.findbyemail(request().username()).username).findlist(); what doing wrong? if want last 5 transactions, have include order respective column, transactiondate descending order. otherwise ebean default, fetch rows order id in ascending order. first 5 rows transaction table. try this, public static list<transaction> fetchtransactions(string currentuser) { return find.where().eq("user.u...

Run Cucumber scenario outline by range on line numbers -

i know it's possible run specific examples in cucumber cucumber tests/features/my.feature:141 #just example 141 cucumber tests/features/my.feature:141:151 #just examples 141 & 151 what syntax run range of examples 141 151? cucumber tests/features/my.feature:141-151 #this not work if helps, here scenario outline snippet... assuming 'tc-44' on line 141 in file scenario outline: running scenario subset of examples given testing subset , scenario outline many examples can run subset providing range examples: | test-case | | tc-44 | | tc-45 | | tc-46 | | tc-47 | | tc-48 | | tc-49 | ... | tc-100 | from command line can run specific scenarios same feature file using colon between line numbers, this: cucumber tests/features/my.feature:37:52 if scenarios defined @ lines 37 , 52, both executed cucumber. you can likewise run specific examples referencing line number. in case, work: cucumber tests/features/my.feature:141:142:143:144:145:146:147:148:...

javascript - How to use JQuery UI components in Aurelia getting started app (navigation app) -

i able run aurelia app following steps provided in getting started tutorial. have used bootstrap nav-bar in skeleton application. possible use jquery ui components in aurelia app. if yes, please explain me how achieve this. thanks in advance. yes, it's possible! i've made jqueryui tabs example you: tabs.html <template> <ul> <li repeat.for="tab of tabs"> <a href="${'#' + $parent.id + '-' + $index}">${tab.title}</a> </li> </ul> <div repeat.for="tab of tabs" id="${$parent.id + '-' + $index}"> <p>${tab.text}</p> </div> </template> as can see, i've copied boilerplate html of jqueryui tabs component, , created bindable property tabs which array of objects that: [{title: "", text: ""}] . tabs.js import {bindable, inject} 'aurelia-framework'; import $ ...

objective c - Application is not showing in full screen in xcode 6 simulator using SHViewPager? -

Image
i using shviewpager library swipe between viewcontroller? application not showing in full screen? right side blank? can regarding? using same code provided in example test still appear blank on right side.