Posts

android - java.lang.RuntimeException: Manifest merger failed : uses-sdk element cannot have a "tools:node" attribute -

i getting error again , again error:execution failed task ':quickscroll:processdebugandroidtestmanifest'. > java.lang.runtimeexception: manifest merger failed : uses-sdk element cannot have "tools:node" attribute i tried using tools:node="merge". this manifest file <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="musicplayer.player.music.audioplayer.musicplayer" android:hardwareaccelerated="true" android:versioncode="49" android:versionname="3.5"> <uses-permission android:name="android.permission.wake_lock" /> <uses-permission android:name="android.permission.modify_audio_settings" /> <uses-permission android:name="android.permission.write_external_storage...

c++ - Movie Weekend Codechef Beginner Section : Runtime Error -

i have written following code problem, ideone doesnt give me runtime error compiler codechef giving me one. compiler in codechef gcc 4.9.2 problem [link : https://www.codechef.com/problems/moviewkn] little egor huge movie fan. likes watching different kinds of movies: drama movies comedy movies, teen movies horror movies. planning visit cinema weekend, he's not sure movie should watch. there n movies watch during weekend. each movie can characterized 2 integers li , ri, denoting length , rating of corresponding movie. egor wants watch 1 movie maximal value of li × ri. if there several such movies, pick 1 maximal ri among them. if there still tie, pick 1 minimal index among them. task egor pick movie watch during weekend. expected input the first line of input contains integer t denoting number of test cases. the first line of test case description contains integer n(number of films). the second line of test case description contains n integers l1, l2, ...,ln (l le...

Microsoft Excel 2016 T - tests -

i using microsoft excel 2016 data analysis, can carry out test fine cannot produce t value along p value? the function t.inv can used critical values. documentation describes "returns left-tailed inverse of student's t-distribution." thus, e.g. t.inv(0.05,9) returns value -1.83311 . corresponding right-tailed value abs(t.inv(0.05,9)) = 1.83311 returns right-tailed version of more traditionally used in stats books. there function t.inv.2t might prefer if using 2-tailed t-test. the dots in function names t.inv unusual in excel naming conventions. reason behind decade excel used statistical functions mathematically correct had implementations not numerically stable. these tended fine in 99% of cases behave poorly when applied values several standard deviations away mean. microsoft responded persistent criticism , (with excel 2010?) revamped statistical functions. old version kept reasons of backwards. new versions have similar names in cases use dot. ex...

javascript - How to get ENV type Laravel + VueJS + Homestead -

i developing app using laravel + vuejs + homestead , knows on laravel 5.2 have env file can set env variables... in way can access javascript code! i have read proccess.node_env don't know if got right looks works on npm start no? running app through homestead don't know how it! thanks in advance! you dump app_env environment variable page hosting javascript , later access or pass vue. <script type="text/javascript"> var env = "{{ env }}"; </script> and in controller... $env = getenv("app_env"); would value of app_env

java - Jar Sound Loading Error NullPointerException -

i have next class stores sounds i'm gonna use game i'm doing, i'm trying test jar file see if working , find next error command prompt exception in thread "main" java.lang.nullpointerexception @ com.sun.media.sound.standardmidifilereader.getsequence(unknown source) @ javax.sound.midi.midisystem.getsequence(unknown source) @ com.sun.media.sound.softmidiaudiofilereader.getaudioinputstream(unknown source) @ javax.sound.sampled.audiosystem.getaudioinputstream(unknown source) @ assets.audiostreaming.loadmusicassets(audiostreaming.java:27) @ crossymain.mainmenu.<init>(mainmenu.java:64) @ crossymain.principal.main(principal.java:18) this class i'm storing audio assets package assets; import java.io.ioexception; import javax.sound.sampled.*; public class audiostreaming { private static clip mainmenu,bgm,coinp,gameover,trainalert,birdgo; private static audioinputstream in_mainmenu,in_bgm,in_coinp,in_gameover,in_trainal...

asp.net web api - Managing AutoFac object creation for UnitOfWork -

Image
i new architecture, in process of learning , designing application end end. have below architecture , using autofac manage object creation. all businessobject contracts have been setup on webapi startup , startup can startup autofac configurations/modules. i use unitofwork/repository pattern , resides beyond business layer, not want refer unitofwork in webapi cannot startup unitofwork otherwise. can please give me inputs on should architecture/design/autofac unitofwork implementation? in app_start register web project specific dependencies (controllers, etc). have static method in bl layer registers unit of work, repositories, etc. call static method in app_start when web dependencies being registered below: //app_start (web project) var builder = new containerbuilder(); var config = globalconfiguration.configuration; myproject.businesslayer.registerdependancies.register(builder); <-- register unit of work here in static bl method builder.registercontrollers(t...

c# - Right paddle not moving in pong game for unity -

Image
i trying allow player, in pong game, control both paddles. however, reason 1 paddle controllable while other nothing. here image of paddle property bar. and here code right paddle should controlled arrow keys. using unityengine; using system.collections; public class paddleright : monobehaviour { public vector3 playerposr; public float paddlespeed = 1f; public float yclamp; void start() { } // update alled once per frame void update() { float ypos = gameobject.transform.position.y + (input.getaxis("vertical") * paddlespeed); if (input.getkey(keycode.downarrow) || input.getkey(keycode.uparrow)) { playerposr = new vector3(gameobject.transform.position.x, mathf.clamp(ypos, -yclamp, yclamp), 0); print("right padddle trying move"); } gameobject.transform.position = playerposr; } } i can't seem figure out anywhere why won't move.. please, awesome because have checked everywhere @ point. thanks! ...