[-] Matty_r@programming.dev 35 points 2 days ago

Its good that people care enough to keep finding these vulnerabilities

[-] Matty_r@programming.dev 2 points 3 days ago

Oh hell yea. Window resizing has been one of the most jarring things that always made it feel clunky. Fixing that up will be amazing.

[-] Matty_r@programming.dev 2 points 6 days ago

I used to have a similar situation, I used Vscode remote development to effectively work from any machine. Another thing I tried was using Nextcloud to watch the working directory, which automatically synchronized files when they change.

[-] Matty_r@programming.dev 52 points 6 days ago

Honestly must be incredibly stressful managing a project like the Linux kernel. Governments constantly wanting changes made for their own purposes, companies leeching off the work of volunteers, neck beards losing their minds over some change they don't like.

I don't envy them at all. This sort of change was inevitability going to piss people off - it could have been handled better but I think it was going to be lose/lose no matter which way it was done.

12
submitted 1 week ago* (last edited 1 week ago) by Matty_r@programming.dev to c/rust@programming.dev

Hi all,

I'm going through and giving a bunch if different GUI frameworks a go and have tried iced, egui and Slint. Iced was by far the easiest to get started and just seemed fairly logical for layouts, Slint was pretty cool - VSCode actually has like a wysiwyg-editor that allows you to drag components around etc.

Unfortunately I'm having issues getting breakpoints to work when using VSCode, Tauri, plus a Rust frontend (yew, dioxus, etc). I think its because what is compiled isn't where my actual code exists? If I use a JavaScript frontend it hits breakpoints fine, but that's not what I'm wanting to use at the moment.

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
      {
        "type": "lldb",
        "request": "launch",
        "name": "Tauri Development Debug",
        "cargo": {
          "args": [
            "build",
            "--manifest-path=./src-tauri/Cargo.toml",
            "--no-default-features"
          ]
        },
        "env": {
            "WEBKIT_DISABLE_COMPOSITING_MODE": "1"
        },
        // task for the `beforeDevCommand` if used, must be configured in `.vscode/tasks.json`
        "preLaunchTask": "ui:dev"
      },
      {
        "type": "lldb",
        "request": "launch",
        "name": "Tauri Production Debug",
        "cargo": {
          "args": ["build", "--release", "--manifest-path=./src-tauri/Cargo.toml"]
        },
        // task for the `beforeBuildCommand` if used, must be configured in `.vscode/tasks.json`
        "preLaunchTask": "ui:build"
      }
    ]
  }
{
    "version": "2.0.0",
    "tasks": [
      {
        "label": "ui:dev",
        "type": "shell",
        "isBackground": true,
        // change this to your `beforeDevCommand`:
        "command": "trunk",
        "args": ["serve"]
      }
    ]
  }
[-] Matty_r@programming.dev 31 points 1 week ago

Yep. Because windows 95 and 98 exist, and there is a bunch of software which would do a check for the operating system version you were running with something like, if the operating system name starts with "Windows 9" etc

[-] Matty_r@programming.dev 80 points 1 month ago

When people say its not ready, it's normally some specific use case that worked in X11. So, they're not wrong, but not right either.

11

Hi all, I tried creating a Steam shortcut through lutris but my controller isn't detected -I'm trying to play it via Steam Link.

Normal Steam games appear to work fine, and from everything I've seen online it should just work.

5
submitted 3 months ago* (last edited 3 months ago) by Matty_r@programming.dev to c/kde@lemmy.kde.social

Hey all, not sure how I managed this, but over the years I somehow managed to configure different paths which are listed in kf5-config. The for instance the cache path should be /home/matt/.cache, but kf5-config lists it in /mnt/data/matt/home/.cache. I'm sure this was intentional at one point but now i'm trying to fix up my partitions.

So my question is - how do I change the paths listed in kf5-config to where it should be on the root partition (/home/matt/...)?. I'll move the actual data from where it is onto the root partition, I just need to know how to change that paths are configured in kf5-config.

Cheers

kf5-config paths:

cache:
/mnt/data/matt/home/.cache/
config:
/mnt/data/matt/home/.config/:/mnt/data/matt/home/.config/kdedefaults/:/etc/xdg/
data:
/mnt/data/matt/home/.local/share/:/usr/share/:/usr/local/share/
emoticons:
/mnt/data/matt/home/.local/share/emoticons/:/usr/share/emoticons/
exe:
/usr/lib/libexec/:/usr/bin/
html:
/mnt/data/matt/home/.local/share/doc/HTML/:/usr/share/doc/HTML/

