Posts

Showing posts from August, 2011

running eslint on github repos through api -

i working on multiple projects, i.e. multiple repos on github , have more 10 repositories multiple people contributing different repos on daily basis. it getting hard manage various aspects of repos, decided build dashboard using github graphql api, visualize , display summary on 1 page. i want show status each repo, if eslint passed or not. in dilemma on how run eslint on each repository progamatically, , report errors , warnings on 1 page using api, i did setup node-graphql project , getting various information repos. not sure how approach particular feature.any or suggestion appreciated. thanks

html - How to find the xpath of a header title in Selenium Webdriver with Java -

i need xpath of header title provides class , text within 'inspect element' tab. the goal have if statement check see if title of page matches intended header can run code command selenium. reason why don't use "find web elements linktext" because actual content of header viewable in various pages. therefor, code run since text present. cannot use class since class name same every page. i need header using both class name , text. i have tried if(driver.findelements(by.xpath("//*[@class='classname' , contains (text(),'headertext')]")) !=null) if header text doesn't match continue run. believe because technically class present text although different elements. two possible points there: driver.findelements(..) never null. return empty collection if no matching elements found. so, use driver.findelements(..).isempty() handle case when nothing found try using contains(.,'headertext') instead of contains...

html - Blank space going off-screen -

i trying fix following issue on website: http://santanna.beutifi-website.com/ notice there blank space right if page has wider width or margin, although after checking these features, not figure out problem is. not happen on mobile devices though. i played developer tools quite while , no luck, wondering if of might able see whats wrong... cheers! i started writing @matthew said since you're using wordpress it's better overwrite style. try this: .copyright{ margin-left: 0 !important; } .copyright p{ text-align:center !important; } add custom styles of theme if possible. luck!

java - Docker container running one computer and not another -

i'm trying deploy websphere liberty application via docker. i'm using apache struts ui. when deploying on local machine have no problems, when put on seemingly other machine, throws error saying struts2 filter cannot loaded. classes not seem missing. why container work on 1 machine , not another? stack trace: [error ] srve0321e: [struts2] filter did not load during start up. filter [struts2]: not initialized [error ] srve0315e: exception occurred: java.lang.throwable: javax.servlet.servletexception: filter [struts2]: not initialized @ com.ibm.ws.webcontainer.webapp.webapp.handlerequest(webapp.java:5027) @ [internal classes] caused by: javax.servlet.servletexception: filter [struts2]: not initialized @ com.ibm.ws.webcontainer.filter.filterinstancewrapper.init(filterinstancewrapper.java:163) ... 1 more caused by: unable create sax parser - class: com.icl.saxon.aelfred.saxparserfactoryimpl file: saxparserfactoryimpl.java method: newsaxparser line: 34 - com...

python - Populate iterated form fields with data -

i cannot iterated form fields populate corresponding data. it works fine when iterated regular object (appearing in template {{ h.name }} example), know data there - it's failing input when use value = argument within form. i'm not sure if there's flaw in logic or approach displaying hourly entries, or syntax error. here jinja template: <tr> <th>employee</th> <th>date</th> <th>regular hours</th> <th>overtime hours</th> {% if g.current_user.role == "administrator" %} <th>rate</th> {% endif %} <th>edit</th> {% h in workorder.work_order_hours %} <tr> <td>{{ form2.employee_name(value=h.name) }}</td> <td>{{ form2.date(value=h.date) }}</td> <td>{{ form2.regular_hours(value=h.regular_hours) }}</td> <td>{{ form2.ot_hours(value=h.overtime_hours) }}</td> ...

javascript - Actual page number and total pages numbers in Chrome print mode -

