#voice-chat-text-0
1 messages ยท Page 1037 of 1
uses some library called plotly
C:/Program Files/Go/src/runtime/panic.go:220 (0xd898d5)
panicmem: panic(memoryError)
C:/Program Files/Go/src/runtime/signal_windows.go:255 (0xd898a5)
sigpanic: panicmem()
C:/Users/cd/gitrepos/country-game/country-game-backend/src/service/room.go:21 (0xf8498a)
NewRoom: OwnerId: owner.Id,
C:/Users/cd/gitrepos/country-game/country-game-backend/src/service/gameManager.go:30 (0xf8491b)
(*GameManagerService).CreateRoom: room := NewRoom(id, author, password)
C:/Users/cd/gitrepos/country-game/country-game-backend/src/api/api.go:59 (0x1091157)
(*ApiManager).createRoom: newRoom := am.gameManagerService.CreateRoom(requestBody.roomname, requestBody.user, requestBody.password)
C:/Users/cd/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/context.go:173 (0x108b161)
(*Engine).handleHTTPRequest: c.Next()
C:/Users/cd/go/pkg/mod/github.com/gin-gonic/gin@v1.8.1/gin.go:572 (0x1088c7c)
(*Engine).ServeHTTP: engine.handleHTTPRequest(c)
C:/Program Files/Go/src/net/http/server.go:2916 (0xf5951a)
serverHandler.ServeHTTP: handler.ServeHTTP(rw, req)
C:/Program Files/Go/src/net/http/server.go:1966 (0xf55ab6)
(*conn).serve: serverHandler{c.server}.ServeHTTP(w, w.req)
C:/Program Files/Go/src/runtime/asm_amd64.s:1571 (0xda3940)
goexit: BYTE $0x90 // NOP```
are lamda just like multiplying a number with a random number?
was bored so did a small remix
https://www.pythondiscord.com/events/code-jams/9/
https://www.pythondiscord.com/events/code-jams/9/
https://www.pythondiscord.com/events/code-jams/9/
We're a large, friendly community focused around the Python programming language. Our community is open to those who wish to learn the language, as well as those looking to help others.
First time?
Within 1% sounds like margin of error to me
Just aggravated at my accuracy and consistency
And then I see some people with like 130 150 consistently
It's absurd
Don't feel bad
Some of us are terrible at this
I am on my laptop
Not at a computer rn but probably same, will report back when I do this
!remind "3 hours" try this on desktop
Your reminder will arrive on <t:1656456875:F>!
I get 89wpm on pretty much any keyboard
I've been typing since I was like.... 5 or 6
I should be faster
Also dude, @vivid palm's speeds are terrifyingly fast
I do not understand how she does it
I don't think my typing speed has ever really held me back so wtv
No that's just what I tell myself to feel better
It's nice when I absolutely have to write out an infraction damn quick
That's what it's like being friends with me and you're doing that just fine
!e
def patato(a):
a += 1
def tomato():
a = 0
patato(a)
print(a)
tomato()
@whole bear :white_check_mark: Your eval job has completed with return code 0.
0
:>
i've peaked, can't get any faster
What were you getting, like 150?
date +%s
You wouldn't believe how quick this tcp stuff was in Rust over Clojure
use tokio;
use tokio::net::TcpListener;
use tokio::net::TcpStream;
use std::io;
async fn process_socket(socket: TcpStream) -> io::Result<()> {
socket.readable().await?;
let mut buffer: [u8; 1024] = [0; 1024];
let bytes_read = socket.try_read(&mut buffer)?;
Ok(())
}
#[tokio::main]
async fn main() -> io::Result<()> {
let listener = TcpListener::bind("127.0.0.1:2345").await?;
loop {
let (socket, _) = listener.accept().await?;
process_socket(socket).await?;
}
}
Hello there!
that sounds too cryptic to me...
i heard Lunar is shady, if we're thinking about the right one @zenith radish
they copied another launcher
on release
no, 130 for 60s
nope, that was us :)
Groovy bananas.
Here's your reminder: try this on desktop
[Jump back to when you created the reminder](#voice-chat-text-0 message)
!remind 21 hours pack the car for the vacation week
21 is not a valid duration string.
!remind [mentions]... <expiration> [content=None]
Can also use: reminder, reminders, remindme
*Commands for managing your reminders.
The expiration duration of !remind new supports the following symbols for each unit of time: - years: Y, y, year, years - months: m, month, months - weeks: w, W, week, weeks - days: d, D, day, days - hours: H, h, hour, hours - minutes: M, minute, minutes - seconds: S, s, second, seconds
For example, to set a reminder that expires in 3 days and 1 minute, you can do !remind new 3d1M Do something.*
Subcommands:
!remind delete <id_>
Delete one of your active reminders.
!remind edit
Commands for modifying your current reminders.
!remind list
View a paginated embed of all reminders for your user.
!remind new [mentions]... <expiration> [content=None]
Set yourself a simple reminder.
!remind new 21h pack the car for vacation week
Sorry, you can't do that here!
!remind โ1 dayโ learn to use this
Sorry, you can't do that here!
!d os.urandom
os.urandom(size)```
Return a bytestring of *size* random bytes suitable for cryptographic use.
This function returns random bytes from an OS-specific randomness source. The returned data should be unpredictable enough for cryptographic applications, though its exact quality depends on the OS implementation.
On Linux, if the `getrandom()` syscall is available, it is used in blocking mode: block until the system urandom entropy pool is initialized (128 bits of entropy are collected by the kernel). See the [**PEP 524**](https://www.python.org/dev/peps/pep-0524) for the rationale. On Linux, the [`getrandom()`](https://docs.python.org/3/library/os.html#os.getrandom "os.getrandom") function can be used to get random bytes in non-blocking mode (using the [`GRND_NONBLOCK`](https://docs.python.org/3/library/os.html#os.GRND_NONBLOCK "os.GRND_NONBLOCK") flag) or to poll until the system urandom entropy pool is initialized.
!d random.shuffle
random.shuffle(x[, random])```
Shuffle the sequence *x* in place.
The optional argument *random* is a 0-argument function returning a random float in [0.0, 1.0); by default, this is the function [`random()`](https://docs.python.org/3/library/random.html#random.random "random.random").
To shuffle an immutable sequence and return a new shuffled list, use `sample(x, k=len(x))` instead.
Note that even for small `len(x)`, the total number of permutations of *x* can quickly grow larger than the period of most random number generators. This implies that most permutations of a long sequence can never be generated. For example, a sequence of length 2080 is the largest that can fit within the period of the Mersenne Twister random number generator.
Deprecated since version 3.9, will be removed in version 3.11: The optional parameter *random*.
hey
ฤฑ woke up , 30 min ago
everything is good ๐
here 4.24 am local time
local time is 4.24 am
my English not enough for full understanding you, can you speak more clear(slow) ?
are you learning api ?
i can give you an advice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!voiceverify
!d pytest
The pytest framework makes it easy to write small, readable tests, and can scale to support complex functional testing for applications and libraries.
pytest requires: Python 3.7+ or PyPy3.
PyPI package name: pytest
Documentation as PDF: download latest
!d pytest.fixture
@fixture(fixture_function=None, *, scope='function', params=None, autouse=False, ids=None, name=None)```
Decorator to mark a fixture factory function.
This decorator can be used, with or without parameters, to define a fixture function.
The name of the fixture function can later be referenced to cause its invocation ahead of running tests: test modules or classes can use the `pytest.mark.usefixtures(fixturename)` marker.
Test functions can directly use fixture names as input arguments in which case the fixture instance returned from the fixture function will be injected.
Fixtures can provide their values to test functions using `return` or `yield` statements. When using `yield` the code block after the `yield` statement is executed as teardown code regardless of the test outcome, and must yield exactly once.
yo
thanks
how are you
!d unittest.testcase
How to use unittest-based tests with pytest
pytest supports running Python unittest-based tests out of the box. Itโs meant for leveraging existing unittest-based test suites to use pytest as a test runner and also allow to incrementally adapt the test suite to take full advantage of pytestโs features.
To run an existing unittest-style test suite using pytest, type:
pytest tests
``` pytest will automatically collect `unittest.TestCase` subclasses and their `test` methods in `test_*.py` or `*_test.py` files.
Almost all `unittest` features are supported...
check voice verification channel ๐
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
yep this channel
Do I need to learn python first since Im not and wouldnt python just be learning another syntax if your already carrying the basic fundamentals
I can't see #voice-verification because I'm already verified
!d pygame
gdscript documentation?
!d await
6.4. Await expression
Suspend the execution of coroutine on an awaitable object. Can only be used inside a coroutine function.
await_expr ::= "await" primary
``` New in version 3.5.
godot ?
Waiting for Godot, tragicomedy in two acts by Irish writer Samuel Beckett, published in 1952 in French as En attendant Godot and first produced in 1953. Waiting for Godot was a true innovation in drama and the Theatre of the Absurdโs first theatrical success. The play consists of conversations between Vladimir and Estragon, who are waiting for ...
not the book
yeah but its output not as better as Unity
searh up godot game engine I just dont like the png mascot
how many comments do I need to type
how about c++
comments ?
did you ask that spending time
?
note that if you spam comments to get voice you can get muted again pretty easily
for work
ok
so my question was about how Randi with % starts at 0
i know how the operation works but why does it start at 0?
its not correct
what would you have it start at other than 0?
whats not correct?
well for like a dice roll you would add 1
its for a rng number from 1 to 6
0 is a number.
for a dice i mean
hmm
a 6-sided die doesn't have to be [1, 2, 3, 4, 5, 6] it could just as easily be [A, B, C, D, E, F]
but it is represented as [0, 1, 2, 3, 4, 5]
random.randint(1-6) ?
I know but my question is why does it start at 0?
im not at lists rn
for the basics
im just incrementing a var by 1
can i post a paint this channel
whats the answer again binary starting at zero?
is this a hard operation or is it a beginner question?
im not trying to sound rude at all
sorry about my eng
but i need try
๐
do you know python list
python list is a sequences in math
actualy the have a place value i
they are also array
im learning loops for rn
range in ?
?
no just while bearly gone through a lesson rn
for i in range(...)
i am typing a code block for that on a file
i will publish in there
where
this channel
just trying to send 50 messages so i can speak
haha
yo gotta do
same
i wll post a code block
can you copy and paste on your ide or editor for executing (run)
Hey @whole bear!
It looks like you tried to attach a Python file - please use a code-pasting service such as https://paste.pythondiscord.com
!code
Here's how to format Python code on Discord:
```py
print('Hello world!')
```
These are backticks, not quotes. Check this out if you can't find the backtick key.
mylist = [1,2,3,4,5,]
# print(type(mylist))
#it is a list of integers but values of within it also strings
for i in range(1,6):
print(i)
#thi loop starts from 1 to 5
print("----------------------------")
for i in range(0,6):
print(i)
#this loop is startgin from 1 and ending at 5
#if we want to print our list of integers
#can we type 2 different types of loops
print("----------------------------")
for i in mylist:
print(i)
print("----------------------------")
for i in mylist[0:5]:
print(i)
#these loop are startgin from 0 index and ending at 4 index
# i is at line 20 or 24 give us first element of mylist but if i pick an i on index 2
print("----------------------------")
for i in mylist[2:5]:
print(i)
ups
can i try to explain (i) on python loop and index
i take a break ,
๐
.topic
.ping
Gateway Latency: 100ms
!ping
71.044 ms
Healthy
100.984 ms
!ping hello
79.741 ms
Healthy
100.984 ms
.topic
Suggest more topics here!
!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.pythondiscord.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.
hii
@warped raft you can chat in here
ok
i dont have a microphone
no problem
yeah
how are you all
it's 4 .30 for me
pm
india
yeah
where are you from
have you grabbed you cup of coffee chris
Yes
@terse needle IT MUST BE NIGHT THERE
No it 12 in the afternoon here in the UK
ok
where is ustafa @somber heath
onlibe
online
hehe
which head phone do you all use @wind raptor
which head phone do you all use @terse needle
I just use the earphones that come with an apple phone
I think they call them "iPhones"
I'm not, at the moment. I eat through them.
I'm on my phone.
which head phone do you all use @wind raptor
hey any of u able to help out with basic python path problems?
dont want to waste ur time if u got important stuff to do
can join the vc.
ok
its way to expensivve for me
Why don't you get into arduino @wind raptor
it needs coding
it's kit cost less than $50 @wind raptor
but i am only 14 @wind raptor
yeah i use it @wind raptor
Opalmist how are you
but i am only 14 @terse needle
Turing is a high-level, general-purpose programming language developed in 1982 by Ric Holt and James Cordy, at University of Toronto in Ontario, Canada. It was designed in order to help students taking their first computer science course learning how to code. Turing is a descendant of Pascal, Euclid, and SP/k that features a clean syntax and pre...
can i use a function that i coded in java in python @wind raptor
hello
ok
but we can use android studio an java to make an app @wind raptor
132, 128, 4.
@warped raft
You said to link you to vc
!e py vs = 132, 128, 4 for v in vs: print(format(v, "b").zfill(10))
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | 0010000100
002 | 0010000000
003 | 0000000100
!e py import os os.remove("blarg")
@somber heath :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | OSError: [Errno 30] Read-only file system: 'blarg'
!e
'''py
import os
If file.exist("blarg") ==True :
os.remove("blarg")
!e
import os
os.remove("blarg")
@surreal wyvern :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | OSError: [Errno 30] Read-only file system: 'blarg'
!e
import os
If file.exist("blarg"):
os.remove("blarg")
@surreal wyvern :x: Your eval job has completed with return code 1.
001 | File "<string>", line 2
002 | If file.exist("blarg"):
003 | ^^^^
004 | SyntaxError: invalid syntax
os.file.exist
!e
import os
If os.file.exist("blarg"):
os.remove("blarg")
im dumb
!e
import os
If os.file.exist("blarg") ==True:
os.remove("blarg")
@surreal wyvern :x: Your eval job has completed with return code 1.
001 | File "<string>", line 2
002 | If os.file.exist("blarg") ==True:
003 | ^^
004 | SyntaxError: invalid syntax
!e
import os
if os.file.exist("blarg") ==True:
os.remove("blarg")
@surreal wyvern :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | AttributeError: module 'os' has no attribute 'file'
You probably meant os.path.exists?
!e
import os
if os.path.exist("blarg") ==True:
os.remove("blarg")
@surreal wyvern :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | AttributeError: module 'posixpath' has no attribute 'exist'. Did you mean: 'exists'?
!e ```py
import os
try:
os.remove("file")
except OSError:
print("Code for handling OSErrors.")
except FileNotFoundError:
print("Code for handling FileNotFoundError")```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
Code for handling OSErrors.
!e
import os
if os.path.exists("blarg") ==True:
os.remove("blarg")
@surreal wyvern :warning: Your eval job has completed with return code 0.
[No output]
it doesn't exist, but it ran into OSError before the FileNotFoundError
!e
import os
File=open("file.txt","w")
File.write("Hello")
if os.path_is_file("file.txt") ==True:
print("yes")
@surreal wyvern :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | OSError: [Errno 30] Read-only file system: 'file.txt'
code
i'mma go now need to go shopping cya guys in like 40-60 mins ๐
@quaint oyster :white_check_mark: Your eval job has completed with return code 0.
<module 'os' from '/usr/local/lib/python3.10/os.py'>
!e
import os
os.chmod("/usr/local/lib/python3.10/", 777)
@quaint oyster :x: Your eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | OSError: [Errno 30] Read-only file system: '/usr/local/lib/python3.10/'
@pulsar island You have a lot of background noise coming through, would you mind decreasing your input sensitivity or enabling push to talk?
@pulsar island If you have access to Krisp noise suppression, that would also work likely
Guys can we guess pressed key by the keyboard voice.
With training neural engin by key voice and key ??
you can train guess pressed key to a degree of accuracy
I think the data for different keyboard would be different.
!stream 420670527665995788
โ @pulsar island can now stream until <t:1656507908:f>.
@fickle crater in here
โ @pulsar island can now stream until <t:1656509800:f>.
Snu snuze alarm.
[29/Jun/2022 13:46:29] "GET /?title_contains=with+author&id_exact=&title_or_author=&view_count_min=&view_count_max=&date_min=&date_max=&category=Choose... HTTP/1.1" 200 6030
with
[29/Jun/2022 13:46:49] "GET /?title_contains=with&author&id_exact=&title_or_author=&view_count_min=&view_count_max=&date_min=&date_max=&category=Choose... HTTP/1.1" 200 8467
class JsonResponse extends Response {
constructor(body, init) {
const jsonBody = JSON.stringify(body);
init = init || {
headers: {
"content-type": "application/json;charset=UTF-8",
},
};
super(jsonBody, init);
}
}
Jankins. Jenkins, but shit.
!stream 420670527665995788
โ @pulsar island can now stream until <t:1656511348:f>.
@pulsar island from django.utils.http import urlencode
So Jenkins
I've never used it. Just felt like an easy joke to make
I've used it
And I approve this joke
There was always something or other that was fucked with it
Wrapping up my meetings/calls then I'll be back on
i did not know it was so easy to register for a back account
Some banks register you without you even asking >:)
Can anyone say identity fraud?
:incoming_envelope: :ok_hand: applied mute to @neon barn until <t:1656515504:f> (9 minutes and 59 seconds) (reason: burst rule: sent 8 messages in 10s).
"No need to add cheese, your feet will add its own!"
Tofungus. The tofu-based alternative to toe fungus.
How dare he look happy
cats slideshow
loooool
I had to delete the message I felt sick looking at it
XD
Memory is lovely, if overdone at this point.
@pulsar island You got like... chip bag noise coming through
I think that's what it is
using what?
LSP
Stuff like pyright and what have you
@somber heath WHY does it keep making things out of fondant
oh, its only on emacs?
No, LSPs are available on pretty much everything
Stands for Language Server Protocol
ok i understand thank u
Why is that dog turning into a whirlpool
by node u mean nodejs?
he is Parisienne
)
In my headcanon, Hannah Montana was a brilliant x86 assembly programmer on the down low. Hey you never know, leading double lives was her specialty right?
โถTry it yourself: https://www.mattkc.com/etc/snakeqr/
For those asking, yes I submitted my patch to ZBar and it has now been merged into master: https://github.com/mchehab/zbar/commit/5bc323...
mb sounds high
grew over time
Sharp LR35902 core @ 4.19 MHz
STN LCD 160 ร 144 pixels, 47 ร 43 mm (w ร h)
gameboy 4th gen specs damn
8 KB of built-in working RAM
I need more tabs open, no?
that's just one of several windows though @rugged root
Which majong?
Did someone say a gacha mahjongg? DO TELL
anyone remember these?
That's the AWS logo?
Not enough tabs
โNo mere tile-matching solitaire game, this is a full implementation of Japanese Mahjong. A fun, strategic variant of the classic Chinese 4-player game!
Features:
- Real (4-player) mahjong! (you vs. 3 CPU opponents, or play online!)
- 3-player (Sanma) mode!
- Japanese/Riichi style following Europeaโฆ
$2.99 for a game?
I'll stick to Bloons TD 6 then
what I really want is a decent touhou game on the phone. proper bullet hell
@sweet lodge fyi the aws tabs are stuff like this
Does anyone here know anything about Dendy? This is a fucking dumb parody of the NES in the USSR. Literally every second child had this crap
I thought everyone was playing S.T.A.L.K.E.R.
r/ofcoursethatsathing
That actually looks really neat
So you can also get Level2 NEXRAD data for free. Py-ART and MetPy are great for displaying that data btw.
XArray and Dask are also pretty good for working with netCDF4 data, which is 99.999999% of weather data these days.
In fact, XArray is netCDF4 implemented in Python.
The iQue Player (, stylised as iQue PLAYER) is a handheld TV game version of the Nintendo 64 console that was manufactured by iQue, a joint venture between Nintendo and Taiwanese-American scientist Wei Yen after China had banned the sale of home video games. Its Chinese name is Shรฉn Yรณu Ji (็ฅๆธธๆบ), literally "Divine Gaming Machine". Shรฉnyรณu (็ฅๆธธ) ...
Wait, Dendy? Isn't that that small green guy from Dragon Ball Z?
Everyones A Little Bit Racist
by avenue Q
Gotta love musical theatre sometimes.
anyway g2g, working on apigee stuff. rabbit can explain why that's a nightmare and a half
This is some great 2010 humour
I'm okay with that
@prisma zinc We are getting a lot of background noise from your mic. Please either mute when you're not talking, switch to push to talk, or turn on Krisp.
If not, I'll have to revoke your speaking perms
!tempvoicemute 168525130396336128 1d Please either mute when you're not talking, switch to push to talk, or turn on Krisp. If it happens again, you will have your perms permanently revoked.
:incoming_envelope: :ok_hand: applied voice mute to @prisma zinc until <t:1656609632:f> (23 hours and 59 minutes).
i vote on the naughter corner
Discord on my end was showing me not even talking, I couldn't hear anything from the other end, I wasn't even at my computer and it's dead silent here,
What were you hearing?
lots of loud banging
!remindme 5m remind LP that he needs to remind me to remind him
Sorry, you can't do that here!
banging... lemme grab audacity and see if it's my mic. Maybe I'll reinstall discord, my brother was saying the same thing at the start of our call last night but it cleared up.
Nope, now I hear you but don't get any green circles when people talk, gonna reinstall Disc, i'll be back.
hello
!voice verify
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
i cant speak lel
invited you ๐
!voiceverify
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
so i have to send 50 messages before i can talk?
ahh
yeah i understand that but how do i get verification with out typing 50 times
You'll get to it in a few days time.
ima just send a message in every chat lol
@hearty thistle #media-processing message
Ungh. I wish people would use better data structures. Not your fault.
!e py data = [("a", 5), ("b", 8)] for letter, number in data: print(letter, number)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | a 5
002 | b 8
!e py text = "abcdefg" for i, v in enumerate(text): print(f"{v} is at index position {i} within {text}.")
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | a is at index position 0 within abcdefg.
002 | b is at index position 1 within abcdefg.
003 | c is at index position 2 within abcdefg.
004 | d is at index position 3 within abcdefg.
005 | e is at index position 4 within abcdefg.
006 | f is at index position 5 within abcdefg.
007 | g is at index position 6 within abcdefg.
!e py print(*range(5))
@somber heath :white_check_mark: Your eval job has completed with return code 0.
0 1 2 3 4
for i in len(stock_prices):
if stock_prices[i] == 'march 9':
print(stock_prices[i][1])
hmm
!e py data = [("a", 3), ("b", 7), ("c", 7)] the_dict = dict(data) print(the_dict) print(the_dict["b"])
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | {'a': 3, 'b': 7, 'c': 7}
002 | 7
for i in range(len(stock_prices)):
if stock_prices[i][0] == 'march 9':
print(stock_prices[i][1])
ok i got it
thanks you @somber heath
class MyClass:
def __init__(self, v):
self._v = v
@property
def v(self):
return self._v
@v.setter
def v(self, v):
self._v = v
def get(self):
return self._v
def set(self, v):
self._v = v```
Getters and setters.
Imagine doing
a = 5
and having
b = a * 2 automatically happen every time you do
!e ```py
class MyClass:
def init(self, v):
print(f"Initialising _v with {v}")
self._v = v
@property
def v(self):
print(f"Getting {self._v}")
return self._v
@v.setter
def v(self, v):
print(f"Setting _v to {v}")
self._v = v
mc = MyClass(5) #Initialising
mc.v = 5 #Setting
print(mc.v) #Getting
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | Initialising _v with 5
002 | Setting _v to 5
003 | Getting 5
004 | 5
!e ```py
class Rectangle:
def init(self, height, width):
self.width = width
self.height = height
@property
def perimeter(self):
return (self.height + self.width) * 2
rect = Rectangle(10, 20)
print(rect.perimeter)
rect.width = 5
print(rect.perimeter)```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | 60
002 | 30
!d property
class property(fget=None, fset=None, fdel=None, doc=None)```
Return a property attribute.
*fget* is a function for getting an attribute value. *fset* is a function for setting an attribute value. *fdel* is a function for deleting an attribute value. And *doc* creates a docstring for the attribute.
A typical use is to define a managed attribute `x`...
!e print(dir(property))
@somber heath :white_check_mark: Your eval job has completed with return code 0.
['__class__', '__delattr__', '__delete__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__get__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__isabstractmethod__', '__le__', '__lt__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__set__', '__set_name__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', 'deleter', 'fdel', 'fget', 'fset', 'getter', 'setter']
gotta go prepare for my uni physics exam
@gentle flint Could you ping me here, please? Something needs kicking loose.
Actually...
!e py import time time.sleep(7)
@somber heath :warning: Your eval job timed out or ran out of memory.
[No output]
Arg.
Hey!
Didn't shift it.
@somber heath
pycharm
@warped raft do u used python for web or data science ??
hmm how u liking it any luck getting any jobs or not at the moment
bro i am 14
@somber heath
.
@warped raft how am i surpose to know but aye it good learning how to code early age
Ta. Had a persistent ghost ping that was being resistant to being killed.
```py
Traceback (most recent call last):
File "C:\Users\Pytho\IdeaProjects\socks\server.py", line 6, in <module>
s.bind(("(public ip server)", 9999))
socket.gaierror: [Errno 11001] getaddrinfo failed
scripting usually
is @somber heath a bot ?
Hi!
is he? sentient?
yees
just the error showing should do
Prawn crackers (Indonesian: krupuk udang) are a deep fried snack made from starch and prawn. They are a common snack food in Southeast Asian cuisine, but they are most closely associated with Indonesia and Malaysia. They have also been adapted into East Asian cuisines, where the similar Japanese kappa ebisen (ใใฃใฑใใณใใ) (Japan) and Korean saeukkan...
Chinese takeaways here tend to give these away with some purchases.
what is going on?
py here's how
should be right below the ~ sign
below esc
damn
could be an issue with the keyboard
or probably the format
bye
what would this be called?
variable_name = some_function_result()```
ah
yes
I couldn't think of the word
lol
I was stuck at initialization but I already initialized so it would be more like re-assignment or something
I'll tell them when they're not talking
I have no experience
xD
how much further until you're verified?
do you know about the verification process?
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
np
Joja
lets talk
so u can vc
yes
ok
so
what is your fav animal?
ye
ok
so
yes
yeah I don't think spam counts either, I think its very specific
no problem!
ok
so
what text editor do you use
very cool!
what langauges do you use
ye cool
very cool
I used VSC for a decent amount of time with python
I recently switched to intellij idea
java editor
yeah
this is my intellij idea
my code is really messy rn
yeah
bruh
eh
xD
this language is similar https://en.wikipedia.org/wiki/Assembly_language
In computer programming, assembly language (or assembler language, or symbolic machine code), is any low-level programming language with a very strong correspondence between the instructions in the language and the architecture's machine code instructions. Assembly language usually has one statement per machine instruction (1:1), but constants...
plugins {
id 'application'
}
group = 'com.name'
version = '2.0.0'
sourceCompatibility = 16
repositories {
mavenCentral()
}
sourceSets {
main {
java {
srcDirs=["src/main/java"]
}
resources{
srcDirs=["src/main/resources"]
}
}
}
run{
standardInput = System.in
}
application {
mainClassName = 'Main'
}
dependencies {
implementation group: 'com.google.guava', name: 'guava', version: '31.1-jre'
implementation group: 'org.json', name: 'json', version: '20220320'
implementation group: 'org.fusesource.jansi', name: 'jansi', version: '2.4.0'
}
wait what's happening here
||if you got STD, spread the joy (the thing) to everyone with happiness||
dont read this if you get triggered easily
lol just talking about ADHD and this guy put up those two
Do you have any recommendations of spreading techniques?
Ah, gotcha
the way to do that is clearly in the name of STD xD
loLLLL
if I'm correct it should tell you when you attempt to verify
show code
import sqlite3
from cryptography.fernet import Fernet
conn = sqlite3.connect("myfirst.sqlite")
conn.execute("CREATE table IF NOT EXISTS final_contacts(encrypt_info)")
name = input("Name: ")
phone = input("Phone: ")
email = input("Email: ")
password = input("Password: ")
DOBy = input("DOB year: ")
DOBm = input("DOB month: ")
DOBd = input("DOB day: ")
error_code_e = False
info = [["name", name], ["phone", phone], ["email", email],
["password", password], ["DOBy", DOBy], ["DOBm", DOBm], ["DOBd", DOBd]]
for each_field in info:
for name_of_field, field in each_field:
if field.replace(" ", "") == "":
print(f"Program finished as field: {name_of_field} was empty")
error_code = True
key_string = f"{name} {phone} {email} {password} {DOBy} {DOBm} {DOBd}"
key = Fernet.generate_key()
cipher_suite = Fernet(key)
cipher_text = cipher_suite.encrypt(key_string.encode())
print(cipher_suite.decrypt(cipher_text).decode)
!code
Here's how to format Python code on Discord:
```py
print('Hello world!')
```
These are backticks, not quotes. Check this out if you can't find the backtick key.
AFAIK urllib.urlopen doesn't exisit
`
!e ```py
info = [["key_a", "value_a"], ["key_b", "value_b"]]
for key, value in info:
print(key, value)```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | key_a value_a
002 | key_b value_b
Just ๐ค
hi bob
not me no
im good
sorry what are you talking about again
ahh....
I'm in the midst of one
never ending coding
plus my colleague just switched jobs so now I'm taking over his tasks
it's nuts
were you satisfied with how it turned out?
that's good then :^D
must be a lot of matrices and linear algebra and stuff
damn ๐
did u learn a lot of physics too
๐ตโ๐ซ
was tehre a lot of GPU programming too
still that's pretty cool
yup
hold on a second im checkin it out
i hate you
๐ถ
Ok dear
!d random
Source code: Lib/random.py
This module implements pseudo-random number generators for various distributions.
For integers, there is uniform selection from a range. For sequences, there is uniform selection of a random element, a function to generate a random permutation of a list in-place, and a function for random sampling without replacement.
On the real line, there are functions to compute uniform, normal (Gaussian), lognormal, negative exponential, gamma, and beta distributions. For generating distributions of angles, the von Mises distribution is available.
@turbid rune You're very quiet. ๐
@somber heath how are you
I don't want to answer.
Nothing exciting.
@somber heath which keyboard do you use
@somber heath do you know where is @wind raptor
@turbid rune Despite some others being able to hear you, that's more to do with them than you. You are significantly quiet.
my ears are blessed
@lavish rover how are you
hi
data = {
"clients": [
{
"username": "foo",
"clientObj": "foo"
},
{
"username": "foo",
"clientObj": "foo"
}
]
}
can anyone say how to access the clientObj in this dict
i need to check if curtain value is in clientObj if then i need to remove entire { "username": "foo", "clientObj": "foo" }
is there any way without looping and checking all the values corresponding to clientObj key
Create a new list, iterate through data["clients"], append all entries you don't want to discard to the new list, assign the new list to data["clients"][:] or data["clients"] if you don't care about replacing the instance.
!e ```py
data = {
"clients": [
{
"username": "foo",
"clientObj": "foo"
},
{
"username": "foo",
"clientObj": "foo"
}
]
}
for client in data["clients"]:
print(client)```
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | {'username': 'foo', 'clientObj': 'foo'}
002 | {'username': 'foo', 'clientObj': 'foo'}
There are other approaches. This is not especially efficient, but it's reasonably straightforward.
I'm not sure how applicable that would be beyond identity.
Comparing properties of them might be more useful.
Sockets aren't something I work much with at all.
me too i never worked with socket before thats why i have these much questions
hi
@empty gorge Check out the #voice-verification channel. That'll tell you what you need to know about our voice gate
Top right looks like soft serve icecream
Yeah
almost a self dox lol
thankfully I don't have permissions set up for the webcam yet haha
@rugged tundra Takeshi's Castle?
Can you find waldo?
I hate how there's an "Open Camera" button on the touch bar
Constipation consternation.
I keep pressing it when reaching for Esc
some things don't work that well
.xkcd 378
@royal valve #โ๏ฝhow-to-get-help don't DM random people, that's a very quick way to get blocked
:hemshake:
damn, okay
๐ค
india
sussy amogus
!tvmute 939196353362419722 2w Playing music into your microphone is not an acceptable use of voice verification. It's disruptive, loud, and rude to others. If this happens again after the voice mute expires, you will lose voice permissions permanently.
:incoming_envelope: :ok_hand: applied voice mute to @whole bear until <t:1657808699:f> (13 days and 23 hours).
"Donald Trump except he actually has real hair"
lmao
This is the best part
"Barack Obama doing that hand thing Angela Merkel does"
Trajectory.
The Caroline affair (also known as the Caroline case) was a diplomatic crisis beginning in 1837 involving the United States, the UK, and the Canadian independence movement. It began in 1837 when William Lyon Mackenzie and other Canadian rebels, with support from US citizens, fled to an island in the Niagara River, in the ship Caroline. British f...
The Aroostook War (sometimes called the Pork and Beans War), or the Madawaska War, was a military and civilian-involved confrontation in 1838โ1839 between the United States and the United Kingdom over the international boundary between the British colony of New Brunswick and the U.S. state of Maine. The term "war" was rhetorical; local militia ...
And where is that band who so vauntingly swore,
That the havoc of war and the battle's confusion
A home and a Country should leave us no more?
Their blood has wash'd out their foul footstep's pollution.
No refuge could save the hireling and slave
From the terror of flight or the gloom of the grave,
And the star-spangled banner in triumph doth wave
O'er the land of the free and the home of the brave
so much better than the first two verses
@gentle flint wow, your water is warmer than mine
Measuring tapeworm.
https://www.youtube.com/watch?v=qOCOMLsyGNo this one is best because it also has a sign language translator
Learn how to pronounce "Lake Chargoggagoggmanchauggagoggchaubunagungamaugg" with the American Pronunciation Guide ("APG")!
The American Pronunciation Guide is devoted to descriptive linguistics--i.e., the study of the internal phonological, grammatical, and semantic structures of languages without reference to the history of the language or com...
It may be a mouthful to say, but Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch in north west Wales was one of the warmest places in the UK today.
And, it was no problem for our Welsh weather presenter Liam Dutton to mention it on todayโs weather forecast.
Word salad dressing.
Rolling pin of Aristothenes.
https://youtu.be/KJrfpK4aKYo what I will be doing while I am gone
is this official google website ?
anyone ? @lilac ether
can you guys also tell me how to download some app source code from this
idk what the fuck is this
okay
should i go with master ?
sounds good
I need whole code tbh
:0
want to modify when on call
decompile then after modifying installing that apk on phone ?
a tbh it is not having function to record
want to add
I am going to install it on my phone not publishing anywhere

android 12 i guess
why tho
fuck you google
yes
that is what i want to do so
no
ye
why tho
idk much tbh
I tried installing Mi apk on my phone and it said it's not compatible
idc tbh
bruh
can i decompile then edit and compile
why tho
give
contacts app
I don't want to modify android
just contact apps
but where is the code
but what if i use existing end point
?
then how the hell official contact apps is recording ?
๐คก
see
i want to modify recording function of it
it says fucking call is being recorded
i want to remove that
link please
bruh
NOOOOOOOOOOOO
when i am on call it says call is being recorded before starting the recording
i want to remove that thing
on call
yesssssss
that
i don't want that
in my mi phone it doesn't say anything
but on that phone it says that message
yes
mmm
yea
it doesn't
yea
I tried installing mi contact apk on that phone and it doesn't work
yea
Gonna make some lunch for the kiddos. Be back later. Cheers
https://android.googlesource.com/platform/packages/apps/Contacts/+/refs/heads/master is this link having whole code of contacts app if yes it is in which language ?
found
i see java
what
what's wrong
i want to clone that
Are you just not listening to me or....
?
thanks for your time
ender 3d pro
Moving Sandscapes, a mysteriously awesome piece of art decor! This glass sand art frame is a cool little find to add some intrigue to your space, background or desk forever creating alien looking landscapes! Check updated prices and deals by clicking the "show more" button below:
โ MOVING SANDSCAPES:
Amazon ๐บ๐ธ US: https://amzn.to/3dJjc20
Amazo...
Carl Sagan - Cosmos - Eratosthenes
Another quick phone call then I'll be back
Quack
how to get voice verify fast?
@broken dagger If you're wondering why you can't talk, check out the #voice-verification channel. That'll tell you what you need to know
Helping in help channels can get you the message count quite quickly!
Thank.
ty, i didnt know you had to do the command because i knew i fulfilled all requirements lol
Ah, fair enough. I'm still trying to find a way to get people to know the process.
i know i cant see the #voice-verification channel anymore, but maybe edit and put as a 4th requirement that you have to put in the command to check if eligible in order to be verified
Taking a screen shot so we can all see it
Yeah huh
I didn't realize we didn't have that in there
i mean it does say it at the bottom, i think i just did some skipping around
Yeah but it only says it for confirming
but if you put it specifically in the requirements it will make it more clear
ofc, i love helping out any way i can :)
and thank you for the help with verification!
Happy to help. Looking forward to having you here
In order to prevent abuse of our voice channels, we put some conditions in place before you can gain the ability to speak in voice.
You must meet all of the following criteria before you can speak in voice channels:
โข Have over 50 messages in the server.
- Messages that have been deleted do not count towards your message count.
- Messages sent in either #bot-commands or #sir-lancebot-playground do not count towards your total.
โข Have joined the community over 3 days ago.
โข Have been active for over 3 ten-minute blocks. This means you need to have sent your messages over a span of at least 30 minutes.
โข Send the !voiceverify command in this channel to either see which criteria you need to fulfill or get verified.
Spamming to meet any criteria will get you temporarily or permanently banned from voice, and potentially the community.
Note: You can always join and listen to voice, but you must verify to be able to speak.
Please DM <@&714562188236423278> if you experience any issues while verifying yourself for voice or if you left the server after completing verification previously.
How's that read
Look good?
Sent 50 messages (not deleted, not in #... and not in #...)
