Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

Loading files in Prolog -


i going through prolog tutorial. telling me can load other prolog files typing:

[filename]. 

but every time try getting

error: load_files/2: arguments not sufficiently instantiated. 

the file in same directory 1 working in.

here copy of entire query , error:

12 ?- [kb5].  error: load_files/2: arguments not sufficiently instantiated 

what doing wrong?

$ cat junk.pl test(ok).  $ prolog welcome swi-prolog (multi-threaded, 64 bits, version 5.8.0) copyright (c) 1990-2009 university of amsterdam. swi-prolog comes absolutely no warranty. free software, , welcome redistribute under conditions. please visit http://www.swi-prolog.org details.  help, use ?- help(topic). or ?- apropos(word).  ?- [junk]. % junk compiled 0.00 sec, 24 bytes true. 

it seems work fine me. of course i'm using atom file name, not variable. (kb5 variable name, not atom.) first try ['kb5'] , see if helps. next try [kb5] , see if helps. try absolute minimal example 1 provided , see if can load way.


edited add:

$ cp junk.pl junk.pl $ prolog welcome swi-prolog (multi-threaded, 64 bits, version 5.8.0) copyright (c) 1990-2009 university of amsterdam. swi-prolog comes absolutely no warranty. free software, , welcome redistribute under conditions. please visit http://www.swi-prolog.org details.  help, use ?- help(topic). or ?- apropos(word).  ?- [junk]. error: load_files/2: arguments not sufficiently instantiated ?- ['junk']. % junk compiled 0.00 sec, 1,656 bytes true. 

it looks atom problem indeed. use ['kb5'] , error go away.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -