HNHacker News
TopNewBestAskShowJobs

PNWChris

649 karma · joined September 16, 2016

All opinions are my own, I don't speak for my past or present employers.
submissionscomments
PNWChris··on Reddit bans subreddit group “r/DonaldTrump”
I dispute this assessment, it’s a drastic simplification and the comparison only starts in 1994, which is after a heavy swing in America to the right throughout the 80s and 90s. If anything, what the article shows is a regression to the long-term political mean, not a move left.

A great example I happen to have favorited on YouTube, check out the healthcare debate in 1971 [0]. It’s essentially Medicare for all (D) vs practically Obamacare (but from an R).

[0]: https://m.youtube.com/watch?v=eBFJ7vv8vDU&feature=youtu.be

PNWChris··on Tips for a Better Life
56. Sometimes unsolvable questions like “what is my purpose?” and “why should I exist?” lose their force upon lifestyle fixes. In other words, seeing friends regularly and getting enough sleep can go a long way to solving existentialism.

I really dig this particular one. It reminds me of something similar mentioned in Lex Fridman's interview with Daniel Kahneman:

"When you ask people whether it's very important to have meaning in their life, they say oh yes that's the most important thing...but when you ask people what kind of a day did you have...what were the experiences that you remember? You don't get much meaning, you get social experiences."[0]

I'm a big fan of Man's Search for Meaning, and I have generally enjoyed reading existentialist philosophy. That quote, however, presented an alternative foundation for a happy life in such clear terms, and they were terms I simply hadn't considered using! After thinking about it, it's almost obvious. I'm pretty young, and even now I look back fondly on the best social experiences in my life. It's incredible to be alive, and to have had the experiences I've had with the people I've gotten to share them with.

I still highly value having meaningful pursuits, but above everything else, these days I aim to enjoy the company of good people and to be good company for others. I find it's a nice cure for the existentialist blues if you ever catch them.

[0]: https://youtu.be/UwwBG-MbniY?t=3120

PNWChris··on Ask HN: Learning about philosophy
Context for my comment: I am not an academic, my focus here is to share books that helped form my personal philosophy.

I am certainly not an expert on philosophy, but I found Frankl's "Man's Search for Meaning" (especially with the post-script added in 1984) and Camus' "The Myth of Sisyphus" to be instrumental to becoming the person I am.

