Posts

javascript - Knockout bind HTML datepicker min and max -

i have 2 html date pickers having trouble with. trying set value , apply minimum , maximum criteria knockout. after research found the proper date format proper format value, min, , maximum. trouble is, min , max not seem work. here html date picker: <input type="date" data-bind="value: mindate, min: mindaterange, max: maxdaterange" /> the format of dates yyyy-mm-dd in accordance link sent. if manually apply min , max attributes date format works fine. have idea doing wrong? you can't use min , max because there no such bindinghandlers. can use attr bindinghandler: <input type="date" data-bind="value: mindate, attr: { min: mindaterange, max: maxdaterange }" />

MATLAB solve Ordinary Differential Equations -

how can use matlab solve following ordinary differential equations? x''/y = y''/x = -( x''y + 2x'y' + xy'') with 2 known points, such t=0: x(0)= x0, y(0) = y0; t=1: x(1) = x1, y(1) = y1 ? doesn't need complete formula if difficult. numerical solution ok, means, given specific t, can value of x(t) , y(t). if matlab hard this, mathematica ok. not familiar mathematica, prefer matlab if possible. looking forward help, thanks! i asked same question on stackexchange, haven't answer yet. https://math.stackexchange.com/questions/812985/matlab-or-mathematica-solve-ordinary-differential-equations hope can problem solved here! what have tried is: ---------matlab syms t >> [x, y] = dsolve('(d2x)/y = -(y*d2x + 2dx*dy + x*d2y)', '(d2y)/x = -(y*d2x + 2dx*dy + x*d2y)','t') error using sym>convertexpression (line 2246) conversion 'sym' returned mupad error: error: unexpected ...

java - JAR file messes GUI? -

Image
i've got homework make simple login window. after finished coding tried exporting file runnable jar file, , after running jar file saw had messed gui. jpasswordfield fills entire jframe reason. have no clue might problem because runs fine ide. help? here code (works fine in eclipse ide):` public class login extends jframe { private static final long serialversionuid = 1l; private static jtextfield user = new jtextfield(); private static jpasswordfield pass = new jpasswordfield(); private static jbutton loginbtn = new jbutton("login"); protected string[] args; private static jframe frame = new jframe("log in"); public login(){ loginbtn.addactionlistener(new actionlistener(){ @suppresswarnings("deprecation") public void actionperformed(actionevent e){ if(user.gettext().equals("admin") && pass.gettext().equals("nimda")){ //system.out.println("hello admin!...

ios - using PFQueryTableViewController as detailviewController of UITableView -

i got uitableview 8 textlabel albumname(displaying array),now want use 'selected album name' parse class name(using initwithcoder method),and display corresponding class value should retrived parsetableview rows. did code: - (void)prepareforsegue:(uistoryboardsegue *)segue sender:(id)sender { if ([segue.identifier isequaltostring:@"detailalbum"]) { nsindexpath *indexpath = [tableview indexpathforselectedrow]; myparsetableviewcontroller *detailscreen =segue.destinationviewcontroller; uitableviewcell *cell = (uitableviewcell *)[tableview cellforrowatindexpath:indexpath]; detailscreen.classname = cell.textlabel.text; nslog(@"selected label :%@",detailscreen.classname); } } and in pfquerytableviewcontroller.h @interface myparsetableviewcontroller : pfquerytableviewcontroller @property (nonatomic,strong) nsstring *classname; @end pfquerytableviewcontroller.m - (id)initwithcoder:(nscoder *)acoder { self = [super ini...

vb.net - Getting a null reference exception trying to push a zero to a stack -

well on last day of school trying finish program , can't life of me past null reference exception. code supposed average [count] numbers entered user using stack of integers. throwing null reference exception because attempted count of stack empty, added line push 0 on it. program stops @ line same error (nullreferenceexception). if change stack accept strings works fine, need accept integers. can :) module module1 sub main() dim count integer = 16 dim stack new stack(of integer) stack.push(0) console.writeline("please enter " & count & " numbers") while stack.count - 1 = count stack.push(console.readline) if not isnumeric(stack.peek) console.writeline(stack.pop & " not number please try again.") end if loop end sub end module you're declaring variable named stack , not creating stack object. instead (with new k...

Javascript Window.open: Accessing DOM -

i have been experimenting window.open popups. have tried following code [with shortened url shown here]: var sub=window.open('http://youtube.com...','subscribe boss gamerz','height=170,width=390'); sub.document.body.style.overflow = "hidden"; sub.focus(); which opens new popup not remove scrollbars intended to. instead, chromium gives me error message in console: uncaught securityerror: blocked frame origin "http://example.com" accessing frame origin "swappedout://". frame requesting access has protocol of "http", frame being accessed has protocol of "swappedout". protocols must match. how can make function properly?

ios - Mach-O-Link error -

Image
i'm working on app includes in app purchases. being tired of having copy paste same class files in projects decided create static library. i followed several of available guides on web on how create static library ios seem running problems. undefined symbols architecture armv7: "_objc_class_$_nwstorepackage", referenced from: objc-class-ref in storetableviewcontroller.o ld: symbol(s) not found architecture armv7 clang: error: linker command failed exit code 1 (use -v see invocation) the same error displayed arm64 architecture i linked library, added header files. updated header search paths, updated framework paths. don't know more can do... used following script. # define output folder environment variable universal_outputfolder=${build_dir}/${configuration}-universal # step 1. build device , simulator versions xcodebuild -target ${project_name} only_active_arch=no -configuration ${configuration} -sdk iphoneos build_dir="${build_dir}...