Posts

media player - Voice does not record when playing video in video view in android -

i developing application want start recording voice on button click, , want star playing video in video view @ same time. app works on androdi 4.2 , android 5.1 not work on latest device android 7.0. here code public class mainactivity extends activity { button start,stop,play; boolean recording=false; string press_value="exit"; private static final string audio_recorder_folder = "audiorecorder"; boolean let_start_recording=true; imageview startiv,profileiv; boolean recording_is_in_progress=false; videoview vv ; mediaplayer mplayer; relativelayout mainrel; ///new media player string audiosavepathindevice = null; mediarecorder mediarecorder ; random random ; string randomaudiofilename = "abcdefghijklmnop"; public static final int requestpermissioncode = 1; mediaplayer mediaplayer ; @suppresswarnings("deprecation") @override protected void oncreate(bundle savedinstan...

java google developer api not working from GUI environment -

i run java samples in eclipse environment. when tried run basic gui basicuploadapk sample did not worked , seems blocked in authentication request. my question if basicuploadapk sample working in console environment , not in gui environment? best regards, aurelian

php - How to run a win32 console application on Linux/Apache web-hosting? -

the executable uses 2 un-managed dlls & gives output on console. i'm running on xampp/localhost (on pc) & grabbing console output php's exec()/passthru() function. will run same way on typical apache/linux based web-hosting account? if not , can do? in php : <?php exec("tradelogin.exe",$output); //tradelogin.exe win32-console-app, //situated @ xampp/htdocs, couple of supporting binary files & dlls //(compiled on visual-studio-2015) echo $output[0]."<br/>"; echo $output[1]."<br/>"; ?> i can't tell if there permission problems (i'm on windows atm. can't try.) if want run way, need windows emulator (like wine example), , use like exec("wine tradelogin.exe 2>&1",$output); or full path may necessary. note execution of php code stop until program has finished running.

websocket - Watson Speech To Text Latency -

using websockets connect stt. working part. when streaming half hour newcast watson stt find respose time 1 2 seconds on average. periodically experience longer delays. 8 seconds, 10 seconds. things backed , delay can as 60 seconds or more! has else experienced behavior ? have suggestion on how overcome problem? thanks! the event reporting not ibm watson aware of. our customers typically happy latency of speech-to-text service. can please contact technical support through link can bottom of this? https://support.eu-gb.bluemix.net/gethelp/ btw. if can provide transaction-id of 1 of transactions in experienced long delays troubleshooting.

webpack - Vuejs in production: prefix static path -

context i'm building vuejs app , push in production. i've generated files using npm run build , i've uploaded on server (iis). i have lot of other applications on server , can't change how works. here fake example me explain issue: mydomain.com/app1 redirect web-app under folder app1 . add vuejs project i've created new folder - lets vueapp - , access via mydomain.com/vueapp . the thing : static paths generated vue not prefixed vueapp . paths in index.html not want : mydomain.com/static/** instead of mydomaim.com/vueapp/static/** vue request. i tell webpack prefix index.html 's path can't work. assetssubdirectory config/build.js gives possibility change assets sub directory (which static default). can set vueappprefix/static of course, doesn't work. expected: mydomain.com/vueapp/vueappprefix/static/* what get: mydomain.com/vueappprefix/static this obvious. of course can edit index.html hand or add script know if t...

bytecode - Can you "compile" PHP code? -

i know php compiled byte code before run on server, , byte code can cached whole script doesn't have re-interpreted every web access. but can "compile" php , upload binary-ish file, run byte code interpreter? after question asked, facebook launched hiphop php best-tested php compiler date (seeing ran 1 of world’s 10 biggest websites). however, facebook discontinued in favour of hhvm, virtual machine, not compiler. beyond that, googling php compiler turns number of 3rd party solutions. phalanger codeplex (download), wikipedia compiles .net (cil) phc compiles native binaries not active (february 2014) – last version in 2011, last change in summer 2013 roadsend php compiler github , github of rewrite free, open source implementation of php compiler compiles native binaries (windows, linux) discontinued since 2010 till contributors found – website down, stays on github last change 2012 bcompiler pecl extension of php experimen...

xamarin.forms - Changing image size relatively to the view in the ListView in Xamarin Forms -

i have listview contains image, image take size depending on view size or container size appears smaller on phones , bigger on tablets. know , can not access , element name inside listview, alternitive way achive that? use fillandexpand or fill values horizontaloptions , verticaloptions extentions.