HNHacker News
TopNewBestAskShowJobs

nelgaard

179 karma · joined January 25, 2019

submissionscomments
nelgaard··on Signal for Help
yes it is the fastest way to do it. And it cuts out the middlemen.
nelgaard··on EU court rules no EULA can forbid decompilation, if you want to fix a bug
One of the first times I did it, was 15-20 years ago. I had a digital camera, a Canon IXUS S110, and wanted to have some pictures printed. There were some sites where you could upload pictures, but they all used som proprietary Windows program, and I had Linux. Except the supermarket chain Føtex which had a website with a Java applet. But it failed when I tried to use it throwing an exception about a missing directory.

So I downloaded the JAR file, decompiled it with the JAD decompiler and found that they had hardcoded the file separator as backslash. So that was easy to fix. I compiled it, ran the JAR file and uploaded my pictures and picked up the prints a few days later.

nelgaard··on Germany wants smartphone makers to offer 7 years of software updates
I would prefer if instead smartphone makers were at least forced to add a tool so users could wipe the memory and install a free bootloader.

And would be great if they had to also provide a free OS, like postmarketos, lineage, Debian or something like that. It could be very rudimentary without a GUI, just drivers for GPS and Wifi. And they would not have to provide even security updates for that. So I would think that many companies would also prefer that.

nelgaard··on In Praise of PostgreSQL
They are both very impressive systems. I have done many projects in both PostgreSQL and MariaDB/MySQL

I do tend to get attached to the DB of my last project because I discover new cool things. And there are some differences.

But I cannot think of a PostgreSQL project that would not also have worked great in MySQL or a MySQL project that could not have been done with PostgreSQL.

I have re-implemented systems that used non open-opensource DBMS's on Windows and the convenience and performance (on the same hardware) were just amazing when using PostgreSQL or MariaDB.

nelgaard··on Don’t Wanna Pay Ransom Gangs? Test Your Backups
I also find it hard to believe that a ransomware gang could encrypt 50 Petabytes without anyone noticing it. It would also take some time to decrypt 50 petabytes if you paid the criminals and got the key.

And would you trust you data after criminals had access to it?

nelgaard··on The Perils of M1 Ownership
I have never bought a new laptop (desktops are another thing) for more than 30 years now. I just get old ones. Usually from clients or friends at bigger companies, that are replacing them at a Windows upgrade. Then I wipe the disks (even if I would hope they are already wiped) and install Linux. Works for me. And I have lost a few to theft, heavy rain, drops, bumpy bus rides, wine spilling, etc. So I was happy it was not new macbooks.

But I doubt that I could have gotten a firmware password for most of them. They would just have been thrown in the garbage.

I also got a couple of phones that could be used for testing web-apps. The last one was locked, and it would be pointless to try to get it unlocked.

Maybe the BIOS should give you full ownership if it can check that the device is not reported missing after one week. But I guess that would give robbers a motive to kill the owners.

Maybe devices should just unlock when they 5 years old.

nelgaard··on “username or password incorrect” is bullshit
I agree. I must have wasted weeks of my life trying to get access to systems that just would not tell me what went wrong. Often just returning a 400 error code. Or given the "username or password incorrect" message even it not true.

It is even worse when you are developing the client or trying to access a new server.

It could be a wrong user name. Or I should have used my email instead of the user name or the other way around. or the password or it could be that the account is expired or an expired certificate or maybe some negotiation of encryption codecs failed or an URL is wrong. or maybe the server-side DB was down. once it turned out to be a REST API that stopped accepting single-quoted strings generated by a client.

Then you click the "I forgot my password button" and nothing happens. You do not know if an email was sent. Or if an email was sent, to which email address is was sent. Or if it was stopped by a spam filter.

nelgaard··on Avoid Consumer Routers
Just uninstall the openWrt web UI then.

or configure uhttpd to only listen on localhost and use a ssh proxy tunnel to access the web interface. It saves you from the hassle of self signed certs too.l

nelgaard··on Ask HN: Do you think Agile/Scrum is beneficial for software delivery?
Yes, exactly. The Mythical Man Month was written 45 years ago. And since then we have gone from bad to worse.

Story points are even worse than man-months at measuring work.

Because in scrum not only is the assumption that the estimate for a task holds not matter who and how many works on it, but dependencies are also not handled well for either tasks or backlog items. To some extent a team can try to handle it in a sprint, but it is not part of the estimation.

For example it can be a lot faster if the same developers can work on corresponding frontend and backend jobs. If they are split in different sprints or if the developers also have to work on other tasks, it could take a lot longer.

And the whole story points, fibonacci, etc is just nonsense. If an experienced developer estimates that a given job would take somewhere between 10 days and two months, depending if they can reuse X and the Y algorithms performs if he and developer Z works on it, then that is the best estimate you will get.

The only thing that makes scrum estimates more precise, is that once you have broken everything into 100 tiny tasks, you have added about 20 hours of writing commit messages, updating JIRA, and preparing for the next task.

