Posts

eclipse - Getting an error "error while loading shared libraries: libmpi.so.1: cannot open shared object file: No such file or directory" -

Image
getting error "error while loading shared libraries: libmpi.so.1: cannot open shared object file: no such file or directory" while running veins simulation in omnet++ edit: i reinstalled omnet++ , getting error: jvm terminated. exit code=13 /home/jayabalan/usr/omnetpp-4.6/ide/jre/bin/java -dosgi.requiredjavaversion=1.7 -xms256m -xmx1024m -xx:maxpermsize=320m -dosgi.instance.area.default=/home/jayabalan/usr/omnetpp-4.6/bin/../ide/../samples -jar /home/jayabalan/usr/omnetpp-4.6/ide//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar -os linux -ws gtk -arch x86_64 -showsplash -launcher /home/jayabalan/usr/omnetpp-4.6/ide/omnetpp -name omnet++ ide --launcher.library /home/jayabalan/usr/omnetpp-4.6/ide//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20140603-1326/eclipse_1605.so -startup /home/jayabalan/usr/omnetpp-4.6/ide//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar --launcher.appendvmargs -exitdata 340021 -vm /home/jayaba...

angularjs - AOT compiled code throws error - No provider for t -

i getting following error when run angular application. front end in angular , back-end uses spring. build.js:1 **exception: uncaught (in promise): error: no provider t! error: no provider t!** @ e [as constructor] (http://localhost:8080/xo-as/ng/build.js:1:59315) @ e [as constructor] (http://localhost:8080/xo-as/ng/build.js:1:60416) @ new e (http://localhost:8080/xo-as/ng/build.js:1:60744) @ t._throwornull (http://localhost:8080/xo-as/ng/build.js:1:71064) @ t._getbykeydefault (http://localhost:8080/xo-as/ng/build.js:1:71402) @ t._getbykey (http://localhost:8080/xo-as/ng/build.js:1:70782) @ t.get (http://localhost:8080/xo-as/ng/build.js:1:69150) @ e.get (http://localhost:8080/xo-as/ng/build.js:1:126499) @ e.t.injectorget (http://localhost:8080/xo-as/ng/build.js:1:152798) @ e.get ( when researched online solutions came across few posts mentioned because of cookieoptions. in following link, have suggested solutions well. https://github.com/salemdar/angular2-cookie/issues/37...

algolia integration formulaire symfony -

i looking integrate algolia search bar. able index elements without problem. this form: public function searchaction(request $request) { $article = new article(); $form = $this->createformbuilder($article) ->add('title') ->getform() ; if ($form->handlerequest($request)->isvalid()) { $this->get('algolia.indexer')->search( $this->getentitymanager(article::class), 'adminbundle:article', 'test'); return $this- >render('mainbundle:search:searchresults.html.twig', array( 'article' => $article )); } return $this->render('@main/search/search.html.twig', array( 'form' => $form->createview(), )); } ...

sonar github plugin for scala [sonarqube] [github] -

using sonar github plugin, did several java base based projects jenkins -> sonar scan -> github pull request i need same thing scala based project (regular scala sonar run well). however, plugin (sonar-github) seems dropping scala scan results. luck it? or impossible do? or need plugin? thanks chris l there's no official code analyzer scala. that's reason why no issues detected on scala code. note not relate github plugin, aims decorate pull requests issues raised code analyzers.

Locust. Read --host value from python code -

locust --no-web --client=1 --hatch-rate=1 --num-request=2 --host= http://localhost i want read --host value provided in cmd line in httplocust class. aware can use host attribute direct assignment not want it. want read value cmd line in httplocust class. building custom logs , want pass value logs. tried httplocust.host returns none. also want read --web-port python code. you can access via sys.argv or parse options via argparse import argparse parser = argparse.argumentparser() parser.add_argument('-h', '--host') args, unknown = parser.parse_known_args() print str(args.host)

r - Finding difference in dates by grouped variable -

i working on master's thesis , need r coding. analyzing movements of wild turkeys during different stages of reproduction. need find difference in last date , first date individual within area. x<- data.frame( areaid = c(1,1,1,1,2,2,2,2), timestamp=as.posixct(c("06/01/2014 05:01", "6/01/2014 13:00","06/01/2014 23:00", "06/02/2014 10:00","06/20/2015 09:00", "06/20/2015 10:00", "06/20/2015 11:00", "06/20/2015 12:00"), format='%m/%d/%y %h:%m')) i need new dataframe areaid , time spent in area. thanks help. the dplyr solution @gregor should work. however, if dplyr not functioning properly. can try approach using data.table . library(data.table) setdt(x) x[, .(duration = max(timestamp) - min(timestamp)), = areaid] areaid duration 1: 1 1.207639 days 2: 2 3.000000 days or use aggregate function base r. aggregate(timestamp ~ areaid, data = x, fun = funct...

java - add user using spring mvc framework -

hello want save user database using spring mvc framework got error. java.lang.illegalstateexception: neither bindingresult nor plain target object bean name 'command' available request attribute @ org.springframework.web.servlet.support.bindstatus.<init> (bindstatus.java:144) atorg.springframework.web.servlet.tags.form.abstractdataboundformelementtag. getbindstatus(abstractdataboundformelementtag.java:168)at org.springframework.web.servlet.tags.form.abstractdataboundformelementtag. getpropertypath(abstractdataboundformelementtag.java:188) @ org.springframework.web.servlet.tags.form.abstractdataboundformelementtag .getname(abstractdataboundformelementtag.java:154) @ org.springframework.web.servlet.tags.form.abstractdataboundformelementtag .autogenerateid(abstractdataboundformelementtag.java:141) atorg.springframework.web.servlet.tags.form.abstractdataboundformelementtag. resolveid(abstractdataboundformelementtag.java:132) atorg.springframework.web.servlet.tag...