Posts

Showing posts from April, 2013

Why doesn't my listview show expected result in my android app? -

Image
when use listview in app, want use this.setselection(0); skip first item everytime foto girl in attached picture shakes. not smooth , don't know how solve this. if use this.smoothscrolltoposition(0); girl doesn't shake top menu shakes. here picture. replies!

javascript - Mysterious line, used to require html templates in Webpack: templates.keys().forEach(templates)? -

i want import html templates webpack bundle ngtemplate-loader , html-template-loader , found 2 lines of code, used purpose, in project: const templates = require.context(__dirname, true, /\.html$/); templates.keys().foreach(templates); the first line clear me - recursively requires html files under current directory, adding them $templatecache. but second line total mistery me. what's point of it? templates.keys() return array of paths matched files: ['./file1.js', './file2.js'].foreach(templates); then foreach invoke templates function (which require context setted __dirname ) each file: templates('./file1.js'); templates('./file2.js'); or: require('./file1.js'); // files searched relative __dirname require('./file2.js');

javascript - Why can't I return $.ajax result but can return $http.post result? -

i have 2 return statements: return $http.post({ url: cheapwatcher.config.domain + 'api/authenticate', contenttype: 'application/x-www-form-urlencoded; charset=utf-8', data: data }); return $.ajax({ type: 'post', url: cheapwatcher.config.domain + 'api/authenticate', data: data }).done(function (result) { console.log('logged successfuly'); }).fail(function (result) { console.log('loging failed'); }); and background.js function uses api methods: // register api command listener chrome.runtime.onconnect.addlistener(function (port) { port.onmessage.addlistener(function (request, portinfo) { // globally accessible function execure api calls cheapwatcher.executeapicall = function (request, senderid) { var originalrequestmethod = request.method; //dinamically call api method cheapwatcher.api[request.method](request, senderid).then(function (respons...

Configuring Java security policy to allow JUnit? -

i developing java application. want run unit tests in security-restricted jvm block network access. i added -djava.security.manager=default -djava.security.policy=...file... options jvm, , security manager effective. i iterated couple of times running tests, seeing security violation happens, , granting in policy file. now, not getting security violations anymore. instead, this: ------------------------------------------------------- t e s t s ------------------------------------------------------- running org.onebusaway.alexa.authedspeechlettest tests run: 1, failures: 0, errors: 1, skipped: 0, time elapsed: 0.143 sec <<< failure! - in org.onebusaway.alexa.authedspeechlettest org.onebusaway.alexa.authedspeechlettest time elapsed: 0.06 sec <<< error! java.lang.noclassdeffounderror: org.junit.runner.runner @ org.apache.maven.surefire.junit4.junit4provider.execute(junit4provider.java:364) @ org.apache.maven.surefire.junit4.junit4provider.executewith...

Draw ECG Graph from ECG (Dicom) Modality -

how draw ecg graph ecg (dicom) modality. which tags use draw intervals or scale on x.y axis and how draw x,y co-ordinate on x.y axis i.e. plot points on graph tags need consideration thanks reply use information on documentation. in particular case should have here: waveform data , related data elements on other side, please consider giving vote or accepting answer when find provided information useful.

How to break a callback chain in JavaScript? -

i uploading multiple files browser , need sequentially. so chain next upload commencement previous upload completion callback. it's simple , works fine. during upload display progress user along cancel button. if user hits cancel want stop entire callback chain. how that? there mechanism in javascript halt callback chain? ok here example of callback chain in javascript. question is, how break "cancel" button? https://jsfiddle.net/jq7m9beq/ var filenamestoprocessqueue = ['v.jpg','w.jpg','x.jpg','y.jpg','z.jpg'] function finishedprocessing (filename) { console.log('finished processing: ' + filename) // processing finished file, start again chaining next 1 doprocessfiles() } function waitforeachfile (filename, callback) { // wait couple of seconds , log filename settimeout(function(){ console.log('waited 2 seconds for: ' + filename);callback(filename);}, 2000) } function doprocessfiles() { // n...

Google App Engine PHP script to process email and send data to a Google Sheet -

