HNHacker News
TopNewBestAskShowJobs

trees101

108 karma · joined August 13, 2021

submissionscomments
trees101··on Show HN: I built a tool that helps people scan and clean any repo for secrets
thanks, that is close!
trees101··on Show HN: I built a tool that helps people scan and clean any repo for secrets
Great. I implemented my own simple prototype, a python script that edits my clipboard. I used the pyperclip module and a yaml file with a list of key words to substitute. Substitution is necessary rather than removal, so that the AI's responses are still useful.

I got basic functions working but there are some nice-to-have things missing.

E.g. bidirectional info preservation. Ideally if i change /my_full_name/ file path, I want it to be translated to /john_doe/ and when the LLM gives back its response, I want to be able to paste /my_full_name/ back.

Also, preferably it would be highly automated, where I have to manually run my script to edit my clipboard. Also, nice to have it work for non manual cases such as when using aider-chat.

Further down the line, automated redaction of screenshots.

trees101··on Show HN: I built a tool that helps people scan and clean any repo for secrets
it would be handy in the age of AI, to be able to dynamically scrub data that gets copied/pasted into the AI.

It's too easy to leak secrets, or even doxx yourself through file paths containing your name etc.

I'd love to find a tool that made scrubbing that data easy

trees101··on Canvas is a new way to write and code with ChatGPT
I use aider with the --no-auto-commits flag. Then review code and do manual edits in VSCode, as well as manual git process. It achieves exactly what you're saying.

aider --sonnet --no-auto-commits --cache-prompts --no-stream --cache-keepalive-pings 5 --no-suggest-shell-commands`

trees101··on Show HN: Dump entire Git repos into a single file for LLM prompts
Take a look at what aider does to create a repo map using treesitter; https://aider.chat/docs/repomap.html https://aider.chat/2023/10/22/repomap.html

I guess the difference is that your script produces a complete copy, whereas aider uses a concise summary, necessary for when the context window is full

trees101··on Phind-405B and faster, high quality AI answers for everyone
Hopefully it gets evaluated on this leaderboard https://aider.chat/docs/leaderboards/
trees101··on Code Smarter, Not Harder: Developing with Cursor and Claude Sonnet
obligatory plug for aider: https://github.com/paul-gauthier/aider https://aider.chat/docs/usage.html

I run aider in a terminal, and separately review and manually code in VSCode. Usint the `--no-auto-commits` switch means that I can immediately view the diffs in the nice VSCode diff view and it's very easy to do hybrid manual and AI coding. There are plenty of handy settings (see /help), for example you can /ask questions about your code.

`aider --no-auto-commits --cache-prompts --no-stream --cache-keepalive-pings 6 --no-suggest-shell-commands`

trees101··on Cursor Has Raised $60M
can you elaborate about how you use Zed with Aider?
trees101··on I'm tired of fixing customers' AI generated code
`pipx install aider-chat`

(https://aider.chat/docs/install/pipx.html will install it globally on your system within its own python environment. This way you can use aider to work on any python project, even if that project has conflicting dependencies.)

I run it with these settings: `aider --sonnet --no-auto-commits--cache-prompts`

if you want to run the most bleeding edge version at the same time without breaking anything,

`pipx install --suffix=@dev git+https://github.com/paul-gauthier/aider.git`

then run it with `aider@dev`

`aider@dev` ... with your desired settings

trees101··on Fine-tuning now available for GPT-4o
also, aider has added experimental support for prompt caching: https://github.com/paul-gauthier/aider/issues/1086#issuecomm...

I really like the control you get with aider over the LLM context. You can /add or /drop source code, markdown notes. You can /clear the chat. /tokens shows you the context and the cost, you can see what each prompt will cost you.

I find aider best used in conjunction with a git diff view in VSCode, I run aider with --no-auto-commits and then manually review each time in VSCode.

I'm keen to learn any AI coding workflows if anyone has any links. I've benefitted greatly from tips such as using type hints and documentation for the LLM's benefit.

trees101··on How I Use "AI"
can you please elaborate on how you use Cursor and Aider together?
trees101··on My north star for the future of AI
this is a perceptive comment.

There's a lot of conversation around this, one term used is "Egregore"

https://m.youtube.com/watch?v=IQ2h7FYLTwg&t=8m30s

https://youtu.be/FY4Fil_nB_c?t=4592

