HNHacker News
TopNewBestAskShowJobs

alfredxing

1,018 karma · joined May 12, 2013

https://x7f.ca
submissionscomments
alfredxing··on I still like Sublime Text
I love Sublime and am probably the only one at work still using it. LSP support is nice but there doesn't seem to be great support for a TypeScript LSP server that works reliably with large projects. VSCode is slow here, too, but there are some specific optimizations they do I think that help a bit.
alfredxing··on Why can't you reverse a string with a flag emoji?
Related — I did a deep dive a couple years ago on emoji codepoints and how they're encoded in the Apple emoji font file, with the end goal of extracting the embedded images — https://github.com/alfredxing/emoji
alfredxing··on Apple M1 Max Geekbench Score
In the keynote Apple said the M1 Max should be comparable to the performance of an RTX 3080 Laptop (the footnote on the graph specified the comparison was against an MSI GE76 Raider 11UH-053), which is still quite a bit below the desktop 3080.
alfredxing··on Google is killing unlimited Drive storage for non-enterprise users
No, it's available as a self-serve upgrade from the admin panel. Sales might be able to give discounts, but that's not very likely for an "enterprise" with 1 user :)
alfredxing··on Google is killing unlimited Drive storage for non-enterprise users
To be clear (and this is mentioned but not highlighted in the article), the previous Business plans were never guaranteed unlimited storage for orgs with fewer than 5 users ($60/month), the 1TB limit those orgs were supposed to have was just never enforced.

I was one of those users, and the thought that the storage limit could start being enforced at any time was always in the back of my mind. Now I'm on the Enterprise plan and can worry a bit less.

alfredxing··on Apple announces it will switch to its own processors for future Macs
Based on the Newsroom release [1], cost is $500 and the hardware is a loan.

[1] https://www.apple.com/newsroom/2020/06/apple-announces-mac-t...

alfredxing··on Netlify CDN Outage
Their CDN hostname, `cdn.netlify.com`, resolves to a DigitalOcean node, so it seems like they are rolling their own instead of delegating to a third party.
alfredxing··on The We Company reportedly will put its public offering on hold
The article title states "reportedly"; this is not official. Can the title here be changed to reflect that?
alfredxing··on Dark Mode for Slack
The custom emoji upload flow now includes previews for both light and dark mode! Doesn't help with existing custom emoji, but is hopefully helpful when adding new ones.
alfredxing··on AMD Ryzen 9 3950X is the fastest processor on Geekbench
This might be an unfair comparison — the AMD numbers are from a single benchmark, and the article is comparing this against the aggregated scores of the i9-9980XE. A few i9-9980XE multi-core scores on Geekbench reach higher than 60k as well, with the highest being 77554 multi-core.
alfredxing··on Show HN: Scar – Static websites with HTTPS, a global CDN, and custom domains
Netlify is a great tool, my biggest issue with it (and why I continue to use GitHub Pages) is that the "Global CDN" is a cluster of DigitalOcean nodes, which I don't trust as much as e.g. Fastly in terms of performance and reliability.

(Note: that info is from anecdotally looking at Netlify site IPs, I could be wrong)

alfredxing··on Apple announces Apple Card credit card
The AMEX SimplyCash card has 1.25% cash back. Still nothing compared to U.S. cards though, and pretty much only usable online
alfredxing··on Thinkpad X210
Electron is built with Chromium. It's usually behind by a few versions (though the team is really focusing now on getting things up to date), and there are differences and additions.
alfredxing··on Redesigning GitHub Repository Page
I agree they aren't universal, so it's not so useful for first-time users, but once you get to learn them I find they help a lot with scanning and recognition.
alfredxing··on Redesigning GitHub Repository Page
I don't love the design, but what bothers me more is that I disagree with many of the premises informing the decisions, for example:

  - Github tab icons are purely decorative
  - Because we simplified the whole header, we don’t need that color coding anymore
  - Commits often touch files for completely arbitrary reasons, so the last commit tells you almost nothing
  - Get rid of gradients, dirty washed-out colors, unnecessary separators
Finally, cramming so much into one view makes it harder to navigate, not easier.
alfredxing··on React is the new jQuery
I agree jQuery was very useful early on, especially since it abstracted cross-browser differences and APIs.

However in my experience, a couple of things were key to creating a negative view of jQuery:

1. Security and unsafe defaults, for example: evaluating remote JavaScript by default [1]; and unsafe DOM parsing by default [2]

2. Not really to blame on jQuery, but its ease of use for DOM manipulation led to programming patterns that aren't easily scalable, for both code and performance

[1] https://nvd.nist.gov/vuln/detail/CVE-2015-9251 [2] http://api.jquery.com/jQuery.parseHTML/

alfredxing··on Intel Coffee Lake Core i7-8700K review
Being limited by CPU/GPU depends a lot on what kind of hardware you have for each. For example, I have a 1070 and an i5-4690k and I'm CPU limited in some games (below 80-100fps)
alfredxing··on WinBtrfs – A Windows driver for the next-generation Linux filesystem Btrfs
FAT/exFAT have good support across the three OS's, but they are very far from being "modern" filesystems. One of the most fundamental cons for me is the lack of journaling on these filesystems; it's very easy to corrupt a drive formatted as exFAT, especially if it's a portable device (which is probably one of the most important uses of a cross-platform filesystem)
alfredxing··on WinBtrfs – A Windows driver for the next-generation Linux filesystem Btrfs
Hmm, that's a good point! However I don't think this would be a major hurdle: file permissions offer OS-level security only, not disk-level security/encryption, so it would still make sense for different OS drivers to implement only their specific permissions attributes.
alfredxing··on WinBtrfs – A Windows driver for the next-generation Linux filesystem Btrfs
What's interesting to me is that there doesn't seem to be a modern filesystem that works across all major platforms. btrfs has Linux and this (unofficial) Windows driver; ZFS has Linux and OS X support but nothing for Windows. NTFS is pretty much Windows and Linux only for good write access, and APFS is macOS-only.

I realize that designing a filesystem and writing drivers for it are very difficult tasks, but surely it would be extremely beneficial to have at least 1 open source filesystem that has good support across all platforms?

alfredxing··on Nginx 1.13 released with TLS 1.3 support
If you want to use a precompiled version from a repository, nginx has its own, which always stays up to date: http://nginx.org/en/linux_packages.html
alfredxing··on Nvidia Announces Titan Xp Graphics Card
Just a couple of days ago, Apple held a small press meeting discussing the Mac Pro: https://news.ycombinator.com/item?id=14031619
alfredxing··on To www or not www
I'm surprised that the article doesn't mention anycast, which is more or less the "correct" way of using a CDN on an apex domain, since for the user's purposes it's just a static IP address.

I find anycast to be convenient even for subdomains, since it isn't affected by things like DNS caching, (although things like edns-client-subnet apparently help with that).

I'm actually currently looking for a CDN for my website. I don't like www (just personal preference) so anycast is pretty important to me, but there don't seem to be a lot of providers offering anycast for decent price. The closest I've seen is Google's Cloud CDN, which out of all the CDN's I've tried (a lot), is one of the best, but for a small site like mine I tend to get more cache misses than hits (simply due to eviction).

Maybe I'll write up a blog post about this issue :)

alfredxing··on YC will hold interviews in Vancouver for founders who can’t get US visas
Another reason: despite being closer to the Bay Area, flights to/from Mexico from SFO are actually more expensive (by 100-200 dollars) than to/from Vancouver.
alfredxing··on Why I left Mac for Windows: Apple has given up
I run a "hackintosh" system with similar specs as in the blog post, and it works very well (after quite a bit of initial setup).

I still far prefer macOS to Windows for development because it's an actual Unix, the UI is still much better, and the quality of apps available is quite a large difference.

My dream though, is a Linux with an actually decent GUI, desktop environment, and good apps. But one can only dream...

alfredxing··on Ask HN: Is S3 down?
Google Cloud Storage comes to mind. From what I recall they can host static websites as well.
alfredxing··on Revert the GitHub dark header
Mark Otto (@mdo) said that the `header-dark` class will be going away soon [1], so we can't be sure how long this extension will still be working.

Personally, I like the dark bar, though at first it was confusing since the dark bar is usually associated with GitHub Enterprise.

[1] https://twitter.com/mdo/status/830149416556191744

alfredxing··on Mac Pro 2 Concept Design
Thunderbolt 3 uses the same connector as USB C, and it supports the same USB functionality. (https://thunderbolttechnology.net/blog/thunderbolt-3-usb-c-d...)
alfredxing··on Ask HN: Why all websites are not statically generated?
I think in general we can classify websites into 3 categories: static sites with no dynamic content, static sites with dynamic content (through, for example, REST API calls), and non-static sites (where the delivered HTML/front-end code is server-generated).

When there is no dynamic content, using a static site tends to make the most sense. For example, a WordPress site with no moving parts (i.e. no comments) can be easily converted into a purely static site, though adding a cache in front achieves basically the same result.

Things get more complicated when a site or app needs dynamic content. Using API calls, the server doesn't need to generate the HTML every time, but performance-wise, you would also need to factor in the additional round-trips performed to fetch the data.

alfredxing··on Ubiquiti all the things: How I fixed my dodgy Wi-Fi
I have a Ubiquiti setup for WiFi at home (though not as complex as in the blog post - just an EdgeRouter X and UniFi AC Lite). It has never gone down once, and performance is the same as on day 1:

  ubnt@ubnt:~$ uptime
   06:16:26 up 140 days, 13:15,  1 user,  load average: 1.08, 1.03, 1.05
Page 1 of 3Next →