our water district sends out automated alarms , process statistics scada computer in our water treatment plant. information sent in form of sms messages , daily emails csv file attachments. because have informational website on google sites, automatically display real-time process statistics on our website in simple google sheet automatically updated. i have been handling sms alarms through custom php/twilio scripts separately hosted, integrate in google cloud google appengine. think can accomplished in variety of ways, , evaluating alternative automation approaches using php , gmail api. google cloud/appengine noob, have couple of architectural questions: can accomplish automation enabling google sheet incoming mail , processing data through spreadsheet scripting? if elect approach, can google sheet receive email directly, or must send email data sheet http request? alternatively, google cloud more reliable , robust platform automation? examples have seen, looks appeng...

unit testing - Why my XPath assertion test does pass in eXist-db? -

i have testing function takes document argument , transforms xml html. it, use tests. %test:assertxpath seems candidate in case. however, can’t understand behavior if use whole path. my function: xquery version "3.0"; module namespace cust = 'http://46.28.111.241:8081/exist/db/apps/myapp/modules/cust'; declare namespace tei = 'http://www.tei-c.org/ns/1.0'; declare namespace test = 'http://exist-db.org/xquery/xqsuite'; declare %test:args('<tei xmlns="http://www.tei-c.org/ns/1.0"> <text> <body> <div n="1"> <head>heading</head> <p>paragraph</p> </div> </body> </text> </tei>', '/db/apps/myapp/resources/...

python - Creating a Caeser program: Converting ASCII to characters -

i'm working on python attempting make caeser cipher program. i've made gui platform , have been able make cipher part work, spits out message in ascii. when run program, takes info, amount of letters want alphabet shift by, , says message in ascii, how can part come out in letters? i tried storing loop variable adding variable common ascii --> character converter, doesn't work. here's code: def encode(userphrase): msg = input('enter message: ') key = eval(input("enter number")) finalmsg = msg.upper() ch in finalmsg: print( str( ord(ch)+key ), end=' ') change str chr : print( chr( ord(ch)+key ), end=' ') per documentation on chr : return string representing character unicode code point integer i. example, chr(97) returns string 'a', while chr(957) returns string 'ν'. inverse of ord().

c++ - glReadPixels not updating the value -

glreadpixels not getting updated draw point. glcolor3f(1.0f, 0.0f, 0.0f); glbegin(gl_points); glvertex2f(x,y); glend(); glreadpixels(x, y, 1, 1, gl_rgb, gl_unsigned_byte, pixel); printf("after coloring %d %d %d\n", (int)pixel[0], (int)pixel[1] , (int)pixel[2]); the values of pixel[0] , pixel[1] , pixel[2] coming out 0 expected value 255, 0, 0 . me resolve issue :) this due number of issues model ndc space transformation not set produce 1:1 mapping vertex coordinates pixel location you did try set such transformation, points end in neighbor pixel, due roundoff errors , because opengl pixel centers kind of unintuitive (they make sense, mathematically) the read buffer not set buffer you're drawing (gldrawbuffer, glreadbuffer) post full code , able reproduce , further.

list - Racket - How to get value from text-field in scheme -