nelgaard··on How do I safely store my files?
My albums have survived disk crashes.

I try to keep it very simple. I use cron to rsync --backup to another computer and a NAS.

I do not use Raid. I want to be able to take any disk and mount it on any computer, possible using a USB adaptor.

There is no need for instant synchronization. When I upload pictures to the photo album, I wait a couple of days before deleting them from the camera.

I set up a screensaver on a desktop to display random pictures from the NAS backup. We like to see the pictures that way but it also have the advantage that we notice when the NAS is not working and I do check that I see a recent picture once in a while.

I now make certain that I use photo album software that organize pictures using directories and filenames. I once had a crash and recovered the actual photos but not the database with tags, names etc. So I had to name all pictures again.

nelgaard··on Google has been testing a replacement for third-party cookies
Already most of our CPU cycles are eaten up by ad-frameworks in our browser.

Now Google want to offload Machine Learning to our browser. That will be bad for battery life, electricity bills, and the environment.

On the other hand I use free software. So I can make a version of their extension that just claims that I am obsessed with Ironing. That will also make it easier for the Ad-blocker to do its filtering.

nelgaard··on Internet disrupted in Russia amid opposition protests
Freifunk works: https://freifunk.net/en/https://freifunk.net/en/
nelgaard··on Ways to make flying less miserable
Worse, I sometimes fly CPH-Toronto. Watching a movie. The captain comes in to tell us what the outside temperature is at 20000 feet, etc. The movie continues after a random time: [5-25] seconds. Then he comes in again and do the same in French. Random interval, then the same in Danish. If it is a Lufthansa code-share plane, then we also get it in German.

And the same for the dinner menu (always chicken or pasta), informing us that they will soon be handing out forms to fill in, etc.

And all this information you can just look on the infotainment system if you really want it.

nelgaard··on Danes Get 20-Year 0% Mortgages
It is not banks. It it credit unions and based on bonds. (banks are sometime affiliated with credit unions with similar names)

The bonds have a 0% coupon but the value is now 96.725: https://www.nordea.dk/privat/produkter/boliglaan/Kurser-real...

So the buyer of the house (seller of the bonds) would have to sell 3.3% extra bonds. And the buyer of the bonds gets a discount.

As for why anyone would buy such bonds: The system is considered very stable (no US sub-prime mess) so if you have a lot of money, do not want to take risks (stocks and forex) and your bank charges you negative interest, it might make sense.

As for the house prices. Yes they are going up. But you still have to pay back the money in 20 years. Or remortgage, but then it might not be at 0%.

Another thing to consider is that property taxes are based on a public valuation that have some correlation with what you would be paying for a house (valuations is big mess now, but it will probably be fixed in less than 20 years).

nelgaard··on Danes Get 20-Year 0% Mortgages
In Denmark you cannot just declare personal bankruptcy.

You can ask a court to declare you bankrupt, but there are many requirements and rules. And the court may reject your application.

nelgaard··on Self-driving vehicles against human drivers: Equal safety is far from enough
Busses are generally much safer because they are bigger and heavier. Except in mountains. But I only encounter that on holidays and on holidays we take a lot more risks.

And I do think twice about taxis.

nelgaard··on Self-driving vehicles against human drivers: Equal safety is far from enough
Which says:

== Obviously, not everyone can be above average. Exactly half of all drivers have to be in the bottom half when it comes to driving skills and safety. ==

Maybe, but the bottom half is not necessary drivers worse than average.

I do not know how you would calculate "average". But there are people on the road that could pull down the average a lot. So that more than 50 percent are better than average.

nelgaard··on Trading Time for Money
And how much is that? This always comes up and we always hear that it will be enough to live on, but it will not break the budget.

Give us some ballpark number please.

Danish unemployment benefits are not that low. It depends what you earned before. But it can be DKK 19300 ($3100)/month.

That is taxable income, so the state get some back. On the other hand people on unemployment benefit also get many other benefits.

So multiplying that with 4.8 mio adult Danes we get 1 trillion DKK. The BNP is 2.3 trillion DKK (most likely a lot less after UBI). So what would a post UBI budget look like? You could cut pensions, kindergardens, special support for children, housing support, etc. But that would not be enough.

There have been some experiments. But they all have very little to with UBI. They are not even trying. They usually only last a couple of years and the participants are few and poor.

It would be more interesting with with a 20 year experiment that gave UBI to

* Totally randomly selected citizens * University graduates * People in low or middle income jobs that are boring. (Dilbert Land) * Nurses

I think someone is just scared that they would end up giving $3000/months to some investment banker, that use it to slightly expand his wine cellar.

