As we do more things with JSON, I run into CORS access issues. They can be solved in various ways but it’s often a hassle. It often irritates me as I build demos in COde After wanting a simple solution this AM, I made this tiny, insignificant PHP file that I think might be useful to others. Name this file cors.php.1 Put this file on a server. You can now append some JSON URL to that URL like so … https://yourserver.com/cors.php?url=https://someurl.com/data.json and it returns drama-free JSON for your use and enjoyment. Assuming you have HTTPs on your server it should also deal with HTTP/HTTPS conflicts as well which is very handy at times. 1 Or name it whatever you want. I’m going using bossiness as a shortcut to clarity.
Please Consider My Application to Give You Labor So I Can Stay Alive – McSweeney’s Internet TendencyIf you look at my résumé, I think you’ll find that I have extensive relevant experience that I could bring to the table after onboarding. In the formative years of my life, I attended primary school in exchange for not being detained per truancy laws in my home state; I then matriculated to college, where I cut my teeth going to classes in exchange for a framed sheet of cardstock that was a prerequisite for submitting this application. The Pizza Effect – Futility ClosetThe pizza example continues to “echo” between the Italian and American cultures: American tourists sought out “authentic” (non-American) pizza in Italy, and the Italians met the demand by creating brick-oven pizzerias. The Americans then carried these back to their own country. Stephen Jenkins of Humboldt State University writes, “Hence, Americans met their own reflection in the other and were delighted.” xkcd: SpreadsheetsPretty much my life . . . I thought I was being ‘blacklisted’ by university colleagues, so I demanded to see their emails | The Independent Firstly, my eminent and influential PhD supervisor had let it be widely known that they thought I was an unpleasant person, impossible to work with, fundamentally stupid, and that I definitely shouldn’t be doing […]
teenage engineering – PO-32 tonicnever before has a drum machine that sounds this good with literally endless sound capabilities been set at a price this low. meet PO-32 tonic, the new gold standard drum machine. and yes, it comes in a gold plated cardboard box. Haruspex – WikipediaIn the religion of Ancient Rome, a haruspex (plural haruspices; also called aruspex) was a person trained to practice a form of divination called haruspicy (haruspicina), the inspection of the entrails (exta—hence also extispicy (extispicium)) of sacrificed animals, especially the livers of sacrificed sheep and poultry. The reading of omens specifically from the liver is also known by the Greek term hepatoscopy (also hepatomancy). “Effectiveness of Animation in Trend Visualization,” ten years laterOur results found that animation is a paradox. It certainly wasn’t very effective for solving our tasks. Whether they had interactivity or not, users in the animation condition were less accurate than small multiples. Users took a very long time to answer questions when given an interactive animation, scrolling back and forth. When we took that control away, they’d quickly make their best guess. Despite that, interactive animation wasn’t much more accurate then non-interactive! But we also found that users really liked the animation view: Study participants described it as “fun”, “exciting”, and even “emotionally touching.” At the same time, though, […]
I am playing around with unfurling1 open graph data in the WordPress TinyMCE editor. You can see what that looks like in the video above. It’s a lot like the oEmbed experience in WordPress but with the open graph information driving it. I want the data to go into the post body but I don’t want a title that links to a post because these types of posts are more about getting people out to that original content. People could still manually enter a title and that’d work but if they choose not to I thought it’d be nice if it was just removed from the equation. That’s pretty nice on the front end but on the backend you end up with a maze of posts with the title (no title). That seemed irritating so I cobbled together the following function which creates a mini excerpt from the post content but only applies the filter when you’re in the backend/dashboard. Nothing fancy but a nice little pattern that I expect I’ll use again. via GIPHY 1 I like how furl and url have similar sounds but it is a ridiculous term.
At VidCon, Influencers, Fans, And Brands Seemed Ready To Leave YouTube BehindAt one point, the party converged around an Instagram-famous Pomeranian wearing a leather jacket and sunglasses. The dog’s owner was trying to yell out the dog’s Instagram handle over the sound of guests singing Kelly Clarkson’s “Since U Been Gone” on a karaoke machine on the other side of the room. TheyDrawIt!: An Authoring Tool for Belief-Driven VisualizationThis is really solid. Need to look at the privacy stuff but an awesome thing to exist. EarthRoamer – The Global Leader in Luxury Expedition VehiclesSince 1998, EarthRoamer has been redefining luxury camping and overland travel with our solar/diesel hybrid, four-wheel drive Xpedition Vehicles (XVs). Old WeatherHelp scientists transcribe Arctic and worldwide weather observations recorded in ship’s logs since the mid-19th century. You Can Apply to Hunt Pythons With Shotguns in FloridaThere are currently 40 paid snake hunters who hunt pythons in the Everglades. Remarkably, they earn anywhere from $8.25-$15 an hour, plus an additional $50 for each python. They also get $25 for every foot of length beyond four feet, as well as a $200 bonus for each nest. This new shotgun initiative will bump the number of hunters to 120. The Navy’s USS Gabrielle Giffords and the Future of Work – The Atlantic Unbeknownst to the participants, the scoring rules changed partway […]
Kafka’s Joke Book – McSweeney’s Internet TendencyWhy is a raven like a writing desk?” “I don’t know,” Gregor told the faceless interrogator for the fiftieth time. “We can’t help you if you won’t work with us. Perhaps another day in the machine will convince you to cooperate.” Create Written Notes From YouTube Videos Instantly With this Chrome ExtensionUnlike a transcription app that would just transcribe the whole thing for you, Gnotes has you identify what parts of the video are important to you and then it creates notes specifically for that portion. For instance, maybe you watch a 15-minute video on how to do something, but you really just need information from the last few minutes written down. –starts to get at the idea of new patterns that take into account (and advantage of) how digital tools interact Add Query String Parameters to YouTube oEmbeds in WP – Brett HoffmanNice thing and nice pattern to think about.