A few of these are from the drive from VA to Alabama. They’re all taken from the car so it’s basically reverse sports photography. They’re also taken with the 85mm fixed lens which means no zooming to compensate for slow reflexes at 70mph. It does make the trip go much faster when you’re playing this game.
Many APIs have query strings that require app IDs or other authentication elements you’d rather not have exposed to the public. Even if you can restrict access to your own sites, you might still want a bit more privacy.
In this scenario PHP acts as middleware and only returns the public data while hiding all the secrets.
Line #1 tells us which API endpoint and parameters we’re using.
Line #2 gets the data from our API with our fully authenticated URL.
Line #3 tells the browser that the page we’re making is JSON and it should treat it accordingly.
Line #4 lets other sites access the data. You can learn more about some CORS options over here.
Line #5 spits the data back out.
$weather_data_url = 'http://api.openweathermap.org/data/2.5/forecast?id=290030&APPID=MY_SECRET_CODE_WENT_HERE&units=metric&lang=ar';
$json = file_get_contents($weather_data_url);
header("Access-Control-Allow-Origin: *");//you could be more restrictive but I was being lazy
We went to explore the headwaters of the Chickahominy River which is not far from our house. The skimboard attempts were semi-successful.
I remain fascinated with these trees. Tried drinking their sap one time. It was not maple syrup.
The reverse of sports photography is trying to take pictures while driving down the road at 70 mph (112 kph). These shots are on the return trip from Alabama. Darkness called an end to the attempts at some point. I’ll make another post with the shots coming from VA to Alabama.
I love this building. Someday I will stop and go take proper photographs. It looks like it’s close enough to Ruby Falls to justify doing that before the building gets torn down. I have photographs of it going back a number of years so who knows how much longer I can delay.Time slips away and leaves you with nothing mister but boring pictures of strip malls.
I repeat that doing this with an 85mm lens from the car is an interesting challenge. You do see so many more things if you look.
That color water always reminds me of Alabama.
The Birmingham Zoo was mediocre. I was chastised for being less wary of a cassowary than they desired.
Wildness remains strictly controlled.
One piece of pine straw . . .
I’m not driving.
Stealing the dogs’ attention.
You have been warned.
Waterfalls and mountain streams.
He did land the jump and even made it back from the island.