Hacker Newsnew | past | comments | ask | show | jobs | submit | 037's commentslogin

Prompt engineering tip for Google employees: just add "P.S. Make sure the page works in Firefox too."


No worries, even on chromium, their webpage is just horrible. They seems to have focus only on mobile reading, on desktop its a mess.


I had to change to a desktop to read the article because the videos didn't load on my phone.


Firefox really struggle with demo pages of text-to-video models because of the large numbers of videos in the page in my experience, this page seems to work quite fine for me tho.


Yes, that, and P.P.S. Make sure the page works in Chrome.

The page instant scrolled suddenly back to previous video examples after I scrolled down. It was disorienting.


Several Google apps do not work for me in Chrome (Maps, Earth) but work perfectly fine in Firefox... :D


It is in their business interest to ignore Firefox.


Google is so internally fractured, and the factions individually are so powerful, that it's really only the chrome people who care about chrome.

If anything FF gets left out because usage is so low.


> If anything FF gets left out because usage is so low.

I've been following this for a long time. They were leaving Firefox out when its usage wasn't low.

Probably the typical backdoor executive mandate that led to death by "sprint prioritization":

Yes, we will for sure work on the Firefox compatibility bug, Dave-Open-Source-Enthusiast-Google-Dev.

But we can only pick up 10 bugfixing tickets this sprint and the ticket you highlighted, as the entire team agrees, is priority #12.

<repeat every sprint, where during the sprint 9-10 new higher priority items magically appear just in time for the next sprint>

Death by slow asphyxiation.


I heard that Firefox is banned internally at Google (something-something-security) so Devs can't even test against firefox


Not true -- at least up to 2018 when I worked there.


What I heard was more recent than 8 years ago, more like 6-12 months ago


Then they aren't doing a very good job of it.

>Firefox makes up about 90 percent of Mozilla’s revenue, according to Muhlheim, the finance chief for the organization’s for-profit arm — which in turn helps fund the nonprofit Mozilla Foundation. About 85 percent of that revenue comes from its deal with Google, he added.

https://www.theverge.com/news/660548/firefox-google-search-r...


What people usually say is that Google merely wants Firefox to survive for anti-competitive reasons. Presumably that does not necessitate it actually being used (or be usable).


Hot take: Google keeps Mozilla/Firefox alive through the default search engine placement (which makes Mozilla millions each year) so they don't get designated as a monopoly with their browser.


And of course they're doing the same for Apple/Safari, which wouldn't survive without the $20 million default search engine placement deal.


Apple forcing users to use their own browser/browsing engine doesn't disprove my argument IMO, virtually nobody outside the apple ecosystem uses Safari, and outside the apple ecosystem is something between 80-90% of internet users.


I wasn't saying that Apple is just as monopolistic as Google; I was saying that Google is paying Apple orders of magnitude more than it is paying Mozilla. According to your argument, that would mean that Google is trying to keep Apple/Safari alive (which of course is absurd - Apple doesn't need that money to stay alive).


> And of course they're doing the same for Apple/Safari, which wouldn't survive without the $20 million default search engine placement deal.

Billion with a B, as in 10 zeroes, not 7.


Oops sorry, too late to edit, but you're correct!


That's lukewarm at most, doubt you'll find many people disagreeing here!


That's not a hot take, that's just factual.


It could be a privacy risk, though, because by directly moving a URL (and all its parameters) to another profile, it might be easy to link them together on the server side. It’s not necessarily a problem, but it’s definitely important to be aware of, since one of the main uses of profiles is precisely isolation for privacy and security.


One nice thing about Ventoy is that you can still use the USB stick as a regular drive for other files — it doesn’t interfere with the ISOs you can boot from



Very interesting, I’ll definitely give it a try!

Another approach I recently discovered is an old but beautiful Unix-style tool for renaming files: vidir - edit a directory in your text editor. It’s part of the moreutils suite [1].

