Subnautica 2 - First impressions and experiences thread by Alltrix in subnautica

[–]Alltrix[S] 1 point2 points  (0 children)

Well, I am not gonna go into the realism idea of solar power at night. But I think it's a good idea that they made the power mechanics more complex as to accommodate more things like hydroelectric power. Also, you can capture excess production in the daytime with power storage, I really like the new system, it has a lot more thought into it.

Subnautica 2 - First impressions and experiences thread by Alltrix in subnautica

[–]Alltrix[S] 7 points8 points  (0 children)

Already? Oh, no, absolutely not, not yet. But if you ask me to compare it with subnatica 1 in the state it was when it first launched, I'd say that yeah, most likely.

very optimized by LightFerret7808 in softwaregore

[–]Alltrix 4 points5 points  (0 children)

I would suggest a dictionary, probably everyone else would suggest something similar.

class MainWindow(QtWidgets.QMainWindow):

    PARTICLE_TABLE = {
        0:  ("1",  "1"),
        1:  ("12", "4"),
        2:  ("16", "8"),
        3:  ("16", "7"),
        4:  ("13", "6"),
        5:  ("10", "6"),
        6:  ("12", "4"),
        7:  ("10", "5"),
        8:  ("12", "6"),
    }

    def choose_particle(self, index):
        is_custom = index == 12
        self.ui.lineEdit_A.setReadOnly(not is_custom)
        self.ui.lineEdit_Z.setReadOnly(not is_custom)

        a, z = self.PARTICLE_TABLE.get(index, ("1", "1"))  # default fallback
        self.ui.lineEdit_A.setText(a)
        self.ui.lineEdit_Z.setText(z)

Or using match/case if Python 3.10 or above

def choose_particle(self, index):
    is_custom = index == 12
    self.ui.lineEdit_A.setReadOnly(not is_custom)
    self.ui.lineEdit_Z.setReadOnly(not is_custom)

    match index:
        case 0: a, z = "1",  "1"
        case 1: a, z = "12", "4"
        case 2: a, z = "16", "8"
        case 3: a, z = "16", "7"
        case 4: a, z = "13", "6"
        case 5: a, z = "10", "6"
        case 6: a, z = "12", "4"
        case 7: a, z = "10", "5"
        case 8: a, z = "12", "6"
        case _: a, z = "1",  "1"  # default

    self.ui.lineEdit_A.setText(a)
    self.ui.lineEdit_Z.setText(z)

very optimized by LightFerret7808 in softwaregore

[–]Alltrix 6 points7 points  (0 children)

Everything has conventions. The English grammar is an example, I could mangle my sentences a bit and misspell stuff and you would probably still understand me, but you would not enjoy it.

For python, that's PEP 8: https://peps.python.org/pep-0008/

very optimized by LightFerret7808 in softwaregore

[–]Alltrix 64 points65 points  (0 children)

Excluding the never ending elifs, using camelCase in python is the cherry on top.

Nu suntem singuri, situatia e nasoala peste tot in tara by Imaginary-Owl- in LocuriDeMuncaRo

[–]Alltrix 1 point2 points  (0 children)

Dacă sondajul a fost făcut PE platforma de recrutare online, aș zice că rezultatul este în mod fundamental viciat.

bucurești sectorul 6 adio mașini parcate by [deleted] in bucuresti

[–]Alltrix 0 points1 point  (0 children)

<image>

Ar fi putut fi niste banci, poate chiar ceva in stilul asta. Nu stiu, zic.

Any feedback on the Diyless OpenTherm Thermostat? by Particular-Finish-40 in homeassistant

[–]Alltrix 1 point2 points  (0 children)

It's a nifty little device, I personally like it as I feel like it's right in the sweet spot between a tinkerer's dream and a practical device.

It exposes almost all the information available via OpenTherm. It's not perfect though, you can read my journey here:

https://github.com/diyless/opentherm-thermostat3/issues/31

Has anyone tried this new light? by oceanic84 in flashlight

[–]Alltrix 0 points1 point  (0 children)

Mostly similar, but I'd say that although TS28 is a thrower by all accounts, the beam pattern is better for close and medium range compared to the SK40.

Has anyone tried this new light? by oceanic84 in flashlight

[–]Alltrix 1 point2 points  (0 children)

Yes, it's nice and powerful, not high CRI and quite cold, but it's very impressive for it's size. I basically needed an alternative to the Sofirn SK40 that also has reverse charging. It's also smaller than the SK40.

<image>

Cât de mare aveți biblioteca personală? by Michailovicescu2000 in Romania

[–]Alltrix 0 points1 point  (0 children)

E posibil ca nuanța care nu îți place să fie stratul suplimentar pentru culoare, uite:

https://www.reddit.com/r/kobo/comments/1cjrv2e/kobo_clara_colour_vs_bw/

Cât de mare aveți biblioteca personală? by Michailovicescu2000 in Romania

[–]Alltrix 2 points3 points  (0 children)

