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

Whoa. Who at Google thought providing this as an example of how to test your API key was a good idea?

https://imgur.com/ZIZkLU7

This is shown at the top of the screen in https://aistudio.google.com/apikey as the suggested quick start for testing your API key out.

Not a great look. I let our GCloud TAM know. But still.


it's wrapped in TLS, is ok.


What's wrong here?


Don't put your API keys as parameters in your URL. Great way to have them land in server logs, your shell history, etc. You're trusting no one with decryption capabilities is doing logging and inspection correctly, which you shouldn't.


That was the same thing that drove me to find an alternative and I also landed on ohmyposh specifically because starship lacked the transient prompt.


I'm not 100% sure what a transient prompt is, but it looks like Starship now might have support for them.

[right prompt docs] https://starship.rs/advanced-config/#enable-right-prompt [transient prompt docs] https://starship.rs/advanced-config/#transientprompt-and-tra...


https://starship.rs/advanced-config/#transientprompt-in-powe...

Starship only supports this in PowerShell for whatever reason.

Edit: Doh. I see what you linked to now. Yea, maybe it does work in more than just PowerShell now?

Transient prompt basically removes your prompt decorations and replaces it with just `>` in your scroll back history in your shell sessions. In my case it's a slightly more complex transient prompt (datetime and exit code of the command), but still greatly simplified.

Makes cut-and-paste of history in to docs and stuff super nice.


A WIP but evolving, it watches your active tmux panes and allows you to work with AI agents who can interact with those panes. For command line folk, this could feel like a pretty good way to bring AI in to your working life.


...and the majority of their internal development systems they used for all their chip design and layout.


Not the OP of this thread, but for our setup the phone is just for the CGM. The pump (Tandem T-Slim) talks directly to the CGM (Dexcom G7) and doesn't need the phone as an interface between them.

The phone just sends the CGM data on to the cloud so we can see his numbers any time.

I also have a NightScout setup that's downloading his CGM data and saving it for us. It's not strictly necessary for anything we're doing, but I like the saved data and it's was useful for working with his Endo when they hadn't yet bought a Dexcom clinic license.


We also use an iPhone SE for our T1 teenager. One drowned in the ocean a few years back, but other than that they've been pretty robust and reliable for us. We do Otter Box them with a screen protector.


Github is rate limiting viewing that right now. :D


I'm kitty + tmux and have been for a while now. What kind of problems were you encountering?


I recently moved from Kitty+Tmux to Tmux only setup. I think the maintainer has implemented most of the features in tmux like split panes, switching, changing layouts etc and is probably why says what he says.

For me, I've found Kitty quite configurable enough to have everything except the remote server thing. I used this as my guide: https://www.reddit.com/r/KittyTerminal/comments/z2p2sh/ditch...


Do you mean Kitty only setup?


I've been a long tmux user, but I've migrated to Kitty only setup. To make my muscle memory feel at home, I configured Kitty with nearly the same keybindings as tmux. Here is my setup https://blog.funcer.xyz/blog/kitty-terminal/


I appreciate his efforts, but tmux from my cold, dead hands. kitty is nice and fast, but tmux is in my blood (and on remote servers where kitty isn't).


He has to do something big to take all the attention off the other stuff he's doing. The not so good stuff.

https://en.wikipedia.org/wiki/Not_Like_Us


https://www.supremecourt.gov/opinions/23pdf/23-108_8n5a.pdf is I believe what they're referencing. And it definitely muddied the water.


Agree. But it doesn’t solely condition corruption on the timing of the payment. (We’ll have to see how it works in practice. McDonnell was similarly criticised, but wound up being much less impactful in practice [1].)

[1] https://en.m.wikipedia.org/wiki/McDonnell_v._United_States


Oh yea, I agree. It's a twist, but not a get-out-of-corruption-free card.


That case doesn’t muddy the water, because it doesn’t address the requirements of bribery law at all. In the trial below, the prosecutors disavowed that they were proceeding on a bribery theory. The jury was never instructed about the required elements of bribery.

The only thing the Supreme Court decided in that case was whether that specific statute encompasses a gratuity theory. That’s illegal for federal officials under a different statute that was not invoked in this case.


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

Search: