Netflix Ribbon: add/edit a LoadBalancerRule at runtime via Archaius - spring-cloud-netflix

My goal is to be able to add/edit a Ribbon LoadBalancerRule at runtime via Archaius.
myService.ribbon.NFLoadBalancerRuleClassName=com.netflix.loadbalancer.WeightedResponseTimeRule
I'm trying to change the property NFLoadBalancerRuleClassName at runtime via Archaius. I see the archaius log that notifies me that the property was changed, but ribbon doesn't refresh with the new rule and still use the old rule.
[pollingConfigurationSource] | DEBUG | com.netflix.config.DynamicPropertyUpdater | addOrChangeProperty | adding property key [myService.ribbon.NFLoadBalancerRuleClassName], value [com.netflix.loadbalancer.WeightedResponseTimeRule]
Am I missing something?
I am using the 1.2.1.RELEASE version of spring cloud.

Apparently this is not supported.
See https://github.com/spring-cloud/spring-cloud-netflix/issues/1438

Related

Problems with forceDoubleSided setting

I need to activate the profile setting forceDoubleSided in order to display properly a model derivated from a Revit project that has mirrored external references.
Using the latest version of the Forge Viewer, I set the profile settings in the config parameter when I call new GuiViewer3D(container, config) and, while the model is loading, the materials property "side" = 2 (THREE.DoubleSide) and it looks good.
The problem is when the model has loaded, or after have used the cutting plane extension, because the materials "side" is then reset to 0 (THREE.FrontSide) so the model stops looking correctly.
As a workaround, in the GEOMETRY_LOADED_EVENT and CUTPLANES_CHANGE_EVENT events I am executing _viewer.impl.setDoubleSided(true, _viewer.model) every time.
It seems like a bug in the viewer... is there a better approach to handle this problem?
That does sound like a bug. Let me notify the engineering team, and thanks for reporting it! For now, please continue manually overriding the "sidedness" as needed.

What is difference between ckanext-ngsiview and right_time_context plugin CKAN?

I had a query that what is difference in ckanext-ngsiview and ckanext-right_time_context plugin in ckan?
I was using ckanext-ngsiview of conwetlab,They have made another release and renamed it to right_time_context.
While,I was working with the latter plugin,I did'nt recieved the expected result which I used to receive with ngsiview.(Screenshot attached)
Also,do I need to enable any other plugin for right_time_context?
After adding the id as ngsi_view in my (development.ini file) I get the following error as follows
I am not being rendered the NGSI-VIEW after adding right_time_context as id in my (.ini file)
The plugin has evolved and is not only a view for NGSI anymore, so we think that the name was not representing the functionality. On the other hand, Telefónica has the previous name registered on pypi, so we cannot make releases using that name. Apart from that, the new version is an evolution of the previous releases we did.
That message means that there is no view configured for that resource. I guessing you are complaining because the raw NGSI view was not configured automatically (in fact this can be perfectly ok since you may want to manually add views).
To enable automatic configuration of the raw view, make sure you include the ngsi_view view into the ckan.views.default_views setting. The important detail here is that the id of the view has changed from ngsiview to ngsi_view in this new version. Take into account that this is not the id of the plugin that is right_time_context and this id is the one you have to use to enable the plugin using ckan.plugins.
Also, do I need to enable any other plugin for right_time_context?
The resource_proxy plugin (comes directly with CKAN, but has to be enabled), is required for using the raw view, although it is optional if you don't need that view.
The ckanext-oauth2 plugin is required to make request to secured Context Broker instances.

Web Service 'System.ServiceModel.XmlSerializerFormatAttribute' does not contain a definition for 'Style'

For an Windows Phone 8 Application, I need to connect to a Web Service.
But when I use the Visual tool to add the service reference,
it adds a file "Reference.cs" with an error :
'System.ServiceModel.XmlSerializerFormatAttribute' does not contain a definition for 'Style'
listen i had the same problem, so i added another attribute [System.ServiceModel.DataContractFormat(Style=System.ServiceModel.OperationFormatStyle.Rpc)]
any ways the service gave an error that i can't have both attributes
[System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)]
[System.ServiceModel.DataContractFormat(Style=System.ServiceModel.OperationFormatStyle.Rpc)]
so when i removed the XmlSerializerFormatAttribute and just left datacontractformate it returned the desired object (response )but with all values = null
when i removed the DataContractFormat it returned null not even an empty object
so i had to call this service form my code using httpclient.postasync and passing the soap xml to it, if u need more details let me know
good luck :)

Is there a way to target specific file in Box app on IOS through box:// url scheme?

