How do you convert imdb id's into tmdb id's? - imdb

I need to convert IMDb ids into TMDB ids. Can someone please help me?
I have to manually find out all the ids and I have more than 4K movies.

Related

FHIR - Patient - How to upload and retrieve patient photo

FHIR Patient Resource has a photo variable:
photo 0..* Attachment Image of the patient
Questions: Are there examples for each:
How do upload a patient photo (what format are supported etc).
How to retrieve a patient photo?
This post How to Get FHIR Photo for Patient from a URL seems to be old.
The post you've mentioned might be a bit older, but it is still valid. You have several ways to store binary data, depending on the capabilities of your system.
You could store the base64 encoded data in the Patient.photo.data field.
You could also store the data somewhere else and then point to it with the Patient.photo.url field. So for example you store the photo on your [base]/Binary, which will give you the technical id for it. Then set Patient.photo.url to [base]/Binary/[id]. The advantage of this approach is that you can retrieve the normal patient data without the payload of the image. Disadvantage is that you might need a separate call to retrieve the image.
Patient.photo is an Attachment which contains Attachment.data, which is a base64Binary. So you just base64 encode the image and set the proper contentType.
I uploaded you a patient with photo here:
http://fhirtest.uhn.ca/baseDstu3/Patient/70691

YouTube data Api for videos under particular category

I am trying to fetch the 25 each videos under particular category, but i am struggle to form YouTube data API, can anyone help me to form.
I have got category list using categories API, but i am struggle to fetch videos of particular category.
You need to use the Videos List API
with the parameters chart=mostPopular and videoCategoryId=<id>
for example
https://www.googleapis.com/youtube/v3/videos?part=snippet&chart=mostPopular&videoCategoryId=10&key={YOUR_API_KEY}

How to store different type and number of fields in one database table?

Hello everybody I'm making a "Bulletin board", like this: http://stena.kg/ad/post, I'm using Laravel 5.0, and don't know how to store different fields in database table, for example if I choose "Cars" category I should to fill Mark, Model, Fuel (etc fields for cars category), If I choose Flats category I should fill fields like Area, Number of rooms etc...How to organize all of this? I tried some ideas but nothing helped me(
Try to save data as json in table. Parse json format to string and save it in db, but it will cause many problems in future, so not recommend that solution. I recommend to store data in separate tabels, each one for category. For optimise process it is possible to create catregory table, and category_item table with fields like name, description and so on. Different category demands sp=ecific fields, so best solution is to create table per category.

Downloading data from Yahoo

I have been downloading stock information from Yahoo using this method:
http://finance.yahoo.com/d/quotes.csv?s= (enter stocks here) &f= (add tags depending on what info I need)
This provides me with a csv file with the requested information.
What I want to do is download only the information that satisfies a certain requirement. For example I want to only download data on stocks that are worth more than $100 per share, or stocks that have lost %10 of value during a day.
Much appreciated if someone could tell me how to do this or even if there is a better method than what I am doing.
Thanks a lot
can you try to use the YQL console. See example below.
http://developer.yahoo.com/yql/console/?q=select%20%20from%20internet&env=store://datatables.org/alltableswithkeys#h=select++from+yahoo.finance.historicaldata+where+symbol+in+(%22MSFT%22)+and+startDate+%3D+%222012-09-13%22+and+endDate+%3D+%222012-09-16%22%0A
Further there you have other table you can use to receive information. See yahoo.finance Tables.

MongoDB GridFS one-to-one query effeciency in Ruby

I'm using MongoDB w/ Sinatra for an iPhone app.
I have a users MongoDB collection and a picture GridFS collection. Each user has one picture, so, initially, I just set the ObjectId for the picture to be the same as the corresponding user. That made it easy to, given the user's ObjectId, get the picture of that user with just one query. Then, I was planning to store the MD5 hash of the picture in the user object so that the iPhone would know to download the picture only if the MD5 hash had changed. This would work, but I had to modify the Grid Ruby class to get the MD5
But then, Kyle Banker suggested that I just store the picture_id, instead of the MD5, in the user object. But, if I do that, given a user ObjectId, I'd have to first query the picture_id from the user, and then query the picture (2 queries). Is there a way, in one query, to get the picture given a user's ObjectId? Reading up on GridFS indexes, I think there's a way to store the user's ObjectId in the meta data of the picture and then set an index on that field. That way, I could do it in one query. If that's correct, what's the code look like to do that in Ruby?
Alas, should I even bother? I could just as easily use the picture_id to query the picture, which is what I'll do for now, but it'd also be nice, from a syntactical perspective, to be able to query the picture (in one indexed/fast query) by the user_id. Kinda like Facebook's graph api lets you do, e.g., http://graph.facebook.com/mattdipasquale/picture.
Sure. Like you suggest, just store the user_id somewhere in the picture's file object, and build an an index on that field.

Resources