I also gained a lot from Plato’s republic (particularly book 7[0][1] - i.e.: the allegory of the cave - and book 8/onward[2][3] - a discussion of government that feels like it could be had today) and Huxley’s "Brave New World"[4] (if you're okay with spoilers and just want a quick glimpse at a good part of the book, I highly recommend reading chapter 16[5] -- it has some great dialog!).

The way thinkers of the past could frame problems of their day in terms that still apply today has been eye-opening to me. It makes today's problems feel less insurmountable. They are instead challenges we as a collective humanity will overcome and (as Frankl would say) give us an opportunity to transform suffering into human achievement[6].

PS: The myth of Sisyphus really wasn't one of my favorites until I got to the middle (the passage on "living without appeal"), it's a slow build that's worth it in my opinion.

[0]: https://en.wikipedia.org/wiki/Republic_(Plato)#Book_VII

[1]: https://www.gutenberg.org/files/1497/1497-h/1497-h.htm#link2...

[2]: https://en.wikipedia.org/wiki/Republic_(Plato)#Book_VIII

[3]: https://www.gutenberg.org/files/1497/1497-h/1497-h.htm#link2...

[4]: https://www.huxley.net/bnw/one.html

[5]: https://www.huxley.net/bnw/sixteen.html

[6]: https://www.goodreads.com/quotes/6807951-i-speak-of-a-tragic...

PNWChris··on Introduction to Linear Algebra for Applied Machine Learning with Python
They’re much narrower in scope than a full curriculum (or even a course, for that matter), but Better Explained [0] has some very good overviews of math topics. They are a useful supplement I’ve come across repeatedly while searching topics I found challenging over the years.

On the topic of open source learning, I take every chance I can to heartily recommend fast.ai’s course [1]. It’s a good intro to Deep Learning that leaves you informed enough to build things, and equips you to ask follow-on questions and dive deeper when/where you need to.

[0]: https://betterexplained.com/

[1]: https://course.fast.ai/

PNWChris··on Founder Paydays at Exit (IPO)
Oh man, upon looking closer, I now realize you and this thread’s OP are right. That data is really messy. I agree, it’s not a good look.
PNWChris··on Founder Paydays at Exit (IPO)
Ah, the repeated companies had me confused for a moment, too! The list is partitioned by { company, founder } (note the different ownership percentages), which is why some companies appear multiple times.
PNWChris··on Which GPUs to get for deep learning
Disclosure (since Colab is a Google product): I work at Google, but everything I say is my personal opinion and experience.

I really dig the overall idea of cloud notebooks. Back when I did fast.ai part 1, I used Paperspace Gradient. It was a pretty good experience, but moving files around was a bit of a hassle. For example, getting the images for the Planet Labs exercise took a round trip of downloading from Kaggle to my computer and re-uploading into Jupyter to do analysis.

Because of all those moving parts, I decided to give a try running things locally. To my surprise, setup was super easy and I was quickly productive! I really dig how customizable a local Jupyter server is, too.

I do use Colab, it's particularly great for collaboration/sharing notebooks, but my past experience has me hooked on the idea of a capable ML machine at home.

Plus: I can pitch it to myself and my spouse as an investment in personal development that happens to be able to game :D

PNWChris··on Which GPUs to get for deep learning
Same situation for me, luckily it looks like archive.org snagged a backup while it was up!

https://web.archive.org/web/20200907164516/https://timdettme...

This post looks very thorough, and came just in time for me. I'm looking to snag an upgrade from my GTX 970 for a mix of flight sim 2020 and digging into Fast.ai's course part 2.

The 970 has been my big hold-up, right now even simple models take a really long time to work with.

PNWChris··on To the future occupants of my office at the MIT Media Lab
Some quick additional info, since I wasn’t familiar with all the context. I am glad I looked deeper, I am ashamed to admit I assumed some wrongdoing given he had resigned!

Wikipedia notes that he “...resigned from his position[19] as director of the MIT Center for Civic Media, in protest of the Media Lab's involvement with Epstein.”[0]

[0]: https://en.m.wikipedia.org/wiki/Ethan_Zuckerman#Career

PNWChris··on Teachers are ready to quit rather than put their lives at risk
Agreed with the above.

Harper’s recently ran a pretty good piece on the matter, if anyone is interested in a longer-form skeptical perspective on charter schools and their lack of accountability:

https://harpers.org/archive/2019/11/the-k-12-takeover-charte...

PNWChris··on Linux Mint drops Ubuntu Snap packages
Agreed, that’s 4 round trips to Google from my main box at home! You can round-trip ping nearly halfway across the U.S. in that kind of time.
PNWChris··on Ask HN: Did you take any fresh MOOCs as of 2020?
+1 from me. I really liked Fast.ai part 1 and can't speak highly enough of it! I plan to do part 2 in the near future once I have a bit more time on my hands.

The course is project oriented and quite concrete (focusing on practical/directly usable knowledge, before diving into impl details and math) so I liked it a lot more than anything I had tried before (courses on Coursera, studying on Kahn Academy).

Not only did I actually learn, the course gave me the skills and motivation needed to build my own toy project[0]!

@OP: Give Fast.ai's course (part 1)[1] a try. You'll train your own image classifier by the end of lesson 2. At that point you'll know if you like or dislike the course's style.

[0]: https://ml-hot-or-cold.projects.chrisjeakle.com/ [1]: https://course.fast.ai/

PNWChris··on 2 Out of 3 tech workers would leave SF permanently if they could work remotely
Frankly, I think that implicit assumption by workers is totally fair! The way COL adjustments are done results in a strong incentive to live wherever costs the most. Some time ago I made a comment on this concept that I'll re-post here with minor edits:

--

Say you move to a lower cost of living area, perhaps 6% cheaper, and your employer adjusts your wages down by the same amount as the change in COL.

Now all your expenses are 6% lower, but your money left after expenses is also 6% lower. That means that despite being no worse off in terms of quality of life, your savings went down 6%.

Strictly speaking, if you maintain the same relative ratio of costs to savings, it’s always rational to take the highest income, even if it’s in a higher COL area. This is because costs can be measured as a percentage of income, but savings ought to be measured as an absolute value.

--

The "fix" would be to somehow work out what workers spend, and only adjust that part of their salary by COL. That's invasive and gives an unfair COL-adjusted comp advantage to the highest earners who can save a bigger portion of their income.

I don't have an ideal solution. I guess there could be a standardized single remote COL adjustment (perhaps adjusted by country or something to account different legal frameworks and mandatory benefits), and the remote worker can live wherever without comp adjustments other than local tax.

PNWChris··on Ask HN: Is there still a place for native desktop apps?
Totally fair! Frankly, I only know the distinction from a high school computers teacher who was adamant about the distinction.

I guess the easiest way to get the name is to see the “Web” as a “web” of hyper text documents, where hyperlinks act as the strands in the web (graph edges, if you will).

Honestly, like you say, it’s all built on top of a computer network (yet another web/graph). As a consequence, the distinction never really made a ton of sense to me, either.

Alas, this is the common parlance, so it is what it is.

PNWChris··on Ask HN: Is there still a place for native desktop apps?
I believe they’re referring to the web as port 80/443 http(s) traffic. It’s the old World Wide Web vs internet distinction, if you will.

Email really is just a protocol for message sending, and it lives on it’s own port with its own server. If you have an email client and access to an email server (POP/SMTP/however), you can use email over the internet but without the “web”.

Basically, the web email client ought not be the only email client.

PNWChris··on Citing revenue declines, Airbnb cuts 25% of workforce
At my employer they withhold taxes from the RSUs themselves as they vest (taxes are withheld at the bonus tax rate using integer multiplication, I believe).

E.g.: you'll get Math.floor(x * (1-bonus_tax_rate)) shares and will owe no income tax (unless your marginal tax rate is over the bonus tax rate). After that point, you'll only owe taxes on possible capital gains from price at the time of vest to the time you sell.

PNWChris··on What Happened to Lee
I have no wisdom to share, and certainly no opinion on higher power that I would consider profound. What you describe is an unbelievably trying experience.

If you are hoping to make some sense of it all, I found Man's Search for Meaning by Viktor E. Frankl really altered how I see suffering and my place in the world. It's a very concrete book, and outlines a way to live with meaning without needing God (though totally compatible with faith).

Stay strong friend, I believe in a tragic optimism[0] like that outlined in Frankl's 1984 postscript.

[0]: https://www.goodreads.com/quotes/6807951-i-speak-of-a-tragic...

edit: corrected the quote and added a link

PNWChris··on Show HN: Rebalance Calc (a rebalancing and tax optimization calculator)
Hi HN,

## This is a re-post

I want to give a heads-up, this is a re-post of a previous Show HN that didn't get traction [0]. I normally would not post the same project without substantial changes, but because the previous post didn't really get seen, I wanted to give a Show HN a second shot (last try, I promise!).

## Synopsis

I built (and posted about [1]) this portfolio rebalancing and tax optimization tool some time ago, and I just finished a substantial refactor.

Feel free to skip GitHub and see the tool itself: https://www.rebalancecalc.com/

## About the tool

Rebalance Calc helps you align investments (across multiple accounts) to a target asset allocation. The tool takes U.S. treatment into consideration, and automatically suggests the types of trades you'd make to stay in line with your target asset allocation.

The "about" button on the website provides a good summary, and the "how it works" button outlines the exact procedure this tool uses.

## Why I'm sharing this:

With tax season upon us (a good time to think about re-balancing your long-term investments), a lot of market volatility, and this new UI finally in a state I'm comfortable sharing, I felt it would be worthwhile to share this project again.

Any feedback is very appreciated!

## Important consideration:

This tool is definitely best used on a computer, the UI can get quite overwhelming on mobile (though it does work on mobile).

[0]: https://news.ycombinator.com/item?id=22328593

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

PNWChris··on Companies fret as costs soar for software subscriptions (2019)
Does such a rule only apply to SaaS with a contract term? If it applies to all SaaS/subscriptions, I feel that's not an appropriate characterization.

There's value in having options. If a company had to wind-down some operation or segment, any CapEx in that segment could be considered lost (after applying a discount equivalent to x time using a subscription service, of course). With SaaS you can just terminate any no-term-contract/month-to-month/pay-as-you-go expenses.

That flexibility is extremely valuable and makes the company more flexible. Heck, I'd argue accounting should apply an expected future cost discount to such expenses.

PNWChris··on Persisting React State in LocalStorage
Edit:

I misread the parent comment, apologies for that! After re-reading, I still agree with them, but with some nuance.

This article describes "somewhat" volatile state, and I think there are interesting use-cases for temporary sticky state that stays between visits (but doesn't need to be stored permanently). I see this being cool for search filter states and stuff.

I'll leave my original comment as-is because I still thought that was worth sharing, too.

--

I've put a lot of thought into easy, no DB persistence for a project of mine, and I have to agree with your assessment.

I ended up persisting to the private fragment identifier (hash) portion of the URL. It makes bookmarking and copy-paste state sharing easier. Most major browsers have a bookmark sync feature these days, so state sync is free (a nice benefit!).

While researching persistence options, I came across storage.sync[0]. It's like local storage, but synced across browsers. I've never used it, but the promised functionality would be very cool.

I think storage sync is a really good idea. I just wish there was a "web browser state file system" of sorts for users to browse, copy, back-up, etc. In absence of that, I feel no user can be confident that local storage is working, and as a consequence I won't persist anything of consequence there.

[0]: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/Web...

PNWChris··on An Intuitive Guide to Linear Algebra (2012)
OP Here:

I just wanted to give some context to how I found this page, and why I thought it would be good to post.

I may be putting myself on the spot here: I never took a linear algebra course in undergrad. It was a heavily encouraged option, of course, but I felt I understood the basic rules enough to not really need formal study. I opted to study other areas, partially motivated by a fear I wouldn't do well and would hurt my GPA (my god was I vain, I feel I could do so much more studying full-time with my current world-view).

As time has gone on, and ML and quantum computing have simply blown up since I graduated in 2014, I quickly realized the magnitude of my mistake. I have frantically self-studied for years to try to make up the gaps in my mathematical understanding, and linear algebra has come up time and time again. I can do the processes, but they never clicked, I had no intuition.

I want to help others in my position cut to the chase, and study the highest yield, most intuition giving resources.

I actually developed the mental model shared in this guide on my own, and was positively delighted to find to this while thinking over a comment I was drafting on here. This page lays things out so clearly. The component steps are intuitive and I can commit them to memory/recall what they mean without needing to dig up my notes to self!

===

I find this page gives an excellent foundation, and goes great with these resources:

* A web site which clearly shows how to do matrix multiplication in a way that's easy to recall, it makes the procedure like riding a bike:

http://matrixmultiplication.xyz/

Huge thanks to Jeremy Howard of fast.ai for mentioning this in one of his lectures, this tool is how I finally got matrix multiplication to click

* A paper named "An Introduction to Quantum Computing" (bear with me, it's superbly well written and very approachable):

https://arxiv.org/abs/0708.0261

Page 3 of that paper lays out matrix multiplication (e.g.: applying a "transformation matrix" in the spatial parlance of 3blue1brown's videos) as a traversal of a directed graph. A very useful understanding, and shows how generalizable the tools of linear algebra really are in my opinion.

* The essence of linear algebra, by 3blue1brown (fantastic for a geometric/"transformation of space" view of linear alg):

https://www.youtube.com/playlist?list=PLZHQObOWTQDPD3MizzM2x...

PNWChris··on Gilbert Strang Teaches Linear Algebra
I gained some great intuition from http://matrixmultiplication.xyz/ and (of all things) a paper named "An Introduction to Quantum Computing"[0].

Page 3 of that paper lays out matrix multiplication (e.g.: applying a "transformation matrix" in the spatial parlance of 3blue1brown's videos) as a traversal of a directed graph.

This isn't super readable (it's from my notes to self), but my intuition is:

Matrix multiplication is a graph traversal:

* Each i,j in transform matrix (on left) pulls N (the value at that index) times the j-th value in the input vec (on right) into the i-th output vec index

* This is equivalent to an N weighted vertex from the j-th node to i-th node, so i takes N of j's previous value

* The input (right side) is a matrix? It's just multiple column vectors next to each other, repeat the above process and make a new output vector for each iteration

[0]: https://arxiv.org/abs/0708.0261

PNWChris··on Show HN: Rebalance Calc v2
Hi HN,

I just finished a major refactor of a tool I made (and shared here) some time ago!

Feel free to give it a try: https://www.rebalancecalc.com/

## What this is:

This tool helps you align investments (across multiple accounts) to a target asset allocation. The tool takes U.S. taxes into consideration, and automatically suggests the types of trades you'd make to stay in line with your target asset allocation.

The "about" button on the website provides a good summary, and the "how it works" button outlines the exact procedure this tool uses.

## Why I'm sharing this:

With tax season nearing (a good time to think about re-balancing your long-term investments), and this new UI finally in a state I'm comfortable sharing, I felt it would be worthwhile to share this project again.

Any feedback is very appreciated!

## Important consideration:

This tool is definitely best used on a computer, the UI can get quite overwhelming on mobile (though it does work on mobile).

PNWChris··on Show HN: Ml-hot-or-cold, Classify water as hot or cold from the sound of pouring
Alas, not in a way that I'm capable of, I'm still working through part 1 of Fast.ai's course. I looked over my folder of spectrograms, and there are definitely patterns, but I don't know exactly what features the model deemed relevant.

I've added some example audio to the demo page, so now you can see the accompanying spectrograms of various temperatures without needing to run the notebooks.

There is hope for human understandable models, however. Lots of brilliant minds are working on model interpretability [0][1]!

[0]: https://distill.pub/2018/building-blocks/ [1]: https://openai.com/blog/interpretable-machine-learning-throu...

PNWChris··on Show HN: Ml-hot-or-cold, Classify water as hot or cold from the sound of pouring
I've added some example data to the demo page, now folks can give the classifier a try without the hassle of making a file and uploading!

A direct link to the demo: https://ml-hot-or-cold.projects.chrisjeakle.com/

PNWChris··on Show HN: Ml-hot-or-cold, Classify water as hot or cold from the sound of pouring
It varied: in the “data/audio” folder I used a fairly heterogeneous set of vessels (a short thermos, short and wide ceramic Starbucks “you are here” mugs, some standard water glasses, and some somewhat narrow glass mugs). All were between 10 and 20 oz in capacity.

In “data-v2/audio”, I just did a ton of samples in ceramic Starbucks mugs and the narrower glass mugs.

It turns out the model generalized quite nicely! In build log 3 I took a model trained on “data-v2/audio” and applied it quite successfully to “data/audio”.

PNWChris··on Show HN: Ml-hot-or-cold, Classify water as hot or cold from the sound of pouring
Hi HN, I'm sharing this project because it's finally in a state I'm happy to show to others. It's my first effort to make use of the skills you learn in Fast.ai's MOOC (part 1).

The Fast.ai course encourages experimentation to learn more effectively, and I have to admit, they have the right idea. I learned a ton working on this project that simply working through notebooks and taking the course couldn't make stick.

Feedback is very welcome. This is my first fully self-hosted web server, so I'm iffy on best practices for that part of the project. Plus, I'm sure there are plenty of domain experts on here to suggest improvements in other ways.

PNWChris··on Red Hat Cloud Forms migrating to IBM Cloud Pak
While I was in undergrad (early 2010s at a major public university) the engineering machines dual-booted Windows and RHEL. We also had servers running RHEL, accessible via VNC and SSH. I liked the setup, it was very reliable and I found it quite productive.

IIRC, a place I interned during that time also had some RHEL machines.

These days, I have no idea what those places are running.

PNWChris··on JSONCrush – Compress JSON into URI Friendly Strings
I have a personal project that saves state to the URL's hash (https://www.rebalancecalc.com).

I do that because I wanted users to be able to save their state without burdening those users with accounts or burdening myself with maintaining a DB for something so simple.

I also somewhat abuse the history API and use my "read the URL and load state" logic to implement undo-redo via navigating back and forth, though that doesn't seem to work right now. I am working on a refactor that uses redux to implement undo-redo and just replace state, to keep the user's history clean.

Storing encoded JSON in the URL hash is a nifty hack in my opinion. Users can save state in a bookmark or share it with others easily, and it's clear to the users that "where they are" in the URL bar maps to the current app state. Plus, bookmark syncing is taken care of by most browsers to make that state available elsewhere, etc. For the site owner, it means not needing a DB to make an app with some kind of state persistence.

One risk: be sure the state you persist to the URL is in a schema you plan to retain compatibility with! Blind serialization and de-serialization is a recipe for bugs and misery the next time you add a feature.

PNWChris··on The Money Farmers: How Oligarchs and Populists Milk the E.U.
My understanding is that many of the oligarchs quite literally stole what they have during the 1990s free-for-all (Soviet collapse).

This is opposed to many western business people who won by making better products and generally advancing our standard of living. Whether they deserve the astonishing wealth they have is up for debate (I believe in a wealth tax), but but at least they did something for it!

The Wikipedia page says roughly that: https://en.m.wikipedia.org/wiki/Russian_oligarch

The Wikipedia for Gazprom has a great timeline of how one such business became an elaborate exercise in theft: https://en.m.wikipedia.org/wiki/Gazprom#History

← PreviousPage 2 of 3Next →