Messing around with DWeb

You may have heard something about NFTs recently. They are the technology concept that underpins the ability to sell an authoritative version of digital art, sometimes for millions of dollars. It is a bit like selling a signed print for more than the unsigned print sells for, but the unsigned print is free while the signed print is worth $69M. But that’s not really want I wanted to talk about.

If you are the sort of person who pays that much for a bunch of electrons somewhere, you don’t want to wake up tomorrow to find them gone. Many well-known websites have, at various times, been brought down by DDoS attacks or merely defacement attacks, and content has gone missing. A website is a surprisingly brittle thing, and relies on domain name registrars, nameservers, web hosts, ISPs and other parties to all come together to deliver the content that you’re expecting. Since a buyer may expect their newly acquired, expensive digital artwork to be as long-lasting as a statue or painting, traditional web infrastructure is not really the solution.

So, NFTs are now making use of decentralised Web or DWeb technology, where the content delivery has no single points of failure. A lot of the thinking behind this is motivated by free speech ideals and resisting government control, but it can just as easily be put to the service of capitalist art speculators. Or, in my case, blog authors.

I was curious to explore what was involved in putting my humble WordPress blog onto the DWeb, or as it is sometimes called, Web 3.0. It wasn’t too hard, but the material I found explaining it was a little esoteric. Follow along if you would like to do this too!

There are basically two things that I needed to do: host the content somewhere (equivalent to using a web host, or perhaps a CDN) and register a name that could point to that content (equivalent to registering and hosting a domain name). In theory, you don’t need the name, but the address for the content then will not be human-readable or memorable.

IPFS (or InterPlanetary File System) is a technology for hosting content in a decentralised fashion, a bit like peer-to-peer file sharing. The main catch is that the files are all static, which means that they can’t run a platform like WordPress. I had to begin by creating a static mirror of my website as plain HTML, CSS, JavaScript and images, without any dynamic content. If I wanted to do it properly, I’d also have replaced the backend system that allows people to leave comments, but instead that feature will simply be disabled.

At the Terminal prompt of my Mac (which suffices for a Unix shell), I used these commands in an empty directory:

% wget -k -r -p -N -E -w 0.5 -nH -e robots=off -R "*\?feed=*" -R "*\?rest_route=*" -R "*&*" https://www.aes.id.au
% git init
% git add *
% git commit -m "Initial commit"
% git remote add origin https://github.com/aesidau/www.git
% git push -u origin master

and within a couple of hours, I had a static copy of my website stored in GitHub. This is a necessary first step to make use of Fleek, which handily takes a GitHub repo and deploys it to the IPFS. It is also free to use for personal purposes if you use less than 3GB of storage!

At this stage, my blog was now available at https://ipfs.fleek.co/ipfs/Qmahm66pomdqppz71abMixDnHWr9b1HmqXhv1iTGrEWjb2/ which is a bit of a mouthful. That last part is the IPFS Hash that is used to uniquely refer to my blog content. Ideally, I could share something short like https://aes.id.au so the next step was registering a suitable name.

There are a few contenders for the name service of the DWeb, including Handshake and NameCoin, but currently the most popular one seems to be ENS which uses the Ethereum blockchain. To buy a name via ENS, you’ll need some Ether currency and a supported wallet to store it in – MetaMask, Portis, Authereum, Torus, WalletConnect and MEW are the various options at the moment. I chose the option of using the Chrome browser together with the MetaMask extension. The amount of Ether you need to buy will fluctuate based on the price of Ether and exchange rates, but it will probably be in the tens of dollars. Also, if you want to buy a name that is 3 or 4 characters long, it will be a lot more expensive. Additionally, every time there is any update to the ENS name record, it will cost some Ether.

After I’d installed MetaMask, set up a wallet with it, and put in some Ether, I needed to go to the ENS App site and click on “Connect”. Then it’s just a matter of following the instructions to register a name. Once the name is registered, click on the option to manage the name, and click on the option to edit the record. I also updated the entries for ETH and BCN addresses, since the changes will all be covered by the same fee, but the main one to edit is “Content”. I put “ipfs://Qmahm…” here with the full IPFS hash, and saved the record.

That’s it. So, now I can refer to that static mirror of my blog by ipns://aesid.eth (in the Brave browser) or aesid.eth/ (in the Chrome browser with MetaMask installed) or https://aesid.eth.link (which uses an IPFS gateway and should work in every browser). Unfortunately, while it is now protected against my WordPress blog disappearing, it is already out-of-date, as this blog post isn’t there!

