Google Cloud (Bigquery Dataset) - windows

this shows up when I try to Create dataset "You must have the 'bigquery.datasets.create' permission on the selected project." how can I get arround it and thanks.
I am trying to Create a new dataset using bigquery

Related

How to use existing dynamo db with AWS Amplify and graphql

We have existing database in dynamodb for our application. For one of our new React app, we want to use AWS Amplify and we are trying to use the existing tables.
I created a skeleton project and went to backend AWS AppSync console -> Data Sources and map the existing table to it. And I added that table definition to my schema.graphql in my react app. When I do an amplify push, I see it creating a new table in dynamodb, rather than pointing to the existing db.
I also tried to map one of the tables in AppSync Console, and did amplify pull from local project, assuming that will add the definition of the table in my local schema.graphql but that did not happen either. It did not pull down the details of the newly mapped data source from backend app sync console.
My existing db has lot of data and is shared with other applications as well. I do not want to create a new table.
Can you pls suggest how to accomplish this?
Also we have existing lamdba functions which we would want to leverage into this new Amplify project as well. Could you pls suggest pointers for this as well.
Any help is much appreciated!
Line 22 in the file below shows how the table name is constructed when the graphql.schema transformer runs; that is - the name is derived from the GraphQLAPI ID and this seems to be a one way process.
TableName: joinWithEnv('-', [SyncResourceIDs.syncTableName, Fn.GetAtt(ResourceConstants.RESOURCES.GraphQLAPILogicalID, 'ApiId')]),
https://github.com/aws-amplify/amplify-cli/blob/e1e07b245db0963c4655e646c53e7615febe2930/packages/graphql-transformer-core/src/util/syncUtils.ts
The only option then would be to try and patch the resulting CFN script.
You can use amplify import storage to import existing DynamoDB tables or S3 buckets.
more here: https://docs.amplify.aws/cli/storage/import/
Also look at
Re-use existing AppSync GraphQL API - it might help with reusing lambda functions, if they are wrapped by an API.

Google Calendar API - How to save/use StoredCredentials?

The task is to save the stored credential file contents to database.
I am using the Google Java client quickstart project to get calendar and events from google. I am also using the offline access flag and set it as true. In the startup code it uses this:
.setDataStoreFactory(new FileDataStoreFactory(new java.io.File(TOKENS_DIRECTORY_PATH)))
So instead of this FileDataStoreFactory can we use something else, so that I can write the contents to my database
Full code : https://developers.google.com/calendar/quickstart/java#step_3_set_up_the_sample
I wanted to understand if I can save this StoredCredential file contents to the database for each user, so that I can schedule this calendar sync.
Any help will be appreciated.

"Document failed to index" using the Watson Discovery tooling

I need to set up a collection of Washing Machine manuals in a way that I can then set up queries against the paragraphs that are included in the manuals. My understanding is that Element Classification should help achieve that goal
https://console.bluemix.net/docs/services/discovery/element-classification.html#element-classification
Using the tooling, I set up a collection and uploaded the following file, selecting "Default Contract Configuration" : https://www.samsung.com/us/pdf/wf338_manual.pdf
Why is this document upload failing?
To get more error details, I tried using the API with Postman but am unable to run the Add Document query as described here https://www.ibm.com/watson/developercloud/discovery/api/v1/curl.html?curl#add-document
The document is in PDF format and in text form, and is less than 50MB.
Does anyone know what is happening or has a suggestion on how to resolve?
Thanks

Big Query how to share a dataset in the new UI

When using the old big query UI a dataset can be shared as in this question.
How can this be done using the new UI?
Now you can share a dataset in the new UI. Click a dataset, click "Share Dataset", and then configure the desired permission (use the "Viewer" permission to allow the person to write and run queries on the data).
-Michael (PM for BigQuery)
I don't think it is supported in new UI yet
It is not!
See current limitations:
The beta release of the BigQuery web UI is subject to the following limitations
Currently, you cannot use the BigQuery web UI to:
• Work with the BigQuery Data Transfer Service
• Assign access controls to datasets
• Create a table protected using customer-managed encryption keys (CMEK) (you can still work with existing tables that were protected using a CMEK)
• View a query's explanation plan while the query is running
• View the query execution timeline
• Navigate between the first and last page of query results
• Display the pricing warning when you run a SELECT * SQL query
• Add, edit, or delete labels for BigQuery resources
• Share a saved query
• Sort or filter your job history or query history

TFS Alert when label is created

Can I configure an alert when a TFS Label is created ? I don't find that option in the current predefined alerts. These are the ones I found:
And I want when a label is created:
Send an email notification.
No, this is not possible using the standard Alert features.
I created my own solution! I don't know how much access you have to your on-premise TFS instance, but you need to be able to execute t-sql scripts against the TFS mssql database. My solution is here: https://github.com/Antebios/tfs-label-notification
And when anyone creates a TFSVC label I get an email alert that looks like this:
Basically, I created a database trigger to populate a table. I query that table and send an email out, then mark the label as sent. I also have a trigger to delete form that table just in case the label gets deleted. I wrote the service in .NET Core just in case anyone wants to convert it to run within a container. Let me know if this helps or not.

Resources