Posts

Which hostname:port of Bluemix app should be set in acl of Secure Gateway Client -

Image
i make bluemix app access secure gateway client. used "access control list" such following command. acl allow sampleapp.mybluemix.net sampleapp.mybluemix.net bluemix app's fqdn but got error http503 when executed trx. secure gateway client's log "connection #x destination x.x.x.x:xxx refused due access control list" which hostname:port of bluemix app should set in acl of secure gateway client ? secure gateway client interactive command-line interface https://www.ng.bluemix.net/docs/services/securegateway/sg_022.html#sg_009 the hostname use on access control list (acl) allow should actual hostname of on-premises application running, not trying access it. remember acl if allow mutually exclusive, prevent other connections not part of allow acl.

python - Bubble plot or Heatmap in matplotlib -

Image
i trying plot dynamically size able bubble (scatter map). when try plot random data can plot. when trying parse input file not able plot. input: nos,place,way,name,00:00:00,12:00:00 123,london,air,apollo,342,972 123,london,rail,beta,2352,342 123,paris,bus,beta,545,353 345,paris,bus,rava,652,974 345,rome,bus,rava,2325,56 345,london,air,rava,2532,9853 567,paris,air,apollo,545,544 567,rome,rail,apollo,5454,5 876,japan,rail,apollo,644,54 876,japan,bus,beta,45,57 program: import pandas pd pandas import dataframe import pandas.io.data import matplotlib.pyplot plt import numpy np import seaborn sns df=pd.read_csv('text_2.csv') #size of bubbles changes fig = plt.figure() ax = fig.add_subplot(1,1,1) ax.scatter(df['place'],df['name'], s=df['00:00:00']) # added third variable income size of bubble plt.show() i trying put place x axis , name y axis , size taken count(00:00) . sizable bubble not find of examples around. valuable suggestion...

node.js - Is it possible to render another express application from express? -

basically happened have app server running express , routes bunch of spas. great wanted have app runs own node/express script (ghost). can't figure out how set route /ghost go ./webapps/ghost/index.js is not possible? you need redirect incoming requests ghost express instance. have done in personal site adding /blog route primary express instance , forwarding request ghost expresss instance. check out here: https://github.com/evanshortiss/evanshortiss.com/blob/master/server.js the basic gist following: app.use('/blog', function(req, res, next) { // forward request on... return next(); }, ghostserver.rootapp); //...but forward different express instance if you're running both separate processes use apache or nginx redirect requests. if absolutely must use express application forward requests try node-http-proxy module. if need proxy express using http-proxy module nodejitsu: var proxy = require('http-proxy').createproxyserver({}); ap...

outlook - Harmon.ie splash screen keeps on Loading harmon.ie -

when starting outlook 2013, harmon.ie plug in stays on splash screen loading harmon.ie. result outlook.exe cpu raises nothing happens. running outlook 2013 16-bit on windows 8.1 enterprise 64 bit version. it seems facing .net issue. please register following registry key instructs harmon.ie use .net 4.x. windows registry editor version 5.00 [hkey_current_user\software\mainsoft\prefs\preferredclrversion] @="v4.0" ---- jean

scrollpane - How to fire event when scrolling up,javafx -

i developing chat application on java , want use function used facebook retrieve chat history when user scroll up. tried "on scroll" action fire event whenever scroll reach top or down of scroll bar. want fire action event when scroll bar reach top in facbook chat box. here example of want. hope you. import javafx.application.application; import javafx.beans.value.changelistener; import javafx.beans.value.observablevalue; import javafx.event.actionevent; import javafx.event.eventhandler; import javafx.geometry.pos; import javafx.scene.scene; import javafx.scene.control.button; import javafx.scene.control.label; import javafx.scene.control.scrollpane; import javafx.scene.layout.vbox; import javafx.stage.stage; public class scrollutil extends application { private boolean scrolltobottom = false; private boolean scrolltotop = false; public static void main(string[] args) { launch(args); } @override public void start(final ...

How to get multiple values from a single <select> variable in HTML/PHP Codeigniter? -

<select id="selecterror" data-rel="chosen" name="emp_id" > <?php foreach ($all_data $v) { ?> <option value="<?= $v->emp_name."x".$v->emp_id; ?>"> <?= $v->emp_id; ?> </option> <?php } ?> </select> how send 2 values separated x in value database using codeigniter? as there's lack of code controller, assuming mean pass data left of 'x' in value database @ same time data right of 'x', separate piece of data, , not including 'x'. in controller, can do $data_parts = explode('x', $this->input->post('emp_id'); this make $data_parts array, , can use information $data_parts[0] , $data_parts[1] pass database. this work if first , last parts of data don't contain x. urge reconsider you're trying regards splitting of 'x', if means adding column database value of 2 i...

java - String to String mapping using Spring? -

from external system receive string representation of abbreviations , have make transformation(conversion) string example: "o" -> open "c" -> closed "e" -> exit for object object conversion using spring custom converter import org.springframework.core.convert.converter.converter; public class converter<source, target> implements converter<source, target> public final target convert(@nonnull source source) { ... } but can't create string string converter. not want use external mapping library spring capabilities. can't this. simplest thing can switch string input = "o"; string result = null; switch(input){ case "o": result ="open" break; case "c": result ="close" break; .... in matter of fact have on 100 mapings. can spring offer better solution? when don't have logic execute in switch-case, can use static hashmap<string,string> stati...