Posts

c# - FileNotFoundException was unhandled - But the file is there -

i'm struggling this. wpf app, in debug/release works fine. after publish it, via installshield express, runtime exception , program crashes. when program crashes, can choose debug program in visual studio, breaks in relaycommand looks like public class relaycommand : icommand { public action<object> _execute; public relaycommand(action<object> execute) { this._execute = execute; } public bool canexecute(object parameter) { return true; } public event eventhandler canexecutechanged; public void execute(object parameter) { this._execute(parameter); // breakpoint } } the error message is filenotfoundexception unhandled not load file or assembly 'taskscheduler, version=1.0.0.0, culture=neutral, publickeytoken=null' or 1 of dependencies. system cannot find file specified i'm lost why is. have other commands on page, , set in following manner public icommand savesched...

javascript - Checking authentication in Laravel via Angular -

in angular app created service: .factory('auth', function($http) { return { is_authenticated: function() { return $http.get('/api/users/is_authenticated'); } } }); my method in api backed laravel: public function is_authenticated() { if(auth::check()) { return response::json(array('authenticated' => true)); } return response::json(array('authenticated' => false)); } and in controller: auth.is_authenticated() .success(function(data) { $scope.is_authenticated = data.authenticated; if(data.authenticated) console.log('yes'); }); when go /api/users/is_authenticated see nothing on page, however, when echo auth::check() there 1 on page. in view have list ng-show="is_authenticated" it's not working. what doing wrong here? i'm failing see problem. why 'yes' not being logged conso...

clojure - Datomic valueType -

when trying persist list of node entities :threshold attribute defined in schema: {:db/id #db/id[:db.part/db] :db/ident :node/threshold :db/valuetype :db.type/long :db/cardinality :db.cardinality/one :db/fulltext false :db/doc "threshold" :db.install/_attribute :db.part/db} i following error: compilerexception java.util.concurrent.executionexception: java.lang.illegalargumentexception: :db.error/wrong-type-for-attribute value 90 not valid :int attribute :node/threshold i use following code: (defn store-tree [tree] @(d/transact dbconn/conn (into [] (vals tree)))) (store-tree parsed-tree-with-refs) where tree map of node names nodes. curiously enough, took edn specific entity :node threshold 90 repl , manually transact'ed it, , worked without problems. used code: @(d/transact dbconn/conn [{:db/id (d/tempid :db.part/user), :node/threshold 90, :node/location "us"}]) can please help? thanks, vitaliy.

css - checkbox style is missing when form is submitted and angular scope variable is refreshed -

i have application uses charisma template 1.x , have used angularjs within template. application working fine problem having tab grid within there form submit window. in each group tab having n number of checkboxes, after clicking of checkboxes when click submit button, particular ng-submit action performed apart form action trying refresh scope values given below $scope.records = angular.copy($scope.recordcopy); the functionality working fine style of checkbox lost, sample mockup shown in plunker, there before clicking save notice style of checkbox, after clicking save button can see style of checkbox gone, still functionality working fine. can please tell me solution retaining checkbox style browser: firefox plunker i don't know why style of checkbox lost. but desappears because using of angular.copy wrong. please see definition of function copy here : https://docs.angularjs.org/api/ng/function/angular.copy angular.copy(source, [destination]); yo...

java - IllegalStateException when persisting an object -

public void lagremelding(string bruker, string msg) { entitymanager em = emf.createentitymanager(); melding melding = new melding(bruker, msg); try { em.gettransaction().begin(); em.persist(melding); em.gettransaction().commit(); em.close(); } catch (rollbackexception e) { em.gettransaction().rollback(); } } the error report following: java.lang.illegalstateexception: exception description: cannot use entitytransaction while using jta. org.eclipse.persistence.internal.jpa.transaction.jtatransactionwrapper.gettransaction(jtatransactionwrapper.java:73) org.eclipse.persistence.internal.jpa.entitymanagerimpl.gettransaction(entitymanagerimpl.java:1311) no.hib.dat104.oblig1.kontroll.lagremelding(kontroll.java:37) no.hib.dat104.oblig1.meldingservlet.dopost(meldingservlet.java:80) javax.servlet.http.httpservlet.service(httpservlet.java:646) javax.servlet.http.httpservlet.service(httpservlet.jav...

javascript - jQuery elevate zoom: initiate on click function -

i'm using elevate zoom plugin ( http://www.elevateweb.co.uk/image-zoom ) allow zooming images on hover. problem i'm having though images don't exist on document load, they're being appended on click function, , relevant elevatezoom function isn't working. jsfiddle demo: http://jsfiddle.net/neal_fletcher/3j33gb1y/ html: <button data-rel="http://2.bp.blogspot.com/-mucnevzlib8/trstjvp92ki/aaaaaaaabli/ek3vb1qmrrw/s1600/slide1-new.png">click!</button> <button data-rel="http://1.bp.blogspot.com/-kdih65cz8hs/tjo9rqbmt9i/aaaaaaaaafg/hevv38ckuzk/s1600/3.jpg">click!</button> <button data-rel="http://4.bp.blogspot.com/-pzunx8uqqhw/tjo9rdvyc8i/aaaaaaaaafy/n91storzgwc/s1600/2.jpg">click!</button> <button data-rel="http://4.bp.blogspot.com/-y1cpqvkits8/tjpdkh1-xdi/aaaaaaaaaga/l8jbwyqcqvi/s1600/hompimenu.jpg">click!</button> <div id="area"></div> jquery: $(do...

How to set up SBT build to return zero exit code on test failure for Jenkins? -

when running specs2 tests in jenkins via sbt, build marked failure 1 test fails. since jenkins distinguishes between failure build , test failures, want change this. i know build failure in jenkins detected exit code of call sbt, appears return 1 @ least 1 test fails. what options have assuming want avoid changing build.sbt (or project in general) fix inconvenience? somehow think should possible put standard sbt project standard jenkins install , have work intended. tl;dr use testresultlogger custom test result logger doesn't throw testsfailedexception in turn sets non- 0 exit code. just noticed missed requirement "to avoid changing build.sbt . can use other *.sbt file, exitcodezero.sbt or ~/.sbt/0.13/default.sbt custom testresultlogger . it turns out since sbt 0.13.5 there's way have such behaviour - see added setting 'testresultlogger' allows customisation of test reporting testresultlogger born. > testresultlogger logs resu...