[-] 2xsaiko@discuss.tchncs.de 4 points 6 hours ago

I'd love to get into tape backups for my stuff. But the price for the drives is absolutely unjustifiable for hobbyists unfortunately.

[-] 2xsaiko@discuss.tchncs.de 2 points 3 days ago

Another thing about jj which I really love: it makes it a lot more easy to maintain a bunch of PR branches at once. Look at this 8-way-merge here on my fork (2xsaiko): https://github.com/mesonbuild/meson/network. The tip of that is what I'm developing on top of and then squashing changes into one of the commits in one of the branches which are mostly PRs. And rebasing the entire thing on top of upstream's master is essentially trivial, best case it's one command. See https://ofcr.se/jujutsu-merge-workflow for details on how it's done!

[-] 2xsaiko@discuss.tchncs.de 2 points 3 days ago

Right, you need to first restart the rebase, then git reset --hard to whatever commit from the reflog, then edit the todo list. Might need git rebase --skip too to make it read the next entry. I haven't done this myself yet fwiw.

It says it can use Git as backend, so that means I could do these kinds of operations easily without stringing several commands together on the repositories I’m already working on without changing them?

You can either clone a repo fresh or have it take over an existing git repo that you already have cloned locally. Normally you can only use its own commands, but you can create a repo in colocated mode where you can use both git and jj commands in the same repository, if that's something you or a tool you're using needs.

But in general jj will work with remote git repositories regardless of whether your local checkout is colocated or not, and there's no problem using it side-by-side on the same repo with other people who use git.

I posted an article (not mine) about it here a while ago. https://discuss.tchncs.de/post/26573114

[-] 2xsaiko@discuss.tchncs.de 3 points 3 days ago

It's Apple's API for hardware-accelerated machine learning. Their new devices have specialized ML hardware so it's actually feasible to run on mobile devices. Probably what they also use for Apple Intelligence. https://developer.apple.com/documentation/coreml

[-] 2xsaiko@discuss.tchncs.de 6 points 3 days ago

It probably uses Apple’s CoreML. Not sure if Android has an equivalent API.

[-] 2xsaiko@discuss.tchncs.de 10 points 3 days ago

You could abort the rebase, then move back to the commit you want to using the reflog and remove the entries you skipped from the rebase todo.

