Posts

javascript - How to use ng-animate in angular 1.2? -

base angular 1.1.5 - http://plnkr.co/edit/eokt8o4mjw9swdydeg3s?p=preview - works upped angular 1.2.6 - http://plnkr.co/edit/wopgatfnvm1mkf5li99h?p=preview - fail i think did follow instructions docs - http://docs.angularjs.org/api/nganimate • first include angular-animate.js in html • load module in application adding dependent module it's quite late in timezone , miss obvious. guess - css file between 1.1.5 , 1.2.6 not compatible? cannot tell... anyway here code form upped plunker, included comments emphasise followed instructions docs: <!doctype html> <html ng-app="app"> <head> <meta charset="utf-8"> <title>top animation</title> <script>document.write('<base href="' + document.location + '" />');</script> <link rel="stylesheet" href="style.css"> <link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3...

c# - How to define a userdefined Type in Rehosted Wokrlfow Designer -

if type included in referenced assemblies of rehosted workflow designer, , ready selected, why workflow designer compiler error when define variable of type? , how define userdefined type in c# code or rehosted workflow make recognizable workflow designer.

html - How to display a gif fullscreen for a webpage background? -

i'm trying make gif fit whole screen, far small square on screen while rest white. however, want take space. any ideas? if it's background, use background-size: cover; demo background-image: url('source.gif'); background-size: cover;

Vector Operation in Matlab? -

can body me explain line 7 of code. line temp(min(temp,[],2) >=1 & max(temp,[],2)<=n,:) do in code? line 7 of code throwing me off n=10; h=-1; j=0; i=1:n j=1:n temp=[i-1,j;i+1,j;i,j-1;i,j+1]; ngh{i,j}=temp(min(temp,[],2) >=1 & max(temp,[],2)<=n,:); end end that line selecting rows of temp have values between 1 , n , , assigning submatrix ngh{i,j} . note that min(...,[],2) or max(...,[],2) gives minimum or maximum of each row; the logical comparison 1 or n , & operation result in logical index vector, used address desired rows of temp (and columns).

mongodb - Adding a node to a running replicaset on an existing shard -

mongodb shard needs know members of replicaset. member list discovery dynamic? mean if add node existing replicaset configured shard on config servers, shard automatically update or have manually update shard configuration new member added replica? in older versions of mongo, prior 2.0.3 of replica set members needed specified when adding shard. seems fair conclude when shard added , needs know 1 of members of replica set, activity between replica set members delegated replica set. probably optimal way sure fire test scenario on own machine. there nothing suggest there additional configuration sharding should required. and bit of update had nothing on having lunch :) spun load of instances mapped out in listed tutorial: http://docs.mongodb.org/manual/tutorial/add-shards-to-shard-cluster/ a few differences being use of sh.addshard in first member of replica set added only, rather members syntax shown in docs. once shards up. added 2 more replica set nodes firstse...

jsf - <h:selectManyListbox><f:ajax listener render> doesn't work when using jQuery Multiple Select plugin -

i try integrate jquery plugin display multiple select dropdown checkboxes. code: <h:selectmanylistbox id="multiplecolor" value="#{searchbean.color}" size="1" immediate="true" class="multiplecolor" style="width:200px;"> <f:ajax render=":menuform :searchform:searchbutton" listener="#{menubean.focus(menubean.mysearch)}" /> <f:ajax listener="#{searchbean.count()}" /> <f:selectitems value="#{searchbean.colorlist}" var="color" itemvalue="#{color}" itemlabel="#{searchbean.getcolortext(color)}" /> </h:selectmanylistbox> with js code: <script type="text/javascript"> $(".multiplecolor").multipleselect({ width: 200, multiple: false, multiplewidth: 460 }); the dropdown working, listener , renderer don't. can me that?

Algorithm to combine multiple images into one -

i'm looking algorithm merge multiple images 1 image. type of solution i'm looking not skew aspect ratios , cause minimal overlap, lay images frame of given size. example, have 6 images of carpentry tools , want algorithm lay them out in 1 frame 300px 300px. images can scaled if aspect ratios maintained, , want images visible minimal overlap. no rotations either. the problem solving np hard bin packing can use heuristic algorithms achieve in reasonable time. suggest genetic algorithms case using fitness function proportional empty space , inversely proportional square error in sizes of images.