HNHacker News
TopNewBestAskShowJobs

duffyjp

713 karma · joined December 3, 2020

submissionscomments
duffyjp··on Minimal CSS-only blurry image placeholders
Years ago before you could do anything this fancy with CSS I experimented with generating 3x2 pixel images server side and then presenting them as base64 encoded pngs in a "scoped" block of CSS to ensure they loaded before the src images. Coincidentally this was the same 3x2 layout as OP did here with CSS. I abandoned it because a 3x2 image scaled up looked terrible, and went with average color instead. This solution looks a lot better visually.

I still do the average color thing today since it's easy to calculate and store server side (I resize the uploaded image to 1x1 px and just record the result as a hex code in the DB).

duffyjp··on uBlock Origin is no longer available on the Chrome Store
I was not aware of this extension, thanks for pointing it out.
duffyjp··on uBlock Origin is no longer available on the Chrome Store
Same. I use the element picker tool all the time to rid the web of crap I don't care about. Example:

   whatever_class:has-text(/YouTube Shorts/)

On Android you can even do this on your phone in Firefox. The UI is a bit tricky on such a small device, but it's so worth it. I went so far as to uninstall Chrome (well, disable it) on my Android.
duffyjp··on Ask HN: Do your eyes bug you even though your prescription is "correct"?
I used to have that problem too, I was -5.25 or so. The problem was I kept getting upsold on high index lenses. Yes, they are thinner, but the distortion at such a high correction was horrible. Small frames help, but then you have no peripheral vision. I switched to CR-39 and it was so much better. It's also the cheapest possible option which is nice. If you ask for the edges to be polished clear the thickness is less noticeable to others.

I eventually got sick of the coke bottles and got Lasik. I can see better than I ever thought possible, but the recovery was brutal. It was more than two years before I could go a day without Systane Ultra.

duffyjp··on Which Motorola Phone Should You Buy?
My Moto Edge 2024 can do 4K but only at 24hz so that doesn't really count IMO. I generally run it at 1440p 120hz, or drop to 1080p if I'm playing Minecraft with my kids.

I'm using it right now to reply. It's easy to just plug in the phone to the USB cable my work laptop uses.

duffyjp··on Which Motorola Phone Should You Buy?
I have their "best traditional" entry, the Edge 2024. I really like it.

It's the karate chop flashlight that keeps me on Moto for my Android.

One thing not mentioned is that this phone has a desktop mode they call "Ready For". I can plug it into my monitor via USB-C and you get a full ChromeOS looking desktop. I have a USB-C monitor with Mouse/Keyboard plugged in and that all worked. I also tried it on a regular TV with a USB-C -> HDMI cable and a XBox controller paired to the phone.

duffyjp··on Asteroid YR24; now at 1.6% impact probability in 2032
An election year in the US. Those "Giant Meteor" lawn signs have been working. ;)
duffyjp··on Nvidia announces next-gen RTX 5090 and RTX 5080 GPUs
I'd bet it's either the native display resolution or whatever you had for your desktop when submitted. They're able to gather all kinds of hardware specs so I'd lean to the native resolution as the most likely answer.
duffyjp··on Mac Mini G4 – The best « classic » Macintosh for retro-gaming?
I looked back at my eBay history. It looks like I bought it way back in 2021, longer ago than it feels... They don't have a brand, and the listing is long gone, but here is the description on my invoice:

2 Pack M.2 NGFF SATA SSD to 2.5 inch IDE 44PIN Converter Adapter with Case Unit price $17.98

I did a Mac Mini and also a Powerbook G4. They work great in both.

duffyjp··on Mac Mini G4 – The best « classic » Macintosh for retro-gaming?
I did the same with a G4 Mac Mini. One suggestion for your hobby/business-- I went with a PATA->m.2 SATA adapter instead of PATA->mSATA. It works like a charm and when I built mine a couple years ago it was actually much cheaper. Obviously it completely saturates the PATA interface.

