Oscar

@Oscar@programming.dev
0 Post – 51 Comments
Joined 1 years ago

So you have never iterated over command line arguments and tried to identify options? Or taken a string input field?

đť•Ź (U+1D54F) and/or đť•© (U+1D569)

If you search blackboard bold or double-struck letters you can find more.

Depends on the devs but I reckon they won't use the API.

Ah yes, because rich == bad

It's possible to be successful and have a good influence on the industry. Valve is the perfect example of that.

5 more...

I'm a simple man, I just search directly in qbittorrent.

1 more...

It seems to me that you misunderstand what artificial intelligence means. AI doesn't necessitate thought or sentience. If a computer can perform a complex task that is indistinguishable from the work of a human, it will be considered intelligent.

You may consider the classic turing test, which doesn't question why a computer program answers the way it does, only that it is indiscernable from a human response.

You may also consider this quote from John McCarthy on the topic:

Q. What is artificial intelligence?

A. It is the science and engineering of making intelligent machines, especially intelligent computer programs. It is related to the similar task of using computers to understand human intelligence, but AI does not have to confine itself to methods that are biologically observable.

There's more on this topic by IBM here.

You may also consider a few extra definitions:

Artificial Intelligence (AI), a term coined by emeritus Stanford Professor John McCarthy in 1955, was defined by him as “the science and engineering of making intelligent machines”. Much research has humans program machines to behave in a clever way, like playing chess, but, today, we emphasize machines that can learn, at least somewhat like human beings do.

Artificial intelligence (AI) is the field devoted to building artificial animals (or at least artificial creatures that – in suitable contexts – appear to be animals) and, for many, artificial persons (or at least artificial creatures that – in suitable contexts – appear to be persons).

artificial intelligence (AI), the ability of a digital computer or computer-controlled robot to perform tasks commonly associated with intelligent beings

5 more...

Since people keep bringing up tauri, here's the comparison made in the README:

Dioxus vs Tauri

Tauri is a framework for building desktop (and soon, mobile) apps where your frontend is written in a web-based framework like React, Vue, Svelte, etc. Whenever you need to do native work, you can write Rust functions and call them from your frontend.

  • Natively Rust: Tauri's architecture limits your UI to either JavaScript or WebAssembly. With Dioxus, your Rust code is running natively on the user's machine, letting you do things like spawning threads, accessing the filesystem, without any IPC bridge. This drastically simplifies your app's architecture and makes it easier to build. You can build a Tauri app with Dioxus-Web as a frontend if you'd like.

  • Different scopes: Tauri needs to support JavaScript and its complex build tooling, limiting the scope of what you can do with it. Since Dioxus is exclusively focused on Rust, we're able to provide extra utilities like Server Functions, advanced bundling, and a native renderer.

  • Shared DNA: While Tauri and Dioxus are separate projects, they do share libraries like Tao and Wry: windowing and webview libraries maintained by the Tauri team.

It's when you open a publicly facing port and map (forward) it to a local port your machine. In this case, it's opened at the vpn provider's public gateway. Otherwise, it would typically be opened in your router instead.

You can then configure your torrent client to listen on that local port that the public port is forwarded to. I think generally the public and the local port are the same number when using VPN.

If you do that, then others have the ability to initiate a connection to you instead of only you being able to initiate the connection to somebody else.

When seeding/leeching to/from someone else, at least one of you needs a port open. So, if you always have one open, you allow yourself to connect to anyone on the network regardless if they have one open or not.

Sorry if I confused you more, I'm not that great at explaining.

You're not wrong, but it bugs me when my ratio drops, so I always seed everything I download. I have a pretty good internet service though.

My stats:

1 more...

My thinkpad model officially supports linux, so there is no problem there. It is also much cheaper than any of those brands, and it's also available from the regular stores.

1 more...

I seed without cap, don't really need my upload for anything else. (500 Mbps)

What's the distro? I can help seed it indefinitely with open ports.

There's definitively more to a distro than the shell prompt and wallpaper.

Besides the obvious package repos and how well package interoperability is maintained, there's also differences for default configuration. OpenSUSE offers sane options for security OOtB, IMO.

Then there's also linux itself. Some distros build the default kernel package with a set of patches to improve typical usability, while others just ship an untouched upstream version. Some offer alternatives while others don't.

Linux uses 8 spaces. Excerpt from the official style guide:

Tabs are 8 characters, and thus indentations are also 8 characters. There are heretic movements that try to make indentations 4 (or even 2!) characters deep, and that is akin to trying to define the value of PI to be 3.

Rationale: The whole idea behind indentation is to clearly define where a block of control starts and ends. Especially when you’ve been looking at your screen for 20 straight hours, you’ll find it a lot easier to see how the indentation works if you have large indentations.

Now, some people will claim that having 8-character indentations makes the code move too far to the right, and makes it hard to read on a 80-character terminal screen. The answer to that is that if you need more than 3 levels of indentation, you’re screwed anyway, and should fix your program.

In short, 8-char indents make things easier to read, and have the added benefit of warning you when you’re nesting your functions too deep. Heed that warning.

The reasoning seems sound, but I still prefer 4 personally.

What distro did you go with? My friend is showing intrest in trying Linux but I'm not sure what to recommend him. I use more advanced distros myself but I want it to work well for him OOtB while also not requiring any tinkering. I'm think of either some ubuntu-flavour or fork, like Kubuntu or maybe Mint.

