Spyke

Posts

Does it make sense to use --show-error by itself in curl

I was trying to read up on it and just based off of the manual it seems not to make sense if I'm not using --silent alongside it, but I found this one article stating otherwise: https://nrogap.medium.com/show-error-response-for-curl-64666cd64330

I can't figure out if it's just AI slop or badly researched since it doesn't even show a real URL to test the commands against.

::: spoiler Manual entry:


       -S, --show-error
              When used with  -s,  --silent,  it
              makes  curl  show an error message
              if it fails.

              This option is global and does not
              need  to be specified for each use
              of -:, --next.

              Providing -S, --show-error  multi‐
              ple  times  has  no  extra effect.
              Disable it again  with  --no-show-
              error.

              Example:
               curl --show-error --silent https://
example.com

              See also --no-progress-meter.

:::

View original on lemy.lol
16

Does desktop mode work?

I'm trying to activate the experimental desktop mode feature under

Settings > System > Developer options > Window management > Enable desktop mode

Even after rebooting as it says to do, whenever I connect an external monitor via HDMI or DisplayPort, the phone's screen is simply mirrored, no desktop mode.

View original on lemy.lol
12

How can I view the comments/posts I downvoted?

I just started using the Summit app for a day and realised now I involuntarily downvoted quite a few comments conviced I was upvoting them, fooled by the color of the swipe action (I didn't look at the arrow showing up until now) and wanted to remediate even if it's pretty inconsequential.
Another option if ths one isn't really possible, how to browse my read posts, at least I'd be able to find the discussions I had read through

View original on lemy.lol
19
programming·ProgrammingbyQuazarOmega

Another sign of Sourcegraph's uneventful death: Cody's body

Cody, one of the first few decently good AI assistants that were well integrated into VSCode bit the dust just recently as the greedier and greedier Sourcegraph direction decided to switch to the completely Enterprise (read proprietary) "solution" Amp.

With this commit, another notable project by them goes down, first was their signature code search engine, now this, I just feel sorry for everybody who contributed and now will see pretty much all their efforts rendered meaningless, it was already apparent by how Sourcegraph approached Search sunsetting how much they care about open source, but I'd say this seals the deal even better if you needed insight into whether to trust them or not.

I think what's left by them that might be useful still is the zoekt library and a few other minor repos they have, but they're nothing compared to the impact of the other two.

Things like these make me question how we can just buy in to projects using non-copyleft licences, it's a time bomb, especially with corporate driven software and I see many developers fall into that trap, that in an endeavour for perceived simplicity, will choose Apache, MIT, Unlicense (pls not this one 🥲), or what have you and not care.
What people see as pragmatic in open source is really just a conclusion that comes from the point of view of the maker, rather than the community

https://github.com/sourcegraph/cody/commit/1f2cec52bad16aaaa53ae6f7a5aa8475d377361dOpen linkView original on lemy.lol
13

Is it possible to save screenshots to a specific folder based on focused application?

Hello! I wanted to make some order in my screenshots, it would be extremely helpful if I could define defaults based on the app that is currently focused when taking the screenshot, if that's at all possible given Wayland's restrictions.
Do you know if there's a way, I haven't found any setting like that in Spectacle, but maybe there's some kind of workaround?

Edit: to add to @[email protected]'s solution, a few tweaks to make it a little easier to handle:

  1. If you want the actual screenshots to be placed elsewhere, you can create a symbolic link to that path with the name of the directory that is generated when you save the screenshot, e.g. I use it for a game, I tried to save a screenshot of it and it created a directory named "Genshin Impact", so I replaced that with a symlink to where I want it to be ("Pictures/Games/Genshin Impact/Screenshots")
  2. Since the title is only added when you take an "Active Window" screenshot, you can trigger it with Meta+Print Screen and as a bonus the screenshot is automatically saved with this shortcut, without needing to change other settings
View original on lemy.lol
13

Is there a way to test wireless charging?

I have a Pixel 8a, which is certified qi1, and 2 devices that can wirelessly charge it, a baseus battery pack and an ESR phone holder, they're both certified qi2 (which is backwards compatible with qi1), yet when I charge with them I can at most reach ~2.2W charging instead of the 7.5W advertised maximum for my Pixel 8a.
I don't understand why that is and if I can even theoretically reach the maximum supported charging power.
If so, how would I test my devices to figure out what their real thresholds are or if there are incompatibilities somewhere?

View original on lemy.lol

Updating Flatpaks on Discover with deprecated apps is impossible

If an app that I have is marked for Automatic Removal due to deprecation I can't keep the app and update the rest, because if I try to click Cancel the whole update process stops, if I click Proceed the app will be uninstalled and then the rest gets updated.
Why does it work like this, am I just not supposed to keep deprecated apps for security concerns? I hope it's not intended, because this just hampers the user unendingly.
This time it's Metadata cleaner that is going, but it could be any app that someone relies on, they'd be forced to go to the command line to update the rest while keeping that one app?

View original on lemy.lol
9
programming·ProgrammingbyQuazarOmega

Is there a way to rewind the git rebase state?

Hi, I've got myself stuck on an issue, I've started a big rebase (I know that was already a bad idea to begin with, but, just in case, the information I'm looking for could always come in handy in other occasions), I reordered a few commits and squashed some, while in the process I resolved a few conflicts, then after I resolved one of them and got to the next conflict I realised that I shouldn't have put a certain commit there, is there a way to rewind the process to the previous step while staying in the rebase? That way I could move the commit to where it should be and continue.
I know you can edit the todo (git --edit-todo), but that only works for the next commits, I also can't just reset back by the number of commits I want, e.g. git reset --hard HEAD~4, because for the rebase those commits remain as done and doing git rebase --continue only brings me to where I am already, the next conflict to resolve.
So I wonder, is there a way to move out commits of the done list back into todo? Also for example if I trashed an unmerged file completely while messing around, so I can get it back to its initial state, this would be extremely useful

View original on lemy.lol
14

What happened to Medito?

The Medito app is a (unsurprisingly) meditation/mindfulness app. Sort of the free software alternative to Headspace.
I haven't used it in a long time and was curious to see how it was doing, but I saw this:

  • it's only available on IzzyOnDroid now, I believe it used to be on F-droid at some point (edit: it wasn't)
  • the available release is 2 years old

So I thought, maybe the app was sadly just archived, but no, it's actually still under development, it's just that no releases have been published on GitHub for 2 years (2.0.48 clearly titled "Deprecated"), instead the Play Store releases keep being pushed out as recently as 3 February 2025 (3.2.0).
Oh and the issues tab has been disabled, which seems very shady to me.
So I wonder what the heck went down with this excellent app, it may still be considered "free software", also featuring the best licence (AGPL), but it looks like it has become unfriendly towards the community, I wonder why

View original on lemy.lol
23

What's the best way to add a secondary drive?

I'm on a Fedora Kinoite system that is entirely on one LUKS encrypted drive, I recently added a second drive to have more space and I'm wondering how I should make use of it.
For now I formatted it completely with a new btrfs partition encrypted with LUKS and to actually add I thought I could:

  1. automount it to some location, not sure where I should mount it though, I've seen many questions online that say to avoid /mnt for permanent drives and also /media (there are contrasting opinions on that, though), so I thought I could maybe sidestep this question by going with the second option which is the following
  2. extending the already existing btrfs /sysroot to span across the 2 partitions on the separate drives, but I didn't find good information on this process when LUKS is involved. It seems like that kind of operation is heavily discouraged due to risking data loss

So I wonder, what is the best approach and the one that will give me fewer headaches? If it is the second, how do I do it?

Edit: going with the first option I had an issue where the drive wouldn't be mounted automatically at boot, I then read through my /etc/crypttab more carefully and saw that the UUID was wrong, I had used the partition UUID (PARTUUID as seen with the blkid command) instead of the actual device UUID, after correcting that it works and mounts correctly. Just a small oversight, the hardest to notice sometimes.
References:

View original on lemy.lol
32

Is there any good open source rotoscoping application?

As far as I got, Blender's features for masks are very good, but then they fall short when you want to tweak the animation curve for animated masks because, well, there are no curves... it's all linear, they just won't appear in the graph editor.
So I was wondering if there is some other application that does that, be it specialised or not, maybe specialised for compositing would be a plus actually, considering all the video editing features that are left in the dust by Blender, because I assume the big players don't care for them and rather fund for the development of all the 3D capabilities, which I care about very little for what I usually do, so I'm not seeing any improvements on that side anytime soon

View original on lemy.lol
11

How to use KDE Connect with a VPN on Android?

I've set up a phone with Rethink DNS as a permanent VPN, so nothing can come through, I tried putting KDE Connect in the Bypass Universal list, but it still fails to discover devices on the network and in turn it can't be discovered by others itself.
I tried without VPN active and it all works, of course. Is it possible for the 2 to coexist? If so, what settings should I change?

View original on lemy.lol
12

Discover Updates tab keeps refreshing non-stop

I'm using Fedora Kinoite and there's this little issue that has been bugging me to no end, whenever I want to see what updates have been found for my apps and their changelogs I start scrolling there, but every few seconds, say 20, the page will refresh and look for updates again, so it interrupts my reading and resets the scrolling position I was at, so I have to wait there to finish refreshing, jump to where I was and speed-read that piece of text before it refreshes once again and I'm thrown back to square one.
I was wondering if there is any setting to control how often Discover auto-refreshes, maybe set it to only manually refresh instead, but there doesn't seem to be anything in the Settings tab.
Is there a solution or is this a bug?

View original on lemy.lol
8
linuxquestions·Linux QuestionsbyQuazarOmega

Is there an app that can program audio configuration?

cross-posted from: https://lemy.lol/post/30887473

I sometimes play games and also open my music player, but the sound from the game drowns out the music, so I need to go into the sound mixer on KDE and manually lower the game's volume every time.
I was wondering, is there a way to do this process automatically? As in setting up conditions like "if music is playing (some MPRIS API?) then lower all other apps' volumes)", maybe even crazier "if some app is outputting voice then set its volume back up and lower music app's volume or pause its playback altogether for some specified timeout that keeps being refreshed for as long as voice is heard".
I imagine the latter is a bit of a dream, but maybe for the first, even some quick sound profile selector would go a long way, say switching from "normal profile" to "background music profile", etc. which specify preconfigured volumes for those apps.
Is that a thing?

View original on lemy.lol
15

Is there an app that can program audio configuration?

I sometimes play games and also open my music player, but the sound from the game drowns out the music, so I need to go into the sound mixer on KDE and manually lower the game's volume every time.
I was wondering, is there a way to do this process automatically? As in setting up conditions like "if music is playing (some MPRIS API?) then lower all other apps' volumes)", maybe even crazier "if some app is outputting voice then set its volume back up and lower music app's volume or pause its playback altogether for some specified timeout that keeps being refreshed for as long as voice is heard".
I imagine the latter is a bit of a dream, but maybe for the first, even some quick sound profile selector would go a long way, say switching from "normal profile" to "background music profile", etc. which specify preconfigured volumes for those apps.
Is that a thing?

View original on lemy.lol
45
programming·ProgrammingbyQuazarOmega

[SQL/MariaDB] How will the YEAR data type transform in the future?

I was looking to implement a year column and while researching I stumbled on the YEAR data type which sounded just right by its name, I assumed that it would just be something like an integer that can maybe hold only 4 digits, maybe more if negative?
But then I noticed while actually trying it out that some years I was inputting randomly by hand never went through giving an out of range error, so I went to look at the full details and, sure enough, it's limited to years between 1901 and 2155, just 2155!
In terms of life of an application 2155 is just around the corner, well not that any software has ever lived that long, but you get what I mean in the sense that we want our programs to be as little affected by time within what's reasonable given space constraints.
So what will they do when they get close enough to that year, because you don't even have to be in that year to need it accessible, there could be references that point to the future, maybe for planning of some thing or user selected dates and whatnot; will they change the underlying definition of it as time passes so it's always shifted forward? If that's the approach they'll take, will they just tell everyone who's using this type that their older dates will just not be supported anymore and they need to migrate to a different type? YEAR-OLD? Then YEAR-OLDER? Then YEAR-OLDER-BUT-LIKE-ACTUALLY? Or, that if they plan to stay in business, they should move to SMALLINT?
Or will they take the opposite approach and put out a new YEAR datatype every time the 256 range is expired like YEAR-NEW, YEAR-NEW-1, YEAR-FINAL, YEAR-JK-GUYS-THE-WORLD-HASNT-COLLAPSED, etc.?

So I wonder, what's the point of this data type? It's just so incredibly restricted that I don't see even a hypothetical use.
There exist other questions like this (example) but I think they all don't address this point: has anyone from MariaDB or MySQL or an SQL committee (I don't know if that's a thing) wrote up some document that describes the plan for how this datatype will evolve as time passes? An RFC or anything like that?

View original on lemy.lol
17