Better HN
topnewbestaskshowjobs
Log inSign up

dgregd

399 karma · joined Jan 31, 2010 (16y ago) · 234 submissions

Submissions

comment 1y ago · link · parent

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?

comment 2y ago · link · parent

How is that different from Apple Pay or Google Pay, where you click one button and provide all your card details to a new merchant?

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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?

5.

A game theory behind the dark forest strategy?(en.wikipedia.org ↗)

9 points · by dgregd · 2y ago · 13 comments

comment 4y ago · link · parent

It looks like russian hypersonic missiles do not work as expected and what was promissed to Putin.

7.

Russian lab head supporting hypersonic missile program held for treason(reuters.com ↗)

6 points · by dgregd · 4y ago · 2 comments

comment 4y ago · link · parent

Serbia is not a part of Russia. It wasn't even in Soviet Union. Yugoslavia was an independent country.

comment 5y ago · link · parent

I would love to see a keyboard with an ortholinear layout [1] for the Framework Laptop. After switch to a dactyl manuform keyboard it is really painful to go back to a typical staggered layout. Touch typing is much easier and more natural when using a good ortholinear layout.

[1] https://mechlounge.com/interesting-ortho-ergo-keyboards/

comment 5y ago · link · parent

How a such hypersonic missile locks a target? Does it use a radar or some optic system? I guess that plasma around the body might disrupt conventional guiding systems.

comment 5y ago · link · parent

How this is different from what Apple is going to do with that on-device image hash algos? The other big story on HN last few days is that a Google Drive account was blocked [1] because of a "terrorist" content. Why should I replace one set of censorship algos with another set of algos? At least Xiaomi limits their censorship algos only to Chinese users.

[1] https://news.ycombinator.com/item?id=28621412

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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

comment 5y ago · link · parent

In two decades we’ll be sending nuclear waste into deep space.

comment 5y ago · link · parent

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...

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

> 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.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

Apple car is a terrible idea. Apple is good at selling luxury products to ordinary people. An ordinary person can buy a good enough headphones for $40 or spend $550 for the AirPods Max mainly as status symbol. But an ordinary person won't spend $350,000 for a VW ID.3/Golf competitor.

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

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

comment 6y ago · link · parent

> 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.

comment 6y ago · link · parent

It is also a good solution for the US. The blue states are much more richer and should block money transfers to the red states. Punish financially until the red states will vote for the correct party and establish more progressive laws.

comment 6y ago · link · parent

That state funded radio station has 4,7% of the market share. Thanks to that censor action the song became very popular in other stations and YT.

comment 6y ago · link · parent

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.

comment 7y ago · link · parent

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?

12345
8