3 more...

There default settings are highly unsecure.

There is a Firefox fork called librewolf which addresses that.

2 more...

But there isn't any official teams client for Linux either way, right? I use an unofficial one, so I hope this won't break it.

1 more...

What i found to work the best is to generate and download a config file, then import it into NetworkManager. There's a plugin for wireguard here: https://github.com/max-moser/network-manager-wireguard

This way, it's easy to add routes, autostart, etc. But I don't think a safe killswitch is possible.

Edit: But since this is a piracy community, i should mention that qbittorrent has a setting for specifying the network interface, so it's easy to force it to use the vpn connection only, in place of a killswitch.

3 more...

I used vscode for a few years, but I eventually went back to neovim/tmux. It's a lot less resource heavy, and it's easy to just ssh and jump in from home. I also much prefer a modal editor and I don't want to have to touch a mouse.

I'm swedish and I use EurKEY. It's basically US but makes it possible to use Ă…/Ă„/Ă– through altgr + W/A/O. I don't write that much swedish so I'm not too bothered, meanwhile the coding advantage is huge for ' " \ | / ? | [ ] { } .

By the same argument, wouldn't GPL and other copyleft licenses be considered non-free as well since you are not free to do whatever you want with the source? For example, incorporating it into a proprietary project, refusing to provide the source to users upon request, or not disclosing attribution, etc. The latter would even go against the terms of permissive licenses.

Clearly defining what free, and by extension FOSS, means is very relevant.

2 more...

I think this was created before the "new" UI. Check the slogan above the logo.

Interesting! I used arch for about 2 years on my gaming rig and it worked fine but I was worried if he went with something based on Arch that he would eventually run into issues due to not properly maintaining it (avoiding partial upgrades for example). But I'm probably overthinking it. If he sticks to a GUI for installing and updating packages and avoid messing with the terminal initially it should be fine.

I will add EndeavourOS to a small list of recommendations (rolling vs point release) so he can decide for himself.

I will sound really nit-picky buy the biggest thing keeping me away from using KDE is that accent-colored bar on each window in the taskbar, and the different coloring of open/focused/minimized windows. I want it sleek but not cluttery.

I've tried about a dozen themes but I couldn't find any that got rid of that and looked good. I tried fixing it myself but editing svg files was too difficult for me.

I hope plasma 6 adds more options for this but I'm not holding my breath.

Of course they weren't asked as often, there's significantly less number of users on Linux. 96.21% of the users asked was on Windows.

PF works with proton, I use it. But you have to continuously call it to stay open. (On linux)

I use debian 12 on my work laptop. I agree with your points but I still use it because I want the fundamental system to be stable, and then any software I want to be more up-to-date I build from source (tmux, alacritty, neovim) or download separately (vscode/slack/joplin).

I used to use ubuntu because it worked so well with my hardware ootb, but I got tired of snap.

I'm 24 hours in and I didn't even know there were acts lol, but I assume I'm also on act 1. I've pretty much only done side missions.

At least to my understanding. My model is the T14 Gen 1 (AMD). But I would recommend checking newer models.

A few points that indicates this:

  1. It's possible to order it with linux preinstalled:

    In limited countries or regions, Lenovo offers customers an option to order computers with the preinstalled Linux® operating system. - User Guide, Appendix C

  2. Ubuntu 20.04 certification: https://ubuntu.com/certified/202006-27980

  3. RHEL 8.3 certification: https://catalog.redhat.com/hardware/detail/71625

  4. There's a "Linux Certification" page (whatever that means): https://support.lenovo.com/au/en/solutions/pd500492

  5. The BIOS software comes with linux instructions. Though I just use whatever is available with fwupd, which is a CLI application but has GUI support through Gnome with gnome-firmware.


More info about linux support here, under "Notebooks and Laptops": www.lenovo.com/linux

A million edits later: I got confused by what the product ID was but I think I finally figured it out.

More bloat from flatpak overhead :^)

Ok, then I don't understand at all. What happens if I host my git project on https://myawesomeproject.dev/? How can the application infer anything by this URL?

4 more...

But you can't assume that it follows the github format of https:////.git. In my example, I meant that you would just use that url to clone it:

git clone https://myawesomeproject.dev

One real-world example of this is ziglings.org (though it's technically just a redirect).

1 more...

I don't think it's available on android. But if it is, then I would expect it to be it's own separate app that can coexist with the regular firefox. That's how it is on PC.

That is assuming it's hosted on github.

6 more...

without explicit consent

Couldn't they just add another ToS checkbox to click when installing the game?

Good point. But then if both the script and the command have the same filename, it will be important to make sure the script has a higher precedence in the PATH. Adding it to the end of .bashrc should be enough I think.

No, it isn't. Git doesn't care what the url is, as long as it uses a supported transport protocol.

Something i especially appreciate about winget us that it will "index" (or whatever you want to call it) software that was installed outside of it. For example if I install app XYZ through an .msi setup file, I can update it using winget.

So it seems I can also use scoop or chocolatey to install new software and then keep managing them through winget.

C is a pretty simple language and relatively easy to learn. But it's a lot harder to be proficient with.

Can't they just use JSDoc?

I want to try ANSI also, but it seems pretty hard to find in EU. I've considered getting a keychron for my gaming setup but I don't want a full on mechanical for work, and I don't want to use ISO at work and ANSI at home because it will screw with my muscle memory.

1 more...