How to integrate Recombee with ASP.NET - asp.net

How do I integrate recombee with ASP.NET to display results in a list or grid view, as well as connect a book crossing dataset to it?

Recombee provides a .NET SDK (https://github.com/recombee/net-api-client).
The github page contains an example how to upload items catalog (your dataset) via it to Recombee. It also shows how the recommendations are requested.
Recombee API returns by default ids of the recommended items, but if you specify parameter returnProperties=true in the recommendation requests, it will also return properties of the items, which you can use for filling your list/grid view.
Another source of information is the Getting Started section of the Recombee docs.

Related

Updating Wordpress Table after a Google Sheet Update

I am currently looking into helping someone using Wordpress and Google Sheets. Essentially, they use Google Sheets data as a backend and Wordpress will display that as a table in a post.
The only issue is this data is refreshed every five mins by an add-on they are using. However, it would be best if the data was updated real time. I am a full stack developer, but not overly familiar with Word Press, is there a way to 1) get the table data to update in real time? Or 2) have the table data loaded on page refresh, like a typical UI to backend service call would?
You can use the wp_update_post() function or the REST API at any time to update the content of any page, or if the table is stored in an option, use update_option().
Then, it's just a matter of whether you want to scan for changes on the server side, or can send a webhook of some kind when the row is updated.
I can think of a few options.
Set up a Cron Job at the server level to check the google sheet for changes, and use either function above to update the table. I don't really recommend that for this because it won't be "live" updates, and may run more (or less) often than it needs to.
See if the "addon" can post the updated row to the WordPress REST api (or custom function handler)
Use one of the Sheets Triggers (onEdit?) in the sheet's Apps Script to fire a remote request to your site with the updated row's value (or the whole sheet?) and update it via the REST API or custom function handler with wp_update_post or update_option.
Use a third party "webhook tool" to hook the Sheet to your site. A tool like Zapier or IFTTT comes to mind.
I'd probably lean towards number 3 as it lets you tie straight into the Google Sheet with Apps Script, and POST just the updated row to your WordPress' site via the API, which provides the following benefits:
• Updates your site "live", as soon as an update is made to the sheet
• Doesn't require server-side set up
• Low amount of data transmitted over the wire
• No needless checks/requests
• No other third-party tools required

Make an exact replica of a view (excluding data) in Google Analytics?

Is there a way to make an exact replica of a View in Google Analytics?
Based on the documentation here (https://support.google.com/analytics/answer/3256366?hl=en&fbclid=IwAR2_5523Iz89Be8P6wkXxMla5BiS9NL4DLrzVuJ1ib23WvuDwzq4idnGBa4).
Settings and features controlled at the view level (like filters,
Goals, users and their permissions) are duplicated in copied views.
Cost source links and shared assets (like annotations, Segments, and
alerts) are not duplicated into copied views.
It seems like many items don't get copied across. I also noted that calculated metrics and custom reports are also not copied across.
Is there a way to create an exact replica (excluding the data)?
You can use Google Management API to get/create some setting, like segments (https://developers.google.com/analytics/devguides/config/mgmt/v3/mgmtReference/management/segments?hl=it) and create a feature that automatically creates a view with the desired settings, custom report can be shared, ... however there are some settings that cannot be created in this way either, for example annotations API is not available.

Try to get person image

I'm testing this microsoft cognitive service and this is awsome!
By now I'm developing a simple WPF GUI to manage groups and person.
I can careate and retreive groups and its persons but I cant get the images I've already uploaded.
I'm using this https://dev.projectoxford.ai/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395240 function to get the face/image but the only response is the persistedFaceId.
Is there a way to retreive the person's images?
The Face API does not provide such a feature, unfortunately. Your application would need to maintain this information.

How can we generate Reports using flex bulider?

is it possiable we can bulid the reports using flex bulider ? or can we and any
frameworks for build the reports ? .
i don't know what way to bulid the reports
flex bulider have any build reports compoents there?
i want sorting reports order like
By Product Company Name Expected Close Month
Consultant Expected Revenue
this is are fields
Product 1 A May’10 X £1,000.00
B Jun’10 Y £2,000.00 C Jul’10
X £3,000.00 Sub Total
£6,000.00
Product 2 etc
Grand Total £24,000.00
This is are data . How is it possiable ?
Could u give any gudiends me ?
Answer based on first revision.
Typically applications would give this responsibility to the server. Your Flex application passes parameters to the server with a request for a PDF document and the server puts together the appropriate one and seconds it back.
If you're using AIR to run your Flex application you could probably write a library to create a PDF file and then same it to the user's computer but I would stress that the kind of libraries you would need for your server already exist. For example: http://php.net/pdf
Report tends to be a rather generic term and as the other responder indicated that it meant PDF to him/her. The application I am working on is very report heavy. We have a requirement for a client side report ("Think Report in Flex") and PDF version of the same report.
When we originally looked 1yr back, there is no Report library that provides the equivalent of what lifecycle does on the server. Therefore we have had to build our own and it is based on a generic template mechanism.
So can it be done. Yes. But I would recommend developing a generic means to render your reports and it is not a easy task if you want to keep it generic so you can create multiple type of reports.
Also, avoid the trap of nesting your reports through VBOX, HBOX and containers to provide a flexible layout system as it will not perform well.

Shutterfly Order API .

I found this site
http://www.shutterfly.com/documentation/api_OrderImage.sfly
but there are no examples of actually walking through the whole process. Does anyone have any good documentation on using this API to take a local photo and allow someone to order a print via shutterfly?
I went through these steps:
Sign up for an account
Sign up as a developer
Create an application (I called mine Test). Note the generated Application Id and Shared Secret
The Shutterfly API page has a list of references for various Domain-specific APIs:
Address Book
Album Data
Folder Data
Go To Shutterfly UE
Image Upload
Interactive Sign-in
Image Request
Order
Pricing
Seamless Sign-in
User Data
User Authentication
Each uses RESTful principles. The documentation looks pretty comprehensive to me, if you need some background, here's links for RESTful APIs and ROME you may find useful
There is also an API Explorer section on the same page that allows you to test the methods via a form on their site. For example this form for CRUD operations on the album data.
Based on your comment, for your requirements, you would:
Use the Album GET to list albums, then get the data for a specific album.
Use the Image Get request to retrieve the image data, so your friend can verify the image(s) they want to purchase.
Authenticate the user
Use the Pricing POST request to get the estimated pricing for the image.
User the Order POST to submit the order over https
Update: Found a page describing using a Greasemonkey script which adds Shutterfly print ordering capability to Flickr. This might provide the basis for a solution.
For Reference:
The original link above is a middle step of the Shutterfly Open API ordering procedure.
The whole process goes through a series of steps allowing you to control much more than just pushing photos into somebody's album in Shutterfly.
With this process, your application can actually carry out the entire procedure of:
specifying the images and the sizes and quantities, or other products
calculating shipping, taxes, and totals
paying, and
launching the processing
It also includes the ability to see when the packages will be delivered and arrive.
Thus if you have a solid application for mapping your images onto paper and products, you can pretty much control the entire process.
Once the order is submitted, it will appear on the user's account at Shutterfly who the order was associated with.
Kudos to Shutterfly for making such a powerful tool! It would be great if other printing facilities had similar tools.

Resources