How is multiple upsert supported in Couchbase SDK3? - couchbase

Currently i am on SDK 2 and planning to migrate to SDK 3 and looking for the support for the below code in SDK 3
bucket.mutateIn(campaignEntity.getId())
.upsert("a", entity.getA)
.upsert("b", entity.getB)
.execute();

Related

How to load otg from Bim360?

I would like to to read my bim360 models which is in otg format in my Forgeviewer (version 7.3). The projects have been converted using the https://otg-bim.herokuapp.com/ app.
Is there any guidelines of how to make my Forge viewer read otg format from Bim360? I found this guideline (https://github.com/wallabyway/OTG-client-sample/blob/552c78b1fe8e1177f6694fd947a17fd189a8505b/public/js/ForgeViewer.js#L26-L29), however it uses Autodesk.Viewing.ViewingApplication which I find in version 2 of the Forge API, but not in version 7.3.
You can use this version of the ForgeViewer.js to work with latest versions of the viewer. https://github.com/jaimerosales/OTG-client-sample/blob/master/public/js/ForgeViewer.js
It seems that it is the same svn. Fault was that options requires autorization, even though I am allready autorized through bim360 login. Providing the access token there, uncomment useCookie and useCrentials and it works.
const options = {
env: 'FluentProduction',
api: 'fluent',
//useCookie: false,
//useCredentials: false,
accessToken: "add access token even though you are allready authorized in in bim360"
};
So far, I have seen a significant improvement loading using otg :-).
The latest version of svf2 works fine when using buckets instead of bim360. I have not vertified it with bim360. Example code which was helpfull for me was this npm package. https://www.npmjs.com/package/ng2-adsk-forge-viewer

fql is deprecated for versions v2.1 and higher

I am working on AIR for mobile game .I want to make leader board to show scores. for this i am using Goviral ANE version 3.0.11 of milkmanGame. To get scores i am calling funtion
facebookGraphRequest("fql",function1,{q:"SELECT value,user_id FROM score WHERE user_id= me() AND app_id = 12345"},"GET");
and GVFacebookEvent.FB_REQUEST_FAILED event fire and give error "fql is deprecated for versions v2.1 and higher"
You should upgrade your ANE to the current version (4.6.0).
Milkman Games regularly have to update the ANE to keep up with changes to the Facebook SDK.

How do I get access from a client app by using PhoneGap to OpenHAB?

I'm developing a hybrid app (using PhoneGap) for openHAB. At the moment I'm struggling to build a connection from my hybrid to the OpenHAB runtime. Any suggestions?
The intended way to connect to the openHAB runtime is the REST API which is described in detail in the wiki (see https://github.com/openhab/openhab/wiki/REST-API).
You could also have a look at the implementations of the native Android client (see https://github.com/openhab/openhab.android) or the greenT HTML5 application based on Sencha Touch (see https://github.com/openhab/openhab/tree/master/distribution/openhabhome/webapps/greent).
Hope this helps,
Thomas E.-E.
The openhab has a REST API implemented as a bundle. this can be accessed via the URL "http://openhabip:8080/rest/".
If you want to access the items and implemet your own UI you can use "http://openhabip:8080/rest/items" with HTTP GET, POST ,PUT.
Otherwise you can use the "http://:8080/rest/sitemaps" and use the openhab provided sitemaps.
The details are in https://github.com/openhab/openhab/wiki/REST-API

how can update to google map api version 3 in drupal 6

In my drupal site, I have installed the gmap module. But that is in version 2.115. Now I got a mail from google that update the google API version. I have generated the API key version 3. But no idea about implementing them to the module files.
drupal_set_html_head(' $query))) .'" type="text/javascript">');
This I changed to
drupal_set_html_head('');
Also in gmap.js
obj.map = new GMap2(elem, obj.opts); changed to obj.map = new google.maps.Map(elem, obj.opts);
But after adding this, Javascript is required to view this map. is showing.
Please help me
See this thread on d.org. There are several patches and solutions.

Weblogic 10 JDBC Data Source Descriptions

Introduction
When creating a new domain for Weblogic Portal 10.3.0.0, the following datasources are created by default for use by the Weblogic Server (including the Name and JNDI Names).
For Example:
I am sure the p13nDataSource is accessed by the SQLAuthenticator Authentication Provider for performing DBMS authentication.
NAME JNDI NAME
cgDataSource cgDataSource
cgDataSource-nonXA cgDataSource-nonXA
p13nDataSource p13n.trackingDataSource p13n.sequencerDataSource cm.sequencerDataSource p13n.leasemanager p13n.dataSyncDataSource p13n.entitlementsDataSource p13n.quiescenceDataSource p13n.credentialsDataSource
portalDataSource weblogic.jdbc.jts.commercePool contentDataSource contentVersioningDataSource portalFrameworkPool
portalDataSourceAlwaysXA portalDataSourceAlwaysXA
portalDataSourceNeverXA portalFrameworkPoolNeverXA
Question
I understand the difference between XA and Non-XA, but does anyone have any information or descriptions regarding what each of the other data sources are used for?
The Default JDBC Configuration for the Basic WebLogic Platform Domain docs on Oracle documentation provides you some insight. Unfortunately, these docs are for version 8.1 (I haven't found the 10.3 version of it), but a lot of them remain true for 10.3.