Posts

How to deploy talend esb route on talend karaf? -

i have created route in talend open studio esb. inside route start cxf service. works great when route running inside studio need deploy on esb runtime. i've exported *.kar file ~/runtime_esbse/container/deploy folder, , in karaf console, after executing osgi:list command can see route: [ 244] [active ] [created ] [ ] [ 80] tmp (0.1) i don't have errors in console logs assume route installed correctly service isn't started (or whole route isn't started @ all). cannot access service should created route. after executing start 244 (244 id of route) nothing happens when execute stop 244 route status changes active resolved (and after start changes active). know how make works? should force route behave inside open studio? advance. edit: i've checked features , looks ok. tmp-feature installed have no idea why doesn't work.

VBA: Dictionary items to string array? -

what trying straightforward. want list of items (values) in dictionary , , save them in array of strings. i'd guess code work: sub printfilters(byval crit dictionary) dim i() string = crit.items() ' stuff end sub however, getting type mismatch on third line. guessing crit.items() 's return value kind of list, not array. msdn pages not mention method's return value's type is, though. is there proper way this? i think variant type try this: sub printfilters(byval crit dictionary) dim variant = crit.items() ' stuff end sub

Android screen sharing using WebRTC -

i have heard screen sharing on desktop using webrtc. android, seems not have information. my question is: is possible use webrtc screen sharing on android?. mean can cast current screen other phone's screen. if 1 yes, how can achieve this? thanks. i'm author of catvision.io - screen sharing software android displays screen of mobile device in browser. explored use of webrtc route turned dead end, because not able deliver latency. lag in communication - due compression - long interactive user actions. switched more traditional vnc-type protocol.

jquery - a javascript function called without arguments -

i trying understand javascript code. banana.reloaduser being called inside function without arguments: function(data) { if (!data.result.success) { alert(data.result.message) } else { /*do something*/ banana.testdata = data; banana.reloaduser(); } } banana.reloaduser defined this: banana.extend({ reloaduser: function(cb, data) { var = this, done = function(d) { $.extend(that.user, d); if ($.isfunction(cb)) { cb(d) } that.trigger("user.reloaded", [d]) }; if (data) { done.apply(banana, [data]) } else { /*do something*/ } } }) 'reloaduser' being called save userinfo data in localstorage. whenever...

Failed to run the Spark example locally on a macbook with error "Lost task 1.0 in stage 0.0" -

i installed spark , run "run-example sparkpi 10", , error message is: "spark-submit examples/src/main/python/pi.py 10" has similar error. 14/11/19 17:08:04 info executor: running task 2.0 in stage 0.0 (tid 2) 14/11/19 17:08:04 info executor: running task 3.0 in stage 0.0 (tid 3) 14/11/19 17:08:04 info executor: running task 1.0 in stage 0.0 (tid 1) 14/11/19 17:08:04 info executor: running task 0.0 in stage 0.0 (tid 0) 14/11/19 17:08:04 info executor: running task 5.0 in stage 0.0 (tid 5) 14/11/19 17:08:04 info executor: running task 6.0 in stage 0.0 (tid 6) 14/11/19 17:08:04 info executor: running task 4.0 in stage 0.0 (tid 4) 14/11/19 17:08:04 info executor: running task 7.0 in stage 0.0 (tid 7) 14/11/19 17:08:04 info executor: fetching http://192.168.1.80:57278/jars/spark-examples-1.1.0-hadoop2.4.0.jar timestamp 1416388083980 14/11/19 17:08:04 info utils: fetching http://192.168.1.80:57278/jars/spark-examples-1.1.0-hadoop2.4.0.jar /var/folders/6k/nww6s1p52yg...

asp.net - Download XML string to text file c# -

i have xml string , need download string .xml file. working on asp.net web application. following code. protected void btndownloadxml_click(object sender, eventargs e) { try { string xmltext = divlogresults.innertext; xmldocument doc = new xmldocument(); doc.loadxml(xmltext); doc.save("myfilename.xml"); system.web.httpresponse response = system.web.httpcontext.current.response; response.clearcontent(); response.clear(); response.contenttype = "text/xml"; response.addheader("content-disposition", "attachment; filename=" + doc.name + ";"); response.flush(); response.end(); } catch(exception ex) { throw ex; } } but getting empty xml text on download named #document.xml. doing wrong. think confusing code. following code d...

How do I send XML data in a post request? -

i'm using python , socket library see i'm sending. i know each line must end crlf. know length of body must sent in headers (with content-length). what don't know, if must send body string ended crlf, or several strings, each ended crlf. and, in last case, must include crlf in length of body ? the length of body should include characters, including cr , lf. if you're sending xml, don't agree each line must end crlf. sending pretty printed xml unnecessary. (that's humans; machines involved in transaction.) i'd remove of , send 1 long string. it's important encode if you're using http protocol. i'd wonder why if you're using raw sockets instead of http. xml on http understood.