#voice-chat-text-0
1 messages · Page 226 of 1
George Edward Negus AM (born 13 March 1942) is an Australian journalist, author, television and radio presenter specialising in international affairs. He was a pioneer of Australian TV journalism, first appearing on the ABC’s groundbreaking This Day Tonight and later on Sixty Minutes. Negus was known for making complex international and politica...
Will defiantly connect with you once I have speaking permissions @somber heath
good evening for me.
i haven't seen a bunch of Reynolds movies or whatever, besides deadpool and such, and i can def say that' basically just him either way
@wild remnant 👋
madjer
@plush mist 👋
Opa
!
haskell "avoid success at all costs" programming language
@rugged root can't forget about them snakes 🐍
@woeful salmonuse odin lang or v lang if you want to learn a new lang.. might be a better exp than haskell
LP found v on github like 1.5 years ago or something and we tried it together at that time
@woeful salmon Prolog came out in 1972
i am looking at it rn
It's a thing
Yep
It's really nice
i'mma go eat food
Word homey
hemlock can u help me?
im stuck
Hello this is ghost of the pokemon past
Just came in to say hi
@rugged root
Back in a sec
Score = 10
!stream 789885479226179594
✅ @torpid bolt can now stream until <t:1701791009:f>.
!e
ham = [1, 5, 123, 347, 38]
print(ham[-2])
print(ham[-2:])
@rugged root :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 347
002 | [347, 38]
!e
ham = [1, 5, 123, 347, 38]
print(ham[:3])
print(ham[1:3])
print(ham[:])
@rugged root :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | [1, 5, 123]
002 | [5, 123]
003 | [1, 5, 123, 347, 38]
last_seven_ratings = ratings[-7...
!e
ham = [1, 5, 123, 347, 38]
print(ham[-7:])
@rugged root :white_check_mark: Your 3.12 eval job has completed with return code 0.
[1, 5, 123, 347, 38]
no index out of bounds?
!e
ham = [1, 5, 123, 347, 38]
print(ham[-7])
@rugged root :x: Your 3.12 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(ham[-7])
004 | ~~~^^^^
005 | IndexError: list index out of range
this is why i love python.. js would create two new elements with undefined as value
def avg_last_seven(ratings):
r_size = len(ratings)
last_seven = [ratings[r_size - i] for i in range(1, 8)]
return sum(last_seven) / 7
can anyone help me in #1181613884843511939 ?
hello all
Wait it would in that case?
!e
ham = 5.7812331
print(f"{ham:.1f}")
@rugged root :white_check_mark: Your 3.12 eval job has completed with return code 0.
5.8
going out of bounds creates new elements in js.. value undefined
they don't
TypeScript might
Or no it wouldn't either
Because it wouldn't be certain about the length at runtime
anyone?( I dare you, you cannot solve this though)
I use this website for project ideas: https://www.interviewbit.com/blog/python-projects/
a good practice I've been doing is using the hobbies i have outside of coding and seeing if i can combine the two together some how @rugged root@torpid bolt
!kindling
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.
can anyone here help me with discord bot ?
Another idea is thinking of what you see yourself doing later for a career, you can base the project on solutions for common issues within the field. For example I want to find a job as a software developer at a hospital, I am working on a project for a hospital database and infrastructure management project where you can keep track of employees and equipment
Make a Student Class
Make a Class that meets the following conditions:
- A
Studentshould havename,age, andfavorite_subjectattributes. - The
Studentshould have anintroduce()method so that they can introduce themselves
a.introduce()should have them tell the user theirname,age, andfavorite_subject
Just a little prompt. I'll expand it as more gets done
@rugged root 
How goes it
this is for ? lol ?
Stuck on the phone with support
For folks who are wanting to work on how comfortable they ware making classes
okayy cool
Good ol' IT hell
like coding interview session on phone ?
Opal does from time to time
damn
maybe he wants you guys to use ChatGPT ? @torpid bolt
I hope not
name = input("Whats your Name?: ")
age = int(input("Whats your age?: "))
fav_subject = input("Whats your Subject")
class student{
name = ()
age = ()
subject = []
}
ChatGPT = 🚪
comeon guys, i was joking
what lang is this?
just curious, how do you use GPT for coding ? e.g. tell GPT to code initial simple stuff , then add more complicated code to it . etc
oh damn, that feelin iz really bad, it sucks fr, RIP self confidence and shit :(
it's not python
ok , more like syntax question
it's a weird mixture of python and js
anything, but it is not always correct:
yea , that is probably something that rarely go wrong
yea , sometimes GPT replied with non-existent syntax lol
why are there flames coming out of his ass?
yeah yeah
that's exactly what i was thinkin rn
Don't have kids if you can't let them be their own people
"could be worse" 💀
Too much spice
bruh, he's jokin
if that means a psycho, im sure i wont 😄
or taco bell
lmaooooooooooo
too much spice methane
The spice must flow. Unfortunately it'll flow through the back
`class Dog:
def __init__(self, name):
self.name = name
self.tricks = [] # creates a new empty list for each dog
def add_trick(self, trick):
self.tricks.append(trick)`
🐶 ❓
class student:
def __init__(self, name, age, subject):
self. name = name
self. age = age
self. subject = subject
p1 = Person("Jack", 20, Math)
print(p1.name)
print(p1.age)
print(p1.subject)
plz no single letter variable names
class student:
def __init__(self, name, age, subject):
self.name = name
self.age = age
self.subject = subject
p1 = Person("Jack", 20, Math)
print(p1.name)
print(p1.age)
print(p1.subject)
!e
class Meat:
def __init__(self, name):
self.name = name
ham = Meat("ham")
print(ham. name)
@rugged root :white_check_mark: Your 3.12 eval job has completed with return code 0.
ham
it doesn't
!e
class student:
def __init__(self, name, age, subject):
self.name = name
self.age = age
self.subject = subject
p1 = Person("Jack", 20, Math)
print(p1.name)
print(p1.age)
print(p1.subject)```
@willow ruin :x: Your 3.12 eval job has completed with return code 1.
001 | File "/home/main.py", line 9
002 | print(p1.name)
003 | IndentationError: unexpected indent
😍 the dwm code base (I just picked a random example)
"Math"
"math"
@rugged root I have a complaint
What'd I do

Oh no
I get screenshare
It already is in staff channels
Hello?
What's up?
that colorscheme
Why can't I talk?
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Can anyone here me
He's verified

It's a mic thing
@rugged root can you give me screen perms ? I want to share n ask somethin
o
__str__()
source issue?
@rugged root
str()
def __str__()
🎶 I come from a land down dunder 🎶
Can you check under there?
None
🩲
Under there
See u guys soon thanks for the help and i will keep practicing
@amber raptor dis u?
.gh user shenanigansd
The name's Messages, BAD Messages 
veryy bad
@rugged root send them my way
automate what ?
the chat turned into a 2000s msn conversation starter... asl? XD
hello my people
🦅
!starify time!
!starify 135533482611965952
:incoming_envelope: :ok_hand: applied superstar to @red umbra until <t:1701800415:f> (1 hour).
Your previous nickname, NegusBeFlyin, was so bad that we have decided to change it. Your new nickname will be Justin Bieber.
You will be unable to change your nickname until <t:1701800415:f>. If you're confused by this, please read our official nickname policy.
HAH
Tempest in a teapot (American English), or also phrased as storm in a teacup (British English), or tempest in a teacup, is an idiom meaning a small event that has been exaggerated out of proportion. There are also lesser known or earlier variants, such as storm in a cream bowl, tempest in a glass of water, storm in a wash-hand basin, and storm i...
accurate description of the vc situation just now
I like this song
Natural language to code generation is an important application area of LLMs and has received wide attention from the community. The majority of relevant studies have exclusively concentrated on increasing the quantity and functional correctness of training sets while disregarding other stylistic elements of programs. More recently, data quality...
Hi @rugged root ,
I am new to python. Do you have any idea on how can we get/extract/stream messages of discord on public servers?
"build systems you can't understand. reliably."
more like build a component that you couldn't write a program for
eg you couldnt write a translation program
instead you learn a translation program via model
and as long as the format in and out are consistent you can use it like any other software component with some reliability/tolerance
your own messages?
or messages of others?
for second option: don't.
for first option: ask Discord, I guess?
yeah, and that also implies being staff of the guild
How so.. if it's a public server and the conversation is public. Don't you think the user already the chat is public?
Eg. I would like to see what are the most common used words in a server.. how do I do that? (in python)
really, how so?
It’s all TOS
You would have to own the server and make a bot
While setting the planet on fire
And I would't be able to do that without making a bot right?
Got it!
Thanks all guys 🙂
so the issue isn't the technology it's the usage not being regulated or the regulations themselves being biased towards profits of a few and not the general wellbeing
Ah I want to join the conversation xD (have to wait)
@rugged root not competing with original, not reducing the income the original brings, afaik
They're citizens
They should get passports too
I probably shouldn't say which field of AI I work in, or I will get murderer 💀
It might
as in what is usually expected for it to be fair use
(in case of making derivative works, not in AI case specifically)
@amber raptor They supposedly have an opt out option where you can ask them not to sell your info but they intentionally make it too complicated to be usable
Looking at the imgur ToS section on Intellectual Property:
... By uploading a file or other content or by making a comment, you represent and warrant to us that (1) doing so does not violate or infringe anyone else's rights; and (2) you created the file or other content you are uploading, or otherwise have sufficient intellectual property rights to upload the material consistent with these terms. With regard to any file or content you upload to the public portions of our site, you grant Imgur a non-exclusive, royalty-free, perpetual, irrevocable worldwide license (with sublicense and assignment rights) to use, to display online and in any present or future media, to create derivative works of, to allow downloads of, and/or distribute any such file or content ...
Oh interesting
Regarding things that you can't use User Generated Content for:
You may use UGC for personal, non-commercial purposes.
You may use UGC for anything that qualifies as fair use under copyright law, for example journalism (news, comment, criticism, etc.), but please include an attribute ("Imgur" or "courtesy of Imgur") next to where it is displayed.
You may not use UGC for non-journalistic commercial purposes.
Your use of UGC is at your own risk. IMGUR MAKES NO WARRANTIES OF NON-INFRINGEMENT, and you will indemnify and hold Imgur harmless from any copyright infringement claims arising out of your use of the UGC. (See our general disclaimers below.)
Just sayin
The books might get stained with coffee
the publisher shut it down? Now google came for revenge?
I think a fractional payment for AI Models trained on data should be a thing in the future
ads as the main revenue source is so dystopian
TikTok videos as payment
Huh
I thought patents lasted longer
Oh no no
Never mind, looked up the wrong thing
No wait
I was right
Jesus Hemlock
20-30 years right?
I only remember ever seeing 20
there are local competitors
(for Google search and Google Maps)
70 years after creators death is better
In my opinion these should still be in copywrite
not the original creators, just as much of copyright anyway
TIL
I don't understand why would this matter
Just dump your money into a hole and hope it goes to the benefactors of their estate
I mean like if no one or no entity is around to actually make a claim on the copyright...
@rugged root
https://onlinelibrary.wiley.com/doi/epdf/10.1111/jfr3.12022
"let's do a study on whether our country can continue to exist without going bankrupt on flood defences"
gmail inbox? Wasn't this developed internally
ye: Gmail was a project started by Google developer Paul Buchheit
it was an internal project
Huh, neat
@pseudo hawk Can you please mute when you're not speaking so your phone notification isn't coming through your mic?
Man I wish I can speak xD
oh im very sorry okay ill watch
Ah yeah, you're still under on messages
Ye but I dont want to spam obviously
@flint hill I haven't had a chance to review the document yet. Been slammed
Well I just finished the final
Ah sorry
Ya
I just haven't had a single break
It was all or nothing
Ur hanks for the help on the review I will probably get A 65. To 75
From all the tech interviews etc. I have seen, YC has the best reputation. It even recently changed their terms IN FAVOR of the entrepreneurs
How so?
The multiple choice
Now YC will offer startups $500,000 in two tranches instead of $125,000 for 7% equity. The second tranche of $375,000 is on an uncapped safe with Most Favoured Nation terms — guaranteeing YC the most favourable terms of the follow-on round.
International accelerators are increasingly turning their attention to Africa. Chief among them is Y Combinator (YC), the world’s first…
That was the part that was messing the most with you?
Interesting.
So ya I wish I could of reviews the mid term but I get you are busy
As someone who worked with AI 5 years ago (actually machine learning) and now has quit his job to start a AI startup (because I think it is awesome) , I am sitting here like
You are picking the TWO top investment firms 😄
If this discord is not about toxicity...such comments should not be allowed...
What'd I miss?
Who do I need to slap
"When you cut companies, people bleed." - Anohki
"Maybe companies should stop stabbing people." - Sinthrill
still cringing out from "smart people" phrase
go go elitism
I missed the "smart people" comment
almost regardless of context, "smart people" is a dumb phrase
Fair
I think you are right about all the points @mild quartz 😉
I just ask questions
"those acquisition problems don't apply where I am because the only acquisition model we have is still racketeering"
And go cross-eyed from staring at my monitor for hours, checking one client at a time, looking to see if they have a particular document
For like... 3k clients
That's where I'm at right now
If it was that easy they totally would. Nobody loves "burning" their money. They are doing it because it is not straight forward
Fair
But it is up to the founder to sell it? I mean if we change the rules there will be less founders.
Who else would make the call?
and??? What is the downside to that
man I wish I could speak XD
Yes you are too expensive and stable by yourself! It means you already have a decent company. So they are founding the ones which either succeed or die
Okay, going to temp allow (it'll remute you if you leave the channel or disconnect, and this doesn't grant you the full voice role)
Thanks 🙂
I hear "The Gambler" and instantly all I can think of is Kenny Rogers
@wind raptor Yo
hey
Whatever happened to Blue Origin?
i think they still exist
arent Musks companies in Germany unionized , the only ones that are
@rugged root when you shut a reactor down or use a reactor , where do you store all that radioactive waste , eventually you run out of space - and other countrys dont want others waste
it does
long term storage is still a issue - leaks , zones ...
natural gas is cheap ( dinosaur farts ) if sourced right
anyone who is capable of getting themselves made President should on no account be allowed to do the job.
Groucho Marx - i dont want to be a member of a club that would have me as a member
@amber raptor https://www.reddit.com/r/wallstreetbets/comments/18bekhf/this_remains_one_of_the_best_videos_of_all_time/
another context that I remember it used in: https://youtu.be/VzdVSMRu16g
(almost an hour of Bryan Cantrill being angry at a tweet by Sam Altman)
did you just drop a pearl into the room @vocal basin
the smell is my favorite part of smoking
M'bro reds mmm
they've started to bill over $15 per month recently
@dusk raven Yo
what are they discussing?
I honestly phased out. I've got about... ~450 clients left to look through to see if they have a document or not
I'm going cross-eyed
whether Google is evil and therefore it's fine to use adblock on youtube
They smell way too chemically
aren't this topics unrelated!?
What are we talking about?
it's not impossible to relate them
but it involves a lot of steps
they don't make them like they used to 😭
@rugged root have you tried GPT with some of your ideas --> CHIP 8
Not really. I've been swamped lately
welll ocassional walks to un-google your eyes is good
Back later
can you set up GPT to 2 robo arms , give em swords , push GO - 'there can only be one' @gilded rivet
Lol...
old mcDonald had a farm , AI AI ohhh
A katana fight between two ABB robots during an exhibition.
Your needs...Our actions!
CPM Special Bearings
oooff fook !
science by consensus ?
men I want to speak too, but i'm not verified 😂
I felt your pain! xD
@plush mist You qualify. You just have to do !voiceverify in #voice-verification
thanks :)
hmmmm cool ....
@true barn 👋
Hi! I cant answer
!voice 👇
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@cursive gust 👋
I made my first code import random
def spin():
options = ["Yes", "yesno", "No"]
result = random.choice(options)
print(result)
spin()
It's a spiner
Im trying to learn python
Okie dokie
Nah I'm new
!e ```py
def func(parameter):
print(parameter)
func('argument')```
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
argument
!e ```py
def func(parameter):
print(parameter)
func(parameter = 'argument')```
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
argument
I like learning new things
!e ```py
def func():
return 'abc'
r = func()
print(r)```
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
abc
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
None
?
!e ```py
def func():
print('abc')
return 123
print(func())```
@somber heath :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | abc
002 | 123
since recently, I've learned to never open random google drive links outside Tor
mp4 should work here, unless size is the issue
(it's whitelisted)
it might be failing to upload/process because of a corrupted file
I'll brb
(running it through ffmpeg once tends to fix such problems)
Ernst Florens Friedrich Chladni (UK: , US: , German: [ɛʁnst ˈfloːʁɛns ˈfʁiːdʁɪç ˈkladniː]; 30 November 1756 – 3 April 1827) was a German physicist and musician. His most important work, for which he is sometimes labeled as the father of acoustics, included research on vibrating plates and the calculation of the speed of sound for different gases...
@somber heath the mrs has tics as well, it can get crazy sometimes
the bad ones have gone down some though
what's the cause of it, do you know. like what's happening if u dont mind me asking.
@heady karma 👋
hi
i can only imagine the painful ones though
I imagine the wall won those fights
the mrs has ones, where she just wants to punch me, but then again isn't that just a marriage thing anyways.
flow fields simulation result
(O_o)
when they happen, do u feel like i guess a warning or such thing @somber heath
if these are personal questions just let me know and ill stop asking im just curious since i don't have them
alr I gtg cya
"or make borders wrap, so there's no corners to get stuck at"
with projective-space-like topology so it's not as obvious at first glance
@urban abyss
yeah, probably separate, seems like reasonable way to sort
maybe without emojis
(just two sections)
ready:
- player
- player
- player
- player
not ready: - player
- player
with first ordered by ready time
you can have coloured text in ansi blocks
but it doesn't render on mobile, afaik
[0;34mred
[0;32myellow
[0;31mgreen
[0;33mblue
[0;32mred
[0;31mblue
[0;34myellow
[0;31mgreen
[0;33mblue
discord (relatively) recently added extra Markdown support
Thanks 
horizontal lines aren't supported, apparently
and neither are tables (since they're not basic markdown)
I would program in Haskell
if Rust 1.65 didn't happen
I needed generics over monads
I got generics over monads
Haskell's IO thing is ugly
and, like, exceptions
I'm yet to find how to adequately select on two IOs to get the result of whichever finishes first
"just have faith in tail call optimisation"
Erlang
"how to get the majority of telecommunications worldwide dependent on tail call optimisation"
use Rust, time out on compilation
many programming competitions exclude compile time, so you can do some dumb stuff with C++'s templates
i.e. pre-compute all the answers
and constexpr
hey
I'll probably learn C++ for concepts (they work similar to Rust's traits)
constraints and concepts
less new than binary literals in C
"waiting for traits to get introduced into JavaScript: another thing that is just prototypes anyway, confuses everyone and, as usual, doesn't work"
i thought i accidentally opened a radio station tab in the background LMAO
Scared the shit out of me when you started talking lol
my discord vol is at 90 while my pc vol is at 50 and it's still kinda loud
I'd love to hear him do a auction 🤣
lol
@vocal basin @urban abyss Is this better?
@urban abyss With emoji
bodge vs botch
Guys, can someone explain me what is a tuple of tuples (aTuple)?
A tuple in Python is an object that represents an ordered series of references to objects. This object isn't able to be changed once created
I see, Also can you explain me this code as well
def get_data(aTuple): """ aTuple, tuple of tuples (int, string) Extracts all integers from aTuple and sets them as elements in a new tuple. Extracts all unique strings from from aTuple and sets them as elements in a new tuple. Returns a tuple of the minimum integer, the maximum integer, and the number of unique strings """ nums = () # empty tuple words = () for t in aTuple: # concatenating with a singleton tuple nums = nums + (t[0],) # only add words haven't added before if t[1] not in words: words = words + (t[1],) min_n = min(nums) max_n = max(nums) unique_words = len(words) return (min_n, max_n, unique_words)
Such a tuple may hold references to other such tuples, or, indeed, largely any other object.
@urban abyss
users_queue_sorted = sorted(users_queue, key=lambda x: x.get("ready_time", datetime.datetime.min))```
the aTuple argument there is a tuple which contains more tuples inside it which has 2 values 1 integer and 1 string
What is the origin of this code?
so for example ((0, "foo"), (1, "bar"))
I saw it in a course I am watching on python
Nice
Could you tell me some practical application of tuple?
Is it just used to store data?
@urban abyss
member = ctx.author
summoner_name = summoner.get("summoner_name")
tagline = summoner.get("tagline")
tier_and_rank = summoner.get("tier_and_rank")
elo = summoner.get("elo_rating")
ready_time = datetime.datetime.now()
users_queue.append(
{"member": member, "summoner_name": summoner_name, "tagline": tagline, "tier_and_rank": tier_and_rank, "elo_rating": elo, "ready_time": ready_time})
a tuple is more memory efficient than a list as its immutable so you can use it anywhere to store multiple values together if you're sure you don't want to change any of the values later on
also since its immutable its also hashable so you could use it if you want to add a group of values as a key to a dictionary like
pixel_colors = {
(0, 0): (255, 255, 255),
(0, 1): (255, 0, 255),
(0, 2): (255, 255, 0),
}
pydantic
Ahh I see. That was really helpful.
Thanks!
I just had a worrying moment. My phone screen was turning on and off and I thought it was having a kind of hardware failure, but it was just the proximity sensor, which apparently doesn't activate when I'm using my headphones. I'm not using my headphones.
Like, it's treating this as a call, and it does it even in other apps.
@hexed solstice 👋
hi
i think i've had that happen to me with whatsapp
Hello
Anyway, the phone got a restart out of it, which can't hurt.
Do u have some advice how i can efficient learn python and swift at the same time, it's a little irritating.
mixins work for traits
Is that a mystery?
Like all good mysteries, that may never be answered.
...Now the proximity detection isn't.
Stupid bloody thing.
The answer complexity expanding 😅
i gotta go for now cya guys later 🙂
👋
Hey, Reza.
hi
Good things are sometimes best consumed in limited doses.
Hi
alias dnc="dotnet new console -o"
that's gonna save me a lot of time :p
@austere lava
# Get the voice channel
voice_channel = ctx.guild.get_channel(712072729406472374)
# Sort users_queue by ready_time
users_queue_sorted = sorted(users_queue, key=lambda x: x.get("ready_time", datetime.datetime.min))
# Separate users into "Ready" and "Not ready"
ready_users = [member for member in voice_channel.members if member in [user["member"] for user in users_queue_sorted]]
not_ready_users = [member for member in voice_channel.members if member not in [user["member"] for user in users_queue_sorted]]
# Create strings for "Ready" and "Not ready" users
ready_string = '\n'.join([f'{member.mention}' for member in ready_users])
not_ready_string = '\n'.join([f'{member.mention}' for member in not_ready_users])
🤣
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
sup good people
On yesterday subject, been working on making AI post look more organic @rugged root
#INPUT: 11❤️
#OUTPUT: 11 HEART
#CODE WORKED BEFORE REINSTALLING PYTHON TO LATEST
#CURRENT ERROR: letters= re.search(r"[a-z]+$", a).group()
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#AttributeError: 'NoneType' object has no attribute 'group'
import re
def simplyfyanswer(reply):
if "♠️" in reply:
reply= reply.replace("♠️", " spade")
if "❤️" in reply:
reply=reply.replace("❤️", " heart")
if "🍀" in reply:
reply=reply.replace("🍀", " clover")
if "♦️" in reply:
reply=reply.replace("♦️", " diamond")
a=str(reply)
number = re.search(r"^\d+", a).group()
letters= re.search(r"[a-z]+$", a).group()
output = (number, letters)
return output
@cosmic girder Yo
!e
print("🍀")
@toxic arch :white_check_mark: Your 3.12 eval job has completed with return code 0.
🍀
hey guys
i need help
can someone send me results of this code
import tensorflow as tf
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Embedding, LSTM, Dense
from tensorflow.keras.preprocessing.text import Tokenizer
from tensorflow.keras.preprocessing.sequence import pad_sequences
import requests
Зареждане на данните (Shakespeare пиеси)
response = requests.get("https://raw.githubusercontent.com/karpathy/char-rnn/master/data/tinyshakespeare/input.txt")
data = response.text
Токенизация на текста
tokenizer = Tokenizer(char_level=True)
tokenizer.fit_on_texts(data)
total_chars = len(tokenizer.word_index) + 1
Преобразуване на текста в последователности
input_sequences = []
for i in range(0, len(data) - 100, 1):
seq = data[i:i + 100]
input_sequences.append(seq)
Подготовка на данните за обучение
X = []
y = []
for seq in input_sequences:
X.append([tokenizer.texts_to_sequences([char])[0][0] for char in seq])
y.append(tokenizer.texts_to_sequences([seq[100]])[0][0])
X = pad_sequences(X, maxlen=100, dtype='float32')
y = tf.keras.utils.to_categorical(y, num_classes=total_chars)
Създаване на модела
model = Sequential()
model.add(Embedding(total_chars, 50, input_length=100))
model.add(LSTM(100))
model.add(Dense(total_chars, activation='softmax'))
model.compile(loss='categorical_crossentropy', optimizer='adam')
Обучение на модела
model.fit(X, y, epochs=10, batch_size=128)
Генериране на текст
seed_text = "To be or not to be"
for i in range(200):
token_list = [tokenizer.texts_to_sequences([char])[0][0] for char in seed_text[-100:]]
token_list = pad_sequences([token_list], maxlen=100, dtype='float32')
predicted = model.predict_classes(token_list, verbose=0)
output_char = tokenizer.index_word[predicted[0]]
seed_text += output_char
print(seed_text)
import tensorflow as tf
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Embedding, LSTM, Dense
from tensorflow.keras.preprocessing.text import Tokenizer
from tensorflow.keras.preprocessing.sequence import pad_sequences
import requests
response = requests.get("https://raw.githubusercontent.com/karpathy/char-rnn/master/data/tinyshakespeare/input.txt")
data = response.text
tokenizer = Tokenizer(char_level=True)
tokenizer.fit_on_texts(data)
total_chars = len(tokenizer.word_index) + 1
input_sequences = []
for i in range(0, len(data) - 100, 1):
seq = data[i:i + 100]
input_sequences.append(seq)
X = []
y = []
for seq in input_sequences:
X.append([tokenizer.texts_to_sequences([char])[0][0] for char in seq])
y.append(tokenizer.texts_to_sequences([seq[100]])[0][0])
X = pad_sequences(X, maxlen=100, dtype='float32')
y = tf.keras.utils.to_categorical(y, num_classes=total_chars)
model = Sequential()
model.add(Embedding(total_chars, 50, input_length=100))
model.add(LSTM(100))
model.add(Dense(total_chars, activation='softmax'))
model.compile(loss='categorical_crossentropy', optimizer='adam')
model.fit(X, y, epochs=10, batch_size=128)
seed_text = "To be or not to be"
for i in range(200):
token_list = [tokenizer.texts_to_sequences([char])[0][0] for char in seed_text[-100:]]
token_list = pad_sequences([token_list], maxlen=100, dtype='float32')
predicted = model.predict_classes(token_list, verbose=0)
output_char = tokenizer.index_word[predicted[0]]
seed_text += output_char
print(seed_text)
!paste @cosmic girder If you have that much code, would you mind using a hastebin or pastebin?
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 Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
when the devs need to do some activity for "what did you do this quarter?"
quarterly activities: made changes to UI
must have hired someone from microsoft 🫣
@sly briar
I can’t chat in the voice Chan
Talking perms?
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
No worries. You can always chill and chat in here
If we're in VC we'll be watching this channel so no one gets left out
We are in here if we are in VC
https://docs.python.org/3/library/filecmp.html Also didn't remember this was a thing
Any resources that would really help me grasp the re python library
thanks
Tried listening to a new type of song
Well sing it out we hear it
New remix album out now on spotify! http://bit.ly/ggremix3
Want to see the Grumps react to this song and other? Check out the reaction vid on their channel: https://www.youtube.com/watch?v=A4hga1ebRK4
Sbassbear Discord channel: https://discord.gg/gj27TSS
Facebook: https://www.facebook.com/sbassbear
Instagram:...
Shoot i feel like i am high seeing this song 😄
Now why forklift????
You a serial killer or something? that's some dark humor it has.
Shoot now i can't get the word forklift out of my head. LOL
A template for capturing task recipes for repeatable scientific practices in a consistent format and hosted in a centralised online repository
@silent arch
okey am having a small issue with my code where the output of my code doesn't match the expected result
here is the expected result
File size: 5213
200: 2
401: 1
403: 2
404: 1
405: 1
500: 3
File size: 11320
200: 3
301: 2
400: 1
401: 2
403: 3
404: 4
405: 2
500: 3
this is what i am supposed to read from and extract the status code and its total file size
<IP Address> - [<date>] "GET /projects/260 HTTP/1.1" <status code> <file size>
here is my code
import re
def parse_input(line):
# Define a regular expression to extract relevant information
pattern = re.compile(r'(\d+\.\d+\.\d+\.\d+) - \[(.*?)\] "GET /projects/260 HTTP/1.1" (\d+) (\d+)')
# Use the regular expression to match the pattern
match = pattern.match(line)
if match:
# Extract information from the match object
ip_address, date, status_code, file_size = match.groups()
# find the total file_size of 10 inputs
total_size = 0
for i in range(10):
total_size += int(file_size)
return total_size, status_code
else:
return None
while True:
try:
line = input()
result = parse_input(line)
print("File size: {}".format(result[0]))
# print only the first 10 status code
for _ in range(10):
if not line:
break
print(result[1])
except EOFError:
break
here is my output
File size: 5730
403
403
403
403
403
403
403
403
403
403
File size: 680
500
500
500
500
500
500
500
500
500
500
Mind helping out @rugged root
Yeap sort of
For what?
Oh so it's just going through and looking at the status codes
Roger that
Looking at some things. I haven't futzed with streamed stuff much
Wait..
Like the part of printing the 10 status code in ascending order am not quite getting it right
also is anacanda a good idle
I thought this wasn't a matter of printing the first 10 status codes, but printing the totals you've gotten so far
Yeah but it's only printing a single status code 10 times instead of printing all the 10 status code only then move forward repeating again the first 10 status codes.
Counter might help....
One sec
Writing out an idea
Just double checking how something would be sorted
okey
:x
Good ol' RTC hell
connected
also i fixed the code i sent you xD
i forgot an entire 2nd loop in it idk how
lol
Okey
!e
from collections import Counter
from operator import itemgetter
# the operator thing is optional, I just prefer this over using a lambda
nums = Counter()
nums.update([1, 2, 2, 4, 1, 2, 3, 8, 1])
print(nums)
sorted_nums = sorted(nums.items(), key=itemgetter(0))
print(sorted_nums)
for num, amount in sorted_nums:
print(f"{num}: {amount}")
@rugged root :white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | Counter({1: 3, 2: 3, 4: 1, 3: 1, 8: 1})
002 | [(1, 3), (2, 3), (3, 1), (4, 1), (8, 1)]
003 | 1: 3
004 | 2: 3
005 | 3: 1
006 | 4: 1
007 | 8: 1
@modern yacht So you'd want to add the values into the Counter (or dictionary or however you're tracking them).
it just died now 💀
Lame
@stark river is your name Saket by any chance? I have a friend who sounds exactly like you
mmmh lemmi figure a way to implement this in my code
Hello 👋
no
Sorry, trying to figure out how to better explain
Caffeine hasn't hit my blood yet, though
ok
give it a sec to find it's way around your body
It's going to get lost around spleen town
if you rush the kick you won't get it right
Oh and for what I was saying about the lambda thing...
sorted_nums = sorted(nums.items(), key=itemgetter(0))
#vs
sorted_nums = sorted(nums.items(), key=lambda pair: pair[0])
I don't like lambdas as much
in my case i think lambda would really work fine
Oh for sure
They both do the exact same thing in this case
It's just a minor performance thing that doesn't really matter at this small a scale
ok discord hates me rn so ig i'm sitting out
Sorry, brother
Actually hold on
checked ping and packet loss to google servers have none 😦 probably just discord
okey lemmi try it out then i will let you know though i have to learn how counter and itemgetter works
how i have been taught python i am always fixated on not using libraries but come up with an algorithm to solve the problem even though there might be a library to do that already and again i have a limited amount of import i am supposed to use.
@woeful salmon Try now
same i can connect but everyone's a robot xD
I get not using third party libs, but there's something to be said about learning the tools that come with Python and using them to the best of their abilities
Shit, sorry Reaps
its all good its just a discord issue
probably will get fixed later i'mma be back in a few hours xD
yeah it makes it easier to work with python and also allow for faster and reliable code
!timeit
import random
random.seed(1)
a = list(range(100_000))
b = list(range(100_000))
random.shuffle(a)
random.shuffle(b)
c = list(zip(a, b))
c.sort(key=lambda x: x[1])
@rugged root :white_check_mark: Your 3.12 timeit job has completed with return code 0.
5 loops, best of 5: 61.9 msec per loop
Should prooooooobably use fewer values
!timeit
import random
random.seed(1)
a = list(range(10_000))
b = list(range(10_000))
random.shuffle(a)
random.shuffle(b)
c = list(zip(a, b))
c.sort(key=lambda x: x[1])
@rugged root :white_check_mark: Your 3.12 timeit job has completed with return code 0.
100 loops, best of 5: 2.29 msec per loop
!timeit
from operator import itemgetter
import random
random.seed(1)
a = list(range(10_000))
b = list(range(10_000))
random.shuffle(a)
random.shuffle(b)
c = list(zip(a, b))
c.sort(key=itemgetter(1))
Hmmm
Oh der
did you clear pycache?
@rugged root :white_check_mark: Your 3.12 eval job has completed with return code 0.
500 loops, best of 5: 446 usec per loop
Forgot to make it 10k instead of 100k
Yeah, itemgetter just blows the lambda out of the water
does this online interpreter clear pycache
so item getter is way faster cool
where am i going wrong again
status_code_dict_gen = collections.Counter()
for _ in range(10):
total_size += int(file_size)
status_code_dict_gen.update([].extend(status_code))
print(status_code_dict_gen)
return total_size, status_code
i keep getting an empty list
nooo sorry an empty counter()
hey @peak depot
You'll want to make the Counter outside the while loop
Otherwise you're going to be creating a fresh one each and every time
And you should also be able to add the new status codes as you get them with just
status_code_dict_gen.update([status_code])
something like this
total_size = 0
status_code_dict = collections.Counter()
counter = 0
for _ in range(10):
total_size += int(file_size)
if counter != 10:
status_code_dict.update([status_code])
counter += 1
#shorts #english #englishgrammar #englishspeaking #language #languagelearning #turkish #spanish #diversity #accent
The video of the girl speaking English with 12 different accents went viral.
IG: thelanguageblondie
Keywords: accents, accent challenge, language diversity, English accents, linguistics, accent mimicry, language learning, cultur...
I've been thinking about taking up origami because I'm so good at folding under pressure
I should in-crease my skill level first
@sinful phoenix Are you there?
https://store.playstation.com/concept/10006160
Challenge perception, redefine reality, and reshape the world around you with an instant camera. Viewfinder is a new single player game offering hours of interesting and fun experiences while uncovering the mysteries left behind.
Viewfinder is a mind-bending first person adventure game in which yo...
@sinful phoenix How long have you been coding for?
Hey still unable to print in interval of 10 status codes @rugged root
here is the updated code with your implementation
import re # pattern finding
import collections # faster dictionary creation
def parse_input(line):
# Define a regular expression to extract relevant information
pattern = re.compile(r'(\d+\.\d+\.\d+\.\d+) - \[(.*?)\] "GET /projects/260 HTTP/1.1" (\d+) (\d+)')
# Use the regular expression to match the pattern
match = pattern.match(line)
if match:
# Extract information from the match object
ip_address, date, status_code, file_size = match.groups()
# find the total file_size of 10 inputs
total_size = 0
for _ in range(10):
total_size += int(file_size)
return total_size, status_code
else:
return None
def sorted_status_codes(status_code):
"""A function that creates a dictionary from the status code passed
and sorts them accordingly
Args:
status_code: codes from each log entered
"""
status_code_dict = collections.Counter()
status_code_dict.update([status_code])
# sort the dict values according to the key of the dict
sorted_status_code = sorted(status_code_dict.items(), key=lambda pair: pair[0])
return (sorted_status_code)
# Entry point
while True:
try:
line = input()
result = parse_input(line)
print("File size: {}".format(result[0]))
sstatus_code = sorted_status_codes(result[1])
for code, count in sstatus_code:
print("{}: {}".format(code, count))
except EOFError:
break
The counter i am still unable to fix it in
@rugged root can you hear me!!!!!!!
Ghibli
:{}
dont you just hate it when your code doesnt work and you cant fix it
I'll look in a quick sec
Man i go insane sometime
amazing 👍
BROOOO NCURSES IS SOO WEIRD
im gonna have a mental breakdown
!pypi blessed
holy crap i might have to switch to that
Ravioli?
fish stew
thank you hemlock for blessing my code with the blessed module
Buddy Christ from... I think the movie Dogma?
You'll need to have the Counter made outside of any functions and outside the loop
The problem is that you're making a new one each time in the sorted_status_codes() function
Oh hi Hemlock
Sup
Nm just dying inside of Python errors lol
Living the dream
Fr
mind showing how with a simple example cause it turns out i cannot make a counter today 😦
Figured out how to send info from JavaScript to Python but can’t get it to go from Python to JavaScript
wait i thought json could do that
It can but it’s not working 😦
u using the json module?
Yes
try dumps() dump() or loads() load()
Well, jsonify
idk which one
Return you mean?
wait which one is that
Flask json
I did
and using those functions i sent
import json
Shoot how is python having all this kind of new library
I did
ah ok nice
My brain cells are dying
this is me right now
Re-writing a couple things
Python -> json.dumps -> *network* -> JSON.parse -> JavaScript
Python <- json.loads <- *network* <- JSON.stringify <- JavaScript
and that's where "just use FastAPI instead" is an actual valid advice
What’s fast api
It's a Python framework that helps you make an API backend.
🙂
Pretty solid
its use of Pydantic simplifies working with JSON at API boundaries
imagine getting help (jk)
@limpid vapor Would you mind changing your nickname to meet our nickname policy? See the #rules channel for details on that
dont kill me
So I can send data between JS and Py quickly with fast API?
what is it i cant see my fonts are weird
Hey are there goals one has to achieve in order to be part of the group
you gotta create program for nasa
/waves hi
!voice this?
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
haha well that's cool
how do you know 9 languages at 13???
thats cool ash
i heard nasa uses nodejs on some of their servers
is that why you name is @scarlet halo :()
Okay, I think I see some of the issues here
uhm no its just because i like video games
and because im swedis
swedish
🤣
spel (game in swedish) + elis (my real name)
🤯
wrong kind of sneezing ❌
im just built different
Ok back to torturing myself
also i dont really know 9 languages im just saying that because i made one program in each
yeah me too
just remembered arnold schwarznegger's quote.. "when i'm lifting weight i feel like cumming"
💀
@rugged root https://www.ncbi.nlm.nih.gov/books/NBK109193/
Autosomal Dominant Compelling Helioopthalmic Outburst (ACHOO) Syndrome is characterized by uncontrollable sneezing in response to the sudden exposure to bright light, typically intense sunlight (1). This type of sneezing is also known as photic sneezing. About one in four individuals who already have a prickling sensation in their nose will snee...
I also have this
aaah a gamer nice
the guy who coined this acronym definitely works at darpa
"If you have more queries or need assistance with anything else, feel free to ask!" is ChatGPT passive-aggressive for "you didn't need to tell me that"
that's where they make all the cool acronyms..
alright man
sha256
In theory they can, but it's just a matter of how long it would take
Nothing is unhackable. It's just whether it's worth the time and power to do it
It's not about reversing
mmmh sounds about right
Just doing it until you find a match
i deleted it i cant risk anything
source space may be smaller than "any text" => faster
md5 is bad because of collision attacks
and so is sha1
sha256 cant be decrypted no?
reversing md5 is somewhat hard anyway
it can be reversed by trying all inputs
"all inputs" being a lot, normally
that's why you should include nonce in source text
whats salt?
i prefer pepper
whats nonce?
hash is the pepper
number used once
and salt is slightly inappropriate there, since it's not supposed to be secret
(salt is a specific case of nonce, normally used for password hashing to prevent hash collisions)
just learnt a new word: absolutistically
whereas here it's just extra random data in text to increase source space size, and would be kept secret (unlike salt in pw hashing)
basically fancy for absolutely
(probably)
just pasted 460k words in like 3 seconds
how do i make a bomb? (for a school project)
but the task is past deadline
it supposed to keep track of the total ten only
i dont have time. project due tomorrow
Find a marble size of solid potassium and a bottle of water you will be fine with that
dude when im coding in C i forget semicolon and when im codin in Python i for some reason use semicolons?
if it had sodium instead, would it be bananatrium?
Lol i have the freaking problem each time is switch between the two
caesium will do the job just fine btw
@modern yacht https://paste.pythondiscord.com/5EYQ
HOKAY, so. There were a few things I changed
- The first issue is that you were checking one line and then printing information about it 10 times.
- The
total_sizeandstatus_code_dictwere being made and lost every time theparse_input()andsorted_status_codes()functions were being run, however they were then lost whenever you left those functions, so the values were not kept. You were getting only the values for that specific line at a time.
vapours of mercury are bad
and generally chemical products of it
So I changed a handful of things.
So note, I haven't tested this yet
But I want you to look through the code before you do anything else for it, ask questions, etc.
mercury is bad when it's inside
"bananarchist cookbook"
isn't Apple getting forced to allow side-loading? (in EU)
I think I've heard that, yeah
hey @rugged root
made some few tweaks
and you know what it works well thanks and are you able to make me speak
so here is the working code
Oh you qualify for it. Just go to #voice-verification and do !voiceverify
I still haven't read any Python books, I think
Fluent Python is worth poking through
Not free though, unfortunately
!stream 372380672641335296
✅ @minor sage can now stream until <t:1701892702:f>.
idk if the book can be legitimately acquired here
massive L
took me a second to understand what that was.
bro gtg also i dont wanna go to school tmrw
school's so boring i want to jump down a 7 story building into a ginormous pile of snow and leaves
This is what the more literary inclined folks talk about when they say "It's a whle chapter."
ohno I have a dumb idea again (involving gpt and similar stuff)
||🤮||
I didn't even finish writing and it's already bad
each next character just makes it worse
also repl.it's "debug with AI" is dumb
too dumb to use more than one line of error output
compuwuter
message: (empty, because I accidentally pressed enter once more)
AI: Understood.
understood what?
Wait what?
rendering error
It had the backticks?
Agile is not a fucking framework.
it had indentation, I guess
first, agile is an adjective not a noun
Ooo wait
We are uncovering better ways of developing software
by doing it and helping others do it. These are our
values and principles.
@uncut meteor Do you have the link to the video on AGILE we were watching the other day?
if you paid for learning agile as a framework, you got ripped off
what is a framework and why is agile not one?
two words starting with p in the agile manifesto
notice how both of them appear after "over"
Scrum, for example, is a framework
describing a process that, hopefully, may make the teams more agile
(keyword process)
I'm just wondering what you think a framework is, and why agile is not one. if you think agile is a process, and that a process is not a framework, why is that?
I think it would help if you could explain what you understand by framework, and what agile is that prevents it from being a framework
that seems like the most straightforward way to understand your meaning
> you think agile is a process
where did this come from?
Back later
two words starting with p in the agile manifesto
but again, nevermind. the most straightforward way to understand your meaning would simply be to see what you think a framework is, what you think agile is, and why you think agile therefore is not a framework
PyTX
t
to be grammatically correct, this would be Agile Software Development, if you're going to argue definitions
not just Agile
i need help with something in pygame could anyone come to code help channel
software development can be less or more agile
it's a "metric" but one that's hard to measure
... since it's an adjective and one that allows for comparison
@whole bear can you fucking stop with this types of reactions?
one of aspects commonly aligned with "framework" notion is "process"
which is what Agile[ Software Development] Manifesto tries to steer people away from
I think you are just being needlessly pedantic. Even the Agile Alliance uses it freely as a noun https://www.agilealliance.org/agile101/
Agile gives organizations the ability to quickly create and respond to change in today's disruptive marketplace. Learn more at AgileAlliance.org.
in any case, I still do not know what you think "agile" means, what "framework" means, and based on that, why you think agile is not a framework
this applies to teams, organisations, products, etc.
you can be agile
you can't do agile
none of these apply to Agile Software Development
4th is closest
in the meaning "framework of thinking"
because it's not about structure
yes, that is what I think the person who called agile a framework meant, which is why I think in a colloquial sense they were not that wrong
it's opposed to the notion of framework in other definitions
in any case, these dictionary definitions are not always that good at capturing the actual use of words. framework can be used very loosely just to mean a way of thinking about something that is informed by a set of interrelated concepts or notions
> definitions are not always that good at capturing the actual use of words
that's why I'm reluctant to give definitions
you could just explain what you mean (I did not say 'define' precisely for that reason)
examples, general remarks, etc., are all helpful
also
initial context was "teaching agile", in which case "framework" strictly means "process"
because popularisation of "agile" as a term failed and now colleges and enterprise think Scrum is Agile
sad but one of ways to prevent the situation from going further down that hole is to avoid applying "framework" term to it
tuplés
"there's always a worse option"
depression.jpeg
haha that's the most deloitte thing I've seen in a while, love it ❤️
gotta earn those consulting fees
this was 100% inspired by the London tube, like it HAD to look like it
ok that sounds like I would agree with it, let me just read more around the topic
"if you think 'framework' has many definitions, then 'OOP' has surprises for you"
for half a second i thought i was reading a metro line map
then i saw deloitte on the top corner
I don't think it has a definition, but there are ways of using terms, and many terms have many ways of using them
I think meaning is more adequately captured by 'way of using' than by 'definition'
OOP has many attempts at definitions
but usually it's a set of concepts, principles, etc
or, as a paradigm, what it forbids/enables
"something about objects" is dumb but not that bad
@whole bear Building a 8-bit computer from scratch
https://www.youtube.com/watch?v=HyznrdDSSGM&list=PLowKtXNTBypGqImE405J2565dvjafglHU
An update on my plans to build another 8-bit computer from scratch and make videos of the whole process! Buy a kit and build your own! https://eater.net/8bit/kits
Support me on Patreon: https://www.patreon.com/beneater
as meaning "working in problem domain's structure and vocabulary"
Kevlin Henney
ultra based
Can't find link, walking rn
if not for his talks, I wouldn't know about fizzbuzz.pdf
such a meme paper
Beep
def get_exception_info(e):
frame = e.__traceback__.tb_frame
return f"Exception in {frame.f_code.co_filename} line {frame.f_lineno} (in {frame.f_code.co_name}): {repr(e)}"
Boop
then there's abstraction[ of behaviour] too (without a specific mechanism)
and that is enabled my different things which sometimes get places as core principle
for example, message passing
which is central for one of the "definitions" of OOP
as it's done in SmallTalk, Erlang, etc.
... but messaging is separate in many ways
Ruby calls method calls messages too
for whatever ideological reason
looks like a train network...
"if you don't pay for the product, you're the product"
... if the company is not just burning money
are refunds optional ...
Yes I am I'll be back at my desk in 15 min
bet, can you ping me when youre back?
@toxic arch im back
Lmao
53,364
333,275


