News for hackers. Stuff that matters.

Harlekuin

Ask HN: Hard Mode for LLMs

Does anyone have any experience or results with using system prompts that intentionally make LLMs more annoying to encourage better habits?I believe that consistently using an LLM for creative or solution building tasks will: - degrade critical thinking skills - degrade knowledge - encourage apathy - degrade knowledge acquisition skills - trades short term benefit for heavy long term lossI...

( Read More... | no comments | 2 points | on HN )
Re:Ask HN: What Are You Working On? (October 2025) on Sunday October 12, 2025 @08:36PM (#45563510)
AutoDocument: https://github.com/TomMalkin/AutoDocument

Imagine your basic Excel spreadsheet -> generating document files, but add:

- Other sources like SQL queries

- User form (e.g. "Generate documents for Client Category [?]")

- Chaining sources in order like SQL queries with parameters based on the user form

- Split at multiple points (5 records in a csv, 4 records in a sql result = 20 generated documents)

- Full Jinja2 templating with field substitution but also if/for blocks that works nicely with .docx files

- PDF output

- output file names using the same templating: "/BusinessDrive/{{ client_id }}/Invoice - {{ invoice_id}}.pdf"

All saved in reproducible workflows (for example if you need to process a .csv file you receive each morning)

Show HN: AutoDocument – Multi-Source Document Generation

https://autodocument.app/

Hi there, this post is introducing AutoDocument, a free and open-source document generating web app that connects spreadsheets, databases and user forms into documents such as Microsoft Word and PDFs. It's based on fantastic open sources libraries like https://github.com/elapouya/python-docx-template and headless LibreOffice.Mail Merge is a pain because it:- Only converts from Excel to Word-...

( Read More... | no comments | on HN )

Ask HN: Would you have an interest in a Document Automation project?

Hi HN,Since leaving my job I've created a prototype of a project that would have helped me immensely in that job.It is essentially a self-hosted document creator where you can chain all kinds of sources together (CSV/excel, SQL queries, API calls, user forms etc) where the output of one can be the input of the next and create 1 or more documents (Word, PDF, HTML, all kinds of outputs) using a...

( Read More... | 2 comments | 2 points | on HN )

Ask HN: Why aren't SQL queries compiled?

If the database knew what queries were running ahead of time and have them compiled you could easily defend against SQL injection because the SQL isn't being interpreted as it's run, and it would be possible to run analysis over the query to see if there are any indexes or implementations missing that could speed it up. Something like a stored procedure's variable substitution but not...

( Read More... | 11 comments | 2 points | on HN )
Re:Show HN: Each country as a Pokemon, using Stable Diffusion on Tuesday September 20, 2022 @06:37PM (#32918716)
Australia is a kangaroo with nipple tassels and a missing toe - pretty spot on
Funny coincidence, the logo is very similar to a convenience store we have in Australia: https://nightowl.com.au/
Re:The worst tool for the job on Wednesday July 29, 2020 @12:05AM (#23983426)
> You must be responding to how you feel, because you sure as hell aren’t responding to what I wrote.

I'm just responding to that quote from your last post.

> When you wear particular clothing, it communicates which group you identify with or want to associate with.

Agree to a point, but I don't think "Boring" is generally a group someone would try to identify/associate with (I'm assuming you're using boring as a derogatory term here). I also disagree that outgoingness is synonymous with how interesting a person is (in fact I'm sure you'd agree there are many instances of the contrary).

And outside of being "good" or "bad" at non-verbal communication you're forgetting another important direction: people who do not care.

Take you for example - I find you very interesting because you have strong opinions that differ to mine - It would have been a shame had I immediately categorised you as boring given the sunglasses you were able to afford or if you didn't care about sunglasses beyond their function.

Re:The worst tool for the job on Tuesday July 28, 2020 @07:41PM (#23981874)
> all the mid-range sunglasses are super boring and make you look boring. Great for going out and meeting other boring people.

Found this comment rubbed me the wrong way - seems insane to me to judge the boringness of a person by the price of their sunglasses

Re:Containers vs. Zones vs. Jails vs. VMs (2017) on Monday April 06, 2020 @08:04PM (#22799151)
> everybody has a layer of abstraction they do not peek under

Reminds of this xkcd: https://xkcd.com/435/

The beauty of programming is abstraction - you write a function to do one thing, do it well, and then you can abstract that concept away and reuse that abstraction. Although it's only an abstraction - a container is "like" a lightweight VM, and you can use it like that until it doesn't act like a lightweight VM. In which case, you have to dabble one layer deeper just to understand enough to know why the abstraction of your layer isn't a perfect analogy.

In which case, if you're looking for an expert in layer n, then basic knowledge of layer n - 1 might be a decent proxy for expertise

Re:Tesla produces its millionth car on Tuesday March 10, 2020 @12:47AM (#22532802)
1,000,000th electric car