Working without the commute

This post originally appeared over on Medium.com

The regular way of (white-collar / office) working in the coming years will be quite different to that of the last decade, but also quite different to how most people are predicting.

This is going to be one of those articles where the author talks about what may happen in the future, after some of the Covid-19-related restrictions ease. Why add to the steaming pile? In my case, I want to put forward a view that is different from most of what I am seeing, and also because it is good to have documentation of a prediction so that it can be tested in the future for how well it tracked to reality.

The majority of articles I’ve read about future ways of working seem to predict that the future will be like the present. Principally, that we are currently working from home and that this will continue. Bloomberg reports that Google has seen the equivalent of $1b a year in savings from not having people working and travelling between offices. Additionally, around two thirds of employees in US companies would rather work from home than get a $30,000 raise. So, it seems there are benefits to both employers and employees in letting the current situation continue.

I’ve noticed that in my own experience, there has been a significant productivity improvement in working remotely. Firstly, I work longer, as some of the time I would have spent commuting is spent working instead. Secondly, unproductive time at work spent in travelling between meeting rooms, and waiting for meeting rooms to be vacated, has been eliminated when using online meetings. Lastly, I am able to multi-task more effectively during remote meetings, as I can triage and process emails in a way that would have been more difficult to do in person. So, even putting costs like property rental, cleaning and energy for lighting/heating/cooling aside, I expect many employers will experience a productivity hit if all their workers return to the office full-time.

However, these benefits to employers exist regardless of where the remote employee is working from. Significantly, many employees do not have ideal conditions at their homes to work remotely. For example, if there are multiple people trying to work remotely from the one dwelling and there aren’t enough working spaces to share. Or if the dwelling is too small to have a working space that is ergonomically set up for healthy long-term working — I have seen some people working from small bedrooms. However, the reason such people are still working from home is largely due to restrictions relating to Covid-19, and as these restrictions ease, it’s fair to ask, where would they prefer to work?

The answer seems to be that they’d prefer to work somewhere without a commute. Even before Covid-19, research showed that people hate commuting. One study referenced by Forbes back in 2016 equated removal of a commute with a $40,000 raise, which is an interesting correlation with the work-from-home survey result above.

Additionally, people do value and benefit from the social interaction that they receive in a workspace. This is often at odds with remote working, where online social interaction may need to be a scheduled activity rather than happening informally as part of bumping into people in corridors or kitchens. Meals are a traditional social occasion, but food and drink can’t be readily shared over a video call.

If you put together the value of remote working, the desire for a minimal commute, and the social benefits from working alongside other people, the natural conclusion is that we will see a surge in interest in co-working spaces near people’s homes, once Covid-19 backs off. In Australia at least, many of the co-working spaces have been in the same geographical areas that major corporate offices have been, as the proposition has been in providing flexible offices near to corporates. However, we can expect the proposition to shift to providing flexible offices near to employees.

While co-working businesses have taken a big hit during the Covid-19 lockdowns, up until 2020 there had been a strong trend of growth in adoption of co-working spaces. A March 2020 study by Coworking Resources showed 17% growth in number of users and number of spaces over the previous two years.

Additionally, there are spaces that are similar to co-working spaces that will likely support this demand. Many local libraries supply internet connectivity and bookable desks. Similarly, some cafes are also happy for locals to work from their premises and use their Wi-Fi if they are buying food and drink. In a world where remote working is normalised, arrangements like these might be made more official.

Of course, such spaces do not offer a free alternative to employers providing offices. The costs will need to be borne by someone. Perhaps reduced commuting costs (vehicles, fuel, parking, tickets, etc.) and home costs (energy, internet, etc.) could offer some compensation to employees. Perhaps employers will see the cost savings and productivity gain compared to offices and also provide financial support, or even get into the co-working space business themselves.

There are also questions about how to maintain business confidentiality in a space where there may be employees from competing organisations also working there. Co-working space designs can help mitigate this, as well as suitable IT solutions, but it will remain a risk to be managed. It is not dissimilar to working from an airport lounge or having work discussions in a taxi or cafe, so shouldn’t be considered a new risk.

I hope that we will see more forecasts about the future ways of working that go beyond working from home or even hybrid working. While many people and businesses want to retain the benefits of remote working, working from home is not going to be the only solution. Shared working spaces, close to people’s homes, will almost certainly be part of it.