I just googled the phrase ‘Who is your audience?’ and got just over a million links.

It is the most important question a communicator can ask in 2022.

What, even more than ‘what’s your TikTok strategy? Or ‘Is your chief exec blogging?’

It’s much more important and I’d be prepared to say that it’ll be the most important question to ask next year and, you know what? in 10 years time, too.

Why? Because if you know who your audience is you’ll then be able to advise which channels to use and how to create the content. You can know this through research.

Success is creating the right content for the right audience be that a poster, a Facebook ad or an email.

Success is not creating the same content for everyone and thinking you’ve succeeded.

The days of mass pigeonhole distribution are long gone.

Original source – The Dan Slee Blog » LOCAL SOCIAL: Is it time for a Local localgovcamp?

I just googled the phrase ‘Who is your audience?’ and got just over a million links.

It is the most important question a communicator can ask in 2022.

What, even more than ‘what’s your TikTok strategy? Or ‘Is your chief exec blogging?’

It’s much more important and I’d be prepared to say that it’ll be the most important question to ask next year and, you know what? in 10 years time, too.

Why? Because if you know who your audience is you’ll then be able to advise which channels to use and how to create the content. You can know this through research.

Success is creating the right content for the right audience be that a poster, a Facebook ad or an email.

Success is not creating the same content for everyone and thinking you’ve succeeded.

The days of mass pigeonhole distribution are long gone.

Original source – The Dan Slee Blog » LOCAL SOCIAL: Is it time for a Local localgovcamp?

The The National Archive (TNA) Case Law project consists of 2 separate web applications, the public-facing UI and the editorial ‘backoffice’ application which TNA’s legal editors use to check and publish documents to the public UI.

The public UI contains a CSS file used to format the judgments (and decisions) to look as much like their MS Word original formats as possible. The editor UI also contains the same CSS, editors can see how the judgments will look once published.

What this meant for edits

We were running into an issue in the team, where edits to the judgment CSS in the public UI were not being replicated to the editor UI. Remembering to do the same thing in 2 places and keep 2 totally distinct files in sync isn’t the easiest thing to do, especially in a busy and fast-moving project like TNA.

We therefore decided that the 2 separate repositories and applications should share this one CSS file (of many). The applications are otherwise completely distinct from each other, but they need to share this one asset.

Initially, we tried achieving this with Git submodules – adding the public UI as an app in Django using a submodule, and taking the shared CSS from the included app. Although this worked locally, we had issues with deployment in staging. And adding an entire app to another app in order to share one asset felt like overkill.

A helpful suggestion

bob, our Head of Technical Operations, suggested we use Docker instead. To achieve this we had to break the process down into a few steps:

For starters, we needed to agree on the version of the judgment CSS to be shared. We decided that the public UI should be the “source of truth”, as it’s the “main” application, and the one our end-users see.

The public UI is released via tags, so the version of the judgment css on the `main` branch isn’t always the one users are seeing. We therefore needed to be able to include only the released version of the CSS to ensure the editors are seeing the same judgment layout as the public.

Luckily, both repositories are public, so we didn’t need to worry about using authentication to get either the latest release tag, or the CSS.

The steps we took

Using Github’s API, you can get the latest release tag for a repo with:

curl -H "Accept: application/vnd.github+json" https://api.github.com/repos/nationalarchives/ds-caselaw-public-ui/releases/latest | jq -r .tag_name

This gets a JSON response from Github, and uses jq to parse out the tag_name, which at the time of publication resolves to v1.3.14

We can then use this tag to build a URL to the raw judgment CSS:

https://raw.githubusercontent.com/nationalarchives/ds-caselaw-public-ui/v1.3.14/ds_judgements_public_ui/sass/includes/_judgment_text.scss

Using some nesting, we can combine the 2 and use curl to get the raw judgment CSS for the latest tag:

curl https://raw.githubusercontent.com/nationalarchives/ds-caselaw-public-ui/$(curl -H "Accept: application/vnd.github+json" https://api.github.com/repos/nationalarchives/ds-caselaw-public-ui/releases/latest | jq -r .tag_name)/ds_judgements_public_ui/sass/includes/_judgment_text.scss -o ds_caselaw_editor_ui/sass/includes/_judgment_text.scss

Now we know how to get the CSS, let’s use Docker to add it to the editor UI application.

In the editor UI application’s Dockerfile, after building Django, we copy the app to the working directory:

# copy application code to WORKDIR
COPY . ${APP_HOME}

Once the application is copied, we can use the above to retrieve the CSS from the public UI repository on Github. First we need to install curl and jq:

RUN apt-get update && apt-get install -y jq curl

Then we use the command above to get the CSS, and copy it into the right place in the application:

RUN curl https://raw.githubusercontent.com/nationalarchives/ds-caselaw-public-ui/$(curl -H "Accept: application/vnd.github+json" https://api.github.com/repos/nationalarchives/ds-caselaw-public-ui/releases/latest | jq -r .tag_name)/ds_judgements_public_ui/sass/includes/_judgment_text.scss -o ds_caselaw_editor_ui/sass/includes/_judgment_text.scss

And that’s it. The editor UI now contains the latest released version of the judgment CSS, we know both applications are in sync with each other. And the CSS cannot be edited in the editor UI application, because it only exists in the Dockerised version and not on the developer’s filesystem.

The post Sharing an asset (in this case CSS) between 2 different apps via Docker appeared first on dxw.

Original source – dxw

Data users in the UK often encounter fragmented public data, where  public authorities are each spending money to publish data independently, but their outputs are difficult to find and join together. This means that a lot of effort is going into creating data which cannot be used to its full potential.

As a joint project between mySociety and the Centre for Public Data, we are writing what we hope is a simple approach to help address this problem. 

Our current thinking is that some level of central coordination is required to accompany a central mandate to publish. Public bodies need support and coordination to publish data to a lightweight common standard and in a common location.

We want to kick the wheels of this conclusion, identify existing attempts to fix the problem, and talk to people who produce and use the data to see what the obstacles are. If you’re interested, get in touch at research-publicdata@mysociety.org, or drop your views in this survey. 

What is fragmented public data?

Fragmented public data is when many public authorities are required to publish the same data, but not to a common standard (structure) or in a single location – so data becomes fragmented across multiple locations and multiple formats. 

For example, every English local authority is currently supposed to publish all spending over £500 each month. From Adur to Wyre Forest, council officers are working hard to publish monthly spending. 

In theory, this data should be being used by companies, researchers and journalists to provide insight into spending, spot fraud, and find opportunities to sell to councils.

But in practice, to use the data, you’ll need to search all 333 council websites each month, then import each spreadsheet into a central database – and you’ll spend a lot of time pulling your hair out, because the spreadsheets don’t use a consistent format. 

As a result, not much has actually been done with all this data. And the grand promises that spending data would unleash an ‘army of armchair auditors’ have largely failed to materialise. 

Why does this matter?

This is a problem because most of the effort is already being spent to do the job ineffectually. Councils do a lot of work to produce this data, and companies and analysts waste time fixing import scripts or crowdsourcing data, rather than creating new products or insights — and for many organisations, the skills and resources required to create national level datasets are beyond them.

This is not an isolated problem – there are many other examples of fragmented data. 

From assets of community value to election information to council land and property assets, data is often published in a fragmented and hard to reassemble way. 

For many datasets, while individual disclosures are useful, the combined data is much more than the sum of its parts because it allows real understanding of the picture across the whole country, and makes it easier to draw comparisons between different areas.

Across all these datasets the potential loss is huge – and just a bit of extra work could unlock huge amounts of the overall value of the data. We want to fix this for data that is already being published, and make sure that datasets in future are published in the best possible way. 

