Johnathan.org

October 17, 2018

Apple’s New Data Privacy Tool

Apple revamped their Privacy page and launched a new privacy/data management tool. Now, everything you need is in one place

Apple's Privacy portal

This is exactly how it should be done. Every tech company should be putting in the effort to make data management this easy for their users.

permalink
October 16, 2018

The Paper Prop Master

Incredible. Absolutely Amazing to watch.

permalink

Facebook Could Use Data Collected from Portal Device to Target You with Ads

Kurt Wagner over at Recode:

Last Monday, we wrote: “No data collected through Portal — even call log data or app usage data, like the fact that you listened to Spotify — will be used to target users with ads on Facebook.”

We wrote that because that’s what we were told by Facebook executives.

But Facebook has since reached out to change its answer: Portal doesn’t have ads, but data about who you call and data about which apps you use on Portal can be used to target you with ads on other Facebook-owned properties.

Anyone who thought this would turn out differently is either living under a rock or has no idea what Facebook Portal even is. They make money by advertising stuff and to do that well, they need to know things about you. There’s absolutely no chance Facebook will turn down an opportunity to be always on in your home and always sampling your life. No Facebook.com or Facebook app access required. 

Granted, they didn’t outright say they’ll target you, but it’s only a matter of time before “we could” turns into “we do.”

permalink
October 12, 2018

Busting Cloudflare Cache when Posting to WordPress via XML-RPC

I love Cloudflare. I’ll come right out and say that now. It’s a great service and makes for incredibly performant sites if used right (aggressively). I don’t feel like I’m getting the most out of it until it’s caching just about everything possible. Most of my content is static and never changes (save for the home page and each paginated set of posts thereafter). Even then, the homepage changes maybe a couple times a day. It makes a lot of sense for Cloudflare to cache them all. I use pretty aggressive Page Rule-based caching to accomplish that.

Part of my regular blogging workflow involves posting using MarsEdit. It’s a great tool and uses XML-RPC to post content. One of the problems with this workflow is that most caching-management plugins for WordPress don’t consider any kind of content changes via XML-RPC, only via the WordPress Admin UI. This means that there’s virtually no support for engaging all the cache-cleaning activities when XML-RPC events take place and thus Cloudflare is never notified for purging.

Luckily, there’s a solution to this problem. It involves a bit of duct-tape-like hooking into core WordPress, but in my testing, it’s been pretty painless, and posting doesn’t seem to be noticeably slower (XML-RPC posting takes a few seconds, anyway, adding another second isn’t a big deal, in my opinion). All we need to do is add a filter to xmlrpc_publish_post.

Sounds easy, you say? It is!

function clear_cache() {
$curl = curl_init();
curl_setopt ($curl, CURLOPT_URL, CACHE_PURGE_URL);
curl_exec ($curl); curl_close ($curl);
}

add_filter( 'xmlrpc_publish_post', 'clear_cache');

I set CACHE_PURGE_URL in wp-config.php to be a local path that when triggered with a GET request, makes a POST request that looks like the equivalent of this CURL request:

curl -X POST "https://api.cloudflare.com/client/v4/zones/YOUR_ZONE_ID/purge_cache" \
-H "X-Auth-Email: YOUR_EMAIL_ADDRESS" \
-H "X-Auth-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
--data '{"purge_everything":true}'

Replace YOUR_ZONE_ID, YOUR_EMAIL_ADDRESS, and YOUR_API_KEY and you’re set.

By making this request after xmlrpc_publish_post using add_filter(), we’ve already established our updated content so the trigger will have Cloudflare pull the freshest and not accidentally re-pull stale bits.

Right now, it’s an entry in my theme’s functions.php. If I was to do this truly right, I’d make this a plugin. Someday!

DuckDuckGo climbs to 30 million daily searches, up 50% in a year

I came across this tweet via TechCrunch:

This is fantastic news! I love that a true alternative to the mammoth that is Google (and distant second mammoth Bing). Before the end of the year, I’d like to seriously consider converting to DuckDuckGo and Proton Mail for email. We’ll see.

permalink
Johnathan Lyman
Kenmore, WA,
United States
 
blogging, design, technology, software, development, gaming, photography