i need create custom footer in print mode in chrome. have fixed positioned footer , set bottom 0. footer displays on every page. added <p> class footer-paragraph , tried count elements class name footer-paragraph . got 1 element 15 pages. why getting 1 element object when have 1 element each printed page? tried css. found this: @page { @bottom-center { content: counter(page) "/" counter(pages) } } but doesn't work in newest chrome. chrome has own footer doesn't good. there trick solves this? too bad, that's read in page "3.3.4. pages() the 'pages()' function returns total number of pages in document. allows text such "page 1 of 5" inserted in margin boxes. function potentially expensive in terms of processing required, , applies paged media."

winforms - C# Show DataGridView based on the combobox selection -

Image
i need c# windows form application. i have 1 datagridview created in form, datagridview needs show depending of users comobobox selection, combobox has 3 selection , each selection needs show different database table example if selection warehouse1 show database table warehouse1 database. if selection warehouse2 show database table warehouse2 , same thing warehouse3. each warehouse if different database. far have working when adding warehouse1 without combobox selection, need based on combobox selection. after creating each function database table called in form1 method each database here code private void form1_load(object sender, eventargs e) { // bind datagridview bindingsource // , load data database. if (cmb_databaseselection.selecteditem == "warehouse1") { datagridview_showalldata.datasource = bindingsource; getlemarsconnectiondatabaseconnection("select * dbo.a...

dictionary - C++ map, switch, and main menu trouble -

when run main menu, able add data needed map, problem happens when go menu , find when try print data nothing appears. in case wondering, there no errors, not print data stored within map when run print contacts menu. below code. main #include <iostream> using namespace std; #include "addcontact.h" //password "delta" use upper case d , rest lower case int main() { addcontact con; con.menu(); return 0; } addcontact.h #include <iostream> #include<cstdlib> #include<map> using namespace std; #ifndef addcontact_h_ #define addcontact_h_ class addcontact { public: std::map<int, addcontact> people; private: string contactname; long long contactphone; string address; string email; string skype; public: addcontact(); addcontact(string contactname, long long contactphone, string address, string email, string skype); void add(); void print()const; void view(); void menu()...

javascript - Google Dashboard - chartRangeFilter , how to know when slider controls move, then stop -

i can add event handler chartrangefilter controlwrapper find out when sliders moving: google.visualization.events.addlistener(control, 'statechange', selecthandler); and have handler it: function selecthandler(e){ var state = control.getstate(); console.log(state); if (state != 'inprogress') { currentleftsliderpos = control.getstate().range.start; currentrightsliderpos = control.getstate().range.end; console.log(currentleftsliderpos); console.log(currentrightsliderpos); } } it's not working , know why. control.getstate() returns object , not want. know there way check if sliders 'inprogress', can't figure out have read on how that. or check 'ready' status? don't want reload graph data until slider has stopped because have large dataset. use inprogress property on argument sent event handler it has following properties... { "inprogress"...

Feature Importance Chart in neural network using Keras in Python -

Image
i using python(3.6) anaconda (64 bit) spyder (3.1.2). set neural network model using keras (2.0.6) regression problem(one response, 10 variables). wondering how can generate feature importance chart so: def base_model(): model = sequential() model.add(dense(200, input_dim=10, kernel_initializer='normal', activation='relu')) model.add(dense(1, kernel_initializer='normal')) model.compile(loss='mean_squared_error', optimizer = 'adam') return model clf = kerasregressor(build_fn=base_model, epochs=100, batch_size=5,verbose=0) clf.fit(x_train,y_train) at moment keras doesn't provide functionality extract feature importance. you can check previous question: keras: way variable importance? or related googlegroup: feature importance spoiler: in googlegroup announced open source project solve issue..

java - Finding all combinations of duplicates numbers to reach a given sum -