trees101··on Draggable objects
I agree, it seems tricky to actually quantify. The hard part is to create the graph in the first place, before you start the graph search. There must be methods for creating simplified approximations.
trees101··on Draggable objects
Thank you!!! Comments like this are why I love this site.
trees101··on Draggable objects
Do graph search algorithms have applications for strategy? https://www.redblobgames.com/pathfinding/a-star/introduction... Consider a game like age of empires. The cost of attacking a village goes up when a wall is built around it. But when canon are invented, the cost goes down. Can we model each map (before and after invention of canon) and use it to plan a strategy? Same for building a port , portal or airport.
trees101··on Draggable objects
I wonder if graph search algorithms such as described on this site(https://www.redblobgames.com/pathfinding/a-star/introduction...) have applications in other strategies.

Consider a game like Age of Empires. In the beginning you might be able to defend your village by building walls around it. For an attacker, there is a high cost to go through the wall. But when cannons are invented, suddenly the cost of going through the wall drops.

Is there a way to model this? Can you draw a graph of the terrain that looks different before and after the invention of cannon?

trees101··on I test the best smartwatches – so why am I wearing a $15 Casio?
Battery may be long lasting but the straps seem to last about 12 months before breaking. And cost of repairs is about the same as purchase price of the watch.
trees101··on Show HN: Scribble Diffusion – Turn your sketch into a refined image using AI
What a simple, but excellent concept! I kind of expected it to crash after being posted to HN, but surprisingly it is still going strong. What does it cost to host something like that? What does it cost to generate each scribble image?
trees101··on ChatGPT and the Attention Economy
Social media turned human attention into a commodity. AI can be used as an attention multiplier to fight back.
trees101··on ChatGPT is a ‘code red’ for Google’s search business
https://www.perplexity.ai

This augments ChatGPT results with Bing results to provide references you can look up.

trees101··on Keep Your Identity Small (2009)
There could be a hidden assumption behind Graham's idea, which is that everyone (that matters) shares his beliefs. Often in the West, secular liberalism is the assumed religion and news articles, books, conversations all implicitly assume it. To people completely immersed in this paradigm, religion is merely external decoration, like a costume, that is exterior to an assumed identical core belief.

People who make this assumption got a rude shock around the time of the ISIS attacks, when they found that some people who grew up in French housing estates behaved in extremely strange and troubling ways.

Ideas have consequences, and religion is the set of ideas about the matters of utmost consequence. These ideas are inherently part of people's identity.

trees101··on Keep Your Identity Small (2009)
Thought provoking post, but the idea doesn't work. Yes, people are less inclined to get into arguments about specific technical tools if they are not educated about them. Yes, people DO get into arguments about religion even if they aren't educated about it. The difference is that religion addresses matters that ARE central to people's identity. It addresses choices that EVERYONE must make, and therefore everyone has a stake in it, unlike an arcane programming language that only impacts a few people.
trees101··on The Decoupling Principle: A Practical Privacy Framework [pdf]
A quick summary of The Decoupling Principle: Separate WHO you are from WHAT you do

An example is Apple's iCloud relay. When you browse a URL, it is encrypted and sent to the first server, owned by Apple. This knows WHO you are, but not what you are browsing. The Apple server then sends your request to the second server, operated by a third party such as Fastly. This server gets to see your URL, but it only has Apple's IP address, so it knows WHAT is being browsed, but not WHO you are.

https://media.wired.com/photos/61e0c9a0cdd4f18de04f594a/mast...

trees101··on The Decoupling Principle: A Practical Privacy Framework [pdf]
PGPP (for privacy on a cellular network) and Multi-Hop privacy relays such as the one provided by PGPP, or Apple's iCloud relay, are excellent services. Hopefully this kind of protection starts getting built into more and more consumer products. https://invisv.com/pgpp/
trees101··on Young women earn more than young men in several U.S. cities
segue from the topic at hand, but perhaps collective entities do have desires. There are many different people converging on this idea. This link has a concise analogy for how it works: https://youtu.be/4IjW16FCpkA?t=766
trees101··on Cops built a shadowy surveillance machine in Minnesota after George Floyd murder
there seems to be an imbalance of reporting about this sort of thing. When state power is used against BLM protests, we get articles about "shadowy surveillance". When state power is used to track down Jan 6 protesters, it's apparently a good thing.
trees101··on The data are clear: The boys are not all right
I'm not sure I follow your apple/tree analogy. But I would say that Christianity is true, and that therefore other truths, no matter what their source, would point in the same direction. So ideas (such as dying/rising gods) could potentially arise in paganism, yet still have some truth, and then be subsumed by Christianity.

I highly recommend GK Chesterton's book "The Everlasting Man", its a short read and still worthwhile even for atheists or those of other faiths as the author is brilliant.

trees101··on The data are clear: The boys are not all right
Yours is a really valuable perspective on this issue, and probably gives you more clarity than those of us who have grown up immersed in the values of the West like fish in water. I had a Muslim friend who used to comment on how "Christian" my country was, whereas I'd always seen it as highly secular.

The British historian Tom Holland is very good on this topic. His recent book "Dominion" is basically an examination of how Christianity so pervasively shaped the West. He's got some good interviews on YouTube if anyone wants a shorter introduction to this https://www.youtube.com/watch?v=AIJ9gK47Ogw,https://www.yout....

trees101··on The data are clear: The boys are not all right
Christianity subsumed some pagan traditions. It's hardly a secret "gotcha", it's open for all to see. In the same way that when I eat an apple, the apple becomes part of me, I don't become an apple.

There are critical differences between Paganism and Christianity. For example, the philosopher Rene Girard showed that many traditions had stories of mimetic desire and scapegoating, but Christianity showed the crucial end of that story, the fact that the killing of the scapegoat to save the community is a lie https://www.youtube.com/watch?v=LSzF2OG2ejI.

GK Chesterton has a lot of interesting things to say about Pagans also http://www.online-literature.com/chesterton/heretics/12/, and his book The Everlasting Man is worth reading for the way that it uses pagan tropes to point towards Christianity.

trees101··on Telegram Became the Anti-Facebook
agreed, the giveaway is the label "far right" to describe anyone who doesn't agree with their politics.
← PreviousPage 2 of 3Next →