muntedcrocodile

joined 1 year ago
MODERATOR OF
[–] [email protected] 1 points 5 days ago

I learned that one the hard way

[–] [email protected] 1 points 5 days ago (1 children)

But that's an extra step of logic u must hold in ur head while trying to understand 12 other things.

[–] [email protected] 0 points 5 days ago (6 children)

I do web dev

Theirs ur problem.

But in all seriousness I think if u def some_func(*args, kwarg=[]) Is a more explicit form of def some_func(*args, kwarg=None)

[–] [email protected] 2 points 5 days ago

OK so you want something simple that just works and will give you minimal headaches.

I see from ur comments ur running nvidia which is a pain to get drivers working for on some distros but some have a graphical installer to get then going.

I would defiantly recommend mint as its based on one of the most common disros giving u extremely transferable knowlege and very simmillar to windows.

As people have said check protondb u will only really have issues with anti cheat games. Indie games I find often have better Linux support but check protondb.

If u wanna duel boot so u can still use windows then I reccommend a separate drive. Windows on a separate partition but the same drive is unhappy and its known that windows will sometimes purposely blow up Linux cos Microsoft hates you.

If you are going to duelboot then for security u will want windows 11 but its shit so I recommend tiny11 or cristitis's debloater to uninstall all the crap.

[–] [email protected] 1 points 5 days ago (3 children)

Because I have to do the is this falsy to what I'm actually interested conversion in my head.

Say ur deep inside some complicated piece of logic and u are trying to understand. Now u have a bunch of assumptions in your head. You should be trying to eliminate as many if these assumptions with good code as possible eg u test ur fail case and return/continue that so u don't need to keep that assumption in ur head.

Say I then come along a if not x then you have to figure out what is x what is the truthiness of its type. If I come across an if len(x) == 0 then I automatically know that x is some collection of objects and I'm testing its emptiness.

[–] [email protected] 1 points 5 days ago (8 children)

I try to avoid having the same variable with different types I find it is often the cause of difficult to debug bugs. I struggle to think of a case where u would be performing a check that could be an empty list or None where both are expected possible values.

[–] [email protected] 2 points 5 days ago (5 children)

Is it? Why introduce an additional conversion from not list means empty list that u have to hold in your head. I want to check length I check length I would argue is easyer to comprehend.

[–] [email protected] 14 points 6 days ago (31 children)

I think the explicitness of checking length is worth the performance cost. If ur writing code for speed ur not using python.

[–] [email protected] 3 points 6 days ago (1 children)

Confidential computing solution. That sounds an awful lot like an oxymoron.

[–] [email protected] 5 points 6 days ago

Hey my guess was right. Yay

[–] [email protected] 7 points 1 week ago (1 children)

Bad take. A phone is a tool it should be durable and perform the tasks it needs to while enduring some rough treatment. Do u also Carey around raw eggs in ur pockets?

[–] [email protected] 0 points 1 week ago

I bought about 50 of em off Amazon for like $15. Best purchase ever. I break one every month or so from stupid shit. Dropping my phone biting to hard holding my phone in my teeth etc etc.

The screen protector isn't just a hard piece of glass to prevent scratches it adsorbed and distributes impact forces as to protect the actual display of the device itself.

The plastic ones are pointless yeah. I 3d printed a little plastic template thing that pops over my phone with the exact sizing/alignment needed to apply the screen protector perfectly. U just gotta do it in a dust free area or ur going to be fighting tiny annoying AF bubbles for the rest of ur life.

 

Do i need to wipe the private volume for the template vm if so how?

EDIT: I figured it out was because the template vm changes dont take effect until the template is shutdown. Took me way to long to figure that out.

 

Do i need to wipe the private volume for the template vm if so how?

EDIT: I figured it out was because the template vm changes dont take effect until the template is shutdown. Took me way to long to figure that out.

 

I would like to run code-server but i don't like the idea of trackers hence codium. I found this old reddit thread but it wasn't particularly helpful.

 

I did the whole distro chooser quiz but didnt help much.

Heres the things id like to hit

  • avoid systemd
  • stable
  • Wayland support
  • Minimal packages
  • no immutable (seems like to much of a pain)
  • full disk encryption but thats pretty standard nowdays.

Was going to go with devuan but the debian flavours dont have a stable with wayland yet. I was considering going with a testing or unstable build but would like to avoid headaches on a daily driver. Is testing/unstable got wayland and are they reliable enough? If so what do I go with.

Also hows the hardware comparability with framework i assume it wont be too bad to get set up.

 

I self host a bunch of things on my home network and since i dont have a static ip i use duckdns so i can access it via the greater web and set up ssl etc. Works great for my laptop and other people but on my phone where im using rethink dns to filter web access the duckdns domain doeant resolve (its not getting blocked it just not resolving at all). It resolves on cloudflare and ive set that as the fallback for rethink but still doesnt resolve any advice/help would be greatly appreciated.

 

Looking for a good foss pastbin service i can easily host with docker. Requirements: Can put a password/account login on past uploading Foss Will auto delete pasts after some time Need a rawtext capability to i can wget things Preferably language heighlighting.

-4
Jediism (en.m.wikipedia.org)
 

Cos if so why can I see a whole bunch of mod actions on the lemmy.ml mod-log but not here? If it doesn't how/why would any other instance respect a moderation action by another instance let alone know about it?

 

hope this isn't a violation of rule 3

 

I've written an AI agent with a full frontent similar to the BingAI with the capability to look up information and access files within the current "context" and a python interpreter for mathematics etc.

If anyone wants to add to the project please do I've been working on this for a couple days so its complete spaggetti code but I'm pretty happy with it as of present.

view more: ‹ prev next ›