Bram's Dev Blog

home

100 Days of Code Day 09 report - Favicon and Timeout

28 Aug 2018

Favicon

The Atmire.com site already had an updated favicon and the mission was just to copy it into the Analyzer project. Turns out the modern web doesn’t need the archaic .ico extension anymore and that icons up to 32x32 pixels are supported, in PNG. If you’re interested, more information is available on Favicon dimensions?

Timeout

I already had three different timeout configurations in place in my HttpClient configuration, used to send out requests to analysed respositories, all set to 5000ms.

The differences between ConnectionRequestTimeout, ConnectTimeout and SocketTimeout are beautifully explained here: why setConnectionRequestTimeout doesn’t stop my 1 min get request?

I decided to:

Unfortunately, I got confronted with failure as these changes still haven’t enabled me to get updates for one of the major Chinese DSpace repositories, CAS IR GRID

Today’s time only allowed for a little bit of debugging, but it currently seems that this repository is returning a 403 Forbidden response, so it has nothing to do with timeouts and I’m currently doing a poor job at properly logging these kinds of responses.

Day 10 Plan

Investigate the case of CAS IR GRID and see if there’s anything we can do in terms of logging and working around the 403 forbidden responses.

Future days

Sustainability - Raising the stakes (No change here)

Just keeping this section in the report. It was already in here earlier, didn’t change or makeup my mind yet.

I’m strongly thinking about raising the stakes by

This way, every day would be a win. Still doubting about which rules I should put in place. For now, I’m thinking along the lines of:

  1. I can anticipate or fix a lost day by doing an hour extra the day before, or an hour extra the day after.
  2. Goal is to have a steady frequency, so I can’t just do 8h on a sunday to get myself off the hook for the next 7 days.
  3. Sponsor commitments are fully voluntarily: any sponsor can back out at any time
  4. My commitment is fully volunatirly: if I want to change the rules or back out, I can at any time

Thinking further about September, these are already days that will be very tough:

So that’s already a lot of exposure to potentially missed days. Not sure if raising the stakes this way will be productive or not.