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

alexleduc, to random
@alexleduc@mstdn.ca avatar

I had this idea for an April fools GitHub project for a utility that pre-loads command line utilities so that they run faster. It would have been named pre-command. Or pre-com, for short. It was too much effort, just so I can make a pun

mo8it, to rust
@mo8it@fosstodon.org avatar

lint idea and performance tip 🚀

Warn about a repeated call of Path::join ⚠️

This allocates a new PathBuf each time. Then Path::join is called on the new PathBuf because of the Deref implementation.

Instead, you should use extend like in the screenshot (preferably with a capacity hint).

You can also use .collect::<PathBuf>() on an iterator instead:
https://doc.rust-lang.org/stable/std/path/struct.PathBuf.html#impl-FromIterator%3CP%3E-for-PathBuf

https://cdn.fosstodon.org/media_attachments/files/112/154/113/890/868/537/original/2fa4c8aad38a3ff6.png

alexleduc,
@alexleduc@mstdn.ca avatar

@mo8it I find the join calls much more readable.

alexleduc, (edited ) to linux
@alexleduc@mstdn.ca avatar

Notice the cool clock at the bottom right (Fancy Clock + Wedgie font, from #Google #fonts)
#ViernesDeEscritorio
#ShareYourDesktop
#linux

alexleduc, to random
@alexleduc@mstdn.ca avatar

If they find a non-intrusive way to control a computer with your thoughts, count me in (non-intrusive = not drilling a hole in your skull)
https://www.youtube.com/watch?v=8BrLNgKLWzs

amadeus, (edited ) to linux
@amadeus@mstdn.social avatar

As has become more popular, I have tried to help make (s) Flatpak ready.
Interestingly, I keep coming across a general rejection, like "it's not worth the effort", "it's not the future", etc.
I am aware that it has drawbacks. But are you also against it?
Apart from the amount of space it can take up, I have to say that I've never really had any complaints, and I've sort of already accepted it as a kind of convenient, non-system , I guess.

alexleduc,
@alexleduc@mstdn.ca avatar

@amadeus I like Flatpaks, but it kind of sucks for command line utilities, since you have to use the flatpak runtime to execute them instead of the real command name. Also, the size issue kind of sucks. I had created a 50GB system partition thinking I would never need that much space, but after a few months, the various runtimes it installs made me run into space issue. I had to re-install my system with a 300Gb partition. That alone makes me lean towards installing native packages instead

alexleduc, to ai
@alexleduc@mstdn.ca avatar
engineerminded, to linux
@engineerminded@techhub.social avatar

So finally, I have a question. What in your opinion is the best distribution for developers?

alexleduc,
@alexleduc@mstdn.ca avatar

@engineerminded you can install amy dev tool on any distribution, so I don't think it matter. Pick one you thinkam appealing desktop experience

chrimbus, to linux
@chrimbus@fosstodon.org avatar

any good recs on ? i know isn't available on linux and is ok i guess. is cool but very limited and hard to work with. i like to click and write midi notes mostly.

alexleduc, (edited )
@alexleduc@mstdn.ca avatar

@chrimbus I don't even know what DAW stands for, but I saw this in my feed the other day https://linuxdaw.org/

BrodieOnLinux, to random
@BrodieOnLinux@linuxrocks.online avatar

Is there a way to restore the default panel, I dragged something and now it's all completely broken

alexleduc,
@alexleduc@mstdn.ca avatar

@zstg @BrodieOnLinux @arshubham Zestif, on plasma 5 you can restore it by right-clicking on the desktop. In the context menu, hover over Add Panel and then select the default panel from the submenu

dopey_kun, to javascript
@dopey_kun@sakurajima.moe avatar

Wait, you're telling me when you call sort() on an array of numbers in Javascript, it first converts them to strings?

So it's practically useless without passing a custom compare function, unless your numbers are all positive and have the same number of digits.

alexleduc,
@alexleduc@mstdn.ca avatar

@dopey_kun Considering it's a dynamically typed language, it makes sense. It can't know the type of every value in the array unless it would loop over every one. JS array can have values of different types

sjvn, to linux
@sjvn@mastodon.social avatar

5 reasons why desktop Linux is finally growing in popularity https://zdnet.com/article/5-reasons-why-desktop-linux-is-finally-growing-in-popularity/ by @sjvn

Four percent of the desktop market isn't a lot, but it's better than has done before. Here are my thoughts on why the Linux desktop is finally gaining popularity.

alexleduc, (edited )
@alexleduc@mstdn.ca avatar

@sjvn 4% might not be a big chunk of the market share, but considering the number of desktop PCs worldwide, this is a huge amount. I think the interesting bit is not the 4%, but the fact that it only took 8 month for it to jump from 3% to 4%. This means the growth rate has sky rocketted!

dustinrue, to linux
@dustinrue@chateaude.luxe avatar

Using on . Once I install an app, is the only way to launch it from the cli? Is this real?

alexleduc,
@alexleduc@mstdn.ca avatar

@dustinrue On KDE, the application's shortcut is added to the app launcher menu. You definitely should not need the command line to run Flatpak apps.

alexleduc,
@alexleduc@mstdn.ca avatar

@dustinrue I don't run Gnome, so I can't say for sure, but I'd be surprised if that was not the case. I think Flatpak was started by people who work on Gnome, so I doubt it would have an inferior user experience than KDE

alexleduc, to linux
@alexleduc@mstdn.ca avatar

has surpassed a 4% share in the desktop operating system market as of the end of February 2024. It took Linux 30 years to secure a 3% share of desktop operating systems, a milestone reached last June. https://linuxiac.com/linux-crosses-four-percent-market-share-worldwide/

alexleduc, to security
@alexleduc@mstdn.ca avatar

I don't care about US politics, but this new policy is pretty good news for
https://www.infoworld.com/article/3713203/white-house-urges-developers-to-dump-c-and-c.html

alexleduc,
@alexleduc@mstdn.ca avatar

@m3lang3 Memory safety is worth whatever compile time requirements it has. Especially for software related to networking / things that get are typical targets of hacks.

alexleduc,
@alexleduc@mstdn.ca avatar

@m3lang3 Ruby is several orders of magnitude slower than Rust though. That's fine depending on the use case, but if performance is a concern, Ruby is not an option. The whole point of Rust is as a low level system programming language that can almost match the performance of C, but without the memory management foot guns.

eugenialoli, to UI
@eugenialoli@mastodon.social avatar

I wish I understood why people use the dark themes on their OSes, apps, and websites. I truly don't get it because my eyes can't process information as fast as they can on a white background with black letters. I don't consider the dark themes to be the natural default for human eyes. Maybe for owls...

alexleduc,
@alexleduc@mstdn.ca avatar

@eugenialoli After many hours of exposure to a screen, some people can begin to feel eye strain, due to how much light a light theme blasts into your eyes. I think it highly depends on the ambient lighting you have in your room. If you use your computer in a room bathed in sunlight, a light theme will not "glow" as much as in a low ambient light setting.

skybert, to linux
@skybert@emacs.ch avatar

Which distro would you recommend a user coming over from Windows?

Today, I got this question. The person has been a developer on the Windows platform for many years and is comfortable both with RTFMing and using the command line.

As much as I liked to scream Arch Linux!!! Or failing that, Debian!!! I actually said ... Ubuntu.

  • Comes pre-installed on Dell and Lenovo laptops
  • Great OOTB experience
  • Great online resources as well as printed books.
  • Even some commercial software has an Ubuntu version.

What do you think?

alexleduc,
@alexleduc@mstdn.ca avatar

@skybert I would recommend a rolling release based on Arch (Endeavor, Manjaro). Regular distros tend to use older kernels, and if some hardware doesn't work right, you are more likely to get the new driver in a recent kernel.

Linux, to windows
@Linux@linuxrocks.online avatar

You know what it looks like for Microsoft Windows? A path to coming a Linux distribution! :windows: :linux:

That's right folks - "Windows is no longer profitable so Microsoft is turning it into Linux to lessen the burden" :thinkhappy:

◉Microsoft is now bringing sudo (known from Linux) to Windows
◉GZ-archive support already in
◉SSH already in for Windows
◉Other Linux-like features / WSL (Windows Subsystem for Linux)

What do YOU think?

https://github.com/microsoft/sudo

alexleduc,
@alexleduc@mstdn.ca avatar

@Linux Except Windows is insanely profitable.

thingrex, to javascript
@thingrex@fosstodon.org avatar

JavaScript/Node never provided sufficient support for small devices. I spent many hours trying to make it work, but that was a dead-end.

MicroPython is a decent choice for fast prototyping (at least for some platforms), but you should use it with care in production deployments.

I have never tried Rust. There is some hype around it, but I would appreciate someone sharing hands-on production experience.

alexleduc,
@alexleduc@mstdn.ca avatar

@thingrex You might have better luck with Deno. Unlike Node, it is distributed as one single executable file, so you can just drop it in any folder, update the PATH variable, and be ready to start using it (all this assuming it exists for the CPU architecture you are targeting).

alexleduc,
@alexleduc@mstdn.ca avatar

@thingrex Probably not. The code is on GitHub, but I only see x86-64 and Arm builds

rsmedia, to linux

Another small victory for a lol... Couldn't log in due to the full partition... Didn't think about eating disc space like crazy...
...but...problem sorted and I feel like climbing :)

alexleduc,
@alexleduc@mstdn.ca avatar

@rsmedia how did you solve it? Can you delete timeshift restore points from the boot loader?

BrodieOnLinux, to random
@BrodieOnLinux@linuxrocks.online avatar

Hot Take:
Bug trackers like Bugzilla are great tools for a developer, providing a way to neatly layout issue discussions but especially Bugzilla absolutely suck for the user, are needlessly complex to interact with so I completely understand why users prefer to complain on Reddit

alexleduc,
@alexleduc@mstdn.ca avatar

@BrodieOnLinux I'm a developer and if I have to deal with Bugzilla to report an issue on some open source software I use, I'm more likely to just say "F' it"

alexleduc, to webdev
@alexleduc@mstdn.ca avatar

The dark mode on this site makes me smile https://tonsky.me/blog/checkbox/

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