liversage
|
4 years ago
|
on: Storing UTC is not a silver bullet (2019)
You have a timestamp in the future for example the time when a session at a conference starts. If to want to store this as UTC you will have to convert it from the local timezone of the conference location. You can always go back from the UTC timestamp to the local timestamp by performing the reverse conversion EXCEPT if the conversion involves daylight savings and the rule changes between now and the event in the future. While rare, daylight savings rules sometimes do change. I guess even local timezone offsets might change once in a while. When this happens the conversion back from UTC to the local time will be wrong unless you keep track of more than the UTC timestamp.
liversage
|
4 years ago
|
on: Goldilocks Zone Finder – Find your ideal climate
Medellín in Colombia sometimes described as the city of eternal spring is known for its perfect climate. In addition it's a very vibrant city.
liversage
|
4 years ago
|
on: Ask HN: Software you hate but can't replace?
Thanks for this tip. I usually resolve this by opening Teams in the browser and find the image I need to see. It's very disruptive that an important UI feature randomly (or perhaps reliably) fails.
liversage
|
4 years ago
|
on: Letter from Union Pacific to LA District Attorney re: train thefts, safety [pdf]
Denmark recently killed four suspected pirates in Bay of Guinea (actually five as it was later discovered). The Danish forces were fired at while trying to apprehend the suspected pirates so you can argue it was self defense and the intent was not to kill.
https://www.reuters.com/world/danish-frigate-kills-four-susp...
liversage
|
4 years ago
|
on: Some sanity for C and C++ development on Windows
I agree that downloading symbols can be oddly slow but you can just turn it off, or only turn it on for specific modules. It can be helpful to have symbols for library code to troubleshoot bugs but typically you only need your own symbols and they are already on your computer with your binaries.
liversage
|
4 years ago
|
on: iPhone camera app replaces person’s head with a leaf in photo
I don't have an iPhone but I've always been shooting RAW on my phones and then processed the photos in LightRoom. As soon as I use one of the "lenses" on my phone (like "night shot" or "panorama" or even "wide angle"/"tele") I only get a JPG. The RAW file is only created when I shoot using the basic camera. This is the case for my current OnePlus but also previous phones (Google, Nokia).
liversage
|
4 years ago
|
on: Implementing Marching Squares
Cases 5 and 10 in the article are actually ambiguous. In each case there are two ways to draw lines to separate the high and low points and a naïve algorithm will just hardcode one of each like it's done in the article. This isn't a serious problem in the two dimensional marching squares algorithm but the same problem can lead to holes in the surface generated by the three dimensional marching cubes algorithm.
During a visit to Washington University I had the opportunity to work with this flaw in the algorithm and I ended up publishing a scientific paper about the subject. I then went on to write my thesis (in Danish) where I worked more rigorously on how to deal with this. It's so long ago that I almost forgot so reading about marching squares again was a nice trip down memory lane.
https://martinliversage.blob.core.windows.net/publications/1...
https://martinliversage.blob.core.windows.net/publications/1...
liversage
|
4 years ago
|
on: Ikea Vindriktning Air Quality Sensor Review and Accuracy
Some trivia: ‘Vindriktning‘ is ‘wind direction' in Swedish.
liversage
|
4 years ago
|
on: Lego has designed a set that can't be taken apart
In Denmark there's Galleri Lego (an art gallery) named after the owner Louise Lego. LEGO sued her but the lawsuit went all the way to high court where she won the right to use the name. Presumably people don't easily confuse art with toys.
http://www.louiselego.dk/
liversage
|
4 years ago
|
on: Germany locks down unvaccinated people, as leaders plan to make shots compulsory
liversage
|
4 years ago
|
on: Germany locks down unvaccinated people, as leaders plan to make shots compulsory
The 90% figure has sometimes been quoted in Denmark but it doesn't include people not eligible for vaccination. Now that smaller kids are offered the vaccine this ratio has decreased and really shouldn't be used at all. The percentage of people in Denmark that have started vaccinations of the total population is 78% with 76% having completed their vaccinations.
liversage
|
4 years ago
|
on: .NET Hot Reload Support via CLI
Perhaps that's one of the reasons they have didn't switch to 64 bits earlier? If the IDE is a 64 bit process it can only render external components at design time if they are 64 bits. To be able to render 32 bit components at design time they would need to be hosted in another 32 bit process. I can see how that feature would be complicated and expensive to develop.
liversage
|
4 years ago
|
on: Is this the simplest (and most surprising) sorting algorithm?
The original question contained a sizeable chunk of what looks like C#. It was then edited and made much clearer perhaps in a response to the comment.
liversage
|
4 years ago
|
on: When McDonalds Came to Denmark
Health care is free in Denmark. You don't need insurance. If you really want to you can buy insurance to lower the cost of some treatments that are not covered like physiotherapy, dentistry etc.
liversage
|
4 years ago
|
on: When McDonalds Came to Denmark
The Danish nurses' strike was not illegal. The Danish labor market is governed by special rules. On one side you have the workers organized in unions. On the other side the employers that are also organized. They negotiate the work conditions typically every year.
In this case it was the nurses' union vs. the public healthcare system. The nurses voted no to the proposed agreement and eventually went on strike. Because nurses are critical to healthcare it was very controlled which nurses were included in the strike.
The negotiations continued but it was impossible to reach an agreement and the number of nurses on strike increased over time.
Eventually the government decided to intervene and made the initial proposed agreement into law. This is part of the organization of the Danish labor market that if a conflict continues for too long there can be an intervention from the government.
Some nurses being angry about the outcome continued smaller strikes. These strikes are illegal within the framework of the labor laws. There's a special court ("Arbejdsretten" or "The labor court") that can decide that both the nurses as well as their union have to pay fines for illegal strikes. This is not a criminal court.
The main reason that the nurses went on strike is because they want greater pay. Historically nurses and many other public jobs were governed by special rules where they were not allowed to strike but could also not easily be fired ("tjenestemand"). This system was inflexible and was modernized in 1969. The nurses ended up with lower pay compared to similar jobs in terms of education (schoolteacher, policeman) most likely because being a nurse is typically a woman's job. This pay gap still exists today where the nurses now are allowed to strike within the framework of the labor laws in an attempt to increase their pay.
liversage
|
4 years ago
|
on: Why does no one ever talk about Sweden anymore?
As mentioned in the article Sweden is part of EUROMOMO that tracks excess mortality which doesn't measure if someone died from covid or from negative effects of a lockdown but simply that they died.
Even though it's downplayed in the article Sweden had significant excess mortality in the spring of 2020 and at the turn of 2020-2021 compared to other countries like Norway and Finland that are used as benchmarks in the article.
https://www.euromomo.eu/graphs-and-maps/
liversage
|
4 years ago
|
on: Problems with Oracle SQL
It's weird to read all the complaints about how bad
https://msdn.microsoft.com/ is. For quite some time all the documentation including what was known as MSDN is now on
https://docs.microsoft.com/.
While I'm sure the complaints are valid (or was in the MSDN days) I believe Microsoft is putting a lot of effort behind these pages. You can provide feedback on pages that will result in a GitHub issue being created. You can even make pull requests.
While it's possible to provide feedback not all areas seem to process this feedback in a timely manner which of course is frustrating. However, the good parts (like .NET) are very good.
liversage
|
4 years ago
|
on: New math book rescues landmark topology proof
It's amazing how math can require so much work for what appears to be a single result, but I spend an entire semester proving a single mathematical theorem and to do that I had to work through an entire textbook, so I don't think it's that unusual.
liversage
|
4 years ago
|
on: Haiti’s President Is Assassinated
Or the opposite. The German prime minister is Angela Merkel while the president is Frank-Walter Steinmeister. I had to look the second up because I didn't know who it was but I know that he doesn't have political power like Merkel.
liversage
|
4 years ago
|
on: New network of European sleeper trains planned
I live in Copenhagen. Nowadays we have bridges or tunnels everywhere except when traveling to Germany. However, when I was younger ALL train travel outside Zealand (with Lolland and Falster) would involve going on a ferry. The carriages were on the lower deck sometimes mixed with cars and sometimes with cars on a separate deck. After departure you could leave the train for a nice break. It wasn't particularly fast but very relaxing. Surprisingly, I also remember that I sometimes would meet old friends while strolling on the deck. These ferries were bottlenecks and would put a lot of people in the same place at the same time.