#voice-chat-text-0
1 messages Β· Page 141 of 1
I'm not that interested in it to go to a private call.
wtf man
guys chill. I was talking to knity in vc0. he wasn't spamming
You're not even in VC man
i give up
I can't give you perms, you can chat and ask questions in here
π
i have a question
i kinda wanna put my sh*t projects on github
all of them
is it fine to just keep private repos
i also wanna practice git with it
plus i want that π© streak
do people actually care about ur public repos? or they will see the one that are pinned and stuff
like i want to put some games i made with lua
but i dont want to become a
game dev
so..
nah i dont wanna farm streaks or somethn
hey
@lavish rover i wanted to ask you this question last time (a few days ago) but i was kinda "shy" π π
what was ur roadmap for learning python (im kinda lost) for summer, i have plan to learn matplotlib and stuff
i made projects till oop only, nothing s*xy
ah
ye, projects help
i think you are right, for my next projecct i need to learn matplotlib @wind raptor
hello
could you help me
how can i help u
alright so...
Ok please stop posting those
sorry
No worries
its an example
so... public repos, can i post all the stuff im confident in? like even something that i wont pursue as a career
like games
discord bots
might be re asking
i need a domain
namecheap
free
Shop around, there's lots of places to get em... not free though
i need free
whats a subdomain
does tenor give out subdomains?
idk
likely not
lol, jounrey to find ur github account @wind raptor
I went to your twitch from your discord then to your twitter account then found a past stream on YT then i tried finding more past streams there, but no hope, at last i just entered your username directly on github and found your account
all the initials steps were kinda useless mate π
π€£
i think i will just pin the repos i really wanna show to somebody
and upload games, web dev, guis stuff
π thank you @wind raptor
I will think of more porjects that can make my life easy, it will help me to learn python more, thanks again π
gonna kill two birds with one stone
No problem!
Cheers
What is the topic ?
!cban 507176444510601238 homophobia
:incoming_envelope: :ok_hand: applied ban to @south girder permanently.
Try signing up for Git Hub student dev pack, ez just use any educational email ID and some verification
Hoy hi. Ears are on. Inconvenient to type. Will respond when convenient.
@north swift And now the talking is here
"Feistel" is a German surname so it should be with /aΙͺ/
but there's, like, surprisingly little information on phonetics
I drink straight black tea by itself all the time.
I don't get sick from it.
It's our Australian fortitude.
Superior. Robust.
You re rich
Hell yes
okay, now it's time to boil water and make a cup of cherry flavored tea π₯°
Make one for me as well
WOW I just lost all brain function
I butchered that sentence
sorry, only one tea bag has left. i need to order more!
haha it's okay, we don't bully people for that
i'm so jealous of you guys that you have this voice verification π«
Things have become a lot more tolerable here as a result.
Plus, it's just a speedbump, not a brick wall.
Yeah the time will fly by
@lucid blade A whole 4mb. Stand back, everyone. Big man, coming through!
GHz frequencies are still quite high
For sure
quite possibly many categories of CPUs will forever remain below that
@lucid blade Do you still have it squirreled away, somewhere?
The Kindling projects page on Ned Batchelder's website contains a list of projects and ideas programmers can tackle to build their skills and knowledge.
There's also projects like these
It is not a warm night.
computer I do most of development on:
I think it's 2.5 GHz at most
Capture The Flag, CTF teams, CTF ratings, CTF archive, CTF writeups
It's not the number of Hz, it's how you use them
@lucid blade this has links to more of them
@north swift So I might have missed it, are you a student or do this for work?
and low should be around what it shows there (800 MHz)
I'm an undergrad student
or less! caffeine addiction is not good
overleaf uses them very unwisely
@rugged root You'll appreciate this. I got an sms from the local gp... Not from them directly, this other number...
"Enter your date of birth to confirm your identity"
I ended up ringing them to ask if it was a phishing scam. Because it was like, pretty much exactly what you'd expect a scam to look like.
Vaccination update reminder.
Eh. I take ADHD medication, so I'm already on a stimulant daily as it is
My unhealthy habits are at least consistent
Told them, "You know this reads exactly like I'd expect a scam to look like?'
The web stuff wasn't even on their domain.
oh, sorry to hear that!
Voicecally
Eh, it's just how it is
yeah you're right. at least i hope it does not bother you much on a daily basis!
Been dealing with it since 2nd grade. That plus the clinical depression and anxiety disorder stuff. Just how it is
@whole egret
hi does anyone know of a way to work with cad, stp or sldprt files using python without requring a license for cad/creo etc?
I thought there was some open cad stuff
LOL
Okay, THAT one actually surprised me
Well did
!d itertools
This module implements a number of iterator building blocks inspired by constructs from APL, Haskell, and SML. Each has been recast in a form suitable for Python.
The module standardizes a core set of fast, memory efficient tools that are useful by themselves or in combination. Together, they form an βiterator algebraβ making it possible to construct specialized tools succinctly and efficiently in pure Python.
For instance, SML provides a tabulation tool: tabulate(f) which produces a sequence f(0), f(1), .... The same effect can be achieved in Python by combining map() and count() to form map(f, count()).
There are packages you can install, too, but a web search would be straightforward.
re wordlists
!d str.join
str.join(iterable)```
Return a string which is the concatenation of the strings in *iterable*. A [`TypeError`](https://docs.python.org/3/library/exceptions.html#TypeError "TypeError") will be raised if there are any non-string values in *iterable*, including [`bytes`](https://docs.python.org/3/library/stdtypes.html#bytes "bytes") objects. The separator between elements is the string providing this method.
a function to subtract a group of letters from another group of letters would be advantageous. Proficiency in try/except will also help.
I once played someone who I suspected to be a cheater
pretty much the only way I could win was to pre-move the entire openning and win on time eventually
Catalan ftw
!rule 5
5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Talk or connect?
reconnecting 20 times doesn't help
There's a room linked in the bot message.
Also spamming messages will expand your wait time
Instructions are within.
would be better if Discord just limited the amount of join sounds if the person reconnects a lot
cat of the neighbours randomly walked in this afternoon
API hiccup. I'm just imagining a bee hiccuping.
I watched a video of an echidna sneezing.
It was predictably adorable.
>>> aa = "Δ"
>>> bb = "Δ"
>>> aa == bb
False
>>>
>>> aa.encode('utf-8')
b'\xc4\x81'
>>> bb.encode('utf-8')
b'a\xcc\x84'
Healesville Sanctuary Keeper Amie was relaxing with Matilda the echidna when something on Amie's boots made Matilda sneeze!
Primarily rainbow lorikeets.
Maybe a Noisy Miner or two, but I'm not sure.
A Sulphur Crested cockatoo.
The sulphur-crested cockatoo (Cacatua galerita) is a relatively large white cockatoo found in wooded habitats in Australia, New Guinea, and some of the islands of Indonesia. They can be locally very numerous, leading to them sometimes being considered pests. A highly intelligent bird, they are well known in aviculture, although they can be deman...
I didn't mean to super react.
I don't even know how I did.
https://en.m.wikipedia.org/wiki/Rainbow_lorikeet The squeaky ones
The rainbow lorikeet (Trichoglossus moluccanus) is a species of parrot found in Australia. It is common along the eastern seaboard, from northern Queensland to South Australia. Its habitat is rainforest, coastal bush and woodland areas. Six taxa traditionally listed as subspecies of the rainbow lorikeet are now treated as separate species (see T...
Although there might be another species that I don't recognise as well.
You hear a lot of these ones.
Bird breeding happens quite frequently. Often in front of our loungeroom windows.
there are a lot of characters looking like '
if it went through word/outlook/etc., it might've gotten replaced
Print the other half.
It's a binary search. It's efficient.
Isn't that what we tell people?
It may need work.
I'm not sure I get it.
Ah.
Now you've explained it, but given it went over my head...
Sure.
Is mother in outlaw a thing?
Hm.
@quasi condor Don't think I didn't see you creepin'
Are there regional attributes attached to enemies?
Godville.
Like ocean-only?
Because card sharks.
I do.
I do know.
You don't have any reason to worry.
Yes.
I'm unironically not, I don't understand why it shows me as typing whenever I click on the pydis server
Just to get my hopes up
I will tell people if their audio is being obnoxious.
There is none that I noticed.
Barryometer.
Bazza!
"Buh buh buh..."
Kubernetes?
I love listening to you say that.
Kubernetes.
I think it's because you enjoy it so much.
and it's just...smooth
Hemeneglheh?
|||||| π’
Scandinavia.
Mekanism progress.
Is that what funeral home directors tell their staff to motivate them?
"I bereave in you."
Hi
@hollow sentinel Yo
Ijes
sphinx
hi
allegedly python 3.11 docs are on Sphinx 6.2
instead of 4.5
oh, 3.12 is already in beta
finally, more opportunities to mess with syntax
https://peps.python.org/pep-0701/
Python Enhancement Proposals (PEPs)
at some point I somewhat stopped playing games much
like
it was more of just grinding one game at a time because it's simpler for my brain to handle
300 hours of brick rigs gaming in two months is totally sane
(the cyan bar)
not including all the Python and TeX writing accompanying it
(maybe that's not how the game was supposed to be played)
I learned that this exists
https://en.wikipedia.org/wiki/Hyperbolic_navigation
Hyperbolic navigation is a class of radio navigation systems in which a navigation receiver instrument is used to determine location based on the difference in timing (phase) of radio waves received from radio navigation beacon transmitters.
Such systems rely on the ability of two widely separated stations to broadcast a signal that is highly c...
why is this embed preview so wrong
it's trying to render SVG and failing
oh wait
the SVG is just broken
the white text shouldn't be the in the first place
like
it's not visible on the page itself
because it's white just like the background
I can try to fix it
or I can ignore it
insect?
or spider-like?
there are Opiliones which aren't spiders
oh, I forgot the word
I remembered the word
Scolopendra
but that's a centipede
Scutigera?
Scutigera is a centipede genus in the scutigeromorph (house centipede) family Scutigeridae, a group of centipedes with long limbs and true compound eyes (which were once thought to be secondary, re-evolved "pseudofacetted eyes"). It compose of more than 30 species, including the most common and well-studied Scutigera coleoptrata.
The centipedes or Chilopoda are divided into the following orders.
wow, there's quite a lot of Arachnids which aren't spiders
yep
first time seeing ? in the wikipedia taxonomy
to be uniform with extinct notation
no
they don't know where to put it
@split pilot #voice-verification
πTrigonotarbida
^ "more uniform symbol for extinct"?
Xiphosura (; from Ancient Greek ΞΎΞ―ΟΞΏΟ (xΓphos) 'sword', and ΞΏα½ΟΞ¬ (ourΓ‘) 'tail', in reference to its sword-like tail) is an order of arthropods related to arachnids. They are more commonly known as horseshoe crabs (a name applied more specifically to the only extant family, Limulidae). They first appeared in the Hirnantian (Late Ordovician). Cu...
hi guys, iam a beginner i want to learn python. which is the best source to learn it? like udemy, youtube etc?
imagine having to draw the skull by hand each time
right what am i supposed to do here again @rugged root
Chill out and chat
they seem to be most closely related to Arachnida
got it thanks
(but they don't look like it)
:ok_hand: applied timeout to @split pilot until <t:1685734097:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
ninja technique to get muted
If you read the #voice-verification, you'll see that it mentions NOT to spam to get it
These particular appendages give it an appearance somewhat comparable to chelicerate arthropods such as arachnids and horseshoe crabs.
(about the alien thingy)
!unmute 845082022213058570
:ok_hand: pardoned infraction timeout for @split pilot.
If you want to get verified, do it legitimately
thanks again
sure
really sorry about that
what was that?
right makes sense
are you guys upto something?
I avoid insects way more than spiders
i want to contribute to open source in a worthy python project, i just dont know where to start
spiders eat insects -- good
why did the emoji get changed from π¨?
π¨π looked funnier
!source
The :failmail: means the message wasn't received.
readme of this repository does'nt really say much
The DM sorry
I don't have nitro :C
can you guys in a short summary tell about this bot
are you running it on cloud?
Erm just repairing/repainting some wooden boxing in the bathroom.
I think we're hosted by Netcup? π€
do you recommend for someone trying to get into fang?
you think?
faang isn't necessarily the best place to work at
probably recognising that is the first step
my bad
fanga manga
You may need to practice those kinds of problems if you're planning to interview with these companies.
right
do you do leetcode @stuck furnace
for those companies leetcode-style interviews are kind of necessity to make filtering easier
yea but technical interviews are based on leetcode @somber heath
On occasion 
regardless of whether it's a good filter of skill
depends
yea it does depends
it failed for me
wow, so many opportunities to click "No, thanks"
Ah right, so is says something like #unknown for you?
on which criterion?
My cat has evicted my laptop from my lap :C
So now it's awkwardly balanced on my knee
Fair enough
how long do you guys think have i joined this VC for? (in minutes)
do you think the bot is broken by any chance?
Use the !user command to see how far you are to meeting the requirements.
!user
You are not allowed to use that command here. Please use the #bot-commands channel instead.
allow DMs so the bot can explain why verification fails
(temporarily)
makes sense
I think what !user shows is what the verification uses
Ah you got a 14 day voice mute for spamming!
i am gonna leave the server now(close discord) and come back and chat for another 10minutes
this should do it
right i will not leave the server
i love you guys
and i love python
back
I think I'll pardon the voice mute. One sec.
10minutes starts now
wait you can do that
I'm going to ask the mod who issued the mute if they're ok with that.
You should be able to verify now @split pilot. To be clear, you were muted by a mod for spamming to meet the message requirement.

It's the single souless eye that really makes it.
thanks
https://skybox.blockadelabs.com/
check this out
@somber heath you kindof sound like Tim Buchalka... If you know him :)
I disagree.
But thank you for the comparison.
alright, maybe its just me
are you happy too?
Not at the moment
Bit of a deep question π
hahaha
@turbid sandal https://tkdocs.com/tutorial/styles.html
Styles and Themes: Part of a Modern Tk Tutorial for Python, Tcl, Ruby, and Perl
Learn how to create professional user-interfaces for your Python apps.
ChadGPT
"Sup brah"
Super Dev: "Rust is simpler then python" gigachad
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
Corey Schafer, YouTuber, playlists, python for beginners.
@robust bone @surreal epoch
thanks alot
Also, the downloadable version of the documentation from python.org.
There's a zip of pdfs.
library.pdf is the Python bible
Also...you are here.
can you hear me?
no
I heard you asking hello, but since Hemlock was talking, I didn't respond.
@waxen barn π
@rugged root I was suppressed in the voice call
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Yeah it's our voice gate. Check out the channel listed in the embed
@rugged root thank you
Hopping off, my head is killing me
Telling him to what? π
lol
Heading off π
Ah which mods?
I am tbh looking for a modpack
Ah in general mods, interesting I have heard a lot about create
world edit?
Pretty sure that is a vanilla feature
3am
Determinism is a philosophical view, where all events are determined completely by previously existing causes. Deterministic theories throughout the history of philosophy have developed from diverse and sometimes overlapping motives and considerations. The opposite of determinism is some kind of indeterminism and even more so nondeterminism (aka randomness)
Free will is the ability of humans to make decisions or perform actions independently of any prior event or state of the universe.1 Philosophers have offered various accounts of freedom, including the absence of external impediments to an agent doing what they want to do and the power of acting or not acting, according to the determination of the will.0 To believe in free will is to reject the idea that human actions are determined by external conditions or fate. The doctrine that the conduct of human beings expresses personal choice and is not simply determined by physical or divine forces.2
Hello
I join the discord channel.
expectation:
Listen to the reasoning about the code and life hacks in python.
reality:
"Are you Catholic?"

I love lamas
I donβt understand English well, but do I understand correctly that the conversation turned from something spiritual into politics, then into LGBT?

https://www.bibletools.org/index.cfm/fuseaction/topical.show/RTD/cgg/ID/4272/Jesus-Christ-as-Messenger.htm
See jesus is messenger of god
Jesus came to this earth as a Messenger from God the Father. Malachi 3:1 mentions two messengers: The first is John the Baptist, who prepared the way β¦
@midnight agate
this has an interesting solution in Rust (involving traits for one particular trick)
https://leetcode.com/problems/median-of-two-sorted-arrays/
Can you solve this real interview question? Median of Two Sorted Arrays - Given two sorted arrays nums1 and nums2 of size m and n respectively, return the median of the two sorted arrays.
The overall run time complexity should be O(log (m+n)).
Example 1:
Input: nums1 = [1,3], nums2 = [2]
Output: 2.00000
Explanation: merged array = [1,2,3]...
Practical data skills you can apply immediately: that's what you'll learn in these no-cost courses. They're the fastest (and most fun) way to become a data scientist or improve your current skills.
#include <stdio.h>
int main() {
int N;
int count = 1;
printf("Enter number of rows between 2 and 9: ");
scanf("%d", &N);
if (N < 2 || N > 9){
printf("ERROR: enter a number within range.");
return 1;
} else {
for (int i = 0; i < N; i++){
for (int j = 0; j < N - i; j++){
printf("%2d ", 0);
}
for (int j = 0; j < N; j++){
printf("%2d ", count);
count++;
}
for (int j = 0; j < i + 1; j++){
printf("%2d ", 0);
}
printf("\n");
}
}
return 0;
}
Anyone can help me with this?
This code generates a pattern of numbers and zeros based on the user's input for the number of rows. It ensures that the input is within the range of 2 to 9. The pattern is constructed using nested loops, with each row consisting of zeros, a sequence of numbers, and increasing zeros. The program prints the pattern and terminates after execution.
for some reason, sounds a lot like rule 10
0
00
0000
00000
00000
0000
000
00
0
This stackoverflow question have a good answer explanation
N = int(input("Enter number of rows between 2 and 9: "))
if N < 2 or N > 9:
print("ERROR: enter a number within range.")
else:
count = 1
for i in range(N):
for j in range(N - i):
print("{:2d}".format(0), end=" ")
for j in range(N):
print("{:2d}".format(count), end=" ")
count += 1
for j in range(i + 1):
print("{:2d}".format(0), end=" ")
print()
Python version of that code
what happens if 2 is missing in formatting
why not f-strings?
I think we can use that too
and, given that it's python, why add d?
0 0 0 1 2 3 0
0 0 4 5 6 0 0
0 7 8 9 0 0 0
Actually I used chat gpt
π€¨
just don't forget to disclose it upfront
0 0 0 1 2 3 0
0 0 4 5 6 0 0
0 7 8 9 0 0 0
!stream 742046782220927007
β @cunning monolith can now stream until <t:1685756250:f>.
!e
n = 5
for i, start in zip(range(n), range(1, n * n + 1, n)):
numbers = [*([0] * (n - i)), *range(start, start + n), *([0] * (i + 1))]
print(*(f"{x:2}" for x in numbers))
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 0 0 0 0 0 1 2 3 4 5 0
002 | 0 0 0 0 6 7 8 9 10 0 0
003 | 0 0 0 11 12 13 14 15 0 0 0
004 | 0 0 16 17 18 19 20 0 0 0 0
005 | 0 21 22 23 24 25 0 0 0 0 0
!e
print('foo')
@surreal cape :white_check_mark: Your 3.11 eval job has completed with return code 0.
foo
π€ nice
!e
# even more ranges
n = 5
for left, right, start in zip(range(n, -1, -1), range(1, n + 1), range(1, n * n + 1, n)):
print(*(f"{x:2}" for x in [*([0] * left), *range(start, start + n), *([0] * right)]))
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 0 0 0 0 0 1 2 3 4 5 0
002 | 0 0 0 0 6 7 8 9 10 0 0
003 | 0 0 0 11 12 13 14 15 0 0 0
004 | 0 0 16 17 18 19 20 0 0 0 0
005 | 0 21 22 23 24 25 0 0 0 0 0
"look at the amount of *s -- it's just like C"
!e
STOPW = {'a', 'it', 'its', 'an', 'i'}
VSIZE = 25
def convert(text):
t = text.lower().strip().split()
m = []
for i in t:
if i in STOPW:
m.append([0 for _ in range(VSIZE)])
else:
v = [ord(k) for k in i]
while len(v) < VSIZE:
v.append(0)
m.append(v)
return m
def recon(m):
t = ''
for i in m:
for j in i:
if j == 0:
t+= ' '
break
t += chr(j)
return t.strip()
# Vectorize text
text = 'hello, my name is Bruno'
matrix = convert(text)
for row in matrix:
print(row)
# Reconstruct matrix of numbers into text string
print(recon(matrix))
@surreal cape :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | [104, 101, 108, 108, 111, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
002 | [109, 121, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
003 | [110, 97, 109, 101, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
004 | [105, 115, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
005 | [98, 114, 117, 110, 111, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
006 | hello, my name is bruno
indeed, i was just playing with word2vecs from scratch
for row in m:
I'm wondering if that code can be made less imperative
actually I have write this on smartphone in Qpython3
thats why I have to use short ugly names for variables
reasonable
write this while I was at the bus backing from work to home
was reading a paper about transformers and word2vec formats of input to the networks, and when entered the bus, got nothing so get the smartphone and started to code something like I read at the paper on Qpython
I think this version of the recon function is more symmetric to how convert works
def recon(m):
t = ''
for i in m:
for j in i:
if j != 0:
t += chr(j)
t += ' '
return t.strip()
always one space per row
nice π
because convert logic is: if there's no character, write zero
so recon logic becomes: if there's a zero, there's no character
which, inlined, looks like
def recon(m):
return ' '.join(''.join(chr(j) for j in i if j != 0) for i in m)
a very good improvement
for a more pythonic implementation
an elegant code for a more civilized age
for (int j = 0; j < i + 1; j++){
printf("%d ", 0);
}
printf("\n");
}
}
return 0;
}
I did some adjustments to my solution by adding more types/impls, now "the hard part" (arithmetic) is simpler
seems to pass the tests
2.5 times longer than the Python solution but way cleaner
hello @lunar haven , @mortal sundial , @spiral sierra
how are you guys something
stop that
what are you guys upto
i don't know why I wrote that
my mind is malfunctioning
any one has experinece in java
hello @wind raptor
!stream 299967840289685504
β @mortal sundial can now stream until <t:1685801104:f>.
!stream 380751137785118730
β @spiral sierra can now stream until <t:1685801110:f>.
what is advent of code @wind raptor
hey @spiral sierra did you said that you had experince in java or was it @mortal sundial
so can you help me
sure
@wind raptor can i get permission to share my screen
@mortal sundial https://www.codecademy.com/resources/docs/python
Python is a general-purpose, versatile, and powerful programming language. Itβs a great first language because itβs concise and easy to read. Whatever you want to do, Python can do it. From data analysis to data visualization, web development to machine learning, Python is the language for you. It was created by Guido van Rossum in 1991 and was ...
spending same time over a week rather than a day may actually improve results
because sleep
can I get permission to share my screen chris
what do you want to show?
What did you want to show?
my itellij screen
this, I guess
!stream 959798020919144548
β @warped raft can now stream until <t:1685801723:f>.
I was solving this in a totally sleep deprived state
it was somewhat miserable at times for that reason
https://leetcode.com/problems/median-of-two-sorted-arrays/
!stream 380751137785118730
β @spiral sierra can now stream until <t:1685801750:f>.
what's wrong with this
does it show any specific errors?
can you show the method again?
in the Main class
@lunar haven no
I'm asking shashank
@warped raft rename the class
to avoid name collisions
which one
you have two Mains
the inner one
@warped raft or replace * with Main
ugh
weird
Main is a package
yeah, probably better to first rename the Main you're trying to reference
for this reason
shift+f6 for quick renaming
(I think)
package and the class
@vocal basin i can rename the class
check what the error is now
because it is the public
import Recipe.Main
@somber smelt no
they're using a non-static method
see the usage
you're making it worse
@warped raft
remove static
@somber smelt it's not a main class
@somber smelt can you just pay attention to the code for a second?
like
it's not Main
that's the whole problem
@warped raft
did that
public class GuiVersion {
private Main main;
public GuiVersion(Main main) {
this.main = main;
}
}
there are two Mains in this code base
two separate ones
where should i write suggest reicpe
how
Recipe.Main isn't Main in normal sense
or it is
idk
why is so weird
why is IntelliJ so broken
(the project structure)
there may be one
but it's weirdly placed
i want to built the gui version as the extention of the main logic
that's why i am importing ti
so am i going to die because of this
Main currently is containing the main method, right?
yup
where is GuiVersion getting instantiated?
if you don't re-instantiate the Main, then this
i am a 9th standard student
Lol CS slander
getting this project inside my head
@vocal basin who's your dad?
probably better to split Main and the instance
i have made the gui version
i know j frame
i have a pretty decent knowledge about it
are you interested in having your user id sent to @rapid crown?
Why?
π³ π₯΅
If you're here to troll, you will be removed quite quickly.
i was told to change the code because my logic was to coupled around the gui stuff
package me.yibtag.batmc;
import java.sql.*;
public class Database {
private BatMc plugin;
public Connection connection;
/**
* A sql database utility tool.
* @param plugin (BatMc)
* @throws SQLException
*/
public Database(BatMc plugin) throws SQLException {
this.plugin = plugin;
connection = DriverManager.getConnection(
plugin.config.getDatabaseUrl()
);
execute(
"CREATE TABLE IF NOT EXISTS items(uuid TEXT, page INTEGER, slot INTEGER, item BLOB)"
);
}
/**
* Executes a query sql statements.
* @param sql (String)
* @param args (String...)
* @return result (ResultSet)
* @throws SQLException
*/
public ResultSet query(String sql, String... args) throws SQLException {
PreparedStatement statement = connection.prepareStatement(sql);
for (int i = 0; i < args.length; i++) {
statement.setString(i + 1, args[i]);
}
return statement.executeQuery();
}
/**
* Executes sql code.
* @param sql (String)
* @param args (String...)
* @return status (boolean)
* @throws SQLException
*/
public boolean execute(String sql, String... args) throws SQLException {
PreparedStatement statement = connection.prepareStatement(sql);
for (int i = 0; i < args.length; i++) {
statement.setString(i + 1, args[i]);
}
return statement.execute();
}
/**
* Executes sql update code.
* @param sql (String)
* @param args (String...)
* @return result (int)
* @throws SQLException
*/
public int update(String sql, String... args) throws SQLException {
PreparedStatement statement = connection.prepareStatement(sql);
for (int i = 0; i < args.length; i++) {
statement.setString(i + 1, args[i]);
}
return statement.executeUpdate();
}
}
@somber smelt i am not a cs student
doesn't for (int i = 0; i < args.length; i++) have a simpler representation in Java?
throws is just a worse Result
@warped raft can you put all the state into a separate class that's not Main?
Looks like there is a foreach:
for (type variableName : arrayName) {
// code block to be executed
}
so GuiVersion could more properly depend on it
yall hear me?
eh, still needs i + 1
no
i need to to get it right
@somber smelt exactly this
bye
nawww π
there's ListUtils from Apache
but it'd be an extra dependency
if it's an actual extension, then better to pass the instance of (new class) to it anyway instead of instantiating inside
@wind raptor how often do you deal with people like me?
I don't have enough information to know what "like me" entails yet
trolls π
We get a lot of trolls here. They get banned quickly so you may not see much.
has this server ever got raided?
πΏ so it would be pretty embarrassing if it did, huh?
is this foreshadowing?
Embarrassing for who? We'd just deal with it and move on. I don't see why you think there would be some kind of attached emotion to something happening.
who deals with this kind of stuff O_o
Usually our bots
@toxic zephyr
fr?
bro is surprised the programming discord uses programmed stuff
thats crazy init π§
boggles the mind im sure
What do you usually eat?
16L of coffee a day and 2 donuts
are there any books on procrastination bro?
cant hurt me - david goggins
I don't need a book. Just live by the code: "Hard work pays off in the long run but procrastination pays off now."
smh its always code with you isnt it
I can't help myself π€£
lmao
Have a good one dad!
@warped raft
a simplified version of what I mentioned:
https://gist.github.com/afeistel/820bbebc138d3faa522c49773a333585
so, in this example, data you currently have in Main would be moved to Recipes
and ExtendedRecipes being GuiVersion in your case
Howdy.
I'm a night owl, what are you talking about?
I'm often on around through this time.
Yes, they are.
I have not used Selenium.
hey
are you trying to
fulfill the
50 message
requirement
like
me
i dont know
@autumn geode No, I'm not trying to fulfill the message requirement
yes
-no-
!code
while True:
if snapshot != live_messages_file:
snapshot = live_messages_file
update_display()
You had me until the end.
At all times, you need to be insulating yourself against liability.
Sticking your hands up and going, hurrdurr I had a TOS does. not. mean. shit.
Do stuff, yes. Learn, experiment, develop.
Don't go out of your way to do something which, by your own admission, is improper.
Respect yourself more.
Care about the things that can go wrong and how they can affect you.
By not caring about that, you are disrespecting yourself
dude are we celebrating those kinds of people like the rainbow guys???
alisa are u alking to me??
I don't understand why "???"
is it surprise? is it what?
i mean those guys doesnt like go with my attitude @vocal basin
the pride month thing is about treating humans as humans
question is irrelevant to the conversation
d
You're right. Fab doesn't go with drab. π
Python Discord celebrates diversity and inclusion, and thoroughly rejects bigotry.
@midnight agate
how about this? (inorder traversal again)
from functools import partial
class Solution:
def inorderTraversal(self, root: Optional[TreeNode]) -> List[int]:
values = []
def tree_callback(tree):
if tree:
callbacks.append(partial(tree_callback, tree.right))
callbacks.append(partial(values.append, tree.val))
callbacks.append(partial(tree_callback, tree.left))
callbacks = [partial(tree_callback, root)]
while callbacks:
callback = callbacks.pop()
callback()
return values
hello
hello @turbid sandal
@mortal sundial that is just moduls
wow
what
@turbid sandal there is no mod
here at least
!e
class TreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
from functools import partial
class Solution:
def inorderTraversal(self, root: TreeNode | None) -> list[int]:
values = []
def tree_callback(tree):
if tree:
callbacks.append(partial(tree_callback, tree.right))
callbacks.append(partial(values.append, tree.val))
callbacks.append(partial(tree_callback, tree.left))
callbacks = [partial(tree_callback, root)]
while callbacks:
callback = callbacks.pop()
callback()
return values
root = None
for _ in range(100000):
root = TreeNode(0, None, root)
print(len(Solution().inorderTraversal(root)))
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
100000
I doubt there's any depth to that stack
(call stack)
all the tree_callback calls are at the same stack level
@midnight agate yes
callback never calls other callbacks
I did a little bit of leetcode on my own (around 30 I think, in last 24 hours)
this has a very hacky solution in python
https://leetcode.com/problems/add-digits/
@lucid jolt noise
I think "4. Median of Two Sorted Arrays" is mostly about restructuring data
importantly, without actually changing how it's stored
(given that it requires logarithmic time complexity)
tasks says to do it in O(log (m+n))
I think it can be done in O(log min(m,n))
(and by "it can be done" I mean my solution seems to be such)
30
those were mostly easy
ah
okay, I'll send
couldn't hear what was to be sent
I did refactor code after getting it working
so it's not only for completion sake
there was a very unlucky first attempt at solving daily problem
but at least I made sure I know how to use ||graphlib|| library
but then I started optimising
@lucid jolt the easier one which was discussed earlier
this took me 4 hours to solve properly
(because I didn't recognise all the possible simplifications early enough)
@lucid jolt merging arrays is forbidden
read the requirements
hi
this is the hard part
you're doing O(m+n)
which will fail on large values
@midnight agate I wouldn't merge arrays for this task
||floatβstatistics.medianβheapq.merge|| is trivial and that's totally not what the task asks to do
it does pass the tests
merging arrays depends on where you merge into
merging into an external container is simpler
merging sorted is more than just memcpy
it's per-element
always
depends on usecase
that's not what merge function is supposed to do
if you go down this path you end up with realloc
what does it do? no one knows
unless there's a reason to optimise for non-overlapping case, I wouldn't put it
I expect the arrays to be overlapping
if you want to preserve ordering of non-overlapping sequences, enforce it externally
or use a different data structure
!d csv
Source code: Lib/csv.py
The so-called CSV (Comma Separated Values) format is the most common import and export format for spreadsheets and databases. CSV format was used for many years prior to attempts to describe the format in a standardized way in RFC 4180. The lack of a well-defined standard means that subtle differences often exist in the data produced and consumed by different applications. These differences can make it annoying to process CSV files from multiple sources. Still, while the delimiters and quoting characters vary, the overall format is similar enough that it is possible to write a single module which can efficiently manipulate such data, hiding the details of reading and writing the data from the programmer.
transpose the matrix, I'd say
at first
how many answers does one question have?
question number; question text ; option A; option B ; option C;
1 ; What is the capital of Sweden?; Oslo ; Stockholm; Helsinki;
@vocal basin
class Solution(object):
def findMedianSortedArrays(self, nums1, nums2):
if len(nums2) < len(nums1):
return self.findMedianSortedArrays(nums2, nums1)
n1 = len(nums1)
n2 = len(nums2)
low = 0
high = n1
while low <= high:
cut1 = (low + high) >> 1
cut2 = (n1 + n2 + 1) // 2 - cut1
left1 = float('-inf') if cut1 == 0 else nums1[cut1 - 1]
left2 = float('-inf') if cut2 == 0 else nums2[cut2 - 1]
right1 = float('inf') if cut1 == n1 else nums1[cut1]
right2 = float('inf') if cut2 == n2 else nums2[cut2]
if left1 <= right2 and left2 <= right1:
if (n1 + n2) % 2 == 0:
return (max(left1, left2) + min(right1, right2)) / 2.0
else:
return max(left1, left2)
elif left1 > right2:
high = cut1 - 1
else:
low = cut1 + 1
return 0.0
with open("risposte_p.txt", "w") as fp: fp.write("\n".join(str(item) for item in risposte))
does it pass tests?
binary search
did you write it yourself?
ye
so, yes, that's kind of the idea
class Solution(object):
def findMedianSortedArrays(self, nums1, nums2):
"""
:type nums1: List[int]
:type nums2: List[int]
:rtype: float
"""
# Ensure nums1 is the smaller array
if len(nums1) > len(nums2):
nums1, nums2 = nums2, nums1
# Get the lengths of the arrays
m, n = len(nums1), len(nums2)
# Define the search space for binary search
left, right = 0, m
# Perform binary search
while left <= right:
# Partition the arrays
i = (left + right) // 2
j = (m + n + 1) // 2 - i
# Check if the partition is valid
if i < m and nums2[j-1] > nums1[i]:
left = i + 1
elif i > 0 and nums1[i-1] > nums2[j]:
right = i - 1
else:
# Partition is valid, find median
if i == 0:
max_left = nums2[j-1]
elif j == 0:
max_left = nums1[i-1]
else:
max_left = max(nums1[i-1], nums2[j-1])
if (m + n) % 2 == 1:
return max_left
if i == m:
min_right = nums2[j]
elif j == n:
min_right = nums1[i]
else:
min_right = min(nums1[i], nums2[j])
return (max_left + min_right) / 2.0
!code
and, btw, yes, very suspicious
why comments?
why docstring?
this is apparrently the fastes from leetcode
!e
from io import StringIO
import csv
file = StringIO()
fieldnames = ['question number', 'question text', 'option A', 'option B', 'option C']
writer = csv.DictWriter(file, fieldnames=fieldnames)
writer.writeheader()
writer.writerow({
'question number': '1',
'question text': 'What is the capital of Sweden?',
'option A': 'Oslo',
'option B': 'Stockholm',
'option C': 'Helsinki',
})
print(file.getvalue())
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | question number,question text,option A,option B,option C
002 | 1,What is the capital of Sweden?,Oslo,Stockholm,Helsinki
@hollow yacht something like this?
what is return 0.0 for?
@lucid jolt GPU mining got outcompeted
Bitcoin isn't mined on GPUs anymore
Ethereum isn't mined on GPUs anymore either
Monero can't be mined on GPUs
@midnight agate technologically, the field has some potential but that potential is obviously overhyped
there are nuances
you're mixing types
float and ints
... which is harder in something like Rust
in comparison
also, specification says to return float always
return 0.0 is just wrong
it shouldn't be there
under any conditions
@midnight agate when stealing customers' money is only a click away, it's always easy to pay empolyees well
it must be an error
not 0.0
it breaks so many principles
you are a principle
statistics.median deals with it correctly
!e
from statistics import median
print(median([]))
@vocal basin :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 2, in <module>
003 | print(median([]))
004 | ^^^^^^^^^^
005 | File "/usr/local/lib/python3.11/statistics.py", line 565, in median
006 | raise StatisticsError("no median for empty data")
007 | statistics.StatisticsError: no median for empty data
it depends on which way it's doomed to failed
depends on when the project chooses to sacrifice the programming quality for saving the project
(I'm solving this now)
https://leetcode.com/problems/merge-sorted-array/
you are supposed to solve this first before the hard one xd
not at all
and before that u supposed to solve binary search
binary search is everywhere anyway
you are anywhere :3
floatβstatistics.medianβheapq.merge solution is too slow
do in using data structures
and heapq.merge is the fastest way to merge
app.diagrams.net is cheaper and more ecological
paint
and statistics.median is the fastest (and most correct~~)~~ way to find the median
floatβ is there to meet the spec properly
i used to do reverse engineering . i got used to modify numbers
and im obessed by this video
In this video we will take an in depth look at the fast inverse square root and see where the mysterious number 0x5f3759df comes from. This algorithm became famous after id Software open sourced the engine for Quake III. On the way we will also learn about floating point numbers and newton's method.
0:00 Introduction
1:23 Why Care?
3:21 The Cod...
computers are always calculators. the most fast operation that can do is addition, and subtractions
xor is reasonably faster than addition
with a proper compiler, changing multiplication/division to equivalent bit shifts shouldn't change anything
!d bisect
Source code: Lib/bisect.py
This module provides support for maintaining a list in sorted order without having to sort the list after each insertion. For long lists of items with expensive comparison operations, this can be an improvement over the more common approach. The module is called bisect because it uses a basic bisection algorithm to do its work. The source code may be most useful as a working example of the algorithm (the boundary conditions are already right!).
The following functions are provided:
I forgot how to solve this in O(1)
https://leetcode.com/problems/majority-element/
guys
too lazy to set up translation
I know there are tools
(but I don't use them)
I played tennis for ~year I think
this has streaming in its "Follow up" too
https://leetcode.com/problems/is-subsequence/
Trie
In computer science, a trie, also called digital tree or prefix tree, is a type of k-ary search tree, a tree data structure used for locating specific keys from within a set. These keys are most often strings, with links between nodes defined not by the entire key, but by individual characters. In order to access a key (to recover its value, cha...
Ah man I remember this video, have watched it like 3 times
Wut is python
@midnight agate
even though this one is labelled "Hard", the solution is quite straightforward
(it's more of a data-structure-hard rather than a thinking-hard)
https://leetcode.com/problems/merge-k-sorted-lists/
Bruh
PIKOTARO - PPAP (Pen Pineapple Apple Pen) (Long Version) Available Now! http://smarturl.it/PPAPLong
Subscribe to Ultra Music - https://www.youtube.com/subscription_center?add_user=ultrarecords
Follow Us:
https://www.ultramusic.com
https://www.twitter.com/ultrarecords
https://www.facebook.com/ultramusic
https://www.youtube.com/ultratv
https://...
Slight mistake in the video, this version is not sung by the Smokey Mountain band, but performed by the San Miguel Master Chorale of 2004. Of course, written non other by the legendary Mr. Ryan Cayabyab!
Enjoy the video and thanks for watching!
Image courtesy of Google search
THE EARWORM MUG!
Get yours here - https://teespring.com/the-earw...
!code
!paste
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.
lol
s
β―
Can anyone help me upgrade my openGL to 2.0
Nobody likes me
Welcome to Discord's home for real-time and historical data on system performance.
.
from discord_slash import SlashCommand, SlashContext, cog_ext
how do i get the right to speak in vc?
ModuleNotFoundError: No module named 'discord_slash'
not like i want to say rn just asking
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
pip3.10 install discord-py-slash-command
okey bye guys its my self imposed curfew. Good luck Nikita
outdated
Hi Abdul, is this a developer role? Or different type of role?
Yep its a dev
Probably search the companies interviewing process with google.
!paste
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.
You're acting as if I said yes to your question.
I said no.
I won't run your code.
Especially after what you told me yesterday.
There may be websites that have listed the companies interviewing process for their developer role.
The site may list if they give LeetCodes, what difficulty. And list if they do or do not give a systems design question.
If you cannot find any information about their process, probably assume that they will give LeetCode problemts, so practice LeetCode problems.
You could be vpning it.
g-g-granola smoothie
Guys, What will be good projects to do with python and valuable current year/future years
@somber smelt
what you guys are working on ?
Anyway i just come here to share my experience in creating an IOS application in Python !!
That's awesome!
ahh not so awesome ... I cried everyday in making it work
You used Kivy I assume?
ye
but some of the features like ...accesing mobile hardware like bluetooth , and some functionality like TTS , STT was kinda impossible with sole kivy
cause no library exist for ios
so for that i use swift
and implement it with kivy
thanks to the awesome guy who created the library PythonSwiftLink
I've worked with other GUI libraries but never got into Kivy. What does your app do?
the application is for a museum actually , it was for helping disable people (blind , deaf) to locate the museum location easily and other stuff
Nice!!
like STT , and TTS was implemented for communication with user
and the museum have ibeacons installed at different location so my app can communicate with those device and can tell where they are right now
That's really impressive that you set all that up!
this guy help me a lot .... trust me i am a dumb guy
@turbid sandal You trying to send/recieve some message from a server ?
I wrote too little of Haskell to be a Haskell programmer
like
one file
websites are often just easier to use, compared to standalone apps
though for iOS, the permissions difference is quite severe
sites can't send notifications on iOS, iirc
(they can on Android)
@turbid sandal can i try your code snippet ?
it seems fun
sorry
ohh ok
no issues
@turbid sandal Human rights are important for everyone. Where human rights can be trodden on, everyone is at risk, not just the targeted group.
shouldn't store "private information" in code
