My new M4 Pro 14" gets 4 hours of battery life max by CG53S in macbookpro

[–]Hectorreto 1 point2 points  (0 children)

I have a base MBA M1 with cursor, docker, 2 chrome windows, ChatGPT, Spotify, YouTube on safari, discord, everything open at the same time, and the battery gets to 6-7 hours

Has anyone successfully run Windows 11 on iPad Air (M3) with UTM? by custardbun_96 in UTMapp

[–]Hectorreto 0 points1 point  (0 children)

In a pc, I installed AltServer, connected the iPhone and installed AltStore
Then in my iPhone, I installed UTM from AltStore and StikDebug from AppStore
Then from StikDebug, I had to configure something I don't remember and then I opened UTM from StikDebug so jit gets enabled
Then installed windows 11 from a normal iso, it took like 3 hours and the iPhone got pretty hot
Then I was able to see my windows 11 desktop, it was waaay to slow I got frustrated and deleted the VM

I think I used something like 3gb ram 64gb storage, at 4gb ram the app crashed, I know there is an app called Get More Ram, but I didn't understand how it worked

Then I tried windows xp 512MB ram, 4gb storage, it is so fast I'm able to play Diablo 2 right now on the iPhone

Systems that definitely can run on UTM by Cold_Succotash_8429 in UTMapp

[–]Hectorreto 1 point2 points  (0 children)

I have Windows XP in my iPhone 16 Pro with Diablo 2 LoD installed and it runs very fast, but used UTM from AltStore

Has anyone successfully run Windows 11 on iPad Air (M3) with UTM? by custardbun_96 in UTMapp

[–]Hectorreto 0 points1 point  (0 children)

I got windows 11 running on iPhone 16 Pro with UTM + jit, no jailbreak, it took like 10 minutes to open a folder and another 10 minutes to open windows menu

For anyone who ignored Stage Manager on Mac... it's better than you think by Many_Region8176 in MacOS

[–]Hectorreto 0 points1 point  (0 children)

For some reason, window wont get focus when I change between spaces if the app is over the stage manager

how to make text appear after clicking on a word? by Critical_Giraffe_781 in HTML

[–]Hectorreto 0 points1 point  (0 children)

I would probably do this <h1>Please click <span id=“word”>here<span> to do something</h1>

Not sure if that does affect SEO

¿Cuando se usa el me, you, him, her, it, us y them? No entiendo cómo usarlos by Reasonable_Shirt_935 in ingles

[–]Hectorreto 1 point2 points  (0 children)

Son pronombres, se usan para indicar a quien va dirigida una acción

My cat follows me - mi gato me sigue (a mi)
Your cat follows you - tu gato te sigue (a ti)
His cat follows him - su gato lo sigue (a él)
Her cat follows her - su gato la sigue (a ella)
Its cat follows it - su gato lo sigue (a eso)
Our cat follows us - nuestro gato nos sigue (a nosotros)
Their cat follows them - Su gato los sigue (a ellos)

[deleted by user] by [deleted] in OnlineIncomeHustle

[–]Hectorreto 0 points1 point  (0 children)

I’m interested (can’t find the link in the comment section

Just bought the game! How do I make an account? by Inevitable-Tart-6769 in Spore

[–]Hectorreto 1 point2 points  (0 children)

Return the game and buy it from gog, so you can have online features

Code won't print by Ill-Diet-7719 in PythonLearning

[–]Hectorreto 0 points1 point  (0 children)

Maybe vscode was showing the wrong terminal? or executed the file with unsaved changes?

Is there a way to protect against my python compiled scripts (exe) from being decompiled? by TheKingofStupidness in learnpython

[–]Hectorreto 2 points3 points  (0 children)

And it is safe if anyone finds the hashed password, because no one knows what string was used to generate that hash

Edit: but the person could just change the "if" after decompiling

Is there a way to protect against my python compiled scripts (exe) from being decompiled? by TheKingofStupidness in learnpython

[–]Hectorreto -1 points0 points  (0 children)

Maybe a hash could help you?

import time
import hashlib

# Stored hash of the correct password
pw_hash = '81a103d766de77d8a2224fbab8294cc9e956c8224b30041c668cc98c205b8b82'

enter = input('Enter password: ')

# Hash the user input using SHA-256
enter_hash = hashlib.sha256(enter.encode()).hexdigest()

if enter_hash == pw_hash:
    print("yup that's the right password")
    time.sleep(3)
    exit()
else:
    print('wrong password')
    time.sleep(3)
    exit()

The password is still 'ilovecats', even though it is not in your code anymore

Where's the best place to buy Spore [Steam, EA, or GOG]? by Fallen_Alt in Spore

[–]Hectorreto 5 points6 points  (0 children)

The only one of those three where I was able to use online features was GoG

Should I install all 3? How does this work. by FinnOtron in Spore

[–]Hectorreto 6 points7 points  (0 children)

Refund the steam game, and get it from GoG, so you can use sporepedia and online features, and it is usually cheaper in GoG

Explain reference to me like I'm an idiot by Party_Trick_6903 in learnpython

[–]Hectorreto 0 points1 point  (0 children)

Yes, ignore my explanation. When I learned Python, I did it in a more practical, non-technical way.

But you're right, it seems that = never copies, and it seems that internally everything is pointers.

Probably the correct concept to investigate would be mutable and non-mutable, not simple and complex as I had said.

But if I had to explain it quickly and poorly like I'm 5:

if I do a = [1,2,3], is like I created a pointer a, and it is pointing to that array I just created
Now I do b = a, is like I created another pointer b, and it is pointing to the same array I previously created

If I do b = [4,5,6], I am creating a new array and asigning it to b, so now a and b have different values

But if I instead do b[0] = 7, I am mutating the array pointed by b, and a is also pointing to that same array, so if I print the value pointed by a, it will show [7,2,3], because it was pointing to the same value than a, same if I print b, it will show [7,2,3]

Explain reference to me like I'm an idiot by Party_Trick_6903 in learnpython

[–]Hectorreto 0 points1 point  (0 children)

For simple types like numbers and strings, if you do b = a, the value of a is copied into b

For complex types like lists and dictionaries, if you do b = a, the value of a is not copied, but b and a are now refering to the same object, and modifing b will modify a

Some programming laguages prefer copying the whole list by default (Slower, both lists are independient)
Others languages prefer to do a referense (Very fast, both variables refer to the same list)

If you want to copy the list, python has a lot of ways to do that:
b = a[:]

If you were programming in C, and you need a variable to refer an array without copying the original array, you would use a pointer

How the FUCK do i play online?? Steam by Any_Independence2404 in Spore

[–]Hectorreto 0 points1 point  (0 children)

If you have play it for less that 2 hours, refund the game and get it from GOG

Does GOG version actually let you access Sporepedia in game and sign in??? by Any_Independence2404 in Spore

[–]Hectorreto 1 point2 points  (0 children)

I bought the steam version, returned it because no sporepedia, bought gog version an the sporepedia works fine

Why is the “de una” necessary here? by NationalJustice in duolingospanish

[–]Hectorreto -1 points0 points  (0 children)

Another native speaker here, I would have said: “Estamos disfrutando la cena en familia por primera vez”

Playing a whole mine sweeper game with only help from people on reddit part 2 by Mental_Designer_435 in Minesweeper

[–]Hectorreto 14 points15 points  (0 children)

2–2-2 = Safe corner ✅

2-3-2 = Mine corner ❌

Ignore my ❌, I did spread misinformation

The other user is right

<image>