News for hackers. Stuff that matters.

pbsds

Re:Is Rotten Tomatoes Still Reliable? A Statistical Analysis on Wednesday August 20, 2025 @10:29PM (#44968494)
a mean rating of 3 can only be 100% fresh if the variance is 0
Re:TikTok goes dark in the US on Sunday January 19, 2025 @11:54AM (#42758733)
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.
Re:Paris to Berlin by train is now faster by five hours on Tuesday December 24, 2024 @05:30AM (#42501000)
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
Re:Jupyter AI on Sunday August 06, 2023 @05:41PM (#37027139)
...reproducable? Doesn't GPT change all the time?
Re:A 6.7 inch E-Ink display that pairs with your smartphone on Sunday December 11, 2022 @07:35AM (#33942619)
I've been wanting something like this for a long time
Re:Gojq: Pure Go Implementation of Jq on Tuesday August 23, 2022 @02:34AM (#32561212)
Gron has the same issue, as it too is written in go and randomizes key order.
It's when a package manager updates Firefox while it's running.
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.
Re:I Made Minecraft, but It's 4D [video] on Tuesday May 17, 2022 @01:43AM (#31406432)
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.
Many editors support the rmate protocol, enabling you to open a remote file from a ssh session in your local editor.
For this i combine entr and rsync
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

Re:In Praise of Open Source Textbooks on Sunday June 06, 2021 @02:00PM (#27414921)
Could a equation OCR system like [1] be combined with a screen reader? It seems to support asciimath

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

Re:Python 3's F-Strings: An Improved String Formatting Syntax on Thursday January 21, 2021 @06:42AM (#25857891)

    _("Hello, {name}).format(**vars())
Re:Most surgeries are ineffective on Thursday January 21, 2021 @06:27AM (#25857795)
> 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.

Re:Launching the 2020 Nim Community Survey on Friday December 18, 2020 @08:06AM (#25466652)
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.
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...

Re:Firefox 81.0 on Tuesday September 22, 2020 @01:23PM (#24557303)
Have you tried enabling pixel-perfect scrolling?
Re:Fastcore: A library that extends Python with new features on Saturday September 05, 2020 @10:41AM (#24383876)
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.
Not guaranteed
Re:Nim – Python-like statically-typed compiled language on Sunday August 16, 2020 @12:30PM (#24179094)
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

All of these cases should really be done by the compiler on O3.
Re:Create diagrams with code using Graphviz on Wednesday June 10, 2020 @03:31PM (#23481077)
This one is also web-based, but it takes graphviz source: https://sketchviz.com/new
Re:Micro: Modern and intuitive terminal-based text editor on Thursday May 28, 2020 @08:23AM (#23336400)
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.