HNHacker News
TopNewBestAskShowJobs

qw

1,789 karma · joined July 17, 2008

submissionscomments
qw··on Common Jobs in a Medieval City
The shoemakers also repaired and maintained shoes. They would replace soles, repair holes etc.
qw··on Magnus Carlsen wins longest world chess championship game of all time
We probably have the technology to have races using self driving cars without drivers (perhaps with more accidents). It may be interesting to watch, but it would be a different sport
qw··on Magnus Carlsen wins longest world chess championship game of all time
The computer also does not take time limits into consideration. If the players could take as much time as they wanted, they might have been closer to the perfect match.

Maybe that would be a fun concept. A game where the players would start with 1 year on the clock?

qw··on Firefox is the alternative to a Chrome hegemony
I think that is a problem many open source programs have, and could improve.

A lot of GUI based programs should think of implementing parts of it as a library others can use. I remember early Git implementations in IDEs where they just ran git commands in the background and parsed the command line output. Imagine if the same had been done with SQLite, would it still be as popular today?

I don't have much experience with creating desktop software, but it seems to me that separating the GUI from the "engine" would bring other benefits too.

I have often looked at OSS and wanted to use parts of it myself. An email client might have a really good mail parser that handles encoding, attachments etc. But decoupling it from the rest of the program would take too much time.

qw··on Why are German numbers backwards?
Norway used to have the same system, but the government introduced a reform in the 50s to simplify. Many still use the "old" way.

The "correct" modern way is the same as in English.

qw··on Why are German numbers backwards?
Norway has an alternative that is the same as the Germans. (175 - hundred and five and seventy)

It was more popular in the past, but is still used in many dialects.

qw··on GetElementById vs. QuerySelector
This is my subjective opinion, but I think getElementById makes the code easier to understand when you scan the code. Even if the query selector is simple, it still requires you to read the query to understand it's just a simple lookup by id
qw··on Ask HN: Those who quit their jobs without anything planned. How did it go?
It gives you time to slow down and reflect if this is something you really want, or just a reaction to a long and difficult week.

It's similar to the "count to ten" principle, before yelling at someone.

qw··on Fingerprints can be hacked
It would probably cause a huge media storm. Then the politicians would "fix it" by replacing it with face recognition... (suddenly Face/Off is no longer science fiction)
qw··on How Metro Agencies Design the Letter 'M'
Same as Oslo, but with a different color

https://no.m.wikipedia.org/wiki/Fil:Oslo_T-bane_Logo.svg

qw··on How Metro Agencies Design the Letter 'M'
Similar to the Norwegian symbol, that also has a circle around it.

https://no.m.wikipedia.org/wiki/Fil:Oslo_T-bane_Logo.svg

qw··on The Spiral Staircase Myth (2020)
I have better dexterity in my right hand, so I find it easier when the button is on the right side. My left hand only needs to hold the hole steady, while the right hand need more flexibility
qw··on The Spiral Staircase Myth (2020)
As a right-handed person, I find it is much easier to run down stairs if I can use the wall or railing for support. To me, it sounds as plausible as the sword fight theory.
qw··on The Spiral Staircase Myth (2020)
I think one of the points in the article is that the walls and moat are the main lines of defence. The castle is protected by the walls.

If they breach the walls and actually enter the interior of the castle, they have already lost and no staircase design can save them.

qw··on Show HN: Caffeine – Minimum viable back end for prototyping
I have used WireMock in the past that supports pre-defined mocks. It can be run both locally and as a service (I only ran it locally)

http://wiremock.org/

It's more complex than Caffeine, but it has a lot of options.

It can also run as a proxy and generate the mocks from actual http requests passing through the proxy

qw··on Show HN: I built a jigsaw puzzle website
I would actually want the opposite, where all the pieces are rotated the right way from the start.

Perhaps this could be a simple button that the users can choose to click instead of a configuration?

Another suggestion: It can be a bit hard to see the shape of pieces with a dark colour, on a black background. Perhaps you could add an outline when you click on the piece to make it clearer? I know we can switch between light and dark background, but the white background on a large screen can be a bit too much

qw··on Glass is the hidden gem in a carbon-neutral future
Over 90% of bottles sold in Norway are returned to be recycled, and most of them probably go through automatic machines in the shops.

Norway and other countries have a deposit system where you pay extra per bottle, and then get the money back when you return them. Places that sell these products are required to accept any bottle that their customers bring them, so most of them want to use these automatic machines to avoid hiring extra staff.

https://www.youtube.com/watch?v=ZI7OldXuq7c

These machines have existed since the 70s, but the modern machines are of course much more intelligent than the early models. They used to accept glass bottles too, but they are not part of this system anymore. (glass is recycled separately)

Tomra is one of the larger manufacturers:

https://www.tomra.com/en/collection/reverse-vending

qw··on American spy hacked Booking.com, company stayed silent
Doesn't hotels.com also have the same filters? I just tried it now, and I could filter by facilities (kitchen) and distance to landmarks
qw··on The decline of baleen whales has led to a decline of krill, researchers find
If we want to solve a problem, we should try to choose the solutions that don't involve killing people :-)

