HN user

dgregd

399 karma
Posts4
Comments222
View on HN
Fish 4 1 year ago

A question for people who have already switched to the fish shell: What is the biggest drawback of using fish? For example, you get accustomed to it on your system and then have to work with Bash or Zsh on your company’s server systems. And if I’m going to make such a big switch from Bash to fish, then why not switch to Nushell instead?

For me, the Dark Forest hypothesis is very probable. However, the whole book series assumes that interstellar travel is possible for advanced civilizations. What if no new physics is discovered, and the only way to accelerate/decelerate is to throw a mass in the opposite direction? Maybe all advanced civilizations in the Milky Way are limited to their planetary systems.

What do you think about the dark forest hypothesis from The Three-Body Problem book? It seems reasonable to me. Are there any sociologist or math papers that describe the game theory behind the dark forest strategy and prove it?

Every time I mention this here on HN I am down-voted. But I really think that in a next few decades sending (dangerous) cargo to (deep) space will become cheap and reliable. Space tourism just started this month and that will fund thousands of engineers working on that goal.

Imperial Delusions 5 years ago

It is worth to add the Joseph Conrad was a Pole whose family fought against Russian colonialism.

You can have two keyboards. A first ergonomic split keyboard for the alpha keys. A second keyboard _only_ for function keys (placed between the split keyboard), an ortholinear planck keyboard with QMK firmware would be ideal. With QMK you can program a single key to send a complex combination like Alt+Shift+F10 (the Run... action in IntelliJ), you get the idea.

Moreover you can make [1] the same key to do the same action in different OSes and programs. No need to remember different shortcuts how to switch tabs in a browser and in a text editor.

[1] https://github.com/qmk/qmk_firmware/blob/master/users/miles2...

Kudos for Microsoft for that keyboard. Compared to the previous 4000 model they made the 2019 model more ortholinear. Notice the offset between the A key and the Z key. It is not pure ortholinear but it makes possible to type with your pinky Q, A, Z letters without stretching that much. This is the first popular keyboard which goes into the right direction and breaks the 150 years old design!

If your are more demanding then it is becoming not ortholinear enough. Later on you will want to have staggered columns like Keyboardio model 01, Kyria, Kinesis Advantage all have. After you'll try the QMK firmware you'll start to hate that Office and Emoji keys, which are under your strongest finger but are basically useless.

I’m glad that I don’t have a direct relationship with shady 3rd party developers.

To enable background locations update, a sales rep has to open a check-in screen, wait 10 seconds to see their location on the map and then press the big check-in button. Because people were often forgetting to check-out, my customers requested auto check-out feature which requires background location updates. Once a sales rep leaves the check-in area, background location updates are stopped. Managers and employees see exactly the same time reports. And if some sales rep is suspicious then it is always possible to disable that GPS icon in the quick menu settings after work hours. It is almost like using your batch card to open doors in a workplace.

A popular alternative solution to my app is to use GSP devices which are installed in all corporate cars. And there managers see their employees background location updates 24/7.

I run a small company and offer an app to monitor sales reps work. Managers use it also to see how much time employees spend in the field. To count how much time is spend in some specific location my app uses background location updates.

10 years ago I was distributing just the apk file. Then I moved to Play store. It turned out that most people on their company owned Android devices don't configure Play Store. App updates are disabled until you log in. So I had to educate my customer employees how to log in to Play Store and install my app. The additional benefit was that people had security updates of Chrome and other apps.

Two months ago my app was suspended after I made all necessary changes to support Android 10. The Gbot claims that background location updates aren't essential for my app. As you may guess I wrote appeal without success. My customers pay mainly for that time report feature but Gbot knows better what my paying customers want.

And I just do not care about securing my customer devices and Play Store any longer. Now I distribute apk files again and train people how to install apk files from unknown sources.

Ruby 3.0 6 years ago

Ruby started as a shell scripting language so I agree that it is good for that purpose. However the question is how much time one spends writing shell scripting code for personal use. If someone already knows Python and only occasionally writes shell scripting code then in my opinion learning a new language only for that purpose isn't a good investment. I would say Python is good enough for that tasks.

In other words if someone has a good enough tool in their tool-belt for a certain area, then learning another slightly better tool in that area is not a must.

In my opinion it is better to be proficient in a one language than mediocre in two similar languages. If someone is bored and has time to learn both Python and Ruby then why not.