etc.. etc..

Edit: I just wanted to add that these paths are different from what is listed in qtpaths:

$ qtpaths --paths CacheLocation
/home/matt/.cache/<APPNAME>
$ qtpaths --paths ConfigLocation
/home/matt/.config:/home/matt/.config/kdedefaults:/etc/xdg

Solved:

Turns out that it expands symlinked directories.

23

Hey all, I have a Samsung S22 and got an update this morning which has forced on the navigation bar at the bottom of the screen. Disabling the new circle to search didn't make a difference.

I heard it can be disabled through GoodLock but I'm not installing that. Maybe it can be disabled via adb or something?

Cheers

[-] Matty_r@programming.dev 28 points 5 months ago

I really enjoyed the first 3 movies, couldn't get behind The Hobbit at all. I don't have high hopes for this.

[-] Matty_r@programming.dev 28 points 7 months ago

You have my vote. The out of the box experience would be polished and I have no doubt would be done very well.

92

Hey all I'm looking for recommendations for a video doorbell that doesn't need an internet connection.

Preferably something that is WiFi and would work with Frigate?

25

Hey all,

I'm going to be moving on to my next project and have been thinking about doing an email client. I like Thunderbird, but the search is terrible, and I also want to tackle something that needs pretty high performance for processing emails etc.

Any suggestions or considerations I should think about?

I'll focus on just getting SMTP going in a CLI then I'll introduce some sort of frontend using Qt.

[-] Matty_r@programming.dev 25 points 7 months ago

Ignoring safety concerns with administering and looking after the patient - the cost increase of getting a tattoo would be astronomical.

38
submitted 7 months ago* (last edited 7 months ago) by Matty_r@programming.dev to c/kde@lemmy.kde.social

Since the update, if I snap Firefox to the top the mouse seems to be offset a number of pixels compared to where the actual cursor is. It also affects the content in sites, not just stuff in Firefox.

Edit: Looks like it's not just when it's snapped, but as soon as it passes about the top 90% of the screen. Just took a screenshot, where you can see the cursor is hovering over Other Bookmarks, but it's activating the menu above it.

[-] Matty_r@programming.dev 35 points 8 months ago

I'm actually kind of surprised that they're all working together at all. Normally they all wanna have it done their own way and it ends up just being another random project, that everybody loves until the next person creates another project because they want it done another way.

2

Hey all,

Another update/release of urChat (Java IRC Client). This release had a lot of focus on general usability and backend cleaning up. Performance for updating the styles has been improved and i've also moved some of the major panels into their own classes to make it easier to add more options/panels at a future date. In doing this, there is less effort needed when adding more options as the this is all handled when using addToPanel() method:

For Instance, i've added an option to toggle the tab icons, after creating the new JCheckBox showTabIcons, all that's needed to have it save to the preferences correctly is:

URPanels.addToPanel(this, showTabIcons, null, Placement.DEFAULT, null, Constants.KEY_SHOW_TAB_ICON);

This adds it to the current JPanel (In this case the InterfacePanel), places it after the previous Component and then associates that with the KEY_SHOW_TAB_ICON Preference key. Much easier than before.

Support for HTTP proxies has also been added, so we've now got both SOCKS and HTTP proxies as an option. There is now better disconnection handling, it will automatically reconnect if it disconnects unexpectedly (after some time), and it will also rejoin all of the previously connected channels.

I've also added in LOG4J2 for logging. At the moment there is a log4j2.xml config file included in the release JAR, but eventually i'll allow custom config files. I'm not 100% sure how I feel about it yet as it increased my release JAR file size from 247 KB to 2.47 MB which is quite a significant jump.

Anyway, thanks everybody for your support and interest. Feel free to join the #urchat channel at irc.libera.chat to discuss improvements etc. :) Onwards and upwards to version 0.7.0!

GitHub Link

[-] Matty_r@programming.dev 24 points 9 months ago

I've been using my install script for so long, I've forgotten that single click was the default. I guess that's at least one extra line I can remove.

6

Version 0.5.1 of my IRC Client has been released. This time around it was mostly focussed around bug fixes largely to do with updating the styles. But I also added a couple of features. This was a shorter release from 0.4.0 as the changes weren't as significant.

Profile Handling