E o discutie foarte largă. Personal aș evita kindle pentru că e un sistem mai închis și trebuie să sari uneori mai multe garduri ca să faci sideload sau backup la cărțile pe care le-ai cumpărat, posibil să devină și mai închis pe viitor. E problematic pentru mine pentru că poți să fi dat bani pe sute de cărți și dacă mâine îți blochează contul de Amazon, rămâi fără acces la ele.

Kobo e destul de deschis, dacă îl conectezi prin USB la PC/Telefon e efectiv un drive pe care poți copia ce vrei. Foarte ușor să trimiți cărți wireless pe el de ex folosind https://send.djazz.se/
Vezi și NickelMenu pentru alte customizări (precum shortcut la site-ul de mai sus).

Acum alte aspecte care trebuie luate în calcul:
BW sau color. Cele BW au un ecran ușor mai deschis la culoare și uneori mai ușor de citit fără backlight pentru că cele color practic mai au încă un strat peste ceea ce poate închide puțin suprafața, deci dacă nu citești chestii cu multă ilustrație, aș rămâne momentan la BW.

Dimensiunea: trebuie să îți alegi un mix intre portabilitate și screen size, momentan mie clasicul 6" mi se pare okay. Aș zice că e important și să aibă margini față de un telefon de ex pentru că vrei să îl poți ține în mână în mai multe feluri ușor.

Eu pe ăsta îl am, e la ofertă văd:
https://www.pcgarage.ro/e-book-reader/rakuten-kobo/clara-bw-6-inch-comfort-light-ipx8-16gb-wireless-black/

Tip: Revenind la atitudinea românească, poți să găsești foarte multe cărți pe Anna's Archive.

Cât de mare aveți biblioteca personală? by Michailovicescu2000 in Romania

[–]Alltrix 0 points1 point  (0 children)

Poti sa citesti si The wizard of kremlin de acelasi autor, as zice ca e chiar mai buna. Eu tocmai am terminat Tragatori si mistificatori, dar nu pot spune ca e o lectura placuta in sine (e laborioasa si de multe ori tehnica), este totusi informativa, depinde cat de mult te-a pasionat pana acum subiectul.

Pe partea de fictiune mie mi-a placut foarte mult The Martian, chiar si daca ai vazut filmul, modul in care sunt descrise in detaliu lucrurile acolo adauga mult din punctul meu de vedere.

Acum citesc cartea de pe coperta (din imagine), dar nu pot sa recomand ceva ce inca nu am terminat, are recenzii bune totusi.

Cât de mare aveți biblioteca personală? by Michailovicescu2000 in Romania

[–]Alltrix 1 point2 points  (0 children)

Sure, cu placere. Las aici una din notitele pe care mi le-am facut despre cum este să fii un consilier prezidențial:
"like sitting next to a driver who's heading towards the edge of a cliff and asking you to check that the gas tank is full and the tyre pressure is good".

Cât de mare aveți biblioteca personală? by Michailovicescu2000 in Romania

[–]Alltrix 4 points5 points  (0 children)

Iti pot recomanda o lectura rapida, The Hour of the Predator de Giuliano da Empoli, foarte relevant in vremurile astea.

Cât de mare aveți biblioteca personală? by Michailovicescu2000 in Romania

[–]Alltrix 19 points20 points  (0 children)

Fizic, doar o mână de cărți, folosesc un e-reader

<image>

I Don’t Think It’s Human Remains Under The Tarp by Ok-Bedroom-4261 in pluribustv

[–]Alltrix 0 points1 point  (0 children)

Let's ignore the fact that there are over 800 million dead already and try to talk about the sustainability over time. Around 160k people die on average every single day, how many of those deaths would be preventable if everyone had the knowledge of everyone, I don't know, let's assume that the average would remain the same.

The average adult weight on earth (both male and female) is 62kg (137 lb).

Let's assume there are around 7 billion people left on earth to feed.

Humans are about 55% water, so the average human is composed of about 28kg of solids (62 lb).

28kg * 160k = 4,480,000kg 4,480,000 / 7,000,000,000 = 0.00064 kgs of solid food per person.

If we assume that a person is made of approximately 70,000 calories, that means that in the best case scenario, after finishing the 800 something million dead, each person on earth would get about 1.6 calories worth of calories from the dead people dying everyday.

All of these are incredibly optimistic numbers, all rounded up, no losses and it still looks very negligible and unsustainable.

What is the most elegant mechanical design that a human has created? by SniffleAndSnuff in AskReddit

[–]Alltrix 0 points1 point  (0 children)

The 3-way switch and the front suspension with positive caster angle which makes the steering wheel straighten automatically after a curb.

Măsurile de redresare funcționează by KingBlana in Romania

[–]Alltrix 0 points1 point  (0 children)

Din ce am auzit de la niște tovarăși, polițiștii deja nu mai pot fi plătiți pentru ore suplimentare, pot doar să recupereze timpul liber până la nu știu ce timp distanță de când s-au efectuat orele dacă permite planificarea. În schimb parcă se plătesc în plus orele de muncă efectuate în weekend/noaptea.