Posts

Spark REPL doesn't run due to an error -

i got pre-built spark 1.4.1 , i'm running hdp 2.6. when run spark-shell gives me error message follows. because i'm missing jar file ? error actor.oneforonestrategy: java.lang.nullpointerexception @ org.apache.spark.deploy.client.appclient$clientactor$$anonfun$receivewithlogging$1.applyorelse(appclient.scala:160) @ scala.runtime.abstractpartialfunction$mcvl$sp.apply$mcvl$sp(abstractpartialfunction.scala:33) @ scala.runtime.abstractpartialfunction$mcvl$sp.apply(abstractpartialfunction.scala:33) @ scala.runtime.abstractpartialfunction$mcvl$sp.apply(abstractpartialfunction.scala:25) @ org.apache.spark.util.actorlogreceive$$anon$1.apply(actorlogreceive.scala:59) @ org.apache.spark.util.actorlogreceive$$anon$1.apply(actorlogreceive.scala:42) @ scala.partialfunction$class.applyorelse(partialfunction.scala:118) @ org.apache.spark.util.actorlogreceive$$anon$1.applyorelse(actorlogreceive.scala:42) @ akka.actor.actor$class.aroundreceive(actor.sc...

excel - vba: Identify row using 2 criteria and return other data from row -

Image
i trying find code looks @ 2 criteria in spreadsheet1 , finds row corresponds in spreadsheet2 , returns third piece of data in spreadsheet2 spreadsheet1. need in vba because loops, because done again , again, , because data spreadsheet2 imports database , change on time. if possible nice if code allowed identifying 3rd criteria on spreadsheet2. example is: spreadsheeet 1 product id actcode: a0003 11111 12345 22222 ... spreadheet 2 productid activitycode datedue 11111 a0001 7/15/15 11111 p7530 7/30/15 11111 a0003 8/1/15 12345 a0003 12/15/15 12345 a0007 1/1/15 22222 a0001 2/1/15 ... where want spreadsheet1 end up: spreadsheeet 1 product id actcode: a0003 11111 8/1/15 12345 12/15/15 22222 - ... i have tried ton of things on past few days. 1) vlookup/index/match combos have never worked, 2) filtering spreadsheet2 productid , activitycode , copying sp...

c++ - How to get more information about cv::Stitcher failing -

Image
i have 2 cameras looking overhead @ square object, , i'd take 2 images , combine them 1 image (approximately) representative of overall area. the views 2 cameras so: the left edge of left image should stitch right edge of right image, dotted black line being point overlap. my first attempt stitch images using technique in tutorial: http://ramsrigoutham.com/2012/11/22/panorama-image-stitching-in-opencv/ #include <stdio.h> #include <iostream> #include "opencv2/core/core.hpp" #include "opencv2/features2d/features2d.hpp" #include "opencv2/highgui/highgui.hpp" #include "opencv2/nonfree/nonfree.hpp" #include "opencv2/calib3d/calib3d.hpp" #include "opencv2/imgproc/imgproc.hpp" using namespace cv; void readme(); /** @function main */ int main( int argc, char** argv ) { if( argc != 3 ) { readme(); return -1; } // load images mat image1= imread( argv[2] ); mat image2= imread( argv[1] ); mat gray...

Facebook Marketing API - Create ad without business page -

is possible create ad via facebook marketing api without having or using facebook business page? hadn't found reference confirms guess. i'll appreciate help, thanks! yes, can create link ad not connected page using adcreative fields title, body, object_url, , image_file or image_hash. actor_id use fb user id can reading /me endpoint. more info on adcreatives @ https://developers.facebook.com/docs/marketing-api/adcreative/v2.4 here's curl example page. -f 'object_url=https://www.link.com' \ -f 'title=my title' \ -f 'body=my ad body' \ -f 'image_hash=<image_hash>' \ -f 'actor_id=<actor_id>' \ -f 'access_token=<access_token>' \ https://graph.facebook.com/<api_version>/act_<ad_account_id>/adcreatives

html - Why does my mobile device still treat my viewport as a desktop? -

i doing quick mobile version of desktop site in bootstrap , running formatting issues. when expand view on desktop, icons show in 3 4 grid fine. when narrow width of window, grid of images acts accordingly , narrows down 1 column 12 images per row, no horizontal side bar. however, when viewing on mobile, my nav bar not 'snap' width of visible resolution per , allows me side scroll - though images still aligned in 1 column of 12 images. navigation acts if being viewed on desktop , not on mobile despite site detecting being viewed on mobile. might hard replicated in fiddle without seeing on mobile, included fiddle see if can tell talking about. /*******general********/ *{ box-sizing: border-box; margin: 0; zoom: 1; font-size: 13px; } body{ background: #f9f9f9 url(../img/crossword.png) repeat top left; font-family: 'open sans', tahoma, sans-serif; max-width: 100%; background-color: #5f5e5e; font-size: 13px; color: #333; o...

popup - User can't navigate if dialogue is open -

if dialogue open , user wants open screen or needs close dialogue first , navigate, otherwise can't. i having javafx dialogue working unable figured out how restrict user not navigate anywhere else without closing current dialogue. code: final textfield templatetexbox = new textfield(); final label templatenamelabel = new label("template name"); final label templatetype = new label("type of template"); final checkbox cb = new checkbox("set default template"); final combobox combobox = new combobox(); combobox.getitems().addall("private", "public"); combobox.setprompttext("select template type"); if (getviewmodel().selectedtemplate().get() != null) { templatetexbox.settext(getviewmodel().selectedtemplate().get().getpreference().getname()); cb.setselected(getviewmodel().selectedtemplate().get().getdefaulttemplate()); co...

database - How to Print Multiple Report Tabs In Access -

i have form order can put in, , user can select check boxes, , click button generate of different reports checked off. when button pushed, opens of reports current record in print preview, in multiple tabs. wondering if there way user print open report tabs @ once or have go through each tab printing separately? thanks