So what can we do?

The big problem is one of coordination. We think the UK’s central data teams just need to help public authorities do two things:

  1. Use a lightweight common standard
  2. Report the location of the data in a central register.

By taking things that individual authorities are doing anyway, but getting an agreed format and location, all the individual datasets become far more useful. But the details of the standard are less important than the fact that the government and legislators should be as interested in this side of the problem as they are in requiring the data to be published in the first place. 

We’re keen to learn lessons from previous attempts to do this, and reviewing old publication guides, our initial conclusion is that these over-complicated the idea of what open data is (with a fixation on file formats and linked standards), rather than simple interventions that help both publishers and users (where generally, the best approach is probably an Excel template with common headers). Common standards need to be a compromise between technical requirements and the people who work in local authorities who produce this data.

We’re encouraged by an approach taken by the Scottish Parliament, where publication of compliance with climate change duties was mandated in a particular format – and a consultation on this process found most organisations involved thought standard reporting was an improvement. We’re interested in any other examples of this kind of approach. 

What are we doing now?

We’re trying to explore this problem a bit more, to understand the scale of the problem, and the viability of our approach.

We are interested in talking to:

  • People who have run into this issue, what they were trying to do, if they were able to overcome it, or if they had to give up.
  • People who publish information in public bodies to understand what their restrictions are
  • People or organisations with experience in trying to coordinate a single standard or location for public data releases.

Get in touch at research-publicdata@mysociety.org, or drop your views in this survey. 

—

Header image: Photo by Olav Ahrens Røtne on Unsplash

Original source – mySociety

Wednesday 5 October 2022 – 18:00

Better use of data is key to more effective government. Across government, teams are doing fascinating work with data. But those projects don’t get the attention they deserve.

At this month’s event, the 34th in our series, the speakers will be presenting their work in an exciting, quickfire format. Each speaker has eight minutes, followed by eight minutes of questions from the audience.

This month’s speakers are:

  • Dr Mark Thompson, Director at Cabinet Office, Government Business Services on how the organisation is utilising data insights to transform the Civil Service.

  • Catherine Hope, Statistician at the Department for Work and Pensions and Chair of the Presentation Group, Government Statistical Service (GSS), on the GSS’s new dashboards guidance.

  • Paul Maltby, Chief Digital Officer, and Paul Downey, Head of Digital Land, at the Department for Levelling Up, Housing and Communities, on ‘planning.data.gov’ and a digital perspective on planning reform.

  • Aleks Bobrowska, Data Scientist at the Department for Work and Pensions, on getting the right ecosystem in place for embedding analytics in a service design/build context.

The event will be chaired by Gavin Freeguard, Associate at the Institute for Government.

Get involved, using the hashtag #IfGDataBites34

Watch previous Data Bites events

Wednesday 5 October 2022 – 19:20
Start date/time: 
Wednesday, October 5, 2022 – 18:00

Original source – The Institute for Government

On Friday, in an economic environment that has radically transformed since the last forecast from the Office for Budget Responsibility (OBR), the government’s official forecaster, in March, we expect the chancellor Kwasi Kwarteng to confirm historic increases in borrowing and announce permanent tax cuts. We will hear claims about how some of these policies will drive growth, yet they won’t be accompanied by an independent assessment from the OBR, or indeed any forecast at all.  

As we have argued before, this is irresponsible and undermines the credibility of the government’s fiscal and economic policy. The government should be open to public scrutiny, rather than doing everything it can to avoid it.  

A forecast would show the difficult trade-offs that government faces in delivering tax cuts 

The OBR was set up in 2010. According to George Osborne, the Conservative chancellor who established it, the OBR was introduced to “remove [from politicians] the temptation to fiddle the figures”. Before the OBR came along, the Treasury produced its own economic forecasts under supervision of the chancellor. But these were often too optimistic about UK growth and the impact of new policies. The result was lower tax receipts than expected, higher borrowing and, ultimately, damaged fiscal credibility. 

