Posts

c# - NUnit: Common Language Runtime detected an invalid program -

when running nunit tests in teamcity, keep getting following error. test(s) failed. system.reflection.targetinvocationexception: exception has been thrown target of invocation. ---> system.invalidprogramexception: common language runtime detected invalid program. @ system.web.razor.parser.syntaxtree.block..ctor(blocktype type, ienumerable`1 contents, string name) @ system.web.razor.parser.syntaxtree.block..ctor(blocktype type, ienumerable`1 contents) @ system.web.razor.parser.syntaxtree.syntaxtreebuildervisitor.visitendblock(blocktype type) @ system.web.razor.parser.visitorpair.visitendblock(blocktype type) @ system.web.razor.parser.parsercontext.endblock() @ system.web.razor.utils.disposableaction.dispose(boolean disposing) @ system.web.razor.utils.disposableaction.dispose() @ system.web.razor.parser.htmlmarkupparser.parserootblock(tuple`2 nestingsequences, boolean casesensitive) @ system.web.razor.parser.htmlmarkupparser.parsedocument() @ system...

java - Counting the characters of a string and than placing the value inside a for loop -

i taking introductory java programming course , have been setting following exercise: write program can ask series of questions array of strings. should print line of stars under question, line of stars same length question printed above it. below code have written. starlineexercise class features method called starline, have started write below. starline method needs print many "*" characters in each of previous system.out.println commands. i have tried create string object each question, count of that, , place loop, eclipse gives me error saying count variable can not resolved. import java.util.scanner ; public class starlineexercise{ public static void main(string[] args){ scanner sc = new scanner (system.in); system.out.println ("please enter name"); starline(); string name = sc.nextline(); starline(); system.out.println("pleae enter age"); starline(); int age = sc.nextint(); system.out.println(...

excel vba - Copying table using macros -

i have standard big table manipulate data from, when record macro copy table excel doc new excel doc, not work because when rerun macro gives error "can't execute code in break mode" or "paste method of worksheet class failed". please advise on how can table copied using code can go on doing pivot tables it.

reporting services - Repeater in SSRS -

i have created 3 datasets report. also, have taken 3 tables inside data region show data. i have 1 parameter that customer id filter data. now question want repeat 3 table data customer wise in separate page. for example: customer id 1,2,3,4,5,6 data should displayed customer id 1 table1 table2 table3 customer id 2 table 1 table 2 table 3 customer id 3 table 1 table 2 table 3 and on create group on customer id , list 3 table within group. force new page on group change (begin or after) this give report looking for.

mysql - Data truncated when trying to import CSV file -

hi here load statement: load data local infile 'c:/geoipcountrywhois.csv' table geolocation fields terminated ',' enclosed '"' lines terminated '\n'; 30 row(s) affected, 1 warning(s): 1265 data truncated column 'cn' @ row 30 records: 30 deleted: 0 skipped: 0 warnings: 1 create table `geolocation` ( `start_ip` char(15) not null, `end_ip` char(15) not null, `start` int(10) unsigned not null, `end` int(10) unsigned not null, `cc` char(2) not null, `cn` varchar(50) not null ) engine=myisam default charset=utf8 i found problem line below because of comma in korea things new field starts. 1.11.0.0,1.11.255.255,17498112,17563647,kr,"korea, republic of" i can remove commas can change load statement somehow? you should use optionally enclosed by instead of enclosed by . http://dev.mysql.com/doc/refman/5.1/en/load-data.html adding optionally statement allows csv in current form. without optio...

javascript - Lock text highlighting in a website? -

i want lock copy button don't want lock save button totally right click ,so user of site can save website html file can not copy text ,how can javascript guys? you can use css: user-select: none; this makes text on site not selectable, user not able highlight , copy of it. additional information can found on site here: how disable text selection highlighting using css?

java - Abstract Class - Why is my protected method publicly accessible? -

why can access dostuff() method in main method below? since dostuff() protected, expect testclassimplementation has access it. public abstract class abstracttestclass { protected void dostuff() { system.out.println("doing stuff ..."); } } public class testclassimplementation extends abstracttestclass{ } public class myprogram { public static void main(string[] args) { testclassimplementation test = new testclassimplementation(); test.dostuff(); //why can access dostuff() method here? } } looks myprogram class in same package of abstracttestclass . if so, can access protected , public members of classes in same package. covered in java tutorials: modifier class package subclass world public y y y y protected y y y n no modifier y y n n private y n n n in order fix this, move abstracttestclass package. similar ot...