I wanted a way to easily manage profiles, especially during development. With this release i've added a Profiles page, which allows you to Create new profiles, clone an existing profile, rename, and delete profiles. You can also set a profile as the default to be used when loading the app.

A majority of the effort went into keeping the Profile Picker (the combobox that changes the active profile) and the profiles page in sync which was done using listeners. New listeners were created for DELETE,CREATE, and CHANGE events as other components needed to add their own listeners to the queue to make sure they were also kept in sync, but also to update styles etc when the profile changes.


public static void fireListeners (EventType eventType)
{
    if(!listenerLists.containsKey(eventType))
        listenerLists.put(eventType, new EventListenerList());

    Object[] listeners = listenerLists.get(eventType).getListenerList();

    // Reverse order
    for (int i = listeners.length - 2; i >= 0; i -= 2)
    {
        if (listeners[i] == ActionListener.class)
        {
            if (actionEvent == null)
            {
                actionEvent = new ActionEvent(listeners, i, null);
            }

            ((ActionListener) listeners[i + 1]).actionPerformed(actionEvent);
        }
    }
}

All of this profile work was also used to centralise the loading and saving of profile information through the URProfileUtil helper class. This should hopefully help down the track.

Profiles Page

Custom Nick Format

This was similarly difficult to when I implemented the custom Date formatting. At least this time around I had an idea of how it might be implemented. However the difference was that I couldn't treat the resultant String as a whole, for example setting the Date format to [HHmm] i'd just return [0652] then insert that into the document, I had to contend with nick styles as well.

In the end I settled with splitting whatever was placed into the Nick format field into three parts (Prefix, nick, Suffix). If you want something just on the right side of the nick, you put nick in the Nick format field, then whatever you want next to that. When placing the nick in the document, I set the attributes according to which part and then use this when updating the styles etc.

Custom Nick format

48
eGPU docks? (programming.dev)
submitted 10 months ago by Matty_r@programming.dev to c/linux@lemmy.ml

Hi all,

Just wondering how progress is on eGPU docks? I want to upgrade my GPU at some point and thought it might be cool to put it in a dock and connect it to a laptop. The laptop has a couple thunderbolt ports.

How's compatibility these days?

12
submitted 10 months ago* (last edited 10 months ago) by Matty_r@programming.dev to c/java@programming.dev

Hello all,

I'm here with an update to my IRC Client, now at version 0.4.0 (urChat Github Link). I decided to revive this project a few months ago because there was a few things that I wanted to finish, as well as wanting to get back into Java. All my previous posts are on Reddit (My IRC Client.. 9 years later.).

This version was mostly concerned with customising the colours used for the various styles in the chat windows. The most difficult part was trying to find a balance with the defaults, but also making sure it wasn't a huge pain to try and get the colours and fonts just the way you want them.

My first hurdle, really, was not having a gigantic list of Styles and I wanted something a bit more intuitive. What I landed on was a little preview window where you can right-click on each of the Styles, and customise it from there:

  • Font Preview

Font Preview

The next feature, I wanted to be able to customise the displayed time format. This was particularly challenging because I needed a way to track the date/time of all previous sent messages, update the style which could be shorter or longer than the previous style, then put it all back inline without breaking the other formatting.

  • Custom timestamp format

Custom timestamp format

This is using the Java DateTimeFormatter to display the timestamp.

Another challenge was updating the styles smoothly. (There is a bug at the moment where it's not updating in all of the connected channels). This meant tracking what styles are used throughout your channels, then updating the style in-place. I wanted to make sure that you could customise, say, just the foreground without it also saving the background, because if you change the foreground to yellow on a dark theme it would save the dark background, then subsequently changing the theme would also keep dark background.

  • Changing the urlStyle to yellow

Changing the urlStyle to yellow

  • then changing to a light theme

changing to a dark theme

Obviously, yellow on a light background isn't great. So there is a reset button you can press which will set it back to the defaults.

If you'd like to try it out, there is a jar you can download from the GitHub releases page. Thanks for reading. I've still got a lot of work to do on it, i'm currently working towards the next release which will mostly focus around the usability side of things as well as the usual bug fixes.

[-] Matty_r@programming.dev 42 points 11 months ago

Excellent - how many trees can I grow on my roof? Can they be retrofitted?

/s

7

I can search for it and it opens fine, but it results in 404 community not found when opening it under my subscriptions list.

I notice it doesn't have the instance name like others do, which might another symptom of the underlying issue.

view more: next ›

Matty_r

joined 1 year ago