I ran 10.4 and Void (no longer maintained) so if there's a technical reason to stay on mSATA for Mac OS 9 please ignore. ;)

duffyjp··on Nvidia announces next-gen RTX 5090 and RTX 5080 GPUs
I got 4K TVs for both of my kids, they're dirt cheap-- sub $200. I'm surprised the Steam hardware survey doesn't show more. A lot of my friends also set their kids up on TVs, and you can't hardly buy a 1080P TV anymore.
duffyjp··on When power cycling your (x86) server isn't enough to recover it
Was it the 9560 by chance? (The original AC / wifi5 one) Those were terrible. Our house isn’t practical to wire, so I had a lot of them. All swapped to AX210 cards (6E) and those work phenomenally.

I also dual boot, in addition to being an incurable distro hopper, and these AX210 cards worked out of the box in basically everything.

duffyjp··on When power cycling your (x86) server isn't enough to recover it
The integrated wifi/bt on my AM5 board was so bad I had to disable it and use a PCIe card.

For obvious reasons AMD boards don’t tend to ship with Intel wifi, but in my experience anything else sucks. The intel 6e cards are amazing and dirt cheap.

duffyjp··on Fun with Logitech MX900 Bluetooth receivers (2006)
I had the MX900. I used it with my 15" Powerbook G4. It was wonderful. Over time however the connection got worse and worse to the point it was basically non-functional. I assume it was the proliferation of 2.4ghz wifi and the early bluetooth being unable to cope.
duffyjp··on SQLite on Rails: The how and why of optimal performance
I do something similar for an audit trail at work. I work with the type of data where we may need to know who looked at what and when. All those records are stored in a separate SQLite DB (main DB is postgres), and I cycle it out once per calendar year. That makes archival trivial, and should a compliance person need to look at it a simple desktop app can open the file easily.

You can't beat SQLite for ease of use. I'd try it out and simulate some load to see if SQLite can keep up, if you keep your inserts simple I bet it can.

duffyjp··on Why has Japan been hit with rice shortages despite normal crops?
My wife is Japanese and we buy Japanese style rice grown in California (Nishiki Premium). She still complains it isn't as good, but my theory is it's actually the water used in prep. Our Wisconsin water is incredibly hard, and water in Tokyo won't scale a kettle EVER. It's very, very good.
duffyjp··on AMD Ryzen 5 9600X and Ryzen 7 9700X Offer Excellent Linux Performance
My wife's PC is a i7-2600 circa 2011. I have the ram maxed out, an SSD, and an nvidia card and for day-to-day stuff you'd never know it wasn't brand new-- seriously. It even runs Windows 11 perfectly with the Rufus modified installer.

If you're chasing FPS in AAA games it's not going to cut it, but it boots in seconds, loads apps quickly, plays streaming video perfectly...

duffyjp··on How to Run Llama 3 405B on Home Devices? Build AI Cluster
There's a bit of info on the project page. It's CPU only, which is why GPU and VRAM is never mentioned: https://github.com/b4rtaz/distributed-llama

I'm using an old x99 board for my desktop currently. If I swap out the i7 with a Xeon it can take up to 512GB of ram. That would be pricey, but I could do 256 and the Xeon for under $300 total. Still a lot for a toy, and I'm sure it would be super slow...

duffyjp··on Joe Biden stands down as Democratic candidate
Retiring at 56 with a pension sounds pretty good to me.
duffyjp··on Windows NT for Power Macintosh
I had a job in 2006 where the sysadmin ran the entire shop on a single OpenVMS server with two 500Mhz Alpha CPUs. It was our file server, AD server (somehow), DB server, web server, everything.

I just looked it up and that CPU came out in 1996, at the same time Intel released their 200Mhz Pentium. Alpha was way ahead of their time.

