Posts

mono - How to add c# custom controls to MonoDevelop toolbox? -

i new mono develop, created gtk# 2.0 project in mono develop , tried add c# user defined controls zedgraph, toolbox not accepting c# user-defined controls. there way add c# user defined controls mono develop toolbox. please me. i have same problem. can not see zedgraph widgets in toolbox...but can add widgets via code. instead of going "designer" view , via gui, via "source" view. (after add dll references). i hope has better solution.

c# - Cast boxed object to typeof(object) -

i have following poco classes public interface iobject { guid uid { get; set; } } public class boo : iobject { public guid uid { get; set; } public string name { get; set; } } public class foo : iobject { public guid uid { get; set; } public string name { get; set; } } i trying write generic method insert type of object database type inherit iobject . using following method (with servicestackormlite underneath): public interface idataaccess { idbconnection getconnection(); boolean insertobject<t>(t newobj, idbconnection connection) t : idataobject, new(); } trying insert each object separately works follow : public static boolean addfoo(this foo foo) { // dataprovider initiated using implementation of idataaccess return dataprovider.insertobject(foo, dataprovider.getconnection()); } question : i trying use following method valid 1 both fails. syntax wrong consider pseudo code. how can acheive that? obj boxed foo or boo i...

Is it possible to restore a SQL Server backup to a different database -

Image
i restore backup different database original. i did backup databasea , want restore databaseb . want test first , data backup, take data need update databasea . how this? yes can. in gui your source database "databasea" your destination database if "databaseb" on files tab, you'll need provide new file names.

bash - how to remove final "dot" from directory name -

a program messed directory putting dot "." on end of file , directory names. easiest way remove them? i have thought of removing last character not files/dirs have dot on end. removing dots problem, make extension useless. what need rename change name.of.the.file.ext. name.of.the.file.ext , name.of.the.dir. name.of.the.dir thanks! go on files dot @ end, rename each if possible (i.e. target file not exist). for file in *. ; [[ -e ${file%.} ]] || mv "$file" "${file%.}" done echo not renamed: *.

xml - Out of Memory Error while using archive::extract -

can u me in getting out of error "out of memory" while using archive::extract i'm using below code .. my $extract_obj = archive::extract->new(archive => $tar_file_work_path, type => 'tgz'); $extract_obj->extract(to => $work_dir) please suggest me how extract xml file ...

jquery - Why is my post-animate function not being called? -

i'm animating popups fade , slide in simultaneously. want reset position of hidden popup once it's hidden animation same every time. when element rolled over, popup slides down , fades in. when it's rolled out of, popup slides down further , fades out, when it's hidden, resets initial position. here's code: $('*:has(.rollover)').hover(function(){ $('.rollover',this).fadein('fast').animate({ 'top' : '60px', }, {duration: 'fast', queue: false}, function() {}); },function(){ $('.rollover',this).fadeout('fast').animate({ 'top' : '70px', }, {duration: 'fast', queue: false}, function() { console.log("hello"); $(this).css('top','50px'); }); }); the problem last line top reset not being triggered, , neither log statement. why this? my error having: , {duration: 'fast', queue: false}, function() {}); whe...

asp.net - How to clear exisiting dropdownlist items when its content changes? -

ddl2 populates based on ddl1 selected value successfully. my issue data present in ddl2 not clear before appending new data ddl2 content continues grow every time ddl1 changed. <asp:dropdownlist id="ddl1" runat="server" datasourceid="sql1" datavaluefield="id1" datatextfield="name2" appenddatabounditems="true" autopostback="true"> <asp:listitem text="all" selected="true" value="0"/> </asp:dropdownlist> <asp:dropdownlist id="ddl2" runat="server" datasourceid="sql2" datavaluefield="id2" datatextfield="name2" appenddatabounditems="true" autopostback="true"> <asp:listitem text="all" selected="true" value="0"/> </asp:dropdownlist> <asp:sqldatasource id="sql1" runat="server" selectcommand="sp1" selectcommandtype=...