offset \ˈȯf-ˌset\ noun

a force or influence that makes an opposing force ineffective or less effective

The Great Barrier Reef

The bleaching continues. Coupled with the prospect of the extinction of the half of the species this century, the future is bleak at best.

Marine biologists confirm that the bleaching can be seen off the coast of Cairns and just looking at the images of the bleaching happening was not enough for me. I had to see it for myself.

I was on a trip from Ireland to Cairns, Australia. Because most of my attention was turned to the voyage and preparations for it, I was having difficulties focusing on writing. Hence this article comes now.

What little I could see in the beginning of March this year unfortunately proved to be in accordance with the articles I'm referencing. The bleaching effect by my personal estimate is somewhat around 65% at best where we were (Hastings Reef: -16.5163312; 145.9873392). The reef is a spectacular sight to see, but a sad one, considering the situation.


Vesna and I were snorkeling and scuba diving and took a semi-submersible with the tour's marine biologist. They confirmed that the situation was "very bad". Nobody bothered to ask about the bleaching except me, which was disappointing. Seems like people don't understand the gravity of the situation.


The normal color of the coral should veer to brown, because of the zooxanthellae, but they get expelled by the coral when it's stressed.


If the situation continues, we will destroy a system that has been here even before humans started using the letters. It just shows the effect we have had on the environment in such a short time we've been here.

Vantage point

The resource overshoot. We are familiar with these words. We use them to define a point in a year when we consume more than the environment regenerates.

The Earth had its overshoot moment a couple of months ago. August the 8th was this year's Earth overshoot day. We are not very good as a species. We have an Earth hour to raise the awareness of the problems we're facing as a civilization, but this remains a superficial action if noting is learnt from it. Furthermore, it can raise the problem on a different front. For example, some people will light candles instead and contribute to the carbon footprint they leave and the sole action of turning the lights off has no goal of lowering the energy demand.

The biocapacity of the planet is, however, finite. We are bound by the laws of physics and the resources aren't regenerated indefinitely. Most of them have a peak we can reach easily.

The peak term comes from the Hubbert peak theory. In 1956, M. King Hubbert figured out that the oil extraction in the US follows a bell shaped curve. The extraction of oil gradually starts increasing and peaks at a certain point in time. After the peak, the extraction gradually declines until the pumps exhaust the well and the production stops. As one pump follows this curve, so does the entire oil field, as well as the whole country, meaning that the economy of the whole nation reflects it.

Extensive coal mining, which preceded the oil, also followed the same process, but the oil is easier to extract, store and use.

The prediction Hubbert had was that the US would reach peak oil some time between the 1966 and the 1971. The theory held and the peak happened; although, the downward slope was mitigated by other things.

Following the ephemeralization process, the technology improved and the oil was supposed to be replaced by the nuclear energy, but seeing the WMDs that the humanity created back in WW2, in 1945, the people protested against it and the exploitation continued. To further this, the accidents of the plants like the one in Chernobyl, in 1986, didn't help.

The US had to expand its oil dependency by importing it from different places in the world, finding new wells, using methods like hydraulic fracturing, but the exhaustion is bound to eventually happen. From a single pump to a field to a country, the theory would encompass the whole world, where all the oil would be extracted and in the end spent. This would lead to an energy crisis, and, not to mention, the environmental disaster since the carbon trapped inside the earth would be released by the combustion of the fossil fuel.

We live in the oil age. Considering the commodity and accessibility of oil, the alternatives that were supposed to come after it, were, unfortunately, not invested in, not to say that the current system is in the way, pushing the economy to keep the existing oil lobby and vice-versa. R. Buckminster Fuller once said:

You never change things by fighting the existing reality. To change something, build a new model that makes the existing model obsolete.

Also consider what David Goodstein, a physics professor from Caltech said:

... you would have to build 10,000 of the largest power plants that are feasible by engineering standards in order to replace the 10 terawatts of fossil fuel we're burning today ... that's a staggering amount and if you did that, the known reserves of uranium would last for 10 to 20 years at that burn rate. So, it's at best a bridging technology ... You can use the rest of the uranium to breed plutonium 239 then we'd have at least 100 times as much fuel to use. But that means you're making plutonium, which is an extremely dangerous thing to do in the dangerous world that we live in.

