AppFabric How Can I Create New Cache - appfabric-cache

Question very simple,
How can I create new cache with using c#. I didn't find any way using client api. Is there a easy way or is powershell using must.
Thanks.

In the current version it is not possible to create a new cache by using C#, you have to do it with PowerShell.

Related

How to update nextBuildNumber via REST in Jenkins

Is there's a way to update the nextBuildNumber directly via Rest? I found the parameter here:
/job/MyJob/api/xml?tree=nextBuildNumber
and in the job directory, there is a nextBuildNumber file
We already use the Rest Api for creating/updating jobs and views, so it would be nice to stick to this, instead of using cli or the nextbuildnum plugin.
Edit: new approach brings another question
Java send integer value with HTTP POST
The REST API does not currently (at time of writing) support changing the value of the nextBuildNumber. As you have found you can (only) read it.
The easiest way I know to manipulate this value is through the Next Build Number plugin.

Use PowerShell to write Data direct to OMS

I'd like to write my custom data direct to our Microsoft Azure OMS using powershell. Does anyone know how this is possible?
There's alot of information about configuring instances, adding new datasources, or querying the data using Azure​RM.​Operational​Insights:
https://blogs.technet.microsoft.com/privatecloud/2016/04/05/using-the-oms-search-api-with-native-powershell-cmdlets/
https://learn.microsoft.com/de-ch/powershell/module/azurerm.operationalinsights/?view=azurermps-4.0.0
Has anyone found a way to directly write data to OMS instead of storing it in a log-file and then use custom-log-import? I know this is possible, i saw it in a keynote, but cannot find any information about this.
Thank you for your Inputs!
This should do the trick - writing to Log Analytics:
https://learn.microsoft.com/en-us/azure/log-analytics/log-analytics-data-collector-api#sample-requests
Really not much to add, it's a copy/paste process. Entries will show using the type you define in $LogType appended with '_CL' because you essentially create a Custom Log entry.

How to submit Hive Jobs programmatically from JSP

We are trying to build a wrapper system for business users and we want to explore option of building a capability to submit the HIVE query from a JSP page. I could not find a best example or suggested mechanism for this. Anyone tried this before? If so can someone share their best ideas? We are looking for the REST API mechanism. If that wont work, then we can use java from JSP servlets.
Appreciate your support.
Kiran
You can use JDBC. I dont think there is a REST API for Hive.
But since most developers & application typically use JDBC this should be the preferred mode.
More details can be found here (Assuming you are using latest Hive versions) : Hive 2 Clients
Sample code sample code

Using Local storage and REST adapter at the same time?

I'm pretty new with an Ember so for the start I have a noob question - is it possible to use Local Storage and REST adapter at the same time?
For example, if I want to do a login via API, if login is success the server will return an API key which is used for later communication with a service. Is it possible to store that information locally on the client and to retrieve it when necessary but also, for other models, to use REST adapter?
If this is not a good way to handle such case, which one would you propose and is there any kind of example which would me lead me in the right direction?
Thanks to the people from #emberjs, I found out that there is a wonderful ember-auth authentication framework for the Ember.js which does what I need.

Versae's Neo4j python rest client and graph algos access

I'm using versae's neo4j rest client to access a neo4j DB but I stumbled upon a problem trying to figure out how to use the paths algorithms from a node.
In the neo4j documentation it says that there are built-in graph algos in the URL *db/data/node/NODE_ID/paths* but it seems like versae's API doesn't allow access to these algos, as I read in the docs it has access to "extensions" but not to the default built-in algos.
Anyone knows how to access these methods without having to create a server extension just to reimplement it?
piva,
Currently there's no way to access to algos factory from the neo4jrestclient. But I think it's the time to implement this. I hope to release a new version with this feature before the end of the next week.
Regards.