i want finding combinations in array reach given sum. example if array [1,1,1,2,4,4] , given target 5 should output be: expected output 1 1 1 2 1 4 1 4 this code far did: static void sum(int[] arr, int i, int sum, int target, string s) { (int j = + 1; j < arr.length; j++) { if (sum + arr[j] == target) { system.out.println(s + " " + string.valueof(arr[j])); } else { sum(arr, j, sum + arr[j], target, s + " " + string.valueof(arr[j])); } } } public static void main(string[] args) { int[] numbers = { 1, 1, 1, 2, 4, 4 }; (int = 0; < numbers.length; i++) { sum(numbers, i, numbers[i], 5, string.valueof(numbers[i])); } } and output of code : my output 1 1 1 2 1 4 1 4 1 4 1 4 1 4 1 4 there problem when have duplicates elements , working non duplicates numbers, not when there duplicates numbers. want know how can solve problem output seems expected one. one of basic ob...

c# - Websocket-sharp not raising OnOpen event upon opening websocket -

i'm in stages of writing program interface ip camera. bit of code wrote yesterday worked, when came morning didn't. know, did something, best of memory worked when clicked debug before leaving , didn't when clicked debug when came in. left computer on vs running overnight (which never do, , have restarted since) , internet tabs left them. computer locked, unless resourceful individual decided mess me, nothing changed overnight. i'm using websocket-sharp, , when connect websocket (which seem happen successfully), onopen event isn't raised. the bit websocket-sharp raises event in following lines. private void open () { _inmessage = true; startreceiving (); try { onopen.emit (this, eventargs.empty); } catch (exception ex) { _logger.error (ex.tostring ()); error ("an error has occurred during onopen event.", ex); } it reaches onopen.emit, , doesn't throw exception, seems think it's raising event. event seen below p...

c# - Performance wise difference between returning direct initialization and storing in variable -

is there difference (performance wise) between: public user getuser1() { var user = _database.user.first(); return user; } public user getuser2() return _database.user.first(); } here output linqpad c# 7.0 same functions on database: getuser1: il_0000: ldarg.0 il_0001: call linqpad.user.typeddatacontext.get_users il_0006: call system.linq.queryable.first<user> il_000b: ret getuser2: il_0000: ldarg.0 il_0001: call linqpad.user.typeddatacontext.get_users il_0006: call system.linq.queryable.first<user> il_000b: ret here output optimization turned off. note nop s , br.s debugging/breakpoint purposes. getuser1: il_0000: nop il_0001: ldarg.0 il_0002: call linqpad.user.typeddatacontext.get_users il_0007: call system.linq.queryable.first<user> il_000c: stloc.0 // user il_000d: ldloc.0 // user il_000e: stloc.1 il_000f: br.s ...

google chrome - angular 4 with webpack to asp.net core sometimes VERY slow to start -

most of time when make change angular component, result shows in browser, or sometimes, shows error. but often, restarting app takes 30 seconds though built in under second. there error on browser console appears because got tired of waiting app load. what doing wrong?

c# - Forms created from async void Form.Load event handler of another Form -

