Posts

scala - Runtime Context Links to wrong output type -

it seems processfunction class' context looking flink.util.outputtag output tag it's context.output() function instead of streaming.api.scala.outputtag . , datastream.getsideoutput() looking streaming.api.scala.outputtag sample code of mine: val outputtag = outputtag[(string, long, long)]("output") //stuff .process { new processfunction[(string, long), (string, long, long)] { lazy val state: valuestate[event] = getruntimecontext.getstate(new valuestatedescriptor[event]("stats", classof[event])) override def processelement(value: (string, long), ctx: processfunction[(string, long), (string, long, long)]#context, out: collector[(string, long, long)]) { val current: event = state.value() match { case null => event(value._1, 1, value._2) case event(key, count, total) => event(key, count + 1, totaltos + value._2) } state.update(current) ctx.output(output...

Skype for business call plugin -

Image
i beginner developer , looking make plugin in skype business (=sfb). plugin component of menu of right click in contact , makes possible place call via telephone platform. can find examples (using ucma) in same context please? i not make sense develop such plugin. reason skype business (=sfb) can perform on own. 1 of key feature skype business , required called plus cal , example session boarder controller ( e.g. audiocodes mediant 1000 ) or ip-pbx ( e.g. avaya aura session manager 6.1 ) connect sfb telephone platform. via construct can dial phone numbers directly via skype business client , receive pstn calls via skype business. wiki

Looping two arrays to make html table in php -

Image
i have 2 array, 1 meant table heading , second meant table data. table heading array array ( [0] => techrepublic.com [1] => office.microsoft.com [2] => en.pstrecovery.net [3] => easeus.com [4] => download.cnet.com [5] => datanumen.com [6] => 2324 ) table data array array ( [software services] => array ( [datanumen.com] => 2 [office.microsoft.com] => 3 [easeus.com] => 8 [download.cnet.com] => 9 [en.pstrecovery.net] => 10 ) [software services in delhi] => array ( [en.pstrecovery.net] => 1 [datanumen.com] => 3 [office.microsoft.com] => 4 [easeus.com] => 9 [download.cnet.com] => 10 ) [orignal software services] => array ( [en.pstrecovery.net] => 1 [easeus.com] => 6 [download.cnet.com] => 7 [datanumen.com] => 8 [office.microsoft.com] =...

c++ - how to access a variable in one .cc file from another in omnet++ -

i working on omnet++ project , looking solution following problem. have variable "numsent" in file a.cc , want access file b.cc. simplified code snippet below: a.cc void a::handlefunc(cmessage *msg) { frame=encapsulate(msg); numsent=frame.getvalue(); } a.h protected: long numsent; public: void setupdate(csmacamac *obj); long getupdate(); b.cc #include a.h void b::updatefunc() { *obj=new a(); obj->setupdate(obj); ev<< "inside updategateway"<<obj->getupdate(); } however not retrieve value in a.cc instead gives default 0 value. tried declaring variable global using extern command. throws error. can suggest needs done. wiki

Weka java classification class or not -

already done: in code there 10 flowers , have various data on 1 flower. trained data weka , when test it, gives correct answer new data ( if new test data applied model, give flower name) classifiers.add(new naivebayes()); classifiers.add(new naivebayesupdateable()); (classifier c : classifiers) { double starttime = system.currenttimemillis(); classifier cls = c; cls.buildclassifier(train); evaluation eval = new evaluation(train); eval.evaluatemodel(cls, test); double estimatedtime = system.currenttimemillis() - starttime; txt.settext(txt.gettext() + classutils.getclassname(cls.getclass()) + " c: " + eval.correct() + " i: " + eval.incorrect() + " cp: " + 100 * (eval.correct() / (eval.correct() + eval.incorrect())) + "% t:"+estimatedtime/1000+"\n"); } want do: don't want know flower among 10 flowers. if in...

meteor - easiest way to format long numbers in javascript to the right unit? -

Image
i building web app can show system information on website. shows hardware information (temps, ram, cpu, fan speeds , on) of pc "server" running on. opens web server showing information accessible on network. using meteor, blazejs , systeminformation ( https://github.com/sebhildebrandt/systeminformation ) this. system information shows information gets server long numbers. html: <template name="main"> {{#if subscriptionsready}} <p>cpu manufacturer: {{get (static) 'data.cpu.manufacturer'}}</p> <p>cpu brand: {{get (static) 'data.cpu.brand'}}</p> <p>cpu model: {{get (static) 'data.cpu.model'}}</p> <p>cpu speed: {{get (static) 'data.cpu.speed'}}</p> <p>cpu cores: {{get (static) 'data.cpu.cores'}}</p> <p>total memory: {{get (dynamic) 'data.mem.total'}}</p> <p>free memory: {{get (dynamic) 'data.mem.free'}}</p...

java - Text not visible in my multi client chat GUI application? -

edit have implemented multi client chat server transform emergency response 'server-clients' ad hoc network. currently, program , running in chat window typing in text box not appearing in eventlog (neither of clients or server). don't know causing error? how should resolve issue? here part of code: public class servergui extends jframe implements actionlistener, windowlistener{ private static final long serialversionuid =1l; // stop , start buttons private jbutton stopstart; // jtextarea communication interface private jtextarea commwin, eventlog; // port number private jtextfield tport; // server private vserver serv; // server constructor // // // // commwin = new jtextarea(120,120); commwin.seteditable(false); appendcomm("vanet communication window.\n"); middle.add(new jscrollpane(commwin)); eventlog = new jtextarea(120,120); eventlog.seteditable(false);...