The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
1. Happy Birthday!
2. I was thinking of writing a tmdb utility myself... but then I thought someone else would probably do most of the work for me if I waited a bit. So I waited a bit and now... Voila!
3. Two articles would probably be better or one with two distinct parts.
- I would love to change the world, but they won’t give me the source code.
Well, you should be happy with it as it covers all of the v3 api.
It auto manages guest sessions.
It's got dual caching - it does in memory caching on a per-thread basis for the objects - it's aggressive, it doesn't refresh at all - the in memory cache is intended to be used in a batch and then cleared.
And then it has global url based caching where you can set how aggressive it is.
It automatically recovers from TMDb's request limits too, so it will retry requests.
It does automatic paging - you can get a range of pages as a result array in one call.
It exposes the entire thing as an object model perfect for LINQing over.
I'm actually almost done - but I'm going to post it without testing the entire api.
The rationale is I'd rather put out something where a few of the calls don't work then make you wait the month it would take me to write tests for this.
It's really easy to fix, especially the bugs that are likely to crop up (field names and urls)
So that's the one caveat.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
It's a common misunderstanding that a Tyrannosaurus Rex can't clap because his arms are so short, but that not true at all!
The real reason a Tyrannosaurus Rex can't clap is that he's extinct!
Anything that is unrelated to elephants is irrelephant Anonymous - The problem with quotes on the internet is that you can never tell if they're genuine Winston Churchill, 1944 - Never argue with a fool. Onlookers may not be able to tell the difference. Mark Twain
Did the dinosaurs die off because of reptile dysfunction?
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
"Suckehihaw" is from the Osage North American First People's language: it refers to a noxious pest weed that grows aggressively by creeping, and climbing, and can even form thick mats which are difficult to walk over without tripping. It can be used to poison fish, and is known as "devil's shoestrings."
You wanna see some code like that: goto QA
«One day it will have to be officially admitted that what we have christened reality is an even greater illusion than the world of dreams.» Salvador Dali
You can use GOTO - but you shouldn't be allowed to for at least five years from the end of your course. By then you know when you should (and more importantly shouldn't) use it. And probably won't, because generally you don't need it ...
Sent from my Amstrad PC 1640 Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
You have not written any code on an 8 bit processor or a microcontroller for a while? By avoiding anything that resembles calling a subroutine you can save a lot of your precious little memory and also save some execution time because you don't have to run up and down the stack at every corner. Plus saving and restoring the contents of any processor registers you might change in your subroutine. If you religiously stick to other wise words, like keeping your functions short and calling them a lot, suddently half or more of your memory is excusively dedicated to working on the stack.
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.