The OBR forecast tells the government whether it is on track to meet its fiscal targets and, if so, how much headroom it has against them (i.e. how much more it can increase spending / reduce taxes and still achieve its targets for borrowing and debt). This information is critical for sound economic and fiscal policy making. And this month, the OBR would likely have found, as discussed in our recent report, that the outlook for the economy and public finances is now markedly different than expected when the last forecast was produced in March. They would likely show that the permanent tax cuts promised by the new administration would lead to the government running a large deficit indefinitely unless it also significantly cuts public spending: the tax cuts certainly won’t pay for themselves.  

Cutting public spending is a legitimate political choice, but would be difficult at a time when many services are facing backlogs, and the new government has not identified any spending cuts it wants to make that would come close to paying for its tax cuts. The message of a forecast would be clear: based on current plans, the government is at risk of damaging the sustainability of its public finances and possibly the credibility of its fiscal policy unless it significantly cuts public spending or increases the tax burden. This message would force the chancellor to say which route he is taking, and defend it. Instead, the chancellor will insist that he can achieve tax cuts, strong public services and fiscal responsibility simultaneously. The OBR’s evidence would likely have delivered an unwelcome message that contradicts the government’s rosy narrative, but without forecasts Kwasi Kwarteng is burying his head in the sand.  

It is important for the government’s credibility that forecasts are published 

A forecast has been produced but not published, and it is the latter that matters for transparency and the government’s credibility. The forecast’s publication provides information to the UK government’s creditors (i.e. financial markets) on the sustainability of public finances, and the OBR has earned respect worldwide as an independent fiscal institution with strong leadership, high quality publications, and a strong track record on reducing bias in forecasts. Preventing it from publishing its analysis sends a clear signal to both the public and financial markets that the government isn’t confident enough in its economic and fiscal policies to subject them to scrutiny. 

At a minimum, the chancellor must affirm his support for the OBR and the objective scrutiny it provides when he gives his statement on Friday, and confirm that they will deliver a full forecast and judgement on the government’s medium-term fiscal position in November, when we expect the chancellor to deliver a ‘full’ budget. In any case, the OBR has a legal obligation to produce two forecasts before April 2023. 

Official assessments of policy impact need to be done outside of HMT 

Prioritising growth is welcome, and the government may also have full confidence that “The Growth Plan” to be announced on Friday will achieve the 2.5% GDP growth target that Kwarteng will set – but this sort of optimistic thinking is what led to Treasury’s biased forecasts and the creation of the OBR to begin with. We don’t yet know what policies will be in this document – but assessment of their impact on growth should be left to those outside of the Treasury. 

Even on the most optimistic assumptions the tax cuts won’t generate enough growth to pay for themselves. The OBR would be likely to point this out – consistent with their earlier estimates of the small impact the initial tax rises announced by Sunak would have on the economy.  

This is not the first time that the OBR has caused ministerial headaches. We previously defended the OBR after briefings from the Treasury about Rishi Sunak’s ‘visceral hatred’ of the institution because it was delivering bad news about the scale of the cost of living crisis to come. As we said then, the OBR is one of the best legacies of the Cameron–Osborne government; the chancellor should pledge to protect it.  

Original source – The Institute for Government

15th September 2022

IfG Senior Fellow Cath Haddon speaks to CNN following the death of Queen Elizabeth II

Source: 
Associated projects: 

Original source – The Institute for Government

The TheyWorkForYou alerts system will send you an email every time your chosen keyword is mentioned in Parliament. A recent survey revealed that this system is being used by a broad range of different organisations and individuals. We’ve been speaking to a few of them to find out more.

First of these is Ben Leapman, Editor of Inside Time, the national newspaper for prisoners and detainees, circulated to all of the UK’s 141 prisons. 

A unique publication

