News for hackers. Stuff that matters.

Corsome

Re:Emacs Bedrock–A minimal Emacs starter kit on Tuesday September 05, 2023 @10:35AM (#37392258)
> Treesitter is baked in for syntax, eglot is baked in for language servers (intellisense),

Sadly the two of them don't seem to mix well together (eg rust-mode works well with eglot but rust-ts-mode makes eglot ask for LSP server binary and then still does not connect).

Looks like it's early toothing problems but it's not that straightforward (at least yet).

Re:Linear Algebra for Programmers on Friday September 01, 2023 @04:36PM (#37355915)
> This is actually not so strange– you can think of many structures as functions. For example, you can think of a number 3 as a function. When you multiply it by things, it makes them three times bigger.

I don't see how 3 can be a function from this example. "3*" (partially applied multiplication by 3) looks more like it.

Matrices and vectors as functions? Yeah, if the argument is within bounds. That makes it just an indexing operation.

(I guess one can view 3 as a one element vector but that sounds like a degenerate case)

Or maybe I'm missing something...?

Re:Rust Language Cheat Sheet on Thursday August 31, 2023 @04:14PM (#37343085)
It looks really great!

Is it just me or the output PDF has quite a bit of broken pages (eg after Working with Types section)?

Well said.

> The next thing for me is to "decloud" - meaning remove any and all online services that are not mission critical.

For me there are multiple parallel "side quests" and decloud is definitely one of them (I strive to minimize cloud and select solutions that can be self hosted and that are E2EE. Then I pay for hosting anyway but I always have an option of rolling my own. Example: etesync for calendars and contacts).

Other side quests: instead of Gnome use Sway, this requires manually picking wifi/Bluetooth connection managers (iwctl and bluetoothctl work well) and other tooling.

Yet another: convert my entire family to use Linux. Sadly this is harder since schools teach Windows but Gnome looks very similar to what they use.

These are just some examples. The good thing is that all of these are small steps that can be taken in any order to improve the situation in small increments.

Ctrl+alt+f2 (Or any other F) will give you additional login terminal.
Personally I think there are multiple forces acting on Windows at the same time. Some of them push it to a good direction (cases you mentioned) some of them less so.

We live in a times that are good for developers: we not only have free access to powerful tools that other professionals need to pay big bucks but it goes even further: with open source we can co-shape these tools and in the extreme cases fork and create our own derivatives.

Why not take advantage of this and just avoid proprietary solutions as much as possible?

> how do you deal with absence of working task manager?

I see people offering nice advice here but I mostly do ps aux | grep thing and then kill (-9) it... or killall :)

> any random hang-up is a forced restart, no way to kill offending process as EVERYTHING just freezes up.

I had the everything freeze up experience initially on a Dell laptop and frankly don't know what was the cause. Maybe missing microcode updates or old firmware? Nowadays it almost never happens (I don't remember it happening over the months). I have an app crash (like Firefox) ~once a month but it's so rare I barely notice.

Phew. After being a Windows user for literally almost two decades I've happily migrated to Linux and couldn't be happier. Yep, it took some time to prepare but let's be frank, developers already use quite a lot of Linux/Unix tools already so why not cut the middleman and just work directly with what we need most?
Re:PHYS771 Lecture 9: Quantum – Scott Aaronson on Monday August 21, 2023 @08:11AM (#37208388)
Thanks for your take on it!

> It would be interesting to see what happens if a student learns geometric algebra first, maybe it will feel more natural then.

Yeah, I've noticed some people [0] advocating for using it for all physics as soon as possible too.

[0]: https://www.cambridge.org/core/books/geometric-algebra-for-p...

Re:PHYS771 Lecture 9: Quantum – Scott Aaronson on Sunday August 20, 2023 @12:35PM (#37200681)
Your books are indeed excellent!

I was wondering... what's your opinion on Geometric Algebra? (If you have one)

Ah, right. Indeed, the naming is super similar. Thanks for mentioning that PartsBox is not open source.
I think you're using a copycat app from Play Store. It's not a real app which is only available through F-Droid.
> My software will not be open-source for a number of reasons,

Just to clarify which exact software is not open source? PartsBox looks to be AGPL.

> In-browser camera scanning is available in commercial plans only (due to licensing costs).

I wonder if you checked out https://developer.mozilla.org/en-US/docs/Web/API/Barcode_Det...

This sounds like you're planning to use Business Source License (https://www.hashicorp.com/blog/hashicorp-adopts-business-sou...). Did I get that right?
Will the compiler be open sourced?
Re:Fixing the TPM: Hardware Security Modules Done Right on Saturday August 19, 2023 @02:17AM (#37186075)
What if the firmware program has a bug that needs to be fixed? Fixing it would change the hash and thus lock it out from key access but leaving it unchanged will mean the keys can be compromised.

How does Tillitis handle this case?

I rather meant irregular with regards to Debian Sid not Debian in general.

Arch only has rolling release mode so everyone is using the latest (thus any potential issue in Arch will affect bigger % of Arch users) while Debian has stable and testing and I was wondering if that'd make Sid less stable for practical use (since "it's not stable").

I don't want to start a distro war here, just wondering about some anecdata of actual distro users.

What are the advantages of using Debian testing/sid rolling release instead of a regular rolling release distro (say, Arch)?
Re:How Final Fantasy VII's monster scripting system works on Sunday August 13, 2023 @09:06AM (#37109662)
Ah, I thought it's someone else commenting on the same matter. Thanks for sharing this looks extremely interesting!
Re:How Final Fantasy VII's monster scripting system works on Sunday August 13, 2023 @08:58AM (#37109576)
> I've produced a video showing how AI scripting works in the PlayStation classic, Final Fantasy VII.

Could you share a link?

I noticed recently that my distro's youtube-dl stopped working (it can't successfully download movies) but thanks to news like this one I found a fix in one of the comments here:

> I've moved on to https://github.com/yt-dlp/yt-dlp anyways

Thanks!

Re:git-appraise – Distributed Code Review for Git on Friday August 11, 2023 @10:52AM (#37089327)
Last time I checked it was only for maintainers convenience but the idea of using it by some tooling was already being discussed: https://people.kernel.org/monsieuricon/all-patches-must-incl...
Re:git-appraise – Distributed Code Review for Git on Friday August 11, 2023 @09:40AM (#37088586)
Yeah, additionally Juniors can read the fix commits and learn from that. Thanks for describing your work flow Mike!
Re:git-appraise – Distributed Code Review for Git on Friday August 11, 2023 @09:34AM (#37088527)
> A meaningful comment stay as long as it is meaningful.

Sometimes even longer :)

Re:git-appraise – Distributed Code Review for Git on Friday August 11, 2023 @09:30AM (#37088497)
AFAICS there's `--base=auto` which captures explicit parent's sha in the patch text output (there's also a git config option to do that automatically).

Source: https://git-scm.com/docs/git-format-patch#_base_tree_informa...

Re:git-appraise – Distributed Code Review for Git on Friday August 11, 2023 @04:24AM (#37086352)
> Gerrit also stores some of its configs in a git repo.

So does gitolite where the config (repos, user's SSH keys etc) is stored completely in a git repo. Perfect for migration, backup, audits.

https://gitolite.com/gitolite/index.html

Re:git-appraise – Distributed Code Review for Git on Friday August 11, 2023 @04:17AM (#37086321)
Wow, that's really cool. If these commits were marked one could quickly drop them during rebate at the end of the review before merging. Or just remove them when the fix is applied.

Thanks for sharing!

Exactly. Or if for some reason they need the social bit Mastodon is an option. Additionally it has RSS output feeds for everything.
Re:Low-cost Smartwatch powered by ESP32 module on Tuesday August 08, 2023 @04:59PM (#37055367)
I wonder if the display could be changed to https://www.waveshare.com/product/rp2040-lcd-1.28.htm

Older »