All trends show that the countries with low levels of poverty, high levels of education and women equality results in fewer births.

Women are able to have careers and want to finish their education and get work experience before they think of children. In countries like Scandinavia, the average age of first time mothers are increasing year by year. We also see that cities within the country with a lot of highly educated jobs have a higher age than others

qw··on New language features since Java 8 to 17
I know it's probably to late to add any value to the discussion, but you can write this in Java;

    var list = List.of("carrot", "fox", "explorer")
You are right about the builder, but most projects I have worked with use Lombok and the @Builder annotation to generate the builder automatically. I agree that a native syntax for this would be better.
qw··on Ask HN: Solo-preneurs, how do you DevOps to save time?
I think you are right. There's a big difference between the technology I would use in a larger organization compared to solo projects.

Unless you build a side project to learn a new technology, you should use something "boring" that you know well.

Here's my personal choices in preferred order:

1. Static web sites - Just upload to S3 behind a CDN and forget about it

2. Server rendered website - PHP. It may not be something you brag about, but in my experience it just "works" and has excellent uptime.

Note: If I had to recommend something to a larger organization, I would probably suggest Next.js to attract developers. PHP is often associated with "old school" tech

3. REST service - Spring Boot. I have so much experience with it and there are so many Spring projects that supports a huge range of technologies from monitoring to data

4. Scripts - Python

qw··on Ask HN: Solo-preneurs, how do you DevOps to save time?
I had a similar setup a couple of years ago, where I had to deploy without downtime. My solution was to simply have the old version running in parallel until I was certain the new version was ok

----------

Static website:

1. Setup NginX using a symlink to the current version

2. Copy the new files to a separate folder

3. Change the symlink to point to the new version

----------

REST service (behind NgninX reverse proxy):

1. Current version runs on port X.

2. Deploy new version and run it on port Y.

3. Update NginX config to use port Y and reload

4. If you need rollback, just reverse step 3.

This can be done using scripts or Ansible too if necessary.

qw··on An Iraqi who saved Norway from oil (2009)
Canada and Norway are constitutional monarchies and can not be compared to countries where the monarchs have real power.
qw··on Slack is experiencing a service disruption
Also it seems to be based on assumptions and not facts. It is currently not working for many people at work who are sitting at home or at the office. Changing DNS to 8.8.8.8 "fixes" it, but it is clearly impacting more than 1% considering they are spread out over several countries and ISPs at home.
qw··on A monk in 14th-century Italy wrote about the Americas
What if the North Americans told the Europeans stories about the stone buildings in South America?

The buildings had already existed for a long time when the Vikings visited. It is unlikely that they would have seen them in person, but stories could have travelled for generations over long distances.

The first pyramids in America were built 1500-2000 years before the Vikings. We are closer to the Viking age, than they were to the first stone buildings at the time. I don't think we should underestimate how far stories can travel given enough time.

qw··on Delphi 11 Alexandria
I think you have a point. They should adopt a pricing strategy similar to Jetbrains where they have a non-transferable cheap individual license that can be used commercially, and a more expensive version for enterprise.

I believe many React Native, Electron and other hybrid solutions are made by people like me, who don't want to spend huge amounts of money to test an unknown piece of tech. These people also make recommendations to the companies they work for, which would actually afford to buy these licenses.

Why not think of a "discount" as part of the marketing budget? How much money do they spend on marketing and sales to get new customers? They will get new developers who will improve the branding and gain new "leads" organically.

qw··on Practical Front-End Architecture
One of the benefits of Wordpress is that it runs on PHP. It's very easy to find a cheap web host and just copy the files over. Many web hosts even have a simple button that sets it up for you.

A viable alternative would need to be just as simple, and currently that implies it should probably be implemented in PHP, which will exclude developers who want experience with "blog-friendly" languages.

qw··on Our fridge just emailed us to say we opened its door too many times
I am using a box (Android TV) and was finally able to remove the overlay by pressing the "back" button on my remote. Not exactly obvious, and not what I would call a good User eXperience.
qw··on Our fridge just emailed us to say we opened its door too many times
It seems most "UX" tends to be less about the user and more about exposing the product.

One example is the pause screens in Netflix and other streaming services. I sometimes want to pause the screen to read a letter or examine easter eggs left by the movie producers. I can't do that, as Netflix has a semi-transparent overlay with lots of unnecessary graphics and voting buttons.

Half the screen is also covered with the logo and/or poster from the movie I'm currently watching... as if I need to know?

They could at least provide an option to remove the graphic if you actually want to look at the paused movie.

qw··on Libwebsockets a powerful and lightweight pure C library
You can make efficient systems with Java too.

Quote from 10 years ago:

> The system [LMAX] is built on the JVM platform and centers on a Business Logic Processor that can handle 6 million orders per second on a single thread. The Business Logic Processor runs entirely in-memory using event sourcing.

https://martinfowler.com/articles/lmax.html (2011)

← PreviousPage 4 of 17Next →