As Ben explains, “Each issue includes news, features, advice, puzzles – and eight pages of readers’ letters, which provide a fascinating insight into what’s on the minds of men and women behind bars. 

“We’re a not-for-profit publication and a wholly-owned subsidiary of the New Bridge Foundation charity, which was founded in 1956 to create links between the offender and the community. We’re funded by advertising revenue. As far as we’re aware, no other country has a national prison newspaper. We’re unique!”

As Editor, Ben commissions articles, decides which stories go on which pages, fact-checks, and plenty more. But he also writes news stories. We were, of course, interested to hear how TheyWorkForYou alerts can help with this.

Parliamentary mentions of prisons

“I use the alerts service to monitor for the keywords “prison” – it’s as simple as that,” says Ben. 

Inside Time logo“Prisons are a crucial public service, but sadly they don’t get as much attention from politicians or voters as schools and hospitals – it’s a case of “out of sight, out of mind”. So the volume of daily mentions is manageable, and I’m able to look at them all.”

These simple alerts have resulted in Inside Time stories such as this one, about an innovative scheme to reduce violence, being trialled at 18 prisons. 

“I don’t think there has been any public announcement or press release about it,” says Ben: “I hadn’t heard of it until I saw the parliamentary question.”

And here’s another recent story, this time prompted by a House of Lords debate in which Lord Farmer, who wrote two Government reports on the importance of family visits to the rehabilitation of prisoners, says that Covid restrictions in prison visits halls are doing harm.

Stories can arise from all types of parliamentary activity: “I’ve found news stories in Commons and Lords debates, Select Committee hearings, written answers to Parliamentary questions in the Commons and Lords, Scottish Parliament proceedings, even the proceedings of Bill committees.”

Communication is key

Finally, we asked Ben what he thinks the impact of such stories is.

“I’m a news journalist – I think it’s always important that people are well-informed. For the general public in a democracy, exposure to news is essential so that people can cast their vote in a well-informed way. 

“In England, prisoners are denied the vote – but there are other ways that reading news can be a direct benefit. Say we report on a new course or initiative that’s happening at a particular prison. If one of our readers reads that story and likes the sound of it, they could apply to transfer to that prison – or they could ask staff why it’s not happening at their prison.

“Prisons are rather secretive places, they’re not great at communication – so it’s often the case that both prisoners and prison staff are unaware of things going on around their prison or in other prisons, both the good and the bad.”

—

Thanks very much to Ben for giving us these insights into how he uses TheyWorkForYou alerts in his work. 

It’s certainly one area that we’d never have imagined before he filled in our survey — but we are very glad to know that our services are helping with the admirable aims of Inside Time.

Original source – mySociety

Just over a week ago, I got a call from a friend at DCMS asking for ideas on how they might help people to find the end of the queue for Her Majesty the Queen’s Lying-in-State. They had an interesting plan to livestream information to YouTube, and wanted to include some kind of live map alongside some dynamic public guidance. But how to get the data back and plot it realtime? Google (because if you’re DCMS, you just talk straight to Google…) didn’t have a ready solution since Google Maps doesn’t really have realtime pin movements.

I thought I’d have a fiddle around in Google Maps’ Static API and see if I could come up with something that might work within their free tier.

It didn’t seem like realtime information was literally needed here – a marshall in the queue would be reporting locations every hour or so maybe, and there’s only so fast a queue will really move. So the challenge was to show the current position of the queue, styled up clearly in a way that would show up in a two-pane livestream, and refresh it whenever a new location was reported.

From proof of concept to launch was about 3 days. The map itself was built as a single script PHP application using a flatfile database to store the lat/lon co-ordinates of the end of the queue, and a KML file of the planned maximum queue path. A simple management app with a big purple button designed to run on a phone would be used by the marshall at the end of the queue to use the HTML geolocation API built into modern browsers to get their position, preview it on a map to check, and then update the map.

