Settling on Vscode for Go
Soon after I reviewed GoLand, I discovered VS Code - a general purpose editor with superlative support for Go. And I have been impressed enough to stay.

Soon after I reviewed GoLand, I discovered VS Code - a general purpose editor with superlative support for Go. And I have been impressed enough to stay.
As I understand Go more, some of the concepts tend to make my head hurt. Sometimes, innocent examples in various tutorials hide such deep concepts, that it takes a while for me to decode it all.
Here is an example. In various tutorials, pauses are made using time.Sleep().
The first time I saw an example like the following, it made me stop in my tracks.
package main
import (
"time"
)
func main() {
time.Sleep(100 * time.Millisecond)
}
Seems like Jetbrains has finally ditched that weird name for their Go IDE and changed it to a more palatable, but not really very inventive version (come on, I think PyCharm is a pretty nice name for a Python editor). Gogland is now GoLand!
I have been using Hugo as a static website generator for a while. I love the speed, coming from its Go origins. I love a static website generator for the peace-of-mind it gives me (No did I forget to update my XXX blog software after that bug came out? ).
But of course, it is not all peachy.
When the sun is directly overhead in Hawaii, it looks like a bad video game render
The sun is exactly overhead twice a year in Lahaina, Hawaii, once in May and once in July. Poles don’t cast shadows, giving the urban landscape an eerie appearance. Hawaii is the only state in the US where the sun’s rays are perpendicular to the surface of Earth. It’s called a subsolar point.
Via Boingboing
How to have shared state between different instance of a class without a singleton pattern.
The ‘Singleton’ DP is all about ensuring that just one instance of a certain class is ever created. It has a catchy name and is thus enormously popular, but it’s NOT a good idea – it displays different sorts of problems in different object-models. What we should really WANT, typically, is to let as many instances be created as necessary, BUT all with shared state. Who cares about identity – it’s state (and behavior) we care about!
By Alex Martelli at Singleton? We Don’t Need No Stinkin’ Singleton: The Borg Design Pattern.
I lost an hour of my life today trying to figure out why Sphinx would not document a class inside a module specified by :automodule:.
I learnt two things today.
This might be a very esoteric topic for most people, but since I could not find information about this anywhere, I decided to document this in a post.
Here is the problem. I use Jira at work, and today, I needed to close a bunch of tickets based on a search result. Now, searching or doing batch operations is simple enough from the browser, but a small detail made the exercise impossible via the web UI.
It seems every generation has its own bouquet of diets that people swear by.
In the early 80s, diet guru Nathan Pritikin believed that we should shun all fats and food containing cholesterol. He died of leukemia in ’85, but apparently his autopsy revealed that he had “arteries like those of a child and a heart like that of a young man”.
His arch rival in the time, Robert Atkins, of the Atkin’s Diet fame, espoused just the opposite - low-carb, high fat diets. His controversial death threw up allegations of a life long history of cardiac issues and obesity. But still there are people around who swear about it.
Loads of new diets have sprung up in recent years, with a loud number of them blaming carbs, sugar, starches and other GI (glycaemic index) manipulating food groups to be the cause of diet issues in the population.
Now a new article goes a bit deeper. It follows the published “study from an Israeli team led by Eran Segal”, to suggest that looking at all carbs the same way and avoiding them is too simplistic an approach. Human body is too complex and different sources of carbs affect different people in different ways. One of the major reason that they pointed out was the difference in the profile of the microbes in our digestive system!