#voice-chat-text-0
1 messages ยท Page 829 of 1
but its not very nice to be like "go learn english."
Agreed
How do I do it?๐ซ
In Korean ? hahaha
!d str.find
str.find(sub[, start[, end]])```
Return the lowest index in the string where substring *sub* is found within the slice `s[start:end]`. Optional arguments *start* and *end* are interpreted as in slice notation. Return `-1` if *sub* is not found.
Note
The [`find()`](https://docs.python.org/3/library/stdtypes.html#str.find "str.find") method should be used only if you need to know the position of *sub*. To check if *sub* is a substring or not, use the [`in`](https://docs.python.org/3/reference/expressions.html#in) operator:
```py
>>> 'Py' in 'Python'
True
well first learn the basics, and then talking in english is the best way
but yeah first learn the basics
ohhhhh
๐ญ I put it another way
I kinda wanted to say it the second way to him/her
Right, but it makes my job harder when people are piling on
hello gois!
hows everyone today
Yep
one eye is shut
another is just about to give up
hope I reach my bed before that happens
OpalMist for admin yall
opalmist for owner
a pig that is a frog
the thing you said
it has frog
so
hello @whole bear
this reminds me
why doesn't python have access modifiers in it ? ๐ค
on a scale of 1 to 10000
I would say about 92.67
I've made a few projects here and there
@whole bear Corey Schafer, Youtuber.
I'm interested in delivering the app through web to clients
so I'm learning web stuff in diff langs rn
how do i get all possitions of a character in python from a string
of a specific character I'm presuming
yes
yeah, idk, gotta think about it
๐ so the code looks pythonic too
and not just a for loop counting pos
but until then, just use a for loop and look for the char I guess ๐คทโโ๏ธ
make it functional, so later you can just refactor the method
ever since I've started writing tests for my code
I've learnt the importance of functional programing
me too
i might switch to python and not batch
string='mississippi'
s='s'
lst= []
for i in range(len(string)):
if (string[i] == s):
lst.append(i)
!e
word = 'Apples and oranges'
a_indices = [i for i,v in enumerate(word) if v in 'Aa']
print(a_indices)```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
[0, 7, 13]
@whole bear
!server
ok
!e py for each in enumerate('Apples'): print(each)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | (0, 'A')
002 | (1, 'p')
003 | (2, 'p')
004 | (3, 'l')
005 | (4, 'e')
006 | (5, 's')
ok
I'm wondering if Counter from collections could be used for all this ๐ค
!user

Created: 1 year, 3 months and 15 days ago
Profile: @dense ibex
ID: 670802831678373908
Joined: 4 months, 7 days and 39 minutes ago
Roles: <@&463658397560995840>, <@&764802720779337729>, <@&764245844798079016>, <@&585529568383860737>, <@&267630620367257601>
Total: 1
Active: 0
I mean, its a Counter ๐
!user
You are not allowed to use that command here. Please use the #bot-commands channel instead.
!user
You are not allowed to use that command here. Please use the #bot-commands channel instead.
i need to find all possitions of a sertain character in a string and put each of those possitions in a list
The idea here us to get the indices, not the frequencies. You could get the frequencies from this, but Counter wouldn't get you the indices.
oh yeah, sorry ๐
@rugged root Monday, January 4, 2021
i first joined in 2018 wtf
you have to scan a string for getting the indices
so the sol'n would be in O(s) time s = string_length
not its just the matter of making the code more python ๐
and opal did that
ok, now that my brain is like 98% sleepy
time to do some homework
too many of the pseudo talk here
Dr. Joscha Bach is VP of Research at AI Foundation and Author of Principles of Synthetic Intelligence, focused on how our minds work, and how to build machines that can perceive, think, and learn.
http://bach.ai
Twitter โบ https://twitter.com/Plinz
LinkedIn โบ https://linkedin.com/in/joschabach
SHOW NOTES ๐
0:00 Open
0:17 Hello & welcome
0:37 ...
@somber heath @cerulean ridge check this it will give you interesting insight on computational universe idea
Hm.
Karl John Friston FRS, FMedSci, FRSB, is a British neuroscientist at University College London and an authority on brain imaging.
He gained reputation as the main proponent of the free energy principle and predictive coding theory.
Im here but I cant talk
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
got this banger of hemlock
would anyone like to see my code?
a batch obfuscater in python
wanna see the code of it
!paste
Pasting large amounts of code
If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pydis.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
@cerulean ridge https://www.youtube.com/watch?v=WRdJCFEqFTU
probably a better introduction.
Computational theories of the mind seem to be ideally suited to explain rationality. But how can computations be subverted by meaning, emotion and love?
Joscha
@rugged root have you tried turning it on and off again
lol
damn i got a lot of messages
@rugged root some idiots in sydeny a couple days ago started another outbreak and now im in lockdown again ๐ฆ
no masks
you live in sydney ๐คฉ
central coast
no
what the fuck are these????????????!??!?!?!?!?!?!?! my code is mt to be perfect
Test
how to do create copy of a code line in pycharm?
like in vscode we do shift + alt + down_arrow @rugged root
help ๐ข @rugged root
this might be causing sysem errors
!stream 735485653902557204
@wise glade
โ @wise glade can now stream.
potentially
hm
.wa s d1 hex to int
Failed to get response
@whole bear nice, very nice nickname ๐
thanks โค๏ธ
hi all
@whole bear im usin it rn
yeah, this works
thanks
its CTRL + D y'all
๐ now this is the way I'll talk
pretty sure you cant put a string in join
๐
I was wrong. Looking at the docs a str counts as an iterable
I don't think the issue is specifically here
oh my god, you're so russian
so cool ๐คฉ
here?
what is the type of characters
anything in these ranges
yes, but whats the type
a str
doesnt look like a string to me
nvm
I never understood why chipotle doesnโt mix the stuff in the burrito because then you get everything on one side
not just live in Slavic country. ๐
marketing
I've started using MSSqlServer and MSSqlServerExpress everywhere now ๐
idk if redis is too useful for me anymore
smh, making me hungry
It's soooo good lol
idk why, but I can't look at food pics which people have taken a bite out of ๐คฎ
just me maybe
doesnt bother me
it also bothers me to take a bite out of the same
I can share food, but I won't eat back from it ๐
its all yours if you want it
that's me
@dense ibex t is in batch
my Z key's clicky thing broke
but I've noticed I don't use it that much
so maybe remove Z
grabs malat and bashes z key off keyboard!!!!!!!!!
hi ajajja
โค๏ธ
@rugged root YESSSSSSS
hello @flat sentinel
@flat sentinel why did you comment on my reddit post
hi all i am Windows terminal from Argentina ๐ฆ๐ท
I'm practicing english
why did you make reddit posts and then link them on disord
Canary
Thank you!
someday i will speak english like you
@rugged root it saves snacks for later
I can speak 3 langs now ๐
third one not so good
๐ bye guys
always flex ๐
kemal are you russion?
flex for life y'all
Do you speak Spanish?
unless they are civilised
nope, english, hindi, punjabi
and cause I watch anime
I can speak basic japanese sentences too now ๐
@flat sentinel Canary is an upcoming stable release
green button apears in top right. (i must click to not be hacked)
learn a new language everyone
its scientifically proven that it develops your brain, better growth and stuff
like it does for babies ( when they learn their mother tongue )
next for me is ParselTongue ๐
Yes, English is very difficult for me, it is really difficult for me
but i need it
mfs is diferent
me too
the moles
no? unless im missing the context
yes drop portal
CLEAR c4 drops
@vivid palm what do you think of my code?
@terse needle i like your name โค๏ธ
how discord feels is what you should be feeling when you use it because they are acaly loosing money
I FUCKING HATE PYTHON
FINALY
I have no idea what you're talking about/yelling about
๐ how bad python is
work
I got these ones, They sound awesome and they have not died on me yet
@vivid palm @dense ibex https://www.corsair.com/uk/en/Categories/Products/Gaming-Headsets/Wireless-Headsets/HS70-PRO-WIRELESS-Gaming-Headset/p/CA-9011210-EU
The CORSAIR HS70 PRO WIRELESS Gaming Headset delivers both comfort and quality with memory foam ear pads, custom-tuned 50mm neodymium audio drivers, and low-latency 2.4GHz wireless.
i should probs just use the jabra for my computer tbh
hi
idk why I never though about that
i wanna hear
1 sec
bc after hearing oculus griff, this doesn't cut it anymore
what yall doing
Oculus Griftโข๏ธ
do I need to wap the oculus out?


@cobalt fractal
i need


a bunny


i have been coding for the last 18 hours please help me im hurt my eyes are swolen
tsundere
let her in 
r/tsunderesharks
I did lol after the picture
bread
what bread of dog
rye
^^โฑ ^^ฦฉ^^แ^^ลป^^ศณ^^ยน^^ฦผ^^ฦ^^อต^^ษ^^อป^^รค^^L^^ร^^แฃ^^ฤ^^แฒ
perfecto
!server
So clooooooooose
Who's buns are these?
mine
Time to prune 
harry's buns, the bun isnt harry, but it is harry's bun
Nice
everyone UwU

@ everyone discord.gg/python
have you seen mick gordons guitar (the only example I can think of). It is one thick guitar
@rugged root
Hello
@hallow pawn
I did not read the text down lol
i wish, that hulun
hte iron dome
oh f
aerial defense system
@candid venture Look at the bright side, I'm not going to school tomorrow
yeah but we got zoom
unlike in 2015 where it was on our fucking vacation
It's barely something
I remember that
who is "Fisher" and why have they stolen your avatar
wait do you guys know about that discord reaction bug
I am not familiar
nop
wait so react to this message
Back on in a bit, errand run. But I'll probably hop on my phone
it's an ORIGINAL friend !!!
Yo @rugged root
i will explain the picture to him
omnom
You can vividly explain it ;)
You love to see it
Convertion
1+1 -> 11+ | Success
4+8*3 -> 483*+ | Success
-5+20*30 -> -52030*+ | Success
(4+8)*3 -> 48+3* | Success
6+9+(4*2+4^2) -> 69+42*42^++ | Success
2*(1+(4*(2+1)+3)) -> 21421+*3++* | Success
(5.9-5.3)*7.2+1.4^2 -> 5.95.3-7.2*1.42^+ | Success
2*20/2+(3+4)*3^2-6+15 -> 220*2/34+32^*+6-15+ | Success
sin(1.5707963267948966) -> 1.5707963267948966sin | Success
Evaluation
1+1 -> 2 | Success
4+8*3 -> 28 | Success
-5+20*30 -> 595 | Success
(4+8)*3 -> 36 | Success
6+9+(4*2+4^2) -> 39 | Success
2*(1+(4*(2+1)+3)) -> 32 | Success
(5.9-5.3)*7.2+1.4^2 -> 6.28 | Success
2*20/2+(3+4)*3^2-6+15 -> 92 | Success
sin(1.5707963267948966) -> 1 | Success
During March and April in New Zealand the Red Stags roars echo through the hills and make for one of the most exciting and adrenaline packed trophy hunts you will experience. Come down to New Zealand and see for your self with Brent Moody's Mountain Hunters. https://www.mountainhunters.co.nz/
ha, big deer go moo
can I get video perms?
what for?
video
!stream @terse needle 30M
@terse needle
โ @terse needle can now stream.
tbf, idk why I asked. would be rude to not let you join in
just waiting for somebody to post russian driving
I have a problem with the code and I can not figure out where, anyone understand?
Fishre, Commander of stalls
very plain wall
Pokemon cards were banned at my school 
thx
felt like going through the woods
why i cant speak?
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@tropic thistle there are conditions you have to meet, details in the channel linked above
it's the same instrument the dude was playing in the vid I sent you yesterday
ye i noticed
@gentle flint https://www.youtube.com/watch?v=xugF9Yki4Mg
ุดุงูุฏ | ุตูุงุฑูุฎ ุงูู ูุงูู ุฉ ูุตูุงุฑูุฎ ุงููุจุฉ ุงูุญุฏูุฏูุฉ ูู ุณู ุงุก ุชู ุฃุจูุจ ุจุนุฏ ุฑุฏ ุงูู ูุงูู ุฉ ุงูููุณุทูููุฉ ุนูู ุงุณุชูุฏุงู ุงูุฃุจุฑุงุฌ ุงูุณูููุฉ ูู ุบุฒุฉ
ุชุงุจุนููุง ุนูู
http://www.trtarabi.com
http://trta.co/facebook - ููุณุจูู
http://trta.co/twitter - ุชููุชุฑ
http://trta.co/instagram - ุฅูุณุชุบุฑุงู
love that even oof prefers us east 
It's faster for me
Europe is even faster
but slower for you
us east is fastest for the most of us

@cobalt fractal Hemlock told us to harass you to change the voice region to US east
Europe you say? Sure
Or eu yeah
And eivl just joined lol
nvm eivl is trying smth
I think hes got it
Admin on mobile is painful
Yeah lol I can only imagine
Eivl saves the day
indeed
@dense ibex what the fuck are u thinking
you missed the choker
smh
smh mh
Now I can charge people to fly lol
whats the append version of .append for a dicionary
you just add it to the dict
how
d["something"] = something
oooof ok
dicts do not have an order. so there is no append.
Look into a OrderedDict for this behaviour
well...
dicts do have order
as of 3.6 dicts have insertion order
in new versions of python
they initially unintentionally had ordered dicts
Woah
but now its a feature
Dicts have an order?
why is there a OrderedDict in Collections then?
3.7 it became part of the implementation requirements
if it is already ordered
you can do different operations with it
how would i add to a dictionary
can I get some examples on these
quick trivia question: do you guys know how the order is implemented?

the only really useful feature of the standard dict being ordered is that iterating over it is consistent imo
d = {}
d["example"] = 1```
dic['thing'] = new thing to add on
yeah
keys and values are held in a separate dense array, while the hash table itself only holds indexes into that
overwrite it if it already exists
i want it a add onto and not overwrite
what do you mean?
like append to the current value?
yes
and since the entries array is populated sequentially, it naturally ensures the order.
a list in that value
oh you cant do that in the standard dict unless you want a key: <datastructure of some sort>
oh ok
can be sub dicts, tuples, lists, classes, etc.
I use windows (:



but use docker to power my dev environments lol
is there a separate video verification?
ubuntu with lxde is
or do i just not know how to use discord as well as i thought i did
fisher uses arch tho btw tho btw
!otn a fisher uses arch btw
:x: The channel name fisher-uses-arch-btw is too similar to i-use-arch-btw, and thus was not added. Use !otn forceadd to override this check.
separate role for streaming/cam
ahh
!otn forceadd fisher-uses-arch-btw
:ok_hand: Added fisher-uses-arch-btw to the names list.

lolol finally
rip in pieces
i do use arch btw 
if you ever turn on your cam i fully expect a duck wearing khakis
@icy axle #voice-chat-text-1 ?
umm ill work on it
for k in characters:
position_dic[f"{k}"] == []```
this does not work just gives me a key error: 'a'
why are you string interpreting?
why not just pass the key in directly?
a long string of usable characters
are you just using the f string to cast it to a string?
you're doing ==, which is equality
you need to use = for assignment
you can just str(value) instead
fuck
smh @vivid palm has me researching those vr avatars to see if i can find a duck
What do you mean by interfaces? Sorry I might be missing context on what this is referring to.
is this a general question about rolling updates?
Then the update manager should know that dependency and not update outside of requirements
OH LOL
brooo what are these anime avatar things called
apparently its not easy 
@uncut meteor What did you do to your pfp lol
stuff and things
maybe this is not place for sharing this but this come out finally
Congratulations!
eh
ah
Playing E1M1 of Quake on a Hitachi V-422 oscilloscope.
The rendering is done a laptop and the scope shows the generated audio signal as two dimensional vector graphics.
Detailed explanation: http://www.lofibucket.com/articles/oscilloscope_quake.html
funniest thing is its playable
you can definitely tell the difference in 'scope quality
Darkplaces is available as open source engine and its portable.
I meant mainly on the first one as other one is just a patch and installation.
here it is how it is done with quake the other one was cheating because it actually run instalation of windows CE and then game.
@dire folio ^
subscribe || like || share || comment
I do not own the video
Credits to the owner
Thank you for viewingโค๏ธ
stay safe,stay healthy,maintain good hygiene,wear a mask above your nose and use hand sanitizer, don't go somewhere crowded or packed with people and avoid physical contact...Stay Safeโค๏ธ
Ughh when will this be done
167 GB, Bigger than the drive im running my os on
Lol that's when you know a game is big
what game is it?
That book-case is actually just painted on.
https://www.urbandictionary.com/define.php?term=recursion and here is the most useless definition of recursion
added in 2002, wow
Alexander Medawar Garland (born 26 May 1970) is an English writer and filmmaker. He rose to prominence as a novelist in the late 1990s with his novel The Beach, which led some critics to call Garland a key voice of Generation X. He subsequently received praise for the screenplays of the films 28 Days Later (2002), Sunshine (2007), Never Let Me G...
Good one haha
https://www.youtube.com/watch?v=Wq3xtZ8AjPE if you havent watched a talk
Recently, Tested hosted a screening of 'The Martian', the new film based on the acclaimed book by Andy Weir. After the screening, Andy and astronaut Chris Hadfield joined Adam Savage on stage to discuss the movie, space technology, and NASA's real mission to Mars.
Edited by Joey Fameli
Subscribe for more videos! http://www.youtube.com/subscri...
Nice chair .. hahahaha
in other news what is happening today in Afghanistan have conditions improved Kabul is not safe place.
https://www.usatoday.com/in-depth/news/politics/2021/05/10/afghanistan-troop-withdrawal-leads-translators-beg-us-visas/4941871001/
@white turret nice job.
I've heard the U.S. described as an excellent invader and a lacklustre occupier and rebuilder.
The best Flight Simulator X Multiplayer (Steam Edition) moments of 2019. Thanks for watching.
โบ BEST OF 2018: https://youtu.be/_8DadVR-rl0
โบ FULL PLAYLIST: https://www.youtube.com/playlist?list=PLd32qnrKfRX05YNToTNEhjC39S3qH6ZvC
โบ MERCH: https://teespring.com/stores/Airforceproud95
Twitter: https://www.twitter.com/Airforceproud95
Facebook: htt...
welp i cant talk to i will be typing in here
@somber heath hello! im in here to, but due to me not being active on this server i do not have perms to talk.
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
yeah i have to do like 50 messages
ok
im in highschool rn taking the cs1 class but its nearing its end
i wanted to see how i can further go with python after the class
its finals now so no more assignments
yeah
my father has a concept of taking a project and breaking it down to its basic problems
i think ive heard of numpy
Numpy is very popular so yeah you probably have.
the website looks like a website from 2014
Javascript, html/html5, css
for flask
ive been learning a little bit of html
i tried javascript, its kinda hard.
like i looked up javascripted tutorails a month ago, the only thing i remember is "console.log('Hello World');"
english is hard
like how in the southern states we say yall
texas
rn we finished learnign 2d arrays
so am i
we have all the way to senior
we only get taught python in cs1
cs2 is javascript
cs3 is c
and cs4 is idk
my father says c is a high lvl language, i assume the reason behind it is that he knows cobol and rpg
im sorry but ill have to come back in 10 min.
brb
Itโs very late where I am, gotta go to sleep good night.
ok gnight
text = input('>')
positions = dict()
for index, character in enumerate(text):
try:
positions[character].add(index)
except KeyError:
positions[character] = {index}
print(positions)```
thats a big fucking dictionary
use pprint then instead of print
o/
I refer you to your previous screenshot.
http://tomscott.com - http://twitter.com/tomscott - ALL THE ELECTRICS I USED WERE UNPLUGGED. DO NOT DO THIS.
Yep, I'm going all patriotic again. And while I'm willing to bet that a good number of British folks know the first half of this video, there's one thing about slack in here that I only just learned myself.
lol
Unless you tread on it 
๐ฌ
Efficiency. Yes, really. Conventional wisdom says that line losses are lower for higher voltages โ but this applies to heavy loads. These days most people have lots of electronic devices and LED lights in their houses, and they all use low voltage DC. They generate that voltage with a switching power supply. Switching voltage converters are more efficient when the voltages are closer together and less efficient when the voltage difference is high. So going from 240V to 5V will incur more losses than 120V to 5V.
aha thanks
@rugged root try some of my music
he was saying my name over and over and over and over and over andl over again
i did
Tunnock's 
then a mod came in and he stopped and shortley left
Current efforts to conserve energyย and reduce emissions are significant. Some governments in Europe have set targets of 50% for the energy conservation.ย But is this the whole story?ย The overall efficiency from primary energy to...
great representation of my attention to cable management
never heard of a tunnock
:incoming_envelope: :ok_hand: applied mute to @whole bear until 2021-05-12 13:55 (9 minutes and 59 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).
good job
Not sure what you had hoped to gain there, Apple
Tea cakes are good, but I was referring to this:
My assumption is that you were trying to spam your way to voice verification
Oh ๐ Sorry for the confusion.
am i in trouble?
........ pls have mercy
that is a acxcual thing
google cammel balls candy
i finished my project
a python script to obfuscate batch files
oh yeah well you landed at least somewhere else then earth
can i do this?
True that. At least there's no COVID in Saturn.
true that.
I've got a Harry vacuum for rabbit fur
idk
ok @amber raptor heard that
ahahahahaha
Omg that's amazing
it needs to me on mlty
Life uh, finds a way...
AWWWW 
i need them to be away from the side like this because i need to fold this whole with thing
So are there like breeds for bunny's?
Yea, there's quite a few
ok
It's tired .. ๐๐
how you spell it lapier?
this right here counts to 100000 whe run
amazing
Blaming me ๐ฆ
๐
i see bun buns 
with open("perform_cscs_validation_enabled.log") as f:
lines = list(map(str.strip, (f.readlines())))
print(
*(f"{lines[i][5:-1]}: {lines[i+3]=='t'}" for i in range(0, len(lines), 7)),
sep="\n",
file=open("out.txt", "w")
)
once somebody with a bunny stayed with us for a week, all the cables got messed up
Back later ๐
both are currently sleeping under the sofa
Hey there!
Hello!
nope
the python is a while true counter += 1 print(counter)
and batch is just a for loop that goes to 1000000
how do i make io faster?
batch > python in printing speed
ยฏ_(ใ)_/ยฏ
jokes on you my hand in allready on my noes
ยฏ_(ใ)_/ยฏ
ยฏ_(ใ)_/ยฏ
ยฏ_(ใ)_/ยฏ
(โฏยฐโกยฐ๏ผโฏ๏ธต โปโโป
ยฏ_(ใ)_/ยฏ
hi
Hello!
โฌโโฌ ใ( ใ-ใใ)
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
ยฏ_(ใ)_/ยฏ
Just walk my steak near the grill on the way to my table
I need to write 50 messages on a chat...
Yes, that's right, It's a pretty low requirement
really ???
Yeah
I'll check ...
Kind of funny
Hey @faint ermine
My bad
Oh... ok
Hi jorgeDev ๐
Don't worry
๐
Hi jake...
!u

Created: 5 years, 4 months and 25 days ago
Profile: @cobalt fractal
ID: 126811506632294400
Joined: 8 months, 15 days and 1 hour ago
Roles: <@&542431903886606399>, <@&295488872404484098>, <@&825337057181696020>, <@&267630620367257601>, <@&587606783669829632>, <@&831776746206265384>, <@&267629731250176001>, <@&815701647526330398>, <@&267628507062992896>
Total: 18
Active: 0
lul
oh, it doesn't show messages here
!u

Created: 4 years, 11 months and 22 days ago
Profile: @honest pier
ID: 182894631921516545
Joined: 9 months, 27 days and 22 hours ago
Roles: <@&542431903886606399>, <@&463658397560995840>, <@&764802720779337729>, <@&267630620367257601>, <@&799041111573266503>
Total: 2
Active: 0
intergral wheat bar
!u

Created: 1 year, 3 months and 16 days ago
Profile: @dense ibex
ID: 670802831678373908
Joined: 4 months, 7 days and 22 hours ago
Roles: <@&463658397560995840>, <@&764802720779337729>, <@&764245844798079016>, <@&585529568383860737>, <@&267630620367257601>
Total: 1
Active: 0
UwU
!u

Created: 5 years, 7 months and 13 days ago
Profile: @rugged root
ID: 98195144192331776
Joined: 3 years, 9 days and 18 hours ago
Roles: <@&542431903886606399>, <@&463658397560995840>, <@&764245844798079016>, <@&295488872404484098>, <@&267630620367257601>, <@&797891034906099752>, <@&587606783669829632>, <@&277914926603829249>, <@&831776746206265384>, <@&267629731250176001>, <@&807415650778742785>, <@&267628507062992896>
Total: 21
Active: 2
!u
You are not allowed to use that command here. Please use the #bot-commands channel instead.
You are not allowed to use that command here. Please use the #bot-commands channel instead.
God I've wasted so much time
!unmute 98195144192331776 seem to have done his time now
:incoming_envelope: :ok_hand: pardoned infraction mute for @rugged root.
me?
!warn 165023948638126080 cheating the infraction system smh
:x: There was an error adding the infraction: status 500.
django.db.utils.IntegrityError: new row for relation "api_infraction" violates check constraint "not_joseph"
joe mama
@whole rover you're a cheater ๐ฆ
Totle infractions 18 ๐
And also making us waste precious processing time for every infraction made
For shame
For SHAME I say
paninis
ยฏ_(ใ)_/ยฏ
panis
paninos
I always win
For every infraction we make, you make us waste one action
Is that truly the way you want to win?
With this madness
lol
hmmmmmmmmmmmmmmm maybe i order some paninis
im popular
In English-speaking countries, panini is widely used as the singular form, with the plural form panini or paninis, though some speakers use singular panino and plural panini as in Italian.
!ban @rugged root
?
You are not allowed to use that command here. Please use the #bot-commands channel instead.
yes
No plz, :Let me Brodevil ๐
Mr. Hemlock
Mr. HemIock
Il
!e
import sys
sys.exit(404)
can i make a edgy-fi thing in the @viscid lagoon where it world turn "Mr. Hemlock" into "Mr. H3m10c"
sure actually, i don't htink we have one of thoes
break what?
@clear shadow :warning: Your eval job has completed with return code 148 (SIGTSTP).
[No output]
!e
import sys as sus
for i in range(10000):
sus.exit(i)
@whole bear :warning: Your eval job has completed with return code 0.
[No output]
!eval py print(eval(eval('break'))
@scenic goblet :x: Your eval job has completed with return code 1.
001 | File "<string>", line 1
002 | print(eval(eval('break'))
003 | ^
004 | SyntaxError: unexpected EOF while parsing
!eval py print(eval(eval('break')))
@scenic goblet :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | File "<string>", line 1
004 | break
005 | ^
006 | SyntaxError: unexpected EOF while parsing
!e ```py
import sys as sus
sus.exit()
@paper tendon :warning: Your eval job has completed with return code 0.
[No output]
!e
print(*range(0, 100000), sep="\n")
@dense ibex :white_check_mark: Your eval job has completed with return code 0.
001 | 0
002 | 1
003 | 2
004 | 3
005 | 4
006 | 5
007 | 6
008 | 7
009 | 8
010 | 9
011 | 10
... (truncated - too many lines)
Full output: too long to upload
!e
import sys
print(eval(eval('sys.exit()')))
@whole bear :warning: Your eval job has completed with return code 0.
[No output]
dispite my rage your just a rat in my kage
@cobalt fractal so what do we do if it runs out of memory?
!e ```py
import sys as sus
from random import random as trip_a_num
sus.exit(int(trip_a_num() * 100))
cgroup_mem_max: 52428800
hemlock can you do a nerdy voice
!e ```py
import sys as sus
from random import random as trip_a_num
sus.exit(int(trip_a_num() * 100))
@paper tendon :warning: Your eval job has completed with return code 21.
[No output]
Nope, on vacation with no care to give.
!e import time; time.sleep(7)
@cobalt fractal :warning: Your eval job timed out or ran out of memory.
[No output]
!e ```py
import time
for i in range(15):
print(i)
time.sleep(1)
@paper tendon :x: Your eval job timed out or ran out of memory.
001 | 0
002 | 1
003 | 2
004 | 3
005 | 4
006 | 5
huh
!src e
Run Python code and get the results.
!e ```py
import time
for i in range(15):
print(i)
time.sleep(0.1)
@paper tendon :white_check_mark: Your eval job has completed with return code 0.
001 | 0
002 | 1
003 | 2
004 | 3
005 | 4
006 | 5
007 | 6
008 | 7
009 | 8
010 | 9
011 | 10
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/esevajuhow.txt?noredirect
lol im at work
bot/exts/utils/snekbox.py lines 130 to 138
@staticmethod
def get_status_emoji(results: dict) -> str:
"""Return an emoji corresponding to the status code or lack of output in result."""
if not results["stdout"].strip(): # No output
return ":warning:"
elif results["returncode"] == 0: # No error
return ":white_check_mark:"
else: # Exception
return ":x:"```
!e
import os
print(os.getcwd())
print(os.uname())
print(dir(os))
@clear shadow :white_check_mark: Your eval job has completed with return code 0.
001 | /snekbox
002 | posix.uname_result(sysname='Linux', nodename='snekbox', release='5.10.0-3-cloud-amd64', version='#1 SMP Debian 5.10.13-1 (2021-02-06)', machine='x86_64')
003 | ['CLD_CONTINUED', 'CLD_DUMPED', 'CLD_EXITED', 'CLD_KILLED', 'CLD_STOPPED', 'CLD_TRAPPED', 'DirEntry', 'EX_CANTCREAT', 'EX_CONFIG', 'EX_DATAERR', 'EX_IOERR', 'EX_NOHOST', 'EX_NOINPUT', 'EX_NOPERM', 'EX_NOUSER', 'EX_OK', 'EX_OSERR', 'EX_OSFILE', 'EX_PROTOCOL', 'EX_SOFTWARE', 'EX_TEMPFAIL', 'EX_UNAVAILABLE', 'EX_USAGE', 'F_LOCK', 'F_OK', 'F_TEST', 'F_TLOCK', 'F_ULOCK', 'GRND_NONBLOCK', 'GRND_RANDOM', 'GenericAlias', 'MFD_ALLOW_SEALING', 'MFD_CLOEXEC', 'MFD_HUGETLB', 'MFD_HUGE_16GB', 'MFD_HUGE_16MB', 'MFD_HUGE_1GB', 'MFD_HUGE_1MB', 'MFD_HUGE_256MB', 'MFD_HUGE_2GB', 'MFD_HUGE_2MB', 'MFD_HUGE_32MB', 'MFD_HUGE_512KB', 'MFD_HUGE_512MB', 'MFD_HUGE_64KB', 'MFD_HUGE_8MB', 'MFD_HUGE_MASK', 'MFD_HUGE_SHIFT', 'Mapping', 'MutableMapping', 'NGROUPS_MAX', 'O_ACCMODE', 'O_APPEND', 'O_ASYNC', 'O_CLOEXEC', 'O_CREAT', 'O_DIRECT'
... (truncated - too long)
Full output: https://paste.pythondiscord.com/cukaqodebi.txt?noredirect
Why to but -> str
type hinting
!e
import os
os.system("ls")
@clear shadow :warning: Your eval job has completed with return code 0.
[No output]
try to use subprocess for that or Popen
or print
try and create a file and do ls
it should fail as its snakebox
snekbox has a read only file system
so you can read stuff just fine
you just need to print it, if you want output
!e ```py
import subprocess
e = subprocess.Popen("ls")
@paper tendon :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.9/subprocess.py", line 951, in __init__
004 | self._execute_child(args, executable, preexec_fn, close_fds,
005 | File "/usr/local/lib/python3.9/subprocess.py", line 1754, in _execute_child
006 | self.pid = _posixsubprocess.fork_exec(
007 | BlockingIOError: [Errno 11] Resource temporarily unavailable
!e import os; print(os.system('ls'))
@scenic goblet :white_check_mark: Your eval job has completed with return code 0.
-1
!e
import os
os.system("echo hello")
@whole bear :warning: Your eval job has completed with return code 0.
[No output]
huh
snekbox is limited to 1 process, no subprocesses
BlockingIOError
!e
import os
print(os.listdir())
@clear shadow :white_check_mark: Your eval job has completed with return code 0.
['Pipfile.lock', 'Pipfile', 'config', 'snekbox', 'user_base', 'tests', 'LICENSE']
!e
import os
print(os.listdir(snekbox))
It is basically the same code as what u can see on the repo
@whole bear :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | NameError: name 'snekbox' is not defined
!e
import os
print(os.listdir("snekbox"))
@whole bear :white_check_mark: Your eval job has completed with return code 0.
['api', 'nsjail.py', '__main__.py', '__init__.py', 'config.py', '__pycache__']
!e print(open('./config', 'r').read())
@scenic goblet :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | IsADirectoryError: [Errno 21] Is a directory: './config'
!e ```py
import os
def list_files(startpath):
for root, dirs, files in os.walk(startpath):
level = root.replace(startpath, '').count(os.sep)
indent = ' ' * 4 * (level)
print('{}{}/'.format(indent, os.path.basename(root)))
subindent = ' ' * 4 * (level + 1)
for f in files:
print('{}{}'.format(subindent, f))
list_files("/")
@cobalt fractal :white_check_mark: Your eval job has completed with return code 0.
001 | /
002 | usr/
003 | local/
004 | bin/
005 | python3.9
006 | python3
007 | python
008 | lib/
009 | libpython3.9.so.1.0
010 | libpython3.9.so
011 | libpython3.so
... (truncated - too many lines)
Full output: too long to upload
Hmmm
maybe edit the config files for snekbox to allow us to make more process
!e print(open('Pipfile', 'r').read())
@scenic goblet :white_check_mark: Your eval job has completed with return code 0.
001 | [[source]]
002 | url = "https://pypi.org/simple"
003 | verify_ssl = true
004 | name = "pypi"
005 |
006 | [packages]
007 | falcon = "~= 2.0.0"
008 | gunicorn = "~= 20.0"
009 | jsonschema = "~= 3.2"
010 | protobuf = "~= 3.14"
011 | sentry-sdk = {extras = ["falcon"], version = "~= 0.19.3"}
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/ayoqoxuhog.txt?noredirect
!e ```py
import os
with open("config", "r") as f:
for line in f.readlines():
print(line)
@paper tendon :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | IsADirectoryError: [Errno 21] Is a directory: 'config'
!e print(os.listdir('config'))
@scenic goblet :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | NameError: name 'os' is not defined
what is the path seperator in linux?
!e import os; print(os.listdir('config'))
@scenic goblet :white_check_mark: Your eval job has completed with return code 0.
['gunicorn.conf.py', 'snekbox.cfg', '__pycache__']
!e print(open('config/gunicorn.conf.py', 'r').read())
@scenic goblet :white_check_mark: Your eval job has completed with return code 0.
001 | workers = 2
002 | bind = "0.0.0.0:8060"
003 | logger_class = "snekbox.GunicornLogger"
004 | access_logformat = "%(m)s %(U)s%(q)s %(s)s %(b)s %(L)ss"
005 | access_logfile = "-"
!e ```py
import pkgutil
for module in pkgutil.iter_modules():
print(module.name, sep="\n")
@cobalt fractal :white_check_mark: Your eval job has completed with return code 0.
001 | snekbox
002 | tests
003 | Levenshtein
004 | _yaml
005 | arrow
006 | attr
007 | bs4
008 | dateutil
009 | decorator
010 | forbiddenfruit
011 | fuzzywuzzy
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/ewuzofivup.txt?noredirect
!e
import os
print(os.listdir("snekbox"))
@whole bear :white_check_mark: Your eval job has completed with return code 0.
['api', 'nsjail.py', '__main__.py', '__init__.py', 'config.py', '__pycache__']
no discord.py inside of a snakebox ๐ฆ
There's no networking in snekbox
Oh No
!e
import os
print(os.listdir("config"))
@whole bear :white_check_mark: Your eval job has completed with return code 0.
['gunicorn.conf.py', 'snekbox.cfg', '__pycache__']
jake be getting some spring cleaning done
!e
import os
print(os.listdir("snekbox"))
with open('config\snekbox.cfg', mode="w", encoding='utf-8') as file:
file.write("panis was here.")
@whole bear :x: Your eval job has completed with return code 1.
001 | ['api', 'nsjail.py', '__main__.py', '__init__.py', 'config.py', '__pycache__']
002 | Traceback (most recent call last):
003 | File "<string>", line 3, in <module>
004 | OSError: [Errno 30] Read-only file system: 'config\\snekbox.cfg'
FUCK
#bot-commands
we are doing stff
You guys ainโt gonna find anything in there ๐
!e
import os
print(os.system("curl https://www.google.com/"))
@whole bear :white_check_mark: Your eval job has completed with return code 0.
-1
omfg we can access websites
๐ฆ
and, #bot-commands
๐
ยฏ_(ใ)_/ยฏ
!e ```py
import os
print(f"{os.getcwd()}")
with open('new_file', mode="w+") as f:
print(f"{os.getcwd()}")
!int e on the other hand... 
!e ```py
import os
print(f"{os.getcwd()}")
with open('new_file', mode="w+") as f:
print(f"{os.getcwd()}")
@paper tendon :x: Your eval job has completed with return code 1.
001 | /snekbox
002 | Traceback (most recent call last):
003 | File "<string>", line 3, in <module>
004 | OSError: [Errno 30] Read-only file system: 'new_file'
can int e access internet?
!int e
!help int e
!internal eval <code>
Can also use: internal e
Run eval in a REPL-like format.
Lol this is what Griff sends me
ima make it if thats ok?
does anyone here write CLI's?
im here for you dude, bro
thanks bash
Wanna play a game of Rick Roulette?
... Only Click One ...
|| || -- || || -- || || -- ||
|| -- || || -- || ||
i passed
2-0 is my W/L for rick roulette
voice mother
Voice daddy
uh oh
@hollow haven is voice mom and @rugged root is voice daddy
I am both Event Daddy and Staff Mom
they are both married and/or engaged
hmm
Mommy ~_~
Honestly though Kat is the staff mom.
damn what does being staff mom entail
!e ```py
import posix1e
acl = posix1e.ACL(file=file)
print(acl)
@paper tendon :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | ModuleNotFoundError: No module named 'posix1e'
๐ Do it.
I have one of these
jake's little mustache
ot that please
!otn a jake's little mustache
:ok_hand: Added jakeโs-little-mustache to the names list.
!otn a jake's little mustache
:x: The channel name jakeโs-little-mustache is too similar to jakeโs-little-mustache, and thus was not added. Use !otn forceadd to override this check.
BOOM

OOO chris you just got out typed
I have a slightly fancy buzzy boi.
@rugged root https://www.reddit.com/r/justneckbeardthings/
Right but what kind of razor do you use
pylibacl or posix1e
I don't.
๐ค
EV'S to reach price parody with ICE cars by 2027
how to alter history
๐
git push --force
git rebase
git reset --hard HEAD~100
git -m pip install rebase
perfect
Doritos are good, but you can have too many in a sitting.
D&D sessions with friends have taught me this.
I honestly think an introduction to Git should start with an introduction to the conceptual model of Git. I spent far too long struggling with Git commands because I had no mental model of what they are actually doing.
Relevant xkcd incoming...
.xkcd 1597
Kat, the perfect middle manager
SAFe pog
sup guys
hey
what you talking about?
git ๐
Setting up a git workshop
Ok I dont know what that is but im gonna pretend i know what that is and "seems good, carry on"
Not sure where it fits in this notion page, but why git is good to use
why don't I just upload my code to google drive?
ok carry on people im gonna go eat my dinner
only text files
see ya ๐
homework_final_final_reallyfinal_v1.py
def test_app(app):
assert app.answer() == app.answer()
@ Mr. Hemlock's not gonna forgive you(@ kutikatj9) if you don't make a ton of Git related puns in this talk -> Stuff like, "Did you git it?"
not wrong, I'll have to maximize the pun usage
And there should be at least one reference to Salt-N-Pepa
class App:
def __eq__(self, v):
return False
app = App()```
That's meeeeeean
straight up rejection
it doesn't modify what is returned by app.answer though
i need an injection of caffeine ๐
Dark roast drip
sounds amazing
cold brew tho pls
lollll
have you ever gotten any kind of IV drip? it is actually very chilling
Oh. derp. Quite right. You know what I mean.
lol
!e ```py
class MyClass(str):
def float(self):
return 0.0
num1 = MyClass('This is clearly a str')
print(float(num1))
print(num1)
@cobalt fractal :white_check_mark: Your eval job has completed with return code 0.
001 | 0.0
002 | This is clearly a str
so if anyone want to cowork more silently join #799641437645701151

?
work from the manor
work from la maison?
sneaky edit ;)
^ always

:O
yeah home M-W this week, in office tmrw and fri


53992
143396

