Better HN
topnewbestaskshowjobs
Log inSign up

qubitcoder

1,648 karma · joined Jan 9, 2014 (12y ago) · 325 submissions

[ my public key: https://keybase.io/qubitcoder; my proof: https://keybase.io/qubitcoder/sigs/JVmfDS68RWeEMeqKdcW6ybbYTtRdh_9BV5NBocPaZ70 ]
Submissions

comment 7y ago · link · parent

I initially found the touch bar to be a bit gimmicky on the 2016 MacBook Pro. It was a little buggy and worked inconsistently.

But fast forward several years later to the 2018 model, and I've come to really appreciate it.

Even as a heavy user of keyboard shortcuts, I rarely, if ever, use function keys.

The only regular usage that comes to mind is editing markup in the Chrome dev tools (F2 shortcut). And I rarely used the Escape key. After remapping caps lock to control, and then using control+[ for escape, you're free to use Vim, Emacs, etc. without getting carpal tunnel. I cannot fathom people actually hitting escape on a regular basis when using Vim; that seems like ergonomic egregiousness :-).

In some ways, I find the touch bar to be _more_ efficient than dedicated function keys. Changing the brightness and volume, for example, require only a single motion--tap and move the slider to the desired setting (no need to tap first, and then slide). So instead of repeatedly tapping a dedicated key, you can immediately dial-in the desired setting.

Also, I've found when watching videos or music, having a large slider on the touch bar to adjust the video position is pretty nice. Very easy to jump around.

And context-sensitive shortcuts are generally well-designed. Some things I've found useful on the touch bar include screenshots--a visual representation of the various options are shown on the screen (current window/full-screen/or region), along with options for where to save the screenshot.

Other useful features include tab-preview and switching in Safari, word suggestions as you're typing, and type to Siri (e.g. once enabled, you can tap the Siri icon and say "remind me to do X in Y hours"). Not to mention other useful tidbits like emojis when using iMessage.

I can see how people might dismiss the touch bar without having explored its capabilities--but there's no denying the innovation behind context-sensitive dynamic keys. Overall, I'm a big fan.

On Linux (specifically gnome), the situation is a bit different as function keys tend to be more prevalent.

comment 7y ago · link · parent

I also map caps lock to control OS-wide on both macOS (Preferences > Keyboard > Modifier Keys) and on Linux (using gnome-tweak-tool).

Instead of using jj or escape in Vim/Spacemacs, I just use control+[.

With caps lock mapped as control, it's a single fast motion--left pinky to caps lock, and right pinky to [. I've been using this setup for years. It's one of the first things I setup on a new computer/OS.

Mapping caps lock to control also has other benefits. You can quickly zip around the terminal using control+a/e/k/y/d/r etc. As an added bonus, the same keyboard shortcuts work equally well on both macOS and Linux [1].

[1] https://www.ostechnix.com/list-useful-bash-keyboard-shortcut...

153.

Google Fined $1.7B by E.U. For Unfair Advertising Rules(nytimes.com ↗)

2 points · by qubitcoder · 7y ago · discuss

154.

How the Western Diet Has Derailed Our Evolution(nautil.us ↗)

1 points · by qubitcoder · 7y ago · discuss

155.

Google is finally saying goodbye to Allo today(theverge.com ↗)

1 points · by qubitcoder · 7y ago · discuss

156.

Understanding Speed and Velocity: Saying “No” to the Non-Essential(fs.blog ↗)

2 points · by qubitcoder · 7y ago · discuss

157.

Doing more exercise won’t help you burn more calories(newscientist.com ↗)

29 points · by qubitcoder · 7y ago · 32 comments

158.

Iosevka – Slender typeface for code, from code(typeof.net ↗)

1 points · by qubitcoder · 7y ago · discuss

159.

NASA: Lunar Production of Solar Cells (1989) [pdf](ntrs.nasa.gov ↗)

1 points · by qubitcoder · 7y ago · discuss

160.

Why Can’t We Find Planet Nine?(quantamagazine.org ↗)

200 points · by qubitcoder · 7y ago · 149 comments

161.

Next-generation camera takes data of early universe(symmetrymagazine.org ↗)

1 points · by qubitcoder · 7y ago · discuss

162.

Machine learning proliferates in particle physics(symmetrymagazine.org ↗)

44 points · by qubitcoder · 7y ago · 7 comments

163.

NASA is outsourcing its next moon lander to a private company(washingtonpost.com ↗)

1 points · by qubitcoder · 7y ago · discuss

164.

Effects of a low carbohydrate diet on energy expenditure during weight loss(bmj.com ↗)

1 points · by qubitcoder · 8y ago · discuss

comment 8y ago · link · parent

Fortunately, it's trivial to toggle this setting in the Safari preferences--and then the full URL will appear by default.

166.

Silicon Valley is changing, and its lead over other tech hubs narrowing(economist.com ↗)

119 points · by qubitcoder · 8y ago · 114 comments

comment 8y ago · link · parent

It appears that if you already have an existing session open, then all is well.

But, if you try to login again, it will fail (e.g. after I restarted my linux workstation, Slack no longer connects).

168.

Machine learning proliferates in particle physics(symmetrymagazine.org ↗)

3 points · by qubitcoder · 8y ago · discuss

comment 8y ago · link · parent

For another perspective, check out this article in Symmetry Magazine, "Neural networks meet space" [1].

> "Analyses that typically take weeks to months to complete, that require the input of experts and that are computationally demanding, can be done by neural nets within a fraction of a second, in a fully automated way and, in principle, on a cell phone’s computer chip,” says postdoctoral fellow Laurence Perreault Levasseur, a co-author of a study published today in Nature."

> "The team at the Kavli Institute for Particle Astrophysics and Cosmology (KIPAC), a joint institute of SLAC and Stanford, used neural networks to analyze images of strong gravitational lensing, where the image of a faraway galaxy is multiplied and distorted into rings and arcs by the gravity of a massive object, such as a galaxy cluster, that’s closer to us. The distortions provide important clues about how mass is distributed in space and how that distribution changes over time – properties linked to invisible dark matter that makes up 85 percent of all matter in the universe and to dark energy that’s accelerating the expansion of the universe."

> "Until now this type of analysis has been a tedious process that involves comparing actual images of lenses with a large number of computer simulations of mathematical lensing models. This can take weeks to months for a single lens."

> "But with the neural networks, the researchers were able to do the same analysis in a few seconds, which they demonstrated using real images from NASA’s Hubble Space Telescope and simulated ones."

[1] https://www.symmetrymagazine.org/article/neural-networks-mee...

170.

How a Billion-Dollar Satellite Gets to the Launch Pad(defenseone.com ↗)

1 points · by qubitcoder · 8y ago · discuss

171.

Qualcomm’s new QTM052 mmWave antenna module wins the 5G race(semiaccurate.com ↗)

24 points · by qubitcoder · 8y ago · 13 comments

comment 8y ago · link · parent

> Why doesn't search by image work on mobile?

This is a great example of Google's spotty frontend work -- especially since you can simply tap the share button on iOS, and then scroll over to "Request Desktop Site". And voila, image search now works perfectly. You can even click the camera icon to upload an image directly from your phone. And yet, this functionality is completely hidden by default on mobile.

comment 8y ago · link · parent

Exactly. The escape key has never been an issue for me either (for what it's worth, I use Spacemacs as my primary editor).

I just open the macOS preferences, and remap Caps Lock to Control. Then escape becomes a Caps Lock + [ combination. Simple, and no fumbling around for an Escape key.

This also works well on both macOS and Linux, especially when moving about the command line (e.g. Ctrl+A / Ctrl+E to move to the beginning/end of the current line, respectively). See [1] for more shortcuts. Especially useful is Ctrl+K to cut text after the cursor, and then Ctrl+Y to paste it back.

Of course, the regular control key will do the same thing. But using Caps Lock as control reduces strain, at least for me. In fact, it's the first change I make on macOS, Linux, and Windows.

And on Ubuntu, gnome-tweak-tool makes it trivial to make Caps Lock and additional Control key (if you really need Caps Lock, you can also swap Caps Lock and Control).

[1] https://www.howtogeek.com/howto/ubuntu/keyboard-shortcuts-fo...

comment 8y ago · link · parent

The 1Password X extension works great on linux [1], including Chrome and Firefox.

We use the Teams feature with developers across macOS, Linux, and sometimes Windows. The web interface allows us to manage multiple password "vaults" in a single place, and those credentials are then easily accessible via the browser extension.

[1] https://support.1password.com/getting-started-1password-x/

comment 8y ago · link · parent

For what it's worth, mine survived both the washer and dryer unscathed. I just had to clean off the contacts at the base with a cotton swab.

comment 8y ago · link · parent

I periodically boot into Windows 10, mainly for join.me calls with customers, and I'm always curious to see how the WSL is progressing. It's clearly come a long ways, and I'm encouraged by the recent support for multiple Linux distributions. But for development purposes, it's doesn't yet come close to replacing a native Linux environment.

The performance is frankly terrible by comparison -- for example, running `bundle install` in a moderately complex Rails application will take nearly an order of magnitude longer (not to mention the Windows virus scan process soaking up 30% of your CPU the entire time).

Another issue is with background services -- I've had numerous issues running PostgreSQL, Redis, and other services (e.g. some services fail to start, or cannot be cleanly stopped, or I'll encounter strange network errors). However, these issues are all documented extensively in various GitHub issues, so hopefully they'll be resolved going forward. For PostgreSQL, the usual suggestion is to install PostgreSQL in Windows, and then access it from the WSL, but that kind of defeats the purpose.

I don't mean to be overly negative, but at least for my purposes, the WSL just isn't quite there in terms of being a viable alternative for daily development work.

comment 8y ago · link · parent

1Password does in fact work on Linux and Firefox -- although it's not prominently advertised for some reason; I usually have to search for the page.

We have a team of developers using macOS and Linux, and we use the team functionality to manage both personal and company passwords. We made the switch to 1Password specifically because of Linux support [1].

[1] See 1Password X: https://support.1password.com/getting-started-1password-x/

178.

Giant lasers pass new milestone towards fusion energy(physicsworld.com ↗)

3 points · by qubitcoder · 8y ago · discuss

comment 8y ago · link · parent

As a male with a background in foreign languages, and who heard yanny first, I can confirm that my voice doesn't lie in the spectrum of bugs bunny :). But yes, the "yanny" variant does indeed sound like a malfunctioning robot, high-pitched and nasally.

comment 8y ago · link · parent

I've been very happy with the Dell XPS 9650 thus far. I've used it as my primary development machine for nearly a year. The 4k screen is simply gorgeous; Linux support is fantastic, with everything working out of the box with Ubuntu (particularly 18.04).

I also use a 2017 MacBook Pro with touchbar for iOS development. And while I've long recommended the MacBook Pro to others without hesitation, that began to change sometime in the past 2-3 years.

The MacBook Pro screen actually looks blurry by comparison to the XPS 4k. Text isn't as sharp, and the colors are less vibrant (although the P3 color space is a nice improvement). It's a bit disappointing that Apple has yet to fundamentally improve upon the once unbeatable 2013 MacBook Pro "retina" screen, despite a few tweaks along the way.

However, the XPS 9550 definitely suffered from the annoying coil whine. Moreover, I was never satisfied with the touchpad, especially the palm rejection. There was even a slight delay after tapping, which was just enough to be frustrating during daily use. The fans also came on more than expected, likely due to lackluster power management support for the novel Skylake architecture.

And perhaps strangest of all was the repeating "W" key issue. Without rhyme or reason, the "W" key would sometimes repeat, as if being held down (despite not being stuck). Interestingly, there were BIOS updates to address this issue, and based on the Dell's forums, the "W" key issue has affected numerous laptop models over the years.

Fortunately, it seems that Dell has finally managed to iron out these growing pains with the 9560. After purchasing it, I quickly upgraded to 32GB of memory, installed a Samsung 960 Pro SSD, and swapped out the Wifi chip for a better performing Intel model. You'd be hard pressed to find a better spec'd machine for linux / software development.

I'll be curious to see if Apple can up their game with the 2018 MacBook Pro.

1
567
11