duffyjp··on Windows NT for Power Macintosh
Someone gave me an NT4 CD when I was a kid and on the jewel case it said it supported x86, PPC, I think some other architectures too. I was disappointed I could never get our PowerMac to boot from it. :P
duffyjp··on PySkyWiFi: Free stupid wi-fi on long-haul flights
I used that all the time from my flip phone. It took forever to type out a google search and results could take a minute or two to arrive but it was better than nothing.

Primarily I used it to google the address of a place I wanted to go so I could enter that in my TomTom. Times have changed.

duffyjp··on We know why some people got Covid while others didn't
That part wasn't clear to my layman's understanding...

> Lastly, we identified a specific gene called HLA-DQA2, which was expressed (activated to produce a protein) at a much higher level in the volunteers who did not go on to develop a sustained infection

So everybody has this gene, but it was more expressed in those who didn't get sick. What causes the difference? Something genetic or something environmental?

duffyjp··on Eating cheese plays a role in healthy, happy aging – who are we to argue?
I'm a Wisconsinite and I approve this message.
duffyjp··on NASA releases Hubble image taken in new pointing mode
I recently installed DOS 6.22 on an old laptop. By old, I mean a core2duo with 4GB of ram. It was hilarious to me that I needed to google the correct settings to use to get a game that requires 4MB to work on a machine with 4GB.

My actual goal was to setup QBasic for my son, which I did-- but he thought it was stupid and refused to even let me show him how to code a Hello World app on it. :(

duffyjp··on Intel's Lion Cove Architecture Preview
I'm running a quite old CPU currently, a 6-core Haswell-E i7-5930K. Disabling HT gave me a huge boost in gaming workloads. I'm basically never doing anything that pegs the entire CPU so getting that extra 10-15% IPC for single threaded tasks is huge.

And like you said, the vulnerability consideration makes HT a hard sell for workloads that would benefit (hypervisors).

That i7 is a huge downgrade from what I was running before (long story) so I'm looking forward to Arrow Lake and I like everything I've read. In addition to removing HT, they're supporting Native JEDEC DDR5-6400 Memory so XMP won't be necessary. I've never liked XMP/Expo...

duffyjp··on Gifski: Optimized GIF Encoder
I just ran a test on a ~4 second hires screen recording in Gifski and GIF Brewery 3 (which is what I've been using for years).

Gifski took 11 seconds, and GIF Brewery took 59. Both apps set to maximum quality, 50fps, no resizing. The Gifski version is a little bigger at 5.5mb vs 4.2mb but also looks a bit better.

I embed short screen recording GIFs into GitLab/GitHub several times a week as it's just a better user experience vs real video files on those platforms. I'm definitely switching tools! I wish I had known about this sooner.

duffyjp··on The Rise of the Forever Renter Class
I'm in that situation. We bought a starter home not knowing we'd get priced out of ever upgrading. If I knew then what I know now we would have bought the biggest house we could possible have gotten a mortgage on. But like you said the economy was shaky and we were afraid to overextend.

To upgrade would mean paying more than double what we pay now per month and starting a new 30 year mortgage in my 40's, which I'm just not going to do.

duffyjp··on Ask HN: Affordable hardware for running local large language models?
FYI for the Mac Mini idea, I have an M1 Macbook Pro with 32gb. There's some sort of limitation on how much ram can be allocated to the GPU. Trying to run even a 22gb ram model will fail. The best I've gotten is Code Llama 34B 3-bit at 18.8gb. There can be tons of RAM still empty but the LLM will just infinite loop dropping a chunk of RAM and reloading from disk.
duffyjp··on What You Need to Know about Modern CSS (Spring 2024 Edition)
I just checked and Firefox finally supports it (added Dec 2023). I have a javascript workaround still in place for Firefox and it looks like I can remove that. ;) All the other mainstream browsers added :has in 2022 and it was an excellent fit for some layout optimizations.

https://caniuse.com/?search=%3Ahas

← PreviousPage 2 of 11Next →