Dragons in the Algorithm
Adventures in Programming
by Michael Chermside

Category: Programming

Confluence Fix

Just a note for myself for the NEXT time this happens.

If Confluence starts returning an error saying "400 Bad Request - Request Header Or Cookie Too Large" then the cause is that something has gotten borked with the cookie that the browser has for Confluence. The fix is to delete the Confluence cookie (then log in again). Deleting cookies for a specific site is surprisingly hard. For Chrome, here is the process:

  • From the triple-dot menu near the right-top, select "Settings".
  • Scroll to the bottom and select "Advanced".
  • Search in the page for "Content settings" (and NOT for "cookies").
  • Select "Content Settings".
  • Then select "Cookies".
  • Then select "See all cookies and site data".
  • Now you have a list of sites and can delete cookie data for any site you like.

You might think they would make this easier.

Posted Mon 09 April 2018 by mcherm in Programming

Depending on Someone Else's Code

Depending on Someone Else's Code

We had an interesting problem arise the other day, a problem about code dependency. Our problem was in no way unique, so it seemed worthwhile to write out the problem and our proposed solution.

The problem

The core of the problem is that we need …

Read more

Posted Sun 28 January 2018 by mcherm in Programming

REST Lambda Versioning

REST Lambda Versioning

So, we want to build a "serverless" application on AWS. We have configured Amazon's "API Gateway" to invoke Lambda functions when accessing certain URLs, and the lambda functions access back-ends like DynamoDB. So far so good. But we don't want to be breaking the application every time …

Read more

Posted Sun 02 July 2017 by mcherm in Programming

Long-Running Calls

Long-Running Calls

Question: When building RESTful APIs, do you know of any standard patterns for handling long running API calls? Our decision process may take as much as a couple of minutes.

My Answer: I know of four possible approaches:

  1. Long-running API call: In this approach, you just build an …

Read more

Posted Thu 20 April 2017 by mcherm in Programming

COBOL in a Bank

COBOL in a Bank

Question: I hearing about COBOL being used in banks quite often but all my friends who actually working there say Java and Oracle and all related job adverts I have seen so far were Java or C++. Could someone please provide some relevant facts?

My Answer …

Read more

Posted Mon 30 January 2017 by mcherm in Programming