working sample of google datastore using v1beta2 - google-cloud-datastore

is there a working sample for datasotre v1beta2?
I googled but I was not able to find anything which can be compiled with current version. I also tried creating it based on java implementation bud had no success
any hints?
thanks
almir

There isn't a current sample to the DataStore API, but you can use other samples in our samples repository (https://code.google.com/p/google-api-dotnet-client/source/browse/?repo=samples) to start with.
This project is open source, so you can actually add a new sample to it.

Related

I want to generate boiler plate code in my repository pattern project

As title suggests, I am creating open source project that is in .net core 2.0. here is the architecture of it.
Now, it's working fine with everything including code first, seeders, swagger UI, TDD etc.
But there are many places where I have to add/modify classes when I want to add new Table in Database (see SimpleCRUD.Model > Entities)
So, I think I can reduce that boilerplate code, but I am not sure what is best way to do it.
What I did so far?
I tried to create a windows app, which will check and generate code for new added entity.
What I am trying to achieve?
Is there anyway I can add some kind of code in my current project and that will check after each build? is it feasible? any other suggestion to make it working perfectly?
Reference
I have checked this working in few other frameworks like serenity, asp.net boilerplate etc.
T4 temples can help cut down the boiler plate...
https://dotnetthoughts.net/generate-your-database-entities-using-t4-templates/
You've asked for my help here
I agree with other posters that you might want to look into T4. It sounds like you also want to create an MSBuild task.
I outlined the steps to do this for a different question in post here
You can find my code generators under this folder, CodeGen.SessionProxies
The t4 example can be found here: AppSessionPartials.tt
The MSBuild task can be found here: GenerateSessionProxies.cs
I had it generating a nuget file through the CodeGen.SessionProxies.nuspec. You won't find it on nuget.com; I had a local nuget repository. It would be helpful to you to look at the corresponding install.ps1 to understand how to set the generator up as a msbuild task.
Disclaimer: All of the GitHub links are subject to break if I ever decide to clean up that repo.
Cheers

Usecases documentation and code

Where can I find existing or on going developed usecase/smart contracts on Corda?
I know about their website: https://explore.corda.zone/
But this link have very few usecases and those also with no documentation and some with no code/git links.
Is there any other repo/website where I can find the solutions developed on corda?
Thanks
https://explore.corda.zone is still very much a work in progress and new projects (with code) will be added to the library over the coming months.
In the meantime, you can check out https://www.corda.net/samples/ for sample CorDapps. The following repos also have additional sample CorDapps
https://github.com/roger3cev
https://github.com/CaisR3
https://github.com/JoelDudleyR3

Is there any way to use Point Cloud Library (or similar) to get a skeleton from point cloud data like obj?

everyone.
I've been stuck for some days searching some way to get the skeleton of a point cloud data (like OBJ) but not using kinect. Is it possible?
I found the Point Cloud Library which does a lot of tasks related to point cloud data, and in their documentation there is a body keypoints detector, but it also works with kinect grabbers.
In my case, I have a point cloud data like in the picture, which was generated by another depth sensor scanner. Is it possible to find the key points in such data?
I really would appreciate any help. Thanks in advance.
Even if it's not explicitly mentioned in the tutorial you linked, a quick to the code suggests that you can use different data sources (e.g. PCD files), so you're not stuck with the live capture from Kinect.
All the tutorial code really does is the following:
Setup the GPU for the people parts detection.
Pick the appropriate data source.
Load the tree files for the body part detector.
Run the PeopleDetector on a single frame captured from the live grabber stream/PCD file.

Unable to access the sample dataset for Google Analytics in BigQuery

Goolge very kindly offer a sample dataset of Google Analytics data in BigQuery, so you can run some tests before setting up the actual export to BigQuery.
This is detailed at the following page https://support.google.com/analytics/answer/3416091?hl=en&ref_topic=3416089
However when you try to add the project google.com:analytics-bigquery as shown in step 5 of the guide. The following error is shown:
Project IDs may contain letters, numbers, and dashes, with an optional
"domain:" prefix.
As you can see the project ID conforms to this, but you are unable to submit the form.
Google is this just a bug?
Does anyone else have the same issue?
I am confirming - just tried and got the same.
Some-when recently - this dialog form was changed (added options to choose from - display in nav vs. make a current project) and looks like the bug was introduced. previous versions didn't have this bug.
At the same time - confirming that nothing wrong with project name itself - with the internal tool that I am using - I was able to add this project successfully
You should report this bug in BigQuery issue tracker.
Thanks for reporting this issue. We actually already have a fix checked in for this, but we are currently waiting for an opportunity to push this to production, hopefully soon.
In the meantime, you can try one of these workarounds:
navigate directly to the project: https://bigquery.cloud.google.com/queries/<project_id>
navigate to a dataset on the project, which will display it in the left nav: https://bigquery.cloud.google.com/dataset/<project_id>:<dataset_id>

MPXJ - get ResourceAssignment baseline values

I'm trying to display the Baseline Start, Finish, Cost, and Work values for a ResourceAssignment, but cannot seem to find any methods on the ResourceAssignment object that would provide this information. Anybody know if this is possible?
I know the information is stored because I can see it in MS Project, and I can see it in the XML version of the project file. Just can't see in the API where to get access to it.
In case anybody cares, Jon has fixed this in the latest version of the MPXJ source code. You can see the bug request here.

Resources