Box:// seems to open the app, however I am not able to discern how to target a specific file.
Currently we don't have support for this, but it is a great idea that we'll consider for our roadmap.
We actually do support this. The best way to add this integration into your app is to use our OneCloud AppToApp framework (additional information available here http://developers.box.com/the-box-sdk-for-onecloud-on-ios/)
This is easy using the app-to-app framework. You just need to call BoxAppToAppAPI's sendFileDownloadRequestToApplication:withMetaData: if you want an app to go to a particular file and in Box's case download/preview it.
To make it go to the Box app you can simply pass in [BoxAppToAppApplication BoxApplication] in the first parameter.
As for the metadata parameter, you can create it with BoxAppToAppFileMetadata's appToAppFileMetadataWithFileName:fileExtension:folderPath:mimeType:fileID:folderPathByID:exportToken:username:
Assuming your app already integrates with the Box API via the SDK or otherwise, it should be able to get all of that information easily.
If the mimeType is not known, nil can be passed in. Also, nil can be passed in for the exportToken if the file was not exported out of the Box app (with the AppToApp framework, a roundtrip scenario is also supported where the user starts in the Box app, picks a file to view/edit/etc in your app, and then sends it back to Box to upload). So if it's not a round-trip, it's just a one-way from your app to Box, use nil for the exportToken.
Before doing this, you can also check if the Box app is installed by checking for [[BoxAppToAppApplication BoxApplication] isInstalled].
Below is a fictional example (the values are made up):
BoxAppToAppFileMetadata *metadata = [BoxAppToAppFileMetadata appToAppFileMetadataWithFileName:#"fileName"
fileExtension:#"png"
folderPath:#"All Files/Folder1"
mimeType:nil
fileID:[NSNumber numberWithLongLong:123456]
folderPathByID:#"0/12345"
exportToken:nil
username:#"username#email.com"]
BoxAppToAppStatus status = [BoxAppToAppAPI sendFileDownloadRequestToApplication:[BoxAppToAppApplication BoxApplication]
withMetaData:metadata];

Databinding issue about updating data issue between MySQL database and my devexpress Gauge value?

Background:
Developing a trading system which subscribe to many events which are sent by API of Interactive Brokers. One interesting event is about my trading account value which fluctuates during trading hour so I would prefer to see the information with accountvalueupdate event immediately. I develop this one based on ActiveX api and c# in Visual Studio 2010.
the presentation I wanna check this information is to use a gauge developed by(http://www.devexpress.com/Products/NET/Controls/WinForms/Gauges/). This gauge looks fancy but the principle should be similar to the normal gauge we use in Visual Studio. It seems like I could only update the value of the gauge by databinding since I tried to assign updated account value to this.myGauge.value and failed.
I build up MySql connection between MySql and VS2010. I create only one table in MySQL which is called account. For the sake of simplicity, i only have two column(accountID and accountValue) and one row|(which means when event comes with new accountValue, I just overwrite the value of accountValue last session then the number of row is always one. really simple idea.....).In that Gauge proporties I found databinng option and I setted up by using advanced option to navigate throw available table and bind it to the only useful column accountValue.
Issue:
I set up the default value of the accountValue as 500 as default for test. I build my software. The gauge shows 500 correctly.
Of course, my real account value is not 500, so Now I click one button to connect to API and start listening the event. After few seconds, event arrives since I opened on Console for managing the mysql table and use select * from account to continuously watch the update. I noticed the value of accountValue column(TABLE WORKS RIGHT AND WE ONLY HAVE ONE ROW, OEVERWRITTING MODE) becomes the right one, for example, 35000.
HOWEVER, THE GAUGE DOES NOT CHANGE AT ALL...!! Now If i closed my software and build again, the gauge shows the right value 35000. Now I shut down the api and no coming event and only use commandline of mysql to change the value of accountValue again to 500. NO UPDATING in gauge as well.
It looks like the gauge only read the value of table during the build session or when it starts and never listen to the update of binding databases.
By the way, I tried to set up the biding data mode to either "onValidation" or "onPropertieschanged" but it does not solve although the "onPropertieschanged" looks the right one....
I tried to assign updated account value to this.myGauge.value...
Unfortunately, the information you provided doesn't allow to clearly diagnose this problem. There is no the Value property neither in WinForms GaugeControl nor in CircularGauge (as soon as in Linear/Digital/StateIndicator gauge), but only in ASPxGaugeControl (ASPxGaugeControl.Value). So, please provide a full sample code that doesnot work on your side.
All these properties can be changed manually in code or data-bound to data sources using the standard .NET data-binding mechanism:
The ArcScaleComponent.DataBindings property allows you to data-bind
to the current value of a circular gauge's scale (ArcScale.Value).
The LinearScaleComponent.DataBindings property allows you to
data-bind to the current value of a linear gauge's scale
(LinearScale.Value).
The DigitalGauge.DataBindings property allows you to data-bind to the
text displayed by a digital gauge.
The StateIndicatorComponent.DataBindings property allows you to
data-bind to a state of a state indicator gauge.
Please, review the following articles for more details: Data Binding.
The databinding feature is demonstrated in the Gauge's Main Demo project (the DataBinding module):
this.arcScaleComponent2.DataBindings.Add(
new System.Windows.Forms.Binding("Value", this.productsBindingSource,
"UnitsOnOrder", true, System.Windows.Forms.DataSourceUpdateMode.Never));
P.S. Please use the DevExpress Support Center to ask a questions or report issues, because there is no guarantee of DX involvement when you use the communities, newsgroups or other communication channels.