Tracing Shared Content in the facebook network - facebook-graph-api

I am fairly inexperienced with using the facebook api and was wondering whether there was any way to obtain the path some shared content takes across the network? One scenario that I am looking at is: say I would like to trace the path of a particular article, would it be possible with the help of the api, to determine the origin of the article on the network and the subsequent path the article takes across the network through user sharing?
Any help would be greatly appreciated.

Related

Secure video links with AWS

We currently host online tutorials on our website embeding the videos using Youtube.
However I have been asked to secure the video links so users need to authenticate in order to view the videos, and once authenticated, not be able to copy the video link and share it with others as they will be paid tutorials.
We use AWS to store our other assets (Website images, documents, etc) and want to use AWS to now store our videos.
Does anyone know the best way to secure these links so they can only be used from within our website and not be able to share the video links?
First of all think how much effort you want to put into solving a problem, that the world failed to solved in the last 40 years. We had VHS and everyone could copy everything. We had CDs and DVDs with copy protection. BlueRays can and are ripped too. If you consider how a book can be copied then it is a problem we failed to solve in the last 2000+ years.
Have you played with youtube-dl? Have you seen how easy it is to download things from youtube once you get access to it? And I could always use a screen recorder tool to capture the screen if all else fails.
Given how easy it is to bypass the copy protection, how much time do you want to spend into solving the impossible? Do you want to make the code more complex and the architecture more crappy (and the usability worse) along the way?
If the history has shown anything is that legal measures are the only way to protect from piracy. So you have two options here: pretend you do something to protect knowing you will fail or talk to the managers and convince them, that there are better ways of spending money.
By default, all objects in the bucket are private.
A pre-signed URL may solve your current problem.
Have a look on below links:
https://docs.aws.amazon.com/AmazonS3/latest/dev/ShareObjectPreSignedURL.html
https://www.msp360.com/resources/blog/s3-pre-signed-url-guide/

Connect with NVR to access stored videos

I am working on a computer vision project where I want to process the videos captured by IP cameras in a mall. To do this!
One possible way was to access the live stream of IP camera and process the stream. (I have done this successfully).
But there are so many videos stored on drive of NVR which I also want to process.
One way to access those videos is using NVR's management software but this is a time consuming task. The question is, Can I access those videos programmatically ? May be using python, C++ or any other language. Any help or link would be highly appreciable. Thanks.

Blockchain based database for storing simple records

I want to implement a small blockchain based solution that could serve as Patient Management System. The system should be able to track patients and their medical records/reports. Of course, this system would not be deployed somewhere, its just a university project.
So far, I've started tried to do it with Ethereum. I didn't find a solution using it. Then I tried to use OrbitDB cause I saw it on Ethereum's site in Developer Resources page. But after I had done some POC using OrbitDb, I came to know that it doesn’t claim to be a “blockchain database”, but rather a choice for decentralized apps. Then someone suggested me to use BigchainDb, but after reading about it and trying to make a small project using it, I came to know that it wouldn't fit my needs. I have also read about Fluree but didn't tried it yet as I have already wasted 3 months experimenting with others and didn't want to waste more.
So, could you recommend me a Blockchain-based Database that could serve my needs. Also, some sample code, preferably in Node.js would be a great help for me.
Please excuse me if I have written something wrong or if my understanding is wrong. I am new to Blockchain.
Thanks
You can try IPFS developed at protocol labs
The InterPlanetary File System (IPFS) is a protocol and peer-to-peer network for storing and sharing data in a distributed file system. IPFS uses content-addressing to uniquely identify each file in a global namespace connecting all computing devices.
here is the guide to understand more into ipfs
here is a simple dapp using ipfs with ethereum
You can use Emercoin public blockchain, subsystem NVS (Name-Value Storage). It allows upload your data with name_new command, update value with name_update, and see history of changes with name_history command.

Question about high level architecture required to process and visualize fitness app data (From Apple Health for example) using google cloud services?

I'm working on a project where I am tasked to use google cloud services to process and visualize fitness data. For example, I have exported some apple health data from my watch, and it is in .xml format. From a high level, I envision this .xml file starting off in object storage, and being converted to .csv through a cloud function (triggered by the creation of the .xml object in storage) and stored again in object storage (different bucket). Then I see these .csv files being processed by a DataFlow pipeline, which will reformat the data to the template schema that I would like the data to be organized with. This pipeline will output the resultant .csv to BigQuery, which will then be designated as a data source for Data Studio. I will then configure Data Studio to produce some simple reports that compare the health data to recommended values. I would like for this report to be accessible as a .pdf in object storage potentially as well. Am I on the right track, or am I missing some key services to accomplish this?
Also, I'm new to posting on StackOverflow, so if this question is against the rules or not welcome, please let me know.
Any feedback is greatly appreciated, as I have not been able to bounce these ideas off of other experienced cloud architects/developers.
This question is currently off-topics by the rule of StackOverflow, as it does not contain any problems to resolve. See point 4-5.
As a high-level advice, I do not see why it should not be possible based on the services you mentioned but you would need to implement it and try it on your side and evaluate the features of each service in your workflow.
In terms of solution or architecture advice, those are generally paid services and you would most likely find little help here for those unless you have a specific problem to solve with said services. You might find some help on the internet as well. ie.Cloud Solutions, Built it on GCP, etc
You might find this interesting to review as well as it mimics your solution. Hope this helps.

Prevent a user from "hammering" a web service

I have a MVC 5 internet application with a web service that is hosted on Azure. I am wanting to implement some sort of security that prevents any users from "hammering" the web service. When I say "hammering", I am referring to a user constantly attacking a url thousands of times.
I have done some research online, yet cannot find any relevant resources.
Should I write my own code for this, or is there a library/tool that I can implement?
I am thinking of doing the following if I should write this myself:
Each time a user accesses the web service, increment a count variable for the ip address.
If the ip address count variable exceeds a number (i.e. 1000), do not send the web service data to the user
Before I write this myself, is there a library/tool that I can implement instead of writing my own?
Thanks in advance.
EDIT
Sorry, I forgot to add that I am not using a virtual machine, and instead, I have a website with a web API service.
Azure provides protection already for DDoS attacks. Take a look at the Microsoft Azure Trust Center documentation. There is a ton of protection and detection built into the platform and as for best practices for writing secure code, you will find that in the resources section of the trust center. But, writing code to count the number of requests from an IP address as you mentioned is not the way to go. Simon W points out an obvious problem with this approach in the comments.