Posts

javascript - Karma + PhantomJS TypeError: undefined is not an object (evaulating scope.jackpot) -

i still new unit testing, , honest, there isn't think of testing, cannot build app unless have @ least 1 test case, attempted make simple test case could, on smallest block of code in controller, , doesn't seem working. i believe it's error in test case, , not in controller's code itself, because when view app in browser grunt serve console shows no errors. this error gives me: phantomjs 2.1.1 (linux 0.0.0) controller: mainctrl should attach list of jackpot scope failed /home/elli0t/documents/yeoman projects/monopoly/app/bower_components/angular/angular.js:3746:53 foreach@[native code] foreach@/home/elli0t/documents/yeoman projects/monopoly/app/bower_components/angular/angular.js:323:18 loadmodules@/home/elli0t/documents/yeoman projects/monopoly/app/bower_components/angular/angular.js:3711:12 createinjector@/home/elli0t/documents/yeoman projects/monopoly/app/bower_components/angular/angular.js:3651:22 workfn@/home/elli0t/documents/yeoman projects/monopoly/app...

google play - Application not found on Android TV -

i have app created android tv cannot discover on nexus player when try search in google play store. application has been approved distribution on android tv still not discoverable. any ideas wrong manifest/distribution options causes app filtered out on nexus player devices? make sure mention tv supports leanback: <uses-feature android:name="android.software.leanback" android:required="true" /> and app not require touchscreen: <uses-feature android:name="android.hardware.touchscreen" android:required="false" /> without manifest tags play store may not show app

Objects in Java is printing out junk -

my program simple program involves use of objects. there no errors problem program printing out junk. after asked user name, age , , gender. down below 2 sets of programs. first 1 object or skeleton of person. second 1 print asks user name age gender , prints out. public class person { private string name; private int age,personality,appearance; private string gender; //constructor method. use once public person(string nm, int ag,string gend) { name=nm; age=ag; gend=gender; personality=1+(int)(math.random()*10); appearance=1+(int)(math.random()*10); } //accessor created public string getname() { return name; } public string getgend() { return gender; } public int getint() { return age; } //mutator method. when using "void" no return type public void setname (string nm) { name=nm; } public void setage (int ag) { ...

osx - Clozure CL : an error occurs when requiring Cocoa framework -

i'm trying require cocoa framework on mac os x 10.11.4, cannot require it. log: $ ccl --version version 1.11-r16635 (darwinx8632) $ ccl welcome clozure common lisp version 1.11-r16635 (darwinx8632)! ? (require :cocoa) :cocoa ("ide-bundle" "objc-package" "sequence-utils" "name-translation" "objc-clos" "objc-runtime" "bridge" "objc-support" "compile-hemlock" "hemlock" "cocoa") ? unhandled exception 10 @ 0x992bb43c, context->regs @ #xbfffdbcc exception occurred while executing foreign code @ _class_initialize + 9 received signal 10; faulting address: 0xbf7ffffc ? [6330] clozure cl kernel debugger: ^ckilled: 9 how solve this? use 64-bit version $ ccl64 --version version 1.11-r16635 (darwinx8664) $ ccl64 welcome clozure common lisp version 1.11-r16635 (darwinx8664)! ccl developed , maintained clozure associates. more information ccl visit http:/...

Matlab - How to create logical array matrix without looping -

this question has answer here: creating indicator matrix 5 answers i want following: y = [1; 2; 3]; x = repmat(1:10, 3, 1); i=1:3 x(i,:) = x(i,:) == y(i); end so end x = 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 is there way without looping? if start 1:10 vector, using bsxfun : y = [1; 2; 3]; x = bsxfun(@eq, y, 1:10); otherwise repmat : y = [1; 2; 3]; x = repmat(1:10, 3, 1); x = repmat(y, 1, size(x,2)) == x; (or ones suggested leo .)

submit ID using multiple checkboxes in PHP HTML Mysql -

i using multiple html checkboxes submit student attendance. checkbox once clicked submit '1' , if not checked, submit '0'. able submit '1' when checked cant submit '0'. below code: <?php $subcheck = (isset($_post['subcheck'])) ? 1 : 0; $date = date("y/m/d"); foreach ( $student $attendance ) { echo "<tr>"; echo "<td>$attendance->id</td>"; echo "<td>$attendance->name</td>"; echo "<td> $attendance->classroom_id </td>";?> <input type="hidden" name="date[]" value="<?php echo $date;?>" /> <td><input type="checkbox" name="status[]" value="<?php echo $attendance->id;?>"></td> <td...

carousel - What do we call the `bottom bar` of an HTML image slider? -

Image
english second language , don't know how call bottom bar @3 in below snapshot - bottom navigator guess? when need know specific term of thing website, can check source code (right click → inspect element) term revealed class name or similar. far can tell don’t have one definitive name, each site , each carousel library has own name them. these acceptable names: carousel indicators carousel controls carousel dots ( owl carousel ) dot navigation carousel bullets (on shouldiuseacarousel.com )