i have questions mit scheme language. i use drracket editor , racket langage (#lang racket/gui) 1) how value text-field ? answer: (send mytext-field get-value) ---> ok this 2) how lock text-field 3) how convert text getting 1) "list" for example if user enter : ------------------------ | '(a b b c d u) | ------------------------ how value , convert liste have following result: '(a b b c d u) 4) how convert text getting 1) "atom" for example if user enter : ------------------------ | 'a | ------------------------ how value , convert "atom" have following result: 'a 5) how include drracket file contain process functions (business layer) gui(presentation layer) procedure file ? for 3) , 4). > (read (open-input-string "(a b c d e f)")) '(a b c d e f) > (read ...

Django Python If statement not producing the expected result -

the following code if run in python console worked fine , able expected result: c2 = 1 stepcount = 4 workstepno = 4 exequenum = 5 if c2 == 1: if stepcount == workstepno: if exequenum == 5: actionchoice1 =3 else: actionchoice1 = 2 else: stepcount= int(stepcount)+1 actionchoice1 = 1 else: actionchoice1 = 0 print "actionchoice1", actionchoice1 was able print out on python console on actionchoice1 correctly 3. however, when same code used in django produced actionchoice 2 , not 3 expected. if c2 == 1: if stepcount == workstepno: if exequenum == 5: actionchoice =3 else: actionchoice = 2 else: stepcount= int(stepcount)+1 actionchoice = 1 else: actionchoice = 0 please pinpoint errors might have caused this. other alternative can used expected result in django python if exequenum == 5: ...

javascript - laravel - modify validation rule based on droplist -

i have form there multiple fields including country , price. currently have 2 countries. 1 has currency format 2 decimal places , other three. i have validate price input based on country chosen? how can achieve this. understand taht should use js detect change in selection of country not sure how apply updated rule?? here rules public function rules() { return [ 'email' => 'required|email|unique:users,email', 'username' => 'unique:users,username', 'password' => 'required|min:6|confirmed', 'birthday' => 'date', 'factory' => 'required|exists:factories,id', 'country' => 'required|exists:countries,id', 'category' => 'required', 'rm_code' => 'required', 'cost_basis' => 'required', 'supplier' => 'required', ...

objective c - Location Manager not getting location -

i trying update 1 of apps ios9 , xcode 7.2.1. location manager works in earlier version, not working. no errors or warnings...nothing. seems code not getting "didupdatelocations". code below; - (void)setupviewcontroller { self.locationmanager = [[cllocationmanager alloc] init]; locationmanager.delegate = self; if ([self.locationmanager respondstoselector:@selector(requestalwaysauthorization)]) { [self.locationmanager requestalwaysauthorization]; } locationmanager.desiredaccuracy = 100; //locationmanager.requestlocation; [locationmanager startupdatinglocation]; //return coordinate; [self performselector:@selector(stopupdatinglocation:) withobject:@"timed out" afterdelay:5]; } - (void)locationmanager:(cllocationmanager *)manager didupdatelocations:(cllocation *)newlocation fromlocation:(cllocation *)oldlocation { nslog(@"doesn't here."); self.besteffortatlocation = newlocation...

python - Nifti image into scikit learn -

i wanted use scikit-learn machine learning variation data processing of neuroimaging data, specifically, fmri data in nifti file type. nilearn provides platform. however, don't understand how nitimasker working principle. how converts 4d fmri data 2d data scikit-learn. i have 4d data of 1 subject, i.e (40, 64, 64, 1452) , haxby data. use nibabel accessing images. if want process 1 planar, [20, :, :, 1] [20, :, :, 1452] , np.flatten [n_samples,n_features] scikit-learn platform? this not direct answer have @ nilearn extension of scikit-learn brain imaging data (not sure correct description). there example of haxby data

spring - Add proxy information and basic auth to the resttemplate using httpClient -

my development environment behind proxy need set proxy information rest template, that's when use httpcomponentsclienthttprequestfactory , set proxy setting in httpclient , set in template. but have rest service needs basic auth. , set basic auth credentials, need set them in httpclient on rest template. see getparams method in httpclient depricated, can't update existing client in template, , if create new httpclient object, overwrite proxy info set during application bootstrapping. so there way extract httpclient rest template , update it? or there other way tackle this? thanks. configure httpclient follows: httphost target = new httphost("hostname", 80, "http"); credentialsprovider credsprovider = new basiccredentialsprovider(); credsprovider.setcredentials( new authscope(target.gethostname(), target.getport()), new usernamepasswordcredentials("user", "passwd")); httphost proxy = new httphost...

mysql - Connection Error to SMTP Java EE -

protected void dopost(httpservletrequest request, httpservletresponse response) throws servletexception, ioexception { response.setcontenttype("text/html;charset=utf-8"); printwriter out = response.getwriter(); random rand = new random(); int num = rand.nextint(900000) + 100000; string password = integer.tostring(num); string name = request.getparameter("name"); string email = request.getparameter("email"); string usertype = request.getparameter("usertype"); string strdob = request.getparameter("dob"); string gender = request.getparameter("gender"); java.sql.date d; simpledateformat sdf; sdf = new simpledateformat("yyyy-mm-dd"); java.util.date d2 = null; try{ d2 = sdf.parse(strdob); } catch (parseexception e1) { e1.printstacktrace(); } ...

php - android apps adding data to mysql database throws JSONException -

i'm trying add row in table person(nom,pass_world) in mysql database using android apps. when execute php code ( savedata.php ) in browser shows me : query_result":"success", means row successefly added. search in google code allows android app add data mysql database tryed it, unfortunately throws jsoneexcption , shows message "error parsing json data" can see in code below: savedata.php <?php $con=mysqli_connect("localhost","root","","othmane"); if (mysqli_connect_errno($con)) { echo '{"query_result":"error"}'; } $name = $_get['nom']; $pass = $_get['pass_world']; $result = mysqli_query($con,"insert person (nom,pass_world) values ('$name', '$pass')"); if($result == true) { echo '{"query_result":"success"}'; } else{ echo '{"query_result":"failure"}...

php - PHP7 CURL is not enabled -

i installed php7 download repo windows, works good. facing problem enable curl. php_curl.dll file exist in ext folder, , extension uncommented in php.ini, module not showing in phpinfo. this problem facing php7 if run php5.x curl works fine. looking solution resolve this. issue in php7 inself. there way troubleshoot problem? seems there issue 7.0.3 installed 7.0.4 , works fine.

javascript - In an Angular directive, how do you reapply an event listener after the event has been removed? -

this might result of me lacking knowledge in angular , if so, forgive me in advance if case. in angular, suppose have directive bound element attribute. <div my-directive></div> in directive, have click event remove click event itself. app.directive("mydirective", function() { return { link: function(scope, ele, attr, ctrl) { ele.on("click", function() { ele.off("click"); console.log("click event removed"); }); } } }); i want set click event on same div directive again (let's after button clicked). how accomplish this? you can use this- app.directive("mydirective", function() { return { link: function(scope, ele, attr, ctrl) { ele.on("click", function() { ele.unbind("click"); console.log("click event removed"); angular.element(ele).bind(...

javascript - AngularsJS $http getting data, but not showing up. -

new angularjs , stuck $http getting data asynchronously, not binding / showing data. the console.log showing data coming through alright. however, since data coming in asynchronously, data coming in after page has loaded. <!doctype html> <html> <head> <title>iterate on data webservice.</title> <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script> <!-- angularjs magic. --> <script> var app = angular.module('myapp', []); app.controller('mycontroller', function($scope, $http) { /* lets data actual service. */ $http.get("http://www.w3schools.com/angular/customers.php").then( function(response) { console.log("this came -" + response.data.records); $scope.names = response.data.records; }); }); </script> </head> <body> <h1>get data webservice , show on pa...

node.js - Resource management for NodeJS -

in nodejs, there concept similar spring application container or jee application container resources can configured , shared among application components. such resources are: database connection redis connection amqp connection ... where these connections must/should open long time. it's bad practice open/close each http request. in node.js, each module cached globally when require() or import() module same 1 every time. so when data module consumes redis or db module , open connection, remain open until close it, , same connection may available other modules import data module. some database/messaging modules provide connection pooling you. in fact should able find such modules on npmjs.com or node-modules.com , not have create own pooling solution common systems.

javascript - API for ckeditor everytime content gets loaded into it -

in ckeditor want operation every time new content loaded or existing content refreshes. as instanceready , onload api's getting executed once, not able desired operation. probably looking the contentdom event , fired after setting editor's data or switching editor's modes. if want when little change occurred in content, the change event best option.

structr / neo4j Database corrupted -

i'm playing around structr in linux vm w/2g of ram. executed query , crashed system. attempts restart platform have failed, , embedded db has following error i'm looking hints might've happened. 2016-03-07 05:19:19.235+0000 info [org.neo4j]: recovery required log version 0 2016-03-07 05:19:36.119+0000 error [org.neo4j]: setting tm not ok. kernel has encountered problem, please perform necessary action (tx recovery/restart) null java.lang.nullpointerexception @ org.neo4j.index.impl.lucene.indextype.instantiatefield(indextype.java:318) @ org.neo4j.index.impl.lucene.indextype$1.addtodocument(indextype.java:63) @ org.neo4j.index.impl.lucene.lucenecommandapplier.visitindexaddrelationshipcommand(lucenecommandapplier.java:79) @ org.neo4j.kernel.impl.api.legacyindexapplier.visitindexaddrelationshipcommand(legacyindexapplier.java:143) @ org.neo4j.kernel.impl.api.commandapplierfacade.visitindexaddrelationshipcommand(commandapplierfacade...

How to transform a Python tuple to a .csv file? -

i transform python tuple .csv file. let's have retrive() function , when print pprint looks this: test = tuple(retrive(directory)) pprint(test, width=1) then: ("opinion_1.txt, amateur photographer , own 3 dslr c.... purchase", "opinion_2.txt, second sony digital came.... camera price!', 'opinion_3.txt, \'i ordered camera high hopes after couldn\\\'t find.\'') so, tried csv module: with open('/users/user/downloads/output.csv','w') out: csv_out=csv.writer(out) csv_out.writerow(['id','content']) row in test: csv_out.writerow(row) the problem weird output looks this: id,content o,p,i,n,i,o,n,_,1,.,t,x,t,",", ,i, ,a,m, ,a,n, ,a,m,a,t,e,u,r, ,p,h,o,t,o,g,r,a,p,h,e,r, ,a,n,d, ,o,w,n, ,t,h,r,e,e, ,d,s,l,r, ,c,a,m,e,r,a,s, ,w,i,t,h, ,a, ,s,e,l,e,c,t,i,o,n, ,o,f, ,l,e,n,s,e,s,., ,h,o,w,e,v,e,r, ,t,h,a,t, ,c,o,l,l,e,c,t,i,o,n, how can this: opinion_1.txt,i amateur ...

awk - Change in the HTML table format sent using mutt in outlook -

Image
here sample html code: when send email using mutt outlook, output follows: the command used is: mutt -e "my_hdr content-type: text/html" -s "subject: subject" mymail@outlookmail.com < sampletable.html in second table there different format. first table not looking well. if there more 2 tables, alternate tables having same format second one. how make email good? ps: generating sample html table code using awk in bash script. thanks in advance. replace ending <tr> closing tr : </tr> .

c# - Using double instead of integer with Control.Size -

is possible force control.size property accept double type instead of integer? if not, there alternative? i'm using labels represent values decimal numbers. no, it's impossible since size property describes number of pixels element displayed on. since there no meaning half pixel, there no meaning using sizef size of control.

StyleCop.Analyzers: Disable SA1633 & SA1652 -

i have consulted configuration documentation , couldn't find anything. i want disable both of following rules: sa1633: file header missing or not located @ top of file. sa1652: enable xml documentation output. my stylecop.json looks this: { "$schema": "https://raw.githubusercontent.com/dotnetanalyzers/stylecopanalyzers/master/stylecop.analyzers/stylecop.analyzers/settings/stylecop.schema.json", "settings": { "orderingrules": { "usingdirectivesplacement": "outsidenamespace" } } } any ideas? enabling , disabling rules done via ruleset file, not configuration .json file. details regarding use of ruleset files, see https://msdn.microsoft.com/en-us/library/dd264996.aspx .

openerp - Odoo on Windows, can't add new field to model -

i'm using odoo 9. i want add new field model, , add field model's form view. goes fine if in 2 steps : add field model restart odoo server ask odoo update module (1) add field form view ask odoo update module again (2) at step (1) field gets created in database table, , @ step (2) view modified use new field. problem occurs when want update module on database. have "500 internal server error" , when @ log says new field (used view) not exist (because in odoo's perpective, module not updated yet). that's not of problem since can stop server , issue command: odoo.py -d <name_of_database> -u <name_of_module> this update module in other database without need access module's page in odoo. restart odoo service , works charm. this problem begins : my final client runs odoo on window server. know how start / stop / restart odoo service, not let me update module. i'd issue same command using odoo.py didn't find , how ...

ember.js - Ember Correct way to build computed property for an array or arrays -

demonstration @ https://ember-twiddle.com/e32e95aef1619a9839b4 i'm trying build computed property depends on items within array or arrays. logically done array1.@each.array2.[] documentation clear not valid syntax , results in warning though works. the warning , guide both tell me create interim computed property bridge gap, can't logically see how create property , not run exact same problem.

How to handle variable containing parentheses in Powershell -

i'm trying create script name of file/directory getting right-clicked, modify , put modified string on clipboard. this works nicely long string not contain parentheses. if so, getting error when trying it. e.g. if $args contains "c:\document(draft).pdf" , i'm trying echo using write-host $args i'm getting following error: the term 'draft' not recognized name of cmdlet, function, script file, or operable program. how handle variables containing parentheses in such case? use single quoatation marks. code works: $args = 'c:\document(draft).pdf' if ($args -contains 'c:\document(draft).pdf') { write-host $args } output: c:\document(draft).pdf

c - Difference between typedef struct and struct? -

i know basic difference between them have doubt in particular situation following: struct books{ int id; char* title; }book; book.id=9; // valid; but in case of typedef : typedef struct books{ int id; char*title; }book; book.id=9; //it not valid have book b1; b1.id=9 valid what going on here can u tell me? in first case, creating object of type struct books named book . in second, defining alias book type struct books . book not object type name.

Teamcity build on every git commit vs build on pull request -

we setting teamcity our project uses git. have debate on if should trigger build on every commit or on every pull request. if push branch a, , have configured build on pull request on master build triggered on how merged code appear or build branch ? lets imagine have configures our teamcity build every pull request now lets have branch master, developer checksout branch ftb_a. creates new test case , commits. developer code not yet merged master. develope b creates new branch ftb_b creates new test case. developer pushes branch , raises pull request build runs test case added develope runs. pull request developer merged , newly created tesr case available in master now. now developer b pushes branch, has not rebased branch i.e. test case added developer not available in brach ftb_b. developer b raises pull request. build triggered. question when build triggered pull request raised developer b test case added developer in master run or not though not indicated, i...

javascript - show markers on map with getJSON -

i trying place markers on google map first finding latitude , longitude of user geolocation , sending same using request. here code: function getlocation() { if (navigator.geolocation) { navigator.geolocation.getcurrentposition(function (position) { $.ajax({ type: "get", url: "http://localhost/baazar_search/public/walkalong/" + position.coords.latitude + "/" + position.coords.longitude, data: { lat: position.coords.latitude, log: position.coords.longitude }, success: function () { window.location.replace("http://localhost/baazar_search/public/layer0"); } }); }); } else { x.innerhtml = "geolocation not supported browser."; } } and second file this- function initialize() { var mapoptions = { ...

c# - Unable to ulpoad file using S3 TransferutilityUploadRequest -

here code : try { transferutility filetransferutility = new transferutility(new amazons3client(amazon.regionendpoint.useast1)); transferutilityuploadrequest filetransferutilityrequest = new transferutilityuploadrequest { bucketname = bucketname, filepath = filepath, storageclass = s3storageclass.reducedredundancy, partsize = 6291456, // 6 mb. key = keyname, cannedacl = s3cannedacl.publicread }; filetransferutility.upload(filetransferutilityrequest); } catch (amazons3exception s3exception) { console.writeline(s3exception.message, s3exception.innerexception); } catch (exception ex) { } wherenever execute code exception "could not load type 'system.runtime.exceptionservices.exceptiondispatchinfo' assembly 'mscorlib, version=...

angularjs - Angular digest is not running when a promise is resolved -

in angular application have directive isolated scope. directive gets string parameter in scope , since value might initialized parent scope in asynchronous process - gets promise that's resolved parent when value ready use. strange thing: when promise resolved value in directive's scope still undefined, although in parent controller has value. see plunker example of experience: https://plnkr.co/edit/wlilkao95xwwu2rf29ox?p=preview in controller: $scope.defer = $q.defer(); // simulate async operation $timeout(function(){ $scope.ctrlvalue = 'hi'; $scope.defer.resolve(); }); in directive: scope.valuepromise.then(function(){ alert(scope.value); }); important note: if wrap 'alert' line of code in block of $timeout - scope.value has right value. seems angular not running digest when promise resolved. any ideas? use $timeout in directive. time required apply changes of parent scope directive scope. tried v...

Safeguarding method parameters in java -

i want safe guard method parameters passed called method being changed accidentally. know can use final keyword achieve (partially) following in method signature. public void somemethod(final int intval, final myclass myobj){} with of above signature cannot change value of intval , can change values (members) of myobj (i can safe guard reference not being changed, not members of referencing object, why said partial). now looking safe guard myobj members either, getting changed in called method somemethod . in knowledge achieve using following ways create immutable class , pass parameter deep copy object , send cloned object method. is there better apporach safeguard method parameters?

java - SAXParseException: The prefix "xsi" for attribute "xsi:schemaLocation" is not bound -

i'm getting error when try call webservice (hp-service manager, if it's going help) class deployed websphere 7.0. same code functions when call junit code... the fragment of wsdl is: <definitions targetnamespace="http://schemas.hp.com/sm/7" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/xmlschema" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://schemas.xmlsoap.org/wsdl/ http://schemas.xmlsoap.org/wsdl/"> i've thought xmlns:xsi knows xml parser, don't understand error. why such error occures on websphere, while not occur when code launched in junit using com.ibm.ws.webservices.thinclient ? the adequate stacktrace fragment is: caused by: javax.wsdl.wsdlexception: wsdlexception: faultcode=parser_error: problem parsing 'wsjar:file:/path/to/ear.ear/war.war/web-inf/lib/my...

asp.net - Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON' after idle time -

in our web.config specify sql user , password log sql sql authentication , not windows authentication. when deployed iis, works fine, when keep browser session open long time without user interaction error: login failed user 'nt authority\anonymous logon'. if sql timeout error expect different error, happens after idle time, assume related timeout. is sql timeout error? trying log sql nt authority? error message: application error: sqlexception. login failed user 'nt authority\anonymous logon'. at system.data.sqlclient.sqlinternalconnection.onerror(sqlexception exception, boolean breakconnection, action`1 wrapcloseinaction) @ system.data.sqlclient.tdsparser.throwexceptionandwarning(tdsparserstateobject stateobj, boolean callerhasconnectionlock, boolean asyncclose) @ system.data.sqlclient.tdsparser.tryrun(runbehavior runbehavior, sqlcommand cmdhandler, sqldatareader datastream, bulkcopysimpleresultset bulkcopyhandler, ...

python - xhtml2pdf gae no module named -

i'm trying deploy app on gae. on local app works, on gae when try run, return: no module named xhtml2pdf thats code: import webapp2 xhtml2pdf import pisa weasyprint import html import urllib import urllib2 import stringio the requeriments.txt: pillow html2pdf xhtml2pdf pypdf webapp2 webob paste thanks! you need copy xhtml2pdf , other dependent files project. 1) copy xhtml2pdf, html5lib, reportlab folder pdf folder. 2) copy six.py file pdf folder. for more detail check blog http://array151.blogspot.in/2016/05/how-to-get-xhtml2pdf-working-on-google.html

objective c - not found for architecture i386 iOS -

i finding following error while trying run project ios charts library. code works fine on simulator when running on iphone5 , ipad2 build fails iphone6 , above: undefined symbols architecture i386: "_objc_class_$__ttc6charts12barchartdata", referenced from: objc-class-ref in smwbarchartsviewcontroller.o objc-class-ref in smwbargraphviewcontroller.o "_objc_class_$__ttc6charts12piechartdata", referenced from: objc-class-ref in smwpiechartsviewcontroller.o "_objc_class_$__ttc6charts15barchartdataset", referenced from: objc-class-ref in smwbarchartsviewcontroller.o objc-class-ref in smwbargraphviewcontroller.o "_objc_class_$__ttc6charts15piechartdataset", referenced from: objc-class-ref in smwpiechartsviewcontroller.o "_objc_class_$__ttc6charts17barchartdataentry", referenced from: objc-class-ref in smwbarchartsviewcontroller.o objc-class-ref in smwpiechartsviewcontroller.o ...

javascript - Breaking text into two lines inside circle in d3 -

i have modified orbit layout mbostock examples... have problem in breaking text inside node in 2 lines... i have written wrap function...but seems doesn't work.... all need text inside circle should come in 2 lines.... please advice..... <html> <head> <title>orbit layout modes</title> <meta charset="utf-8" /> </head> <style> #viz, svg { width: 1000px; height: 1000px; padding-left:50px; } text { pointer-events: none; } #buttons { position: absolute; top: 0; left: 0; } circle.ring { fill: none; stroke: black; stroke-width: 2.5px; stroke-opacity: 0.5; padding-left: 70px; } </style> <script> function makeviz() { d3.json("/newfolder1/solarsystem.txt", function (data) { draworbit(data) }); } function draworbit(_data) { orbitscale =...