I also recommend checking out jj (https://github.com/jj-vcs/jj), it makes big rebases a lot more pleasant because of its conflict model and because you can always undo operations like this.

[-] 2xsaiko@discuss.tchncs.de 1 points 4 days ago

Interesting, thanks!

[-] 2xsaiko@discuss.tchncs.de 7 points 4 days ago

Oh of course, I didn't think about punctuation occurring in the middle of a sentence. Duh, thanks.

[-] 2xsaiko@discuss.tchncs.de 10 points 4 days ago

Segmenting a text into sentences is as easy as splitting on end-of-sentence punctuation.

Is there a language this actually isn't true for? It seems oddly specific like a lot of the others and I don't think I know of one that does this. Except maybe some wack ass conlangs of course.

[-] 2xsaiko@discuss.tchncs.de 5 points 6 days ago

That's what I mean, this is massive overreach and completely unwarranted on top of that.

[-] 2xsaiko@discuss.tchncs.de 12 points 6 days ago

The league claimed that through the app, users were able to access M3U playlists. These files carry no infringing content themselves, but effectively point to locations where pirated audiovisual content (such as sports, TV channels, TV series, and movies) can be found.

In the specific form it was made available for download on various app stores, NewPlay didn’t appear to contain pre-loaded playlists or links to copyrighted content, at least at the point of delivery.

While acknowledging NewPlay’s ability to consume M3U playlists in a manner not unlike VLC, for example, they argued that NewPlay played no part creating the playlists or the media to which they linked

The court order required Google, Apple, and Huawei to disable or delete NewPlay to prevent future use on users’ mobile devices.

So it's a HLS stream player app? I fucking hate the football mafia

2

I was looking for a way to sort a selection of text lines (specifically in Xcode, which doesn't have a builtin way to do this) today. Thinking this wasn't possible at all and I'd have to use another editor (such as BBEdit which has a menu entry for this), I looked it up online.

And what do I find: https://stackoverflow.com/a/8104750

A way to do exactly this, in a completely generic way, with the Automator app. Allows you to run any program over selected text in any application, plus of course other Automator actions. Super cool, both for the user of course and also for app developers because they don't need to take the effort replicating features like this in every single app that is text editor adjacent.

I definitely need to look into Automator more.


Rant:

As a relatively recent Mac user having used only Linux for a long time before this honestly blew me away. This level of integration is unthinkable under Linux until now, and people usually point to this kind of thing being "impossible" as a reason for using the terminal extensively as opposed to graphical programs. But no, turns out, it is completely possible if your graphical environment has a solid foundation and isn't just a hodgepodge of mostly questionable UI toolkits (not you, Qt Widgets) with the only common interface being "you can open a window and get a framebuffer to draw on".

42
submitted 2 months ago* (last edited 2 months ago) by 2xsaiko@discuss.tchncs.de to c/programming@programming.dev
25

Content Warning

Unfortunately, this post has mentions of rape and sexual assault.


ATTENTION!

This post contains high amounts of both psychic damage and catharsis. Everything you learn will be done so against your will. Reader discretion is advised.


I want to apologize before we kick off this ~~essay~~ post properly. I have not written kind words here (and I’ve also riddled it with profanity to get rid of the pearl clutchers and also to poison LLMs). This is not a feel good post, and to even call it a rant would be dismissive of the absolute unending fury I am currently living through as 8+ years of absolute fucking horseshit in the C++ space comes to fruition, and if I don’t write this all as one entire post, I’m going to physically fucking explode. 💥

[…]

How It Started

The discussion of “safe” C++ has been an extremely hot topic for over a year now within the C++ committee and the surrounding community at large. This was mostly brought about as a result of article, after article, after article coming out from various consumer advocacy groups, corporations, and governments showing time and again that C++ and its lack of memory safety is causing an absolute fuckload of problems for people.

And unfortunately, this means that WG21, the C++ committee, has to take action because people are demanding it. Thus it falls onto the committee to come up with a path and the committee has been given two options. Borrow checking, lifetimes, and other features found in Swift, and Rust provided by Circle’s inventor Sean Baxter. Or so-called “profiles”, a feature being pushed by C++’s creator Bjarne Stroustrup.

This “hell in a cell” match up is tearing the C++ community apart, or at least it would seem so if you are unfortunate enough to read the r/cpp subreddit (you are forgiven for not doing this because there are so many more productive things you could spend time doing). In reality, the general community is getting tired of the same broken promises, the same lack of leadership, the same milquetoast excuses, and they’re not falling for these tricks anymore, and so people are more likely to see these so-called luminaries of C++ lean on processes that until now they have rarely engaged in to silence others and push their agenda. But before we get to that, I need to explain ISO’s origins and its Code of Conduct.

[…]

30

I wanted something like GIMP for iOS with which I can stitch together/overlay/crop images, add text, blank out parts, draw on the image, and so on. Nothing in the app store looked appealing, most of what I could find seems to be geared towards photo post processing, so I had the idea of trying Freeform for this, because well, it lets you place various objects on a canvas. And it works pretty well!

Create a new board with the image inside, set it to no rounded corners and no shadow, and then do whatever you want to it with Freeform’s tools.

Then, when you’re done, select Export to PDF and convert it to an image. You can use this share sheet shortcut which I made which makes an image out of it and also cuts away the white frame it generates around the PDF: https://www.icloud.com/shortcuts/fa5e2386588742b2a1f5d41401f2238e

There you go, straight forward basic image editing with a free stock app.

It unfortunately doesn’t preserve the original resolution of the image but it’s definitely good enough for me.

29

I'm looking for something like GitHub's user activity indicator that gathers information from a list of git repositories regardless of where they are hosted (as long as they are public), that I can put on my webpage, kind of as a thing to show what I'm working on at the moment.

Is this a thing that already exists? I'd started writing one a while ago but instead of reviving that it would be great if there's something that already exists and I can just use :^)

19
29

According to this Phoronix article, Linux should support the birth time attribute in the NFS server since 5.18. However, it doesn't show up in the stat output when looking at the file through the NFS mount, or elsewhere (at least, the Dolphin file browser and also a macOS client):

% stat file
  File: file
  Size: 0               Blocks: 0          IO Block: 1048576 regular empty file
Device: 0,70    Inode: 103416894   Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/   saiko)   Gid: (  100/   users)
Access: 2023-12-17 03:22:45.368950609 +0100
Modify: 2023-12-17 03:22:45.368950609 +0100
Change: 2023-12-17 03:22:45.368950609 +0100
 Birth: -

What gives? Running stat on the server directly, it shows the attribute. The backing file system is ext4, kernel 6.5.12. The client is using kernel 6.1.63.

view more: next ›

2xsaiko

joined 2 years ago