Google Maps Static API meant the map itself was pretty simple – literally just a square image – with couple of custom marker pins, and a chunky line drawn to plot the queue, drawing it out following the KML file up to the point closest to the last reported queue location. The map page would refresh every 3 minutes to show the latest queue path and end point.

Queue Tracker livestream

DCMS’ plan was then to stream this map via the open source OBS software, alongside a text slide which they’d keep updated with public information messages. The beauty of their plan was that YouTube became the content delivery network handling the load and reducing a lot of the security risk to the app – and they just needed a single machine in the office broadcasting the map and accompanying text.

Some users understandably questioned why the information was being put out in this relatively data-intense way, but it made a lot of sense: not least because users are so familiar and comfortable with YouTube and media (not to mention GOV.UK) will happily embed YouTube videos when embedding maps or linking to external sites is trickier. Plus, it emerged that watching the livestream of the queue tracker – a bit like the livestream of the lying-in-state itself – had an intrinsically settling, participative effect during a shared period of national mourning.

Lesson 1: Automate whatever you can

The map system automated the process of updating a map, but in the first few hours social media critics started to point out human errors in the text updates being made to the livestreamed data. Behind every minor error is usually a small team doing its best under huge pressure, but in this case we figured we could automate a bit more of the process, using the what3words API (which is free and unlimited for lat/lon -> w3w lookups) to help reduce transcription errors.

A day or so into the livestream, we switched up the two panel system so the little web app was actually driving all the graphics, refreshing the map alongside a panel showing automated what3words location, checking the position of the nearest London landmark to the end of the queue by lat/lon, and introducing a mini content management system to manage text updates within the frame. This meant the system needed less manual intervention from a sleep-deprived team.

Lesson 2: …but incorporate manual overrides

Reporting the end of the queue location from a marshall on the ground worked great in testing… on personal phones with location enabled. When reality bit in the first couple of hours and a marshall tried reporting location from an official device (which had geolocation disabled), things didn’t work as planned. Thankfully I’d incorporated enough manual slack in the little app that someone in the office could override the co-ordinates, or fix the queue end point to a known point on the planned queue path.

Back end of queue tracker

Lesson 3: Think a step ahead

If I’d thought a bit more about what the team might need as the queue predictably hit maximum length, things might have been a bit less of a scramble at times and deploying code changes to production with very light testing might have been less intimidating (deploying code being livestreamed to 12k viewers and the full glare of Twitter and global media is a special feeling of dread!). Essentially, we ended up constructing a mini-CMS on the fly – for instance, bits of data that started as a simple flatfile text database, had to be migrated into JSON when I realised we would need to store settings alongside strings.

Gromit laying track gif

Lesson 4: Keep logs

One good decision I made early on was to log updates to a human-readable log file. That helped us quickly sort out problems with updating locations, but also extract a nice timestamped dataset of how the queue location changed over time, plus an audit trail if needed showing how and when messages were updated. Having that logfile gave me important peace of mind when deploying such a fast-changing app.

queue on south bank, man sleep in camping chair

Photo credit: BBC

In what became a bit of a whirlwind week, it was a privilege to be able to support the creative, ambitious and dedicated team  at DCMS delivering what turned out to be a fast-moving digital service with even bigger global reach than we’d imagined. Huge credit to Andrew Simpson, Stuart Livesey, Joe Folan, Lucy Foster and Andy Dangerfield for their vision and hard work pulling everything together, and navigating hurdles I can only imagine.

DCMS OBS streamling laptop

Photo: Stuart Livesey

I didn’t get to The Queue myself, and as an ex-civil servant still working out what I do as a postbureaucrat, I think on a personal level working on the Queue Tracker has been my contribution to saying thank you and goodbye to the Queen.

In many ways, it was indeed the most bonkersly British bit of internet ever invented.

The post A few lessons learned from tracking The Queue appeared first on Postbureaucrat.

Original source – Helpful Technology