HNHacker News
TopNewBestAskShowJobs

jamesralph8555

38 karma · joined August 15, 2022

submissionscomments
jamesralph8555··on MCP Run Python
How secure is this? I tried building something similar, but it was taking too long to setup a fully virtualized solution like kata container or firecracker.
jamesralph8555··on Ente Auth: open-source Authy alternative for 2FA
I’ve had a really poor experience with the (open source) 2FA app Raivo on ios. Developer got bought out. Ads got added, and a bug was introduced where users lost 2fa backup. Losing 2fa access was not as bad as I expected since I stored 2fa backup codes in bitwarden notes. A lot of sites also feature email recovery. I ended up migrating totp 2fa to bitwarden and its been very convenient.
jamesralph8555··on The economics of the Birkin handbag
This model is not unique to Hermes. Watch and car brands work the same way. Early on in these markets, you can get one of the desirable items without spending too much on undesirable items.

Some examples:

Rolex - stainless steel models are desirable and appreciate, gold models go for below msrp

Porche - Bucking the trend a bit, Porche gives you the option of paying an additional dealer markup rather than making you buy a Macan to get a GT3 RS.

Over time, this arbitrage goes to equilibrium and resellers can’t make money. It is relatively easy to get into this market so naturally it gets flooded. Profit goes to 0. Resellers also carry a risk that the item loses market value while they hold it. The only real winner here is the brand.

jamesralph8555··on Testing Generative AI for Circuit Board Design
I tried GPT-4o in May and had good results asking it to generate react+tailwind components for me. It might not get things right the first time but it is generally able to respond to feedback well.
jamesralph8555··on Eye exercises for myopia prevention and control: comprehensive systematic review
I would recommend finding a good (modern/updated) treatment center near you that at least offers LASIK and PRK, then get a consultation. They will perform tests on your eyes and let you know which procedures will work for you. Due to factors like corneal shape and thickness, you might not be eligible for LASIK which at least makes the decision simpler. From what I’ve read, outcomes are very similar between the 3 types of surgeries. I ended up going with LASIK since you can get back to work in a few days instead of a week with PRK.
jamesralph8555··on Banging sounds heard during Titan search, according to internal government memo
Its not the pressure, but the fact water blocks radio waves. Submarines can’t get GPS signals or transmit their location. Submarines have to rely on other means such as IMUs to track their own location.
jamesralph8555··on Replacing my best friends with an LLM trained on 500k group chat messages
If you don’t have a Mac but have an iPhone, iOS does the same thing - if you back up to iTunes you can access the database file.
jamesralph8555··on TPU v4: An Optically Reconfigurable Supercomputer for Machine Learning
These things come with a lot of limitations, like not being able to work with 4D and larger tensors, plus the 8 bit quantization. Getting models to run on them is a real pain.
jamesralph8555··on Why not tell people to “simply” use pyenv, poetry or anaconda
Docker is the only way to do ML. One thing I didn’t think to do before for a while was make separate docker files for each project so all of the deps are installed automatically and that has since helped tremendously.
jamesralph8555··on Ask HN: Can I see your scripts?
Wrote this simple one to create gzipped tar backups and send them over ssh. A lot faster than rsync if you just need to back up a whole folder on a schedule. It requires pigz, which is a parallel gzip implementation.

Variables: $HOSTNAME - the computer hostname $TOBACKUPDIR - the local directory you want backed up $N_CORES - the number of cores you want to use for compression $REMOTEUSER - the ssh user login on the remote server $REMOTEHOST - the remote server's IP $BACKUPDIR - where you want the file to be backed up to

#!/bin/bash

bfile=`date +%F`.$HOSTNAME.tar.gz

    /usr/bin/tar cvpf - \
            # You can exclude local directories here with
            # --exclude="dir" \
            $TOBACKUPDIR | pigz -p $N_CORES | \
            ssh $REMOTEUSER@$REMOTEHOST "cat - > /$BACKUPDIR/$bfile"