Posts

java - JUnit and other dependencies not recognized by CI build -

background: so team using microsoft's git services , we've set ci tests. not using maven, , project connected remote server through eclipse microsoft team services plugin, try interact remote repo through command line. current strategy: i'm not familiar how deal dependencies on remote repo java projects i've tried pushing .jar dependencies in our build path rest of source code (i know they're big , there's better way this). problem: when push .jar files, ci tests still fail following errors: src\jblastests.java(1):src\jblastests.java(1,): error : [javac] d:\a\1\s\ src\jblastests.java:1: error: package org.junit not exist src\jblastests.java(5):src\jblastests.java(5,): error : [javac] d:\a\1\s\ src\jblastests.java:5: error: package org.jblas not exist and more error reports related missing symbols due packages not being found. questions: 1) else needs on repo make build work? 2) there better way, besides maven, link libraries repo? ...

ggplot2 - Use an image as area fill in an R plot -

Image
how can graph similar (the dollar image graph)? or packages can with? have (gg)plot using geom_area. dollar graph image this purely novelty purposes, right? in code below, cover portion of dollar bill above blue curve using geom_ribbon . library(jpeg) library(grid) library(ggplot2) library(scales) theme_set(theme_classic()) # load image of dollar bill , convert raster grob download.file("https://2marks.files.wordpress.com/2013/07/george-washington-on-one-dollar-bill.jpg", "dollar_bill.jpg") db = readjpeg("dollar_bill.jpg") db = rastergrob(db, interpolate=true) # fake data set.seed(3) dat = data.frame(x=1913:2009) dat$y2 = seq(5,950, length=nrow(dat)) + rnorm(nrow(dat), 0, 5) dat$y1 = seq(100,5,length=nrow(dat)) + c(0, -0.5, rnorm(nrow(dat) - 2, 0, 2)) ggplot(dat, aes(x, y1)) + annotation_custom(db, xmin=1913, xmax=2009, ymin=0, ymax=100) + geom_ribbon(aes(ymin=y1, ymax=100), fill="white") + geom_line(...

python - Designing an Efficient neural network for a Regression data -

by following tutorials on tensorflow , reading basic stuff neural networks, have modeled neural network using python , tensorflow libraries. as of now,my ".csv" file data follows: at v ap rh pe 14.96 41.76 1024.07 73.17 463.26 25.18 62.96 1020.04 59.08 444.37 5.11 39.4 1012.16 92.14 488.56 20.86 57.32 1010.24 76.64 446.48 10.82 37.5 1009.23 96.62 473.9 26.27 59.44 1012.23 58.77 443.67 15.89 43.96 1014.02 75.24 467.35 9.48 44.71 1019.12 66.43 478.42 14.64 45 1021.78 41.25 475.98 ..................................... as of now,i have designed neural network function multiple inputs , multiple outputs. in above data,i considering first 3 columns inputs , next 2 columns outputs.so,once training data,if pass inputs 14.64,45,1021.78 ,i want neural network predict output values 41.25 , 475.98. here current code: import tensorflow tf import numpy np import pandas pd #import matplotlib.pyplot plt rng = np.random...

camera - Measure depth of facial features, e.g.: stereographically (two photos)? -

what's easiest/cheapest way of measuring depth of facial features millimeter? i thinking 2 photos taken smartphones @ static distance , angle person. e.g.: infer exact protrusion of nose @ each point of arch, eyes &etc.

javascript - 405 (Method Not Allowed) in Angular JS With WCF Service -

Image
currently working on wcf project. consuming wcf project angular js application when run application not provide error. there errors when launch developer tools in google chrome , cannot insert, update , delete etc. it's showing following errors...... me correct errors grateful. ?o=3&g=ec0825c4-90a4-2692-d257-cd2c2b565912&s=1a2c77e8-0498-4a11-b8b8-d740dbec71c4&z=1403834305:2 uncaught syntaxerror: unexpected token < 2angular.js:12701 options http://localhost:50028/studentservice.svc/addnewstudent 405 (method not allowed) index:1 xmlhttprequest cannot load http://localhost:50028/studentservice.svc/addnewstudent. response preflight has invalid http status code 405 modules.js:52 error occured[object object] index:1 http://localhost:50028/studentservice.svc/getallstudent/ 400 (bad request) angular.js:14642 referenceerror: $log not defined @ modules.js:18 @ angular.js:17000 @ m.$digest (angular.js:18182) @ m.$apply (angular.js:18480) @ l (angular....

ios - Have 2 container views. Need to change one to a different view controller -

so have main view controller... , 2 view containers. vcon1 , vcon2 have them talking each other via delegates i'm not sure how change view controller displayed...so tap on button in vcon1 change vcon2 have new view controller... i have navagation controller in vcon2 i'm not sure want "stack" of view controllers in there...just want swap out 1 another. any suggestions appreciated.. if both of them have been added subviews on parentcontroller's view, it's matter of calling bringsubviewtofront . else can remove 1 of view controllers, , proceed add other one. can read more view controller containment @ objc.io

nsfilemanager - Error: The operation is not supported for this media - Swift -

i trying save video code on apple tv: func playeritemdidreachend(_ notification: notification) { if notification.object as? avplayeritem == player.currentitem { player.seek(to: kcmtimezero) let exporter = avassetexportsession(asset: asset, presetname: avassetexportpresethighestquality) let filename = "video.mp4" let documentsdirectory = filemanager.default.urls(for: filemanager.searchpathdirectory.documentdirectory, in: filemanager.searchpathdomainmask.userdomainmask).last! let outputurl = documentsdirectory.appendingpathcomponent(filename) exporter?.outputurl = nsurl.fileurl(withpath: outputurl.path) exporter?.outputfiletype = avfiletypempeg4 let path = nssearchpathfordirectoriesindomains(.documentdirectory, .userdomainmask, true)[0] string let url = nsurl(fileurlwithpath: path) let filepath = url.appendingpathcomponent(filename)?.path let filemanager = filemanager.default ...