Better HN
topnewbestaskshowjobs
Log inSign up

brumar

197 karma · joined Dec 13, 2020 (5y ago) · 99 submissions

Submissions

comment 1y ago · link · parent

I got this one which seems to confirm yours : https://gist.github.com/brumar/5888324c296a8730c55e8ee24cca9...

comment 1y ago · link · parent

20 years ago I was addicted to a game like that named Globalcombat.com. Good times. Few years ago it was still alive. Now it seems gone.

comment 1y ago · link · parent

Correction: extract monstreous profits. When I read about the revenues associated with Reddit AI deals, I can't even imagine what could possibly be deals that cover half of the internet. Cynically speaking, it's a genious level move.

comment 1y ago · link · parent

I am doing pdf-as-software so that I can get a free ticket for hell or a nearby mental asylum.

comment 1y ago · link · parent

So LLMs have their alpha go zero moment where training on human data is has-been? Sounds exciting? Terrifying?

comment 1y ago · link · parent

Very important comment. My workflow changed dramatically with the increased capabilities of these tools.

comment 1y ago · link · parent

Sampling is to my eyes a very promising aspect of the protocol. Maybe its implementation is lagging behind because it's too far from the previous mental model of tool use. I am also fine if the burden is on the client side if it enables a good DX on server side. In practice, there would be much more servers than clients.

comment 1y ago · link · parent

> that plaintiff shall not file any other documents with the cartoon dragon or other inappropriate content

Formal answers to goofiness (voluntary or not) will always amuse me.

comment 1y ago · link · parent

Hello fellow context owner. I like my modules with their context.sh at their root level. If crafted with care, magic happens. Reciprocally, when AI derails, it's most often due to bad context management and fixed by improving it.

comment 1y ago · link · parent

True. I learned this the hard way.

comment 1y ago · link · parent

Impressive! Is it english only at the moment?

72.

Show HN: I asked Gemini2.5 pro to create a "bro version" of a stoic book(github.com ↗)

8 points · by brumar · 1y ago · discuss

comment 1y ago · link · parent

Interesting! I think I never tried to update xonsh in 7 years or so.

comment 1y ago · link · parent

For me it shines when you need to write shell scripts but you prefer do some parts in python. As another commenter wrote os.system or calling the subprocess module works too, but I find it less satisfying.

comment 1y ago · link · parent

I don't remember exactly why and how some shell scripts refused to run, but on top of my head I think 'alias' was not working and 'sudo !!' too.

comment 1y ago · link · parent

I would not advise to replace your interactive shell with it as it's a pain when you stumble upon uncompatible commands, but writing shell scripts with xonsh is a wonderful experience.

comment 1y ago · link · parent

> Do not isolate code when you test it.

> Only isolate your code from truly external services

That makes tests more trustworthy but also sometimes harder to maintain I think. I have seen cases where small changes on the code base created strong ripple effects with many tests to update. Arguably, the tests were not very well written or organized and with too many high level tests. Still, this and the very large execution time of the test collection made me realized that for medium to large projects, I will be much more careful in the future before going all in with the no-mock approach.

comment 1y ago · link · parent

I think I got your point but might have expressed myself badly. The pdf can run js and messes with the display right at opening time, without any warning or ask for permission.

comment 1y ago · link · parent

You can manipulate form fields at anytime, and setInterval is provided so you can have things that run in an infinite loop. But yeah, as a first approximation, the only things js in pdf can do is mutate form fields and react to events related to form fields, unless your pdf reader is acrobat and that's something else entirely.

comment 1y ago · link · parent

I made a game of life in pdf using this technique, but pdf.js is less open to chromium to respect the standard on letting the pdf designer defining the ON and OFF state.

One other way would be to use normal text fields and leveraging custom fonts. I think there are an enormous potential with fonts in the realm of pdf hacking. I think there is also a story of past vuln on pdf.js because fonts were evaluated outside the sandbox.

comment 1y ago · link · parent

This is even in the ISO standard now

comment 1y ago · link · parent

I was considering doing exactly that ahah. We should connect to share our hacks and pains. One could project would be to run wasm4 games because, yes, pdfium and pdf.js can run webassembly.

comment 1y ago · link · parent

Thanks. I tried the AI assistant but ended up mindlessly mining crypto...

comment 1y ago · link · parent

I regret there is not a merciful option like "wait for death in a corner".

Great job! I had fun and got bored to death at the same time.

comment 2y ago · link · parent

Med student working on sophisticated RAG system... What kind of beast are you? Thanks for sharing anyway, I'll keep tab on it.

comment 2y ago · link · parent

I second this recommendation for early startups. We learn from tons of lean books that customer discovery is crucial to not build the wrong thing, but this book gives very practical ways to do that well. Most recent useful read for me. Still in the lean canon, a great complementary read could be lean marketing, as validating your sales channel is of an equal importance of validating your PMF.

comment 2y ago · link · parent

I schemed the readme, but did not see support for prefixing each line with line numbers, this is an absolute must have for people like me who have a workflow centered around generating git patchs. In my experience that gives generated patchs much more chances to be incorrect.

comment 2y ago · link · parent

On the reddit discussion, one user pointed out that email adresses were incidently collected. https://www.reddit.com/r/programming/s/lBfxL7f2KM

comment 2y ago · link · parent

I use xonsh as a shell for few years but I think I will go back to another shell as I am too frustrated with incombatibilities. That's being said, my xonsh scripts are there to stay, I still think that's an excellent way to build scripts.

comment 3y ago · link · parent

A related theory (and book with the same name) is 'Learning as a generative activity', which states that learning occurs when one uses informations / half-backed k owledge to produce new content.

It becomes more relevant these days since we tend more and more to outsource content creation to the machines. This theory would predict that we would learn less doing so.

1234