Ruby 3.0 6 years ago

Only if you are going to use Rails. It seems that in all other domains Ruby have lost to Python, Kotlin, Go and others. Personally I love Ruby and Rails, I prefer clean Ruby syntax over Python syntax, however except Rails all other activity is going in other languages. Kotlin code with type inference is as concise as Ruby code but executes 50x faster. Ruby simply won't have ML libraries like Python has.

For a web programming I would switch to Kotlin. However Ktor is still lacking compared to Rails in most important areas for me. In Rails common operations like upload a picture, serve is later in a different resolution, migrate a db, quickly create CRUD forms, etc. are just a few lines of code. In Kolin web frameworks you would have to invest much more time to glue together different libraries to do the same job. Many won't agree with that opinion but for me Rails ActiveRecord is the best part of Rails. There is no a such complete thing for a Java ecosystem. It is a beautiful compromise between ideological (only pure plain Java objects are allowed) ORMs like Hibernate and plain SQL approach like jOOQ.

Lattice C occupied two 3.5 disks so when I was compiling a program I had to switch the disks many times. Then I bought a second external disk drive and it was 10x improvement. As far I remember an executable was very slow for some reason. AMOS was much better for graphics and audio.

Pixel 5 6 years ago

The price is very disappointing. Similarly spec'd Xiaomi Mi 10T Lite 5G will cost about $300.

Mark in the Middle 6 years ago

Actually, just people in general these days

This is how people almost always behaved. In the Middle Ages the term "heresy" was used, today only slogans have changed, the social mechanisms are the same. Of course there is a group of opportunists, but there is also a large group that really believes their ideology (it used to be some religion) will do good.

In Ruby on Rails one can add just one line of code to achieve the same result.

  class User < ActiveRecord::Base
    has_paper_trail
  end
That solution is good enough for most use cases and doesn't require highly skilled architects and developers to implement Event Sourcing properly.

As a long time Android user I bought in May iPad Mini for CPU speed, high DPI screen and OS updates. I was shocked to learn that it was impossible to increase the text size in Safari. So I wasn't using my iPad Mini as often as I intended. After OS upgrade a few weeks ago you finally can increase the text size. Only in Safari, Brave and Chrome are not yet updated.

However I often read web / watch YT lying on the bed so I have to lock the screen orientation. And to switch from portrait do landscape mode you have to: 1. open quick settings 2. toggle lock screen orientation 3. close quick settings 4. position iPad correctly so sensors cen detect orientation and switch screen mode 5. open quick settings 6. toggle lock screen orientation 7. close quick settings

Huawei recently added a feature to EMUI which automatically sets correct screen orientation using a selfie camera. I hope that Apple will copy that feature. But how many years it will take?

Car companies develop platforms on which they build many different models. For example in VW cars you can find exactly the same parts in Golf, Touran, Passat, Tiguan and many other models.

All these 3 separate plains probably could share 90% of parts, software, avionics, that VR helmet, etc. Having fewer constraints it would also simplify the plane body design.

Just image car engineers are asked to design one car to replace off-road, city and van cars. Even Elon Musk did not come up with that idea.

Regarding housing problem in the US, well known here on HN patio11 has a simple solution: build homes [1]. Does this mean that he is a populist? Or do politicians just call themselves left-wing or right-wing, and in reality both of them represent the interests of landlords, as the article suggests?

I don't known which articles and columns you read. But I am from this European country with rising populism. In my opinion, things are going in a better direction than in the times of non-populist government. The current government fulfills promises and pays broad social benefits, but at the same time this populist government has reduced the budget deficit.

[1] https://twitter.com/patio11/status/939581079328919552

thanks to Poland and Czech Republic's love of coal

Do you really think that people in these countries _love_ burning coal? Does this attitude help solve the problem?

Poland does not have nuclear power plants, therefore it has a bigger problem with the reduction of CO2 emissions than other countries. In addition, Poland has no conditions to produce energy from wind and solar in the winter. Sometimes when I read such comments, I would like Poland to present a plan to buy nuclear power technology from Russia (RBMK-1000 reactors) and to put it along the western border, 50 km from Berlin.

PS. Please take into account that in Poland there was no industrial revolution and that is why over the last 150 years Western countries have emitted much more CO2 into the atmosphere.