i have async void event handler creates , form , passes sempahoreslim initial count 0 , waits asyncronously on (showing form before wait). when click button in form semaphore released , event handler continues execution on same context (uithread). debugging found when form shown , defwndproc called (called internally .net framework form class implementation) application freezes. why? class debugform : form { semaphoreslim waitok; public debugform (semaphoreslim waitok) { initializecomponent(); this.waitok = waitok; } //added in initializecomponent async void buttonok_click(object sender, eventargs e) { //do stuff ui waitok.release(); } } in mainform load event this: async void mainform_load(object sender, eventargs e) { semaphoreslim sem = new semaphoreslim(0); form debugform = new debugform(sem); //it stucks in show call low probability debugform.show(); await sem.waitasync(); //do othe...

pythonanywhere - Python Anywhere package install issue -

so i'm trying run program imports package python mdsplus module (a python package), , working great on computer. in short, standard python package number of submodules, initialized global load method in folder. however, when run on pythonanywhere, main package import cannot load submodules, , program fails.is familiar type of problem? believe permissions issue, nothing looks wrong. in library appears in right place, it's not recognizing modules.

VBA Email Loop for excel reporting -

i created macro run report selected indivdual , send person email package. report meant 20 people, has been tedious run report each person , send it. i wondering if there way type names in cells of people want run report , have excel loop through each 1 , send report selected individual , loop next one. is possible, , if how go creating macro. thank aid perhaps can adjust code below needs. send contents of textbox on activesheet list of emails in column a. use have set sending email account in outlook. option explicit 'how send email list of recipients based on data 'stored in workbook. recipient email addresses must 'be in column a, , body text of email must in 'the first text box on active sheet. sub sample() dim olapp object, olmailitm object, integer, j integer dim r range, s string, numrows integer, numcols integer dim dest variant, emailaddr string, txtbox shape 'create outlook application , empty email. set olapp = create...

javascript - Uncaught SyntaxError: Unexpected identifier "," using chessboard.js -

i making chess engine using chessboard.js have problem... coding wrong this: var board, game = new chess(); and page says: uncaught syntaxerror: unexpected identifier my html is: <!doctype> <html> <head> <title>chess</title> <link rel="stylesheet" href="css/chessboard-0.3.0.min.css"> <script src="https://code.jquery.com/jquery-1.12.4.min.js"></script> <script src="js/chessboard-0.3.0.min.js"></script> </head> <body> <div id="board" style="width: 400px"></div> <script src="pro chess.js"></script> </body> </html> thanks! webpage at: chessboardjs.com/ should semi colon, not comma. semi colon used denote end of statement. var board; game = new chess();

xcode - Sentry erorr unpon launch of react-native app -

i'm trying launch react-native app in xcode, build succeeds errors on launch page. the error is: dyld: library not loaded: @rpath/libswiftcore.dylib referenced from: /users/****/library/developer/xcode/deriveddata/*****/build/products/debug-iphonesimulator/sentry.framework/sentry reason: image not found here relevant dependencies: "dependencies": { "react-native": "^0.43.3", "react-native-sentry": "^0.6.0", i've tried looked @ few relevant docs , haven't helped far. thanks help.

typescript - How to bind Arrays in angular between components? -

problem i have 2 child-components , 1 parent component. first child simple list of tasks, second map points showing whole project(project have list of tasks), have lots of interactions points on map, , need bind array of tasks between components. main component html: <app-tasks-list [(taskslist)]="project.tasks"></app-tasks-list> <app-map [project]="project" (onaddtaskmodalclose)="addtasktolist($event)"></app-map> ts: in typescript file handle onaddtaskmodalclose() event , getting project http. first child component (list) export class taskslistcomponent implements oninit { @output() ontaskschange: eventemitter<projecttask[]>; @input() taskslist() { return this.tasks } set taskslist(taskslist: projecttask[]) { this.tasks = taskslist; this.ontaskschange.emit(this.tasks) } private tasks: array<projecttask> = []; } in html i'm using taskslist getter displaying data, project...

generics - F# - warning that I am not declaring type parameters explicitly -

given: type service = object type services = concurrentdictionary<type, service> why this: // if use form, compiler warning: type getservice<'t> = services -> 't let getservice:getservice<'t> = fun services -> services.[typeof<'t>] :?> 't produce warning: "the method or function 'getservice' should not given explicit type arguments because not declare type parameters explicity." but not: let getservice<'t> (services : services) = services.[typeof<'t>] :?> 't example usage: let someservice = services |> getservice<someservicetype> if want correct first version not warning, how change definition? just give type parameter, error message suggests. should work: let getservice<'t> : getservice<'t> = fun services -> services.[typeof<'t>] :?> 't

jquery - Dynamically and responsively centering loader image with table dimensions -

Image
i'm using datatables building table. i'd use own loader image simple transparent background instead of datatable's processing indicator (default or customized one), since doesn't centered when there few records. how can center loader (image+background) dynamically , responsively table dimensions? here 2 examples centeralized loader: current (wrong) fiddle clarification (thanks @andrei gheorghiu comment): i want loader centered rows area, i.e., table excluding headers, footers or other elements - shown in images above. in fact, default spinner centered. looks off because columns unequal. can solve 2 ways: a) move spinner "look" centered (i wouldn't go route) b) make center column centered in table. for b), considering have 3 columns, i'd use #factorytable td:first-child,#factorytable td:last-child { width: 30%; } i'm not sure how vertical centering done in plugin know question you'd custom spinner verti...

javascript - How do I change the displayed text within a button using pure js? -

i'm beginner coding , wondering if guys might help. i've seen lot of stuff online using innerhtml , textcontent , value etc. change displayed text tag can't change on-screen. note: console.log 's fire , display expected text in console correct content button content doesn't change in window. here's html: <h1 id="myheading" class="red">javascript , dom</h1> <p>making web page interactive</p> <button id="mybutton">click me</button> here's javascript: const myheading = document.getelementbyid('myheading'); const mybutton = document.getelementbyid('mybutton'); let buttontext = mybutton.innertext; console.log(buttontext); mybutton.addeventlistener('click', function togglecolor() { let whatclass = myheading.classlist; if (whatclass.contains('red')) { whatclass.remove('red'); whatclass.add('yellow'); buttontext = ...

css - React Native: Flex behaving differently -

import react, { component } 'react'; import { view, text, stylesheet, touchablehighlight } 'react-native'; class first extends component { render () { return ( <view style = {styles.container}> <text> hello world! </text> </view> ); } } const styles = stylesheet.create ({ container: { backgroundcolor: 'yellow', flex: 1 } }); module.exports = first; this code fills screen yellow in projects started react-native init shows nothing in projects started create-react-native-app . normal? edit: mistakenly called styled view in main app.js. stupid mistake; calling component styled view of main app.js. taking time out, guys.

java - web service tutorial sample on weblogic --> 404 -

i have followed web service tutorial sample , deployed on weblogic. when type url, shows 404. have wrong or missing?? path http://localhost:7001/aeon_mobileapps_java_ws/userservice/users web.xml <?xml version="1.0" encoding="utf-8"?> <web-app> <servlet> <display-name>my jersey application</display-name> <servlet-name>myjerseyapp</servlet-name> <servlet-class>com.sun.jersey.spi.container.servlet.servletcontainer</servlet-class> <init-param> <param-name>javax.ws.rs.application</param-name> <param-value>com.tutorialspoint</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>myjerseyapp</servlet-name> <url-pattern>/*</url-pattern> </servlet-mapping> </web-app> weblogic.xml <?xml version='1.0' encodin...

jquery - How do I create an array from a looping val? -

i have partial piece of code compares text in contenteditable div called #notes array created text document called dictionary.txt. it loops through split text #notes called splitcnteditabletxt , checks whether matches. if matched, creates new span matched value in it. now, want create new array using matched val loop. ideas of creating array loop? here's partial code. thank again~!!! $('#lattepool').load('dictionary.txt', function(){ var text = $("#lattepool").text().touppercase(); var words = text.split("\n"); var dictionary = new array(); for(var i=0; < words.length; i++) { dictionary[i] = words[i]; }; var contenteditabletxt = $("#notes").text(); var splitcnteditabletxt = contenteditabletxt.replace(/([.,-=/])/g," ").split(" "); //alert(splitcnteditabletxt); //debug $.each(splitcnteditabletxt,function(key,val){ var namefound = $.inarray(val.trim().t...

html - Angular 2 When I submit the form the data is coming empty -

i'm new angular 2, finished studied angular 1x , knew has increased version. my problem i'm not getting data on component. html : <div class="container"> <h1 class="text-center"> cadastro teste </h1> <form (submit)="cadastro($event)" > <div class="row"> <div class="col-lg-12"> <div class="form-group"> <label> nome : </label> <input type="text" (ngmodel)="pessoa.nome" name="nome" class="form-control"/> </div> </div> </div> <div class="row"> <div class="col-lg-12"> <div class="form-group"> <label> email : </label> <input type="text" (ngmodel)="pessoa.email" name="email" class="form-cont...

python - Package Not Found Error in Console when i Run my .py file from Explorer -

i'm beginner in python. i'am using pycharm community python script. code run have custom packages imported, ide(pycharm) code runs expected output good. problem if ran code file local drive double click prompt says package not found.why so?. requesting help. // file i'm trying run from stackoverflow import speak import datetime def time_compare(): = datetime.datetime.now() today12pm = now.replace(hour=12,minute=0,second=0,microsecond=1) today4pm = now.replace(hour=15,minute=0,second=0,microsecond=0) today6pm = now.replace(hour=18, minute=0, second=0, microsecond=0) if < today12pm: speak.sen_speak ("good morning shiv!") elif today12pm <= , < today4pm: speak.sen_speak("good afternoon shiv") elif today4pm <= , <today6pm: speak.sen_speak("good evening shiv") else: speak.sen_speak("it seems night, going work") input("press enter exit") ...

dependencies - Undefined reference to Class::Class() and functions in one file? c++ -

everything compiling fine, , i've looked through 10 different questions on here trying solve including this , this , , this . please don't kill me, i've been beating head against wall 3 hours now. i've tried building offending file , seems build fine, when build project still throws same errors. i've tried moving include ".h's" cpp files when possible of time still didn't help. when change bitboards *newboard = new bitboards; to bitboards *newboard; the error on line goes away, still gives me "undefined refrence to" newboard-> functions. is there else glaringly obvious, or not, should try? the errors pop in logic file here: ai_logic.cpp //master bitboard turn bitboards *newboard = new bitboards; ^^here //master zobrist object ai turn zobristh *mzobrist = new zobristh; //master evaluation object - evaluates board position , gives int value (- black) evaluatebb *meval = new evaluatebb; newboard->constructboards(...

index error, while executing python -

i beginner in python, executing piece of code throws following error.i tried best solve could't it. please me. code follows. continue num_snps_skipped += 1 samp_id = sline[id_index] ref_allele = sline[ref_allele_index] tum_allele = sline[tum_allele_index] snp = ref_allele + tum_allele if not snp in transitions: snp = nucleotide_complement[ref_allele] + nucleotide_complement[tum_allele] ref_trinuc = sline[ref_tri_index] if ref_trinuc == "na": print "warning: reference allele not available on "+\ "line %d; skipping line"%line_number continue if not ref_trinuc[1] == snp[0]: print "warning: reference allele not match reference "+\ "trinucleotide; skipping line %d"%line_number** continue snp_with_ctx = ref_trinuc[0] + snp + ref_trinuc[2] if not samp_id in signatures: signatures[samp_id] = [0 in substitutio...

visual studio 2017 - Add Reference option missing from Solution Explorer -

i'm using visualstudio 2017 , need add reference system.io.ports . can't find add reference option (in right-click menu in solution explorer) nor instructions on how this. please? thank you the steps add reference in visual studio is: go project option in top toolbar. add reference option(roughly 10th option top). in reference manager choose appropriate reference want. i using visual studio 2015 community edition believe process same 2017 edition.

scala - Spark job runs longer locally after subsequent runs - tuning spark job -

i have spark job runs in 5 mins on first initial runs , takes several minutes ..more 20-30 on subsequent runs. i'm reading parquet file once , creating dataframe , writing in .json format. have not used cache(), persist() or unpersist() anywhere in code. local instance. issue ? configuration parameters val spark = sparksession .builder() .appname("example") .config("spark.sql.warehouse.dir", warehouselocation) .config("spark.master", "local") .config("spark.serializer", "org.apache.spark.serializer.kryoserializer") .getorcreate() //set new runtime options spark.conf.set("spark.sql.shuffle.partitions", 14) spark.conf.set("spark.executor.memory", "6g") spark.conf.set("spark.driver.host", "localhost") spark.conf.set("spark.cores.max", "8") spark.conf.set("spark.eventlog.enabled", true) spark.sparkco...

mysql - Why do I have an undefined variable in my template -

i have following action within controller. when go corresponding view, following php error. public function viewallpolice($id=null) { $customer = $this->session->read('customer_id'); if ($customer>0) { $this->loadmodel('policy'); $results = $this->policy->find( 'all', array('conditions' => array('customer_id' => $customer)) ); $this->set('results', $this->policy->read(null, $id)); } else { $this->session->setflash('error'); } } view police code: <?php foreach ($user $result) ?> <p>customer name /mobile : <?php echo $result['policy']['customer_name']; ?></p> error: notice (8): undefined variable: user [app\view\user\viewallpolice.ctp, line 1] warning (2): invalid argument supplied foreach() [app\view\user\viewallpolice.ctp, line 1] custome...

java - how to convert this date format 2017-07-28T04:13:40.398Z to normal date format .? -

this question has answer here: how convert date in particular format in android? 4 answers from 2017-07-28t04:13:40.398z , need normal date yyyy-mm-dd hh:mm:ss or hh:mm how can this? i tried this simpledateformat sdf = new simpledateformat("yyyy-mm-dd't'hh:mm:ss.sssz"); simpledateformat output = new simpledateformat("yyyy-mm-dd hh:mm:ss"); date d = sdf.parse(value); string formattedtime = output.format(d); z can't parse utc timezone z. can use 1 of these formats: yyyy-mm-dd't'hh:mm:ss.sss`z` //will work utc timezone yyyy-mm-dd't'hh:mm:ss.sssx //use x parse iso compliant timezones

python - Running aiohttp application as a coroutine -

i have asyncio app , want add simple rest api using aiohttp. far can see, can either create aiohttp app , run aiohttp.web.run_app on thread, or i'd have forget app , use lower level aiohttp.web.server api. there way can use aiohttp.web.application , run web application coroutine instead of using run_app ? just open source code aiohttp.web:run_app ( https://github.com/aio-libs/aiohttp/blob/master/aiohttp/web.py#l413-l467 ) , see how it's implemented. you same do't call blocking loop.run_forever() .

javascript - stop moving the freeze column in handson table -

* 1) **current code: can able freeze col , can able move col whereever want in handson table. 2) requirement :i want stop moving freeze column in handson table. in below code can move freeze col , move how stop move of freeze col ? can guys please on this? 3) have checked in handson doc not find method this? 4) have method if missed out? 5) can please guide me on ? $postlink(): void { const el: htmlelement = this.$document[0].createelement("div"); this.hot = new handsontable(el, { "beforecolumnmove": this.onbeforecolumnmove, "columnsorting": true, "sortindicator": true, "onfilterchange": this.onfilterchange.bind(this), "contextmenu": { "callback": this.oncontextmenuitemselected, "items": { ...

c++ - VTK Volume Visualization Issue -

Image
i using vtk library c++ generate , visualize synthetic voxel data given color , transparency mapping. example shown below: as shown in figure, data 3d in general, , works great. however, in specific cases when data becomes 2d, visualization windows shows nothing . i posting few lines of code may helpful. imagedata = vtksmartpointer<vtkimagedata>::new(); imagedata->setdimensions(x1, x2, x3); //for 2d, 1 of x1,x2 & x3=1 imagedata->allocatescalars(vtk_int, 1); int* = new int[x1x2x3](); //int x1x2x3 = x1*x2*x3 = static_cast<int*>(imagedata->getscalarpointer()); please note 2d, either x1=1 or x2=1 or x3=1. suggestions? edit: adding equivalent code, demonstrate exact problem facing: main.cpp //#include <vtkautoinit.h> // if not using cmake compile, necessary use macro //#define vtkrenderingcore_autoinit 3(vtkinteractionstyle, vtkrenderingfreetype, vtkrenderingopengl2) //#define vtkrenderingvolume_autoinit 1(vtkrenderingvolumeopengl2) //#defin...

c++ - what does msgpack's object_with_zone do? -

when writing custom serializer msgpack_c 1 needs implement object_with_zone . the documentation how implement sparse ( https://github.com/msgpack/msgpack-c/wiki/v2_0_cpp_adaptor ). in circumstances method called? you can create msgpack::object c++ types. see https://github.com/msgpack/msgpack-c/wiki/v2_0_cpp_object#conversion when call msgpack::object constructor zone msgpack::object(mc, z); , object_with_zone<t>::operator() called internally. if don't want create msgpack::object c++ types, don't need define object_with_zone specialization. packing, unpacking, , converting c++ types msgpack::object don't require it. here example: #include <iostream> #include <msgpack.hpp> class my_class { public: my_class(std::string const& name, int age):name_(name), age_(age) {} std::string const& get_name() const { return name_; } int get_age() const { return age_; } private: std::string name_; int age_; };...

java - To convert SOAP response to JSONArray -

i have soap response below. want iterate on soap message , want data in listmetadataresponse tag in jsonarray format. here sample soap response: <?xml version="1.0" encoding="utf-8"?> <soapenv:envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://soap.sforce.com/2006/04/metadata"> <soapenv:body> <listmetadataresponse> <result> <createdbyid>00528000001m5rraay</createdbyid> <createdbyname>hariprasath thanarajah</createdbyname> <createddate>1970-01-01t00:00:00.000z</createddate> <filename>objects/emailmessage.object</filename> <fullname>emailmessage</fullname> <id /> <lastmodifiedbyid>00528000001m5rraay</lastmodifiedbyid> <lastmodifiedbyname>har...

Fancybox 3: how to show the small close button for modal iframe? -

i using fancybox 3 display modal iframe. here code initialize fancybox: modal: true, smallbtn: true, iframe: { css: { width : '900px', height: '600px' }, preload: false } if remove modal: true , able see small button. small button not show if set modal: true .

oracle - Determine where condition based on column values -

Image
i have requirement if getting data particular column not null , need fetch records corresponding source_type , else need fetch records based on other column. let's take example of below record in above case grouping done based on column grp . in particular group, if source_type column not null of records, need fetch records group have same value in source column, source_type not null . in case expected output but in case within group if source_type column null records, need fetch records group have same value in source column match_type='mp' .in case expected output looks nice job analytical functions... with xyz ( select x.*, count(x.source_type) on (partition x.grp, x.source) non_null_source_type#, first_value(case when x.match_type = 'mp' x.source end) on (partition x.grp) source_from_mp$ table x ) select * xyz non_null_source_type# > 0 or non_null_source_type# = 0 , source = source_from_mp$ ;...

php - Docker Containers having issues -

our developers handed off our project @ sudo-demo stage , trying enviroment set on local development machine. containerization new me i'm figuring out. i have 4 docker containers: container id - name - ports ce05f4675d70 - laradock_nginx_1 - 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp bd900f08e9b3 - laradock_php-fpm_1 - 9000/tcp 75a7aa1698de - laradock_workspace_1 - 0.0.0.0:2222->22/tcp 1d8c69a06ae4 - laradock_mongo_1 - 0.0.0.0:27017->27017/tcp i have app located @ yellowcard.app , api @ api.yellowcard.app setup in hosts file. all 4 containers , running, of api calls result in 500 response code. cannot life of me figure out what's wrong. mongodb logs 2017-07-28t07:13:51.034+0000 control [initandlisten] mongodb starting : pid=1 port=27017 dbpath=/data/db 64-bit host=1d8c69a06ae4 2017-07-28t07:13:51.040+0000 control [initandlisten] db version v3.4.6 2017-07-28t07:13:51.040+0000 control [initandlisten...