Better HN
topnewbestaskshowjobs
Log inSign up

pbsds

50 karma · joined May 28, 2020 (6y ago) · 27 submissions

Submissions

comment 1y ago · link · parent

a mean rating of 3 can only be 100% fresh if the variance is 0

comment 1y ago · link · parent

If concentration of control over concentration scares you then a social media not owned by the US should be welcome. Now you have an all-american echo chamber.

comment 1y ago · link · parent

Trains are more comfy, almost silent and way more convenient. You don't have to start traveling to the airport 3 hours in advance. There is also this little silly thing people talk about called global warming

comment 3y ago · link · parent

...reproducable? Doesn't GPT change all the time?

comment 3y ago · link · parent

I've been wanting something like this for a long time

comment 4y ago · link · parent

Gron has the same issue, as it too is written in go and randomizes key order.

comment 4y ago · link · parent

It's when a package manager updates Firefox while it's running.

comment 4y ago · link · parent

I prefer the Firefox solution. Chrome "solved" this by running the outdated version untill restart. But if you click a link outside of chrome it opens in a new instance of the updated version, without your old tabs. If you at this point close all chrome windows then you've lost all the tabs on the outdated instance.

comment 4y ago · link · parent

A 3d spider could easily be invisible to the 2d guy, by simply staying clear of his viewing plane. Hence why the "approaching perpendicular to his plane of existence" YouTube comment is actually terrifying.

comment 4y ago · link · parent

Many editors support the rmate protocol, enabling you to open a remote file from a ssh session in your local editor.

comment 4y ago · link · parent

For this i combine entr and rsync

comment 5y ago · link · parent

You could implement your design in nmigen [1], use it to generate either verilog or rtlil, then use yosys (via [2]) to reduce it to an AND and NOT circuit (using the 'aigmap' command), then visualize it with [3]

[1]: https://github.com/nmigen/nmigen

[2]: https://yowasp.org

[3]: https://github.com/nturley/netlistsvg

comment 5y ago · link · parent

Could a equation OCR system like [1] be combined with a screen reader? It seems to support asciimath

[1]: https://mathpix.com/ocr

comment 5y ago · link · parent

    _("Hello, {name}).format(**vars())

comment 5y ago · link · parent

> 5/ As Dr Ian Harris said, the unsaid attitude could be stated like: “you have to operate on patients quickly before they get better“.

Wow, really puts a new perspective on the usually massive wait times here in Norway.

comment 5y ago · link · parent

This survey doesn't have a case for those who know of Nim but have yet to try it out. Expect a lot of 'other' responses to read through.

comment 6y ago · link · parent

This has for me been a godsend after corona hit. The ".remoteenv" file is for me the killer feature. Being able to bundle remote-cli in my python-poetry dev environment makes the setup trivial as well.

For those interested, here is my ".remoteenv" file to setup poetry using conda: https://gist.github.com/pbsds/fe243e518717531b10b2782add5192...

18.

Remote-CLI: execute tasks on remote hosts while working locally(github.com ↗)

2 points · by pbsds · 6y ago · 2 comments

comment 6y ago · link · parent

https://docs.python.org/3/whatsnew/3.8.html#cpython-bytecode...

https://bugs.python.org/issue33387

comment 6y ago · link · parent

Have you tried enabling pixel-perfect scrolling?

comment 6y ago · link · parent

I agree on the monkeypatching of pathlib. It makes it difficult for a reader to look up what the functions do. Providing a different module, like `import nPathlib as Pathlib` would be a lot more discoverable.

comment 6y ago · link · parent

Not guaranteed

comment 6y ago · link · parent

Worth mentioning is NimScript, a subset of nim which can be interpreted, and embedded like lua: https://nim-lang.org/docs/nims.html

If for some reason the nim compiler starts becoming slow, then this could also drastically speed up development

comment 6y ago · link · parent

All of these cases should really be done by the compiler on O3.

comment 6y ago · link · parent

This one is also web-based, but it takes graphviz source: https://sketchviz.com/new

comment 6y ago · link · parent

I have a love-hate relationship with `micro`:

When it works i love it. I have used it as my go-to editor for at least the last 2 years for quick edits and remote development. It is distributed as a static binary you can put in your `~/.local/bin`, making it is easy to install on systems you don't have admin access to. It has decent syntax-highlighting, lots of themes, easy to configure and has a very gentle learning curve. I'd say micro is a better alternative to nano for beginner, with the exception that nano works better in more limited terminals like putty and cmd.

However, at times it simply stops being able to access the X clipboard. It doesn't support code folding. And after longer sessions it seems to run out of space on the LUA stack. (Some lua calls don't properly clear the stack when done it seems, though I haven't seen this yet on v2.0). I bring with me my keybindings everywhere, since they seem to have swapped around CTRL and ALT for word navigation and for moving lines of text, (This decision might be due to limitations in some terminal emulators). There is also a history of inactivity of the main author, leaving many PRs ignored for long stretches of time. Some are over a year old and has seen no feedback from the main author.