The environmental cost of extracting and using the oil is too great for the human species. The alternative must be the renewables since they are able to power the planet without the danger of becoming exhausted for the foreseeable time. Wind, solar, hydro and geothermal energy come naturally to mind. Of course, we'd have to consider how and where we gain the energy.

A resource like oil is not that problematic since it's not essential for the survival of the species, but when we talk about things like water, we're moving into the domain of fear.

What I want to say is that the peak is not exclusive to oil. It is inherently connected to any kind of finite resource on this planet and can eventually lead to a catastrophe. Furthermore, the problems I'm mentioning here are current, not distant, and we're not doing much to prevent them. If the planet, the civilization, cannot cope with the stressors like an energy crisis, famine, water scarcity, health related problems, poverty, overpopulation, biodiversity loss, climate change, pollution, unemployment, debt, those things will inevitably lead to its downfall.

The environmental disaster is already underway with the great Holocene extinction. We are losing two thirds of the biodiversity as I type this. If the civilization as we know it doesn't end in a war, we might very well be facing a disaster on other fronts. Time for talking is apparently done. The time for action is now.

GIMP and Leaflet

I needed to run the Leaflet library in JavaScript using a custom tileset for a small video game Vesna and I are working on. Leaflet's usage is pretty straightforward and the details on using it can be seen in the official documentation. The bare minimum is just to create a new map, assign it some custom tiles and point it to an element in the webpage (a div with an id "map"), for example like this:

