tubbadu

@tubbadu@lemmy.kde.social

This profile is from a federated server and may be incomplete. Browse more on the original instance.

tubbadu,

I have no idea if there’s a “normal” way to do it, but in case you don’t find anything better and if you’re willing to spend a bit of time tinkering, an option could be writing a kate plugin. I did it only once, so my knowledge is extremely poor, but it should be possible to connect to the “text selected” signal, and everytime some text is selected, you read the text document and search if there’s a comma or a period etc and in case select the whole number

tubbadu,

This is very nice! If you achieve to make it work please share it!

tubbadu,

automatically no, but perhaps there’s a way to replace it. If there’s a way to check if a variable is “divisible by another symbolic one” then it would be not so hard to implement this behavior

tubbadu,

It looks interesting, but more focused on conversions than actual operations it seems:


<span style="color:#323232;">octave:37> a.value = 100
</span><span style="color:#323232;">a =
</span><span style="color:#323232;">
</span><span style="color:#323232;">  scalar structure containing the fields:
</span><span style="color:#323232;">
</span><span style="color:#323232;">    value = 100
</span><span style="color:#323232;">    unit = W
</span><span style="color:#323232;">
</span><span style="color:#323232;">octave:38> a.unit = 'W'
</span><span style="color:#323232;">a =
</span><span style="color:#323232;">
</span><span style="color:#323232;">  scalar structure containing the fields:
</span><span style="color:#323232;">
</span><span style="color:#323232;">    value = 100
</span><span style="color:#323232;">    unit = W
</span><span style="color:#323232;">
</span><span style="color:#323232;">octave:39> b.value = 3
</span><span style="color:#323232;">b =
</span><span style="color:#323232;">
</span><span style="color:#323232;">  scalar structure containing the fields:
</span><span style="color:#323232;">
</span><span style="color:#323232;">    value = 3
</span><span style="color:#323232;">    unit = s
</span><span style="color:#323232;">
</span><span style="color:#323232;">octave:40> b.unit = 's'
</span><span style="color:#323232;">b =
</span><span style="color:#323232;">
</span><span style="color:#323232;">  scalar structure containing the fields:
</span><span style="color:#323232;">
</span><span style="color:#323232;">    value = 3
</span><span style="color:#323232;">    unit = s
</span><span style="color:#323232;">
</span><span style="color:#323232;">octave:41> a*b
</span><span style="color:#323232;">error: binary operator '*' not implemented for 'scalar struct' by 'scalar struct' operations
</span>
tubbadu,

This looks very VERY promising! I’ll try to install it tomorrow and Post here the results! Thanks?

tubbadu,

I downloaded it and tried to run it, but it gets stuck in a loop and I don’t know how it could be fixed:


<span style="color:#323232;">error: max_recursion_depth exceeded
</span><span style="color:#323232;">error: called from
</span><span style="color:#323232;">    baseUnitSystem
</span><span style="color:#323232;">    <unknown>
</span>

it seems the problem is in the line


<span style="color:#323232;">coreUnits = buildCoreUnits(u.baseUnitSystem);
</span>

in the file u.m, I think because u.baseUnitSystem tries to “call itself”. I don’t know what this should be supposed to do, and have no idea on how to possibly fix it :(

Microsoft is testing Game Pass ads on the Windows 11 Settings homepage (www.ghacks.net)

Microsoft’s announcement: “We are introducing a new Game Pass recommendation card on the Settings homepage. The Game Pass recommendation card on Settings Homepage will be shown to you if you actively play games on your PC. As a reminder – the Settings homepage will be shown only on the Home and Pro editions of Windows 11...

tubbadu,

Look at the corner between the four “paragraphs”… WHY? Please Microsoft align them properly

tubbadu,

Why do you need a waterproof laptop? (I’m just curious)

tubbadu,

It’s funny: if the telemetry is opt-in, I’ll opt in, if it’s opt-out, I’ll opt out

tubbadu,

Is there some lore about this I don’t know?

tubbadu,

Other answer seems to suggest that the problem is that the same podcast can be available, depending on where and who is listening to it, with different length due to different ads injected into. Here’s my probably stupid and completely ignorant suggestion: instead of using timestamps for both begin and end of the ads segment, you could use a timestamp for the beginning, and an hash of the first part of “non-ads” segment. I’ll try to explain better:


<span style="color:#323232;">|----------------xxxxx--------------------|
</span><span style="color:#323232;">                ^     |___|
</span>

The xxx is the ads segment, the ^ is the timestamp of the beginning of the ads, the |___| is a small duration segment (for example, 0.5 seconds) right after the ads segment. The data of that segment is hashed and used as “end ads segment indicator”.

On the other device, with a different duration of the ads, you should start hashing it to find the corresponding segment.

Is this doable or did I just said a bunch of idiot things?

tubbadu,

If newpipe/tubular had the option to sync your piped or invidious account to sync the subscription and watch history automatically it would be by far the best.

tubbadu,

An old, ugly bike and a good bike lock. No one will ever steal it and can bring you wherever you want without the fear of leaving it in the wrong spot

How to write a QML effect for KWin, KDE's window manager (blog.vladzahorodnii.com)

Since the dawn of the times, the only way to implement any effect that has fancy user interface used to be in C++. It would be rather an understatement to say that the C++ API is difficult to use or get it right so there are no glitches. On the other hand, it would be really nice to be able to implement dashboard-like effects...

tubbadu,

This… This is amazing! I can finally write an application switcher optimized for my touchscreen device! Thanks KDE devs!

kde, to kde
@kde@floss.social avatar

Plasma 6.0.1, the first batch of corrections and enhancements to Plasma 6.0, has landed

The next update will be delivered promptly next Tuesday, 12th of March.

https://kde.org/announcements/plasma/6/6.0.1/

@kde

tubbadu,

The pacman effect

tubbadu,

I use it but I really want a way to sync the subscriptions and watch history with my desktop client, and currently the only way (afaik) is to use piped or invidious

tubbadu,

What are the pros and cons of SoundCloud over Spotify?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • ngwrru68w68
  • everett
  • InstantRegret
  • magazineikmin
  • thenastyranch
  • rosin
  • GTA5RPClips
  • Durango
  • Youngstown
  • slotface
  • khanakhh
  • kavyap
  • DreamBathrooms
  • provamag3
  • tacticalgear
  • osvaldo12
  • tester
  • cubers
  • cisconetworking
  • mdbf
  • ethstaker
  • modclub
  • Leos
  • anitta
  • normalnudes
  • megavids
  • lostlight
  • All magazines