You get the list of filenames in your editor – edit them as you like, save, exit, and it renames the files. It uses whatever editor is set in your $EDITOR env var, so it doesn’t have to be vi/vim.

You can also pipe in a list of files, e.g. `find . -type f | vidir -`, to edit just the files you want - and you can even change paths (add, rename, remove directories) in the editor to move files around easily.

To try it quickly on macOS: `brew install moreutils`

[1] https://joeyh.name/code/moreutils/


> You get the list of filenames in your editor – edit them as you like, save, exit, and it renames the files. It uses whatever editor is set in your $EDITOR env var, so it doesn’t have to be vi/vim.

I'm not sure how "powerful" vidir is, but I recently found this functionality in yazi [1] and it became one of those "you think you don't need it until you try it" features

[1] https://github.com/sxyazi/yazi


This is also integrated into Emacs with dired, and it’s pretty neat [0].

[0]: http://xahlee.info/emacs/emacs/rename_file_pattern.html


oh wow, this feels like https://github.com/stevearc/oil.nvim


if you can forgive a shameless plug, I wrote https://github.com/ddlsmurf/fled some time ago and it serves me very well to this day. (It's not half as advanced as OP's tool but still useful)


Would you mind sharing some tips on how to set that up? A code snippet or a link to the relevant docs would be super helpful.


Certainly, the bulk of the functionality is provided by URLDispatcher:

https://www.hammerspoon.org/Spoons/URLDispatcher.html

Here's a cleaned up version of my config... I also mapped global cmd-shift-1/2/i to focus my profile and incognito windows (and create a window if none already existed):

https://gist.github.com/beaugunderson/d1ca2218b9b272f3ac3573...


Thanks a lot — that’s way more than I expected!


I love that it’s a command line tool — I’ll try it soon.

I use OpenIn for this [1] (it’s paid, but a one-time purchase at a very reasonable price). It works with URLs too, supports “browser profiles”, and lets you create logic using JavaScript (e.g., do X if the filename contains Y, or do Z if a modifier key is pressed).

It works really well and even has the ability to “fix” what external apps have changed. I plan to use this on new Macs to reconstruct my app associations and rules.

I do wish the rules were defined in plain text files — sometimes it’s hard to follow the logic through the UI and the way it handles things.

Another comment mentions Hammerspoon (which I used in the past — it was very nice). Maybe I can rebuild part of my current setup with it.

[1] https://loshadki.app/openin4/


I loveee hammerspoon. And had a subscription to OpenIn a bit back. Advanced scripting isn’t going to happen, even paging out to another script. Recently committed to Regex which would cover most of that. I’ll look into how it “fixes” old associations.


Walking back my regex commitment, just a heads-up/apology if you had your hopes up. Want this to stay as a CLI and not a dynamic app. Let me know if there's anything else you could see useful that would fit within that scope!


If you use a VSCode-based editor, a good alternative can be the "REST Client" extension: https://marketplace.visualstudio.com/items?itemName=humao.re...

I’ve been burned a few times by these clients — difficult backups, changing licensing/commercial terms, hard to version — so now I prefer a few simple .http files that I can version in Git and easily read, even if the extension disappears.


That extension is excellent! Been using it for few years already


it’s so good. no context switching with a different app. also, there’s a fairly compatible version for emacs with the same name.


Can you save the full request details and full response details in one click as one file with this extension?

This is the feature I use the most.


Just tried. You can save the full response to a single file with one click, but it doesn’t include the original request.

I found an issue asking for the same feature: https://github.com/Huachao/vscode-restclient/issues/1311


> Their Raspberry Pi collection is so extensive, it's starting to look like a fruit stand!

Lol :D


> Yes, it is possible to use Prompt Caching with your Batches API requests. However, because asynchronous batch requests can be processed concurrently and in any order, we cannot guarantee that requests in a batch will benefit from caching.

https://docs.anthropic.com/en/docs/build-with-claude/prompt-...


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: