Posts

java - How to receive base64 conversion [audio file] through TCP/IP with less seconds? -

case: 2 different linux machine. client machine running on 'c'programming , sever receiving machine running on java. my code: appendedlen = "2687868"; int lengthtocheck= infromclient.read(ch, 0, ch.length); while (appendedlen >= lengthtocheck) { request = request + string.valueof(ch).trim(); if ((appendedlen - lengthtocheck) != 0) { ch = new char[appendedlen - actuallen]; actuallen = infromclient.read(ch, 0, ch.length); lengthtocheck = lengthtocheck + actuallen; } else { (" received entire response"); break; } } for receiving, take 6-7 mins. get inputstream socket , use apache commons read byte[] follows ioutils.tobytearray(inputstream)

mapreduce - Map-Reduce Logs on Hive-Tez -

i want interpretation of map-reduce logs after running query on hive-tez ? lines after info: conveys ? here have attached sample info : session open info : dag name: select a.model...) info : tez session closed. reopening... info : session re-established. info : info : status: running (executing on yarn cluster app id application_14708112341234_1234) info : map 1: -/- map 3: -/- map 4: -/- map 7: -/- reducer 2: 0/15 reducer 5: 0/26 reducer 6: 0/13 info : map 1: -/- map 3: 0/118 map 4: 0/118 map 7: 0/1 reducer 2: 0/15 reducer 5: 0/26 reducer 6: 0/13 info : map 1: 0/118 map 3: 0/118 map 4: 0/118 map 7: 0/1 reducer 2: 0/15 reducer 5: 0/26 reducer 6: 0/13 info : map 1: 0/118 map 3: 0/118 map 4: 0(+5)/118 map 7: 0/1 reducer 2: 0/15 reducer 5: 0/26 reducer 6: 0/13 info : map 1: 0/118 map 3: 0(+5)/118 map 4: 0(+7)/118 map 7: 0(+1)/1 reducer 2: 0/15 reducer 5: 0/26 reducer 6: 0/13 info : map 1: 0/118 map 3: 0(+15)/118 ...

excel - Copy cell values to different Workbook -

firstly, let me apologise if question has been answered somewhere else. had couldn't find me. secondly, i'm sure there far more simple way i'm new vba , i'm trying teach myself go along. ok, have sheet @ end of workbook compiles information previous sheet , want copy values in row 2 workbook have network drive. i've managed work on same sheet not workbook (without using userform). it comes error 'invalid qualifier' line cells(emptyrow, 1.value - dateraised.value here code below, sub commandbutton1_click() dim emptyrow long dim dateraised long dim customername string dim siteaddress string dim callreason string dim customerorderno long dim invoiceno long dim covernoteno long dim findings string dim producttype string dim supplier string dim attempts long dim condition string dim dateclosed long dim creditgiven string dim creditvalue long dim issuedays long dim comments string dateraised = cells(2, "a").value customername = cells(2,...

which is lightest linux distro to install utility softwares in vm environment? -

my application running on ubuntu 14.04 vms. , decided install utility software security gateway , imq on individual vms. i think overkill run security gateway on full fledged os. there better way, wherein can use os lightest memory, filesystem , cpu footprint ? just applications can work done using lighttpd in-place of complete webserver. i need of lightweight server image, easier store . lubuntu takes 800+ mb. think https://help.ubuntu.com/community/installation/minimalcd do. let me try , post results.

node.js - Having trouble with Mongod testing a route -

i've been following online tutorial @ thinkster "building first mean stack app" @ https://thinkster.io/mean-stack-tutorial#beginning-node im trying test route see if correct using curl -x put http://localhost:8080/posts/<post id>/upvote and mongod throws 505 error saying <h1>cast objectid failed value &#34;57bcdb57bcdb255600e6d114e7afb9&#34; @ path &#34;_id&#34;</h1> casterror: cast objectid failed value "57bcdb57bcdb255600e6d114e7afb9" @ path "_id" @ mongooseerror.casterror (/home/ubuntu/workspace/flapper-news/node_modules/mongoose/lib/error/cast.js:19:11) @ objectid.cast (/home/ubuntu/workspace/flapper-news/node_modules/mongoose/lib/schema/objectid.js:147:13) @ objectid.castforquery (/home/ubuntu/workspace/flapper-news/node_modules/mongoose/lib/schema/objectid.js:187:15) @ cast (/home/ubuntu/workspace/flapper-news/node_modules/mongoose/lib/cast.js:208:32) @ query.cast (/...

github - What is this git command saying? -

what git command saying? it-staging:master? master part throwing me off. how can branch it-staging have master under/in it? git push my-staging it-staging:master if run git push --help , find example following git push origin head:master push current branch remote ref matching master in origin repository. form convenient push current branch without thinking local name. for question, it-staging:master means push local branch it-staging remote branch master .

javascript - How to disable 'withCredentials' in api call using node.js only (https package) -

i'm using node.js script load in-built https package. when using error: xmlhttprequest cannot load [constructed-api-url]. wildcard '*' cannot used in 'access-control-allow-origin' header when credentials flag true. origin 'http://localhost:3000' therefore not allowed access. credentials mode of xmlhttprequest controlled withcredentials attribute. i'm using node.js 4.4.3, , https api docs not mention withcredentials. the script being used this one . is there anyway set xhr call's withcredentials false using node.js https? i looking analogous jquery ajax call (just focusing on xhr field): $.ajax({ type: 'post', async:true, url: 'https://someapp.constructed.url/token', datatype: "json", contenttype: 'application/x-www-form-urlencoded; charset=utf-8', xhrfields: { withcredentials: true }, headers: { ...