Does anyone know how to reliably use Firefox from command line to take screenshots? It used to work well a few years ago but now it does not. For one, it asks that Firefox is already running and I need to kill it. This is surprising -- why can't two Firefox processes run at the same time?
It is whining about the shared use of your main profile directory. You can give it a temporary profile directory to more clearly express your intentions via "--profile=/tmp/$(uuidgen)" or similar. I'd guess you could even just straight up point <<env HOME=$(tmpdir) firefox --screenshot...>> for even stronger isolation
The CLI has long had `-noremote` for a long time to tell it you want a second Firefox. It's useful with `-ProfileManager` or `-P $profileName` for multi-profile workflows, which are out of fashion this decade, especially with Multi-Account Containers being able to do most of those workflows in the same browser window now with different tags. But some of us still have ancient profiles for ancient reasons and ingrained habits regarding them.
(You don't have to create and destroy a profile directory every time, but it's cleaner to do that way and you need one per instance you're going to run anyways)
I wonder if there's a support element that would have obstructed the field of view over a narrow angle. This has been the cause of automobile accidents when cars approach at just the correct speeds to keep the other vehicle behind the pillar at the side of the windshield.
That's neat! I turned it into a one liner `rm todays_nyt.pdf; wget -q "https://static01.nyt.com/images/$(date +%Y/%m/%d)/nytfrontpage/scan.pdf" -O todays_nyt.pdf && open todays_nyt.pdf
`
make the difference between successful and unsuccessful projects. Huggingface has nice (in a certain sense) tools for training and doing inference on small LLMs but is a train wreck when it comes to model selection and preprocessing. (To be fair a few years back I tried developing a general purpose trainer that worked for bigger models that scikit-learn would handle but did the model selection and preprocessing well and didn't like the answer I got)
reply