var map ='map').setView([0.0, -0.0], 4);
L.tileLayer('./{z}/{x}/{y}.jpeg', {
    maxZoom: 4

You need to have a custom tileset in the proper location for this to work and the tileset needs to be created from an image. Every tile is placed in specific x and y coordinates on the 2d plane and the zoom level it is in. Preparing an image for this to work requires slicing it and copying the tiles to their respective locations. I decided to automate the process.

Considering I dabble with various 2D imaging applications and program in Python, GIMP seemed like the perfect choice here since it has a mechanism for creating plug-ins with Python. Some people will create the image in GIMP itself and just run the plug-in.

To start off, you want to have the biggest resolution of the initial image. Mine is a square image 4096 pixels in width and height. Using tiles of 256 pixels width and height it can achieve 4 zoom levels. When you go down, 3 is 2048, 2 is 1024, 1 is 512 and zoom level 0 is 256, just like the original tile size. Because it's exponential, it quickly drains the resources so you might want to go small.

The algorithm for this prepares the image for usage in the resolution required for the chosen zoom level just in case. The output is a JPEG quality image of 90%. After that, it goes from the set zoom level, makes the tiles for it in the specified x and y coordinates using loops, scales the original image down and loops again until it reaches zoom level 0.

This algorithm runs on my system for quite some time if the zoom level is big. I tried to parallelize it, but I had problems:

  1. You cannot pickle the image in GIMP and pass it to another process. It ends up being of "None" type and you cannot pass a reference to the worker with GIMP.
  2. If you skip GIMP altogether and use PIL or Pillow, you can parallelize it on multiple cores, but heavy disk I/O just kills it as far as I can see. Accessing an image from a temporary folder is slower in this case so I tried the third option.
  3. Pickling with PIL or Pillow works. However, pickling an object of 16384x16384 pixels and distributing it to workers brings my system to a crawl. It just exhausts the RAM completely, starts consuming the swap and exhausts it as well.

In the end, I just gave up and decided that half an hour (or less, if the image is not that big) is not so bad. I committed the resulting GIMP plug-in for exporting the Leaflet tiles in the repository on Bitbucket. You can contribute, if you'd like, but if not, installing it is not a problem. I tested it on Ubuntu, GIMP versions 2.8 and 2.9 for now. You need to put the .py file in your plug-ins directory, which is usually in your home folder, under .config/GIMP/2.9/plug-ins (if you're on 2.9 version). After copying the file, make sure it's executable and run GIMP. It will show in the filters section, under Leaflet submenu. Open an image first and activate the plug-in. Using it is a pretty straightforward process.


As you are already aware, I started the "a-sketch-a-day" 365 challenge on the 7th of September last year. I can now say that the challenge is completed and I didn't miss a day no matter how difficult it was sometimes. I can recall drawing at 4 AM because for one reason or another I happened to be awake still and there was that one more thing to do that day. There were good and bad moments and you can see the progress on my DeviantArt scraps page.

Here is one of the more representative works I did:


Considering I have to balance the everyday life commitments and the mandatory day job, I realize that it has to be enough. I cannot say that I've become proficient, but there's an improvement. After the challenge I can finally engage in creating some different artworks. I plan to continue more or less the same habit, but instead of a sketch per day, I'd try doing artwork that takes several days to complete. Proper lines and colors and all.

I am currently enrolled in the Painter club by Karen Bonaker and I follow the lessons almost immediately after they're posted but I still haven't put anything up for critique. I don't feel ready. Mostly because I don't experiment enough. My art priorities are not perfectly aligned with the course, but I still enjoy it.

People say that it takes about three weeks of doing something non-stop to make a habit of it. I think it's three weeks before you stop whining and obsessing over what you're doing. You just do it and don't stop. Even though I'm not as strict with myself anymore, like I was during the challenge, I retained the need, so to speak, to do something every day.

I made a list of things to work on after the challenge. Some of it is art, some of it is programming. I felt the need to have a structured approach to things. I will probably detail some of the things I've learned from the challenge, art-wise, in the future. For now, I'm focused on one GIMP plug-in I'm working on, but more about that in the next post.

No subject

I was thinking what to write about but lately I'm out of ideas. That's why this post comes now and it's basically a continuation of Rest (not REST). I'd rather not write about politics even though there's been a lot going on: the UBI referendum in Switzerland, Brexit and the EU, upcoming elections in the US, TTIP and TPP, coup in Brazil, ongoing situation in Syria, Russia and NATO, troubles in Europe, coup attempt in Turkey... So yes, I'm in the loop as much as I can be, just steering clear of becoming too engaged in all the discussions.

Programming: Not much has been happening on this front. Vesna is still working on her portfolio. We finished a game development course on Udemy using Unity, but still haven't really plunged into it in practice. Other priorities have come up, but once we settle them we'll have free hands to do something about it. I keep my fingers crossed for this year. I'm really interested in 2d game development. Hopefully becoming proficient in digital art will yield interesting results in this department as well.

Art: Speaking of art, I've been doing things digitally for a month or two. Most of the work has been concentrated on getting familiar with Painter application, but I plan on using Krita alongside it. It's still one sketch per day and focused mostly on simple tools like pencils and pens. However, I enrolled a course on digital watercolor. So far it seems like it's pushing me in the right direction. I'm less afraid of tackling it which is good. The transition from drawing to painting is proving to be a difficult one. All my work comes down to a single sketchy painting a day.

Social concerns: Still the same old here. Aside from the Great Barrier Reef and biodiversity loss, air pollution in big cities has become a growing problem. In Croatia, Plomin C power plant faced public backlash in form of a petition that stopped the project from going further. The country wanted to build a coal power plant without any regards to the carbon footprint. One of the interesting things I've stumbled upon is the Scubo water drone. Seems like I'll have to brush up on my Arduino skills as well. Also, two new things came up as an interesting read. One is a scientific article about how a vegan diet can reduce the global mortality by 6-10% alongside reducing the greenhouse gas emissions by 29-70% by 2050. The other is a piece about how we must change our economic system because switching to clean energy is not enough. There is a number of other factors that influence the climate change that we must address.

Everything else: I've read The Spirit Level. It's shows how inequality correlates with social and health problems in a society. I.e. for "physical health, mental health, drug abuse, education, imprisonment, obesity, social mobility, trust and community life, violence, teenage pregnancies, and child well-being, outcomes are significantly worse in more unequal rich countries". Right now I'm back to fiction again. We were in Croatia briefly and I had to go back to traditional drawing during that period, which is my comfort zone. But I often get impatient so I'm just scribbling instead of thinking. This is a problem more often than not. Drawing/painting is like an exercise in patience. Also, my phone decided to finally die after a few attempts at fixing it. I ordered Fairphone2. It arrived today.