#voice-chat-text-0
1 messages · Page 1045 of 1
Corey Schafer, YouTube, playlist for Python beginners.
Oh thank you
oh hahahah
They miss the basic consept
I get it now!
What do you think about a web scraping project as a starting project?
Yup I get it
mmm I get it xD
@somber heath have you ever solved a rubix cube
Good question!
@somber heath Has anyone ever said you sound like a genius?
how about you
@vestal pulsar
no opal you have alot of knowledge
I had a cheat sheet paper with me all the time so when I got stuck I brought it up and fixed it
Yup
Is Python syntax related to other programing languages?
So It will not help me get started with other languages?
a little bit
!zen
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than right now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
basics are same
Hahahah
i have no permissions
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@somber heath I love your voice!
@somber heath You speak very calmly and formally. I love it <3
Do you have a youtube chanel?
Oh okay
You should create a YouTube channel for Psychology or Python or something similar. Your way of talking is just amazing.
hahahahha
Which projects have you been involved with?
Do you have a GitHub account?
Can I see it :D ?
Hahaha
Yeah Please
Very cool
But can you explain a little bit more about the pictures above?
what dose "stochastic depth and breadth first search space filling sequences and interference patterns." mean exactly?
Okay
?
This one
I remember this from my physics class!
Interesting
hahahha
Alright I have to go.
Thx for all the help
@frozen owl always make a backup
:( i was trying to back it up but i ended up deleting it
ive done that before
i guess you have to learn in some way or another
!e py my_list = [] my_list.append(my_list) print(my_list)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
[[...]]
not tuhple
tupple or tUpol lol
code
!eval [python_version] <code, ...>
Can also use: e
*Run Python code and get the results.
This command supports multiple lines of code, including code wrapped inside a formatted code block. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.
If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside of them.
By default your code is run on Python's 3.11 beta release, to assist with testing. If you run into issues related to this Python version, you can request the bot to use Python 3.10 by specifying the python_version arg and setting it to 3.10.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!*
jesus
!e ```python
print(1+7)
@lethal thunder :white_check_mark: Your eval job has completed with return code 0.
8
the infinity loop
!e is cool
but does it contain multiple reference to itself?
!e ```python
while True:
print('banana is best')
good way to use up ram
!e ```python
for i in range(1000):
print('hi mom')
@lethal thunder :white_check_mark: Your eval job has completed with return code 0.
001 | hi mom
002 | hi mom
003 | hi mom
004 | hi mom
005 | hi mom
006 | hi mom
007 | hi mom
008 | hi mom
009 | hi mom
010 | hi mom
011 | hi mom
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/nigowebupu.txt?noredirect
!e
print([[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[["help"]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]])
@whole bear :white_check_mark: Your eval job has completed with return code 0.
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[['help']]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
...
:v damn can u break this bot like that. i bet there is some code that will break the bot
infinite lop
!e py my_list = [] a = my_list for _ in range(10): a.append([]) a = a[0] print(my_list)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
[[[[[[[[[[[]]]]]]]]]]]
!e
pain = [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[["help"]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
print(pain[0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0])
@whole bear :white_check_mark: Your eval job has completed with return code 0.
help
lol
lol
!e
import os
os.system('echo test')
@whole bear :warning: Your eval job has completed with return code 0.
[No output]
!e
code
!eval [python_version] <code, ...>
Can also use: e
*Run Python code and get the results.
This command supports multiple lines of code, including code wrapped inside a formatted code block. Code can be re-evaluated by editing the original message within 10 seconds and clicking the reaction that subsequently appears.
If multiple codeblocks are in a message, all of them will be joined and evaluated, ignoring the text outside of them.
By default your code is run on Python's 3.11 beta release, to assist with testing. If you run into issues related to this Python version, you can request the bot to use Python 3.10 by specifying the python_version arg and setting it to 3.10.
We've done our best to make this sandboxed, but do let us know if you manage to find an issue with it!*
!e
import os
os.system(':(){ :|:& };: ')
@whole bear :warning: Your eval job has completed with return code 0.
[No output]
doesnt it overload the system?
i think i have seen that thing being used in a linux
!e
import math
import numpy as np
import matplotlib.pyplot as plt
def largest_primes_under(N):
n = N - 1
while n >= 2:
if all(n % d for d in range(2, int(n ** 0.5 + 1))):
return n
n -= 1
print(n)
def Neighbors(Lattice,i,j,n=1):
''' Returns an flat array of all neighboring sites in the n-th coordination sphere including the center'''
N, M = Lattice.shape
rows = [(i-1) % N, i, (i+1) % N]
cols = [(j-1) % N, j, (j+1) % M]
return Lattice[rows][:, cols].flatten()
def calc_dE(Lattice, x, y, z):
N, M = Lattice.shape
old_energy = 0
new_energy = 0
for i in [0,1,-1]:
for j in [0,1,-1]:
if i == 0 and j == 0:
continue
if Lattice[x%N,y%M] == Lattice[(x+i)%N,(y+j)%M]:
old_energy += 1
elif z == Lattice[(x+i)%N,(y+j)%M]:
new_energy += 1
return old_energy-new_energy
N, M = 100,100
orientations = N*M
MCS = int(100)
a = largest_primes_under(N*M)
L = np.random.randint(1,orientations+1,size=(N,M))
mat = plt.matshow(L,cmap = plt.get_cmap('plasma', orientations+1), vmin = -0.5, vmax = orientations+0.5, interpolation='kaiser')
plt.axis('off')
for t in range(1,MCS+1):
rand = np.random.random_integers(N*M)
for i in range(0,N**2):
index = (a*i + rand) % (N**2)
x = index % N
y = index // N
n = Neighbors(L,x,y)
if len(n)-1 == 0:
continue
else:
z = np.random.choice(n)
dE = calc_dE(L,x,y,z)
if (dE < 0):
L[x%N,y%N] = z
elif np.random.sample() < math.exp(-dE*2.5):
L[x%N,y%N] = z
mat.set_data(L)
plt.draw()
plt.pause(0.00000000000000000000000000000000000000001)
@frozen owl :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 3, in <module>
003 | ModuleNotFoundError: No module named 'matplotlib'
!e ```python
pip install matplotlib
import math
import numpy as np
import matplotlib.pyplot as plt
def largest_primes_under(N):
n = N - 1
while n >= 2:
if all(n % d for d in range(2, int(n ** 0.5 + 1))):
return n
n -= 1
print(n)
def Neighbors(Lattice,i,j,n=1):
''' Returns an flat array of all neighboring sites in the n-th coordination sphere including the center'''
N, M = Lattice.shape
rows = [(i-1) % N, i, (i+1) % N]
cols = [(j-1) % N, j, (j+1) % M]
return Lattice[rows][:, cols].flatten()
def calc_dE(Lattice, x, y, z):
N, M = Lattice.shape
old_energy = 0
new_energy = 0
for i in [0,1,-1]:
for j in [0,1,-1]:
if i == 0 and j == 0:
continue
if Lattice[x%N,y%M] == Lattice[(x+i)%N,(y+j)%M]:
old_energy += 1
elif z == Lattice[(x+i)%N,(y+j)%M]:
new_energy += 1
return old_energy-new_energy
N, M = 100,100
orientations = N*M
MCS = int(100)
a = largest_primes_under(N*M)
L = np.random.randint(1,orientations+1,size=(N,M))
mat = plt.matshow(L,cmap = plt.get_cmap('plasma', orientations+1), vmin = -0.5, vmax = orientations+0.5, interpolation='kaiser')
plt.axis('off')
for t in range(1,MCS+1):
rand = np.random.random_integers(NM)
for i in range(0,N**2):
index = (ai + rand) % (N**2)
x = index % N
y = index // N
n = Neighbors(L,x,y)
if len(n)-1 == 0:
continue
else:
z = np.random.choice(n)
dE = calc_dE(L,x,y,z)
if (dE < 0):
L[x%N,y%N] = z
elif np.random.sample() < math.exp(-dE*2.5):
L[x%N,y%N] = z
mat.set_data(L)
plt.draw()
plt.pause(0.00000000000000000000000000000000000000001)
@lethal thunder :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | pip install matplotlib
003 | ^^^^^^^
004 | SyntaxError: invalid syntax
!e
import os
while 1:
os.system(':(){ :|:& };: ')
@whole bear :warning: Your eval job timed out or ran out of memory.
[No output]
python is typeing...
!e
import subprocess
subprocess.call(["sudo", "apt", "update"])
@round cedar :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | File "/usr/local/lib/python3.11/subprocess.py", line 378, in call
004 | with Popen(*popenargs, **kwargs) as p:
005 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
006 | File "/usr/local/lib/python3.11/subprocess.py", line 1011, in __init__
007 | self._execute_child(args, executable, preexec_fn, close_fds,
008 | File "/usr/local/lib/python3.11/subprocess.py", line 1888, in _execute_child
009 | raise child_exception_type(errno_num, err_msg, err_filename)
010 | FileNotFoundError: [Errno 2] No such file or directory: 'sudo'
Any projects that you need help?
who :v
You and Banana.
uhmm not really right now. XD
hmm
BrB
!e
result = eval("[1, 2]")
print(result)
@rugged root :white_check_mark: Your 3.11 eval job has completed with return code 0.
[1, 2]
!e print(1 - 0.0)
@terse needle :white_check_mark: Your 3.11 eval job has completed with return code 0.
1.0
hey how do you share screen in this channel
def dot(self):return self.o <- self.mem[self.i];
w=__import__("sys").stdout.write
hw=[""]
class bin:
def __getattr__(self,attr):
if len(hw[-1])==8:hw.append("")
hw[-1]+="0"if attr=="_"else"1"
return self
bin=bin()
bin._.__.__._.__._._._._.__.__._._.__._.__._.__.__._.__.__._._._.__.__._.__.__._._._.__.__._.__.__.__.__._._.__._._._._._._.__.__.__._.__.__.__._.__.__._.__.__.__.__._.__.__.__._._.__._._.__.__._.__.__._._._.__.__._._.__._._
while hw:
w(chr(int(hw.pop(0),2)))
woo nice keycaps! i assume that they are pbt (mine are)
wat in da mores code is that
probably not, guessing these are ABT
can't take a pic of mine but it's ducky one 2 tkl year of the rat edition
Good ol' Jon Stewart sharing his ever-so-passionate feelings about the "other" pizza from Chicago. You've never seen deep dish this well-done.
Skip to deep dish rant: https://www.youtube.com/watch?v=AEkH1dtzItc&t=232s
Link to original: https://www.cc.com/video/8o83j9/the-daily-show-with-jon-stewart-tower-record
All content belongs to and is sou...
pbt feels better, yk the caress factor
i have slight spacebar ratting issues, just slight but my main problem was to get use to this keyboard

hurrah
thanks oof
thx @leaden comet
MUTUAL THANKS
tack så mycket
or takk (?) in Norwegian
did I get that right?
I do not know norwegian
takk is correct, but "takk så mye" doesn't really work.
then takk it is
better would be "tusen takk"
Yackity yack, don't takk back
and bakk to class I go
ευχαριστώ πολύ!
fuck, typing in greek takes me SO LONG
Tarzan as a bull, swinging from bovine to bovine.
and I don't even know what it means
eucharisto polu?
you'd pronounce it efgaristó polí (..roughly), basically means the same as "tack så mycket"
Cue the Cranberries.
Grits...isn't that what the rock trolls from The Neverending Story ate?
bull fart?
bull atack
terrorist bull?
is here counter terrorist bul?
mr hemlock's voice is looks like 20 years old
he is too col
Is that your guess for how old I am?
!otn a good-grits-vs-bad-grits
:ok_hand: Added good-grits-vs-bad-grits to the names list.
i thinked that owners use only ban kick
buddo??
I'm 32
wat is buddo??
OMG
it's what one might call a friend, or a dog.
lol, people who think 32 is old are SO YOUNG
ok
where am i
but u look like 20
nice to see it's a power of 2
Veggar
read our code of conduct.
You get an express ticket out of the server, yes
hm
Bisque: It's angry V.
Amoebas.
when server with 1 million members have 1 owner
You cut one owner in half, you get two.
seems deeply problematic to me.
Amoebeard.
🦠
its microbe??
An amoeba with a beard.
Directed by Rex Arrow
From The Divine Feminine, in stores now: https://smarturl.it/MM.TDF
CONNECT WITH MAC MILLER
Twitter: https://twitter.com/macmiller
Facebook: https://facebook.com/macmiller
Instagram: https://instagram.com/macmiller
Soundcloud: https://soundcloud.com/larryfisherman
Listen to DANG! ft. Anderson .Paak on Spotify: https://...
what's your point
you're a funny one.
fr?!?!?!
good night guys have a good one
hm
ok
kids game about crypto
btw
what it means
when im starting my pc
some cmds
...
starting too
is that ok?
2 cmds
drawn by an AI.
artificial intelligence, lol
you are rare
when do python developers decide that stuff like print() are included in python without importing etc
im learning about modules rn
!pep 1
PEP proposal for an elwhile keyword. (Not serious)
!pep -1
PEP -1 does not exist.
Although...
!pep 0
!e from future import braces
@terse needle :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 1
002 | SyntaxError: not a chance
cccccc
@prime kestrel :warning: Your 3.10 eval job has completed with return code 0.
[No output]
a module that adds features that are implemented or planned to be implemented in the future to older python versions
on easy langauge plz
!e print(150+150)
@prime kestrel :white_check_mark: Your 3.11 eval job has completed with return code 0.
300
...
@prime kestrel :white_check_mark: Your 3.11 eval job has completed with return code 0.
1 4 2
@prime kestrel :white_check_mark: Your 3.11 eval job has completed with return code 0.
3.4000000000000004
hm
!e
print(1, 2+2, 2, sep="")
@rugged root :white_check_mark: Your 3.11 eval job has completed with return code 0.
142
use decimal if you need more precision
@prime kestrel :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | NameError: name 'decimal' is not defined
!e print(decimal)
@prime kestrel :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | NameError: name 'decimal' is not defined
Source code: Lib/decimal.py
The decimal module provides support for fast correctly rounded decimal floating point arithmetic. It offers several advantages over the float datatype:
@prime kestrel :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | NameError: name 'getcontext' is not defined
!e
import decimal
getcontext().prec = 6
Decimal(1) / Decimal(7)
@prime kestrel :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | NameError: name 'getcontext' is not defined
ok
i copied code
nothing
decimal not work
!e
import decimal
Decimal(str(1.2 + 2.2))
@prime kestrel :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | NameError: name 'Decimal' is not defined. Did you mean: 'decimal'?
!e
import decimal
decimal(str(1.2 + 2.2))
@prime kestrel :x: Your 3.10 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | TypeError: 'module' object is not callable
@prime kestrel :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | TypeError: 'module' object is not callable
!e
import decimal
decimal(float(1.2 + 2.2))
@prime kestrel :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | TypeError: 'module' object is not callable
:incoming_envelope: :ok_hand: applied mute to @prime kestrel until <t:1658416763:f> (9 minutes and 59 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).
:incoming_envelope: :ok_hand: pardoned infraction mute for @prime kestrel.
@prime kestrel https://0.30000000000000004.com/
name: Mypy
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
name: Mypy
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: 3.10
- name: Upgrade pip
run: pip install --upgrade pip
- name: Install Dependencies
run: pip install mypy
- name: mypy
run: mypy --strict $(git ls-files '*.py')
wat
wat is that
its porn?
It's to better explain the float thing you were asking about
No, I can't change or make an entire website in a language I don't know
sad
Are you able to make it in Hindi?
sure
हिन्दी दिवस विशेष: इनके प्रयास से मिला था हिन्दी को राजभाषा का दर्जा
!random symbols warning!
Glad Google Translate works for this, just as it would on the site I linked
!e
print(.1 + .2)
@prime kestrel :white_check_mark: Your 3.11 eval job has completed with return code 0.
0.30000000000000004
cool
i copied it
!e
from decimal import *
float(decimal.Decimal('.1') + decimal.Decimal('.2'))
@prime kestrel :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | NameError: name 'decimal' is not defined. Did you mean: 'Decimal'?
!e
float(fractions.Fraction('0.1') + fractions.Fraction('0.2'))
@prime kestrel :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | NameError: name 'fractions' is not defined
python stopped
he was thinking
i dont get ban for stopping python bot for 1 second?
No. But if you're going to be running a bunch of commands or evals, please do it in #bot-commands
It ends up just being noise otherwise
noise?
like it will explode like tnt??
I use to do python in high school but forgot most of everything except print = (“helo world”)
I hear you there
And idek if thats how u do it
No =
Ah poop
But beyond that you got it
haha
You can get used to it again
!e
print('50' * 50)
@prime kestrel :white_check_mark: Your 3.11 eval job has completed with return code 0.
5050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050
Last time I'll ask. If you're going to be doing evals and stuff, do it in #bot-commands
I do wanna get i to it again cause rn im coding a mod for a game that has a waaaaaaaaay easier code to learn but i wanna make it into a game game a stand alone
Which game?
Huh, hadn't heard of that one
Its pretty cool i love it
The art style reminds me of Creeper World
Idk what rhat is but imma google it
I can link it real quick
Yes, this is your grandfather's Creeper World. Now on Steam and with updated unit graphics!Imagine an enemy that is everywhere and moves like a giant, organic mass across the map.Imagine your base and your people surrounded by a blanket of crushing destruction from all directions. Your only hope, well what hope?Then you take the high ground and...
$4.99
545
Very different game, but it just brought it to mind
Oh huh
They made a 4th one
Neat
I do, but if you get it on Steam it should be fine with Proton
@amber raptor How is it spelled? ngroc?
Ah, with a k
Cool
@vivid palm SHE LIVES
hii
this is just sad
Yep
hey what is autopep8
automate your pep8
and that is?
Can't remember if it's a linter or a formatter
!pypi autopep8
The latter, okay
any distinctions between the two?
A formatter, you run it after writing your code and it'll make adjustments to make sure it conforms to the PEP8 style guide
A linter will just point it out
i see
linter useless L
Not necessarily
does it like take my spaghetti code and refactor and become perfect
!voice @worn blade
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!voice
who can teach me how to write python from 0?
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
Hahah my state dont have none. Losers
@heady gate If you're not speaking to us, can you mute?
It was very choppy, no way to tell
its easily corruptable @amber raptor
how so?
sorry wrong @
np
@rugged root how old are you?
32
@amber raptor in that case play puzzles
sorry there was something happening that i couldn't mute then
👍
I will get destroyed
I'd be down for Brawlhalla later
same - didn't suggest it now because you're at work, KJ, LP etc are coding or whatever
I'm going to be house sitting, I just don't want to bother getting their WIFI set up on my switch
Right right
send me your friend code
POV: You're at a 2008 party and you need to use a bathroom.You find yourself in a public restroom.You explore the place and when you get inside of the empty cabin a guy next to your stall askes for some toilet paper. After giving him what he wants, he slides you a note with the message: "STAY IN THE CABIN!".What you gonna do..?When you get out o...
$4.99
271
nope not working
are my headphones not working ? or is everyone actually silent ?
I dont see muted on their name
wait whattt? is discord glitching or what ?
a moment ago I saw 10 people in VC, I restarted discord, and now there is no one
.<
Ayo how can i change from being suppressed
@regal nebula
I been on this server for a fat minute but could never figure the talking out
Okay i found the channel lemme j read rq
Okaj @regal nebula lets have a conversation so i can reacjc 50 msgs
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Nice
Im working on some cert stuff so I unfortunately cannot talk rn
Bummer
I'd check out general however and try to fufill reqs there
Mr ducky
Idk u
@buoyant oar
Do any of u guys use linux?
Oooo i love u
Not a lot of folk use linux
What version of linux u running?
Like mint silvia cinnamon
Ay how do i make a cromebook good for coding? I got it cause it was cheap but its hard to find my files n its hard to run my codes
N i can only run android apps so imagine a phone but on a laptop
I do but its kinda confusing
I can use the terminal i figured all that out but its still confusing
I rather use my machine at home for programs
Oh also the last time i used python was like a month ago and i was running on what i could remember from high school
What?
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@regal nebula i bet ur asleep but when u wake up can u tell me how to run a script on linux? I forgot
Sleep is for the weak whats up?
like wdym run a script. Like an executable file
dang okay im j tryna run very simple hello world j to figure shit out and i cant run it on the terminal
or is there a easier way?
so what langauge is the executable file (extension)
.py
what language is the script?
python
ah python3 or python 10 idek
probably 3, alright sweet
go into terminal
and then cd into the directory that the script is located in
and then make the script executable using chmod +x
and then run it using the simple python YourScript.py
im missing operand '+x'
were you just chmod (ing) it
Yeah you need to change permission of the file manually in linux
If you need a specific permission set check out man chmod
a bunch of stuff j popped up
what do now?
sweet its nothing crazy just basic linux stuff have fun
If you need some resources to help learnlinux check out https://linuxjourney.com
I mention some more learning guides here on my blog post https://limeincofficial.github.io/lime/post/off-sec-guide-post/
baller thanks ill make a portal for it on my desktop
cool cool lmk if anything else pops up
!e ```py
class MyClass:
def init(self, v):
self.v = v
a = MyClass(5)
b = MyClass(8)
print(a.v)
print(b.v)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 5
002 | 8
!e ```py
class MyClass:
pass
a = MyClass()
b = MyClass()
a.v = 5
b.v = 8
print(a.v)
print(b.v)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 5
002 | 8
!e ```py
class MyClass:
def init(self):
self.v = 5
a = MyClass()
print(a.v)
a.v = 8
print(a.v)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 5
002 | 8
!e ```py
class MyClass:
def get_self(self):
return self
mc = MyClass()
print(mc is mc.get_self())```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
True
hello @somber heath
!e ```py
class MyClass:
v = 0
mc = MyClass()
print(mc.v)
mc.v += 1
print(mc.v)
print(MyClass.v)```
hi @somber heath
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 0
002 | 1
003 | 0
!e ```py
class MyClass:
data = []
a = MyClass()
b = MyClass()
c = MyClass()
a.data.append("Hello!")
print(b.data)
c.data = [] #self.data = []
print(b.data)
print(c.data)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | ['Hello!']
002 | ['Hello!']
003 | []
sry bg noise, my brother is watching videos without headphones 🙄
class Test:
foo = []
def __init__(self):
self.foo.append("blah")
say if i have an instance a, how can i get ["blah"] back
idk if this is correct or not
It almost sounds like you are writing with a pen.
still better than blue switch tryhards
Don't worry. It was not loud at all.
i use a linear red switch so HAHAHA soothing sounds not the clicky mechanical blues
!e ```py
class MyClass:
v = 0
@classmethod
def increment(cls):
cls.v += 1
mc = MyClass()
print(MyClass.v)
mc.increment()
print(MyClass.v)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 0
002 | 1
Huh. I didn't know increment creates a instance variable.
Yea. I meant increment as in self.v += 1.
Yea... Makes sense when you remember it is immutable.
No. Never worked with data libraries.
Did they do a Java and make an Int class?
Ah..
Does that not still create a copy?
Like length[:] += 1?
!e py import numpy as np arr = np.array([5, 6, 7]) print(arr + 1)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
[6 7 8]
That's... a very Fortran thing.
Might be worth investing in a Bluetooth keyboard for your phone..!
!e ```py
import numpy as np
class MyClass:
arr = np.array([0])
a = MyClass()
a.arr += 1
print(a.arr)
print(MyClass.arr)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | [1]
002 | [1]