OAuth

Updated on Wednesday, February 22, 2017

We'd probably be living in a post-scarcity Star Trek / Culture style universe happily working on self-actualization if we didn't have to spend so much time fucking around with OAuth.

(Previously)

Add your comment...

Related Posts

You Might Also Like

(All Etc Posts)

Google Inbox Account Switching

Updated on Sunday, November 6, 2022

Google Inbox Account Switching

Google is generally pretty good about managing multiple accounts but sometimes you get completely stuck. One example is Google Inbox where your primary account is Google Apps for Work without Inbox enabled. You just get a screen saying that Inbox needs to be activated and no option to switch to another account.

There is a fix, and this sometimes works for other products as well. In the URL (https://inbox.google.com/u/0/) there is a user number. Change the 0 to 1 (or maybe 2, 3, etc depending on the number of accounts) and you can get Inbox up and running again.

One case I haven't found a clean workaround for is importing a segment or custom report in Google Analytics. You just get the default profile and if it's not what you're after then there is no way to switch. What does work here is launching an incognito window, signing in to the relevant account and then using the import link. A bit painful but gets the job done.

Add your comment...

Related Posts

You Might Also Like

(All Etc Posts)

Correlation is not causation but...

Updated on Wednesday, February 22, 2017

Blog post length vs number of children.

I have crunched the numbers and calculated the average length of blog posts on I Thought He Came With You vs. how many children I had at the time the post was written.

Add your comment...

Related Posts

You Might Also Like

(All Etc Posts)

25th Centuary

Updated on Saturday, February 19, 2022

A vacation based proof of the many-worlds interpretation of quantum mechanics

Updated on Sunday, May 2, 2021

A vacation based proof of the many-worlds interpretation of quantum mechanics

It's a well known fact that whenever you go on holiday your home town experiences once-in-a-generation levels of good weather while you sit inside with increasingly insane children watching unseasonably torrential rain.

As this is a universal experience it has to be more than bad luck.

Every time anyone takes a vacation a parallel universe must be created where the traveler inflicts stormy weather on one branch and summer continues as normal on the other.

​Tags: random, quantum, weather​

Add your comment...

Related Posts

You Might Also Like

(All Etc Posts)

News: Spacecraft data boosts Pluto's size

Updated on Sunday, October 16, 2022

News: Google, Microsoft, Mozilla And Others Team Up To Launch WebAssembly, A New Binary Format For The Web

Updated on Saturday, October 1, 2022

News: Frozen sequel announced by Disney

Updated on Saturday, September 24, 2022

Not to be anal but (any number of dogs...)

Updated on Monday, February 15, 2021

Not to be anal but (any number of dogs...)

Google is going to start ranking pages based on facts. I'm game. This MUNI sign has always bothered me.

The highest capacity vehicle in the MUNI fleet has to be a two-car light rail vehicle. Capacity 436 people. The average weight of a person is 185 pounds. So we're looking at 80,660 pounds per rush hour train.

The lightest dog is a 1.4 pound Chihuahua named Ducky.

So at the absolute outside with no other passengers the limit is 57,614 dogs. I'm going to have to make some stickers...

Add your comment...

Related Posts

You Might Also Like

(All Etc Posts)

Capture DropCam (Nest Cam) frames to Google Drive

Updated on Monday, July 12, 2021

Capture DropCam frames to Google Drive

Updated June 17, 2019: This is now broken for Nest/DropCam devices. It will still work for anything that has a web accessible image URL. Clint points out in the comments below that you can fix up the URL for Nest cams but it looks like you need to be logged into nest.com so it doesn't work from Apps Script. Google is also retiring Works with Nest because they're "...reimagining how technology and services can deliver simple and helpful experiences in your home..." which apparently translates to only working with Google Assistant. I'll update this post if I figure out a work around.

Here's an easy way to capture frames from a DropCam to Google Drive. This only works if you have a public feed for your DropCam.

Go to the public page for your DropCam (Settings -> Public -> Short URL Link) and then view source for that page. Near the top you can find the still image URL for your DropCam:

<meta property="og:image" content="https://nexusapi.dropcam.com/get_image?uuid=12345&height=200" />

In Google Drive create a new Apps Script (If you don't already have Apps Script you can find it via Connect more apps...). Paste in the following code:

Replace the uuid parameter in the URL with the uuid from the still image URL for your DropCam. Note that the height parameter in the script has been changed to 1280 to get the largest possible image. A timestamp is being used to add a random cache busting parameter to the still image URL and is also used as the filename for the image.

The script will save the images to a folder called DCFrames - either create this folder in your drive or change this parameter to the desired folder.

Run the script and check that it's working. If everything looks good go to Resources -> Current project's triggers in the Apps Script editor. You can now set up a timer to save a frame as frequently as every minute (which I'm using to collect frames to make a daily time lapse movie). You can also ask Apps Script to send you an email when the script fails.

Updated 2015-07-01: DropCam is now Nest Cam - assuming that Nest keep the API going everything should keep working as above for both types of camera.

Add your comment...

Related Posts

You Might Also Like

(All Etc Posts)