nelgaard··on How to Favicon in 2021: Six files that fit most needs
My use case is mainly that I get tired of seeing that request for a non-existing ico file in debuggers and logs when I develop. So if it is supported by my browser, it is a good start.
nelgaard··on IPv4, IPv6, and a sudden change in attitude
Yeah, I live in Europe. When I go to a restaurant in North America, they have beer in 335,341,474 ml cans, draught beer in pints, 12oz, 16oz etc. Very confusing. If I ask the waiters, they also have have no cloue about what gets me the me most beer for my money. (I did check it all with units(1) now, but will probably have forgotten it next time I need it)
nelgaard··on Have we let the LED indicator light go too far?
I use black tape too. It is getting worse and worse. Now that we have USB-C cables with electronics in them they just cannot resist adding a LED light. But Why?

I especially hate getting a hotel room late at night and discovering that it is full of LEDs at odd places where you cannot just socks over them.

nelgaard··on Openstreetmap, a global map for worldwide insight
OP talked about improving OSM using StreetComplete. So this is about adding missing speed limits, opening hours, roof shapes, recycling containers, tactile pavement at bus stops, etc. Hardly "creating the map".

When I travel to a place where OSM could need improvement I make sure that at least the hotel I will be staying at, nearby restaurants, bars and museums, etc are correctly tagged with phone numbers, opening hours etc. It is not much work and it gives me an opportunity to decide what I want to do before I leave.

When I get there I then have everything ready offline in OsmAnd. In a way I just update OSM instead of adding my own bookmarks/favorites.

nelgaard··on Facebook acquires Mapillary
Yes, but how good was Google maps back then. I use Mapillary to e.g., add speed limits to OpenStreetmap.

One-ways streets, road surfaces, sidewalks, lighting, oneways, shops and restaurants, turn restrictions, max heights below bridges, etc, are stuff that to a large extent come from Mapillary.

nelgaard··on Forecast, don't guesstimate your software projects
That is the problem with sprints.

Why should you burn yourself out just to do an arbitrary number of tasks, based on wildly inaccurate estimates, just to meet an artificial sprint deadline?

nelgaard··on Used EV Batteries Could Power Tomorrow's Solar Farms
Both peaks and lows are not that predictable or regular. A storm at night will drive prices down because of wind turbines. That can be predicted days in advance but it requires access to weather forecasts.

Certain events such a sport games or TV shows could drive the price up. That could be predicted but requires more than a timer.

For a heat pump from air the efficiency depends a lot on the outside temperature. So the best time to run it might not be when electricity is cheapest.

nelgaard··on Used EV Batteries Could Power Tomorrow's Solar Farms
I am not looking forward to having my neighbors starting their noisy washing machines at 03:30 am.

My dishwasher can control me over the internet. I can give it access to my Wifi. Then it will talk to https://www.home-connect.com/ . I can then install an app so it can tell me to buy more dishwasher tabs for it. Not going to happen.

I would like to root my dishwasher.

nelgaard··on Is Sudo Almost Useless?
But that is one reason I do use sudo.

I have some extra user accounts that I can sudo into to run scripts, plugins etc from e.g., github that I trust somewhat but not 100 percent. In case they do start mining bitcoins or sending spam mail I will find out and stop it.

nelgaard··on There’s plenty of room at the Top: computer performance after Moore’s law
The situation was not so different back then.

My first paid job was in the late 80's. I had to do something about a system that was basically a lot of menus written in Oracle Forms running in terminals on SCO Unix or maybe Xenix.

I was unbearable slow. Users had to wait 5+ seconds every time they pressed a key. And it was a nightmare to try to optimize it. But then I scrapped it and rewrote the whole thing using plain C and curses and system() calls to do the actual work. Hard-coding the menu hierarchy structure which nobody was changing anyway. That made the system very fast. The company was very surprised that navigating menus could be so fast.

nelgaard··on Germany will require all petrol stations to provide electric car charging
Chargers are only small poles, not that big. And you do not need to pack the street full of chargers.

Just pust a few chargers that each charge two cars and reserve the the spots for electrical cars. When electrical cars get numerous add an hourly fee to motivate owners to move their cars when full charged.

This is how it looks at my place in Copenhagen: two charging stations each serving two cars.

https://www.mapillary.com/app/?lat=55.70679767500985&lng=12....

But I also think charging at petrol stations make sense. When considering buying an electric car, at least if the family only have one car, it is a big issue if it can be used on long trips, even if you only do them a few times a year.

And if you are driving to Italy doing 90+ miles/h on the German highways then you will need to charge you vehicle several times. And you will not have time to get off the highway every time. But a 20 minute toilet and coffee break is acceptable.

nelgaard··on Upside-Down-Ternet (2006)
Ah, yes. Probably driftnet And you will not need trolls for that.

As the debian description says:

== ...Driftnet is a program which listens to network traffic and picks out images from TCP streams it observes. It is interesting to run it on a host which sees a lot of web traffic. . (Obviously, this is an invasion of privacy of a fairly blatant sort. Also, if you are possessed of Victorian sensibilities, and share an unswitched network with others who are not, you should probably not use it.) ==

← PreviousPage 4 of 5Next →