Posts

html5 - Soundjs is not playing sound in iPad1 and Window Lumia Phone -

i new html5 developer, using soundjs library play audio in html5 web application. soundjs not able play sound in ipad1, window phone , of android mobile. seem not initialized audio plugin, that's hwy not able load file , dispatch complete event. using code (soundjs library import in script tag) : if (!createjs.sound.initializedefaultplugins()) { alert("return") return; } var audiopath = "assets/audio/"; var manifest = [ {id:"music", src:audiopath+"watersplash.mp3|"+audiopath+"watersplash.ogg"}, {id:"thunder", src:audiopath + "ohh.mp3|"+audiopath + "ohh.ogg"} ]; this.displaymessage.innerhtml = "loading audio"; //var loadproxy = createj...

google app engine - How can we upload video to a specific user account in using youtube api in android -

i creating application in want application users upload videos application's youtube page in place of own user account. i have tried/studied below mentioned methods achieve above requirement. service account --> per investigation cannot use service account access youtube api. hard-coding user id , pwd in application , call youtube apito token. have used guidelines in this url. below observations/investigations. a. able receive token google b. in subsequent call received token getting 401 response code. use oauth 2 protocol token request. in not sure how can pass user id , password access token. if has solution above mentioned problem please share. please let me know if more information required. please don't this; if decide this, it's not youtube can offer support for. the reasons why bad idea outlined in this blog post .

download - How do I integrate an InDesign PDF into my rails app -

i have been given task create rails app can purchase pdf , download it. know pdf have been made in indesign, have no idea how can integrate app. have had @ pdf kit , coverts html pdf, not need. does know whether possible , have ideas, grateful. thank much! you can export file using indesign javascript or applescript. example, export open document desktop on mac: var doc = app.activedocument; var outputfile = file("~/desktop/temp.pdf"); doc.asynchronousexportfile(exportformat.pdftype, outputfile); if you're looking little more involved, take @ idmllib or indesign server . might contain functionality need, although don't have experience them.

Google Analytics API login causes security breach due to web server IP change -

i access google analytics account web server through google's api , poll analytics stats web site have. this has been running smoothly couple of years, hosting company moved vps runs site 1 server , consequence ip number of server changed. the google account system shut down access new server/ip address , has been unable fetch data since then. i can make work locally local server (in denmark), production server in , has been blocked. have tried kinds of wizardry , followed instructions find, confirmed login me on google account security settings , whatnot, google keeps on bouncing me , sending me alerts suspicious login attempts, , tells me after each login attempt: “for security, continue display these events 2 weeks.” and seems these 2 weeks never end, because have tried numerous times during last month or so, , resets , keeps on going no matter how try confirm server legit. i have found 1 possible remedy, not useful one, asked me go page ip address in question , ...

MSBuild - Build Error because of dll Fakes -

configuration : visual studio 2012 premium + update 2 hi, unittest project uses 2 fake assemblies. 1 of theses assemblies produces build error , don't know why. if take off assembly, compilation ok. error "result: unexpected exception occured (-1002 - 0xfffffc16)" i have seen other post same error because of moles assembly. has solution fix issue ? here 1 part of build result : .fakes fakes\technical.sdk.fakes generate ...\workflow.unittests\fakesassemblies\technical.sdk.fakes.dll verbosity: warning x86: false framework version: v4.5 target runtime version: v4.0.30319 referencefiles: 78 ...\packages\automapper.3.0.0-ci1037\lib\net40\automapper.dll ...\packages\automapper.3.0.0-ci1037\lib\net40\automapper.net4.dll ...\lib\directory.proxy.dll ...\lib\platform.common.dll ...\lib\platform.interfaces.dll ...\bin\release\technical.entityframework.dll ...\bin\release\technical.sdk.dll ...\bin\release\technical.servicebus.dll...

addition of matrix in php -

i trying matrix addition in php. here trying input user , make array addition. tried this. have more mistakes here. 1 can give solution this... in advance... <html> <body> <form name="form1" action="matrixaddjs.php" method="post"> enter number of rows matrix : <input type="text" name="ar"> enter number of columns matrix : <input type="text" name="ac"> <input type="submit" name="submit" value="submit"> <script> var row=document.getelementbyid('ar').value; var col=document.getelementbyid('ac').value; var i; var j; var k; var l; var amatrix= new array(); document.write('<table>'); for(i=0;i<row;i++) { amatrix[i]=new array(j); document.write('enter matrix :'); document.write('<tr>'); for(j=0;j<col;j++) { document.write('<td>'); d...

java - FileNotFound exception, when files are in /Applications/Foobar.app on a Mac -

summary - code: file f = new file("dbfile.dat"); f.getabsolutepath(); returns: /applications/dbfile.dat the problem application's resources (3d party jars instance) located in "applications/foobar.app/...". how path install folder without hardcoding anything? details : i'm using 3d party library need provide filename: ls = new lookupservice("dbfile.dat"); when distributed, file placed in root of install folder, next executable files - works great on windows. however, on mac fnf exception because library isn't searching in correct location: java.io.filenotfoundexception: dbfile.dat (the system cannot find file specified) @ java.io.randomaccessfile.open(native method) @ java.io.randomaccessfile.<init>(unknown source) ... try this: url myclass = myclass.class.getresource("myclass.class"); system.out.println(myclass.getpath()); this print out this: file:/home/mike/test.jar!/myclass....