Posts

Grails Spring Events Plugin not found -

after upgrading grails 2.2 3.1 can no longer compile spring-events plugin. in 2.2 project had plugin set in build-config.groovy plugins{ compile ':spring-events:1.2' } but there build.gradle file , when add plugin, cannot found. has had issues this? the spring events plugin not compatible grails 3.x. can find list of supported plugins in repository on @ bintray .

opencv - Aruco scales coordinates wrong -

i using (newly released) aruco 2.0.7 track markers. camera using mounted ceiling facing down, need x , y coordinates. can view area of 2.6m 1.5m. if understand documentation correctly, supply sidelength of markers i'm using in arbitrary unit, output of pose in same unit. markers have sidelength of 19.5cm. want result in meters, have value set 0.195. however, results obtain not correct. if place markers right in corners of field of view of camera, not @ corresponding expected x , y coordinates. i placing global origin on 1 of corners of field of view, e.g. (0,0) bottom left corner. done transforming incoming positions markers coordinate system using matrix transforms obtained getrtmatrix(). seems working, except x , y coordinates in wrong unit or scaled. rotation works perfectly. am missing something? or can not expect accuracy? error significant, e.g. when should (2.6,1.5), displayed (1.8, 1), error of 33%. after more thought figured out camera calibrated using s...

How to start Machine Learning with python programming? -

i know concepts of python programming. , heard python machine learning more compatible. so, want start machine learning using python. novice in machine learning.(just want start scratch) how start towards this?? you need learn theoretical sutff including maths/stats/data mining etc... the best way - depending on ur current background - famous andrew ng coursera course on machine learning . honnestly don't think there's faster/easier way. youtube may found tons on ml/stats related videos.

php - how to add slashes to only double quotes -

i want add slashes double quotes html elements how doing , not working me : $str =" <table class="body-wrap" style="font-family: 'helvetica neue', 'helvetica', helvetica, arial, sans-serif; width: 100%; margin: 0; padding: 0;"> <tr style="font-family: 'helvetica neue', 'helvetica', helvetica, arial, sans-serif; margin: 0; padding: 0;"> <td style="font-family: 'helvetica neue', 'helvetica', helvetica, arial, sans-serif; margin: 0; padding: 0;">this test</td></tr></table>&#13;"; this php function : $str2 = addcslashes($str, '"'); i think have problems @ beginning of string , dont know how declare : $str =" or $str = ' both me didnt work delete string $str =" or $str = ' entirely wrong. 1) use css style sheet store css outside html , avoid repetition. 2) use single quotes i...

razor - Self-closing TagHelper merges html markup of sibling element -

i'm litle confused behaviour of taghelper intoduced in asp.net core mvc. following tutorial a working email tag helper have opportunity write self-closing tags. according article purpose should use attbute htmltargetelement . class below demostrated example: [htmltargetelement("email", tagstructure = tagstructure.withoutendtag)] public class emailtaghelper : taghelper { private const string emaildomain = "contoso.com"; public string mailto { get; set; } public override void process(taghelpercontext context, taghelperoutput output) { output.tagname = "a"; var address = mailto + "@" + emaildomain; output.attributes.setattribute("href", "mailto:" + address); output.content.setcontent(address); } } the markup in razor view like: <strong>support:</strong> <email mail-to="support"/><br /> <strong>marketing:</strong>...

Can we write Azure Webjobs with Queue Triggered with JAVA -

can write azure webjobs queue triggered jobs on java, tried search lot , found .net related code example ( https://azure.microsoft.com/en-in/documentation/articles/websites-dotnet-webjobs-sdk-storage-queues-how-to/ ) if yes can 1 direct me resources. note: able run webjob in java triggered schedule, had create executable jar , create batch file runs jar , zip 2 files (bat , jar). while don't have plans add java support directly core webjobs sdk, have tracking item here java support in azure functions . feel free chime in on issue. all work we're doing cross language being done in azure functions, builds on webjobs sdk foundation. azure functions supports queuetrigger (and other triggers) c#, node.js, powershell, php, python, bat, bash.

How to move an element from one div to another using angularjs -

i want move element 1 div div. lets example there button in div-a , want move in div-b. it can done in jquery like $("div-b").append('button'); $("div-a button").remove(); but not able think start in angularjs 1x. there series of 10-20 divs in row , want move button 1 div sequentially. in angular data represented objects <div ng-repeat="a in ctrl.a"></div> <div ng-repeat="b in ctrl.b"></div> vm.a = ['a1', 'a2']; vm.b = []; function move(obj) { // find obj in vm.a , remove // push obj in vm.b } then view should updated automatically.